openc3-tool-tlmviewer 5.0.6 → 5.0.9
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/plugin.txt +1 -0
- data/tools/tlmviewer/js/322.js +71 -0
- data/tools/tlmviewer/js/322.js.map +1 -0
- data/tools/tlmviewer/js/409.js +2 -0
- data/tools/tlmviewer/js/409.js.map +1 -0
- data/tools/tlmviewer/js/app.js +1 -1
- data/tools/tlmviewer/js/app.js.map +1 -1
- metadata +6 -6
- data/tools/tlmviewer/js/498.js +0 -32
- data/tools/tlmviewer/js/498.js.map +0 -1
- data/tools/tlmviewer/js/903.js +0 -2
- data/tools/tlmviewer/js/903.js.map +0 -1
data/tools/tlmviewer/js/903.js
DELETED
@@ -1,2 +0,0 @@
|
|
1
|
-
(self["webpackChunk_openc3_tool_tlmviewer"]=self["webpackChunk_openc3_tool_tlmviewer"]||[]).push([[903],{15507:function(e,t,n){var i={"./ArrayWidget.vue":74132,"./BlockWidget.vue":3770,"./ButtonWidget.vue":35355,"./CanvasWidget.vue":8617,"./CanvasdotWidget.vue":54383,"./CanvasimageWidget.vue":72282,"./CanvasimagevalueWidget.vue":350,"./CanvaslabelWidget.vue":72106,"./CanvaslabelvalueWidget.vue":15986,"./CanvaslineWidget.vue":50720,"./CanvaslinevalueWidget.vue":5649,"./CheckbuttonWidget.vue":79371,"./ComboboxWidget.vue":57810,"./DynamicWidget.vue":41780,"./FormatvalueWidget.vue":12558,"./HorizontalWidget.vue":24122,"./HorizontalboxWidget.vue":93534,"./IframeWidget.vue":60809,"./ImageviewerWidget.vue":19226,"./LabelWidget.vue":12112,"./LabelledWidget.vue":7881,"./LabelprogressbarWidget.vue":81002,"./LabelvalueWidget.vue":92884,"./LabelvaluedescWidget.vue":65965,"./LabelvaluelimitsbarWidget.vue":1820,"./LabelvaluelimitscolumnWidget.vue":22075,"./LabelvaluerangebarWidget.vue":10078,"./LedWidget.vue":75337,"./LimitsbarWidget.vue":55e3,"./LimitscolorWidget.vue":71905,"./LimitscolumnWidget.vue":71229,"./LinegraphWidget.vue":63819,"./MatrixbycolumnsWidget.vue":36913,"./ProgressbarWidget.vue":5775,"./RadiobuttonWidget.vue":45251,"./RadiogroupWidget.vue":67822,"./RangebarWidget.vue":71276,"./ScrollwindowWidget.vue":12542,"./SectionheaderWidget.vue":41411,"./SpacerWidget.vue":99528,"./TabbookWidget.vue":39792,"./TextboxWidget.vue":28088,"./TextfieldWidget.vue":75022,"./TitleWidget.vue":56333,"./ValueWidget.vue":84952,"./ValuelimitsbarWidget.vue":28162,"./ValuelimitscolumnWidget.vue":77634,"./ValuerangebarWidget.vue":84887,"./VerticalWidget.vue":42248,"./VerticalboxWidget.vue":10772};function a(e){var t=r(e);return n(t)}function r(e){if(!n.o(i,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return i[e]}a.keys=function(){return Object.keys(i)},a.resolve=r,e.exports=a,a.id=15507},96161:function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";var core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(58188),core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_0___default=__webpack_require__.n(core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_0__),core_js_modules_web_dom_collections_for_each_js__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(1939),core_js_modules_web_dom_collections_for_each_js__WEBPACK_IMPORTED_MODULE_1___default=__webpack_require__.n(core_js_modules_web_dom_collections_for_each_js__WEBPACK_IMPORTED_MODULE_1__),core_js_modules_es_regexp_exec_js__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(77950),core_js_modules_es_regexp_exec_js__WEBPACK_IMPORTED_MODULE_2___default=__webpack_require__.n(core_js_modules_es_regexp_exec_js__WEBPACK_IMPORTED_MODULE_2__),core_js_modules_es_string_split_js__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__(48319),core_js_modules_es_string_split_js__WEBPACK_IMPORTED_MODULE_3___default=__webpack_require__.n(core_js_modules_es_string_split_js__WEBPACK_IMPORTED_MODULE_3__),core_js_modules_es_string_trim_js__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__(45794),core_js_modules_es_string_trim_js__WEBPACK_IMPORTED_MODULE_4___default=__webpack_require__.n(core_js_modules_es_string_trim_js__WEBPACK_IMPORTED_MODULE_4__),core_js_modules_es_array_includes_js__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__(39529),core_js_modules_es_array_includes_js__WEBPACK_IMPORTED_MODULE_5___default=__webpack_require__.n(core_js_modules_es_array_includes_js__WEBPACK_IMPORTED_MODULE_5__),core_js_modules_es_string_includes_js__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__(31235),core_js_modules_es_string_includes_js__WEBPACK_IMPORTED_MODULE_6___default=__webpack_require__.n(core_js_modules_es_string_includes_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__),_services_openc3_api__WEBPACK_IMPORTED_MODULE_8__=__webpack_require__(12156),_services_api__WEBPACK_IMPORTED_MODULE_9__=__webpack_require__(71261),_Widget__WEBPACK_IMPORTED_MODULE_10__=__webpack_require__(23466);__webpack_exports__["Z"]={mixins:[_Widget__WEBPACK_IMPORTED_MODULE_10__.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(){var e=this;this.api=new _services_openc3_api__WEBPACK_IMPORTED_MODULE_8__.k,this.settings.forEach((function(t){"SCREEN"===t[0]&&(e.screen=t[1])}))},methods:{onClick:function onClick(){var _this2=this,lines=this.eval.split(";;"),self=this,screen=this.screen,api=this.api,run_script=this.runScript;lines.forEach((function(line){var result=eval(line.trim());result instanceof Promise&&result.then((function(e){})).catch((function(e){e.message.includes("is Hazardous")&&(_this2.lastCmd=e.message.split("\n").pop(),_this2.displaySendHazardous=!0)}))}))},sendHazardousCmd:function sendHazardousCmd(){this.displaySendHazardous=!1,this.lastCmd=this.lastCmd.replace("cmd(","this.api.cmd_no_hazardous_check("),eval(this.lastCmd)},cancelHazardousCmd:function(){this.displaySendHazardous=!1},runScript:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];_services_api__WEBPACK_IMPORTED_MODULE_9__.Z.post("/script-api/scripts/".concat(e,"/run")).then((function(e){t&&window.open("/tools/scriptrunner/".concat(e.data),"_blank")}))}}}},91672:function(e,t,n){"use strict";var i=n(36625),a=n(95627),r=(n(18178),n(71261));t["Z"]={props:{target:{type:String,require:!0}},methods:{getPresignedUrl:function(){var e=(0,a.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,r.Z.get("/openc3-api/storage/download/".concat(encodeURIComponent("".concat(localStorage.scope,"/targets/").concat(this.target,"/public/").concat(t)),"?bucket=config"));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}()}}},37230:function(e,t,n){"use strict";var i=n(23466);t["Z"]={mixins:[i.Z],props:{widgets:{type:Array,default:function(){return[]}}}}},12406:function(e,t,n){"use strict";n(18178),n(96708),n(32501),n(58188);var i=n(23466);n(80131);t["Z"]={mixins:[i.Z],props:{value:{default:null},limitsState:{type:String,default:null},formatString:null},data:function(){var e=this;return{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")}}]}},computed:{_value:function(){var e=this.value;null===e&&(e=this.$store.state.tlmViewerValues[this.valueId]?this.$store.state.tlmViewerValues[this.valueId][0]:null);var t=this.formatValue(e);return"true"===localStorage.colorblindMode&&""!==this.limitsLetter?"".concat(t," (").concat(this.limitsLetter,")"):t},valueClass:function(){return"value shrink pa-1 openc3-"+this.limitsColor},limitsColor:function(){var e=this.limitsState;if(null===e&&(e=this.$store.state.tlmViewerValues[this.valueId]?this.$store.state.tlmViewerValues[this.valueId][1]: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&&(e=this.$store.state.tlmViewerValues[this.valueId]?this.$store.state.tlmViewerValues[this.valueId][1]: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.$store.commit("tlmViewerAddItem",this.valueId))},destroyed:function(){this.$store.commit("tlmViewerDeleteItem",this.valueId)},methods:{getType:function(){var e="WITH_UNITS";return this.parameters[3]&&(e=this.parameters[3]),e},formatValue:function(e){if("Array"===Object.prototype.toString.call(e).slice(8,-1)){for(var t="[",n=0;n<e.length;n++)"String"===Object.prototype.toString.call(e[n]).slice(8,-1)?t+='"'+e[n]+'"':t+=e[n],n!=e.length-1&&(t+=", ");return t+="]",t}return"Object"===Object.prototype.toString.call(e).slice(8,-1)?"":this.formatString&&e?sprintf(this.formatString,e):""+e},showContextMenu:function(e){var t=this;e.preventDefault(),this.contextMenuShown=!1,this.x=e.clientX,this.y=e.clientY,this.$nextTick((function(){t.contextMenuShown=!0}))}}}},23466:function(e,t,n){"use strict";n(71245),n(58188),n(1939),n(68995),n(32501),n(18178);var i=n(1250);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}},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)}switch(n[0]){case"TEXTALIGN":t["text-align"]=n[1].toLowerCase();break;case"PADDING":t["padding"]=n[1]+"px !important";break;case"MARGIN":t["margin"]=n[1]+"px !important";break;case"BACKCOLOR":t["background-color"]=e.getColor(n.slice(1));break;case"TEXTCOLOR":t["color"]=e.getColor(n.slice(1));break;case"BORDERCOLOR":t["border-width"]="1px",t["border-style"]="solid",t["border-color"]=e.getColor(n.slice(1));break;case"WIDTH":t["width"]=n[1]+"px !important";break;case"HEIGHT":t["height"]=n[1]+"px !important";break;case"RAW":t[n[1].toLowerCase()]=n[2];break}})),t}},methods:{verifyNumParams:function(e,t,n){for(var a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"",r={line:this.line,lineNumber:this.lineNumber,keyword:e,parameters:this.parameters},s=1;s<=t;s++)if(void 0===this.parameters[s-1])throw new i.y(r,"Not enough parameters for ".concat(e,"."),a,"https://openc3.com/docs/v5");if(n&&void 0===!this.parameters[n])throw new i.y(r,"Too many parameters for ".concat(e,"."),a,"https://openc3.com/docs/v5")},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],")")}}}}},71541:function(e,t,n){"use strict";n(58188);t["Z"]={data:function(){return{originalWidthSetting:null}},created:function(){this.originalWidthSetting=["WIDTH",this.width],this.resetWidth()},beforeUpdate:function(){this.resetWidth()},methods:{resetWidth:function(){this.settings.some((function(e){return"WIDTH"===e[0]}))||this.settings.unshift(this.originalWidthSetting)}}}},71261:function(e,t,n){"use strict";var i=n(28378),a=n(36625),r=n(95627),s=n(33093),l=function(){var e=(0,r.Z)((0,a.Z)().mark((function e(t,n){var i,r,l,o,c,u,d,m,h,p=arguments;return(0,a.Z)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(i=p.length>2&&void 0!==p[2]?p[2]:{},r=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=11;break}return e.prev=2,e.next=5,OpenC3Auth.updateToken(OpenC3Auth.defaultMinValidity);case 5:e.next=10;break;case 7:e.prev=7,e.t0=e["catch"](2),OpenC3Auth.login();case 10:c["Authorization"]=localStorage.openc3Token;case 11:return h||o["scope"]||(o["scope"]=localStorage.scope),e.abrupt("return",(0,s.Z)({method:t,url:n,data:r,params:o,headers:c}));case 13:case"end":return e.stop()}}),e,null,[[2,7]])})));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,a=void 0===i?o:i,r=t.noScope,s=t.noAuth;return l("get",e,{params:n,headers:a,noScope:r,noAuth:s})},put:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.data,i=t.params,a=t.headers,r=void 0===a?c:a,s=t.noScope,o=t.noAuth;return l("put",e,{data:n,params:i,headers:r,noScope:s,noAuth:o})},post:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.data,i=t.params,a=t.headers,r=void 0===a?c:a,s=t.noScope,o=t.noAuth;return l("post",e,{data:n,params:i,headers:r,noScope:s,noAuth:o})},delete:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.params,i=t.headers,a=void 0===i?o:i,r=t.noScope,s=t.noAuth;return l("delete",e,{params:n,headers:a,noScope:r,noAuth:s})}}},33093:function(e,t,n){"use strict";n(58188),n(88233);var i=n(89644),a=n.n(i),r=n(44091),s=new r["default"],l=a().create({baseURL:location.origin,timeout:6e4,params:{}});l.interceptors.response.use((function(e){return e}),(function(e){if(e.response){if(401===e.response.status)delete localStorage.openc3Token,OpenC3Auth.login(location.href);else{var t,n,i,a,r,l,o,c,u,d;if(localStorage.axiosIgnoreResponse===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!==(a=e.response)&&void 0!==a&&null!==(r=a.data)&&void 0!==r&&r.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)}s.$notify.serious({title:"Network error",body:m})}throw e}throw e})),t["Z"]=l},78493:function(e,t,n){"use strict";n.d(t,{Z:function(){return l}});var i=n(28378),a=n(37105),r=n(76455),s=n(23492);s.ConnectionMonitor.staleThreshold=60;var l=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"/openc3-api/cable";(0,a.Z)(this,e),this._cable=s.createConsumer(t)}return(0,r.Z)(e,[{key:"disconnect",value:function(){this._cable.disconnect()}},{key:"createSubscription",value:function(e,t){var n=this,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return OpenC3Auth.updateToken(OpenC3Auth.defaultMinValidity).then((function(){return n._cable.subscriptions.create((0,i.Z)({channel:e,scope:t,token:localStorage.openc3Token},r),a)}))}}]),e}()},1250:function(e,t,n){"use strict";n.d(t,{p:function(){return l},y:function(){return s}});var i=n(61901),a=n(76455),r=n(37105),s=(n(77950),n(85940),n(48319),n(45794),(0,a.Z)((function e(t,n){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"";(0,r.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=a}))),l=function(){function e(){(0,r.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,a.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 s(this,"Not enough parameters for ".concat(this.keyword,"."),n,this.url);if(t&&void 0===!this.parameters[t])throw new s(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,a){var r=!1;this.line="",this.keyword=null,this.parameters=[],this.filename=t;for(var s=e.split("\n"),l=s.length,o=0;o<l;o++){this.lineNumber=o+1;var c=s[o].trim(),u=/("([^\\"]|\\.)*")|('([^\\']|\\.)*')|\S+/g,d=this.scan_string(c,u),m="";if(d.length>0&&(m+=d[0]),r?this.line=this.line+c:(this.line=c,0===m.length||"#"===m.charAt(0)?this.keyword=null:this.keyword=m.toUpperCase(),this.parameters=[]),null!==this.keyword){r&&(i?this.parameters.push(this.remove_quotes(m)):this.parameters.push(m),r=!1);var h=d.length;if(h>1)for(var p=1;p<h;p++){var v=d[p];if(v.length>0&&"#"===v.charAt(0)&&!(v.length>1&&"{"===v.charAt(1)))break;1!==v.length||"&"!==v.charAt(0)||p!==h-1?(r=!1,i?this.parameters.push(this.remove_quotes(v)):this.parameters.push(v)):r=!0}r?this.line.length>=1?this.line=this.line.substring(0,this.line.length-1):this.line="":a(this.keyword,this.parameters,c,this.lineNumber)}else n&&!r&&a(this.keyword,this.parameters,c,this.lineNumber)}}}]),e}()},12156:function(e,t,n){"use strict";n.d(t,{k:function(){return d}});var i=n(97079),a=n(10578),r=n(36625),s=n(95627),l=n(37105),o=n(76455),c=n(61901),u=(n(71372),n(71245),n(77950),n(58188),n(13675),n(94898),n(5825),n(67170),n(38857),n(58329),n(76279),n(427),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(46297),n(98882),n(43450),n(27233),n(28673),n(35734),n(88233),n(33093)),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,s.Z)((0,r.Z)().mark((function e(t,n){var i,a,s,l=arguments;return(0,r.Z)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return i=l.length>2&&void 0!==l[2]?l[2]:{},e.prev=1,e.next=4,OpenC3Auth.updateToken(OpenC3Auth.defaultMinValidity);case 4:e.next=9;break;case 6:e.prev=6,e.t0=e["catch"](1),OpenC3Auth.login();case 9:return this.id=this.id+1,e.prev=10,i["scope"]=localStorage.scope,e.next=14,u.Z.post("/openc3-api/api",{jsonrpc:"2.0",method:t,params:n,id:this.id,keyword_params:i},{headers:{Authorization:localStorage.openc3Token,"Content-Type":"application/json-rpc"}});case 14:return a=e.sent,e.abrupt("return",a.data.result);case 18:throw e.prev=18,e.t1=e["catch"](10),s=new Error,e.t1.response?(s.name=e.t1.response.data.error.data.class,s.message=e.t1.response.data.error.data.message):e.t1.request?(s.name="Request error",s.message="Request error, no response received"):s.name="Unknown error",s;case 23:case"end":return e.stop()}}),e,this,[[1,6],[10,18]])})));function t(t,n){return e.apply(this,arguments)}return t}()},{key:"decode_openc3_type",value:function(e){if(null!==e&&"object"===(0,a.Z)(e)&&"Float"==e.json_class&&e.raw){if("NaN"==e.raw)return NaN;if("Infinity"==e.raw)return 1/0;if("-Infinity"==e.raw)return-1/0}return null}},{key:"encode_openc3_type",value:function(e){return Number.isNaN(e)?{json_class:"Float",raw:"NaN"}:e==Number.POSITIVE_INFINITY?{json_class:"Float",raw:"Infinity"}:e==Number.NEGATIVE_INFINITY?{json_class:"Float",raw:"-Infinity"}:null}},{key:"get_all_interface_info",value:function(){return this.exec("get_all_interface_info",[])}},{key:"connect_interface",value:function(e){return this.exec("connect_interface",[e])}},{key:"disconnect_interface",value:function(e){return this.exec("disconnect_interface",[e])}},{key:"get_all_router_info",value:function(){return this.exec("get_all_router_info",[])}},{key:"connect_router",value:function(e){return this.exec("connect_router",[e])}},{key:"disconnect_router",value:function(e){return this.exec("disconnect_router",[e])}},{key:"get_all_target_info",value:function(){return this.exec("get_all_target_info",[])}},{key:"get_tlm_cnts",value:function(e){return this.exec("get_tlm_cnts",[e])}},{key:"get_item",value:function(e,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_oldest_logfile",value:function(){return this.exec("get_oldest_logfile",[])}},{key:"get_target",value:function(e){return this.exec("get_target",[e])}},{key:"get_target_list",value:function(){return this.exec("get_target_list",[])}},{key:"get_telemetry",value:function(e,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,s.Z)((0,r.Z)().mark((function e(t,n,i){var a,s,l,o;return(0,r.Z)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,this.exec("get_tlm_packet",[t,n],{type:i});case 2:if(a=e.sent,null!=a)for(s=a.length,l=null,o=0;o<s;o++)l=this.decode_openc3_type(a[o][1]),null!==l&&(a[o][1]=l);return e.abrupt("return",a);case 5: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,s.Z)((0,r.Z)().mark((function e(t){var n,i,a,s;return(0,r.Z)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,this.exec("get_tlm_values",[t]);case 2:for(n=e.sent,i=n[0].length,a=null,s=0;s<i;s++)a=this.decode_openc3_type(n[0][s]),null!==a&&(n[0][s]=a);return e.abrupt("return",n);case 7: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,s.Z)((0,r.Z)().mark((function e(t,n,a){var s,l;return(0,r.Z)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,this.exec("tlm",[t,n,a]);case 2:return s=e.sent,l=this.decode_openc3_type(s),null!==l&&(0,i.Z)("data"),e.abrupt("return",s);case 6:case"end":return e.stop()}}),e,this)})));function t(t,n,i){return e.apply(this,arguments)}return t}()},{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){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])}},{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){return void 0===t?this.exec("cmd",e):this._cmd("cmd",e,t,n)}},{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:"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:"hashString",value:function(){var e=(0,s.Z)((0,r.Z)().mark((function e(t){var n,i,a;return(0,r.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}()},26883:function(e,t,n){"use strict";n.d(t,{Z:function(){return u}});var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("v-dialog",{attrs:{width:"600"},model:{value:e.show,callback:function(t){e.show=t},expression:"show"}},[n("v-card",[n("v-system-bar",[n("v-spacer"),n("span",[e._v(" Details ")]),n("v-spacer")],1),n("v-card-title",[e._v(" "+e._s(e.targetName)+" "+e._s(e.packetName)+" "+e._s(e.itemName)+" ")]),n("v-card-subtitle",[e._v(e._s(e.details.description))]),n("v-card-text",[n("v-container",{attrs:{fluid:""}},["tlm"===e.type?n("v-row",{attrs:{"no-gutters":""}},[n("v-col",{staticClass:"label",attrs:{cols:"3"}},[e._v("Item Values")]),n("v-col"),n("v-container",{staticClass:"ml-5 pa-0",attrs:{fluid:""}},[n("v-row",{attrs:{"no-gutters":""}},[n("v-col",{staticClass:"label",attrs:{cols:"4"}},[e._v("Raw Value")]),n("v-col",[e._v(e._s(e.rawValue))])],1),n("v-row",{attrs:{"no-gutters":""}},[n("v-col",{staticClass:"label",attrs:{cols:"4"}},[e._v("Converted Value")]),n("v-col",[e._v(e._s(e.convertedValue))])],1),n("v-row",{attrs:{"no-gutters":""}},[n("v-col",{staticClass:"label",attrs:{cols:"4"}},[e._v("Formatted Value")]),n("v-col",[e._v(e._s(e.formattedValue))])],1),n("v-row",{attrs:{"no-gutters":""}},[n("v-col",{staticClass:"label",attrs:{cols:"4"}},[e._v("With Units Value")]),n("v-col",[e._v(e._s(e.unitsValue))])],1)],1)],1):e._e(),n("v-row",{attrs:{"no-gutters":""}},[n("v-col",{staticClass:"label",attrs:{cols:"3"}},[e._v("Bit Offset")]),n("v-col",[e._v(e._s(e.details.bit_offset))])],1),n("v-row",{attrs:{"no-gutters":""}},[n("v-col",{staticClass:"label",attrs:{cols:"3"}},[e._v("Bit Size")]),n("v-col",[e._v(e._s(e.details.bit_size))])],1),e.details.array_size?n("v-row",{attrs:{"no-gutters":""}},[n("v-col",{staticClass:"label",attrs:{cols:"3"}},[e._v("Array Size")]),n("v-col",[e._v(e._s(e.details.array_size))])],1):e._e(),n("v-row",{attrs:{"no-gutters":""}},[n("v-col",{staticClass:"label",attrs:{cols:"3"}},[e._v("Data Type")]),n("v-col",[e._v(e._s(e.details.data_type))])],1),"cmd"===e.type?n("v-row",{attrs:{"no-gutters":""}},[n("v-col",{staticClass:"label",attrs:{cols:"3"}},[e._v("Minimum")]),n("v-col",[e._v(e._s(e.details.minimum))])],1):e._e(),"cmd"===e.type?n("v-row",{attrs:{"no-gutters":""}},[n("v-col",{staticClass:"label",attrs:{cols:"3"}},[e._v("Maximum")]),n("v-col",[e._v(e._s(e.details.maximum))])],1):e._e(),"cmd"===e.type?n("v-row",{attrs:{"no-gutters":""}},[n("v-col",{staticClass:"label",attrs:{cols:"3"}},[e._v("Default")]),n("v-col",[e._v(e._s(e.details.default))])],1):e._e(),n("v-row",{attrs:{"no-gutters":""}},[n("v-col",{staticClass:"label",attrs:{cols:"3"}},[e._v("Format String")]),n("v-col",[e._v(e._s(e.details.format_string))])],1),n("v-row",{attrs:{"no-gutters":""}},[n("v-col",{staticClass:"label",attrs:{cols:"3"}},[e._v("Read Conversion")]),e.details.read_conversion?n("v-col",[e._v(" Class: "+e._s(e.details.read_conversion.class)+" "),n("br"),e._v(" Params: "+e._s(e.details.read_conversion.params)+" ")]):n("v-col")],1),n("v-row",{attrs:{"no-gutters":""}},[n("v-col",{staticClass:"label",attrs:{cols:"3"}},[e._v("Write Conversion")]),e.details.write_conversion?n("v-col",[e._v(" Class: "+e._s(e.details.write_conversion.class)+" "),n("br"),e._v(" Params: "+e._s(e.details.write_conversion.params)+" ")]):n("v-col")],1),n("v-row",{attrs:{"no-gutters":""}},[n("v-col",{staticClass:"label",attrs:{cols:"3"}},[e._v("Id Value")]),n("v-col",[e._v(e._s(e.details.id_value))])],1),n("v-row",{attrs:{"no-gutters":""}},[n("v-col",{staticClass:"label",attrs:{cols:"3"}},[e._v("Units Full")]),n("v-col",[e._v(e._s(e.details.units_full))])],1),n("v-row",{attrs:{"no-gutters":""}},[n("v-col",{staticClass:"label",attrs:{cols:"3"}},[e._v("Units Abbr")]),n("v-col",[e._v(e._s(e.details.units))])],1),n("v-row",{attrs:{"no-gutters":""}},[n("v-col",{staticClass:"label",attrs:{cols:"3"}},[e._v("Endianness")]),n("v-col",[e._v(e._s(e.details.endianness))])],1),e.details.states?n("v-row",{attrs:{"no-gutters":""}},[n("v-col",{staticClass:"label",attrs:{cols:"3"}},[e._v("States")]),n("v-col"),n("v-container",{staticClass:"ml-5 pa-0",attrs:{fluid:""}},e._l(e.details.states,(function(t,i){return n("v-row",{key:i,attrs:{"no-gutters":""}},[n("v-col",{staticClass:"label",attrs:{cols:"4"}},[e._v(e._s(i))]),n("v-col",[e._v(e._s(t.value))])],1)})),1)],1):n("v-row",{attrs:{"no-gutters":""}},[n("v-col",{staticClass:"label",attrs:{cols:"3"}},[e._v("States")]),n("v-col",[e._v("None")])],1),e.details.limits?n("v-row",{attrs:{"no-gutters":""}},[n("v-col",{staticClass:"label",attrs:{cols:"3"}},[e._v("Limits")]),n("v-col"),n("v-container",{staticClass:"ml-5 pa-0",attrs:{fluid:""}},e._l(e.details.limits,(function(t,i){return n("v-row",{key:i,attrs:{"no-gutters":""}},[n("v-col",{staticClass:"label",attrs:{cols:"4"}},[e._v(e._s(i))]),e._v(" "+e._s(e.formatLimit(t))+" "),n("v-col")],1)})),1)],1):n("v-row",{attrs:{"no-gutters":""}},[n("v-col",{staticClass:"label",attrs:{cols:"3"}},[e._v("Limits")]),n("v-col",[e._v("None")])],1),e.details.meta?n("v-row",{attrs:{"no-gutters":""}},[n("v-col",{staticClass:"label",attrs:{cols:"3"}},[e._v("Meta")]),n("v-col"),n("v-container",{staticClass:"ml-5 pa-0",attrs:{fluid:""}},e._l(e.details.meta,(function(t,i){return n("v-row",{key:i,attrs:{"no-gutters":""}},[n("v-col",{staticClass:"label",attrs:{cols:"4"}},[e._v(e._s(i))]),n("v-col",[e._v(e._s(t))])],1)})),1)],1):n("v-row",{attrs:{"no-gutters":""}},[n("v-col",{staticClass:"label",attrs:{cols:"3"}},[e._v("Meta")]),n("v-col",[e._v("None")])],1)],1)],1)],1)],1)},a=[],r=(n(74083),n(18178),n(12156)),s={props:{type:{default:"tlm",validator:function(e){return-1!==["cmd","tlm"].indexOf(e)}},targetName:String,packetName:String,itemName:String,value:Boolean},data:function(){return{details:Object,updater:null,rawValue:null,convertedValue:null,formattedValue:null,unitsValue:null}},computed:{show:{get:function(){return this.value},set:function(e){this.$emit("input",e)}}},created:function(){this.api=new r.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){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;"tlm"===this.type?this.api.get_item(this.targetName,this.packetName,this.itemName).then((function(t){e.details=t})):this.api.get_parameter(this.targetName,this.packetName,this.itemName).then((function(t){e.details=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}}},l=s,o=(n(99784),n(23287)),c=(0,o.Z)(l,i,a,!1,null,"2d350830",null),u=c.exports},74132:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return h}});var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[n("v-textarea",{class:e.valueClass,style:e.computedStyle,attrs:{solo:"",dense:"",readonly:"","hide-details":"",placeholder:"Value",height:e.height,value:e._value,"data-test":"array-widget"},on:{contextmenu:e.showContextMenu}}),n("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"}},[n("v-list",e._l(e.contextMenuOptions,(function(t,i){return n("v-list-item",{key:i,on:{click:function(e){return e.stopPropagation(),t.action.apply(null,arguments)}}},[n("v-list-item-title",[e._v(e._s(t.title))])],1)})),1)],1),n("details-dialog",{attrs:{"target-name":e.parameters[0],"packet-name":e.parameters[1],"item-name":e.parameters[2]},model:{value:e.viewDetails,callback:function(t){e.viewDetails=t},expression:"viewDetails"}})],1)},a=[],r=n(81150),s=(n(68995),n(45794),n(12406)),l=n(71541),o=n(26883),c=(n(80131),{components:{DetailsDialog:o.Z},data:function(){return{height:100,itemsPerRow:4,formatter:null}},mixins:[s.Z,l.Z],created:function(){this.parameters[3]&&(this.width=parseInt(this.parameters[3])),this.parameters[4]&&(this.height=parseInt(this.parameters[4])),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",a=0;if(Array.isArray(e)){var s,l=(0,r.Z)(e);try{for(l.s();!(s=l.n()).done;){var o,c=s.value;"nil"!==(null===(o=this.formatter)||void 0===o?void 0:o.toLowerCase())?t+=sprintf(this.formatter,c):t+=c,a+=1,a%this.itemsPerRow===0?(a=0,t+=i):t+=n}}catch(u){l.e(u)}finally{l.f()}return t.trim()}return e}}}),u=c,d=(n(61600),n(23287)),m=(0,d.Z)(u,i,a,!1,null,"048f5302",null),h=m.exports},3770:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return h}});var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[n("v-textarea",{class:e.valueClass,style:e.computedStyle,attrs:{solo:"",dense:"",readonly:"","hide-details":"",placeholder:"Value",height:e.height,value:e._value,"data-test":"valueText"},on:{contextmenu:e.showContextMenu}}),n("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"}},[n("v-list",e._l(e.contextMenuOptions,(function(t,i){return n("v-list-item",{key:i,on:{click:function(e){return e.stopPropagation(),t.action.apply(null,arguments)}}},[n("v-list-item-title",[e._v(e._s(t.title))])],1)})),1)],1),n("details-dialog",{attrs:{"target-name":e.parameters[0],"packet-name":e.parameters[1],"item-name":e.parameters[2]},model:{value:e.viewDetails,callback:function(t){e.viewDetails=t},expression:"viewDetails"}})],1)},a=[],r=n(81150),s=(n(68995),n(12406)),l=n(71541),o=n(26883),c=(n(80131),{components:{DetailsDialog:o.Z},data:function(){return{width:400,height:600,bytesPerWord:4,wordsPerRow:4,addrFormat:null,formatter:"%02X"}},mixins:[s.Z,l.Z],created:function(){this.parameters[3]&&(this.width=parseInt(this.parameters[3])),this.parameters[4]&&(this.height=parseInt(this.parameters[4])),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=parseInt(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=" ",a="\n",s=0,l=0,o=this.bytesPerWord*this.wordsPerRow,c=(0,r.Z)(e.raw);try{for(c.s();!(n=c.n()).done;){var u=n.value;this.addrFormat&&0===s&&(t+=sprintf(this.addrFormat,l),l+=o),t+=sprintf(this.formatter,u),s+=1,s%o===0?(s=0,t+=a):s%this.bytesPerWord===0&&(t+=i)}}catch(d){c.e(d)}finally{c.f()}}return t}}}),u=c,d=(n(57437),n(23287)),m=(0,d.Z)(u,i,a,!1,null,"2fbe28c1",null),h=m.exports},35355:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return c}});var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[n("v-btn",{staticClass:"ma-1",style:e.computedStyle,attrs:{color:"primary"},on:{click:e.onClick}},[e._v(" "+e._s(e.buttonText)+" ")]),n("v-dialog",{attrs:{"max-width":"300"},model:{value:e.displaySendHazardous,callback:function(t){e.displaySendHazardous=t},expression:"displaySendHazardous"}},[n("v-card",{staticClass:"pa-3"},[n("v-card-title",{staticClass:"headline"},[e._v("Hazardous")]),n("v-card-text",[e._v(" Warning: Command is Hazardous. Send? ")]),n("v-btn",{staticClass:"primary mr-4",on:{click:e.sendHazardousCmd}},[e._v("Yes")]),n("v-btn",{staticClass:"primary",on:{click:e.cancelHazardousCmd}},[e._v("No")])],1)],1)],1)},a=[],r=n(96161),s=r.Z,l=n(23287),o=(0,l.Z)(s,i,a,!1,null,null,null),c=o.exports},8617:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return u}});var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("svg",{attrs:{id:"canvas",width:e.width,height:e.height}},e._l(e.widgets,(function(t,i){return n(t.type,e._g({key:i,tag:"component",attrs:{target:t.target,parameters:t.parameters,settings:t.settings,widgets:t.widgets,name:t.name,line:t.line,lineNumber:t.lineNumber}},e.$listeners))})),1)},a=[],r=n(37230),s={mixins:[r.Z],computed:{width:function(){return this.parameters[0]+"px"},height:function(){return this.parameters[1]+"px"}}},l=s,o=(n(91517),n(23287)),c=(0,o.Z)(l,i,a,!1,null,"44b6a4ed",null),u=c.exports},54383:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return u}});var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("circle",{attrs:{cx:e.parameters[0],cy:e.parameters[1],r:e.parameters[3],fill:e.parameters[2]}})},a=[],r=n(23466),s={mixins:[r.Z]},l=s,o=n(23287),c=(0,o.Z)(l,i,a,!1,null,null,null),u=c.exports},72282:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return d}});var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return e.imageUrl?n("image",{attrs:{href:e.imageUrl,x:e.parameters[1],y:e.parameters[2],width:e.width,height:e.height}}):e._e()},a=[],r=(n(44112),n(23466)),s=n(91672),l={mixins:[r.Z,s.Z],data:function(){return{imageUrl: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.parameters[0].startsWith("http")?this.imageUrl=this.parameters[0]:this.getPresignedUrl(this.parameters[0]).then((function(t){e.imageUrl=t}))}},o=l,c=n(23287),u=(0,c.Z)(o,i,a,!1,null,null,null),d=u.exports},350:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return p}});var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("g",[e._l(e.images,(function(t){return n("image",{directives:[{name:"show",rawName:"v-show",value:t.value==e.selectedValue,expression:"image.value == selectedValue"}],key:t.value,attrs:{href:t.url,x:t.x,y:t.y,width:t.width,height:t.height}})})),e.defaultImage?n("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}}):e._e()],2)},a=[],r=n(28378),s=n(36625),l=n(95627),o=(n(18178),n(58188),n(43450),n(95342),n(44112),n(28673),n(6886),n(23466)),c=n(91672),u={mixins:[o.Z,c.Z],data:function(){return{images:[],defaultImage:null}},computed:{valueId:function(){return"".concat(this.parameters[0],"__").concat(this.parameters[1],"__").concat(this.parameters[2],"__").concat(this.parameters[3]||"RAW")},selectedValue:function(){return this.$store.state.tlmViewerValues[this.valueId][0]},showDefault:function(){var e=this;return!this.images.some((function(t){return t.value==e.selectedValue}))}},watch:{valueId:{immediate:!0,handler:function(e){this.$store.commit("tlmViewerAddItem",e)}}},created:function(){var e=this,t=this.settings.filter((function(e){return"IMAGE"===e[0]})).map(function(){var t=(0,l.Z)((0,s.Z)().mark((function t(n){var i;return(0,s.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,r.Z)((0,r.Z)({},n),{},{url:i}):this.getPresignedUrl(i).then((function(t){e.defaultImage=(0,r.Z)((0,r.Z)({},n),{},{url:t})}))}},destroyed:function(){this.$store.commit("tlmViewerDeleteItem",this.valueId)}},d=u,m=n(23287),h=(0,m.Z)(d,i,a,!1,null,null,null),p=h.exports},72106:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return u}});var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("text",{attrs:{x:e.parameters[0],y:e.parameters[1],fill:e.fillColor}},[e._v(" "+e._s(e.parameters[2])+" ")])},a=[],r=n(23466),s={mixins:[r.Z],computed:{fillColor:function(){return this.parameters[3]?this.parameters[3]:"black"}}},l=s,o=n(23287),c=(0,o.Z)(l,i,a,!1,null,null,null),u=c.exports},15986:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return u}});var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("text",{attrs:{x:e.parameters[3],y:e.parameters[4],"font-size":e.fontSize,fill:e.fillColor}},[e._v(" "+e._s(e._value)+" ")])},a=[],r=(n(18178),n(23466)),s={mixins:[r.Z],data:function(){return{valueId:null}},computed:{_value:function(){return this.$store.state.tlmViewerValues[this.valueId][0]},fontSize:function(){return this.parameters[5]?this.parameters[5]+"px":"14px"},fillColor:function(){return this.parameters[6]?this.parameters[6]:"black"}},created:function(){this.valueId="".concat(this.parameters[0],"__").concat(this.parameters[1],"__").concat(this.parameters[2],"__CONVERTED"),this.$store.commit("tlmViewerAddItem",this.valueId)},destroyed:function(){this.$store.commit("tlmViewerDeleteItem",this.valueId)}},l=s,o=n(23287),c=(0,o.Z)(l,i,a,!1,null,null,null),u=c.exports},50720:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return u}});var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("line",{style:e.calcStyle,attrs:{x1:e.parameters[0],y1:e.parameters[1],x2:e.parameters[2],y2:e.parameters[3]}})},a=[],r=n(23466),s={mixins:[r.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=s,o=n(23287),c=(0,o.Z)(l,i,a,!1,null,null,null),u=c.exports},5649:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return u}});var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("line",{style:e.calcStyle,attrs:{x1:e.parameters[3],y1:e.parameters[4],x2:e.parameters[5],y2:e.parameters[6]}})},a=[],r=(n(68995),n(18178),n(23466)),s={mixins:[r.Z],data:function(){return{valueId:0}},computed:{calcStyle:function(){var e=this.parameters[8];1===parseInt(this.$store.state.tlmViewerValues[this.valueId][0])&&(e=this.parameters[7]);var t=1;return this.parameters[9]&&(t=this.parameters[9]),"stroke:"+e+";stroke-width:"+t}},created:function(){this.valueId="".concat(this.parameters[0],"__").concat(this.parameters[1],"__").concat(this.parameters[2],"__RAW"),this.$store.commit("tlmViewerAddItem",this.valueId)},destroyed:function(){this.$store.commit("tlmViewerDeleteItem",this.valueId)}},l=s,o=n(23287),c=(0,o.Z)(l,i,a,!1,null,null,null),u=c.exports},79371:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return u}});var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("v-checkbox",{style:e.computedStyle,attrs:{"hide-details":"",dense:"",label:e.label},model:{value:e.value,callback:function(t){e.value=t},expression:"value"}})},a=[],r=(n(58188),n(1939),n(23466)),s={mixins:[r.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=s,o=n(23287),c=(0,o.Z)(l,i,a,!1,null,null,null),u=c.exports},57810:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return u}});var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("v-select",{style:e.computedStyle,attrs:{"hide-details":"",dense:"",items:e.items},model:{value:e.value,callback:function(t){e.value=t},expression:"value"}})},a=[],r=(n(58188),n(1939),n(23466)),s={mixins:[r.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=s,o=n(23287),c=(0,o.Z)(l,i,a,!1,null,null,null),u=c.exports},41780:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return d}});var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n(e.widgetType,e._b({tag:"component"},"component",Object.assign({},e.$props,e.$attrs),!1))},a=[],r=n(36625),s=n(95627),l=(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,s.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]])})))()}}),o=l,c=n(23287),u=(0,c.Z)(o,i,a,!1,null,null,null),d=u.exports},12558:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return d}});var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{ref:"container",staticClass:"d-flex flex-row",style:e.computedStyle},[n("value-widget",{attrs:{parameters:e.getParameters,settings:e.settings,"format-string":e.parameters[3]}})],1)},a=[],r=n(23466),s=n(84952),l={mixins:[r.Z],components:{ValueWidget:s["default"]},computed:{getParameters:function(){return[this.parameters[0],this.parameters[1],this.parameters[2],this.parameters[4]]}}},o=l,c=n(23287),u=(0,c.Z)(o,i,a,!1,null,null,null),d=u.exports},24122:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return u}});var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{ref:"container",staticClass:"d-flex flex-row"},e._l(e.widgets,(function(t,i){return n(t.type,e._g({key:i,tag:"component",attrs:{target:t.target,parameters:t.parameters,settings:t.settings,widgets:t.widgets,name:t.name,line:t.line,lineNumber:t.lineNumber}},e.$listeners))})),1)},a=[],r=n(37230),s={mixins:[r.Z]},l=s,o=n(23287),c=(0,o.Z)(l,i,a,!1,null,null,null),u=c.exports},93534:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return d}});var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[n("v-banner",{attrs:{"single-line":""}},[e._v(e._s(e.parameters.join(" ")))]),n("horizontal-widget",e._g({attrs:{parameters:e.parameters,settings:e.settings,widgets:e.widgets}},e.$listeners))],1)},a=[],r=n(24122),s=n(37230),l={mixins:[s.Z],components:{HorizontalWidget:r["default"]}},o=l,c=(n(48754),n(23287)),u=(0,c.Z)(o,i,a,!1,null,"76a0c989",null),d=u.exports},60809:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return u}});var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("iframe",{attrs:{src:e.src,width:e.width,height:e.height}})},a=[],r=n(23466),s={mixins:[r.Z],computed:{src:function(){return this.parameters[0]},width:function(){return this.parameters[1]+"px"},height:function(){return this.parameters[2]+"px"}}},l=s,o=n(23287),c=(0,o.Z)(l,i,a,!1,null,null,null),u=c.exports},19226:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return m}});var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("img",{attrs:{src:e.src,alt:e.itemFullName,width:e.parameters[4],height:e.parameters[5]}})},a=[],r=(n(18178),n(58188),n(49228),n(12156)),s=n(23466),l=n(78493),o={mixins:[s.Z],data:function(){return{api:new r.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(e["error"])this.$notify.serious({body:e["error"]});else{var t=JSON.parse(e);if(t.length){var n=t[t.length-1];this.imageData=n[this.itemFullName]}}},subscribe:function(){var e=this;this.cable.createSubscription("StreamingChannel",localStorage.scope,{received:function(t){return e.received(t)},connected:function(){e.subscription.perform("add",{scope:localStorage.scope,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,a,!1,null,null,null),m=d.exports},12112:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return u}});var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("span",{staticClass:"pa-1 mt-1 label",style:[e.cssProps,e.computedStyle],attrs:{"data-test":"label"}},[e._v(" "+e._s(e.labelText)+" ")])},a=[],r=n(23466),s={mixins:[r.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=s,o=(n(42717),n(23287)),c=(0,o.Z)(l,i,a,!1,null,"c4066fac",null),u=c.exports},7881:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return m}});var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{ref:"container",staticClass:"d-flex flex-row",style:e.computedStyle},[n("label-widget",{attrs:{parameters:e.labelName,settings:e.settings}}),n("led-widget",{attrs:{parameters:e.parameters,settings:e.settings}})],1)},a=[],r=n(23466),s=n(12112),l=n(75337),o={mixins:[r.Z],components:{LabelWidget:s["default"],LedWidget:l["default"]},computed:{labelName:function(){return[this.parameters[2]+":"]}}},c=o,u=n(23287),d=(0,u.Z)(c,i,a,!1,null,null,null),m=d.exports},81002:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return m}});var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{ref:"container",staticClass:"d-flex flex-row"},[n("label-widget",{style:e.computedStyle,attrs:{parameters:e.labelName,settings:e.settings,"widget-index":0}}),n("progressbar-widget",{style:e.computedStyle,attrs:{parameters:e.parameters,settings:e.settings,"widget-index":1}})],1)},a=[],r=n(23466),s=n(12112),l=n(5775),o={mixins:[r.Z],components:{LabelWidget:s["default"],ProgressbarWidget:l["default"]},computed:{labelName:function(){return[this.parameters[2]+":"]}}},c=o,u=n(23287),d=(0,u.Z)(c,i,a,!1,null,null,null),m=d.exports},92884:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return m}});var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{ref:"container",staticClass:"d-flex flex-row"},[n("label-widget",{style:e.computedStyle,attrs:{parameters:e.labelName,settings:e.settings,line:e.line,lineNumber:e.lineNumber,"widget-index":0}}),n("value-widget",{style:e.computedStyle,attrs:{parameters:e.parameters,settings:e.settings,line:e.line,lineNumber:e.lineNumber,"widget-index":1}})],1)},a=[],r=n(23466),s=n(12112),l=n(84952),o={mixins:[r.Z],components:{LabelWidget:s["default"],ValueWidget:l["default"]},computed:{labelName:function(){return[this.parameters[2]+":"]}}},c=o,u=n(23287),d=(0,u.Z)(c,i,a,!1,null,null,null),m=d.exports},65965:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return h}});var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{ref:"container",staticClass:"d-flex flex-row"},[n("label-widget",{style:e.computedStyle,attrs:{parameters:e.labelName,settings:e.settings,"widget-index":0}}),n("value-widget",{style:e.computedStyle,attrs:{parameters:e.parameters.slice(0,3),settings:e.settings,"widget-index":1}})],1)},a=[],r=(n(34115),n(634),n(23466)),s=n(12112),l=n(84952),o=n(12156),c={mixins:[r.Z],data:function(){return{description:""}},components:{LabelWidget:s["default"],ValueWidget:l["default"]},computed:{labelName:function(){return[this.description]}},created:function(){var e=this;this.parameters.length>3?this.description=this.parameters[3]:(this.api=new o.k,this.api.get_item(this.parameters[0],this.parameters[1],this.parameters[2]).then((function(t){e.description=t["description"]})))}},u=c,d=n(23287),m=(0,d.Z)(u,i,a,!1,null,null,null),h=m.exports},1820:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return m}});var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{ref:"container",staticClass:"d-flex flex-row",style:[e.defaultStyle,e.computedStyle]},[n("labelvalue-widget",{attrs:{parameters:e.parameters,settings:e.settings}}),n("limitsbar-widget",{attrs:{parameters:e.limitsBarParameters,settings:e.settings.filter((function(e){return 1==e[0]})).map((function(e){return e.slice(1)})),"widget-index":3}})],1)},a=[],r=(n(58188),n(1939),n(68995),n(92884)),s=n(55e3),l=n(23466),o={mixins:[l.Z],components:{LabelvalueWidget:r["default"],LimitsbarWidget:s["default"]},data:function(){return{overallWidth:"300px"}},created:function(){var e=0;this.settings.forEach((function(t){"WIDTH"===t[1]&&(e+=parseInt(t[2]))})),0!=e&&(this.overallWidth=e+"px")},computed:{limitsBarParameters:function(){return[this.parameters[0],this.parameters[1],this.parameters[2],"CONVERTED"]},defaultStyle:function(){return{width:this.overallWidth}}}},c=o,u=n(23287),d=(0,u.Z)(c,i,a,!1,null,null,null),m=d.exports},22075:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return h}});var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{ref:"container",staticClass:"d-flex flex-column",style:e.computedStyle},[n("label-widget",{attrs:{parameters:[e.parameters[2]],settings:e.settings,"widget-index":0}}),n("limitscolumn-widget",{attrs:{parameters:e.limitsColumnParameters,settings:e.settings,"widget-index":1}}),n("value-widget",{attrs:{parameters:e.parameters,settings:e.settings,"widget-index":2}})],1)},a=[],r=n(12112),s=n(84952),l=n(71229),o=n(23466),c={mixins:[o.Z],components:{LabelWidget:r["default"],ValueWidget:s["default"],LimitscolumnWidget:l["default"]},created:function(){this.settings.push(["WIDTH","100"])},computed:{limitsColumnParameters:function(){return[this.parameters[0],this.parameters[1],this.parameters[2],"CONVERTED"]}}},u=c,d=n(23287),m=(0,d.Z)(u,i,a,!1,null,null,null),h=m.exports},10078:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return m}});var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{ref:"container",staticClass:"d-flex flex-row",style:[e.defaultStyle,e.computedStyle]},[n("labelvalue-widget",{attrs:{parameters:e.labelValueParameters}}),n("rangebar-widget",{attrs:{parameters:e.parameters}})],1)},a=[],r=n(92884),s=n(71276),l=n(23466),o={mixins:[l.Z],components:{LabelvalueWidget:r["default"],RangebarWidget:s["default"]},computed:{labelValueParameters:function(){return[this.parameters[0],this.parameters[1],this.parameters[2],"WITH_UNITS"]},defaultStyle:function(){return{width:"300px"}}}},c=o,u=n(23287),d=(0,u.Z)(c,i,a,!1,null,null,null),m=d.exports},75337:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return u}});var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"led mt-2",style:[e.cssProps,e.computedStyle]})},a=[],r=(n(68995),n(58188),n(1939),n(18178),n(23466)),s={mixins:[r.Z],data:function(){return{valueId:null,colors:{TRUE:"green",FALSE:"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=this.$store.state.tlmViewerValues[this.valueId][0],t=this.colors[e];return t||(t=this.colors.ANY),t||(t="BLACK"),{"--height":this.height+"px","--width":this.width+"px","--color":t.toLowerCase()}}},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.$store.commit("tlmViewerAddItem",this.valueId)},destroyed:function(){this.$store.commit("tlmViewerDeleteItem",this.valueId)}},l=s,o=(n(88095),n(23287)),c=(0,o.Z)(l,i,a,!1,null,"a1dc0278",null),u=c.exports},55e3:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return m}});var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"limitsbar",style:[e.cssProps,e.computedStyle]},[e._m(0)])},a=[function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"limitsbar__container"},[n("div",{staticClass:"limitsbar__redlow"}),n("div",{staticClass:"limitsbar__redhigh"}),n("div",{staticClass:"limitsbar__yellowlow"}),n("div",{staticClass:"limitsbar__yellowhigh"}),n("div",{staticClass:"limitsbar__greenlow"}),n("div",{staticClass:"limitsbar__greenhigh"}),n("div",{staticClass:"limitsbar__blue"}),n("div",{staticClass:"limitsbar__line"}),n("div",{staticClass:"limitsbar__arrow"})])}],r=(n(58188),n(1939),n(68995),n(18178),n(23466)),s=n(12156),l="DEFAULT",o={mixins:[r.Z],data:function(){return{width:"100%",height:20,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=this.$store.state.tlmViewerValues[this.valueId][0],t=this.modifyLimits(this.limitsSettings[this.selectedLimitsSet]);return this.calcLimits(t),{"--height":this.height+"px","--width":this.width,"--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 s.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]))}));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.$store.commit("tlmViewerAddItem",this.valueId)},destroyed:function(){this.$store.commit("tlmViewerDeleteItem",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(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(64205),n(23287)),d=(0,u.Z)(c,i,a,!1,null,"692162b3",null),m=d.exports},71905:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return u}});var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{ref:"container",staticClass:"d-flex flex-row"},[n("div",{staticClass:"led align-self-center",style:[e.cssProps,e.computedStyle]}),n("label-widget",{style:e.computedStyle,attrs:{parameters:e.labelName,settings:e.settings,"widget-index":1}})],1)},a=[],r=(n(68995),n(12406)),s={mixins:[r.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(){this.$store.state.tlmViewerValues[this.valueId][0];return{"--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=s,o=(n(43806),n(23287)),c=(0,o.Z)(l,i,a,!1,null,"71a68fe2",null),u=c.exports},71229:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return m}});var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"limitsbar",style:[e.cssProps,e.computedStyle]},[e._m(0)])},a=[function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"limitsbar__container"},[n("div",{staticClass:"limitsbar__redlow"}),n("div",{staticClass:"limitsbar__redhigh"}),n("div",{staticClass:"limitsbar__yellowlow"}),n("div",{staticClass:"limitsbar__yellowhigh"}),n("div",{staticClass:"limitsbar__greenlow"}),n("div",{staticClass:"limitsbar__greenhigh"}),n("div",{staticClass:"limitsbar__blue"}),n("div",{staticClass:"limitsbar__line"}),n("div",{staticClass:"limitsbar__arrow"})])}],r=(n(18178),n(68995),n(23466)),s=n(12156),l="DEFAULT",o={mixins:[r.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=this.$store.state.tlmViewerValues[this.valueId][0];return 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 s.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);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.$store.commit("tlmViewerAddItem",this.valueId)},destroyed:function(){this.$store.commit("tlmViewerDeleteItem",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,a=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 r=parseInt((e-a)/i*100);return r>100?100:r<0?0:r}},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(20694),n(23287)),d=(0,u.Z)(c,i,a,!1,null,"1ab30c30",null),m=d.exports},63819:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return Z}});var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("graph",{ref:"graph"+e.id,attrs:{id:e.id,state:e.state,"selected-graph-id":e.id,"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":""}})},a=[],r=(n(58188),n(1939),n(68995),n(23466)),s=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[n("v-card",{nativeOn:{click:function(t){return e.$emit("click")}}},[n("v-system-bar",{directives:[{name:"show",rawName:"v-show",value:!e.hideSystemBar,expression:"!hideSystemBar"}],class:e.selectedGraphId===e.id?"active":"inactive"},[n("div",{directives:[{name:"show",rawName:"v-show",value:0!==e.errors.length,expression:"errors.length !== 0"}],staticClass:"mx-2"},[n("v-tooltip",{attrs:{top:""},scopedSlots:e._u([{key:"activator",fn:function(t){var i=t.on,a=t.attrs;return[n("div",e._g(e._b({},"div",a,!1),i),[n("v-icon",{attrs:{"data-test":"error-graph-icon"},on:{click:function(t){e.errorDialog=!0}}},[e._v("mdi-alert")])],1)]}}])},[n("span",[e._v("Errors")])])],1),n("v-tooltip",{attrs:{top:""},scopedSlots:e._u([{key:"activator",fn:function(t){var i=t.on,a=t.attrs;return[n("div",e._g(e._b({},"div",a,!1),i),[n("v-icon",{attrs:{"data-test":"edit-graph-icon"},on:{click:function(t){e.editGraph=!0}}},[e._v(" mdi-pencil ")])],1)]}}])},[n("span",[e._v(" Edit ")])]),n("v-spacer"),n("span",[e._v(e._s(e.title))]),n("v-spacer"),n("div",{directives:[{name:"show",rawName:"v-show",value:e.expand,expression:"expand"}]},[n("v-tooltip",{attrs:{top:""},scopedSlots:e._u([{key:"activator",fn:function(t){var i=t.on,a=t.attrs;return[n("div",e._g(e._b({},"div",a,!1),i),[n("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 ")]),n("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)]}}])},[n("span",{directives:[{name:"show",rawName:"v-show",value:e.calcFullSize,expression:"calcFullSize"}]},[e._v(" Collapse ")]),n("span",{directives:[{name:"show",rawName:"v-show",value:!e.calcFullSize,expression:"!calcFullSize"}]},[e._v(" Expand ")])])],1),n("div",{directives:[{name:"show",rawName:"v-show",value:e.expand,expression:"expand"}]},[n("v-tooltip",{attrs:{top:""},scopedSlots:e._u([{key:"activator",fn:function(t){var i=t.on,a=t.attrs;return[n("div",e._g(e._b({},"div",a,!1),i),[n("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 ")]),n("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)]}}])},[n("span",{directives:[{name:"show",rawName:"v-show",value:e.fullWidth,expression:"fullWidth"}]},[e._v(" Collapse Width ")]),n("span",{directives:[{name:"show",rawName:"v-show",value:!e.fullWidth,expression:"!fullWidth"}]},[e._v(" Expand Width ")])])],1),n("div",{directives:[{name:"show",rawName:"v-show",value:e.expand,expression:"expand"}]},[n("v-tooltip",{attrs:{top:""},scopedSlots:e._u([{key:"activator",fn:function(t){var i=t.on,a=t.attrs;return[n("div",e._g(e._b({},"div",a,!1),i),[n("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 ")]),n("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)]}}])},[n("span",{directives:[{name:"show",rawName:"v-show",value:e.fullHeight,expression:"fullHeight"}]},[e._v(" Collapse Height ")]),n("span",{directives:[{name:"show",rawName:"v-show",value:!e.fullHeight,expression:"!fullHeight"}]},[e._v(" Expand Height ")])])],1),n("v-tooltip",{attrs:{top:""},scopedSlots:e._u([{key:"activator",fn:function(t){var i=t.on,a=t.attrs;return[n("div",e._g(e._b({},"div",a,!1),i),[n("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 ")]),n("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)]}}])},[n("span",{directives:[{name:"show",rawName:"v-show",value:e.expand,expression:"expand"}]},[e._v(" Minimize ")]),n("span",{directives:[{name:"show",rawName:"v-show",value:!e.expand,expression:"!expand"}]},[e._v(" Maximize ")])]),n("v-tooltip",{attrs:{top:""},scopedSlots:e._u([{key:"activator",fn:function(t){var i=t.on,a=t.attrs;return[n("div",e._g(e._b({},"div",a,!1),i),[n("v-icon",{attrs:{"data-test":"close-graph-icon"},on:{click:function(t){return e.$emit("close-graph")}}},[e._v(" mdi-close-box ")])],1)]}}])},[n("span",[e._v(" Close ")])])],1),n("v-expand-transition",[n("div",{directives:[{name:"show",rawName:"v-show",value:e.expand,expression:"expand"}],ref:"chart",staticClass:"pa-1",attrs:{id:"chart"}},[n("div",{attrs:{id:"chart"+e.id}}),n("div",{attrs:{id:"betweenCharts"}}),n("div",{directives:[{name:"show",rawName:"v-show",value:!e.hideOverview,expression:"!hideOverview"}],attrs:{id:"overview"+e.id}})])])],1),n("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"}},[n("v-system-bar",[n("v-spacer"),n("span",[e._v("Edit Graph")]),n("v-spacer")],1),n("v-card",{staticClass:"pa-3"},[n("v-row",{attrs:{dense:""}},[n("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),n("v-card-text",{staticClass:"pa-0"},[e._v(" Select a start date/time for the graph. Leave blank for start now. ")]),n("date-time-chooser",{attrs:{required:!1,"date-label":"Start Date","time-label":"Start Time"},on:{"date-time":function(t){e.graphStartDateTime=t}}}),n("v-card-text",{staticClass:"pa-0"},[e._v(" Select a end date/time for the graph. Leave blank for continuous real-time graphing. ")]),n("date-time-chooser",{attrs:{"date-label":"End Date","time-label":"End Time"},on:{"date-time":function(t){e.graphEndDateTime=t}}}),n("v-row",{attrs:{dense:""}},[n("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),n("v-card-text",{staticClass:"pa-0"},[e._v(" Optional Y axis settings. ")]),n("v-row",{attrs:{dense:""}},[n("v-col",{staticClass:"px-2"},[n("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),n("v-col",{staticClass:"px-2"},[n("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),n("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(t){var i=t.item;return[n("v-tooltip",{attrs:{top:""},scopedSlots:e._u([{key:"activator",fn:function(t){var a=t.on,r=t.attrs;return[n("div",e._g(e._b({},"div",r,!1),a),[n("v-btn",{attrs:{icon:"","data-test":"delete-item-icon"+i.itemId},on:{click:function(){return e.removeItems([i])}}},[n("v-icon",[e._v("mdi-delete")])],1)],1)]}}],null,!0)},[n("span",[e._v("Remove")])])]}},{key:"no-data",fn:function(){return[n("span",[e._v("Currently no items on this graph")])]},proxy:!0}])}),n("v-card-actions",[n("v-btn",{attrs:{color:"primary"},on:{click:function(t){return e.editGraphClose()}}},[e._v(" Ok ")])],1)],1)],1),n("v-dialog",{attrs:{"max-width":"600"},model:{value:e.errorDialog,callback:function(t){e.errorDialog=t},expression:"errorDialog"}},[n("v-system-bar",[n("v-spacer"),n("span",[e._v("Errors")]),n("v-spacer")],1),n("v-card",{staticClass:"pa-3"},[n("v-row",{attrs:{dense:""}},[n("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),n("v-row",{staticClass:"my-3"},[n("v-textarea",{attrs:{readonly:"",rows:"8",value:e.error}})],1),n("v-row",[n("v-btn",{attrs:{block:""},on:{click:e.clearErrors}},[e._v(" Clear ")])],1)],1)],1),e.editGraphMenu?n("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"}},[n("v-list",[n("v-list-item",{on:{click:function(t){e.editGraph=!0}}},[n("v-list-item-title",{staticStyle:{cursor:"pointer"}},[e._v(" Edit "+e._s(e.title)+" ")])],1)],1)],1):e._e(),e.editItem?n("v-dialog",{attrs:{"max-width":"600"},on:{keydown:function(t){if(!t.type.indexOf("key")&&e._k(t.keyCode,"esc",27,t.key,["Esc","Escape"]))return null;e.editItem=!1}},model:{value:e.editItem,callback:function(t){e.editItem=t},expression:"editItem"}},[n("v-card",{staticClass:"pa-3"},[n("v-card-title",{staticClass:"headline"},[e._v("Edit Item")]),n("v-select",{attrs:{outlined:"","hide-details":"",label:"Value Type",items:e.valueTypes},model:{value:e.currentType,callback:function(t){e.currentType=t},expression:"currentType"}}),n("v-card-actions",[n("v-btn",{attrs:{color:"primary"},on:{click:function(t){return e.closeEditItem()}}},[e._v("Ok")])],1)],1)],1):e._e(),e.itemMenu?n("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"}},[n("v-list",[n("v-list-item",{on:{click:function(t){return e.openEditItem()}}},[n("v-list-item-title",{staticStyle:{cursor:"pointer"}},[e._v(" Edit "+e._s(e.selectedItem.itemName)+" ")])],1),n("v-list-item",{on:{click:function(t){return e.removeItems([e.selectedItem])}}},[n("v-list-item-title",{staticStyle:{cursor:"pointer"}},[e._v(" Delete "+e._s(e.selectedItem.itemName)+" ")])],1)],1)],1):e._e(),e.legendMenu?n("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"}},[n("v-list",[n("v-list-item",{on:{click:function(t){return e.moveLegend("top")}}},[n("v-list-item-title",{staticStyle:{cursor:"pointer"}},[e._v("Legend Top")])],1),n("v-list-item",{on:{click:function(t){return e.moveLegend("bottom")}}},[n("v-list-item-title",{staticStyle:{cursor:"pointer"}},[e._v("Legend Bottom")])],1),n("v-list-item",{on:{click:function(t){return e.moveLegend("left")}}},[n("v-list-item-title",{staticStyle:{cursor:"pointer"}},[e._v("Legend Left")])],1),n("v-list-item",{on:{click:function(t){return e.moveLegend("right")}}},[n("v-list-item-title",{staticStyle:{cursor:"pointer"}},[e._v("Legend RIght")])],1)],1)],1):e._e()],1)},l=[],o=n(55060),c=n(66533),u=n(81150),d=n(28378),m=(n(71245),n(43450),n(6710),n(6886),n(43108),n(18178),n(74083),n(32501),n(13489),n(99805),n(35883),n(39529),n(31235),function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[n("v-row",[n("v-col",[n("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(t){var i=t.on;return[n("v-text-field",e._g({attrs:{label:e.dateLabel,name:"date"+Date.now(),rules:e.dateRules,type:"date","data-test":"date-chooser"},model:{value:e.date,callback:function(t){e.date=t},expression:"date"}},i))]}}])})],1),n("v-col",[n("v-text-field",{attrs:{label:e.timeLabel,name:"time"+Date.now(),rules:e.timeRules,type:"time",step:"1","data-test":"time-chooser"},on:{change:e.onChange},model:{value:e.time,callback:function(t){e.time=t},expression:"time"}})],1)],1)],1)}),h=[],p=n(31200),v=n(26192),A={props:{required:{type:Boolean,default:!0},initialDate:{type:Date,default:null},initialTime:{type:Date,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,p.Z)((0,v.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,p.Z)((0,v.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}},methods:{onChange:function(){this.date&&this.time?this.$emit("date-time",this.date+" "+this.time):this.$emit("date-time",null)}}},f=A,g=n(23287),_=(0,g.Z)(f,m,h,!1,null,null,null),w=_.exports,C=n(88197),b=n(86522),y=n.n(b),x=n(73053),S=n(66700),k=n(78493);n(16461);var E={components:{DateTimeChooser:w},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},hideSystemBar:{type:Boolean,default:!1},hideOverview:{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}],valueTypes:["CONVERTED","RAW"],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,currentType:null,title:"",overview:null,data:[[]],graphMinY:"",graphMaxY:"",graphStartDateTime:this.startTime,graphEndDateTime:null,indexes:{},items:this.initialItems||[],drawInterval:null,zoomChart:!1,zoomOverview:!1,cable:new k.Z,subscription:null,needToUpdate:!1,errorDialog:!1,errors:[],colors:["blue","red","green","darkorange","purple","cornflowerblue","lime","gold","hotpink","tan","cyan","peru","maroon","coral","navy","teal","brown","crimson","lightblue","black"]}},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,d.Z)((0,d.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,u.Z)(this.items.entries());try{for(t.s();!(e=t.n()).done;){var n=(0,c.Z)(e.value,2),i=n[0],a=n[1];this.data.push([]),this.indexes[this.subscriptionKey(a)]=i+1}}catch(r){t.e(r)}finally{t.f()}},mounted:function(){var e=this,t=this.items.reduce((function(t,n){var i={spanGaps:!0,stroke:e.colors.shift()};return t.chartSeries.push((0,d.Z)((0,d.Z)({},i),{},{item:n,label:n.itemName,value:function(e,t){return"string"===typeof t||isNaN(t)?"NaN":null==t?"--":t.toFixed(2)}})),t.overviewSeries.push((0,d.Z)({},i)),t}),{chartSeries:[],overviewSeries:[]}),n=t.chartSeries,i=t.overviewSeries,a=(0,d.Z)((0,d.Z)((0,d.Z)((0,d.Z)({},this.getSize("chart")),this.getScales()),this.getAxes("chart")),{},{series:[{label:"Time",value:function(e,t){return null==t?"--":(0,x.Z)((0,S.Z)(1e3*t),"yyyy-MM-dd HH:mm:ss")}}].concat((0,o.Z)(n)),cursor:{drag:{x:!0,y:!1},sync:{key:"openc3"}},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")),a=Math.round(e.overview.valToPos(t.scales.x.max,"x"));e.overview.setSelect({left:i,width:a-i}),e.zoomChart=!1}}],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 a=n.target.closest(".u-series"),r=Array.prototype.slice.call(i.childNodes).indexOf(a),s=t.series[r];s.item?(e.selectedItem=s.item,e.itemMenu=!0):(e.itemMenu=!1,e.legendMenuX=n.clientX,e.legendMenuY=n.clientY,e.legendMenu=!0)}))}]}});this.graph=new C.Z(a,this.data,document.getElementById("chart".concat(this.id)));var r=(0,d.Z)((0,d.Z)((0,d.Z)((0,d.Z)({},this.getSize("overview")),this.getScales()),this.getAxes("overview")),{},{series:(0,o.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){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 C.Z(r,this.data,document.getElementById("overview".concat(this.id))),this.moveLegend(this.legendPosition),window.addEventListener("resize",this.handleResize),"stop"!==this.state&&this.subscribe()},beforeDestroy:function(){this.subscription&&this.subscription.unsubscribe(),this.cable.disconnect(),window.removeEventListener("resize",this.handleResize)},watch:{state:function(e,t){switch(e){case"start":"stop"===t&&this.subscribe();break;case"stop":this.subscription.unsubscribe(),this.subscription=null;break}},data:function(e,t){if("pause"!==this.state){this.graph.setData(e),this.overview.setData(e);var n=e[0][e[0].length-1],i=e[0][e[0].length-this.pointsGraphed],a=e[0][0];a<n-this.secondsGraphed&&(a=n-this.secondsGraphed),i>a&&(a=i),this.graph.setScale("x",{min:a,max:n})}},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){this.needToUpdate=!0,e&&"string"===typeof e&&(this.graphStartDateTime=1e6*new Date(this.graphStartDateTime).getTime())},graphEndDateTime:function(e){this.needToUpdate=!0,e&&"string"===typeof e&&(this.graphEndDateTime=1e6*new Date(this.graphEndDateTime).getTime())}},methods:{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&&(this.removeItemsFromSubscription(),this.addItemsToSubscription(),this.needToUpdate=!1),this.moveLegend(this.legendPosition)},handleResize:function(){this.graph.setSize(this.getSize("chart")),this.overview.setSize(this.getSize("overview"))},resize:function(){this.graph.setSize(this.getSize("chart")),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,a){var r=i;(e.graphMinY||0===e.graphMinY)&&(r=e.graphMinY);var s=a;return(e.graphMaxY||0===e.graphMaxY)&&(s=e.graphMaxY),C.Z.rangeNum(r,s,t,!0)}},subscribe:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;this.cable.createSubscription("StreamingChannel",localStorage.scope,{received:function(t){return e.received(t)},connected:function(){e.addItemsToSubscription(e.items,t)},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 a=document.getElementsByClassName("u-legend")[0];i=a.clientWidth}var r=Math.max(document.documentElement.clientWidth,window.innerWidth||0)-n-i,s=Math.max(document.documentElement.clientHeight,window.innerHeight||0),l=document.getElementsByClassName("c-chooser")[0],o=100;"overview"===e?this.hideOverview=!this.fullHeight:l&&(o=s-l.clientHeight-o-190,this.fullHeight||(o=o/2+10));var c=r-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]:C.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:70,stroke:n,grid:{show:"overview"!==e,stroke:t,width:2}}]}},openEditItem:function(){this.currentType=this.selectedItem.valueType,this.editItem=!0},closeEditItem:function(){this.editItem=!1,this.selectedItem.valueType!==this.currentType&&this.changeType()},changeType:function(){this.removeItems([this.selectedItem]),this.selectedItem.valueType=this.currentType,this.addItems([this.selectedItem])},addItems:function(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"CONVERTED",i=(0,u.Z)(e);try{for(i.s();!(t=i.n()).done;){var a=t.value;a.valueType||(a.valueType=n),this.items.push(a);var r=this.data.length,s=this.colors.shift();this.graph.addSeries({spanGaps:!0,item:a,label:a.itemName,stroke:s,value:function(e,t){return"string"===typeof t||isNaN(t)?"NaN":null===t?"--":t.toFixed(2)}},r),this.overview.addSeries({spanGaps:!0,stroke:s},r);var l=Array(this.data[0].length);this.data.splice(r,0,l),this.indexes[this.subscriptionKey(a)]=r}}catch(o){i.e(o)}finally{i.f()}this.addItemsToSubscription(e)},addItemsToSubscription:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.items,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.graphEndDateTime;this.subscription&&OpenC3Auth.updateToken(OpenC3Auth.defaultMinValidity).then((function(){e.subscription.perform("add",{scope:localStorage.scope,mode:"DECOM",token:localStorage.openc3Token,items:t.map(e.subscriptionKey),start_time:e.graphStartDateTime,end_time:n})}))},removeItems:function(e){this.removeItemsFromSubscription(e);var t,n=(0,u.Z)(e.map(this.subscriptionKey));try{for(n.s();!(t=n.n()).done;){var i=t.value,a=this.reorderIndexes(i);this.colors.unshift(this.graph.series[a].stroke),this.items.splice(a-1,1),this.data.splice(a,1),this.graph.delSeries(a),this.overview.delSeries(a),this.graph.setData(this.data),this.overview.setData(this.data)}}catch(r){n.e(r)}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:localStorage.scope,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){for(var t=JSON.parse(e),n=0;n<t.length;n++){var i=t[n].time/1e9,a=t[0].length;if(0==a||i>t[0][a-1]){for(var r=0;r<this.data.length;r++)this.data[r].push(null);this.set_data_at_index(this.data[0].length-1,i,t[n])}else{var s=y()(this.data[0],i,this.bs_comparator);if(s>=0)this.set_data_at_index(s,i,t[n]);else{for(var l=-s-1,o=0;o<this.data.length;o++)this.data[o].splice(l,0,null);this.set_data_at_index(l,i,t[n])}}}null===this.startTime&&(this.graphStartDateTime=1e9*this.data[0][0],this.$emit("started",this.graphStartDateTime))},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,a=Object.entries(n);i<a.length;i++){var r=(0,c.Z)(a[i],2),s=r[0],l=r[1];if("time"!=s){var o=this.indexes[s];if(o){var d=this.data[o];if(l.raw)d[e]=null;else if("string"===typeof l){if(d[e]=null,!s.includes("__RAW")){var m,h=(0,u.Z)(this.items);try{for(h.s();!(m=h.n()).done;){var p=m.value;if(this.subscriptionKey(p)===s){this.selectedItem=p;break}}}catch(v){h.e(v)}finally{h.f()}this.currentType="RAW",this.changeType()}}else d[e]=l}}}},subscriptionKey:function(e){return"TLM__".concat(e.targetName,"__").concat(e.packetName,"__").concat(e.itemName,"__").concat(e.valueType)}}},I=E,T=(n(680),n(76146),(0,g.Z)(I,s,l,!1,null,"335d365e",null)),N=T.exports,D="CONVERTED",M={components:{Graph:N},mixins:[r.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:D}],secondsGraphed:1e3,pointsSaved:1e6,pointsGraphed:1e3,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:D});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}}))}},L=M,O=(0,g.Z)(L,i,a,!1,null,null,null),Z=O.exports},36913:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return m}});var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("v-container",{staticClass:"pa-0"},e._l(e.widgetChunks,(function(t,i){return n("v-row",{key:"r"+i,attrs:{"no-gutters":""}},e._l(t,(function(t,i){return n("v-col",{key:"c"+i},[n(t.type,e._g({tag:"component",attrs:{target:t.target,parameters:t.parameters,settings:t.settings,widgets:t.widgets,name:t.name,line:t.line,lineNumber:t.lineNumber}},e.$listeners))],1)})),1)})),1)},a=[],r=(n(68995),n(37230)),s=n(76635),l=n.n(s),o={mixins:[r.Z],computed:{columns:function(){return parseInt(this.parameters[0])},widgetChunks:function(){return l().chunk(this.widgets,this.columns)}}},c=o,u=n(23287),d=(0,u.Z)(c,i,a,!1,null,null,null),m=d.exports},5775:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return d}});var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("v-progress-linear",{style:e.computedStyle,attrs:{height:"25",value:e._value}},[n("strong",[e._v(e._s(Math.ceil(e._value))+"%")])])},a=[],r=(n(68995),n(13489),n(18178),n(23466)),s=n(71541),l={mixins:[r.Z,s.Z],props:{value:{default:null}},data:function(){return{valueId:null,scaleFactor:1,width:80}},computed:{_value:function(){var e=this.value;return null===e&&(e=this.$store.state.tlmViewerValues[this.valueId][0]),parseInt(parseFloat(e)*this.scaleFactor)}},created:function(){if(this.parameters[3]&&(this.scaleFactor=parseFloat(this.parameters[3])),this.parameters[4]&&(this.width=parseInt(this.parameters[4])),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.$store.commit("tlmViewerAddItem",this.valueId)}},destroyed:function(){this.$store.commit("tlmViewerDeleteItem",this.valueId)}},o=l,c=n(23287),u=(0,c.Z)(o,i,a,!1,null,null,null),d=u.exports},45251:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return u}});var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("v-radio",{style:e.computedStyle,attrs:{"hide-details":"",dense:"",label:e.label,value:e.value}})},a=[],r=(n(71245),n(23466)),s={props:{value:{type:Number}},mixins:[r.Z],data:function(){return{label:"Radio"}},created:function(){this.label=this.parameters[0]}},l=s,o=n(23287),c=(0,o.Z)(l,i,a,!1,null,null,null),u=c.exports},67822:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return u}});var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("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(t,i){return n(t.type,e._g({key:i,tag:"component",attrs:{value:i,target:t.target,parameters:t.parameters,settings:t.settings,name:t.name}},e.$listeners))})),1)},a=[],r=(n(58188),n(1939),n(68995),n(37230)),s={mixins:[r.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=s,o=n(23287),c=(0,o.Z)(l,i,a,!1,null,null,null),u=c.exports},71276:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return u}});var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"rangebar",style:[e.cssProps,e.computedStyle]},[e._m(0)])},a=[function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"rangebar__container"},[n("div",{staticClass:"rangebar__line"}),n("div",{staticClass:"rangebar__arrow"})])}],r=(n(68995),n(18178),n(23466)),s={mixins:[r.Z],data:function(){return{width:"100%",height:20}},computed:{cssProps:function(){return{"--height":this.height+"px","--width":this.width,"--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.$store.commit("tlmViewerAddItem",this.valueId),this.parameters[6]&&(this.width=parseInt(this.parameters[6])+"px"),this.parameters[7]&&(this.height=parseInt(this.parameters[7]))},destroyed:function(){this.$store.commit("tlmViewerDeleteItem",this.valueId)},methods:{calcPosition:function(){var e=this.$store.state.tlmViewerValues[this.valueId][0];if(!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=s,o=(n(42594),n(23287)),c=(0,o.Z)(l,i,a,!1,null,"687f0825",null),u=c.exports},12542:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return d}});var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("verticalbox-widget",e._g({attrs:{parameters:e.parameters,settings:e.settings,widgets:e.widgets,"content-style":e.scrollwindowStyle}},e.$listeners))},a=[],r=(n(71245),n(49228),n(58188),n(30724),n(6406),n(37230)),s=n(10772),l={mixins:[r.Z],components:{VerticalboxWidget:s["default"]},computed:{maxHeight:function(){var e,t;return Number(null!==(e=null===(t=this.settings.find((function(e){return"HEIGHT"===e[0]})))||void 0===t?void 0:t.at(1))&&void 0!==e?e:180)},scrollwindowStyle:function(){return"\n max-height: ".concat(this.maxHeight,"px;\n overflow-y: scroll;\n ")}}},o=l,c=n(23287),u=(0,c.Z)(o,i,a,!1,null,null,null),d=u.exports},41411:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return u}});var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("v-banner",{attrs:{"single-line":""}},[e._v(e._s(e.labelText))])},a=[],r=n(23466),s={mixins:[r.Z],computed:{labelText:function(){return this.parameters[0]}}},l=s,o=n(23287),c=(0,o.Z)(l,i,a,!1,null,null,null),u=c.exports},99528:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return u}});var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{style:e.style})},a=[],r=n(23466),s={mixins:[r.Z],computed:{style:function(){return["width: ".concat(this.parameters[0],"px;"),"height: ".concat(this.parameters[1],"px;")].join("")}}},l=s,o=n(23287),c=(0,o.Z)(l,i,a,!1,null,null,null),u=c.exports},39792:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return u}});var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[n("v-tabs",{model:{value:e.curTab,callback:function(t){e.curTab=t},expression:"curTab"}},e._l(e.widgets,(function(t,i){return n("v-tab",{key:i},[e._v(" "+e._s(t.parameters[0])+" ")])})),1),n("v-tabs-items",{model:{value:e.curTab,callback:function(t){e.curTab=t},expression:"curTab"}},e._l(e.widgets,(function(t,i){return n("v-tab-item",{key:i},e._l(t.widgets,(function(t,a){return n(t.type,e._g({key:i+"-"+a,tag:"component",attrs:{target:t.target,parameters:t.parameters,settings:t.settings,widgets:t.widgets,name:t.name,line:t.line,lineNumber:t.lineNumber}},e.$listeners))})),1)})),1)],1)},a=[],r=n(37230),s={mixins:[r.Z],data:function(){return{curTab:null}},watch:{curTab:function(){this.$emit("min-max-screen")}}},l=s,o=n(23287),c=(0,o.Z)(l,i,a,!1,null,null,null),u=c.exports},28088:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return m}});var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[n("v-textarea",{class:e.valueClass,style:e.computedStyle,attrs:{solo:"",dense:"",readonly:"","hide-details":"",placeholder:"Value",height:e.height,value:e._value,"data-test":"valueText"},on:{contextmenu:e.showContextMenu}}),n("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"}},[n("v-list",e._l(e.contextMenuOptions,(function(t,i){return n("v-list-item",{key:i,on:{click:function(e){return e.stopPropagation(),t.action.apply(null,arguments)}}},[n("v-list-item-title",[e._v(e._s(t.title))])],1)})),1)],1),n("details-dialog",{attrs:{"target-name":e.parameters[0],"packet-name":e.parameters[1],"item-name":e.parameters[2]},model:{value:e.viewDetails,callback:function(t){e.viewDetails=t},expression:"viewDetails"}})],1)},a=[],r=(n(68995),n(12406)),s=n(71541),l=n(26883),o=(n(80131),{components:{DetailsDialog:l.Z},data:function(){return{height:100}},mixins:[r.Z,s.Z],created:function(){this.parameters[3]&&(this.width=parseInt(this.parameters[3])),this.parameters[4]&&(this.height=parseInt(this.parameters[4]))},methods:{getType:function(){var e="CONVERTED";return this.parameters[5]&&(e=this.parameters[5]),e}}}),c=o,u=(n(99772),n(23287)),d=(0,u.Z)(c,i,a,!1,null,"2bc42f58",null),m=d.exports},75022:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return u}});var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("v-text-field",{style:e.computedStyle,attrs:{solo:"",dense:"","single-line":"","hide-no-data":"","hide-details":""},model:{value:e.value,callback:function(t){e.value=t},expression:"value"}})},a=[],r=(n(58188),n(1939),n(68995),n(23466)),s={mixins:[r.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.parameters[0]&&this.settings.push(["WIDTH",parseInt(this.parameters[0])]),this.parameters[1]&&(this.value=this.parameters[1])},methods:{text:function(){return this.value}}},l=s,o=n(23287),c=(0,o.Z)(l,i,a,!1,null,null,null),u=c.exports},56333:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return u}});var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("span",{staticClass:"text-h5 text-center pa-1 mt-1 label",style:e.computedStyle},[e._v(" "+e._s(e.labelText)+" ")])},a=[],r=(n(71372),n(23466)),s={mixins:[r.Z],computed:{labelText:function(){return this.parameters[0]}},created:function(){if(this.parameters.length<1)throw new Error("Not enough parameters for TITLE.")}},l=s,o=n(23287),c=(0,o.Z)(l,i,a,!1,null,null,null),u=c.exports},84952:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return d}});var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"value-widget-container"},[n("v-tooltip",{attrs:{bottom:""},scopedSlots:e._u([{key:"activator",fn:function(t){var i=t.on,a=t.attrs;return[n("v-text-field",e._g(e._b({class:e.valueClass,style:e.computedStyle,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",a,!1),i))]}}])},[n("span",[e._v(e._s(e.fullName))])]),n("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"}},[n("v-list",e._l(e.contextMenuOptions,(function(t,i){return n("v-list-item",{key:i,on:{click:function(e){return e.stopPropagation(),t.action.apply(null,arguments)}}},[n("v-list-item-title",[e._v(e._s(t.title))])],1)})),1)],1),n("details-dialog",{attrs:{"target-name":e.parameters[0],"packet-name":e.parameters[1],"item-name":e.parameters[2]},model:{value:e.viewDetails,callback:function(t){e.viewDetails=t},expression:"viewDetails"}})],1)},a=[],r=n(12406),s=n(26883),l={components:{DetailsDialog:s.Z},mixins:[r.Z],computed:{fullName:function(){return this.parameters[0]+" "+this.parameters[1]+" "+this.parameters[2]}},created:function(){this.verifyNumParams("VALUE",3,3,"VALUE <TARGET> <PACKET> <ITEM>")}},o=l,c=(n(61995),n(23287)),u=(0,c.Z)(o,i,a,!1,null,"61027b58",null),d=u.exports},28162:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return m}});var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{ref:"container",staticClass:"d-flex flex-row",style:[e.defaultStyle,e.computedStyle]},[n("value-widget",{attrs:{parameters:e.parameters,settings:e.settings}}),n("limitsbar-widget",{attrs:{parameters:e.limitsBarParameters,settings:e.settings.filter((function(e){return 1==e[0]})).map((function(e){return e.slice(1)}))}})],1)},a=[],r=n(84952),s=n(55e3),l=n(23466),o={mixins:[l.Z],components:{ValueWidget:r["default"],LimitsbarWidget:s["default"]},computed:{limitsBarParameters:function(){return[this.parameters[0],this.parameters[1],this.parameters[2],"CONVERTED"]},defaultStyle:function(){return{width:"300px"}}}},c=o,u=n(23287),d=(0,u.Z)(c,i,a,!1,null,null,null),m=d.exports},77634:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return m}});var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{ref:"container",staticClass:"d-flex flex-column",style:e.computedStyle},[n("limitscolumn-widget",{attrs:{parameters:e.limitsColumnParameters,settings:e.settings,"widget-index":0}}),n("value-widget",{attrs:{parameters:e.parameters,settings:e.settings,"widget-index":1}})],1)},a=[],r=n(84952),s=n(71229),l=n(23466),o={mixins:[l.Z],components:{ValueWidget:r["default"],LimitscolumnWidget:s["default"]},created:function(){this.settings.push(["WIDTH","100"])},computed:{limitsColumnParameters:function(){return[this.parameters[0],this.parameters[1],this.parameters[2],"CONVERTED"]}}},c=o,u=n(23287),d=(0,u.Z)(c,i,a,!1,null,null,null),m=d.exports},84887:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return m}});var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{ref:"container",staticClass:"d-flex flex-row",style:[e.defaultStyle,e.computedStyle]},[n("value-widget",{attrs:{parameters:e.valueParameters}}),n("rangebar-widget",{attrs:{parameters:e.parameters}})],1)},a=[],r=n(84952),s=n(71276),l=n(23466),o={mixins:[l.Z],components:{ValueWidget:r["default"],RangebarWidget:s["default"]},computed:{valueParameters:function(){return[this.parameters[0],this.parameters[1],this.parameters[2],"WITH_UNITS"]},defaultStyle:function(){return{width:"300px"}}}},c=o,u=n(23287),d=(0,u.Z)(c,i,a,!1,null,null,null),m=d.exports},42248:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return u}});var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{ref:"container",staticClass:"d-flex flex-column"},e._l(e.widgets,(function(t,i){return n(t.type,e._g({key:i,tag:"component",attrs:{target:t.target,parameters:t.parameters,settings:t.settings,widgets:t.widgets,name:t.name,line:t.line,lineNumber:t.lineNumber}},e.$listeners))})),1)},a=[],r=n(37230),s={mixins:[r.Z]},l=s,o=n(23287),c=(0,o.Z)(l,i,a,!1,null,null,null),u=c.exports},10772:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return d}});var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[n("v-banner",{attrs:{"single-line":""}},[e._v(e._s(e.parameters.join(" ")))]),n("vertical-widget",e._g({style:e.contentStyle,attrs:{parameters:e.parameters,settings:e.settings,widgets:e.widgets}},e.$listeners))],1)},a=[],r=n(42248),s=n(37230),l={mixins:[s.Z],components:{VerticalWidget:r["default"]},props:{contentStyle:{type:String}}},o=l,c=(n(48305),n(23287)),u=(0,c.Z)(o,i,a,!1,null,"63de4b40",null),d=u.exports},18903:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return oe}});var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[n("top-bar",{attrs:{title:e.title,menus:e.menus}}),n("v-container",[n("v-row",[n("v-col",[n("v-select",{staticClass:"ma-0 pa-0",attrs:{label:"Select Target",items:e.targets,"item-text":"label","item-value":"value"},on:{change:e.targetSelect},model:{value:e.selectedTarget,callback:function(t){e.selectedTarget=t},expression:"selectedTarget"}})],1),n("v-col",[n("v-select",{staticClass:"ma-0 pa-0",attrs:{label:"Select Screen",items:e.screens},on:{change:e.screenSelect},model:{value:e.selectedScreen,callback:function(t){e.selectedScreen=t},expression:"selectedScreen"}})],1),n("v-col",[n("v-btn",{staticClass:"primary mr-2",attrs:{disabled:!e.selectedScreen},on:{click:function(){return e.showScreen(e.selectedTarget,e.selectedScreen)}}},[e._v(" Show Screen ")]),n("v-btn",{staticClass:"primary",on:{click:function(){return e.newScreen(e.selectedTarget)}}},[e._v(" New Screen "),n("v-icon",[e._v(" mdi-file-plus")])],1)],1)],1)],1),n("div",{staticClass:"grid"},e._l(e.definitions,(function(t){return n("div",{key:t.id,ref:"gridItem",refInFor:!0,staticClass:"item",attrs:{id:e.screenId(t.id)}},[n("div",{staticClass:"item-content"},[n("openc3-screen",{attrs:{target:t.target,screen:t.screen,definition:t.definition},on:{"close-screen":function(n){return e.closeScreen(t.id)},"min-max-screen":e.refreshLayout,"add-new-screen":function(t){return e.showScreen.apply(void 0,t)},"delete-screen":function(n){return e.deleteScreen(t.id)}}})],1)])})),0),e.openConfig?n("open-config-dialog",{attrs:{tool:e.toolName},on:{success:function(t){return e.openConfiguration(t)}},model:{value:e.openConfig,callback:function(t){e.openConfig=t},expression:"openConfig"}}):e._e(),e.saveConfig?n("save-config-dialog",{attrs:{tool:e.toolName},on:{success:function(t){return e.saveConfiguration(t)}},model:{value:e.saveConfig,callback:function(t){e.saveConfig=t},expression:"saveConfig"}}):e._e(),e.newScreenDialog?n("new-screen-dialog",{attrs:{screens:e.screens},on:{success:function(t){return e.saveNewScreen(t)}},model:{value:e.newScreenDialog,callback:function(t){e.newScreenDialog=t},expression:"newScreenDialog"}}):e._e()],1)},a=[],r=n(36625),s=n(95627),l=n(81150),o=(n(95342),n(58188),n(43450),n(28673),n(6886),n(1939),n(43430),n(74083),n(6710),n(71261)),c=n(12156),u=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("mounting-portal",{attrs:{"mount-to":"#openc3-menu",append:""}},[n("div",{staticClass:"v-toolbar__content"},[e._l(e.menus,(function(t,i){return n("v-menu",{key:i,attrs:{"offset-y":""},scopedSlots:e._u([{key:"activator",fn:function(i){var a=i.on,r=i.attrs;return[n("v-btn",e._g(e._b({staticClass:"mx-1",attrs:{outlined:"","data-test":e.formatDT(e.title+" "+t.label)}},"v-btn",r,!1),a),[n("span",{domProps:{textContent:e._s(t.label)}}),n("v-icon",{attrs:{right:""}},[e._v(" mdi-menu-down ")])],1)]}}],null,!0)},[n("v-list",[n("v-radio-group",{staticClass:"ma-0 pa-0",attrs:{value:t.radioGroup,"hide-details":"",dense:""}},[e._l(t.items,(function(i,a){return[i.divider?n("v-divider"):n("v-list-item",{key:a,attrs:{disabled:i.disabled,"data-test":e.formatDT(e.title+" "+t.label+" "+i.label)},on:{click:i.command}},[i.radio?n("v-list-item-action",[n("v-radio",{attrs:{color:"secondary",label:i.label,value:i.label}})],1):e._e(),i.checkbox?n("v-list-item-action",[n("v-checkbox",{attrs:{color:"secondary",label:i.label,value:i.label},model:{value:e.checked,callback:function(t){e.checked=t},expression:"checked"}})],1):e._e(),i.icon?n("v-list-item-icon",[n("v-icon",{attrs:{disabled:i.disabled}},[e._v(e._s(i.icon))])],1):e._e(),i.radio||i.checkbox?e._e():n("v-list-item-title",{style:"cursor: pointer;"+(i.disabled?"opacity: 0.2":"")},[e._v(e._s(i.label))])],1)]}))],2)],1)],1)})),n("v-spacer"),n("v-toolbar-title",[e._v(e._s(e.title))]),n("v-spacer")],2)])},d=[],m=(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()}}}),h=m,p=(n(65741),n(23287)),v=(0,p.Z)(h,u,d,!1,null,"3237297b",null),A=v.exports,f=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[n("v-card",[n("v-system-bar",[n("div",{directives:[{name:"show",rawName:"v-show",value:0!==e.errors.length,expression:"errors.length !== 0"}]},[n("v-tooltip",{attrs:{top:""},scopedSlots:e._u([{key:"activator",fn:function(t){var i=t.on,a=t.attrs;return[n("div",e._g(e._b({},"div",a,!1),i),[n("v-icon",{attrs:{"data-test":"error-graph-icon"},on:{click:function(t){e.errorDialog=!0}}},[e._v(" mdi-alert ")])],1)]}}])},[n("span",[e._v(" Errors ")])])],1),n("v-spacer"),n("span",[e._v(e._s(e.target)+" "+e._s(e.screen))]),n("v-spacer"),n("v-tooltip",{attrs:{top:""},scopedSlots:e._u([{key:"activator",fn:function(t){var i=t.on,a=t.attrs;return[n("div",e._g(e._b({},"div",a,!1),i),[n("v-icon",{attrs:{"data-test":"edit-screen-icon"},on:{click:e.openEdit}},[e._v(" mdi-pencil ")])],1)]}}])},[n("span",[e._v(" Edit Screen ")])]),n("v-tooltip",{attrs:{top:""},scopedSlots:e._u([{key:"activator",fn:function(t){var i=t.on,a=t.attrs;return[n("div",e._g(e._b({},"div",a,!1),i),[n("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 ")]),n("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)]}}])},[n("span",{directives:[{name:"show",rawName:"v-show",value:e.expand,expression:"expand"}]},[e._v(" Minimize Screen ")]),n("span",{directives:[{name:"show",rawName:"v-show",value:!e.expand,expression:"!expand"}]},[e._v(" Maximize Screen ")])]),n("v-tooltip",{attrs:{top:""},scopedSlots:e._u([{key:"activator",fn:function(t){var i=t.on,a=t.attrs;return[n("div",e._g(e._b({},"div",a,!1),i),[n("v-icon",{attrs:{"data-test":"close-screen-icon"},on:{click:function(t){return e.$emit("close-screen")}}},[e._v(" mdi-close-box ")])],1)]}}])},[n("span",[e._v(" Close Screen ")])])],1),n("v-expand-transition",[n("div",{directives:[{name:"show",rawName:"v-show",value:e.expand,expression:"expand"}],ref:"screen",staticClass:"pa-1"},[n("vertical-widget",e._g({key:e.screenKey,attrs:{widgets:e.layoutStack[0].widgets}},e.$listeners))],1)])],1),e.editDialog?n("edit-screen-dialog",{attrs:{target:e.target,screen:e.screen,definition:e.currentDefinition,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(),n("v-dialog",{attrs:{"max-width":"600"},model:{value:e.errorDialog,callback:function(t){e.errorDialog=t},expression:"errorDialog"}},[n("v-system-bar",[n("v-spacer"),n("span",[e._v(" Screen: "+e._s(e.target)+" "+e._s(e.screen)+" Errors ")]),n("v-spacer")],1),n("v-card",{staticClass:"pa-3"},[n("v-row",{staticClass:"my-3"},[n("v-textarea",{attrs:{readonly:"",rows:"13",value:e.error}})],1),n("v-row",[n("v-btn",{attrs:{block:""},on:{click:e.clearErrors}},[e._v(" Clear ")])],1)],1)],1)],1)},g=[],_=(n(48319),n(68995),n(13489),n(67789),n(18178),n(32501),n(39529),n(31235),n(1250)),w=n(44091),C=n(23779),b=n.n(C),y=n(96009),x=n.n(y),S=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("v-dialog",{attrs:{width:"600"},model:{value:e.show,callback:function(t){e.show=t},expression:"show"}},[n("v-card",[n("v-system-bar",[n("div",{staticClass:"mx-2"},[n("v-tooltip",{attrs:{top:""},scopedSlots:e._u([{key:"activator",fn:function(t){var i=t.on,a=t.attrs;return[n("div",e._g(e._b({},"div",a,!1),i),[n("v-icon",{attrs:{"data-test":"delete-screen-icon"},on:{click:e.deleteScreen}},[e._v(" mdi-delete ")])],1)]}}])},[n("span",[e._v(" Delete Screen ")])])],1),n("v-spacer"),n("span",[e._v(" Edit Screen: "+e._s(e.target)+" "+e._s(e.screen)+" ")]),n("v-spacer"),n("div",{staticClass:"mx-2"},[n("v-tooltip",{attrs:{top:""},scopedSlots:e._u([{key:"activator",fn:function(t){var i=t.on,a=t.attrs;return[n("div",e._g(e._b({},"div",a,!1),i),[n("v-icon",{attrs:{"data-test":"download-screen-icon"},on:{click:e.downloadScreen}},[e._v(" mdi-download ")])],1)]}}])},[n("span",[e._v(" Download Screen ")])])],1)],1),n("v-card-text",[n("v-row",{staticClass:"mt-3"},[e._v(" Upload a screen file. ")]),n("v-row",{attrs:{"no-gutters":"",align:"center"}},[n("v-col",{attrs:{cols:"3"}},[n("v-btn",{attrs:{block:"",color:"success",disabled:!e.file||e.loadingFile,loading:e.loadingFile,"data-test":"editScreenLoadBtn"},on:{click:e.loadFile},scopedSlots:e._u([{key:"loader",fn:function(){return[n("span",[e._v("Loading...")])]},proxy:!0}])},[e._v(" Load ")])],1),n("v-col",{attrs:{cols:"9"}},[n("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)],1),n("v-row",[e._v(" Edit the screen definition. ")]),n("v-row",{attrs:{"no-gutters":""}},[n("v-textarea",{attrs:{rows:"12",rules:[e.rules.required],"data-test":"screen-text-input"},model:{value:e.currentDefinition,callback:function(t){e.currentDefinition=t},expression:"currentDefinition"}})],1),e._l(e.editErrors,(function(t,i){return n("v-row",{key:i,staticClass:"my-3"},[n("span",{staticClass:"red--text",domProps:{textContent:e._s(t)}})])})),n("v-row",[n("v-spacer"),n("v-btn",{staticClass:"mx-2",attrs:{outlined:"","data-test":"editScreenCancelBtn"},on:{click:function(t){return e.$emit("cancel")}}},[e._v(" Cancel ")]),n("v-btn",{staticClass:"mx-2",attrs:{color:"primary","data-test":"editScreenSubmitBtn"},on:{click:function(t){return e.$emit("save",e.currentDefinition)}}},[e._v(" Save ")])],1)],2)],1)],1)},k=[];n(14121),n(60523);function E(){var e="/openc3/plugins/packages/openc3-tool-tlmviewer/src/tools/TlmViewer/EditScreenDialog.vue",t="65b7f30dbb9426bc43721486b9868c59d53691e9",n=new Function("return this")(),i="__coverage__",a={path:"/openc3/plugins/packages/openc3-tool-tlmviewer/src/tools/TlmViewer/EditScreenDialog.vue",statementMap:{0:{start:{line:134,column:21},end:{line:134,column:23}},1:{start:{line:138,column:4},end:{line:145,column:5}},2:{start:{line:140,column:29},end:{line:140,column:50}},3:{start:{line:149,column:6},end:{line:151,column:7}},4:{start:{line:150,column:8},end:{line:150,column:42}},5:{start:{line:152,column:6},end:{line:162,column:7}},6:{start:{line:153,column:21},end:{line:153,column:23}},7:{start:{line:154,column:8},end:{line:160,column:9}},8:{start:{line:155,column:20},end:{line:155,column:79}},9:{start:{line:156,column:10},end:{line:158,column:11}},10:{start:{line:157,column:12},end:{line:157,column:43}},11:{start:{line:159,column:10},end:{line:159,column:26}},12:{start:{line:161,column:8},end:{line:161,column:21}},13:{start:{line:163,column:6},end:{line:163,column:15}},14:{start:{line:167,column:8},end:{line:167,column:25}},15:{start:{line:170,column:8},end:{line:170,column:34}},16:{start:{line:176,column:19},end:{line:178,column:8}},17:{start:{line:180,column:19},end:{line:180,column:46}},18:{start:{line:181,column:6},end:{line:181,column:43}},19:{start:{line:182,column:6},end:{line:182,column:72}},20:{start:{line:183,column:6},end:{line:183,column:18}},21:{start:{line:186,column:25},end:{line:186,column:41}},22:{start:{line:187,column:6},end:{line:187,column:38}},23:{start:{line:188,column:6},end:{line:188,column:29}},24:{start:{line:189,column:19},end:{line:189,column:23}},25:{start:{line:190,column:6},end:{line:195,column:7}},26:{start:{line:191,column:8},end:{line:191,column:32}},27:{start:{line:192,column:8},end:{line:192,column:50}},28:{start:{line:193,column:8},end:{line:193,column:30}},29:{start:{line:194,column:8},end:{line:194,column:24}},30:{start:{line:198,column:6},end:{line:205,column:10}},31:{start:{line:204,column:10},end:{line:204,column:30}}},fnMap:{0:{name:"(anonymous_0)",decl:{start:{line:134,column:15},end:{line:134,column:16}},loc:{start:{line:134,column:21},end:{line:134,column:23}},line:134},1:{name:"(anonymous_1)",decl:{start:{line:137,column:2},end:{line:137,column:3}},loc:{start:{line:137,column:9},end:{line:146,column:3}},line:137},2:{name:"(anonymous_2)",decl:{start:{line:140,column:18},end:{line:140,column:19}},loc:{start:{line:140,column:29},end:{line:140,column:50}},line:140},3:{name:"(anonymous_3)",decl:{start:{line:148,column:16},end:{line:148,column:17}},loc:{start:{line:148,column:28},end:{line:164,column:5}},line:148},4:{name:"(anonymous_4)",decl:{start:{line:166,column:6},end:{line:166,column:7}},loc:{start:{line:166,column:12},end:{line:168,column:7}},line:166},5:{name:"(anonymous_5)",decl:{start:{line:169,column:6},end:{line:169,column:7}},loc:{start:{line:169,column:17},end:{line:171,column:7}},line:169},6:{name:"(anonymous_6)",decl:{start:{line:175,column:20},end:{line:175,column:21}},loc:{start:{line:175,column:32},end:{line:184,column:5}},line:175},7:{name:"(anonymous_7)",decl:{start:{line:185,column:14},end:{line:185,column:15}},loc:{start:{line:185,column:26},end:{line:196,column:5}},line:185},8:{name:"(anonymous_8)",decl:{start:{line:190,column:26},end:{line:190,column:27}},loc:{start:{line:190,column:38},end:{line:195,column:7}},line:190},9:{name:"(anonymous_9)",decl:{start:{line:197,column:18},end:{line:197,column:19}},loc:{start:{line:197,column:30},end:{line:206,column:5}},line:197},10:{name:"(anonymous_10)",decl:{start:{line:203,column:14},end:{line:203,column:15}},loc:{start:{line:203,column:26},end:{line:205,column:9}},line:203}},branchMap:{0:{loc:{start:{line:140,column:29},end:{line:140,column:50}},type:"binary-expr",locations:[{start:{line:140,column:29},end:{line:140,column:36}},{start:{line:140,column:40},end:{line:140,column:50}}],line:140},1:{loc:{start:{line:149,column:6},end:{line:151,column:7}},type:"if",locations:[{start:{line:149,column:6},end:{line:151,column:7}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:149},2:{loc:{start:{line:149,column:10},end:{line:149,column:46}},type:"binary-expr",locations:[{start:{line:149,column:10},end:{line:149,column:32}},{start:{line:149,column:36},end:{line:149,column:46}}],line:149},3:{loc:{start:{line:152,column:6},end:{line:162,column:7}},type:"if",locations:[{start:{line:152,column:6},end:{line:162,column:7}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:152},4:{loc:{start:{line:156,column:10},end:{line:158,column:11}},type:"if",locations:[{start:{line:156,column:10},end:{line:158,column:11}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:156}},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},f:{0:0,1:0,2:0,3:0,4:0,5:0,6:0,7:0,8:0,9:0,10:0},b:{0:[0,0],1:[0,0],2:[0,0],3:[0,0],4:[0,0]},inputSourceMap:{version:3,sources:["EditScreenDialog.vue"],names:[],mappings:";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAoHA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;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:"EditScreenDialog.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--\x3e\n\n<template>\n \x3c!-- Edit dialog --\x3e\n <v-dialog v-model="show" width="600">\n <v-card>\n <v-system-bar>\n <div class="mx-2">\n <v-tooltip top>\n <template v-slot:activator="{ on, attrs }">\n <div v-on="on" v-bind="attrs">\n <v-icon data-test="delete-screen-icon" @click="deleteScreen">\n mdi-delete\n </v-icon>\n </div>\n </template>\n <span> Delete Screen </span>\n </v-tooltip>\n </div>\n <v-spacer />\n <span> Edit Screen: {{ target }} {{ screen }} </span>\n <v-spacer />\n <div class="mx-2">\n <v-tooltip top>\n <template v-slot:activator="{ on, attrs }">\n <div v-on="on" v-bind="attrs">\n <v-icon\n data-test="download-screen-icon"\n @click="downloadScreen"\n >\n mdi-download\n </v-icon>\n </div>\n </template>\n <span> Download Screen </span>\n </v-tooltip>\n </div>\n </v-system-bar>\n <v-card-text>\n <v-row class="mt-3"> Upload a screen file. </v-row>\n <v-row no-gutters align="center">\n <v-col cols="3">\n <v-btn\n block\n color="success"\n @click="loadFile"\n :disabled="!file || loadingFile"\n :loading="loadingFile"\n data-test="editScreenLoadBtn"\n >\n Load\n <template v-slot:loader>\n <span>Loading...</span>\n </template>\n </v-btn>\n </v-col>\n <v-col cols="9">\n <v-file-input\n v-model="file"\n truncate-length="15"\n accept=".txt"\n label="Click to select .txt screen file."\n />\n </v-col>\n </v-row>\n <v-row> Edit the screen definition. </v-row>\n <v-row no-gutters>\n \x3c!-- TODO: Consider putting this in the Ace Editor for line number support --\x3e\n <v-textarea\n v-model="currentDefinition"\n rows="12"\n :rules="[rules.required]"\n data-test="screen-text-input"\n />\n </v-row>\n <v-row v-for="(error, index) in editErrors" :key="index" class="my-3">\n <span class="red--text" v-text="error"></span>\n </v-row>\n <v-row>\n <v-spacer />\n <v-btn\n @click="$emit(\'cancel\')"\n class="mx-2"\n outlined\n data-test="editScreenCancelBtn"\n >\n Cancel\n </v-btn>\n <v-btn\n @click="$emit(\'save\', currentDefinition)"\n class="mx-2"\n color="primary"\n data-test="editScreenSubmitBtn"\n >\n Save\n </v-btn>\n </v-row>\n </v-card-text>\n </v-card>\n </v-dialog>\n</template>\n\n<script>\nexport default {\n props: {\n value: Boolean, // value is the default prop when using v-model\n target: {\n type: String,\n default: \'\',\n },\n screen: {\n type: String,\n default: \'\',\n },\n definition: {\n type: String,\n default: \'\',\n },\n errors: {\n type: Array,\n default: () => [],\n },\n },\n data() {\n return {\n rules: {\n required: (value) => !!value || \'Required\',\n },\n currentDefinition: this.definition,\n file: null,\n loadingFile: Boolean,\n }\n },\n computed: {\n editErrors: function () {\n if (this.definition === \'\' && !this.file) {\n return [\'Input can not be blank.\']\n }\n if (this.errors.length !== 0) {\n let result = []\n for (const error of this.errors) {\n let msg = `At ${error.lineNumber}: (${error.line}) ${error.message}.`\n if (error.usage) {\n msg += ` Usage: ${error.usage}`\n }\n result.push(msg)\n }\n return result\n }\n return []\n },\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 },\n methods: {\n downloadScreen: function () {\n const blob = new Blob([this.currentDefinition], {\n type: \'text/plain\',\n })\n // Make a link and then \'click\' on it to start the download\n const link = document.createElement(\'a\')\n link.href = URL.createObjectURL(blob)\n link.setAttribute(\'download\', `${this.target}_${this.screen}.txt`)\n link.click()\n },\n loadFile: function () {\n const fileReader = new FileReader()\n fileReader.readAsText(this.file)\n this.loadingFile = true\n const that = this\n fileReader.onload = function () {\n that.loadingFile = false\n that.currentDefinition = fileReader.result\n that.inputType = \'txt\'\n that.file = null\n }\n },\n deleteScreen: function () {\n this.$dialog\n .confirm(`Are you sure you want to delete this screen?!`, {\n okText: \'Delete\',\n cancelText: \'Cancel\',\n })\n .then((dialog) => {\n this.$emit(\'delete\')\n })\n },\n },\n}\n<\/script>\n\n<style scoped>\n.v-card {\n background-color: var(--v-tertiary-darken2);\n}\n.v-textarea >>> textarea {\n padding: 5px;\n background-color: var(--v-tertiary-darken1) !important;\n}\n</style>\n']},_coverageSchema:"1a1c01bbd47fc00a2c39e90264f33305004495a9",hash:"65b7f30dbb9426bc43721486b9868c59d53691e9"},r=n[i]||(n[i]={});r[e]&&r[e].hash===t||(r[e]=a);var s=r[e];return E=function(){return s},s}E();var I={props:{value:Boolean,target:{type:String,default:""},screen:{type:String,default:""},definition:{type:String,default:""},errors:{type:Array,default:function(){return E().f[0]++,E().s[0]++,[]}}},data:function(){return E().f[1]++,E().s[1]++,{rules:{required:function(e){return E().f[2]++,E().s[2]++,E().b[0][0]++,!!e||(E().b[0][1]++,"Required")}},currentDefinition:this.definition,file:null,loadingFile:Boolean}},computed:{editErrors:function(){if(E().f[3]++,E().s[3]++,E().b[2][0]++,""===this.definition&&(E().b[2][1]++,!this.file))return E().b[1][0]++,E().s[4]++,["Input can not be blank."];if(E().b[1][1]++,E().s[5]++,0!==this.errors.length){E().b[3][0]++;var e=(E().s[6]++,[]);E().s[7]++;var t,n=(0,l.Z)(this.errors);try{for(n.s();!(t=n.n()).done;){var i=t.value,a=(E().s[8]++,"At ".concat(i.lineNumber,": (").concat(i.line,") ").concat(i.message,"."));E().s[9]++,i.usage?(E().b[4][0]++,E().s[10]++,a+=" Usage: ".concat(i.usage)):E().b[4][1]++,E().s[11]++,e.push(a)}}catch(r){n.e(r)}finally{n.f()}return E().s[12]++,e}return E().b[3][1]++,E().s[13]++,[]},show:{get:function(){return E().f[4]++,E().s[14]++,this.value},set:function(e){E().f[5]++,E().s[15]++,this.$emit("input",e)}}},methods:{downloadScreen:function(){E().f[6]++;var e=(E().s[16]++,new Blob([this.currentDefinition],{type:"text/plain"})),t=(E().s[17]++,document.createElement("a"));E().s[18]++,t.href=URL.createObjectURL(e),E().s[19]++,t.setAttribute("download","".concat(this.target,"_").concat(this.screen,".txt")),E().s[20]++,t.click()},loadFile:function(){E().f[7]++;var e=(E().s[21]++,new FileReader);E().s[22]++,e.readAsText(this.file),E().s[23]++,this.loadingFile=!0;var t=(E().s[24]++,this);E().s[25]++,e.onload=function(){E().f[8]++,E().s[26]++,t.loadingFile=!1,E().s[27]++,t.currentDefinition=e.result,E().s[28]++,t.inputType="txt",E().s[29]++,t.file=null}},deleteScreen:function(){var e=this;E().f[9]++,E().s[30]++,this.$dialog.confirm("Are you sure you want to delete this screen?!",{okText:"Delete",cancelText:"Cancel"}).then((function(t){E().f[10]++,E().s[31]++,e.$emit("delete")}))}}},T=I,N=(n(11316),(0,p.Z)(T,S,k,!1,null,"0b0aba1f",null)),D=N.exports;function M(){var e="/openc3/plugins/packages/openc3-tool-tlmviewer/src/tools/TlmViewer/Openc3Screen.vue",t="1d6be119cf58bded810e3167d4e541a51669a7ad",n=new Function("return this")(),i="__coverage__",a={path:"/openc3/plugins/packages/openc3-tool-tlmviewer/src/tools/TlmViewer/Openc3Screen.vue",statementMap:{0:{start:{line:139,column:25},end:{line:146,column:1}},1:{start:{line:148,column:0},end:{line:171,column:2}},2:{start:{line:150,column:26},end:{line:150,column:52}},3:{start:{line:153,column:24},end:{line:161,column:3}},4:{start:{line:164,column:2},end:{line:170,column:3}},5:{start:{line:192,column:4},end:{line:215,column:5}},6:{start:{line:219,column:6},end:{line:221,column:7}},7:{start:{line:220,column:8},end:{line:220,column:51}},8:{start:{line:222,column:6},end:{line:222,column:17}},9:{start:{line:229,column:4},end:{line:244,column:5}},10:{start:{line:230,column:6},end:{line:237,column:8}},11:{start:{line:239,column:6},end:{line:243,column:8}},12:{start:{line:245,column:4},end:{line:245,column:16}},13:{start:{line:248,column:4},end:{line:248,column:30}},14:{start:{line:249,column:4},end:{line:249,column:49}},15:{start:{line:250,column:4},end:{line:250,column:26}},16:{start:{line:251,column:4},end:{line:251,column:56}},17:{start:{line:254,column:26},end:{line:254,column:51}},18:{start:{line:255,column:4},end:{line:257,column:23}},19:{start:{line:256,column:6},end:{line:256,column:19}},20:{start:{line:260,column:4},end:{line:263,column:5}},21:{start:{line:261,column:6},end:{line:261,column:33}},22:{start:{line:262,column:6},end:{line:262,column:25}},23:{start:{line:267,column:6},end:{line:267,column:22}},24:{start:{line:271,column:6},end:{line:271,column:22}},25:{start:{line:272,column:6},end:{line:272,column:28}},26:{start:{line:273,column:6},end:{line:273,column:27}},27:{start:{line:274,column:6},end:{line:274,column:30}},28:{start:{line:276,column:6},end:{line:280,column:8}},29:{start:{line:281,column:6},end:{line:281,column:72}},30:{start:{line:283,column:6},end:{line:332,column:7}},31:{start:{line:289,column:10},end:{line:330,column:11}},32:{start:{line:290,column:12},end:{line:329,column:13}},33:{start:{line:292,column:16},end:{line:296,column:17}},34:{start:{line:297,column:16},end:{line:297,column:52}},35:{start:{line:298,column:16},end:{line:298,column:53}},36:{start:{line:299,column:16},end:{line:299,column:62}},37:{start:{line:300,column:16},end:{line:304,column:17}},38:{start:{line:301,column:18},end:{line:301,column:35}},39:{start:{line:303,column:18},end:{line:303,column:36}},40:{start:{line:305,column:16},end:{line:305,column:21}},41:{start:{line:307,column:16},end:{line:307,column:75}},42:{start:{line:308,column:16},end:{line:308,column:38}},43:{start:{line:309,column:16},end:{line:310,column:63}},44:{start:{line:311,column:16},end:{line:311,column:21}},45:{start:{line:315,column:18},end:{line:317,column:41}},46:{start:{line:318,column:16},end:{line:318,column:48}},47:{start:{line:319,column:16},end:{line:319,column:21}},48:{start:{line:321,column:16},end:{line:321,column:52}},49:{start:{line:322,column:16},end:{line:322,column:21}},50:{start:{line:324,column:16},end:{line:324,column:55}},51:{start:{line:325,column:16},end:{line:325,column:21}},52:{start:{line:327,column:16},end:{line:327,column:73}},53:{start:{line:328,column:16},end:{line:328,column:21}},54:{start:{line:334,column:6},end:{line:357,column:7}},55:{start:{line:335,column:20},end:{line:335,column:22}},56:{start:{line:336,column:20},end:{line:336,column:22}},57:{start:{line:337,column:8},end:{line:340,column:9}},58:{start:{line:338,column:10},end:{line:338,column:33}},59:{start:{line:339,column:10},end:{line:339,column:39}},60:{start:{line:342,column:8},end:{line:347,column:10}},61:{start:{line:350,column:8},end:{line:354,column:9}},62:{start:{line:356,column:8},end:{line:356,column:61}},63:{start:{line:362,column:6},end:{line:362,column:36}},64:{start:{line:366,column:6},end:{line:366,column:38}},65:{start:{line:369,column:6},end:{line:385,column:7}},66:{start:{line:373,column:8},end:{line:384,column:12}},67:{start:{line:376,column:12},end:{line:376,column:61}},68:{start:{line:379,column:12},end:{line:383,column:14}},69:{start:{line:389,column:6},end:{line:389,column:52}},70:{start:{line:390,column:6},end:{line:390,column:28}},71:{start:{line:393,column:6},end:{line:393,column:22}},72:{start:{line:394,column:6},end:{line:394,column:29}},73:{start:{line:396,column:6},end:{line:396,column:42}},74:{start:{line:397,column:6},end:{line:397,column:28}},75:{start:{line:399,column:6},end:{line:399,column:58}},76:{start:{line:401,column:6},end:{line:403,column:8}},77:{start:{line:402,column:8},end:{line:402,column:26}},78:{start:{line:406,column:6},end:{line:406,column:41}},79:{start:{line:407,column:6},end:{line:407,column:28}},80:{start:{line:409,column:6},end:{line:409,column:58}},81:{start:{line:411,column:6},end:{line:423,column:8}},82:{start:{line:412,column:8},end:{line:422,column:9}},83:{start:{line:413,column:10},end:{line:420,column:12}},84:{start:{line:421,column:10},end:{line:421,column:33}},85:{start:{line:426,column:6},end:{line:426,column:29}},86:{start:{line:427,column:6},end:{line:431,column:7}},87:{start:{line:429,column:10},end:{line:429,column:37}},88:{start:{line:434,column:6},end:{line:434,column:32}},89:{start:{line:435,column:6},end:{line:435,column:34}},90:{start:{line:438,column:23},end:{line:438,column:27}},91:{start:{line:439,column:6},end:{line:448,column:7}},92:{start:{line:440,column:8},end:{line:444,column:9}},93:{start:{line:445,column:8},end:{line:445,column:48}},94:{start:{line:446,column:8},end:{line:446,column:45}},95:{start:{line:447,column:8},end:{line:447,column:59}},96:{start:{line:450,column:8},end:{line:452,column:16}},97:{start:{line:453,column:21},end:{line:453,column:23}},98:{start:{line:454,column:6},end:{line:459,column:7}},99:{start:{line:458,column:8},end:{line:458,column:57}},100:{start:{line:461,column:6},end:{line:507,column:7}},101:{start:{line:471,column:23},end:{line:476,column:9}},102:{start:{line:477,column:8},end:{line:477,column:37}},103:{start:{line:478,column:8},end:{line:478,column:47}},104:{start:{line:479,column:8},end:{line:479,column:35}},105:{start:{line:482,column:8},end:{line:484,column:9}},106:{start:{line:483,column:10},end:{line:483,column:41}},107:{start:{line:485,column:8},end:{line:506,column:9}},108:{start:{line:486,column:10},end:{line:493,column:12}},109:{start:{line:495,column:23},end:{line:503,column:11}},110:{start:{line:504,column:10},end:{line:504,column:49}},111:{start:{line:505,column:10},end:{line:505,column:42}},112:{start:{line:510,column:6},end:{line:525,column:8}},113:{start:{line:511,column:8},end:{line:524,column:10}},114:{start:{line:514,column:10},end:{line:519,column:11}},115:{start:{line:518,column:12},end:{line:518,column:50}},116:{start:{line:521,column:10},end:{line:523,column:11}},117:{start:{line:522,column:12},end:{line:522,column:52}}},fnMap:{0:{name:"(anonymous_0)",decl:{start:{line:148,column:32},end:{line:148,column:33}},loc:{start:{line:148,column:46},end:{line:171,column:1}},line:148},1:{name:"(anonymous_1)",decl:{start:{line:191,column:2},end:{line:191,column:3}},loc:{start:{line:191,column:9},end:{line:216,column:3}},line:191},2:{name:"(anonymous_2)",decl:{start:{line:218,column:11},end:{line:218,column:12}},loc:{start:{line:218,column:23},end:{line:223,column:5}},line:218},3:{name:"(anonymous_3)",decl:{start:{line:228,column:2},end:{line:228,column:3}},loc:{start:{line:228,column:31},end:{line:246,column:3}},line:228},4:{name:"(anonymous_4)",decl:{start:{line:247,column:2},end:{line:247,column:3}},loc:{start:{line:247,column:12},end:{line:252,column:3}},line:247},5:{name:"(anonymous_5)",decl:{start:{line:253,column:2},end:{line:253,column:3}},loc:{start:{line:253,column:12},end:{line:258,column:3}},line:253},6:{name:"(anonymous_6)",decl:{start:{line:255,column:31},end:{line:255,column:32}},loc:{start:{line:255,column:37},end:{line:257,column:5}},line:255},7:{name:"(anonymous_7)",decl:{start:{line:259,column:2},end:{line:259,column:3}},loc:{start:{line:259,column:14},end:{line:264,column:3}},line:259},8:{name:"(anonymous_8)",decl:{start:{line:266,column:17},end:{line:266,column:18}},loc:{start:{line:266,column:29},end:{line:268,column:5}},line:266},9:{name:"(anonymous_9)",decl:{start:{line:269,column:21},end:{line:269,column:22}},loc:{start:{line:269,column:33},end:{line:358,column:5}},line:269},10:{name:"(anonymous_10)",decl:{start:{line:288,column:8},end:{line:288,column:9}},loc:{start:{line:288,column:51},end:{line:331,column:9}},line:288},11:{name:"(anonymous_11)",decl:{start:{line:361,column:22},end:{line:361,column:23}},loc:{start:{line:361,column:38},end:{line:363,column:5}},line:361},12:{name:"(anonymous_12)",decl:{start:{line:365,column:20},end:{line:365,column:21}},loc:{start:{line:365,column:44},end:{line:367,column:5}},line:365},13:{name:"(anonymous_13)",decl:{start:{line:368,column:12},end:{line:368,column:13}},loc:{start:{line:368,column:24},end:{line:386,column:5}},line:368},14:{name:"(anonymous_14)",decl:{start:{line:375,column:16},end:{line:375,column:17}},loc:{start:{line:375,column:26},end:{line:377,column:11}},line:375},15:{name:"(anonymous_15)",decl:{start:{line:378,column:17},end:{line:378,column:18}},loc:{start:{line:378,column:28},end:{line:384,column:11}},line:378},16:{name:"(anonymous_16)",decl:{start:{line:387,column:14},end:{line:387,column:15}},loc:{start:{line:387,column:26},end:{line:391,column:5}},line:387},17:{name:"(anonymous_17)",decl:{start:{line:392,column:16},end:{line:392,column:17}},loc:{start:{line:392,column:28},end:{line:404,column:5}},line:392},18:{name:"(anonymous_18)",decl:{start:{line:401,column:21},end:{line:401,column:22}},loc:{start:{line:401,column:33},end:{line:403,column:7}},line:401},19:{name:"(anonymous_19)",decl:{start:{line:405,column:14},end:{line:405,column:15}},loc:{start:{line:405,column:36},end:{line:424,column:5}},line:405},20:{name:"(anonymous_20)",decl:{start:{line:411,column:21},end:{line:411,column:22}},loc:{start:{line:411,column:33},end:{line:423,column:7}},line:411},21:{name:"(anonymous_21)",decl:{start:{line:425,column:18},end:{line:425,column:19}},loc:{start:{line:425,column:30},end:{line:432,column:5}},line:425},22:{name:"(anonymous_22)",decl:{start:{line:428,column:8},end:{line:428,column:9}},loc:{start:{line:428,column:22},end:{line:430,column:9}},line:428},23:{name:"(anonymous_23)",decl:{start:{line:433,column:22},end:{line:433,column:23}},loc:{start:{line:433,column:34},end:{line:436,column:5}},line:433},24:{name:"(anonymous_24)",decl:{start:{line:437,column:19},end:{line:437,column:20}},loc:{start:{line:437,column:68},end:{line:508,column:5}},line:437},25:{name:"(anonymous_25)",decl:{start:{line:509,column:25},end:{line:509,column:26}},loc:{start:{line:509,column:44},end:{line:526,column:5}},line:509},26:{name:"(anonymous_26)",decl:{start:{line:510,column:34},end:{line:510,column:35}},loc:{start:{line:510,column:47},end:{line:525,column:7}},line:510},27:{name:"(anonymous_27)",decl:{start:{line:511,column:24},end:{line:511,column:25}},loc:{start:{line:511,column:36},end:{line:524,column:9}},line:511}},branchMap:{0:{loc:{start:{line:169,column:4},end:{line:169,column:46}},type:"binary-expr",locations:[{start:{line:169,column:4},end:{line:169,column:27}},{start:{line:169,column:31},end:{line:169,column:46}}],line:169},1:{loc:{start:{line:219,column:6},end:{line:221,column:7}},type:"if",locations:[{start:{line:219,column:6},end:{line:221,column:7}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:219},2:{loc:{start:{line:219,column:10},end:{line:219,column:52}},type:"binary-expr",locations:[{start:{line:219,column:10},end:{line:219,column:26}},{start:{line:219,column:30},end:{line:219,column:52}}],line:219},3:{loc:{start:{line:229,column:4},end:{line:244,column:5}},type:"if",locations:[{start:{line:229,column:4},end:{line:244,column:5}},{start:{line:238,column:11},end:{line:244,column:5}}],line:229},4:{loc:{start:{line:260,column:4},end:{line:263,column:5}},type:"if",locations:[{start:{line:260,column:4},end:{line:263,column:5}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:260},5:{loc:{start:{line:289,column:10},end:{line:330,column:11}},type:"if",locations:[{start:{line:289,column:10},end:{line:330,column:11}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:289},6:{loc:{start:{line:290,column:12},end:{line:329,column:13}},type:"switch",locations:[{start:{line:291,column:14},end:{line:305,column:21}},{start:{line:306,column:14},end:{line:311,column:21}},{start:{line:312,column:14},end:{line:312,column:29}},{start:{line:313,column:14},end:{line:319,column:21}},{start:{line:320,column:14},end:{line:322,column:21}},{start:{line:323,column:14},end:{line:325,column:21}},{start:{line:326,column:14},end:{line:328,column:21}}],line:290},7:{loc:{start:{line:300,column:16},end:{line:304,column:17}},type:"if",locations:[{start:{line:300,column:16},end:{line:304,column:17}},{start:{line:302,column:23},end:{line:304,column:17}}],line:300},8:{loc:{start:{line:315,column:18},end:{line:317,column:41}},type:"binary-expr",locations:[{start:{line:315,column:18},end:{line:317,column:19}},{start:{line:317,column:23},end:{line:317,column:41}}],line:315},9:{loc:{start:{line:334,column:6},end:{line:357,column:7}},type:"if",locations:[{start:{line:334,column:6},end:{line:357,column:7}},{start:{line:355,column:13},end:{line:357,column:7}}],line:334},10:{loc:{start:{line:369,column:6},end:{line:385,column:7}},type:"if",locations:[{start:{line:369,column:6},end:{line:385,column:7}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:369},11:{loc:{start:{line:370,column:8},end:{line:371,column:32}},type:"binary-expr",locations:[{start:{line:370,column:8},end:{line:370,column:53}},{start:{line:371,column:8},end:{line:371,column:32}}],line:370},12:{loc:{start:{line:412,column:8},end:{line:422,column:9}},type:"if",locations:[{start:{line:412,column:8},end:{line:422,column:9}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:412},13:{loc:{start:{line:439,column:6},end:{line:448,column:7}},type:"if",locations:[{start:{line:439,column:6},end:{line:448,column:7}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:439},14:{loc:{start:{line:454,column:6},end:{line:459,column:7}},type:"if",locations:[{start:{line:454,column:6},end:{line:459,column:7}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:454},15:{loc:{start:{line:461,column:6},end:{line:507,column:7}},type:"if",locations:[{start:{line:461,column:6},end:{line:507,column:7}},{start:{line:480,column:13},end:{line:507,column:7}}],line:461},16:{loc:{start:{line:462,column:8},end:{line:469,column:34}},type:"binary-expr",locations:[{start:{line:462,column:8},end:{line:462,column:36}},{start:{line:463,column:8},end:{line:463,column:38}},{start:{line:464,column:8},end:{line:464,column:37}},{start:{line:465,column:8},end:{line:465,column:29}},{start:{line:466,column:8},end:{line:466,column:29}},{start:{line:467,column:8},end:{line:467,column:28}},{start:{line:468,column:8},end:{line:468,column:32}},{start:{line:469,column:8},end:{line:469,column:34}}],line:462},17:{loc:{start:{line:482,column:8},end:{line:484,column:9}},type:"if",locations:[{start:{line:482,column:8},end:{line:484,column:9}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:482},18:{loc:{start:{line:485,column:8},end:{line:506,column:9}},type:"if",locations:[{start:{line:485,column:8},end:{line:506,column:9}},{start:{line:494,column:15},end:{line:506,column:9}}],line:485},19:{loc:{start:{line:514,column:10},end:{line:519,column:11}},type:"if",locations:[{start:{line:514,column:10},end:{line:519,column:11}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:514},20:{loc:{start:{line:521,column:10},end:{line:523,column:11}},type:"if",locations:[{start:{line:521,column:10},end:{line:523,column:11}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:521}},s:{0:0,1:0,2:0,3:0,4:0,5:0,6:0,7:0,8:0,9:0,10:0,11:0,12:0,13:0,14:0,15:0,16:0,17:0,18:0,19:0,20:0,21:0,22:0,23:0,24:0,25:0,26:0,27:0,28:0,29:0,30:0,31:0,32:0,33:0,34:0,35:0,36:0,37:0,38:0,39:0,40:0,41:0,42:0,43:0,44:0,45:0,46:0,47:0,48:0,49:0,50:0,51:0,52:0,53:0,54:0,55:0,56:0,57:0,58:0,59:0,60:0,61:0,62:0,63:0,64:0,65:0,66:0,67:0,68:0,69:0,70:0,71:0,72:0,73:0,74:0,75:0,76:0,77:0,78:0,79:0,80:0,81:0,82:0,83:0,84:0,85:0,86:0,87:0,88:0,89:0,90:0,91:0,92:0,93:0,94:0,95:0,96:0,97:0,98:0,99:0,100:0,101:0,102:0,103:0,104:0,105:0,106:0,107:0,108:0,109:0,110:0,111:0,112:0,113:0,114:0,115:0,116:0,117:0},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},b:{0:[0,0],1:[0,0],2:[0,0],3:[0,0],4:[0,0],5:[0,0],6:[0,0,0,0,0,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,0,0,0,0,0,0],17:[0,0],18:[0,0],19:[0,0],20:[0,0]},inputSourceMap:{version:3,sources:["Openc3Screen.vue"],names:[],mappings:";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAiIA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;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",file:"Openc3Screen.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--\x3e\n\n<template>\n <div>\n <v-card>\n <v-system-bar>\n <div v-show=\"errors.length !== 0\">\n <v-tooltip top>\n <template v-slot:activator=\"{ on, attrs }\">\n <div v-on=\"on\" v-bind=\"attrs\">\n <v-icon\n data-test=\"error-graph-icon\"\n @click=\"errorDialog = true\"\n >\n mdi-alert\n </v-icon>\n </div>\n </template>\n <span> Errors </span>\n </v-tooltip>\n </div>\n <v-spacer />\n <span>{{ target }} {{ 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=\"edit-screen-icon\" @click=\"openEdit\">\n mdi-pencil\n </v-icon>\n </div>\n </template>\n <span> Edit Screen </span>\n </v-tooltip>\n <v-tooltip top>\n <template v-slot:activator=\"{ on, attrs }\">\n <div v-on=\"on\" v-bind=\"attrs\">\n <v-icon\n data-test=\"minimize-screen-icon\"\n @click=\"minMaxTransition\"\n v-show=\"expand\"\n >\n mdi-window-minimize\n </v-icon>\n <v-icon\n data-test=\"maximize-screen-icon\"\n @click=\"minMaxTransition\"\n v-show=\"!expand\"\n >\n mdi-window-maximize\n </v-icon>\n </div>\n </template>\n <span v-show=\"expand\"> Minimize Screen </span>\n <span v-show=\"!expand\"> Maximize Screen </span>\n </v-tooltip>\n <v-tooltip top>\n <template v-slot:activator=\"{ on, attrs }\">\n <div v-on=\"on\" v-bind=\"attrs\">\n <v-icon\n data-test=\"close-screen-icon\"\n @click=\"$emit('close-screen')\"\n >\n mdi-close-box\n </v-icon>\n </div>\n </template>\n <span> Close Screen </span>\n </v-tooltip>\n </v-system-bar>\n <v-expand-transition>\n <div class=\"pa-1\" ref=\"screen\" v-show=\"expand\">\n <vertical-widget\n :key=\"screenKey\"\n :widgets=\"layoutStack[0].widgets\"\n v-on=\"$listeners\"\n />\n </div>\n </v-expand-transition>\n </v-card>\n <edit-screen-dialog\n v-if=\"editDialog\"\n v-model=\"editDialog\"\n :target=\"target\"\n :screen=\"screen\"\n :definition=\"currentDefinition\"\n :errors=\"errors\"\n @save=\"saveEdit($event)\"\n @cancel=\"cancelEdit()\"\n @delete=\"deleteScreen()\"\n />\n\n \x3c!-- Error dialog --\x3e\n <v-dialog v-model=\"errorDialog\" max-width=\"600\">\n <v-system-bar>\n <v-spacer />\n <span> Screen: {{ target }} {{ screen }} Errors </span>\n <v-spacer />\n </v-system-bar>\n <v-card class=\"pa-3\">\n <v-row class=\"my-3\">\n <v-textarea readonly rows=\"13\" :value=\"error\" />\n </v-row>\n <v-row>\n <v-btn block @click=\"clearErrors\"> Clear </v-btn>\n </v-row>\n </v-card>\n </v-dialog>\n </div>\n</template>\n\n<script>\nimport Api from '@openc3/tool-common/src/services/api'\nimport { ConfigParserService } from '@openc3/tool-common/src/services/config-parser'\nimport { OpenC3Api } from '@openc3/tool-common/src/services/openc3-api'\nimport Vue from 'vue'\nimport upperFirst from 'lodash/upperFirst'\nimport camelCase from 'lodash/camelCase'\nimport EditScreenDialog from '@/tools/TlmViewer/EditScreenDialog'\n\n// Globally register all XxxWidget.vue components\nconst requireComponent = require.context(\n // The relative path of the components folder\n '@openc3/tool-common/src/components/widgets',\n // Whether or not to look in subfolders\n false,\n // The regular expression used to match base component filenames\n /[A-Z]\\w+Widget\\.vue$/\n)\n\nrequireComponent.keys().forEach((filename) => {\n // Get component config\n const componentConfig = requireComponent(filename)\n\n // Get PascalCase name of component\n const componentName = upperFirst(\n camelCase(\n // Gets the filename regardless of folder depth\n filename\n .split('/')\n .pop()\n .replace(/\\.\\w+$/, '')\n )\n )\n\n // Register component globally\n Vue.component(\n componentName,\n // Look for the component options on `.default`, which will\n // exist if the component was exported with `export default`,\n // otherwise fall back to module's root.\n componentConfig.default || componentConfig\n )\n})\n\nexport default {\n components: {\n EditScreenDialog,\n },\n props: {\n target: {\n type: String,\n default: '',\n },\n screen: {\n type: String,\n default: '',\n },\n definition: {\n type: String,\n default: '',\n },\n },\n data() {\n return {\n api: null,\n backup: '',\n currentDefinition: this.definition,\n editDialog: false,\n expand: true,\n configParser: null,\n currentLayout: null,\n layoutStack: [],\n namedWidgets: {},\n dynamicWidgets: [],\n width: null,\n height: null,\n fixed: null,\n globalSettings: [],\n globalSubsettings: [],\n substitute: false,\n original_target_name: null,\n force_substitute: false,\n pollingPeriod: 1,\n errors: [],\n errorDialog: false,\n screenKey: null,\n }\n },\n computed: {\n error: function () {\n if (this.errorDialog && this.errors.length > 0) {\n return JSON.stringify(this.errors, null, 4)\n }\n return null\n },\n },\n // Called when an error from any descendent component is captured\n // We need this because an error can occur from any of the children\n // in the widget stack and are typically thrown on create()\n errorCaptured(err, vm, info) {\n if (err.usage) {\n this.errors.push({\n type: 'usage',\n message: err.message,\n usage: err.usage,\n line: err.line,\n lineNumber: err.lineNumber,\n time: new Date().getTime(),\n })\n } else {\n this.errors.push({\n type: 'error',\n message: `${err}`,\n time: new Date().getTime(),\n })\n }\n return false\n },\n created() {\n this.api = new OpenC3Api()\n this.configParser = new ConfigParserService()\n this.parseDefinition()\n this.screenKey = Math.floor(Math.random() * 1000000)\n },\n mounted() {\n let refreshInterval = this.pollingPeriod * 1000\n this.updater = setInterval(() => {\n this.update()\n }, refreshInterval)\n },\n destroyed() {\n if (this.updater != null) {\n clearInterval(this.updater)\n this.updater = null\n }\n },\n methods: {\n clearErrors: function () {\n this.errors = []\n },\n parseDefinition: function () {\n // Each time we start over and parse the screen definition\n this.errors = []\n this.namedWidgets = {}\n this.layoutStack = []\n this.dynamicWidgets = []\n // Every screen starts with a VerticalWidget\n this.layoutStack.push({\n type: 'VerticalWidget',\n parameters: [],\n widgets: [],\n })\n this.currentLayout = this.layoutStack[this.layoutStack.length - 1]\n\n this.configParser.parse_string(\n this.currentDefinition,\n '',\n false,\n true,\n (keyword, parameters, line, lineNumber) => {\n if (keyword) {\n switch (keyword) {\n case 'SCREEN':\n this.configParser.verify_num_parameters(\n 3,\n 4,\n `${keyword} <Width or AUTO> <Height or AUTO> <Polling Period> <FIXED>`\n )\n this.width = parseInt(parameters[0])\n this.height = parseInt(parameters[1])\n this.pollingPeriod = parseFloat(parameters[2])\n if (parameters.length === 4) {\n this.fixed = true\n } else {\n this.fixed = false\n }\n break\n case 'END':\n this.configParser.verify_num_parameters(0, 0, `${keyword}`)\n this.layoutStack.pop()\n this.currentLayout =\n this.layoutStack[this.layoutStack.length - 1]\n break\n case 'SETTING':\n case 'SUBSETTING':\n const widget =\n this.currentLayout.widgets[\n this.currentLayout.widgets.length - 1\n ] ?? this.currentLayout\n widget.settings.push(parameters)\n break\n case 'GLOBAL_SETTING':\n this.globalSettings.push(parameters)\n break\n case 'GLOBAL_SUBSETTING':\n this.globalSubsettings.push(parameters)\n break\n default:\n this.processWidget(keyword, parameters, line, lineNumber)\n break\n } // switch keyword\n } // if keyword\n }\n )\n // This can happen if there is a typo in a layout widget with a corresponding END\n if (typeof this.layoutStack[0] === 'undefined') {\n let names = []\n let lines = []\n for (const widget of this.dynamicWidgets) {\n names.push(widget.name)\n lines.push(widget.lineNumber)\n }\n // Warn about any of the Dynamic widgets we found .. they could be typos\n this.errors.push({\n type: 'usage',\n message: `Unknown widget! Are these widgets: ${names.join(',')}?`,\n lineNumber: lines.join(','),\n time: new Date().getTime(),\n })\n // Create a simple VerticalWidget to replace the bad widget so\n // the layout stack can successfully unwind\n this.layoutStack[0] = {\n type: 'VerticalWidget',\n parameters: [],\n widgets: [],\n }\n } else {\n this.applyGlobalSettings(this.layoutStack[0].widgets)\n }\n },\n // Called by button scripts to get named widgets\n // Underscores used to match OpenC3 API rather than Javascript convention\n get_named_widget: function (name) {\n return this.namedWidgets[name]\n },\n // Called by named widgets to register with the screen\n setNamedWidget: function (name, widget) {\n this.namedWidgets[name] = widget\n },\n update: function () {\n if (\n this.$store.state.tlmViewerItems.length !== 0 &&\n this.errors.length === 0\n ) {\n this.api\n .get_tlm_values(this.$store.state.tlmViewerItems)\n .then((data) => {\n this.$store.commit('tlmViewerUpdateValues', data)\n })\n .catch((error) => {\n this.errors.push({\n type: 'usage',\n message: error.message,\n time: new Date().getTime(),\n })\n })\n }\n },\n openEdit: function () {\n // Make a copy in case they edit and cancel\n this.backup = this.currentDefinition.repeat(1)\n this.editDialog = true\n },\n cancelEdit: function () {\n this.file = null\n this.editDialog = false\n // Restore the backup since we cancelled\n this.currentDefinition = this.backup\n this.parseDefinition()\n // Force re-render\n this.screenKey = Math.floor(Math.random() * 1000000)\n // After re-render clear any errors\n this.$nextTick(function () {\n this.clearErrors()\n })\n },\n saveEdit: function (definition) {\n this.currentDefinition = definition\n this.parseDefinition()\n // Force re-render\n this.screenKey = Math.floor(Math.random() * 1000000)\n // After re-render wait and see if there are errors before saving\n this.$nextTick(function () {\n if (this.errors.length === 0) {\n Api.post('/openc3-api/screen/', {\n data: {\n scope: localStorage.scope,\n target: this.target,\n screen: this.screen,\n text: this.currentDefinition,\n },\n })\n this.editDialog = false\n }\n })\n },\n deleteScreen: function () {\n this.editDialog = false\n Api.delete(`/openc3-api/screen/${this.target}/${this.screen}`).then(\n (response) => {\n this.$emit('delete-screen')\n }\n )\n },\n minMaxTransition: function () {\n this.expand = !this.expand\n this.$emit('min-max-screen')\n },\n processWidget: function (keyword, parameters, line, lineNumber) {\n var widgetName = null\n if (keyword === 'NAMED_WIDGET') {\n this.configParser.verify_num_parameters(\n 2,\n null,\n `${keyword} <Widget Name> <Widget Type> <Widget Settings... (optional)>`\n )\n widgetName = parameters[0].toUpperCase()\n keyword = parameters[1].toUpperCase()\n parameters = parameters.slice(2, parameters.length)\n }\n const componentName =\n keyword.charAt(0).toUpperCase() +\n keyword.slice(1).toLowerCase() +\n 'Widget'\n let settings = []\n if (widgetName !== null) {\n // Push a reference to the screen so the layout can register when it is created\n // We do this because the widget isn't actually created until\n // the layout happens with <component :is='type'>\n settings.push(['NAMED_WIDGET', widgetName, this])\n }\n // If this is a layout widget we add it to the layoutStack and reset the currentLayout\n if (\n keyword.includes('VERTICAL') ||\n keyword.includes('HORIZONTAL') ||\n keyword === 'MATRIXBYCOLUMNS' ||\n keyword === 'TABBOOK' ||\n keyword === 'TABITEM' ||\n keyword === 'CANVAS' ||\n keyword === 'RADIOGROUP' ||\n keyword === 'SCROLLWINDOW'\n ) {\n const layout = {\n type: componentName,\n parameters: parameters,\n settings: settings,\n widgets: [],\n }\n this.layoutStack.push(layout)\n this.currentLayout.widgets.push(layout)\n this.currentLayout = layout\n } else {\n // Buttons require a reference to the screen to call get_named_widget\n if (keyword.includes('BUTTON')) {\n settings.push(['SCREEN', this])\n }\n if (Vue.options.components[componentName]) {\n this.currentLayout.widgets.push({\n type: componentName,\n target: this.target,\n parameters: parameters,\n settings: settings,\n line: line,\n lineNumber: lineNumber,\n })\n } else {\n let widget = {\n type: 'DynamicWidget',\n target: this.target,\n parameters: parameters,\n settings: settings,\n name: componentName,\n line: line,\n lineNumber: lineNumber,\n }\n this.currentLayout.widgets.push(widget)\n this.dynamicWidgets.push(widget)\n }\n }\n },\n applyGlobalSettings: function (widgets) {\n this.globalSettings.forEach((setting) => {\n widgets.forEach((widget) => {\n // widget.type is already the full camelcase widget name like LabelWidget\n // so we have to lower case both and tack on 'widget' to compare\n if (\n widget.type.toLowerCase() ===\n setting[0].toLowerCase() + 'widget'\n ) {\n widget.settings.push(setting.slice(1))\n }\n // Recursively apply to all widgets contained in layouts\n if (widget.widgets) {\n this.applyGlobalSettings(widget.widgets)\n }\n })\n })\n },\n },\n}\n<\/script>\n\n<style scoped>\n.v-card {\n background-color: var(--v-tertiary-darken2);\n}\n.v-textarea >>> textarea {\n padding: 5px;\n background-color: var(--v-tertiary-darken1) !important;\n}\n</style>\n"]},_coverageSchema:"1a1c01bbd47fc00a2c39e90264f33305004495a9",hash:"1d6be119cf58bded810e3167d4e541a51669a7ad"},r=n[i]||(n[i]={});r[e]&&r[e].hash===t||(r[e]=a);var s=r[e];return M=function(){return s},s}M();var L=(M().s[0]++,n(15507));M().s[1]++,L.keys().forEach((function(e){M().f[0]++;var t=(M().s[2]++,L(e)),n=(M().s[3]++,b()(x()(e.split("/").pop().replace(/\.\w+$/,""))));M().s[4]++,w["default"].component(n,(M().b[0][0]++,t.default||(M().b[0][1]++,t)))}));var O={components:{EditScreenDialog:D},props:{target:{type:String,default:""},screen:{type:String,default:""},definition:{type:String,default:""}},data:function(){return M().f[1]++,M().s[5]++,{api:null,backup:"",currentDefinition:this.definition,editDialog:!1,expand:!0,configParser:null,currentLayout:null,layoutStack:[],namedWidgets:{},dynamicWidgets:[],width:null,height:null,fixed:null,globalSettings:[],globalSubsettings:[],substitute:!1,original_target_name:null,force_substitute:!1,pollingPeriod:1,errors:[],errorDialog:!1,screenKey:null}},computed:{error:function(){return M().f[2]++,M().s[6]++,M().b[2][0]++,this.errorDialog&&(M().b[2][1]++,this.errors.length>0)?(M().b[1][0]++,M().s[7]++,JSON.stringify(this.errors,null,4)):(M().b[1][1]++,M().s[8]++,null)}},errorCaptured:function(e,t,n){return M().f[3]++,M().s[9]++,e.usage?(M().b[3][0]++,M().s[10]++,this.errors.push({type:"usage",message:e.message,usage:e.usage,line:e.line,lineNumber:e.lineNumber,time:(new Date).getTime()})):(M().b[3][1]++,M().s[11]++,this.errors.push({type:"error",message:"".concat(e),time:(new Date).getTime()})),M().s[12]++,!1},created:function(){M().f[4]++,M().s[13]++,this.api=new c.k,M().s[14]++,this.configParser=new _.p,M().s[15]++,this.parseDefinition(),M().s[16]++,this.screenKey=Math.floor(1e6*Math.random())},mounted:function(){var e=this;M().f[5]++;var t=(M().s[17]++,1e3*this.pollingPeriod);M().s[18]++,this.updater=setInterval((function(){M().f[6]++,M().s[19]++,e.update()}),t)},destroyed:function(){M().f[7]++,M().s[20]++,null!=this.updater?(M().b[4][0]++,M().s[21]++,clearInterval(this.updater),M().s[22]++,this.updater=null):M().b[4][1]++},methods:{clearErrors:function(){M().f[8]++,M().s[23]++,this.errors=[]},parseDefinition:function(){var e=this;if(M().f[9]++,M().s[24]++,this.errors=[],M().s[25]++,this.namedWidgets={},M().s[26]++,this.layoutStack=[],M().s[27]++,this.dynamicWidgets=[],M().s[28]++,this.layoutStack.push({type:"VerticalWidget",parameters:[],widgets:[]}),M().s[29]++,this.currentLayout=this.layoutStack[this.layoutStack.length-1],M().s[30]++,this.configParser.parse_string(this.currentDefinition,"",!1,!0,(function(t,n,i,a){var r;if(M().f[10]++,M().s[31]++,t)switch(M().b[5][0]++,M().s[32]++,t){case"SCREEN":M().b[6][0]++,M().s[33]++,e.configParser.verify_num_parameters(3,4,"".concat(t," <Width or AUTO> <Height or AUTO> <Polling Period> <FIXED>")),M().s[34]++,e.width=parseInt(n[0]),M().s[35]++,e.height=parseInt(n[1]),M().s[36]++,e.pollingPeriod=parseFloat(n[2]),M().s[37]++,4===n.length?(M().b[7][0]++,M().s[38]++,e.fixed=!0):(M().b[7][1]++,M().s[39]++,e.fixed=!1),M().s[40]++;break;case"END":M().b[6][1]++,M().s[41]++,e.configParser.verify_num_parameters(0,0,"".concat(t)),M().s[42]++,e.layoutStack.pop(),M().s[43]++,e.currentLayout=e.layoutStack[e.layoutStack.length-1],M().s[44]++;break;case"SETTING":M().b[6][2]++;case"SUBSETTING":M().b[6][3]++;var s=(M().s[45]++,null!==(M().b[8][0]++,r=e.currentLayout.widgets[e.currentLayout.widgets.length-1])&&void 0!==r?r:(M().b[8][1]++,e.currentLayout));M().s[46]++,s.settings.push(n),M().s[47]++;break;case"GLOBAL_SETTING":M().b[6][4]++,M().s[48]++,e.globalSettings.push(n),M().s[49]++;break;case"GLOBAL_SUBSETTING":M().b[6][5]++,M().s[50]++,e.globalSubsettings.push(n),M().s[51]++;break;default:M().b[6][6]++,M().s[52]++,e.processWidget(t,n,i,a),M().s[53]++;break}else M().b[5][1]++})),M().s[54]++,"undefined"===typeof this.layoutStack[0]){M().b[9][0]++;var t=(M().s[55]++,[]),n=(M().s[56]++,[]);M().s[57]++;var i,a=(0,l.Z)(this.dynamicWidgets);try{for(a.s();!(i=a.n()).done;){var r=i.value;M().s[58]++,t.push(r.name),M().s[59]++,n.push(r.lineNumber)}}catch(s){a.e(s)}finally{a.f()}M().s[60]++,this.errors.push({type:"usage",message:"Unknown widget! Are these widgets: ".concat(t.join(","),"?"),lineNumber:n.join(","),time:(new Date).getTime()}),M().s[61]++,this.layoutStack[0]={type:"VerticalWidget",parameters:[],widgets:[]}}else M().b[9][1]++,M().s[62]++,this.applyGlobalSettings(this.layoutStack[0].widgets)},get_named_widget:function(e){return M().f[11]++,M().s[63]++,this.namedWidgets[e]},setNamedWidget:function(e,t){M().f[12]++,M().s[64]++,this.namedWidgets[e]=t},update:function(){var e=this;M().f[13]++,M().s[65]++,M().b[11][0]++,0!==this.$store.state.tlmViewerItems.length&&(M().b[11][1]++,0===this.errors.length)?(M().b[10][0]++,M().s[66]++,this.api.get_tlm_values(this.$store.state.tlmViewerItems).then((function(t){M().f[14]++,M().s[67]++,e.$store.commit("tlmViewerUpdateValues",t)})).catch((function(t){M().f[15]++,M().s[68]++,e.errors.push({type:"usage",message:t.message,time:(new Date).getTime()})}))):M().b[10][1]++},openEdit:function(){M().f[16]++,M().s[69]++,this.backup=this.currentDefinition.repeat(1),M().s[70]++,this.editDialog=!0},cancelEdit:function(){M().f[17]++,M().s[71]++,this.file=null,M().s[72]++,this.editDialog=!1,M().s[73]++,this.currentDefinition=this.backup,M().s[74]++,this.parseDefinition(),M().s[75]++,this.screenKey=Math.floor(1e6*Math.random()),M().s[76]++,this.$nextTick((function(){M().f[18]++,M().s[77]++,this.clearErrors()}))},saveEdit:function(e){M().f[19]++,M().s[78]++,this.currentDefinition=e,M().s[79]++,this.parseDefinition(),M().s[80]++,this.screenKey=Math.floor(1e6*Math.random()),M().s[81]++,this.$nextTick((function(){M().f[20]++,M().s[82]++,0===this.errors.length?(M().b[12][0]++,M().s[83]++,o.Z.post("/openc3-api/screen/",{data:{scope:localStorage.scope,target:this.target,screen:this.screen,text:this.currentDefinition}}),M().s[84]++,this.editDialog=!1):M().b[12][1]++}))},deleteScreen:function(){var e=this;M().f[21]++,M().s[85]++,this.editDialog=!1,M().s[86]++,o.Z["delete"]("/openc3-api/screen/".concat(this.target,"/").concat(this.screen)).then((function(t){M().f[22]++,M().s[87]++,e.$emit("delete-screen")}))},minMaxTransition:function(){M().f[23]++,M().s[88]++,this.expand=!this.expand,M().s[89]++,this.$emit("min-max-screen")},processWidget:function(e,t,n,i){M().f[24]++;var a=(M().s[90]++,null);M().s[91]++,"NAMED_WIDGET"===e?(M().b[13][0]++,M().s[92]++,this.configParser.verify_num_parameters(2,null,"".concat(e," <Widget Name> <Widget Type> <Widget Settings... (optional)>")),M().s[93]++,a=t[0].toUpperCase(),M().s[94]++,e=t[1].toUpperCase(),M().s[95]++,t=t.slice(2,t.length)):M().b[13][1]++;var r=(M().s[96]++,e.charAt(0).toUpperCase()+e.slice(1).toLowerCase()+"Widget"),s=(M().s[97]++,[]);if(M().s[98]++,null!==a?(M().b[14][0]++,M().s[99]++,s.push(["NAMED_WIDGET",a,this])):M().b[14][1]++,M().s[100]++,M().b[16][0]++,e.includes("VERTICAL")||(M().b[16][1]++,e.includes("HORIZONTAL"))||(M().b[16][2]++,"MATRIXBYCOLUMNS"===e)||(M().b[16][3]++,"TABBOOK"===e)||(M().b[16][4]++,"TABITEM"===e)||(M().b[16][5]++,"CANVAS"===e)||(M().b[16][6]++,"RADIOGROUP"===e)||(M().b[16][7]++,"SCROLLWINDOW"===e)){M().b[15][0]++;var l=(M().s[101]++,{type:r,parameters:t,settings:s,widgets:[]});M().s[102]++,this.layoutStack.push(l),M().s[103]++,this.currentLayout.widgets.push(l),M().s[104]++,this.currentLayout=l}else if(M().b[15][1]++,M().s[105]++,e.includes("BUTTON")?(M().b[17][0]++,M().s[106]++,s.push(["SCREEN",this])):M().b[17][1]++,M().s[107]++,w["default"].options.components[r])M().b[18][0]++,M().s[108]++,this.currentLayout.widgets.push({type:r,target:this.target,parameters:t,settings:s,line:n,lineNumber:i});else{M().b[18][1]++;var o=(M().s[109]++,{type:"DynamicWidget",target:this.target,parameters:t,settings:s,name:r,line:n,lineNumber:i});M().s[110]++,this.currentLayout.widgets.push(o),M().s[111]++,this.dynamicWidgets.push(o)}},applyGlobalSettings:function(e){var t=this;M().f[25]++,M().s[112]++,this.globalSettings.forEach((function(n){M().f[26]++,M().s[113]++,e.forEach((function(e){M().f[27]++,M().s[114]++,e.type.toLowerCase()===n[0].toLowerCase()+"widget"?(M().b[19][0]++,M().s[115]++,e.settings.push(n.slice(1))):M().b[19][1]++,M().s[116]++,e.widgets?(M().b[20][0]++,M().s[117]++,t.applyGlobalSettings(e.widgets)):M().b[20][1]++}))}))}}},Z=O,W=(n(24473),(0,p.Z)(Z,f,g,!1,null,"10fc5aea",null)),P=W.exports,V=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("v-dialog",{attrs:{width:"600"},model:{value:e.show,callback:function(t){e.show=t},expression:"show"}},[n("v-card",[n("v-system-bar",[n("v-spacer"),n("span",[e._v("Create New Screen")]),n("v-spacer"),n("v-tooltip",{attrs:{top:""},scopedSlots:e._u([{key:"activator",fn:function(t){var i=t.on,a=t.attrs;return[n("div",e._g(e._b({},"div",a,!1),i),[n("v-icon",{attrs:{"data-test":"new-screen-close-icon"},on:{click:function(t){e.show=!1}}},[e._v(" mdi-close-box ")])],1)]}}])},[n("span",[e._v("Close")])])],1),n("v-card-text",[n("div",{staticClass:"pa-3"},[n("v-alert",{attrs:{type:"error",dismissible:"",dense:""},model:{value:e.duplicateScreenAlert,callback:function(t){e.duplicateScreenAlert=t},expression:"duplicateScreenAlert"}},[e._v(" Screen "+e._s(e.newScreenName.toUpperCase())+" already exists! ")]),n("v-row",{staticClass:"pb-2"},[n("span",[e._v("Existing Screens: "+e._s(e.screens.join(", ")))])]),n("v-row",[n("v-text-field",{attrs:{flat:"",autofocus:"","solo-inverted":"","hide-details":"",clearable:"",label:"Screen Name","data-test":"new-screen-name"},on:{keyup:function(t){return e.newScreenKeyup(t)}},model:{value:e.newScreenName,callback:function(t){e.newScreenName=t},expression:"newScreenName"}}),e.newScreenSaving?n("div",{staticClass:"pl-2"},[n("v-progress-circular",{attrs:{indeterminate:"",color:"primary"}})],1):e._e()],1)],1)]),n("v-divider"),n("v-card-actions",[n("v-btn",{attrs:{color:"primary",text:""},on:{click:e.saveNewScreen}},[e._v(" Ok ")]),n("v-btn",{attrs:{text:""},on:{click:function(t){e.show=!1}}},[e._v(" Cancel ")])],1)],1)],1)},R=[];function $(){var e="/openc3/plugins/packages/openc3-tool-tlmviewer/src/tools/TlmViewer/NewScreenDialog.vue",t="d5d00003a293540c60cdeb27a495053f007f186f",n=new Function("return this")(),i="__coverage__",a={path:"/openc3/plugins/packages/openc3-tool-tlmviewer/src/tools/TlmViewer/NewScreenDialog.vue",statementMap:{0:{start:{line:83,column:21},end:{line:83,column:23}},1:{start:{line:87,column:4},end:{line:91,column:5}},2:{start:{line:94,column:4},end:{line:94,column:37}},3:{start:{line:95,column:4},end:{line:95,column:32}},4:{start:{line:100,column:8},end:{line:100,column:25}},5:{start:{line:103,column:8},end:{line:103,column:34}},6:{start:{line:109,column:6},end:{line:116,column:7}},7:{start:{line:110,column:8},end:{line:110,column:40}},8:{start:{line:112,column:8},end:{line:112,column:41}},9:{start:{line:113,column:8},end:{line:115,column:9}},10:{start:{line:114,column:10},end:{line:114,column:30}},11:{start:{line:119,column:6},end:{line:119,column:33}},12:{start:{line:120,column:6},end:{line:120,column:47}}},fnMap:{0:{name:"(anonymous_0)",decl:{start:{line:83,column:15},end:{line:83,column:16}},loc:{start:{line:83,column:21},end:{line:83,column:23}},line:83},1:{name:"(anonymous_1)",decl:{start:{line:86,column:2},end:{line:86,column:3}},loc:{start:{line:86,column:9},end:{line:92,column:3}},line:86},2:{name:"(anonymous_2)",decl:{start:{line:93,column:2},end:{line:93,column:3}},loc:{start:{line:93,column:12},end:{line:96,column:3}},line:93},3:{name:"(anonymous_3)",decl:{start:{line:99,column:6},end:{line:99,column:7}},loc:{start:{line:99,column:12},end:{line:101,column:7}},line:99},4:{name:"(anonymous_4)",decl:{start:{line:102,column:6},end:{line:102,column:7}},loc:{start:{line:102,column:17},end:{line:104,column:7}},line:102},5:{name:"(anonymous_5)",decl:{start:{line:108,column:4},end:{line:108,column:5}},loc:{start:{line:108,column:26},end:{line:117,column:5}},line:108},6:{name:"(anonymous_6)",decl:{start:{line:118,column:4},end:{line:118,column:5}},loc:{start:{line:118,column:20},end:{line:121,column:5}},line:118}},branchMap:{0:{loc:{start:{line:109,column:6},end:{line:116,column:7}},type:"if",locations:[{start:{line:109,column:6},end:{line:116,column:7}},{start:{line:111,column:13},end:{line:116,column:7}}],line:109},1:{loc:{start:{line:113,column:8},end:{line:115,column:9}},type:"if",locations:[{start:{line:113,column:8},end:{line:115,column:9}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:113}},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},f:{0:0,1:0,2:0,3:0,4:0,5:0,6:0},b:{0:[0,0],1:[0,0]},inputSourceMap:{version:3,sources:["NewScreenDialog.vue"],names:[],mappings:";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA6EA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;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--\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\n <v-row class="pb-2">\n <span>Existing Screens: {{ screens.join(\', \') }}</span>\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"\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>\nexport default {\n props: {\n value: Boolean, // value is the default prop when using v-model\n screens: {\n type: Array,\n default: () => [],\n },\n },\n data() {\n return {\n newScreenSaving: false,\n newScreenName: \'\',\n duplicateScreenAlert: false,\n }\n },\n created() {\n this.duplicateScreenAlert = false\n this.newScreenSaving = false\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 },\n methods: {\n newScreenKeyup(event) {\n if (this.screens.indexOf(this.newScreenName.toUpperCase()) !== -1) {\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(\'success\', this.newScreenName)\n },\n },\n}\n<\/script>\n']},_coverageSchema:"1a1c01bbd47fc00a2c39e90264f33305004495a9",hash:"d5d00003a293540c60cdeb27a495053f007f186f"},r=n[i]||(n[i]={});r[e]&&r[e].hash===t||(r[e]=a);var s=r[e];return $=function(){return s},s}$();var H={props:{value:Boolean,screens:{type:Array,default:function(){return $().f[0]++,$().s[0]++,[]}}},data:function(){return $().f[1]++,$().s[1]++,{newScreenSaving:!1,newScreenName:"",duplicateScreenAlert:!1}},created:function(){$().f[2]++,$().s[2]++,this.duplicateScreenAlert=!1,$().s[3]++,this.newScreenSaving=!1},computed:{show:{get:function(){return $().f[3]++,$().s[4]++,this.value},set:function(e){$().f[4]++,$().s[5]++,this.$emit("input",e)}}},methods:{newScreenKeyup:function(e){$().f[5]++,$().s[6]++,-1!==this.screens.indexOf(this.newScreenName.toUpperCase())?($().b[0][0]++,$().s[7]++,this.duplicateScreenAlert=!0):($().b[0][1]++,$().s[8]++,this.duplicateScreenAlert=!1,$().s[9]++,"Enter"===e.key?($().b[1][0]++,$().s[10]++,this.saveNewScreen()):$().b[1][1]++)},saveNewScreen:function(){$().f[6]++,$().s[11]++,this.newScreenSaving=!0,$().s[12]++,this.$emit("success",this.newScreenName)}}},U=H,z=(0,p.Z)(U,V,R,!1,null,null,null),G=z.exports,B=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("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"}},[n("v-card",[n("form",{on:{submit:function(t){return t.preventDefault(),e.success.apply(null,arguments)}}},[n("v-system-bar",[n("v-spacer"),n("span",[e._v("Open Configuration")]),n("v-spacer")],1),n("v-card-text",[n("div",{staticClass:"pa-3"},[n("v-row",{attrs:{dense:""}},[n("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),n("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(t){var i=t.item;return[n("v-btn",{staticClass:"mt-1",attrs:{"data-test":"item-delete",icon:""},on:{click:function(t){return e.deleteConfig(i)}}},[n("v-icon",[e._v("mdi-delete")])],1)]}}])}),n("v-row",{attrs:{dense:""}},[n("span",{directives:[{name:"show",rawName:"v-show",value:e.error,expression:"error"}],staticClass:"ma-2 red--text",domProps:{textContent:e._s(e.error)}})]),n("v-row",[n("v-btn",{attrs:{type:"submit",color:"success","data-test":"open-config-submit-btn",disabled:!!e.error},on:{click:function(t){return t.preventDefault(),e.success.apply(null,arguments)}}},[e._v(" Ok ")]),n("v-spacer"),n("v-btn",{attrs:{color:"primary","data-test":"open-config-cancel-btn"},on:{click:e.cancel}},[e._v(" Cancel ")])],1)],1)])],1)])],1)},F=[],j=(n(94908),n(99805),{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 c.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 c.k).delete_config(t.tool,e.config)})).catch((function(n){n&&t.$emit("warning","Failed to delete config ".concat(e.config," Error: ").concat(n))}))}}}),Y=j,K=(0,p.Z)(Y,B,F,!1,null,"db42aa32",null),q=K.exports,X=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("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"}},[n("v-card",[n("form",{on:{submit:function(t){return t.preventDefault(),e.success.apply(null,arguments)}}},[n("v-system-bar",[n("v-spacer"),n("span",[e._v("Save Configuration")]),n("v-spacer")],1),n("v-card-text",[n("div",{staticClass:"pa-3"},[n("v-row",{attrs:{dense:""}},[n("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),n("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(t){var i=t.item;return[n("v-btn",{staticClass:"mt-1",attrs:{icon:"","data-test":"item-delete"},on:{click:function(t){return e.deleteConfig(i)}}},[n("v-icon",[e._v("mdi-delete")])],1)]}}])}),n("v-row",{attrs:{dense:""}},[n("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),n("v-row",{attrs:{dense:""}},[n("span",{directives:[{name:"show",rawName:"v-show",value:e.error,expression:"error"}],staticClass:"ma-2 red--text",domProps:{textContent:e._s(e.error)}})]),n("v-row",[n("v-spacer"),n("v-btn",{staticClass:"mx-2",attrs:{outlined:""},on:{click:e.cancel}},[e._v(" Cancel ")]),n("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)])],1)},J=[],Q={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 c.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 c.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,p.Z)(ee,X,J,!1,null,null,null),ne=te.exports,ie=n(87955);function ae(){var e="/openc3/plugins/packages/openc3-tool-tlmviewer/src/tools/TlmViewer/TlmViewer.vue",t="6b1140bfffccb28d5d6f053cbf9ae5e0544fb07d",n=new Function("return this")(),i="__coverage__",a={path:"/openc3/plugins/packages/openc3-tool-tlmviewer/src/tools/TlmViewer/TlmViewer.vue",statementMap:{0:{start:{line:122,column:4},end:{line:157,column:5}},1:{start:{line:141,column:16},end:{line:141,column:38}},2:{start:{line:148,column:16},end:{line:148,column:38}},3:{start:{line:160,column:4},end:{line:160,column:30}},4:{start:{line:161,column:4},end:{line:172,column:8}},5:{start:{line:164,column:26},end:{line:164,column:37}},6:{start:{line:165,column:8},end:{line:167,column:9}},7:{start:{line:165,column:21},end:{line:165,column:22}},8:{start:{line:166,column:10},end:{line:166,column:63}},9:{start:{line:168,column:8},end:{line:170,column:9}},10:{start:{line:169,column:10},end:{line:169,column:53}},11:{start:{line:171,column:8},end:{line:171,column:28}},12:{start:{line:175,column:4},end:{line:179,column:6}},13:{start:{line:180,column:4},end:{line:180,column:47}},14:{start:{line:181,column:27},end:{line:181,column:71}},15:{start:{line:182,column:4},end:{line:184,column:5}},16:{start:{line:183,column:6},end:{line:183,column:44}},17:{start:{line:188,column:6},end:{line:188,column:23}},18:{start:{line:189,column:6},end:{line:193,column:8}},19:{start:{line:190,column:8},end:{line:192,column:9}},20:{start:{line:191,column:10},end:{line:191,column:35}},21:{start:{line:196,column:6},end:{line:196,column:34}},22:{start:{line:197,column:6},end:{line:197,column:30}},23:{start:{line:198,column:6},end:{line:198,column:26}},24:{start:{line:201,column:6},end:{line:201,column:34}},25:{start:{line:204,column:6},end:{line:204,column:33}},26:{start:{line:207,column:6},end:{line:218,column:8}},27:{start:{line:215,column:8},end:{line:215,column:36}},28:{start:{line:216,column:8},end:{line:216,column:28}},29:{start:{line:217,column:8},end:{line:217,column:56}},30:{start:{line:221,column:6},end:{line:228,column:8}},31:{start:{line:222,column:8},end:{line:227,column:10}},32:{start:{line:231,column:6},end:{line:235,column:8}},33:{start:{line:238,column:6},end:{line:238,column:39}},34:{start:{line:239,column:6},end:{line:248,column:8}},35:{start:{line:240,column:20},end:{line:245,column:9}},36:{start:{line:246,column:8},end:{line:246,column:29}},37:{start:{line:247,column:8},end:{line:247,column:41}},38:{start:{line:251,column:18},end:{line:253,column:8}},39:{start:{line:254,column:6},end:{line:254,column:29}},40:{start:{line:255,column:6},end:{line:255,column:39}},41:{start:{line:256,column:6},end:{line:258,column:8}},42:{start:{line:257,column:8},end:{line:257,column:29}},43:{start:{line:261,column:6},end:{line:261,column:26}},44:{start:{line:262,column:6},end:{line:262,column:26}},45:{start:{line:265,column:6},end:{line:267,column:13}},46:{start:{line:266,column:8},end:{line:266,column:41}},47:{start:{line:270,column:6},end:{line:270,column:35}},48:{start:{line:273,column:6},end:{line:273,column:57}},49:{start:{line:274,column:6},end:{line:274,column:22}},50:{start:{line:275,column:6},end:{line:275,column:27}},51:{start:{line:276,column:27},end:{line:276,column:74}},52:{start:{line:277,column:6},end:{line:302,column:7}},53:{start:{line:278,column:23},end:{line:278,column:49}},54:{start:{line:280,column:35},end:{line:282,column:10}},55:{start:{line:281,column:10},end:{line:281,column:70}},56:{start:{line:284,column:8},end:{line:301,column:12}},57:{start:{line:287,column:12},end:{line:297,column:14}},58:{start:{line:288,column:31},end:{line:288,column:47}},59:{start:{line:289,column:14},end:{line:296,column:19}},60:{start:{line:290,column:16},end:{line:295,column:18}},61:{start:{line:300,column:12},end:{line:300,column:45}},62:{start:{line:305,column:6},end:{line:305,column:57}},63:{start:{line:306,column:24},end:{line:306,column:80}},64:{start:{line:306,column:59},end:{line:306,column:79}},65:{start:{line:307,column:21},end:{line:320,column:10}},66:{start:{line:310,column:10},end:{line:313,column:15}},67:{start:{line:316,column:10},end:{line:319,column:11}},68:{start:{line:321,column:6},end:{line:321,column:71}}},fnMap:{0:{name:"(anonymous_0)",decl:{start:{line:121,column:2},end:{line:121,column:3}},loc:{start:{line:121,column:9},end:{line:158,column:3}},line:121},1:{name:"(anonymous_1)",decl:{start:{line:140,column:23},end:{line:140,column:24}},loc:{start:{line:140,column:29},end:{line:142,column:15}},line:140},2:{name:"(anonymous_2)",decl:{start:{line:147,column:23},end:{line:147,column:24}},loc:{start:{line:147,column:29},end:{line:149,column:15}},line:147},3:{name:"(anonymous_3)",decl:{start:{line:159,column:2},end:{line:159,column:3}},loc:{start:{line:159,column:12},end:{line:173,column:3}},line:159},4:{name:"(anonymous_4)",decl:{start:{line:163,column:12},end:{line:163,column:13}},loc:{start:{line:163,column:22},end:{line:172,column:7}},line:163},5:{name:"(anonymous_5)",decl:{start:{line:174,column:2},end:{line:174,column:3}},loc:{start:{line:174,column:12},end:{line:185,column:3}},line:174},6:{name:"(anonymous_6)",decl:{start:{line:187,column:4},end:{line:187,column:5}},loc:{start:{line:187,column:20},end:{line:194,column:5}},line:187},7:{name:"(anonymous_7)",decl:{start:{line:189,column:64},end:{line:189,column:65}},loc:{start:{line:189,column:78},end:{line:193,column:7}},line:189},8:{name:"(anonymous_8)",decl:{start:{line:195,column:4},end:{line:195,column:5}},loc:{start:{line:195,column:25},end:{line:199,column:5}},line:195},9:{name:"(anonymous_9)",decl:{start:{line:200,column:4},end:{line:200,column:5}},loc:{start:{line:200,column:25},end:{line:202,column:5}},line:200},10:{name:"(anonymous_10)",decl:{start:{line:203,column:4},end:{line:203,column:5}},loc:{start:{line:203,column:16},end:{line:205,column:5}},line:203},11:{name:"(anonymous_11)",decl:{start:{line:206,column:4},end:{line:206,column:5}},loc:{start:{line:206,column:30},end:{line:219,column:5}},line:206},12:{name:"(anonymous_12)",decl:{start:{line:214,column:14},end:{line:214,column:15}},loc:{start:{line:214,column:28},end:{line:218,column:7}},line:214},13:{name:"(anonymous_13)",decl:{start:{line:220,column:4},end:{line:220,column:5}},loc:{start:{line:220,column:31},end:{line:229,column:5}},line:220},14:{name:"(anonymous_14)",decl:{start:{line:221,column:43},end:{line:221,column:44}},loc:{start:{line:221,column:57},end:{line:228,column:7}},line:221},15:{name:"(anonymous_15)",decl:{start:{line:230,column:4},end:{line:230,column:5}},loc:{start:{line:230,column:31},end:{line:236,column:5}},line:230},16:{name:"(anonymous_16)",decl:{start:{line:237,column:4},end:{line:237,column:5}},loc:{start:{line:237,column:27},end:{line:249,column:5}},line:237},17:{name:"(anonymous_17)",decl:{start:{line:239,column:21},end:{line:239,column:22}},loc:{start:{line:239,column:33},end:{line:248,column:7}},line:239},18:{name:"(anonymous_18)",decl:{start:{line:250,column:4},end:{line:250,column:5}},loc:{start:{line:250,column:20},end:{line:259,column:5}},line:250},19:{name:"(anonymous_19)",decl:{start:{line:256,column:49},end:{line:256,column:50}},loc:{start:{line:256,column:72},end:{line:258,column:7}},line:256},20:{name:"(anonymous_20)",decl:{start:{line:260,column:4},end:{line:260,column:5}},loc:{start:{line:260,column:21},end:{line:263,column:5}},line:260},21:{name:"(anonymous_21)",decl:{start:{line:264,column:4},end:{line:264,column:5}},loc:{start:{line:264,column:20},end:{line:268,column:5}},line:264},22:{name:"(anonymous_22)",decl:{start:{line:265,column:17},end:{line:265,column:18}},loc:{start:{line:265,column:23},end:{line:267,column:7}},line:265},23:{name:"(anonymous_23)",decl:{start:{line:269,column:4},end:{line:269,column:5}},loc:{start:{line:269,column:17},end:{line:271,column:5}},line:269},24:{name:"(anonymous_24)",decl:{start:{line:272,column:23},end:{line:272,column:24}},loc:{start:{line:272,column:45},end:{line:303,column:5}},line:272},25:{name:"(anonymous_25)",decl:{start:{line:280,column:46},end:{line:280,column:47}},loc:{start:{line:280,column:62},end:{line:282,column:9}},line:280},26:{name:"(anonymous_26)",decl:{start:{line:285,column:16},end:{line:285,column:17}},loc:{start:{line:285,column:31},end:{line:298,column:11}},line:285},27:{name:"(anonymous_27)",decl:{start:{line:287,column:27},end:{line:287,column:28}},loc:{start:{line:287,column:50},end:{line:297,column:13}},line:287},28:{name:"(anonymous_28)",decl:{start:{line:289,column:25},end:{line:289,column:26}},loc:{start:{line:289,column:31},end:{line:296,column:15}},line:289},29:{name:"(anonymous_29)",decl:{start:{line:299,column:16},end:{line:299,column:17}},loc:{start:{line:299,column:22},end:{line:301,column:11}},line:299},30:{name:"(anonymous_30)",decl:{start:{line:304,column:23},end:{line:304,column:24}},loc:{start:{line:304,column:39},end:{line:322,column:5}},line:304},31:{name:"(anonymous_31)",decl:{start:{line:306,column:49},end:{line:306,column:50}},loc:{start:{line:306,column:59},end:{line:306,column:79}},line:306},32:{name:"(anonymous_32)",decl:{start:{line:308,column:14},end:{line:308,column:15}},loc:{start:{line:308,column:24},end:{line:314,column:9}},line:308},33:{name:"(anonymous_33)",decl:{start:{line:315,column:13},end:{line:315,column:14}},loc:{start:{line:315,column:22},end:{line:320,column:9}},line:315}},branchMap:{0:{loc:{start:{line:168,column:8},end:{line:170,column:9}},type:"if",locations:[{start:{line:168,column:8},end:{line:170,column:9}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:168},1:{loc:{start:{line:182,column:4},end:{line:184,column:5}},type:"if",locations:[{start:{line:182,column:4},end:{line:184,column:5}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:182},2:{loc:{start:{line:277,column:6},end:{line:302,column:7}},type:"if",locations:[{start:{line:277,column:6},end:{line:302,column:7}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:277},3:{loc:{start:{line:310,column:17},end:{line:313,column:15}},type:"cond-expr",locations:[{start:{line:312,column:14},end:{line:312,column:16}},{start:{line:313,column:14},end:{line:313,column:15}}],line:310}},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},f:{0:0,1:0,2:0,3:0,4:0,5:0,6:0,7:0,8:0,9:0,10:0,11:0,12:0,13:0,14:0,15:0,16:0,17:0,18:0,19:0,20:0,21:0,22:0,23:0,24:0,25:0,26:0,27:0,28:0,29:0,30:0,31:0,32:0,33:0},b:{0:[0,0],1:[0,0],2:[0,0],3:[0,0]},inputSourceMap:{version:3,sources:["TlmViewer.vue"],names:[],mappings:";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAuGA;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",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--\x3e\n\n<template>\n <div>\n <top-bar :title="title" :menus="menus" />\n <v-container>\n <v-row>\n <v-col>\n <v-select\n class="ma-0 pa-0"\n label="Select Target"\n :items="targets"\n item-text="label"\n item-value="value"\n v-model="selectedTarget"\n @change="targetSelect"\n />\n </v-col>\n <v-col>\n <v-select\n class="ma-0 pa-0"\n label="Select Screen"\n :items="screens"\n v-model="selectedScreen"\n @change="screenSelect"\n />\n </v-col>\n <v-col>\n <v-btn\n class="primary mr-2"\n :disabled="!selectedScreen"\n @click="() => showScreen(selectedTarget, selectedScreen)"\n >\n Show Screen\n </v-btn>\n <v-btn class="primary" @click="() => newScreen(selectedTarget)">\n New Screen\n <v-icon> mdi-file-plus</v-icon>\n </v-btn>\n </v-col>\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 @close-screen="closeScreen(def.id)"\n @min-max-screen="refreshLayout"\n @add-new-screen="($event) => showScreen(...$event)"\n @delete-screen="deleteScreen(def.id)"\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 :screens="screens"\n @success="saveNewScreen($event)"\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 \'./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: \'Telemetry Viewer\',\n counter: 0,\n definitions: [],\n targets: [],\n screens: [],\n selectedTarget: \'\',\n selectedScreen: \'\',\n newScreenDialog: false,\n grid: null,\n api: null,\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 this.api = new OpenC3Api()\n this.api\n .get_target_list({ params: { scope: localStorage.scope } })\n .then((data) => {\n var arrayLength = data.length\n for (var i = 0; i < arrayLength; i++) {\n this.targets.push({ label: data[i], value: data[i] })\n }\n if (!this.selectedTarget) {\n this.selectedTarget = this.targets[0].value\n }\n this.updateScreens()\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 const previousConfig = localStorage[\'lastconfig__telemetry_viewer\']\n if (previousConfig) {\n this.openConfiguration(previousConfig)\n }\n },\n methods: {\n updateScreens() {\n this.screens = []\n Api.get(\'/openc3-api/screen/\' + this.selectedTarget).then((response) => {\n for (let screen of response.data) {\n this.screens.push(screen)\n }\n })\n },\n targetSelect(target) {\n this.selectedTarget = target\n this.selectedScreen = \'\'\n this.updateScreens()\n },\n screenSelect(screen) {\n this.selectedScreen = screen\n },\n newScreen() {\n this.newScreenDialog = true\n },\n saveNewScreen(screenName) {\n Api.post(\'/openc3-api/screen/\', {\n data: {\n scope: localStorage.scope,\n target: this.selectedTarget,\n screen: screenName,\n text: \'SCREEN AUTO AUTO 1.0\\nLABEL NEW\',\n },\n }).then((response) => {\n this.newScreenDialog = false\n this.updateScreens()\n this.showScreen(this.selectedTarget, screenName)\n })\n },\n showScreen(target, screen) {\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 })\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 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 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(id) {\n this.closeScreen(id)\n this.updateScreens()\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 localStorage[\'lastconfig__telemetry_viewer\'] = 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 this.pushScreen({\n id: this.counter++,\n target: definition.target,\n screen: definition.screen,\n definition: response.data,\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 localStorage[\'lastconfig__telemetry_viewer\'] = 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 }\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:"6b1140bfffccb28d5d6f053cbf9ae5e0544fb07d"},r=n[i]||(n[i]={});r[e]&&r[e].hash===t||(r[e]=a);var s=r[e];return ae=function(){return s},s}ae();var re={components:{TopBar:A,Openc3Screen:P,NewScreenDialog:G,OpenConfigDialog:q,SaveConfigDialog:ne},data:function(){var e=this;return ae().f[0]++,ae().s[0]++,{title:"Telemetry Viewer",counter:0,definitions:[],targets:[],screens:[],selectedTarget:"",selectedScreen:"",newScreenDialog:!1,grid:null,api:null,menus:[{label:"File",items:[{label:"Open Configuration",icon:"mdi-folder-open",command:function(){ae().f[1]++,ae().s[1]++,e.openConfig=!0}},{label:"Save Configuration",icon:"mdi-content-save",command:function(){ae().f[2]++,ae().s[2]++,e.saveConfig=!0}}]}],toolName:"tlm-viewer",openConfig:!1,saveConfig:!1}},created:function(){var e=this;ae().f[3]++,ae().s[3]++,this.api=new c.k,ae().s[4]++,this.api.get_target_list({params:{scope:localStorage.scope}}).then((function(t){ae().f[4]++;var n=(ae().s[5]++,t.length);ae().s[6]++;for(var i=(ae().s[7]++,0);i<n;i++)ae().s[8]++,e.targets.push({label:t[i],value:t[i]});ae().s[9]++,e.selectedTarget?ae().b[0][1]++:(ae().b[0][0]++,ae().s[10]++,e.selectedTarget=e.targets[0].value),ae().s[11]++,e.updateScreens()}))},mounted:function(){ae().f[5]++,ae().s[12]++,this.grid=new ie.Z(".grid",{dragEnabled:!0,dragHandle:".v-system-bar"}),ae().s[13]++,this.grid.on("dragEnd",this.refreshLayout);var e=(ae().s[14]++,localStorage["lastconfig__telemetry_viewer"]);ae().s[15]++,e?(ae().b[1][0]++,ae().s[16]++,this.openConfiguration(e)):ae().b[1][1]++},methods:{updateScreens:function(){var e=this;ae().f[6]++,ae().s[17]++,this.screens=[],ae().s[18]++,o.Z.get("/openc3-api/screen/"+this.selectedTarget).then((function(t){ae().f[7]++,ae().s[19]++;var n,i=(0,l.Z)(t.data);try{for(i.s();!(n=i.n()).done;){var a=n.value;ae().s[20]++,e.screens.push(a)}}catch(r){i.e(r)}finally{i.f()}}))},targetSelect:function(e){ae().f[8]++,ae().s[21]++,this.selectedTarget=e,ae().s[22]++,this.selectedScreen="",ae().s[23]++,this.updateScreens()},screenSelect:function(e){ae().f[9]++,ae().s[24]++,this.selectedScreen=e},newScreen:function(){ae().f[10]++,ae().s[25]++,this.newScreenDialog=!0},saveNewScreen:function(e){var t=this;ae().f[11]++,ae().s[26]++,o.Z.post("/openc3-api/screen/",{data:{scope:localStorage.scope,target:this.selectedTarget,screen:e,text:"SCREEN AUTO AUTO 1.0\nLABEL NEW"}}).then((function(n){ae().f[12]++,ae().s[27]++,t.newScreenDialog=!1,ae().s[28]++,t.updateScreens(),ae().s[29]++,t.showScreen(t.selectedTarget,e)}))},showScreen:function(e,t){var n=this;ae().f[13]++,ae().s[30]++,this.loadScreen(e,t).then((function(i){ae().f[14]++,ae().s[31]++,n.pushScreen({id:n.counter++,target:e,screen:t,definition:i.data})}))},loadScreen:function(e,t){return ae().f[15]++,ae().s[32]++,o.Z.get("/openc3-api/screen/"+e+"/"+t,{headers:{Accept:"text/plain"}})},pushScreen:function(e){ae().f[16]++,ae().s[33]++,this.definitions.push(e),ae().s[34]++,this.$nextTick((function(){ae().f[17]++;var e=(ae().s[35]++,this.grid.add(this.$refs.gridItem[this.$refs.gridItem.length-1],{active:!1}));ae().s[36]++,this.grid.show(e),ae().s[37]++,this.grid.refreshItems().layout()}))},closeScreen:function(e){ae().f[18]++;var t=(ae().s[38]++,this.grid.getItems([document.getElementById(this.screenId(e))]));ae().s[39]++,this.grid.remove(t),ae().s[40]++,this.grid.refreshItems().layout(),ae().s[41]++,this.definitions=this.definitions.filter((function(t,n,i){return ae().f[19]++,ae().s[42]++,t.id!=e}))},deleteScreen:function(e){ae().f[20]++,ae().s[43]++,this.closeScreen(e),ae().s[44]++,this.updateScreens()},refreshLayout:function(){var e=this;ae().f[21]++,ae().s[45]++,setTimeout((function(){ae().f[22]++,ae().s[46]++,e.grid.refreshItems().layout()}),600)},screenId:function(e){return ae().f[23]++,ae().s[47]++,"tlmViewerScreen"+e},openConfiguration:function(){var e=(0,s.Z)((0,r.Z)().mark((function e(t){var n,i,a,s=this;return(0,r.Z)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return ae().f[24]++,ae().s[48]++,localStorage["lastconfig__telemetry_viewer"]=t,ae().s[49]++,this.counter=0,ae().s[50]++,this.definitions=[],ae().s[51]++,e.next=10,this.api.load_config(this.toolName,t);case 10:n=e.sent,ae().s[52]++,n?(ae().b[2][0]++,ae().s[53]++,i=JSON.parse(n),ae().s[54]++,a=i.map((function(e){return ae().f[25]++,ae().s[55]++,s.loadScreen(e.target,e.screen)})),ae().s[56]++,Promise.all(a).then((function(e){ae().f[26]++,ae().s[57]++,i.forEach((function(t,n){ae().f[27]++;var i=(ae().s[58]++,e[n]);ae().s[59]++,setTimeout((function(){ae().f[28]++,ae().s[60]++,s.pushScreen({id:s.counter++,target:t.target,screen:t.screen,definition:i.data})}),0)}))})).then((function(){ae().f[29]++,ae().s[61]++,setTimeout(s.refreshLayout,0)}))):ae().b[2][1]++;case 13:case"end":return e.stop()}}),e,this)})));function t(t){return e.apply(this,arguments)}return t}(),saveConfiguration:function(e){var t=this;ae().f[30]++,ae().s[62]++,localStorage["lastconfig__telemetry_viewer"]=e;var n=(ae().s[63]++,this.grid.getItems().map((function(e){return ae().f[31]++,ae().s[64]++,e.getElement().id}))),i=(ae().s[65]++,this.definitions.sort((function(e,i){return ae().f[32]++,ae().s[66]++,n.indexOf(t.screenId(e))>n.indexOf(t.screenId(i))?(ae().b[3][0]++,-1):(ae().b[3][1]++,1)})).map((function(e){return ae().f[33]++,ae().s[67]++,{screen:e.screen,target:e.target}})));ae().s[68]++,this.api.save_config(this.toolName,e,JSON.stringify(i))}}},se=re,le=(n(25368),(0,p.Z)(se,i,a,!1,null,"70d338f9",null)),oe=le.exports},93653:function(e,t,n){"use strict";n.r(t);var i=n(33467),a=n.n(i),r=n(58715),s=n.n(r),l=s()(a());l.push([e.id,".label[data-v-2d350830]{font-weight:700;text-transform:capitalize}",""]),t["default"]=l},99829:function(e,t,n){"use strict";n.r(t);var i=n(33467),a=n.n(i),r=n(58715),s=n.n(r),l=s()(a());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},67249:function(e,t,n){"use strict";n.r(t);var i=n(33467),a=n.n(i),r=n(58715),s=n.n(r),l=s()(a());l.push([e.id,"#chart[data-v-335d365e]{background-color:var(--v-tertiary-darken2)}#chart[data-v-335d365e] .u-select{background-color:hsla(0,0%,100%,.07)}",""]),t["default"]=l},87764:function(e,t,n){"use strict";n.r(t);var i=n(33467),a=n.n(i),r=n(58715),s=n.n(r),l=s()(a());l.push([e.id,".v-list[data-v-3237297b] .v-label{margin-left:5px}.v-list-item__icon[data-v-3237297b]{margin-right:15px!important}.v-list-item__title[data-v-3237297b]{color:#fff}",""]),t["default"]=l},68917:function(e,t,n){"use strict";n.r(t);var i=n(33467),a=n.n(i),r=n(58715),s=n.n(r),l=s()(a());l.push([e.id,".value[data-v-048f5302] div{min-height:24px!important;display:flex!important;align-items:center!important}.openc3-green[data-v-048f5302] input{color:#009600}.openc3-yellow[data-v-048f5302] input{color:#be8700}.openc3-red[data-v-048f5302] input{color:red}.openc3-blue[data-v-048f5302] input{color:#0064ff}.openc3-purple[data-v-048f5302] input{color:#c800c8}.openc3-black[data-v-048f5302] input{color:#000}.openc3-white[data-v-048f5302] input{color:#fff}",""]),t["default"]=l},64612:function(e,t,n){"use strict";n.r(t);var i=n(33467),a=n.n(i),r=n(58715),s=n.n(r),l=s()(a());l.push([e.id,".v-textarea[data-v-2fbe28c1] textarea{font-family:Courier New,Courier,monospace}.value[data-v-2fbe28c1] div{min-height:24px!important;display:flex!important;align-items:center!important}.openc3-green[data-v-2fbe28c1] input{color:#009600}.openc3-yellow[data-v-2fbe28c1] input{color:#be8700}.openc3-red[data-v-2fbe28c1] input{color:red}.openc3-blue[data-v-2fbe28c1] input{color:#0064ff}.openc3-purple[data-v-2fbe28c1] input{color:#c800c8}.openc3-black[data-v-2fbe28c1] input{color:#000}.openc3-white[data-v-2fbe28c1] input{color:#fff}",""]),t["default"]=l},13875:function(e,t,n){"use strict";n.r(t);var i=n(33467),a=n.n(i),r=n(58715),s=n.n(r),l=s()(a());l.push([e.id,".v-banner[data-v-76a0c989] div{background-color:var(--v-tertiary-darken2)!important}",""]),t["default"]=l},16341:function(e,t,n){"use strict";n.r(t);var i=n(33467),a=n.n(i),r=n(58715),s=n.n(r),l=s()(a());l.push([e.id,".label[data-v-c4066fac]{font-family:var(--font-family);font-size:var(--font-size);font-weight:var(--font-weight);font-style:var(--font-style)}",""]),t["default"]=l},7598:function(e,t,n){"use strict";n.r(t);var i=n(33467),a=n.n(i),r=n(58715),s=n.n(r),l=s()(a());l.push([e.id,".led[data-v-a1dc0278]{height:var(--height);width:var(--width);background-color:var(--color);border-radius:50%}",""]),t["default"]=l},91706:function(e,t,n){"use strict";n.r(t);var i=n(33467),a=n.n(i),r=n(58715),s=n.n(r),l=s()(a());l.push([e.id,".led[data-v-71a68fe2]{height:var(--height);width:var(--width);background-color:var(--color);border-radius:50%}",""]),t["default"]=l},33269:function(e,t,n){"use strict";n.r(t);var i=n(33467),a=n.n(i),r=n(58715),s=n.n(r),l=s()(a());l.push([e.id,".value[data-v-2bc42f58] div{min-height:24px!important;display:flex!important;align-items:center!important}.openc3-green[data-v-2bc42f58] input{color:#009600}.openc3-yellow[data-v-2bc42f58] input{color:#be8700}.openc3-red[data-v-2bc42f58] input{color:red}.openc3-blue[data-v-2bc42f58] input{color:#0064ff}.openc3-purple[data-v-2bc42f58] input{color:#c800c8}.openc3-black[data-v-2bc42f58] input{color:#000}.openc3-white[data-v-2bc42f58] input{color:#fff}",""]),t["default"]=l},86680:function(e,t,n){"use strict";n.r(t);var i=n(33467),a=n.n(i),r=n(58715),s=n.n(r),l=s()(a());l.push([e.id,".v-banner[data-v-63de4b40] div{background-color:var(--v-tertiary-darken2)!important}",""]),t["default"]=l},9264:function(e,t,n){"use strict";n.r(t);var i=n(33467),a=n.n(i),r=n(58715),s=n.n(r),l=s()(a());l.push([e.id,".v-card[data-v-0b0aba1f]{background-color:var(--v-tertiary-darken2)}.v-textarea[data-v-0b0aba1f] textarea{padding:5px;background-color:var(--v-tertiary-darken1)!important}",""]),t["default"]=l},9157:function(e,t,n){"use strict";n.r(t);var i=n(33467),a=n.n(i),r=n(58715),s=n.n(r),l=s()(a());l.push([e.id,".v-card[data-v-10fc5aea]{background-color:var(--v-tertiary-darken2)}.v-textarea[data-v-10fc5aea] textarea{padding:5px;background-color:var(--v-tertiary-darken1)!important}",""]),t["default"]=l},51080:function(e,t,n){"use strict";n.r(t);var i=n(33467),a=n.n(i),r=n(58715),s=n.n(r),l=s()(a());l.push([e.id,".grid[data-v-70d338f9]{position:relative}.item[data-v-70d338f9]{position:absolute;display:block;margin:5px;z-index:1}.item.muuri-item-dragging[data-v-70d338f9]{z-index:3}.item.muuri-item-releasing[data-v-70d338f9]{z-index:2}.item.muuri-item-hidden[data-v-70d338f9]{z-index:0}.item-content[data-v-70d338f9]{position:relative;cursor:pointer;border-radius:6px}",""]),t["default"]=l},71790:function(e,t,n){"use strict";n.r(t);var i=n(33467),a=n.n(i),r=n(58715),s=n.n(r),l=s()(a());l.push([e.id,"svg[data-v-44b6a4ed]{background-color:#fff}",""]),t["default"]=l},95266:function(e,t,n){"use strict";n.r(t);var i=n(33467),a=n.n(i),r=n(58715),s=n.n(r),l=s()(a());l.push([e.id,".limitsbar[data-v-692162b3]{cursor:default;display:flex;justify-content:center;align-items:center;padding:5px;width:var(--width)}.limitsbar__container[data-v-692162b3]{position:relative;flex:1;height:var(--container-height);border:1px solid #000;background-color:#fff}.limitsbar__redlow[data-v-692162b3]{left:0;width:var(--redlow-width)}.limitsbar__redhigh[data-v-692162b3],.limitsbar__redlow[data-v-692162b3]{position:absolute;top:-1px;height:var(--container-height);background-color:red}.limitsbar__redhigh[data-v-692162b3]{right:0;width:var(--redhigh-width)}.limitsbar__yellowlow[data-v-692162b3]{left:var(--redlow-width);width:var(--yellowlow-width)}.limitsbar__yellowhigh[data-v-692162b3],.limitsbar__yellowlow[data-v-692162b3]{position:absolute;top:-1px;height:var(--container-height);background-color:#ffdc00}.limitsbar__yellowhigh[data-v-692162b3]{right:var(--redhigh-width);width:var(--yellowhigh-width)}.limitsbar__greenlow[data-v-692162b3]{left:calc(var(--redlow-width) + var(--yellowlow-width));width:var(--greenlow-width)}.limitsbar__greenhigh[data-v-692162b3],.limitsbar__greenlow[data-v-692162b3]{position:absolute;top:-1px;height:var(--container-height);background-color:green}.limitsbar__greenhigh[data-v-692162b3]{right:calc(var(--redhigh-width) + var(--yellowhigh-width));width:var(--greenhigh-width)}.limitsbar__blue[data-v-692162b3]{top:-1px;left:calc(var(--redlow-width) + var(--yellowlow-width) + var(--greenlow-width));width:var(--blue-width);background-color:blue}.limitsbar__blue[data-v-692162b3],.limitsbar__line[data-v-692162b3]{position:absolute;height:var(--container-height)}.limitsbar__line[data-v-692162b3]{left:var(--position);width:1px;background-color:gray}.limitsbar__arrow[data-v-692162b3]{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},69789:function(e,t,n){"use strict";n.r(t);var i=n(33467),a=n.n(i),r=n(58715),s=n.n(r),l=s()(a());l.push([e.id,".limitsbar[data-v-1ab30c30]{cursor:default;display:flex;flex-direction:column;justify-content:center;align-items:center;padding:5px;height:var(--height)}.limitsbar__container[data-v-1ab30c30]{position:relative;flex:1 1 100%;width:var(--container-width);border:1px solid #000;background-color:#fff}.limitsbar__redlow[data-v-1ab30c30]{bottom:0;height:var(--redlow-height)}.limitsbar__redhigh[data-v-1ab30c30],.limitsbar__redlow[data-v-1ab30c30]{position:absolute;width:var(--container-width);background-color:red}.limitsbar__redhigh[data-v-1ab30c30]{top:0;height:var(--redhigh-height)}.limitsbar__yellowlow[data-v-1ab30c30]{bottom:var(--redlow-height);height:var(--yellowlow-height)}.limitsbar__yellowhigh[data-v-1ab30c30],.limitsbar__yellowlow[data-v-1ab30c30]{position:absolute;width:var(--container-width);background-color:#ffdc00}.limitsbar__yellowhigh[data-v-1ab30c30]{top:var(--redhigh-height);height:var(--yellowhigh-height)}.limitsbar__greenlow[data-v-1ab30c30]{bottom:calc(var(--redlow-height) + var(--yellowlow-height));height:var(--greenlow-height)}.limitsbar__greenhigh[data-v-1ab30c30],.limitsbar__greenlow[data-v-1ab30c30]{position:absolute;width:var(--container-width);background-color:green}.limitsbar__greenhigh[data-v-1ab30c30]{top:calc(var(--redhigh-height) + var(--yellowhigh-height));height:var(--greenhigh-height)}.limitsbar__blue[data-v-1ab30c30]{bottom:calc(var(--redlow-height) + var(--yellowlow-height) + var(--greenlow-height));height:var(--blue-height);background-color:blue}.limitsbar__blue[data-v-1ab30c30],.limitsbar__line[data-v-1ab30c30]{position:absolute;width:var(--container-width)}.limitsbar__line[data-v-1ab30c30]{bottom:var(--position);height:1px;background-color:gray}.limitsbar__arrow[data-v-1ab30c30]{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},59677:function(e,t,n){"use strict";n.r(t);var i=n(33467),a=n.n(i),r=n(58715),s=n.n(r),l=s()(a());l.push([e.id,".rangebar[data-v-687f0825]{cursor:default;display:flex;justify-content:center;align-items:center;padding:5px;width:var(--width)}.rangebar__container[data-v-687f0825]{position:relative;flex:1;height:var(--container-height);border:1px solid #000;background-color:#fff}.rangebar__line[data-v-687f0825]{width:1px;height:var(--container-height);background-color:gray}.rangebar__arrow[data-v-687f0825],.rangebar__line[data-v-687f0825]{position:absolute;left:var(--position)}.rangebar__arrow[data-v-687f0825]{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},41050:function(e,t,n){"use strict";n.r(t);var i=n(33467),a=n.n(i),r=n(58715),s=n.n(r),l=s()(a());l.push([e.id,".value-widget-container[data-v-61027b58]{min-height:34px}.value[data-v-61027b58] div{min-height:24px!important;display:flex!important;align-items:center!important}.openc3-green[data-v-61027b58] input{color:#009600}.openc3-yellow[data-v-61027b58] input{color:#be8700}.openc3-red[data-v-61027b58] input{color:red}.openc3-blue[data-v-61027b58] input{color:#0064ff}.openc3-purple[data-v-61027b58] input{color:#c800c8}.openc3-black[data-v-61027b58] input{color:#000}.openc3-white[data-v-61027b58] input{color:#fff}",""]),t["default"]=l},99784:function(e,t,n){var i=n(93653);i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[e.id,i,""]]),i.locals&&(e.exports=i.locals);var a=n(3514).Z;a("7fea72d5",i,!0,{sourceMap:!1,shadowMode:!1})},680:function(e,t,n){var i=n(99829);i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[e.id,i,""]]),i.locals&&(e.exports=i.locals);var a=n(3514).Z;a("4d874f9a",i,!0,{sourceMap:!1,shadowMode:!1})},76146:function(e,t,n){var i=n(67249);i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[e.id,i,""]]),i.locals&&(e.exports=i.locals);var a=n(3514).Z;a("b50c2682",i,!0,{sourceMap:!1,shadowMode:!1})},65741:function(e,t,n){var i=n(87764);i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[e.id,i,""]]),i.locals&&(e.exports=i.locals);var a=n(3514).Z;a("9f637652",i,!0,{sourceMap:!1,shadowMode:!1})},61600:function(e,t,n){var i=n(68917);i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[e.id,i,""]]),i.locals&&(e.exports=i.locals);var a=n(3514).Z;a("bb481186",i,!0,{sourceMap:!1,shadowMode:!1})},57437:function(e,t,n){var i=n(64612);i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[e.id,i,""]]),i.locals&&(e.exports=i.locals);var a=n(3514).Z;a("0c454f16",i,!0,{sourceMap:!1,shadowMode:!1})},48754:function(e,t,n){var i=n(13875);i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[e.id,i,""]]),i.locals&&(e.exports=i.locals);var a=n(3514).Z;a("4ec96170",i,!0,{sourceMap:!1,shadowMode:!1})},42717:function(e,t,n){var i=n(16341);i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[e.id,i,""]]),i.locals&&(e.exports=i.locals);var a=n(3514).Z;a("490e0094",i,!0,{sourceMap:!1,shadowMode:!1})},88095:function(e,t,n){var i=n(7598);i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[e.id,i,""]]),i.locals&&(e.exports=i.locals);var a=n(3514).Z;a("40dc2e86",i,!0,{sourceMap:!1,shadowMode:!1})},43806:function(e,t,n){var i=n(91706);i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[e.id,i,""]]),i.locals&&(e.exports=i.locals);var a=n(3514).Z;a("d7cb3956",i,!0,{sourceMap:!1,shadowMode:!1})},99772:function(e,t,n){var i=n(33269);i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[e.id,i,""]]),i.locals&&(e.exports=i.locals);var a=n(3514).Z;a("90e58dfa",i,!0,{sourceMap:!1,shadowMode:!1})},48305:function(e,t,n){var i=n(86680);i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[e.id,i,""]]),i.locals&&(e.exports=i.locals);var a=n(3514).Z;a("39ba3bd3",i,!0,{sourceMap:!1,shadowMode:!1})},11316:function(e,t,n){var i=n(9264);i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[e.id,i,""]]),i.locals&&(e.exports=i.locals);var a=n(3514).Z;a("0f114ac9",i,!0,{sourceMap:!1,shadowMode:!1})},24473:function(e,t,n){var i=n(9157);i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[e.id,i,""]]),i.locals&&(e.exports=i.locals);var a=n(3514).Z;a("0e10acac",i,!0,{sourceMap:!1,shadowMode:!1})},25368:function(e,t,n){var i=n(51080);i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[e.id,i,""]]),i.locals&&(e.exports=i.locals);var a=n(3514).Z;a("5c26ba06",i,!0,{sourceMap:!1,shadowMode:!1})},91517:function(e,t,n){var i=n(71790);i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[e.id,i,""]]),i.locals&&(e.exports=i.locals);var a=n(3514).Z;a("7a26e40c",i,!0,{sourceMap:!1,shadowMode:!1})},64205:function(e,t,n){var i=n(95266);i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[e.id,i,""]]),i.locals&&(e.exports=i.locals);var a=n(3514).Z;a("2ffb71a7",i,!0,{sourceMap:!1,shadowMode:!1})},20694:function(e,t,n){var i=n(69789);i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[e.id,i,""]]),i.locals&&(e.exports=i.locals);var a=n(3514).Z;a("61d362d7",i,!0,{sourceMap:!1,shadowMode:!1})},42594:function(e,t,n){var i=n(59677);i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[e.id,i,""]]),i.locals&&(e.exports=i.locals);var a=n(3514).Z;a("1f64b642",i,!0,{sourceMap:!1,shadowMode:!1})},61995:function(e,t,n){var i=n(41050);i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[e.id,i,""]]),i.locals&&(e.exports=i.locals);var a=n(3514).Z;a("364acb37",i,!0,{sourceMap:!1,shadowMode:!1})}}]);
|
2
|
-
//# sourceMappingURL=903.js.map
|