openc3-cosmos-tool-tlmviewer 5.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/LICENSE.txt +729 -0
- data/README.md +28 -0
- data/Rakefile +43 -0
- data/plugin.txt +4 -0
- data/tools/tlmviewer/index.html +4 -0
- data/tools/tlmviewer/js/668.js +2 -0
- data/tools/tlmviewer/js/668.js.map +1 -0
- data/tools/tlmviewer/js/942.js +71 -0
- data/tools/tlmviewer/js/942.js.map +1 -0
- data/tools/tlmviewer/js/app.js +2 -0
- data/tools/tlmviewer/js/app.js.map +1 -0
- metadata +57 -0
@@ -0,0 +1,2 @@
|
|
1
|
+
(self["webpackChunk_openc3_cosmos_tool_tlmviewer"]=self["webpackChunk_openc3_cosmos_tool_tlmviewer"]||[]).push([[668],{15507:function(e,t,n){var i={"./ArrayWidget.vue":40636,"./BlockWidget.vue":19578,"./ButtonWidget.vue":66090,"./CanvasWidget.vue":75886,"./CanvasdotWidget.vue":8213,"./CanvasimageWidget.vue":44440,"./CanvasimagevalueWidget.vue":13418,"./CanvaslabelWidget.vue":66147,"./CanvaslabelvalueWidget.vue":83207,"./CanvaslineWidget.vue":52661,"./CanvaslinevalueWidget.vue":37061,"./CheckbuttonWidget.vue":23984,"./ComboboxWidget.vue":910,"./DynamicWidget.vue":76714,"./FormatvalueWidget.vue":61867,"./HorizontalWidget.vue":68123,"./HorizontalboxWidget.vue":71680,"./IframeWidget.vue":27094,"./ImageviewerWidget.vue":77656,"./LabelWidget.vue":66354,"./LabelledWidget.vue":50730,"./LabelprogressbarWidget.vue":90482,"./LabelsparklineWidget.vue":11664,"./LabelvalueWidget.vue":58732,"./LabelvaluedescWidget.vue":67932,"./LabelvaluelimitsbarWidget.vue":82514,"./LabelvaluelimitscolumnWidget.vue":67117,"./LabelvaluerangebarWidget.vue":21487,"./LedWidget.vue":34041,"./LimitsbarWidget.vue":20788,"./LimitscolorWidget.vue":38668,"./LimitscolumnWidget.vue":39288,"./LinegraphWidget.vue":34489,"./MatrixbycolumnsWidget.vue":28490,"./ProgressbarWidget.vue":87621,"./RadiobuttonWidget.vue":65398,"./RadiogroupWidget.vue":12413,"./RangebarWidget.vue":87994,"./ScrollwindowWidget.vue":96211,"./SectionheaderWidget.vue":71591,"./SpacerWidget.vue":77627,"./SparklineWidget.vue":42008,"./TabbookWidget.vue":87313,"./TextboxWidget.vue":7312,"./TextfieldWidget.vue":57451,"./TitleWidget.vue":94788,"./ValueWidget.vue":61058,"./ValuelimitsbarWidget.vue":6154,"./ValuelimitscolumnWidget.vue":23970,"./ValuerangebarWidget.vue":30792,"./VerticalWidget.vue":51171,"./VerticalboxWidget.vue":26215};function s(e){var t=l(e);return n(t)}function l(e){if(!n.o(i,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return i[e]}s.keys=function(){return Object.keys(i)},s.resolve=l,e.exports=s,s.id=15507},1716:function(e,t,n){"use strict";var i=n(15789),s=n(49502),l=(n(18178),n(16129));t["Z"]={props:{target:{type:String,require:!0}},methods:{getPresignedUrl:function(){var e=(0,s.Z)((0,i.Z)().mark((function e(t){var n;return(0,i.Z)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,l.Z.get("/openc3-api/storage/download/".concat(encodeURIComponent("".concat(window.openc3Scope,"/targets/").concat(this.target,"/public/").concat(t)),"?bucket=OPENC3_CONFIG_BUCKET"));case 2:return n=e.sent,e.abrupt("return",n.data.url);case 4:case"end":return e.stop()}}),e,this)})));function t(t){return e.apply(this,arguments)}return t}()}}},548:function(e,t,n){"use strict";var i=n(92202);t["Z"]={mixins:[i.Z],props:{widgets:{type:Array,default:function(){return[]}}}}},92318:function(e,t,n){"use strict";n(18178),n(96708),n(32501),n(58188);var i=n(92202);n(80131);t["Z"]={mixins:[i.Z],props:{value:{default:null},limitsState:{type:String,default:null},counter:{default:null},formatString:null},data:function(){var e=this;return{curValue:null,prevValue:null,grayLevel:80,grayRate:5,valueId:null,colorBlind:!1,viewDetails:!1,contextMenuShown:!1,x:0,y:0,contextMenuOptions:[{title:"Details",action:function(){e.contextMenuShown=!1,e.viewDetails=!0}},{title:"Graph",action:function(){window.open("/tools/tlmgrapher/"+e.parameters[0]+"/"+e.parameters[1]+"/"+e.parameters[2],"_blank")}}]}},watch:{_counter:function(e,t){this.curValue!==this.prevValue?this.grayLevel=80:(this.grayLevel-=this.grayRate,this.grayLevel<30&&(this.grayLevel=30)),this.prevValue=this.curValue}},computed:{_value:function(){return this.curValue=this.value,null===this.curValue&&(this.$store.state.tlmViewerValues[this.valueId]?this.curValue=this.$store.state.tlmViewerValues[this.valueId][0]:this.curValue=null),this.curValue=this.formatValue(this.curValue),"true"===localStorage.colorblindMode&&""!==this.limitsLetter?"".concat(this.curValue," (").concat(this.limitsLetter,")"):this.curValue},_counter:function(){var e=this.counter;return null===e&&(e=this.$store.state.tlmViewerValues[this.valueId]?this.$store.state.tlmViewerValues[this.valueId][2]:null),e},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}))}}}},92202:function(e,t,n){"use strict";n(71245),n(58188),n(1939),n(68995),n(32501),n(49228),n(36728),n(18178);var i=n(63291);t["Z"]={props:{widgetIndex:{type:Number,default:null},parameters:{type:Array,default:function(){return[]}},settings:{type:Array,default:function(){return[]}},line:{type:String,default:""},lineNumber:{type:Number,default:0}},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]+" !important";break;case"HEIGHT":t["height"]=n[1]+" !important";break;case"RAW":t[n[1].toLowerCase()]=n[2];break}})),t}},methods:{verifyNumParams:function(e,t,n){for(var s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"",l={line:this.line,lineNumber:this.lineNumber,keyword:e,parameters:this.parameters},a=1;a<=t;a++)if(void 0===this.parameters[a-1])throw new i.y(l,"Not enough parameters for ".concat(e,"."),s,"https://openc3.com/docs/v5");if(n&&void 0===!this.parameters[n])throw new i.y(l,"Too many parameters for ".concat(e,"."),s,"https://openc3.com/docs/v5")},setWidth:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"px",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"120",i=this.settings.find((function(e){return"WIDTH"===e[0]}));return i?i["WIDTH"]:e?(this.settings.push(["WIDTH","".concat(e).concat(t)]),parseInt(e)):(this.settings.push(["WIDTH","".concat(n).concat(t)]),parseInt(n))},setHeight:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"px",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"20",i=this.settings.find((function(e){return"HEIGHT"===e[0]}));return i?i["HEIGHT"]:e?(this.settings.push(["HEIGHT","".concat(e).concat(t)]),parseInt(e)):(this.settings.push(["HEIGHT","".concat(n).concat(t)]),parseInt(n))},getColor:function(e){switch(e.length){case 1:return e[0].toLowerCase();case 3:return"rgb(".concat(e[0],",").concat(e[1],",").concat(e[2],")")}}}}},16129:function(e,t,n){"use strict";var i=n(66964),s=n(15789),l=n(49502),a=n(89373),r=function(){var e=(0,l.Z)((0,s.Z)().mark((function e(t,n){var i,l,r,o,c,u,d,m,h,p=arguments;return(0,s.Z)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(i=p.length>2&&void 0!==p[2]?p[2]:{},l=i.data,r=i.params,o=void 0===r?{}:r,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"]=window.openc3Scope),e.abrupt("return",(0,a.Z)({method:t,url:n,data:l,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,s=void 0===i?o:i,l=t.noScope,a=t.noAuth;return r("get",e,{params:n,headers:s,noScope:l,noAuth:a})},put:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.data,i=t.params,s=t.headers,l=void 0===s?c:s,a=t.noScope,o=t.noAuth;return r("put",e,{data:n,params:i,headers:l,noScope:a,noAuth:o})},post:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.data,i=t.params,s=t.headers,l=void 0===s?c:s,a=t.noScope,o=t.noAuth;return r("post",e,{data:n,params:i,headers:l,noScope:a,noAuth:o})},delete:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.params,i=t.headers,s=void 0===i?o:i,l=t.noScope,a=t.noAuth;return r("delete",e,{params:n,headers:s,noScope:l,noAuth:a})}}},89373:function(e,t,n){"use strict";n(39529),n(31235),n(58188),n(88233);var i=n(89644),s=n.n(i),l=n(44091),a=new l["default"],r=s().create({baseURL:location.origin,timeout:6e4,params:{}});r.interceptors.response.use((function(e){return e}),(function(e){if(e.response){var t,n,i,s,l,r,o,c,u,d;if(401===e.response.status&&OpenC3Auth.updateToken(OpenC3Auth.defaultMinValidity,!0),e.response.headers["ignore-errors"]&&e.response.headers["ignore-errors"].includes(e.response.status.toString()))return Promise.reject(e);var m="HTTP ".concat(e.response.status," - ");if(null!==(t=e.response)&&void 0!==t&&t.statusText&&(m+="".concat(e.response.statusText," ")),null!==(n=e.response)&&void 0!==n&&null!==(i=n.config)&&void 0!==i&&i.data&&(m+="".concat(e.response.config.data," ")),null!==(s=e.response)&&void 0!==s&&null!==(l=s.data)&&void 0!==l&&l.message)m+="".concat(e.response.data.message);else if(null!==(r=e.response)&&void 0!==r&&null!==(o=r.data)&&void 0!==o&&o.exception)m+="".concat(e.response.data.exception);else if(null!==(c=e.response)&&void 0!==c&&null!==(u=c.data)&&void 0!==u&&null!==(d=u.error)&&void 0!==d&&d.message)e.response.data.error.class&&(m+="".concat(e.response.data.error.class," ")),m+="".concat(e.response.data.error.message);else{var h;m+="".concat(null===(h=e.response)||void 0===h?void 0:h.data)}throw a.$notify&&a.$notify.serious({title:"Network error",body:m}),e}throw e})),t["Z"]=r},59161:function(e,t,n){"use strict";n.d(t,{Z:function(){return r}});var i=n(66964),s=n(50426),l=n(57871),a=n(47146);a.ju.staleThreshold=60;var r=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"/openc3-api/cable";(0,s.Z)(this,e),this._cable=a.zD(t)}return(0,l.Z)(e,[{key:"disconnect",value:function(){this._cable.disconnect()}},{key:"createSubscription",value:function(e,t){var n=this,s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},l=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},l),s)}))}}]),e}()},63291:function(e,t,n){"use strict";n.d(t,{p:function(){return r},y:function(){return a}});var i=n(52261),s=n(57871),l=n(50426),a=(n(77950),n(85940),n(36728),n(45794),(0,s.Z)((function e(t,n){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"";(0,l.Z)(this,e),this.keyword=t.keyword,this.parameters=t.parameters,this.filename=t.filename,this.line=t.line,this.lineNumber=t.lineNumber,this.message=n,this.usage=i,this.url=s}))),r=function(){function e(){(0,l.Z)(this,e),(0,i.Z)(this,"keyword",null),(0,i.Z)(this,"parameters",[]),(0,i.Z)(this,"filename",""),(0,i.Z)(this,"line",""),(0,i.Z)(this,"lineNumber",0),(0,i.Z)(this,"url","https://openc3.com/docs/v5")}return(0,s.Z)(e,[{key:"verify_num_parameters",value:function(e,t){for(var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",i=1;i<=e;i++)if(void 0===this.parameters[i-1])throw new a(this,"Not enough parameters for ".concat(this.keyword,"."),n,this.url);if(t&&void 0===!this.parameters[t])throw new a(this,"Too many parameters for ".concat(this.keyword,"."),n,this.url)}},{key:"remove_quotes",value:function(e){if(e.length<2)return e;var t=e.charAt(0);if('"'!==t&&"'"!==t)return e;var n=e.charAt(e.length-1);return t!==n?e:e.substring(1,e.length-1)}},{key:"scan_string",value:function(e,t){if(!t.global)throw"rx must have 'global' flag set";var n=[];return e.replace(t,(function(e){return n.push(e),e})),n}},{key:"parse_string",value:function(e,t,n,i,s){var l=!1;this.line="",this.keyword=null,this.parameters=[],this.filename=t;for(var a=e.split("\n"),r=a.length,o=0;o<r;o++){this.lineNumber=o+1;var c=a[o].trim(),u=/("([^\\"]|\\.)*")|('([^\\']|\\.)*')|\S+/g,d=this.scan_string(c,u),m="";if(d.length>0&&(m+=d[0]),l?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){l&&(i?this.parameters.push(this.remove_quotes(m)):this.parameters.push(m),l=!1);var h=d.length;if(h>1)for(var p=1;p<h;p++){var A=d[p];if(A.length>0&&"#"===A.charAt(0)&&!(A.length>1&&"{"===A.charAt(1)))break;1!==A.length||"&"!==A.charAt(0)||p!==h-1?(l=!1,i?this.parameters.push(this.remove_quotes(A)):this.parameters.push(A)):l=!0}l?this.line.length>=1?this.line=this.line.substring(0,this.line.length-1):this.line="":s(this.keyword,this.parameters,c,this.lineNumber)}else n&&!l&&s(this.keyword,this.parameters,c,this.lineNumber)}}}]),e}()},48392:function(e,t,n){"use strict";n.d(t,{k:function(){return d}});var i=n(26259),s=n(15789),l=n(66964),a=n(49502),r=n(50426),o=n(57871),c=n(52261),u=(n(71372),n(71245),n(77950),n(39529),n(58188),n(13675),n(94898),n(5825),n(67170),n(38857),n(58329),n(76279),n(427),n(40171),n(57093),n(11159),n(42516),n(64349),n(15273),n(16729),n(41801),n(50574),n(5787),n(39271),n(73160),n(65688),n(93157),n(33333),n(70315),n(50556),n(29224),n(43450),n(27233),n(28673),n(35734),n(88233),n(89373)),d=function(){function e(){(0,r.Z)(this,e),(0,c.Z)(this,"id",1)}return(0,o.Z)(e,[{key:"exec",value:function(){var e=(0,a.Z)((0,s.Z)().mark((function e(t,n){var i,a,r,o,c=arguments;return(0,s.Z)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return i=c.length>2&&void 0!==c[2]?c[2]:{},a=c.length>3&&void 0!==c[3]?c[3]:{},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:return this.id=this.id+1,e.prev=11,i["scope"]=window.openc3Scope,e.next=15,u.Z.post("/openc3-api/api",{jsonrpc:"2.0",method:t,params:n,id:this.id,keyword_params:i},{headers:(0,l.Z)({Authorization:localStorage.openc3Token,"Content-Type":"application/json-rpc"},a)});case 15:return r=e.sent,e.abrupt("return",r.data.result);case 19:throw e.prev=19,e.t1=e["catch"](11),o=new Error,e.t1.response?(o.name=e.t1.response.data.error.data.class,o.message=e.t1.response.data.error.data.message):e.t1.request?(o.name="Request error",o.message="Request error, no response received"):o.name="Unknown error",o;case 24:case"end":return e.stop()}}),e,this,[[2,7],[11,19]])})));function t(t,n){return e.apply(this,arguments)}return t}()},{key:"decode_openc3_type",value:function(e){if(null!==e&&"object"===(0,i.Z)(e)&&"Float"==e.json_class&&e.raw){if("NaN"==e.raw)return NaN;if("Infinity"==e.raw)return 1/0;if("-Infinity"==e.raw)return-1/0}return null}},{key:"encode_openc3_type",value:function(e){return Number.isNaN(e)?{json_class:"Float",raw:"NaN"}:e==Number.POSITIVE_INFINITY?{json_class:"Float",raw:"Infinity"}:e==Number.NEGATIVE_INFINITY?{json_class:"Float",raw:"-Infinity"}:null}},{key:"get_all_interface_info",value:function(){return this.exec("get_all_interface_info",[])}},{key:"map_target_to_interface",value:function(e,t){return this.exec("map_target_to_interface",[e,t])}},{key:"connect_interface",value:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];return n.length>0?this.exec("connect_interface",[e,n]):this.exec("connect_interface",[e])}},{key:"disconnect_interface",value:function(e){return this.exec("disconnect_interface",[e])}},{key:"get_all_router_info",value:function(){return this.exec("get_all_router_info",[])}},{key:"connect_router",value:function(e){return this.exec("connect_router",[e])}},{key:"disconnect_router",value:function(e){return this.exec("disconnect_router",[e])}},{key:"get_all_target_info",value:function(){return this.exec("get_all_target_info",[])}},{key:"get_tlm_cnts",value:function(e){return this.exec("get_tlm_cnts",[e])}},{key:"get_item",value:function(e,t,n){return this.exec("get_item",[e,t,n])}},{key:"get_parameter",value:function(e,t,n){return this.exec("get_parameter",[e,t,n])}},{key:"get_all_packet_logger_info",value:function(){return this.exec("get_all_packet_logger_info",[])}},{key:"start_logging",value:function(){return this.exec("start_logging",[])}},{key:"stop_logging",value:function(){return this.exec("stop_logging",[])}},{key:"start_cmd_log",value:function(e){return this.exec("start_cmd_log",[e])}},{key:"start_tlm_log",value:function(e){return this.exec("start_tlm_log",[e])}},{key:"stop_cmd_log",value:function(e){return this.exec("stop_cmd_log",[e])}},{key:"stop_tlm_log",value:function(e){return this.exec("stop_tlm_log",[e])}},{key:"get_server_status",value:function(){return this.exec("get_server_status",[])}},{key:"get_limits_sets",value:function(){return this.exec("get_limits_sets",[])}},{key:"get_limits_set",value:function(){return this.exec("get_limits_set",[])}},{key:"set_limits_set",value:function(e){return this.exec("set_limits_set",[e])}},{key:"get_background_tasks",value:function(){return this.exec("get_background_tasks",[])}},{key:"start_background_task",value:function(e){return this.exec("start_background_task",[e])}},{key:"stop_background_task",value:function(e){return this.exec("stop_background_task",[e])}},{key:"get_target",value:function(e){return this.exec("get_target",[e])}},{key:"get_target_list",value:function(){return this.exec("get_target_list",[])}},{key:"get_telemetry",value:function(e,t){return this.exec("get_telemetry",[e,t])}},{key:"get_all_telemetry",value:function(e){return this.exec("get_all_telemetry",[e])}},{key:"get_all_telemetry_names",value:function(e){return this.exec("get_all_telemetry_names",[e])}},{key:"get_tlm_packet",value:function(){var e=(0,a.Z)((0,s.Z)().mark((function e(t,n,i){var l,a,r,o,c,u=arguments;return(0,s.Z)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return l=u.length>3&&void 0!==u[3]?u[3]:30,e.next=3,this.exec("get_tlm_packet",[t,n],{type:i,stale_time:l});case 3:if(a=e.sent,null!=a)for(r=a.length,o=null,c=0;c<r;c++)o=this.decode_openc3_type(a[c][1]),null!==o&&(a[c][1]=o);return e.abrupt("return",a);case 6:case"end":return e.stop()}}),e,this)})));function t(t,n,i){return e.apply(this,arguments)}return t}()},{key:"get_packet_derived_items",value:function(e,t){return this.exec("get_packet_derived_items",[e,t])}},{key:"get_tlm_buffer",value:function(e,t){return this.exec("get_tlm_buffer",[e,t])}},{key:"get_tlm_values",value:function(){var e=(0,a.Z)((0,s.Z)().mark((function e(t){var n,i,l,a,r,o=arguments;return(0,s.Z)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return n=o.length>1&&void 0!==o[1]?o[1]:30,e.next=3,this.exec("get_tlm_values",[t],{stale_time:n});case 3:for(i=e.sent,l=i[0].length,a=null,r=0;r<l;r++)a=this.decode_openc3_type(i[0][r]),null!==a&&(i[0][r]=a);return e.abrupt("return",i);case 8:case"end":return e.stop()}}),e,this)})));function t(t){return e.apply(this,arguments)}return t}()},{key:"get_limits",value:function(e,t,n){return this.exec("get_limits",[e,t,n])}},{key:"tlm",value:function(){var e=(0,a.Z)((0,s.Z)().mark((function e(t,n,i){var l,a,r,o,c=arguments;return(0,s.Z)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(l=c.length>3&&void 0!==c[3]?c[3]:"CONVERTED",a=null,void 0!==n){e.next=8;break}return e.next=5,this.exec("tlm",[t]);case 5:a=e.sent,e.next=24;break;case 8:if(void 0!==i){e.next=21;break}if(!["RAW","CONVERTED","FORMATTED","WITH_UNITS"].includes(n)){e.next=15;break}return e.next=12,this.exec("tlm",[t],{type:n});case 12:a=e.sent,e.next=19;break;case 15:throw r=new Error,r.name="TypeError",r.message="Invalid data type ".concat(n,". Valid options are RAW, CONVERTED, FORMATTED, and WITH_UNITS."),r;case 19:e.next=24;break;case 21:return e.next=23,this.exec("tlm",[t,n,i],{type:l});case 23:a=e.sent;case 24:return o=this.decode_openc3_type(a),null!==o&&(a=o),e.abrupt("return",a);case 27: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,s){var l=null;for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(l=this.encode_openc3_type(i[a]),null!==l&&(i[a]=l));return this.exec(e,[t,n,i],{},s)}},{key:"get_cmd_hazardous",value:function(e,t,n){return void 0===t?this.exec("get_cmd_hazardous",e):this._cmd("get_cmd_hazardous",e,t,n)}},{key:"cmd",value:function(e,t,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return void 0===t?this.exec("cmd",e,{},i):this._cmd("cmd",e,t,n,i)}},{key:"cmd_no_range_check",value:function(e,t,n){return void 0===t?this.exec("cmd_no_range_check",e):this._cmd("cmd_no_range_check",e,t,n)}},{key:"cmd_raw",value:function(e,t,n){return void 0===t?this.exec("cmd_raw",e):this._cmd("cmd_raw",e,t,n)}},{key:"cmd_raw_no_range_check",value:function(e,t,n){return void 0===t?this.exec("cmd_raw_no_range_check",e):this._cmd("cmd_raw_no_range_check",e,t,n)}},{key:"cmd_no_hazardous_check",value:function(e,t,n){return void 0===t?this.exec("cmd_no_hazardous_check",e):this._cmd("cmd_no_hazardous_check",e,t,n)}},{key:"cmd_no_checks",value:function(e,t,n){return void 0===t?this.exec("cmd_no_checks",e):this._cmd("cmd_no_checks",e,t,n)}},{key:"cmd_raw_no_hazardous_check",value:function(e,t,n){return void 0===t?this.exec("cmd_raw_no_hazardous_check",e):this._cmd("cmd_raw_no_hazardous_check",e,t,n)}},{key:"cmd_raw_no_checks",value:function(e,t,n){return void 0===t?this.exec("cmd_raw_no_checks",e):this._cmd("cmd_raw_no_checks",e,t,n)}},{key:"get_interface_names",value:function(){return this.exec("get_interface_names",[])}},{key:"send_raw",value:function(e,t){return this.exec("send_raw",[e,t])}},{key:"list_configs",value:function(e){return this.exec("list_configs",[e])}},{key:"load_config",value:function(e,t){return this.exec("load_config",[e,t])}},{key:"save_config",value:function(e,t,n){return this.exec("save_config",[e,t,n])}},{key:"delete_config",value:function(e,t){return this.exec("delete_config",[e,t])}},{key:"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,a.Z)((0,s.Z)().mark((function e(t){var n,i,l;return(0,s.Z)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(!window.isSecureContext){e.next=7;break}return n=(new TextEncoder).encode(t),e.next=4,crypto.subtle.digest("SHA-256",n);case 4:return i=e.sent,l=new Uint8Array(i),e.abrupt("return",Array.from(l).map((function(e){return e.toString(16).padStart(2,"0")})).join(""));case 7:case"end":return e.stop()}}),e)})));function t(t){return e.apply(this,arguments)}return t}()}]),e}()},96161:function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";var _openc3_plugins_node_modules_babel_runtime_helpers_esm_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(15789),_openc3_plugins_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(49502),core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(58188),core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_2___default=__webpack_require__.n(core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_2__),core_js_modules_web_dom_collections_for_each_js__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__(1939),core_js_modules_web_dom_collections_for_each_js__WEBPACK_IMPORTED_MODULE_3___default=__webpack_require__.n(core_js_modules_web_dom_collections_for_each_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_regexp_exec_js__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__(77950),core_js_modules_es_regexp_exec_js__WEBPACK_IMPORTED_MODULE_7___default=__webpack_require__.n(core_js_modules_es_regexp_exec_js__WEBPACK_IMPORTED_MODULE_7__),core_js_modules_es_string_replace_js__WEBPACK_IMPORTED_MODULE_8__=__webpack_require__(85940),core_js_modules_es_string_replace_js__WEBPACK_IMPORTED_MODULE_8___default=__webpack_require__.n(core_js_modules_es_string_replace_js__WEBPACK_IMPORTED_MODULE_8__),_services_openc3_api__WEBPACK_IMPORTED_MODULE_9__=__webpack_require__(48392),_services_api__WEBPACK_IMPORTED_MODULE_10__=__webpack_require__(16129),_Widget__WEBPACK_IMPORTED_MODULE_11__=__webpack_require__(92202);__webpack_exports__["Z"]={mixins:[_Widget__WEBPACK_IMPORTED_MODULE_11__.Z],data:function(){return{api:null,screen:null,displaySendHazardous:!1,lastCmd:""}},computed:{buttonText:function(){return this.parameters[0]},eval:function(){return this.parameters[1]}},created:function(){var e=this;this.api=new _services_openc3_api__WEBPACK_IMPORTED_MODULE_9__.k,this.settings.forEach((function(t){"SCREEN"===t[0]&&(e.screen=t[1])}))},methods:{onClick:function onClick(){var _this2=this;return(0,_openc3_plugins_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.Z)((0,_openc3_plugins_node_modules_babel_runtime_helpers_esm_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0__.Z)().mark((function _callee(){var lines,self,screen,api,run_script,runScript,i,result;return(0,_openc3_plugins_node_modules_babel_runtime_helpers_esm_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0__.Z)().wrap((function _callee$(_context){while(1)switch(_context.prev=_context.next){case 0:lines=_this2.eval.split(";;"),self=_this2,screen=_this2.screen,api=_this2.api,run_script=_this2.runScript,runScript=_this2.runScript,i=0;case 7:if(!(i<lines.length)){_context.next=28;break}if(result=eval(lines[i].trim()),!(result instanceof Promise)){_context.next=25;break}return _context.prev=10,_context.next=13,result;case 13:_context.next=25;break;case 15:if(_context.prev=15,_context.t0=_context["catch"](10),!_context.t0.message.includes("is Hazardous")){_context.next=25;break}_this2.lastCmd=_context.t0.message.split("\n").pop(),_this2.displaySendHazardous=!0;case 20:if(!_this2.displaySendHazardous){_context.next=25;break}return _context.next=23,new Promise((function(e){return setTimeout(e,500)}));case 23:_context.next=20;break;case 25:i++,_context.next=7;break;case 28:case"end":return _context.stop()}}),_callee,null,[[10,15]])})))()},sendHazardousCmd:function sendHazardousCmd(){this.lastCmd=this.lastCmd.replace("cmd(","this.api.cmd_no_hazardous_check("),eval(this.lastCmd),this.displaySendHazardous=!1},cancelHazardousCmd:function(){this.displaySendHazardous=!1},runScript:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];_services_api__WEBPACK_IMPORTED_MODULE_10__.Z.post("/script-api/scripts/".concat(e,"/run")).then((function(e){t&&window.open("/tools/scriptrunner/".concat(e.data),"_blank")}))}}}},19668:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return we}});var i=n(50615);function s(){var e="/openc3/plugins/packages/openc3-cosmos-tool-tlmviewer/src/tools/TlmViewer/TlmViewer.vue",t="dd89bae207d2f1049595f7348ac860bd78ff9c45",n=new Function("return this")(),i="__coverage__",l={path:"/openc3/plugins/packages/openc3-cosmos-tool-tlmviewer/src/tools/TlmViewer/TlmViewer.vue",statementMap:{0:{start:{line:1,column:13},end:{line:2,column:1}},1:{start:{line:1,column:39},end:{line:1,column:43}},2:{start:{line:1,column:47},end:{line:1,column:59}},3:{start:{line:1,column:60},end:{line:1,column:2443}},4:{start:{line:1,column:410},end:{line:1,column:432}},5:{start:{line:1,column:646},end:{line:1,column:668}},6:{start:{line:1,column:823},end:{line:1,column:877}},7:{start:{line:1,column:985},end:{line:1,column:1018}},8:{start:{line:1,column:1166},end:{line:1,column:1669}},9:{start:{line:1,column:1473},end:{line:1,column:1503}},10:{start:{line:1,column:1569},end:{line:1,column:1594}},11:{start:{line:1,column:1628},end:{line:1,column:1659}},12:{start:{line:1,column:1776},end:{line:1,column:1812}},13:{start:{line:1,column:1870},end:{line:1,column:1888}},14:{start:{line:1,column:2027},end:{line:1,column:2063}},15:{start:{line:1,column:2121},end:{line:1,column:2139}},16:{start:{line:1,column:2374},end:{line:1,column:2397}},17:{start:{line:3,column:22},end:{line:3,column:24}}},fnMap:{0:{name:"render",decl:{start:{line:1,column:22},end:{line:1,column:28}},loc:{start:{line:1,column:30},end:{line:2,column:1}},line:1},1:{name:"(anonymous_1)",decl:{start:{line:1,column:394},end:{line:1,column:395}},loc:{start:{line:1,column:409},end:{line:1,column:433}},line:1},2:{name:"(anonymous_2)",decl:{start:{line:1,column:630},end:{line:1,column:631}},loc:{start:{line:1,column:645},end:{line:1,column:669}},line:1},3:{name:"(anonymous_3)",decl:{start:{line:1,column:817},end:{line:1,column:818}},loc:{start:{line:1,column:823},end:{line:1,column:877}},line:1},4:{name:"(anonymous_4)",decl:{start:{line:1,column:979},end:{line:1,column:980}},loc:{start:{line:1,column:985},end:{line:1,column:1018}},line:1},5:{name:"(anonymous_5)",decl:{start:{line:1,column:1152},end:{line:1,column:1153}},loc:{start:{line:1,column:1165},end:{line:1,column:1670}},line:1},6:{name:"(anonymous_6)",decl:{start:{line:1,column:1456},end:{line:1,column:1457}},loc:{start:{line:1,column:1472},end:{line:1,column:1504}},line:1},7:{name:"(anonymous_7)",decl:{start:{line:1,column:1557},end:{line:1,column:1558}},loc:{start:{line:1,column:1569},end:{line:1,column:1594}},line:1},8:{name:"(anonymous_8)",decl:{start:{line:1,column:1611},end:{line:1,column:1612}},loc:{start:{line:1,column:1627},end:{line:1,column:1660}},line:1},9:{name:"(anonymous_9)",decl:{start:{line:1,column:1759},end:{line:1,column:1760}},loc:{start:{line:1,column:1775},end:{line:1,column:1813}},line:1},10:{name:"(anonymous_10)",decl:{start:{line:1,column:1854},end:{line:1,column:1855}},loc:{start:{line:1,column:1869},end:{line:1,column:1889}},line:1},11:{name:"(anonymous_11)",decl:{start:{line:1,column:2010},end:{line:1,column:2011}},loc:{start:{line:1,column:2026},end:{line:1,column:2064}},line:1},12:{name:"(anonymous_12)",decl:{start:{line:1,column:2105},end:{line:1,column:2106}},loc:{start:{line:1,column:2120},end:{line:1,column:2140}},line:1},13:{name:"(anonymous_13)",decl:{start:{line:1,column:2358},end:{line:1,column:2359}},loc:{start:{line:1,column:2373},end:{line:1,column:2398}},line:1}},branchMap:{0:{loc:{start:{line:1,column:1675},end:{line:1,column:1925}},type:"cond-expr",locations:[{start:{line:1,column:1692},end:{line:1,column:1916}},{start:{line:1,column:1917},end:{line:1,column:1925}}],line:1},1:{loc:{start:{line:1,column:1926},end:{line:1,column:2176}},type:"cond-expr",locations:[{start:{line:1,column:1943},end:{line:1,column:2167}},{start:{line:1,column:2168},end:{line:1,column:2176}}],line:1},2:{loc:{start:{line:1,column:2177},end:{line:1,column:2439}},type:"cond-expr",locations:[{start:{line:1,column:2199},end:{line:1,column:2430}},{start:{line:1,column:2431},end:{line:1,column:2439}}],line:1}},s:{0:0,1:0,2:0,3:0,4:0,5:0,6:0,7:0,8:0,9:0,10:0,11:0,12:0,13:0,14:0,15:0,16:0,17:0},f:{0:0,1:0,2:0,3:0,4:0,5:0,6:0,7:0,8:0,9:0,10:0,11:0,12:0,13:0},b:{0:[0,0],1:[0,0],2:[0,0]},_coverageSchema:"1a1c01bbd47fc00a2c39e90264f33305004495a9",hash:"dd89bae207d2f1049595f7348ac860bd78ff9c45"},a=n[i]||(n[i]={});a[e]&&a[e].hash===t||(a[e]=l);var r=a[e];return s=function(){return r},r}s(),s().s[0]++;var l=function(){s().f[0]++;var e=(s().s[1]++,this),t=(s().s[2]++,e._self._c);return s().s[3]++,t("div",[t("top-bar",{attrs:{title:e.title,menus:e.menus}}),t("v-container",[t("v-row",{staticClass:"pt-1"},[t("v-select",{staticClass:"pa-0 mr-2",attrs:{label:"Select Target",items:e.targets,"item-text":"label","item-value":"value"},on:{change:e.targetSelect},model:{value:e.selectedTarget,callback:function(t){s().f[1]++,s().s[4]++,e.selectedTarget=t},expression:"selectedTarget"}}),t("v-select",{staticClass:"pa-0 mr-3",attrs:{label:"Select Screen",items:e.screens},on:{change:e.screenSelect},model:{value:e.selectedScreen,callback:function(t){s().f[2]++,s().s[5]++,e.selectedScreen=t},expression:"selectedScreen"}}),t("v-btn",{staticClass:"primary mr-2",attrs:{disabled:!e.selectedScreen,"data-test":"show-screen"},on:{click:function(){return s().f[3]++,s().s[6]++,e.showScreen(e.selectedTarget,e.selectedScreen)}}},[e._v(" Show ")]),t("v-btn",{staticClass:"primary",attrs:{"data-test":"new-screen"},on:{click:function(){return s().f[4]++,s().s[7]++,e.newScreen(e.selectedTarget)}}},[e._v(" New Screen "),t("v-icon",[e._v(" mdi-file-plus")])],1)],1)],1),t("div",{staticClass:"grid"},e._l(e.definitions,(function(n){return s().f[5]++,s().s[8]++,t("div",{key:n.id,ref:"gridItem",refInFor:!0,staticClass:"item",attrs:{id:e.screenId(n.id)}},[t("div",{staticClass:"item-content"},[t("openc3-screen",{attrs:{target:n.target,screen:n.screen,definition:n.definition,keywords:e.keywords},on:{"close-screen":function(t){return s().f[6]++,s().s[9]++,e.closeScreen(n.id)},"min-max-screen":e.refreshLayout,"add-new-screen":function(t){return s().f[7]++,s().s[10]++,e.showScreen.apply(e,(0,i.Z)(t))},"delete-screen":function(t){return s().f[8]++,s().s[11]++,e.deleteScreen(n.id)}}})],1)])})),0),e.openConfig?(s().b[0][0]++,t("open-config-dialog",{attrs:{tool:e.toolName},on:{success:function(t){return s().f[9]++,s().s[12]++,e.openConfiguration(t)}},model:{value:e.openConfig,callback:function(t){s().f[10]++,s().s[13]++,e.openConfig=t},expression:"openConfig"}})):(s().b[0][1]++,e._e()),e.saveConfig?(s().b[1][0]++,t("save-config-dialog",{attrs:{tool:e.toolName},on:{success:function(t){return s().f[11]++,s().s[14]++,e.saveConfiguration(t)}},model:{value:e.saveConfig,callback:function(t){s().f[12]++,s().s[15]++,e.saveConfig=t},expression:"saveConfig"}})):(s().b[1][1]++,e._e()),e.newScreenDialog?(s().b[2][0]++,t("new-screen-dialog",{attrs:{target:e.selectedTarget,screens:e.screens},on:{success:e.saveNewScreen},model:{value:e.newScreenDialog,callback:function(t){s().f[13]++,s().s[16]++,e.newScreenDialog=t},expression:"newScreenDialog"}})):(s().b[2][1]++,e._e())],1)},a=(s().s[17]++,[]),r=n(15789),o=n(49502),c=n(78081),u=(n(36728),n(58188),n(1939),n(18178),n(49228),n(95342),n(43450),n(28673),n(6886),n(43430),n(74083),n(6710),n(16129)),d=n(48392),m=function(){var e=this,t=e._self._c;return t("mounting-portal",{attrs:{"mount-to":"#openc3-menu",append:""}},[t("div",{staticClass:"v-toolbar__content"},[e._l(e.menus,(function(n,i){return t("v-menu",{key:i,attrs:{"offset-y":""},scopedSlots:e._u([{key:"activator",fn:function(i){var s=i.on,l=i.attrs;return[t("v-btn",e._g(e._b({staticClass:"mx-1",attrs:{outlined:"","data-test":e.formatDT("".concat(e.title," ").concat(n.label))}},"v-btn",l,!1),s),[t("span",{domProps:{textContent:e._s(n.label)}}),t("v-icon",{attrs:{right:""}},[e._v(" mdi-menu-down ")])],1)]}}],null,!0)},[t("v-list",[t("v-radio-group",{staticClass:"ma-0 pa-0",attrs:{value:n.radioGroup,"hide-details":"",dense:""}},[e._l(n.items,(function(i,s){return[i.divider?t("v-divider"):t("v-list-item",{key:s,attrs:{disabled:i.disabled,"data-test":e.formatDT("".concat(e.title," ").concat(n.label," ").concat(i.label))},on:{click:i.command}},[i.radio?t("v-list-item-action",[t("v-radio",{attrs:{color:"secondary",label:i.label,value:i.label}})],1):e._e(),i.checkbox?t("v-list-item-action",[t("v-checkbox",{attrs:{color:"secondary",label:i.label,value:i.label},model:{value:e.checked,callback:function(t){e.checked=t},expression:"checked"}})],1):e._e(),i.icon?t("v-list-item-icon",[t("v-icon",{attrs:{disabled:i.disabled}},[e._v(e._s(i.icon))])],1):e._e(),i.radio||i.checkbox?e._e():t("v-list-item-title",{style:"cursor: pointer;"+(i.disabled?"opacity: 0.2":"")},[e._v(e._s(i.label))])],1)]}))],2)],1)],1)})),t("v-spacer"),t("v-toolbar-title",[e._v(e._s(e.title))]),t("v-spacer")],2)])},h=[],p=(n(77950),n(85940),n(71639),{props:{menus:{type:Array,default:function(){return[]}},title:{type:String,default:""}},methods:{formatDT:function(e){return e.replaceAll(" ","-").toLowerCase()}},mounted:function(){"COSMOS "===this.title.substring(0,7)?document.title=this.title.substring(7):document.title=this.title}}),A=p,f=(n(64387),n(23287)),v=(0,f.Z)(A,m,h,!1,null,"6b1b57d9",null),g=v.exports;function _(){var e="/openc3/plugins/packages/openc3-cosmos-tool-tlmviewer/src/tools/TlmViewer/Openc3Screen.vue",t="9e93140c98ed0258f22ee21d56381231a719de9e",n=new Function("return this")(),i="__coverage__",s={path:"/openc3/plugins/packages/openc3-cosmos-tool-tlmviewer/src/tools/TlmViewer/Openc3Screen.vue",statementMap:{0:{start:{line:1,column:13},end:{line:2,column:1}},1:{start:{line:1,column:39},end:{line:1,column:43}},2:{start:{line:1,column:47},end:{line:1,column:59}},3:{start:{line:1,column:60},end:{line:1,column:3589}},4:{start:{line:1,column:401},end:{line:1,column:595}},5:{start:{line:1,column:540},end:{line:1,column:562}},6:{start:{line:1,column:852},end:{line:1,column:1019}},7:{start:{line:1,column:1184},end:{line:1,column:1666}},8:{start:{line:1,column:2048},end:{line:1,column:2257}},9:{start:{line:1,column:2188},end:{line:1,column:2220}},10:{start:{line:1,column:2808},end:{line:1,column:2835}},11:{start:{line:1,column:2863},end:{line:1,column:2886}},12:{start:{line:1,column:2914},end:{line:1,column:2939}},13:{start:{line:1,column:2997},end:{line:1,column:3015}},14:{start:{line:1,column:3150},end:{line:1,column:3169}},15:{start:{line:3,column:22},end:{line:3,column:24}}},fnMap:{0:{name:"render",decl:{start:{line:1,column:22},end:{line:1,column:28}},loc:{start:{line:1,column:30},end:{line:2,column:1}},line:1},1:{name:"(anonymous_1)",decl:{start:{line:1,column:377},end:{line:1,column:378}},loc:{start:{line:1,column:400},end:{line:1,column:596}},line:1},2:{name:"(anonymous_2)",decl:{start:{line:1,column:523},end:{line:1,column:524}},loc:{start:{line:1,column:539},end:{line:1,column:563}},line:1},3:{name:"(anonymous_3)",decl:{start:{line:1,column:828},end:{line:1,column:829}},loc:{start:{line:1,column:851},end:{line:1,column:1020}},line:1},4:{name:"(anonymous_4)",decl:{start:{line:1,column:1160},end:{line:1,column:1161}},loc:{start:{line:1,column:1183},end:{line:1,column:1667}},line:1},5:{name:"(anonymous_5)",decl:{start:{line:1,column:2024},end:{line:1,column:2025}},loc:{start:{line:1,column:2047},end:{line:1,column:2258}},line:1},6:{name:"(anonymous_6)",decl:{start:{line:1,column:2171},end:{line:1,column:2172}},loc:{start:{line:1,column:2187},end:{line:1,column:2221}},line:1},7:{name:"(anonymous_7)",decl:{start:{line:1,column:2791},end:{line:1,column:2792}},loc:{start:{line:1,column:2807},end:{line:1,column:2836}},line:1},8:{name:"(anonymous_8)",decl:{start:{line:1,column:2846},end:{line:1,column:2847}},loc:{start:{line:1,column:2862},end:{line:1,column:2887}},line:1},9:{name:"(anonymous_9)",decl:{start:{line:1,column:2897},end:{line:1,column:2898}},loc:{start:{line:1,column:2913},end:{line:1,column:2940}},line:1},10:{name:"(anonymous_10)",decl:{start:{line:1,column:2981},end:{line:1,column:2982}},loc:{start:{line:1,column:2996},end:{line:1,column:3016}},line:1},11:{name:"(anonymous_11)",decl:{start:{line:1,column:3134},end:{line:1,column:3135}},loc:{start:{line:1,column:3149},end:{line:1,column:3170}},line:1}},branchMap:{0:{loc:{start:{line:1,column:77},end:{line:1,column:2610}},type:"cond-expr",locations:[{start:{line:1,column:95},end:{line:1,column:2601}},{start:{line:1,column:2602},end:{line:1,column:2610}}],line:1},1:{loc:{start:{line:1,column:2611},end:{line:1,column:3052}},type:"cond-expr",locations:[{start:{line:1,column:2628},end:{line:1,column:3043}},{start:{line:1,column:3044},end:{line:1,column:3052}}],line:1}},s:{0:0,1:0,2:0,3:0,4:0,5:0,6:0,7:0,8:0,9:0,10:0,11:0,12:0,13:0,14:0,15:0},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},b:{0:[0,0],1:[0,0]},_coverageSchema:"1a1c01bbd47fc00a2c39e90264f33305004495a9",hash:"9e93140c98ed0258f22ee21d56381231a719de9e"},l=n[i]||(n[i]={});l[e]&&l[e].hash===t||(l[e]=s);var a=l[e];return _=function(){return a},a}_(),_().s[0]++;var w=function(){_().f[0]++;var e=(_().s[1]++,this),t=(_().s[2]++,e._self._c);return _().s[3]++,t("div",[e.editDialog?(_().b[0][1]++,e._e()):(_().b[0][0]++,t("v-card",{attrs:{"min-height":e.height,"min-width":e.width}},[t("v-system-bar",[t("div",{directives:[{name:"show",rawName:"v-show",value:0!==e.errors.length,expression:"errors.length !== 0"}]},[t("v-tooltip",{attrs:{top:""},scopedSlots:e._u([{key:"activator",fn:function(n){var i=n.on,s=n.attrs;return _().f[1]++,_().s[4]++,[t("div",e._g(e._b({},"div",s,!1),i),[t("v-icon",{attrs:{"data-test":"error-graph-icon"},on:{click:function(t){_().f[2]++,_().s[5]++,e.errorDialog=!0}}},[e._v(" mdi-alert ")])],1)]}}],null,!1,2487839405)},[t("span",[e._v(" Errors ")])])],1),t("v-spacer"),t("span",[e._v(e._s(e.target)+" "+e._s(e.screen))]),t("v-spacer"),t("v-tooltip",{attrs:{top:""},scopedSlots:e._u([{key:"activator",fn:function(n){var i=n.on,s=n.attrs;return _().f[3]++,_().s[6]++,[t("div",e._g(e._b({},"div",s,!1),i),[t("v-icon",{attrs:{"data-test":"edit-screen-icon"},on:{click:e.openEdit}},[e._v(" mdi-pencil ")])],1)]}}],null,!1,3716421540)},[t("span",[e._v(" Edit Screen ")])]),t("v-tooltip",{attrs:{top:""},scopedSlots:e._u([{key:"activator",fn:function(n){var i=n.on,s=n.attrs;return _().f[4]++,_().s[7]++,[t("div",e._g(e._b({},"div",s,!1),i),[t("v-icon",{directives:[{name:"show",rawName:"v-show",value:e.expand,expression:"expand"}],attrs:{"data-test":"minimize-screen-icon"},on:{click:e.minMaxTransition}},[e._v(" mdi-window-minimize ")]),t("v-icon",{directives:[{name:"show",rawName:"v-show",value:!e.expand,expression:"!expand"}],attrs:{"data-test":"maximize-screen-icon"},on:{click:e.minMaxTransition}},[e._v(" mdi-window-maximize ")])],1)]}}],null,!1,4232164518)},[t("span",{directives:[{name:"show",rawName:"v-show",value:e.expand,expression:"expand"}]},[e._v(" Minimize Screen ")]),t("span",{directives:[{name:"show",rawName:"v-show",value:!e.expand,expression:"!expand"}]},[e._v(" Maximize Screen ")])]),t("v-tooltip",{attrs:{top:""},scopedSlots:e._u([{key:"activator",fn:function(n){var i=n.on,s=n.attrs;return _().f[5]++,_().s[8]++,[t("div",e._g(e._b({},"div",s,!1),i),[t("v-icon",{attrs:{"data-test":"close-screen-icon"},on:{click:function(t){return _().f[6]++,_().s[9]++,e.$emit("close-screen")}}},[e._v(" mdi-close-box ")])],1)]}}],null,!1,793150005)},[t("span",[e._v(" Close Screen ")])])],1),t("v-expand-transition",[t("div",{directives:[{name:"show",rawName:"v-show",value:e.expand,expression:"expand"}],ref:"screen",staticClass:"pa-1"},[t("vertical-widget",e._g({key:e.screenKey,attrs:{widgets:e.layoutStack[0].widgets}},e.$listeners))],1)])],1)),e.editDialog?(_().b[1][0]++,t("edit-screen-dialog",{attrs:{target:e.target,screen:e.screen,definition:e.currentDefinition,keywords:e.keywords,errors:e.errors},on:{save:function(t){return _().f[7]++,_().s[10]++,e.saveEdit(t)},cancel:function(t){return _().f[8]++,_().s[11]++,e.cancelEdit()},delete:function(t){return _().f[9]++,_().s[12]++,e.deleteScreen()}},model:{value:e.editDialog,callback:function(t){_().f[10]++,_().s[13]++,e.editDialog=t},expression:"editDialog"}})):(_().b[1][1]++,e._e()),t("v-dialog",{attrs:{"max-width":"600"},model:{value:e.errorDialog,callback:function(t){_().f[11]++,_().s[14]++,e.errorDialog=t},expression:"errorDialog"}},[t("v-system-bar",[t("v-spacer"),t("span",[e._v(" Screen: "+e._s(e.target)+" "+e._s(e.screen)+" Errors ")]),t("v-spacer")],1),t("v-card",{staticClass:"pa-3"},[t("v-row",{staticClass:"my-3"},[t("v-textarea",{attrs:{readonly:"",rows:"13",value:e.error}})],1),t("v-row",[t("v-btn",{attrs:{block:""},on:{click:e.clearErrors}},[e._v(" Clear ")])],1)],1)],1)],1)},C=(_().s[15]++,[]),b=(n(93244),n(68995),n(13489),n(67789),n(32501),n(39529),n(31235),n(63291)),y=n(44091),x=n(23779),k=n.n(x),S=n(96009),T=n.n(S);function N(){var e="/openc3/plugins/packages/openc3-cosmos-tool-tlmviewer/src/tools/TlmViewer/EditScreenDialog.vue",t="ca77f547f5fa0910163bb1bfaee9b1f6510983ae",n=new Function("return this")(),i="__coverage__",s={path:"/openc3/plugins/packages/openc3-cosmos-tool-tlmviewer/src/tools/TlmViewer/EditScreenDialog.vue",statementMap:{0:{start:{line:1,column:13},end:{line:2,column:1}},1:{start:{line:1,column:39},end:{line:1,column:43}},2:{start:{line:1,column:47},end:{line:1,column:59}},3:{start:{line:1,column:60},end:{line:1,column:2295}},4:{start:{line:1,column:154},end:{line:1,column:166}},5:{start:{line:1,column:349},end:{line:1,column:522}},6:{start:{line:1,column:816},end:{line:1,column:995}},7:{start:{line:1,column:1510},end:{line:1,column:1522}},8:{start:{line:1,column:1718},end:{line:1,column:1845}},9:{start:{line:1,column:2047},end:{line:1,column:2073}},10:{start:{line:1,column:2216},end:{line:1,column:2256}},11:{start:{line:3,column:22},end:{line:3,column:24}}},fnMap:{0:{name:"render",decl:{start:{line:1,column:22},end:{line:1,column:28}},loc:{start:{line:1,column:30},end:{line:2,column:1}},line:1},1:{name:"(anonymous_1)",decl:{start:{line:1,column:138},end:{line:1,column:139}},loc:{start:{line:1,column:153},end:{line:1,column:167}},line:1},2:{name:"(anonymous_2)",decl:{start:{line:1,column:325},end:{line:1,column:326}},loc:{start:{line:1,column:348},end:{line:1,column:523}},line:1},3:{name:"(anonymous_3)",decl:{start:{line:1,column:792},end:{line:1,column:793}},loc:{start:{line:1,column:815},end:{line:1,column:996}},line:1},4:{name:"(anonymous_4)",decl:{start:{line:1,column:1494},end:{line:1,column:1495}},loc:{start:{line:1,column:1509},end:{line:1,column:1523}},line:1},5:{name:"(anonymous_5)",decl:{start:{line:1,column:1696},end:{line:1,column:1697}},loc:{start:{line:1,column:1717},end:{line:1,column:1846}},line:1},6:{name:"(anonymous_6)",decl:{start:{line:1,column:2030},end:{line:1,column:2031}},loc:{start:{line:1,column:2046},end:{line:1,column:2074}},line:1},7:{name:"(anonymous_7)",decl:{start:{line:1,column:2199},end:{line:1,column:2200}},loc:{start:{line:1,column:2215},end:{line:1,column:2257}},line:1}},branchMap:{},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},f:{0:0,1:0,2:0,3:0,4:0,5:0,6:0,7:0},b:{},_coverageSchema:"1a1c01bbd47fc00a2c39e90264f33305004495a9",hash:"ca77f547f5fa0910163bb1bfaee9b1f6510983ae"},l=n[i]||(n[i]={});l[e]&&l[e].hash===t||(l[e]=s);var a=l[e];return N=function(){return a},a}N(),N().s[0]++;var I=function(){N().f[0]++;var e=(N().s[1]++,this),t=(N().s[2]++,e._self._c);return N().s[3]++,t("v-dialog",{attrs:{width:"75vw"},model:{value:e.show,callback:function(t){N().f[1]++,N().s[4]++,e.show=t},expression:"show"}},[t("v-card",[t("v-system-bar",[t("div",{staticClass:"mx-2"},[t("v-tooltip",{attrs:{top:""},scopedSlots:e._u([{key:"activator",fn:function(n){var i=n.on,s=n.attrs;return N().f[2]++,N().s[5]++,[t("div",e._g(e._b({},"div",s,!1),i),[t("v-icon",{attrs:{"data-test":"delete-screen-icon"},on:{click:e.deleteScreen}},[e._v(" mdi-delete ")])],1)]}}])},[t("span",[e._v(" Delete Screen ")])])],1),t("v-spacer"),t("span",[e._v(" Edit Screen: "+e._s(e.target)+" "+e._s(e.screen)+" ")]),t("v-spacer"),t("div",{staticClass:"mx-2"},[t("v-tooltip",{attrs:{top:""},scopedSlots:e._u([{key:"activator",fn:function(n){var i=n.on,s=n.attrs;return N().f[3]++,N().s[6]++,[t("div",e._g(e._b({},"div",s,!1),i),[t("v-icon",{attrs:{"data-test":"download-screen-icon"},on:{click:e.downloadScreen}},[e._v(" mdi-download ")])],1)]}}])},[t("span",[e._v(" Download Screen ")])])],1)],1),t("v-card-text",[t("v-row",{staticClass:"mt-3"},[e._v(" Upload a screen file. ")]),t("v-row",{attrs:{"no-gutters":"",align:"center"}},[t("v-btn",{staticClass:"mr-3",attrs:{disabled:!e.file,color:"primary","data-test":"edit-screen-load"},on:{click:e.loadFile}},[e._v(" Load ")]),t("v-file-input",{attrs:{"truncate-length":"15",accept:".txt",label:"Click to select .txt screen file."},model:{value:e.file,callback:function(t){N().f[4]++,N().s[7]++,e.file=t},expression:"file"}})],1),t("v-row",[e._v(" Edit the screen definition. ")]),t("v-row",{staticClass:"mb-2"},[t("pre",{attrs:{id:"editor"}})]),e._l(e.editErrors,(function(n,i){return N().f[5]++,N().s[8]++,t("v-row",{key:i,staticClass:"my-3"},[t("span",{staticClass:"red--text",domProps:{textContent:e._s(n)}})])})),t("v-row",[t("span",[e._v("Ctrl-space brings up autocomplete")]),t("v-spacer"),t("v-btn",{staticClass:"mx-2",attrs:{outlined:"","data-test":"edit-screen-cancel"},on:{click:function(t){return N().f[6]++,N().s[9]++,e.$emit("cancel")}}},[e._v(" Cancel ")]),t("v-btn",{staticClass:"mx-2",attrs:{color:"primary","data-test":"edit-screen-save"},on:{click:function(t){N().f[7]++,N().s[10]++,e.$emit("save",e.editor.getValue())}}},[e._v(" Save ")])],1)],2)],1)],1)},E=(N().s[11]++,[]),M=(n(17368),n(24471),n(51172),n(88233),n(14121),n(60523),n(95095)),D=(n(71747),n(40419),n(83923),n(72375),n(57871)),L=n(50426),O=n(52261);function Z(){var e="/openc3/plugins/packages/openc3-cosmos-tool-tlmviewer/src/tools/TlmViewer/autocomplete/screenCompleter.js",t="dbd1bb47972cbd626f002c1647bca84835e3ce1a",n=new Function("return this")(),i="__coverage__",s={path:"/openc3/plugins/packages/openc3-cosmos-tool-tlmviewer/src/tools/TlmViewer/autocomplete/screenCompleter.js",statementMap:{0:{start:{line:27,column:4},end:{line:29,column:5}},1:{start:{line:28,column:21},end:{line:28,column:58}},2:{start:{line:31,column:19},end:{line:33,column:3}},3:{start:{line:32,column:4},end:{line:32,column:46}}},fnMap:{0:{name:"(anonymous_0)",decl:{start:{line:26,column:2},end:{line:26,column:3}},loc:{start:{line:26,column:16},end:{line:30,column:3}},line:26},1:{name:"(anonymous_1)",decl:{start:{line:28,column:6},end:{line:28,column:7}},loc:{start:{line:28,column:21},end:{line:28,column:58}},line:28},2:{name:"(anonymous_2)",decl:{start:{line:31,column:19},end:{line:31,column:20}},loc:{start:{line:31,column:74},end:{line:33,column:3}},line:31}},branchMap:{},s:{0:0,1:0,2:0,3:0},f:{0:0,1:0,2:0},b:{},_coverageSchema:"1a1c01bbd47fc00a2c39e90264f33305004495a9",hash:"dbd1bb47972cbd626f002c1647bca84835e3ce1a"},l=n[i]||(n[i]={});l[e]&&l[e].hash===t||(l[e]=s);var a=l[e];return Z=function(){return a},a}Z();var W=(0,D.Z)((function e(){var t=this;(0,L.Z)(this,e),(0,O.Z)(this,"getCompletions",(Z().s[2]++,function(e,t,n,s,l){Z().f[2]++,Z().s[3]++,l(null,(0,i.Z)(this.autocompleteData))})),Z().f[0]++,Z().s[0]++,u.Z.get("/openc3-api/autocomplete/data/screen").then((function(e){return Z().f[1]++,Z().s[1]++,t.autocompleteData=e.data}))}));function V(){var e="/openc3/plugins/packages/openc3-cosmos-tool-tlmviewer/src/tools/TlmViewer/autocomplete/index.js",t="246bf29cbfb922be3f3e1b10b36e3632f48329e5",n=new Function("return this")(),i="__coverage__",s={path:"/openc3/plugins/packages/openc3-cosmos-tool-tlmviewer/src/tools/TlmViewer/autocomplete/index.js",statementMap:{},fnMap:{},branchMap:{},s:{},f:{},b:{},_coverageSchema:"1a1c01bbd47fc00a2c39e90264f33305004495a9",hash:"246bf29cbfb922be3f3e1b10b36e3632f48329e5"},l=n[i]||(n[i]={});l[e]&&l[e].hash===t||(l[e]=s);var a=l[e];return V=function(){return a},a}function P(){var e="/openc3/plugins/packages/openc3-cosmos-tool-tlmviewer/src/tools/TlmViewer/EditScreenDialog.vue",t="d5096f8ffcb1d388fc9f9c2eee2cb0902888ec93",n=new Function("return this")(),i="__coverage__",s={path:"/openc3/plugins/packages/openc3-cosmos-tool-tlmviewer/src/tools/TlmViewer/EditScreenDialog.vue",statementMap:{0:{start:{line:26,column:21},end:{line:26,column:23}},1:{start:{line:30,column:21},end:{line:30,column:23}},2:{start:{line:34,column:4},end:{line:36,column:5}},3:{start:{line:40,column:6},end:{line:42,column:7}},4:{start:{line:41,column:8},end:{line:41,column:42}},5:{start:{line:43,column:6},end:{line:58,column:7}},6:{start:{line:44,column:23},end:{line:44,column:32}},7:{start:{line:45,column:21},end:{line:45,column:23}},8:{start:{line:46,column:8},end:{line:56,column:9}},9:{start:{line:47,column:10},end:{line:49,column:11}},10:{start:{line:48,column:12},end:{line:48,column:20}},11:{start:{line:50,column:20},end:{line:50,column:79}},12:{start:{line:51,column:10},end:{line:53,column:11}},13:{start:{line:52,column:12},end:{line:52,column:43}},14:{start:{line:54,column:10},end:{line:54,column:26}},15:{start:{line:55,column:10},end:{line:55,column:37}},16:{start:{line:57,column:8},end:{line:57,column:21}},17:{start:{line:59,column:6},end:{line:59,column:15}},18:{start:{line:63,column:8},end:{line:63,column:25}},19:{start:{line:66,column:8},end:{line:66,column:34}},20:{start:{line:71,column:4},end:{line:71,column:36}},21:{start:{line:72,column:4},end:{line:72,column:46}},22:{start:{line:73,column:23},end:{line:73,column:45}},23:{start:{line:74,column:4},end:{line:74,column:49}},24:{start:{line:75,column:4},end:{line:75,column:37}},25:{start:{line:76,column:4},end:{line:76,column:44}},26:{start:{line:77,column:4},end:{line:77,column:42}},27:{start:{line:78,column:4},end:{line:78,column:60}},28:{start:{line:79,column:4},end:{line:79,column:59}},29:{start:{line:80,column:4},end:{line:80,column:52}},30:{start:{line:81,column:4},end:{line:81,column:45}},31:{start:{line:82,column:4},end:{line:82,column:41}},32:{start:{line:83,column:4},end:{line:83,column:32}},33:{start:{line:84,column:4},end:{line:84,column:23}},34:{start:{line:87,column:4},end:{line:87,column:25}},35:{start:{line:88,column:4},end:{line:88,column:34}},36:{start:{line:92,column:16},end:{line:92,column:42}},37:{start:{line:93,column:31},end:{line:95,column:26}},38:{start:{line:97,column:17},end:{line:97,column:40}},39:{start:{line:98,column:33},end:{line:124,column:7}},40:{start:{line:99,column:8},end:{line:122,column:9}},41:{start:{line:123,column:8},end:{line:123,column:29}},42:{start:{line:125,column:6},end:{line:125,column:60}},43:{start:{line:126,column:17},end:{line:128,column:7}},44:{start:{line:127,column:8},end:{line:127,column:50}},45:{start:{line:129,column:21},end:{line:129,column:54}},46:{start:{line:130,column:6},end:{line:131,column:7}},47:{start:{line:131,column:7},end:{line:133,column:29}},48:{start:{line:132,column:8},end:{line:132,column:36}},49:{start:{line:134,column:6},end:{line:134,column:17}},50:{start:{line:137,column:19},end:{line:139,column:8}},51:{start:{line:141,column:19},end:{line:141,column:46}},52:{start:{line:142,column:6},end:{line:142,column:43}},53:{start:{line:143,column:6},end:{line:143,column:72}},54:{start:{line:144,column:6},end:{line:144,column:18}},55:{start:{line:147,column:25},end:{line:147,column:41}},56:{start:{line:148,column:6},end:{line:148,column:38}},57:{start:{line:149,column:19},end:{line:149,column:23}},58:{start:{line:150,column:6},end:{line:153,column:7}},59:{start:{line:151,column:8},end:{line:151,column:47}},60:{start:{line:152,column:8},end:{line:152,column:24}},61:{start:{line:156,column:6},end:{line:163,column:10}},62:{start:{line:162,column:10},end:{line:162,column:30}}},fnMap:{0:{name:"(anonymous_0)",decl:{start:{line:26,column:15},end:{line:26,column:16}},loc:{start:{line:26,column:21},end:{line:26,column:23}},line:26},1:{name:"(anonymous_1)",decl:{start:{line:30,column:15},end:{line:30,column:16}},loc:{start:{line:30,column:21},end:{line:30,column:23}},line:30},2:{name:"(anonymous_2)",decl:{start:{line:33,column:2},end:{line:33,column:3}},loc:{start:{line:33,column:9},end:{line:37,column:3}},line:33},3:{name:"(anonymous_3)",decl:{start:{line:39,column:16},end:{line:39,column:17}},loc:{start:{line:39,column:28},end:{line:60,column:5}},line:39},4:{name:"(anonymous_4)",decl:{start:{line:62,column:6},end:{line:62,column:7}},loc:{start:{line:62,column:12},end:{line:64,column:7}},line:62},5:{name:"(anonymous_5)",decl:{start:{line:65,column:6},end:{line:65,column:7}},loc:{start:{line:65,column:17},end:{line:67,column:7}},line:65},6:{name:"(anonymous_6)",decl:{start:{line:70,column:11},end:{line:70,column:12}},loc:{start:{line:70,column:23},end:{line:85,column:3}},line:70},7:{name:"(anonymous_7)",decl:{start:{line:86,column:2},end:{line:86,column:3}},loc:{start:{line:86,column:18},end:{line:89,column:3}},line:86},8:{name:"(anonymous_8)",decl:{start:{line:91,column:4},end:{line:91,column:5}},loc:{start:{line:91,column:22},end:{line:135,column:5}},line:91},9:{name:"(anonymous_9)",decl:{start:{line:98,column:33},end:{line:98,column:34}},loc:{start:{line:98,column:45},end:{line:124,column:7}},line:98},10:{name:"(anonymous_10)",decl:{start:{line:126,column:17},end:{line:126,column:18}},loc:{start:{line:126,column:29},end:{line:128,column:7}},line:126},11:{name:"(anonymous_11)",decl:{start:{line:131,column:8},end:{line:131,column:9}},loc:{start:{line:131,column:20},end:{line:133,column:7}},line:131},12:{name:"(anonymous_12)",decl:{start:{line:136,column:20},end:{line:136,column:21}},loc:{start:{line:136,column:32},end:{line:145,column:5}},line:136},13:{name:"(anonymous_13)",decl:{start:{line:146,column:14},end:{line:146,column:15}},loc:{start:{line:146,column:26},end:{line:154,column:5}},line:146},14:{name:"(anonymous_14)",decl:{start:{line:150,column:26},end:{line:150,column:27}},loc:{start:{line:150,column:38},end:{line:153,column:7}},line:150},15:{name:"(anonymous_15)",decl:{start:{line:155,column:18},end:{line:155,column:19}},loc:{start:{line:155,column:30},end:{line:164,column:5}},line:155},16:{name:"(anonymous_16)",decl:{start:{line:161,column:14},end:{line:161,column:15}},loc:{start:{line:161,column:26},end:{line:163,column:9}},line:161}},branchMap:{0:{loc:{start:{line:40,column:6},end:{line:42,column:7}},type:"if",locations:[{start:{line:40,column:6},end:{line:42,column:7}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:40},1:{loc:{start:{line:40,column:10},end:{line:40,column:46}},type:"binary-expr",locations:[{start:{line:40,column:10},end:{line:40,column:32}},{start:{line:40,column:36},end:{line:40,column:46}}],line:40},2:{loc:{start:{line:43,column:6},end:{line:58,column:7}},type:"if",locations:[{start:{line:43,column:6},end:{line:58,column:7}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:43},3:{loc:{start:{line:47,column:10},end:{line:49,column:11}},type:"if",locations:[{start:{line:47,column:10},end:{line:49,column:11}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:47},4:{loc:{start:{line:51,column:10},end:{line:53,column:11}},type:"if",locations:[{start:{line:51,column:10},end:{line:53,column:11}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:51}},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},f:{0:0,1:0,2:0,3:0,4:0,5:0,6:0,7:0,8:0,9:0,10:0,11:0,12:0,13:0,14:0,15:0,16:0},b:{0:[0,0],1:[0,0],2:[0,0],3:[0,0],4:[0,0]},inputSourceMap:{version:3,sources:["EditScreenDialog.vue"],names:[],mappings:";AA0GA;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;;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",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#\n# This file may also be used under the terms of a commercial license \n# if purchased from OpenC3, Inc.\n--\x3e\n\n<template>\n \x3c!-- Edit dialog --\x3e\n <v-dialog v-model="show" width="75vw">\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-btn\n @click="loadFile"\n :disabled="!file"\n color="primary"\n class="mr-3"\n data-test="edit-screen-load"\n >\n Load\n </v-btn>\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-row>\n <v-row> Edit the screen definition. </v-row>\n <v-row class="mb-2">\n <pre id="editor"></pre>\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 <span>Ctrl-space brings up autocomplete</span>\n <v-spacer />\n <v-btn\n @click="$emit(\'cancel\')"\n class="mx-2"\n outlined\n data-test="edit-screen-cancel"\n >\n Cancel\n </v-btn>\n <v-btn\n @click="$emit(\'save\', editor.getValue())"\n class="mx-2"\n color="primary"\n data-test="edit-screen-save"\n >\n Save\n </v-btn>\n </v-row>\n </v-card-text>\n </v-card>\n </v-dialog>\n</template>\n\n<script>\nimport * as ace from \'ace-builds\'\nimport \'ace-builds/src-min-noconflict/mode-text\'\nimport \'ace-builds/src-min-noconflict/theme-twilight\'\nimport \'ace-builds/src-min-noconflict/ext-language_tools\'\nimport \'ace-builds/src-min-noconflict/ext-searchbox\'\nimport { ScreenCompleter } from \'@/tools/TlmViewer/autocomplete\'\n\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 keywords: {\n type: Array,\n default: () => [],\n },\n errors: {\n type: Array,\n default: () => [],\n },\n },\n data() {\n return {\n file: null,\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 messages = new Set()\n let result = []\n for (const error of this.errors) {\n if (messages.has(error.message)) {\n continue\n }\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 messages.add(error.message)\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 mounted: function () {\n this.editor = ace.edit(\'editor\')\n this.editor.setTheme(\'ace/theme/twilight\')\n const screenMode = this.buildScreenMode()\n this.editor.session.setMode(new screenMode())\n this.editor.session.setTabSize(2)\n this.editor.session.setUseWrapMode(true)\n this.editor.$blockScrolling = Infinity\n this.editor.setOption(\'enableBasicAutocompletion\', true)\n this.editor.setOption(\'enableLiveAutocompletion\', true)\n this.editor.completers = [new ScreenCompleter()]\n this.editor.setHighlightActiveLine(false)\n this.editor.setValue(this.definition)\n this.editor.clearSelection()\n this.editor.focus()\n },\n beforeDestroy() {\n this.editor.destroy()\n this.editor.container.remove()\n },\n methods: {\n buildScreenMode() {\n var oop = ace.require(\'ace/lib/oop\')\n var TextHighlightRules = ace.require(\n \'ace/mode/text_highlight_rules\'\n ).TextHighlightRules\n\n let list = this.keywords.join(\'|\')\n var OpenC3HighlightRules = function () {\n this.$rules = {\n start: [\n {\n token: \'comment\',\n regex: \'#.*$\',\n },\n {\n token: \'string\',\n regex: \'".*?"\',\n },\n {\n token: \'string\',\n regex: "\'.*?\'",\n },\n {\n token: \'constant.numeric\',\n regex: \'\\\\b\\\\d+(?:\\\\.\\\\d+)?\\\\b\',\n },\n {\n token: \'keyword\',\n regex: new RegExp(`^\\\\s*(${list})\\\\b`),\n },\n ],\n }\n this.normalizeRules()\n }\n oop.inherits(OpenC3HighlightRules, TextHighlightRules)\n var Mode = function () {\n this.HighlightRules = OpenC3HighlightRules\n }\n var TextMode = ace.require(\'ace/mode/text\').Mode\n oop.inherits(Mode, TextMode)\n ;(function () {\n this.$id = \'ace/mode/openc3\'\n }.call(Mode.prototype))\n return Mode\n },\n downloadScreen: function () {\n const blob = new Blob([this.editor.getValue()], {\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 const that = this\n fileReader.onload = function () {\n that.editor.setValue(fileReader.result)\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>\n.ace_autocomplete {\n width: 60vw !important;\n}\n</style>\n<style scoped>\n#editor {\n height: 50vh;\n width: 75vw;\n font-size: 16px;\n}\n.v-card {\n background-color: var(--v-tertiary-darken2);\n}\n.v-textarea :deep(textarea) {\n padding: 5px;\n background-color: var(--v-tertiary-darken1) !important;\n}\n</style>\n']},_coverageSchema:"1a1c01bbd47fc00a2c39e90264f33305004495a9",hash:"d5096f8ffcb1d388fc9f9c2eee2cb0902888ec93"},l=n[i]||(n[i]={});l[e]&&l[e].hash===t||(l[e]=s);var a=l[e];return P=function(){return a},a}V(),P();var R={props:{value:Boolean,target:{type:String,default:""},screen:{type:String,default:""},definition:{type:String,default:""},keywords:{type:Array,default:function(){return P().f[0]++,P().s[0]++,[]}},errors:{type:Array,default:function(){return P().f[1]++,P().s[1]++,[]}}},data:function(){return P().f[2]++,P().s[2]++,{file:null}},computed:{editErrors:function(){if(P().f[3]++,P().s[3]++,P().b[1][0]++,""===this.definition&&(P().b[1][1]++,!this.file))return P().b[0][0]++,P().s[4]++,["Input can not be blank."];if(P().b[0][1]++,P().s[5]++,0!==this.errors.length){P().b[2][0]++;var e=(P().s[6]++,new Set),t=(P().s[7]++,[]);P().s[8]++;var n,i=(0,c.Z)(this.errors);try{for(i.s();!(n=i.n()).done;){var s=n.value;if(P().s[9]++,e.has(s.message))P().b[3][0]++,P().s[10]++;else{P().b[3][1]++;var l=(P().s[11]++,"At ".concat(s.lineNumber,": (").concat(s.line,") ").concat(s.message,"."));P().s[12]++,s.usage?(P().b[4][0]++,P().s[13]++,l+=" Usage: ".concat(s.usage)):P().b[4][1]++,P().s[14]++,t.push(l),P().s[15]++,e.add(s.message)}}}catch(a){i.e(a)}finally{i.f()}return P().s[16]++,t}return P().b[2][1]++,P().s[17]++,[]},show:{get:function(){return P().f[4]++,P().s[18]++,this.value},set:function(e){P().f[5]++,P().s[19]++,this.$emit("input",e)}}},mounted:function(){P().f[6]++,P().s[20]++,this.editor=M.edit("editor"),P().s[21]++,this.editor.setTheme("ace/theme/twilight");var e=(P().s[22]++,this.buildScreenMode());P().s[23]++,this.editor.session.setMode(new e),P().s[24]++,this.editor.session.setTabSize(2),P().s[25]++,this.editor.session.setUseWrapMode(!0),P().s[26]++,this.editor.$blockScrolling=1/0,P().s[27]++,this.editor.setOption("enableBasicAutocompletion",!0),P().s[28]++,this.editor.setOption("enableLiveAutocompletion",!0),P().s[29]++,this.editor.completers=[new W],P().s[30]++,this.editor.setHighlightActiveLine(!1),P().s[31]++,this.editor.setValue(this.definition),P().s[32]++,this.editor.clearSelection(),P().s[33]++,this.editor.focus()},beforeDestroy:function(){P().f[7]++,P().s[34]++,this.editor.destroy(),P().s[35]++,this.editor.container.remove()},methods:{buildScreenMode:function(){P().f[8]++;var e=(P().s[36]++,M.require("ace/lib/oop")),t=(P().s[37]++,M.require("ace/mode/text_highlight_rules").TextHighlightRules),n=(P().s[38]++,this.keywords.join("|"));P().s[39]++;var i=function(){P().f[9]++,P().s[40]++,this.$rules={start:[{token:"comment",regex:"#.*$"},{token:"string",regex:'".*?"'},{token:"string",regex:"'.*?'"},{token:"constant.numeric",regex:"\\b\\d+(?:\\.\\d+)?\\b"},{token:"keyword",regex:new RegExp("^\\s*(".concat(n,")\\b"))}]},P().s[41]++,this.normalizeRules()};P().s[42]++,e.inherits(i,t),P().s[43]++;var s=function(){P().f[10]++,P().s[44]++,this.HighlightRules=i},l=(P().s[45]++,M.require("ace/mode/text").Mode);return P().s[46]++,e.inherits(s,l),P().s[47]++,function(){P().f[11]++,P().s[48]++,this.$id="ace/mode/openc3"}.call(s.prototype),P().s[49]++,s},downloadScreen:function(){P().f[12]++;var e=(P().s[50]++,new Blob([this.editor.getValue()],{type:"text/plain"})),t=(P().s[51]++,document.createElement("a"));P().s[52]++,t.href=URL.createObjectURL(e),P().s[53]++,t.setAttribute("download","".concat(this.target,"_").concat(this.screen,".txt")),P().s[54]++,t.click()},loadFile:function(){P().f[13]++;var e=(P().s[55]++,new FileReader);P().s[56]++,e.readAsText(this.file);var t=(P().s[57]++,this);P().s[58]++,e.onload=function(){P().f[14]++,P().s[59]++,t.editor.setValue(e.result),P().s[60]++,t.file=null}},deleteScreen:function(){var e=this;P().f[15]++,P().s[61]++,this.$dialog.confirm("Are you sure you want to delete this screen?!",{okText:"Delete",cancelText:"Cancel"}).then((function(t){P().f[16]++,P().s[62]++,e.$emit("delete")}))}}},H=R,$=(n(59221),n(96146),(0,f.Z)(H,I,E,!1,null,"40612998",null)),U=$.exports;function z(){var e="/openc3/plugins/packages/openc3-cosmos-tool-tlmviewer/src/tools/TlmViewer/Openc3Screen.vue",t="5d53c839f79861c698009f11c42b57c48f8eff89",n=new Function("return this")(),i="__coverage__",s={path:"/openc3/plugins/packages/openc3-cosmos-tool-tlmviewer/src/tools/TlmViewer/Openc3Screen.vue",statementMap:{0:{start:{line:11,column:25},end:{line:18,column:1}},1:{start:{line:20,column:0},end:{line:41,column:2}},2:{start:{line:22,column:26},end:{line:22,column:52}},3:{start:{line:24,column:24},end:{line:32,column:3}},4:{start:{line:34,column:2},end:{line:40,column:3}},5:{start:{line:62,column:21},end:{line:62,column:23}},6:{start:{line:66,column:4},end:{line:89,column:5}},7:{start:{line:93,column:6},end:{line:105,column:7}},8:{start:{line:94,column:23},end:{line:94,column:32}},9:{start:{line:95,column:21},end:{line:95,column:23}},10:{start:{line:96,column:8},end:{line:103,column:9}},11:{start:{line:97,column:10},end:{line:99,column:11}},12:{start:{line:98,column:12},end:{line:98,column:20}},13:{start:{line:100,column:20},end:{line:100,column:71}},14:{start:{line:101,column:10},end:{line:101,column:23}},15:{start:{line:102,column:10},end:{line:102,column:37}},16:{start:{line:104,column:8},end:{line:104,column:21}},17:{start:{line:106,column:6},end:{line:106,column:17}},18:{start:{line:113,column:4},end:{line:128,column:5}},19:{start:{line:114,column:6},end:{line:121,column:8}},20:{start:{line:123,column:6},end:{line:127,column:8}},21:{start:{line:129,column:4},end:{line:129,column:16}},22:{start:{line:132,column:4},end:{line:132,column:30}},23:{start:{line:133,column:4},end:{line:133,column:49}},24:{start:{line:134,column:4},end:{line:134,column:26}},25:{start:{line:135,column:4},end:{line:135,column:56}},26:{start:{line:138,column:26},end:{line:138,column:51}},27:{start:{line:139,column:4},end:{line:141,column:23}},28:{start:{line:140,column:6},end:{line:140,column:19}},29:{start:{line:144,column:4},end:{line:147,column:5}},30:{start:{line:145,column:6},end:{line:145,column:33}},31:{start:{line:146,column:6},end:{line:146,column:25}},32:{start:{line:152,column:6},end:{line:152,column:45}},33:{start:{line:155,column:6},end:{line:155,column:52}},34:{start:{line:158,column:6},end:{line:158,column:29}},35:{start:{line:162,column:6},end:{line:162,column:22}},36:{start:{line:166,column:6},end:{line:166,column:22}},37:{start:{line:167,column:6},end:{line:167,column:28}},38:{start:{line:168,column:6},end:{line:168,column:27}},39:{start:{line:169,column:6},end:{line:169,column:30}},40:{start:{line:171,column:6},end:{line:175,column:8}},41:{start:{line:176,column:6},end:{line:176,column:72}},42:{start:{line:178,column:6},end:{line:230,column:7}},43:{start:{line:184,column:10},end:{line:228,column:11}},44:{start:{line:185,column:12},end:{line:227,column:13}},45:{start:{line:187,column:16},end:{line:191,column:17}},46:{start:{line:192,column:16},end:{line:192,column:52}},47:{start:{line:193,column:16},end:{line:193,column:53}},48:{start:{line:194,column:16},end:{line:194,column:62}},49:{start:{line:195,column:16},end:{line:195,column:21}},50:{start:{line:197,column:16},end:{line:197,column:75}},51:{start:{line:198,column:16},end:{line:198,column:38}},52:{start:{line:199,column:16},end:{line:200,column:63}},53:{start:{line:201,column:16},end:{line:201,column:21}},54:{start:{line:203,column:16},end:{line:207,column:17}},55:{start:{line:208,column:16},end:{line:208,column:56}},56:{start:{line:209,column:16},end:{line:209,column:21}},57:{start:{line:213,column:18},end:{line:215,column:41}},58:{start:{line:216,column:16},end:{line:216,column:48}},59:{start:{line:217,column:16},end:{line:217,column:21}},60:{start:{line:219,column:16},end:{line:219,column:52}},61:{start:{line:220,column:16},end:{line:220,column:21}},62:{start:{line:222,column:16},end:{line:222,column:55}},63:{start:{line:223,column:16},end:{line:223,column:21}},64:{start:{line:225,column:16},end:{line:225,column:73}},65:{start:{line:226,column:16},end:{line:226,column:21}},66:{start:{line:232,column:6},end:{line:255,column:7}},67:{start:{line:233,column:20},end:{line:233,column:22}},68:{start:{line:234,column:20},end:{line:234,column:22}},69:{start:{line:235,column:8},end:{line:238,column:9}},70:{start:{line:236,column:10},end:{line:236,column:33}},71:{start:{line:237,column:10},end:{line:237,column:39}},72:{start:{line:240,column:8},end:{line:245,column:10}},73:{start:{line:248,column:8},end:{line:252,column:9}},74:{start:{line:254,column:8},end:{line:254,column:61}},75:{start:{line:259,column:6},end:{line:259,column:36}},76:{start:{line:263,column:6},end:{line:263,column:36}},77:{start:{line:267,column:6},end:{line:267,column:38}},78:{start:{line:270,column:6},end:{line:286,column:7}},79:{start:{line:274,column:8},end:{line:285,column:12}},80:{start:{line:277,column:12},end:{line:277,column:61}},81:{start:{line:280,column:12},end:{line:284,column:14}},82:{start:{line:290,column:6},end:{line:290,column:52}},83:{start:{line:291,column:6},end:{line:291,column:28}},84:{start:{line:294,column:6},end:{line:294,column:22}},85:{start:{line:295,column:6},end:{line:295,column:29}},86:{start:{line:297,column:6},end:{line:297,column:42}},87:{start:{line:298,column:6},end:{line:298,column:28}},88:{start:{line:300,column:6},end:{line:300,column:58}},89:{start:{line:302,column:6},end:{line:304,column:8}},90:{start:{line:303,column:8},end:{line:303,column:26}},91:{start:{line:307,column:6},end:{line:307,column:41}},92:{start:{line:308,column:6},end:{line:308,column:28}},93:{start:{line:310,column:6},end:{line:310,column:58}},94:{start:{line:312,column:6},end:{line:322,column:8}},95:{start:{line:313,column:8},end:{line:320,column:10}},96:{start:{line:321,column:8},end:{line:321,column:31}},97:{start:{line:325,column:6},end:{line:325,column:29}},98:{start:{line:326,column:6},end:{line:330,column:7}},99:{start:{line:328,column:10},end:{line:328,column:37}},100:{start:{line:333,column:6},end:{line:333,column:32}},101:{start:{line:334,column:6},end:{line:334,column:34}},102:{start:{line:337,column:23},end:{line:337,column:27}},103:{start:{line:338,column:6},end:{line:347,column:7}},104:{start:{line:339,column:8},end:{line:343,column:9}},105:{start:{line:344,column:8},end:{line:344,column:48}},106:{start:{line:345,column:8},end:{line:345,column:45}},107:{start:{line:346,column:8},end:{line:346,column:59}},108:{start:{line:349,column:8},end:{line:351,column:16}},109:{start:{line:352,column:21},end:{line:352,column:23}},110:{start:{line:353,column:6},end:{line:358,column:7}},111:{start:{line:357,column:8},end:{line:357,column:57}},112:{start:{line:360,column:6},end:{line:406,column:7}},113:{start:{line:370,column:23},end:{line:375,column:9}},114:{start:{line:376,column:8},end:{line:376,column:37}},115:{start:{line:377,column:8},end:{line:377,column:47}},116:{start:{line:378,column:8},end:{line:378,column:35}},117:{start:{line:381,column:8},end:{line:383,column:9}},118:{start:{line:382,column:10},end:{line:382,column:41}},119:{start:{line:384,column:8},end:{line:405,column:9}},120:{start:{line:385,column:10},end:{line:392,column:12}},121:{start:{line:394,column:23},end:{line:402,column:11}},122:{start:{line:403,column:10},end:{line:403,column:49}},123:{start:{line:404,column:10},end:{line:404,column:42}},124:{start:{line:409,column:6},end:{line:424,column:8}},125:{start:{line:410,column:8},end:{line:423,column:10}},126:{start:{line:413,column:10},end:{line:418,column:11}},127:{start:{line:417,column:12},end:{line:417,column:50}},128:{start:{line:420,column:10},end:{line:422,column:11}},129:{start:{line:421,column:12},end:{line:421,column:52}}},fnMap:{0:{name:"(anonymous_0)",decl:{start:{line:20,column:32},end:{line:20,column:33}},loc:{start:{line:20,column:46},end:{line:41,column:1}},line:20},1:{name:"(anonymous_1)",decl:{start:{line:62,column:15},end:{line:62,column:16}},loc:{start:{line:62,column:21},end:{line:62,column:23}},line:62},2:{name:"(anonymous_2)",decl:{start:{line:65,column:2},end:{line:65,column:3}},loc:{start:{line:65,column:9},end:{line:90,column:3}},line:65},3:{name:"(anonymous_3)",decl:{start:{line:92,column:11},end:{line:92,column:12}},loc:{start:{line:92,column:23},end:{line:107,column:5}},line:92},4:{name:"(anonymous_4)",decl:{start:{line:112,column:2},end:{line:112,column:3}},loc:{start:{line:112,column:31},end:{line:130,column:3}},line:112},5:{name:"(anonymous_5)",decl:{start:{line:131,column:2},end:{line:131,column:3}},loc:{start:{line:131,column:12},end:{line:136,column:3}},line:131},6:{name:"(anonymous_6)",decl:{start:{line:137,column:2},end:{line:137,column:3}},loc:{start:{line:137,column:12},end:{line:142,column:3}},line:137},7:{name:"(anonymous_7)",decl:{start:{line:139,column:31},end:{line:139,column:32}},loc:{start:{line:139,column:37},end:{line:141,column:5}},line:139},8:{name:"(anonymous_8)",decl:{start:{line:143,column:2},end:{line:143,column:3}},loc:{start:{line:143,column:14},end:{line:148,column:3}},line:143},9:{name:"(anonymous_9)",decl:{start:{line:151,column:4},end:{line:151,column:5}},loc:{start:{line:151,column:25},end:{line:153,column:5}},line:151},10:{name:"(anonymous_10)",decl:{start:{line:154,column:4},end:{line:154,column:5}},loc:{start:{line:154,column:26},end:{line:156,column:5}},line:154},11:{name:"(anonymous_11)",decl:{start:{line:157,column:4},end:{line:157,column:5}},loc:{start:{line:157,column:15},end:{line:159,column:5}},line:157},12:{name:"(anonymous_12)",decl:{start:{line:161,column:17},end:{line:161,column:18}},loc:{start:{line:161,column:29},end:{line:163,column:5}},line:161},13:{name:"(anonymous_13)",decl:{start:{line:164,column:21},end:{line:164,column:22}},loc:{start:{line:164,column:33},end:{line:256,column:5}},line:164},14:{name:"(anonymous_14)",decl:{start:{line:183,column:8},end:{line:183,column:9}},loc:{start:{line:183,column:51},end:{line:229,column:9}},line:183},15:{name:"(anonymous_15)",decl:{start:{line:258,column:20},end:{line:258,column:21}},loc:{start:{line:258,column:36},end:{line:260,column:5}},line:258},16:{name:"(anonymous_16)",decl:{start:{line:262,column:22},end:{line:262,column:23}},loc:{start:{line:262,column:38},end:{line:264,column:5}},line:262},17:{name:"(anonymous_17)",decl:{start:{line:266,column:20},end:{line:266,column:21}},loc:{start:{line:266,column:44},end:{line:268,column:5}},line:266},18:{name:"(anonymous_18)",decl:{start:{line:269,column:12},end:{line:269,column:13}},loc:{start:{line:269,column:24},end:{line:287,column:5}},line:269},19:{name:"(anonymous_19)",decl:{start:{line:276,column:16},end:{line:276,column:17}},loc:{start:{line:276,column:26},end:{line:278,column:11}},line:276},20:{name:"(anonymous_20)",decl:{start:{line:279,column:17},end:{line:279,column:18}},loc:{start:{line:279,column:28},end:{line:285,column:11}},line:279},21:{name:"(anonymous_21)",decl:{start:{line:288,column:14},end:{line:288,column:15}},loc:{start:{line:288,column:26},end:{line:292,column:5}},line:288},22:{name:"(anonymous_22)",decl:{start:{line:293,column:16},end:{line:293,column:17}},loc:{start:{line:293,column:28},end:{line:305,column:5}},line:293},23:{name:"(anonymous_23)",decl:{start:{line:302,column:21},end:{line:302,column:22}},loc:{start:{line:302,column:33},end:{line:304,column:7}},line:302},24:{name:"(anonymous_24)",decl:{start:{line:306,column:14},end:{line:306,column:15}},loc:{start:{line:306,column:36},end:{line:323,column:5}},line:306},25:{name:"(anonymous_25)",decl:{start:{line:312,column:21},end:{line:312,column:22}},loc:{start:{line:312,column:33},end:{line:322,column:7}},line:312},26:{name:"(anonymous_26)",decl:{start:{line:324,column:18},end:{line:324,column:19}},loc:{start:{line:324,column:30},end:{line:331,column:5}},line:324},27:{name:"(anonymous_27)",decl:{start:{line:327,column:8},end:{line:327,column:9}},loc:{start:{line:327,column:22},end:{line:329,column:9}},line:327},28:{name:"(anonymous_28)",decl:{start:{line:332,column:22},end:{line:332,column:23}},loc:{start:{line:332,column:34},end:{line:335,column:5}},line:332},29:{name:"(anonymous_29)",decl:{start:{line:336,column:19},end:{line:336,column:20}},loc:{start:{line:336,column:68},end:{line:407,column:5}},line:336},30:{name:"(anonymous_30)",decl:{start:{line:408,column:25},end:{line:408,column:26}},loc:{start:{line:408,column:44},end:{line:425,column:5}},line:408},31:{name:"(anonymous_31)",decl:{start:{line:409,column:34},end:{line:409,column:35}},loc:{start:{line:409,column:47},end:{line:424,column:7}},line:409},32:{name:"(anonymous_32)",decl:{start:{line:410,column:24},end:{line:410,column:25}},loc:{start:{line:410,column:36},end:{line:423,column:9}},line:410}},branchMap:{0:{loc:{start:{line:39,column:4},end:{line:39,column:46}},type:"binary-expr",locations:[{start:{line:39,column:4},end:{line:39,column:27}},{start:{line:39,column:31},end:{line:39,column:46}}],line:39},1:{loc:{start:{line:93,column:6},end:{line:105,column:7}},type:"if",locations:[{start:{line:93,column:6},end:{line:105,column:7}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:93},2:{loc:{start:{line:93,column:10},end:{line:93,column:52}},type:"binary-expr",locations:[{start:{line:93,column:10},end:{line:93,column:26}},{start:{line:93,column:30},end:{line:93,column:52}}],line:93},3:{loc:{start:{line:97,column:10},end:{line:99,column:11}},type:"if",locations:[{start:{line:97,column:10},end:{line:99,column:11}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:97},4:{loc:{start:{line:113,column:4},end:{line:128,column:5}},type:"if",locations:[{start:{line:113,column:4},end:{line:128,column:5}},{start:{line:122,column:11},end:{line:128,column:5}}],line:113},5:{loc:{start:{line:144,column:4},end:{line:147,column:5}},type:"if",locations:[{start:{line:144,column:4},end:{line:147,column:5}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:144},6:{loc:{start:{line:184,column:10},end:{line:228,column:11}},type:"if",locations:[{start:{line:184,column:10},end:{line:228,column:11}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:184},7:{loc:{start:{line:185,column:12},end:{line:227,column:13}},type:"switch",locations:[{start:{line:186,column:14},end:{line:195,column:21}},{start:{line:196,column:14},end:{line:201,column:21}},{start:{line:202,column:14},end:{line:209,column:21}},{start:{line:210,column:14},end:{line:210,column:29}},{start:{line:211,column:14},end:{line:217,column:21}},{start:{line:218,column:14},end:{line:220,column:21}},{start:{line:221,column:14},end:{line:223,column:21}},{start:{line:224,column:14},end:{line:226,column:21}}],line:185},8:{loc:{start:{line:213,column:18},end:{line:215,column:41}},type:"binary-expr",locations:[{start:{line:213,column:18},end:{line:215,column:19}},{start:{line:215,column:23},end:{line:215,column:41}}],line:213},9:{loc:{start:{line:232,column:6},end:{line:255,column:7}},type:"if",locations:[{start:{line:232,column:6},end:{line:255,column:7}},{start:{line:253,column:13},end:{line:255,column:7}}],line:232},10:{loc:{start:{line:270,column:6},end:{line:286,column:7}},type:"if",locations:[{start:{line:270,column:6},end:{line:286,column:7}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:270},11:{loc:{start:{line:271,column:8},end:{line:272,column:32}},type:"binary-expr",locations:[{start:{line:271,column:8},end:{line:271,column:53}},{start:{line:272,column:8},end:{line:272,column:32}}],line:271},12:{loc:{start:{line:338,column:6},end:{line:347,column:7}},type:"if",locations:[{start:{line:338,column:6},end:{line:347,column:7}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:338},13:{loc:{start:{line:353,column:6},end:{line:358,column:7}},type:"if",locations:[{start:{line:353,column:6},end:{line:358,column:7}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:353},14:{loc:{start:{line:360,column:6},end:{line:406,column:7}},type:"if",locations:[{start:{line:360,column:6},end:{line:406,column:7}},{start:{line:379,column:13},end:{line:406,column:7}}],line:360},15:{loc:{start:{line:361,column:8},end:{line:368,column:34}},type:"binary-expr",locations:[{start:{line:361,column:8},end:{line:361,column:36}},{start:{line:362,column:8},end:{line:362,column:38}},{start:{line:363,column:8},end:{line:363,column:37}},{start:{line:364,column:8},end:{line:364,column:29}},{start:{line:365,column:8},end:{line:365,column:29}},{start:{line:366,column:8},end:{line:366,column:28}},{start:{line:367,column:8},end:{line:367,column:32}},{start:{line:368,column:8},end:{line:368,column:34}}],line:361},16:{loc:{start:{line:381,column:8},end:{line:383,column:9}},type:"if",locations:[{start:{line:381,column:8},end:{line:383,column:9}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:381},17:{loc:{start:{line:384,column:8},end:{line:405,column:9}},type:"if",locations:[{start:{line:384,column:8},end:{line:405,column:9}},{start:{line:393,column:15},end:{line:405,column:9}}],line:384},18:{loc:{start:{line:413,column:10},end:{line:418,column:11}},type:"if",locations:[{start:{line:413,column:10},end:{line:418,column:11}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:413},19:{loc:{start:{line:420,column:10},end:{line:422,column:11}},type:"if",locations:[{start:{line:420,column:10},end:{line:422,column:11}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:420}},s:{0:0,1:0,2:0,3:0,4:0,5:0,6:0,7:0,8:0,9:0,10:0,11:0,12:0,13:0,14:0,15:0,16:0,17:0,18:0,19:0,20:0,21:0,22:0,23:0,24:0,25:0,26:0,27:0,28:0,29:0,30:0,31:0,32:0,33:0,34:0,35:0,36:0,37:0,38:0,39:0,40:0,41:0,42:0,43:0,44:0,45:0,46:0,47:0,48:0,49:0,50:0,51:0,52:0,53:0,54:0,55:0,56:0,57:0,58:0,59:0,60:0,61:0,62:0,63:0,64:0,65:0,66:0,67:0,68:0,69:0,70:0,71:0,72:0,73:0,74:0,75:0,76:0,77:0,78:0,79:0,80:0,81:0,82:0,83:0,84:0,85:0,86:0,87:0,88:0,89:0,90:0,91:0,92:0,93:0,94:0,95:0,96:0,97:0,98:0,99:0,100:0,101:0,102:0,103:0,104:0,105:0,106:0,107:0,108:0,109:0,110:0,111:0,112:0,113:0,114:0,115:0,116:0,117:0,118:0,119:0,120:0,121:0,122:0,123:0,124:0,125:0,126:0,127:0,128:0,129:0},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},b:{0:[0,0],1:[0,0],2:[0,0],3:[0,0],4:[0,0],5:[0,0],6:[0,0],7:[0,0,0,0,0,0,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,0,0,0,0,0,0],16:[0,0],17:[0,0],18:[0,0],19:[0,0]},inputSourceMap:{version:3,sources:["Openc3Screen.vue"],names:[],mappings:";AAqIA;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;;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;;AAEA;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;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#\n# This file may also be used under the terms of a commercial license\n# if purchased from OpenC3, Inc.\n--\x3e\n\n<template>\n <div>\n <v-card :min-height=\"height\" :min-width=\"width\" v-if=\"!editDialog\">\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 :keywords=\"keywords\"\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 // 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 // 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 keywords: {\n type: Array,\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 staleTime: 30,\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 let messages = new Set()\n let result = ''\n for (const error of this.errors) {\n if (messages.has(error.message)) {\n continue\n }\n let msg = `${error.time}: (${error.type}) ${error.message}\\n`\n result += msg\n messages.add(error.message)\n }\n return result\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 // These are API methods that ButtonWidget uses to open and close screens\n open(target, screen) {\n this.$parent.showScreen(target, screen)\n },\n close(target, screen) {\n this.$parent.closeScreenByName(target, screen)\n },\n closeAll() {\n this.$parent.closeAll()\n },\n\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>`\n )\n this.width = parseInt(parameters[0])\n this.height = parseInt(parameters[1])\n this.pollingPeriod = parseFloat(parameters[2])\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 'STALE_TIME':\n this.configParser.verify_num_parameters(\n 1,\n 1,\n `${keyword} <Time (s)>`\n )\n this.staleTime = parseInt(parameters[0])\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 getNamedWidget: function (name) {\n return this.namedWidgets[name]\n },\n // TODO: Deprecate 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, this.staleTime)\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 Api.post('/openc3-api/screen/', {\n data: {\n scope: window.openc3Scope,\n target: this.target,\n screen: this.screen,\n text: this.currentDefinition,\n },\n })\n this.editDialog = false\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 :deep(textarea) {\n padding: 5px;\n background-color: var(--v-tertiary-darken1) !important;\n}\n</style>\n"]},_coverageSchema:"1a1c01bbd47fc00a2c39e90264f33305004495a9",hash:"5d53c839f79861c698009f11c42b57c48f8eff89"},l=n[i]||(n[i]={});l[e]&&l[e].hash===t||(l[e]=s);var a=l[e];return z=function(){return a},a}z();var G=(z().s[0]++,n(15507));z().s[1]++,G.keys().forEach((function(e){z().f[0]++;var t=(z().s[2]++,G(e)),n=(z().s[3]++,k()(T()(e.split("/").pop().replace(/\.\w+$/,""))));z().s[4]++,y["default"].component(n,(z().b[0][0]++,t.default||(z().b[0][1]++,t)))}));var B={components:{EditScreenDialog:U},props:{target:{type:String,default:""},screen:{type:String,default:""},definition:{type:String,default:""},keywords:{type:Array,default:function(){return z().f[1]++,z().s[5]++,[]}}},data:function(){return z().f[2]++,z().s[6]++,{api:null,backup:"",currentDefinition:this.definition,editDialog:!1,expand:!0,configParser:null,currentLayout:null,layoutStack:[],namedWidgets:{},dynamicWidgets:[],width:null,height:null,staleTime:30,globalSettings:[],globalSubsettings:[],substitute:!1,original_target_name:null,force_substitute:!1,pollingPeriod:1,errors:[],errorDialog:!1,screenKey:null}},computed:{error:function(){if(z().f[3]++,z().s[7]++,z().b[2][0]++,this.errorDialog&&(z().b[2][1]++,this.errors.length>0)){z().b[1][0]++;var e=(z().s[8]++,new Set),t=(z().s[9]++,"");z().s[10]++;var n,i=(0,c.Z)(this.errors);try{for(i.s();!(n=i.n()).done;){var s=n.value;if(z().s[11]++,e.has(s.message))z().b[3][0]++,z().s[12]++;else{z().b[3][1]++;var l=(z().s[13]++,"".concat(s.time,": (").concat(s.type,") ").concat(s.message,"\n"));z().s[14]++,t+=l,z().s[15]++,e.add(s.message)}}}catch(a){i.e(a)}finally{i.f()}return z().s[16]++,t}return z().b[1][1]++,z().s[17]++,null}},errorCaptured:function(e,t,n){return z().f[4]++,z().s[18]++,e.usage?(z().b[4][0]++,z().s[19]++,this.errors.push({type:"usage",message:e.message,usage:e.usage,line:e.line,lineNumber:e.lineNumber,time:(new Date).getTime()})):(z().b[4][1]++,z().s[20]++,this.errors.push({type:"error",message:"".concat(e),time:(new Date).getTime()})),z().s[21]++,!1},created:function(){z().f[5]++,z().s[22]++,this.api=new d.k,z().s[23]++,this.configParser=new b.p,z().s[24]++,this.parseDefinition(),z().s[25]++,this.screenKey=Math.floor(1e6*Math.random())},mounted:function(){var e=this;z().f[6]++;var t=(z().s[26]++,1e3*this.pollingPeriod);z().s[27]++,this.updater=setInterval((function(){z().f[7]++,z().s[28]++,e.update()}),t)},destroyed:function(){z().f[8]++,z().s[29]++,null!=this.updater?(z().b[5][0]++,z().s[30]++,clearInterval(this.updater),z().s[31]++,this.updater=null):z().b[5][1]++},methods:{open:function(e,t){z().f[9]++,z().s[32]++,this.$parent.showScreen(e,t)},close:function(e,t){z().f[10]++,z().s[33]++,this.$parent.closeScreenByName(e,t)},closeAll:function(){z().f[11]++,z().s[34]++,this.$parent.closeAll()},clearErrors:function(){z().f[12]++,z().s[35]++,this.errors=[]},parseDefinition:function(){var e=this;if(z().f[13]++,z().s[36]++,this.errors=[],z().s[37]++,this.namedWidgets={},z().s[38]++,this.layoutStack=[],z().s[39]++,this.dynamicWidgets=[],z().s[40]++,this.layoutStack.push({type:"VerticalWidget",parameters:[],widgets:[]}),z().s[41]++,this.currentLayout=this.layoutStack[this.layoutStack.length-1],z().s[42]++,this.configParser.parse_string(this.currentDefinition,"",!1,!0,(function(t,n,i,s){var l;if(z().f[14]++,z().s[43]++,t)switch(z().b[6][0]++,z().s[44]++,t){case"SCREEN":z().b[7][0]++,z().s[45]++,e.configParser.verify_num_parameters(3,4,"".concat(t," <Width or AUTO> <Height or AUTO> <Polling Period>")),z().s[46]++,e.width=parseInt(n[0]),z().s[47]++,e.height=parseInt(n[1]),z().s[48]++,e.pollingPeriod=parseFloat(n[2]),z().s[49]++;break;case"END":z().b[7][1]++,z().s[50]++,e.configParser.verify_num_parameters(0,0,"".concat(t)),z().s[51]++,e.layoutStack.pop(),z().s[52]++,e.currentLayout=e.layoutStack[e.layoutStack.length-1],z().s[53]++;break;case"STALE_TIME":z().b[7][2]++,z().s[54]++,e.configParser.verify_num_parameters(1,1,"".concat(t," <Time (s)>")),z().s[55]++,e.staleTime=parseInt(n[0]),z().s[56]++;break;case"SETTING":z().b[7][3]++;case"SUBSETTING":z().b[7][4]++;var a=(z().s[57]++,null!==(z().b[8][0]++,l=e.currentLayout.widgets[e.currentLayout.widgets.length-1])&&void 0!==l?l:(z().b[8][1]++,e.currentLayout));z().s[58]++,a.settings.push(n),z().s[59]++;break;case"GLOBAL_SETTING":z().b[7][5]++,z().s[60]++,e.globalSettings.push(n),z().s[61]++;break;case"GLOBAL_SUBSETTING":z().b[7][6]++,z().s[62]++,e.globalSubsettings.push(n),z().s[63]++;break;default:z().b[7][7]++,z().s[64]++,e.processWidget(t,n,i,s),z().s[65]++;break}else z().b[6][1]++})),z().s[66]++,"undefined"===typeof this.layoutStack[0]){z().b[9][0]++;var t=(z().s[67]++,[]),n=(z().s[68]++,[]);z().s[69]++;var i,s=(0,c.Z)(this.dynamicWidgets);try{for(s.s();!(i=s.n()).done;){var l=i.value;z().s[70]++,t.push(l.name),z().s[71]++,n.push(l.lineNumber)}}catch(a){s.e(a)}finally{s.f()}z().s[72]++,this.errors.push({type:"usage",message:"Unknown widget! Are these widgets: ".concat(t.join(","),"?"),lineNumber:n.join(","),time:(new Date).getTime()}),z().s[73]++,this.layoutStack[0]={type:"VerticalWidget",parameters:[],widgets:[]}}else z().b[9][1]++,z().s[74]++,this.applyGlobalSettings(this.layoutStack[0].widgets)},getNamedWidget:function(e){return z().f[15]++,z().s[75]++,this.namedWidgets[e]},get_named_widget:function(e){return z().f[16]++,z().s[76]++,this.namedWidgets[e]},setNamedWidget:function(e,t){z().f[17]++,z().s[77]++,this.namedWidgets[e]=t},update:function(){var e=this;z().f[18]++,z().s[78]++,z().b[11][0]++,0!==this.$store.state.tlmViewerItems.length&&(z().b[11][1]++,0===this.errors.length)?(z().b[10][0]++,z().s[79]++,this.api.get_tlm_values(this.$store.state.tlmViewerItems,this.staleTime).then((function(t){z().f[19]++,z().s[80]++,e.$store.commit("tlmViewerUpdateValues",t)})).catch((function(t){z().f[20]++,z().s[81]++,e.errors.push({type:"usage",message:t.message,time:(new Date).getTime()})}))):z().b[10][1]++},openEdit:function(){z().f[21]++,z().s[82]++,this.backup=this.currentDefinition.repeat(1),z().s[83]++,this.editDialog=!0},cancelEdit:function(){z().f[22]++,z().s[84]++,this.file=null,z().s[85]++,this.editDialog=!1,z().s[86]++,this.currentDefinition=this.backup,z().s[87]++,this.parseDefinition(),z().s[88]++,this.screenKey=Math.floor(1e6*Math.random()),z().s[89]++,this.$nextTick((function(){z().f[23]++,z().s[90]++,this.clearErrors()}))},saveEdit:function(e){z().f[24]++,z().s[91]++,this.currentDefinition=e,z().s[92]++,this.parseDefinition(),z().s[93]++,this.screenKey=Math.floor(1e6*Math.random()),z().s[94]++,this.$nextTick((function(){z().f[25]++,z().s[95]++,u.Z.post("/openc3-api/screen/",{data:{scope:window.openc3Scope,target:this.target,screen:this.screen,text:this.currentDefinition}}),z().s[96]++,this.editDialog=!1}))},deleteScreen:function(){var e=this;z().f[26]++,z().s[97]++,this.editDialog=!1,z().s[98]++,u.Z["delete"]("/openc3-api/screen/".concat(this.target,"/").concat(this.screen)).then((function(t){z().f[27]++,z().s[99]++,e.$emit("delete-screen")}))},minMaxTransition:function(){z().f[28]++,z().s[100]++,this.expand=!this.expand,z().s[101]++,this.$emit("min-max-screen")},processWidget:function(e,t,n,i){z().f[29]++;var s=(z().s[102]++,null);z().s[103]++,"NAMED_WIDGET"===e?(z().b[12][0]++,z().s[104]++,this.configParser.verify_num_parameters(2,null,"".concat(e," <Widget Name> <Widget Type> <Widget Settings... (optional)>")),z().s[105]++,s=t[0].toUpperCase(),z().s[106]++,e=t[1].toUpperCase(),z().s[107]++,t=t.slice(2,t.length)):z().b[12][1]++;var l=(z().s[108]++,e.charAt(0).toUpperCase()+e.slice(1).toLowerCase()+"Widget"),a=(z().s[109]++,[]);if(z().s[110]++,null!==s?(z().b[13][0]++,z().s[111]++,a.push(["NAMED_WIDGET",s,this])):z().b[13][1]++,z().s[112]++,z().b[15][0]++,e.includes("VERTICAL")||(z().b[15][1]++,e.includes("HORIZONTAL"))||(z().b[15][2]++,"MATRIXBYCOLUMNS"===e)||(z().b[15][3]++,"TABBOOK"===e)||(z().b[15][4]++,"TABITEM"===e)||(z().b[15][5]++,"CANVAS"===e)||(z().b[15][6]++,"RADIOGROUP"===e)||(z().b[15][7]++,"SCROLLWINDOW"===e)){z().b[14][0]++;var r=(z().s[113]++,{type:l,parameters:t,settings:a,widgets:[]});z().s[114]++,this.layoutStack.push(r),z().s[115]++,this.currentLayout.widgets.push(r),z().s[116]++,this.currentLayout=r}else if(z().b[14][1]++,z().s[117]++,e.includes("BUTTON")?(z().b[16][0]++,z().s[118]++,a.push(["SCREEN",this])):z().b[16][1]++,z().s[119]++,y["default"].options.components[l])z().b[17][0]++,z().s[120]++,this.currentLayout.widgets.push({type:l,target:this.target,parameters:t,settings:a,line:n,lineNumber:i});else{z().b[17][1]++;var o=(z().s[121]++,{type:"DynamicWidget",target:this.target,parameters:t,settings:a,name:l,line:n,lineNumber:i});z().s[122]++,this.currentLayout.widgets.push(o),z().s[123]++,this.dynamicWidgets.push(o)}},applyGlobalSettings:function(e){var t=this;z().f[30]++,z().s[124]++,this.globalSettings.forEach((function(n){z().f[31]++,z().s[125]++,e.forEach((function(e){z().f[32]++,z().s[126]++,e.type.toLowerCase()===n[0].toLowerCase()+"widget"?(z().b[18][0]++,z().s[127]++,e.settings.push(n.slice(1))):z().b[18][1]++,z().s[128]++,e.widgets?(z().b[19][0]++,z().s[129]++,t.applyGlobalSettings(e.widgets)):z().b[19][1]++}))}))}}},F=B,j=(n(39764),(0,f.Z)(F,w,C,!1,null,"80e18d8a",null)),Y=j.exports;function K(){var e="/openc3/plugins/packages/openc3-cosmos-tool-tlmviewer/src/tools/TlmViewer/NewScreenDialog.vue",t="07c6ef9329974fa51d976a739587801431b91b30",n=new Function("return this")(),i="__coverage__",s={path:"/openc3/plugins/packages/openc3-cosmos-tool-tlmviewer/src/tools/TlmViewer/NewScreenDialog.vue",statementMap:{0:{start:{line:1,column:13},end:{line:2,column:1}},1:{start:{line:1,column:39},end:{line:1,column:43}},2:{start:{line:1,column:47},end:{line:1,column:59}},3:{start:{line:1,column:60},end:{line:1,column:2222}},4:{start:{line:1,column:153},end:{line:1,column:165}},5:{start:{line:1,column:388},end:{line:1,column:585}},6:{start:{line:1,column:532},end:{line:1,column:548}},7:{start:{line:1,column:806},end:{line:1,column:834}},8:{start:{line:1,column:1400},end:{line:1,column:1426}},9:{start:{line:1,column:1679},end:{line:1,column:1712}},10:{start:{line:1,column:1773},end:{line:1,column:1794}},11:{start:{line:1,column:2169},end:{line:1,column:2185}},12:{start:{line:3,column:22},end:{line:3,column:24}}},fnMap:{0:{name:"render",decl:{start:{line:1,column:22},end:{line:1,column:28}},loc:{start:{line:1,column:30},end:{line:2,column:1}},line:1},1:{name:"(anonymous_1)",decl:{start:{line:1,column:137},end:{line:1,column:138}},loc:{start:{line:1,column:152},end:{line:1,column:166}},line:1},2:{name:"(anonymous_2)",decl:{start:{line:1,column:364},end:{line:1,column:365}},loc:{start:{line:1,column:387},end:{line:1,column:586}},line:1},3:{name:"(anonymous_3)",decl:{start:{line:1,column:515},end:{line:1,column:516}},loc:{start:{line:1,column:531},end:{line:1,column:549}},line:1},4:{name:"(anonymous_4)",decl:{start:{line:1,column:790},end:{line:1,column:791}},loc:{start:{line:1,column:805},end:{line:1,column:835}},line:1},5:{name:"(anonymous_5)",decl:{start:{line:1,column:1384},end:{line:1,column:1385}},loc:{start:{line:1,column:1399},end:{line:1,column:1427}},line:1},6:{name:"(anonymous_6)",decl:{start:{line:1,column:1662},end:{line:1,column:1663}},loc:{start:{line:1,column:1678},end:{line:1,column:1713}},line:1},7:{name:"(anonymous_7)",decl:{start:{line:1,column:1757},end:{line:1,column:1758}},loc:{start:{line:1,column:1772},end:{line:1,column:1795}},line:1},8:{name:"(anonymous_8)",decl:{start:{line:1,column:2152},end:{line:1,column:2153}},loc:{start:{line:1,column:2168},end:{line:1,column:2186}},line:1}},branchMap:{0:{loc:{start:{line:1,column:1826},end:{line:1,column:1964}},type:"cond-expr",locations:[{start:{line:1,column:1848},end:{line:1,column:1955}},{start:{line:1,column:1956},end:{line:1,column:1964}}],line:1}},s:{0:0,1:0,2:0,3:0,4:0,5:0,6:0,7:0,8:0,9:0,10:0,11:0,12:0},f:{0:0,1:0,2:0,3:0,4:0,5:0,6:0,7:0,8:0},b:{0:[0,0]},_coverageSchema:"1a1c01bbd47fc00a2c39e90264f33305004495a9",hash:"07c6ef9329974fa51d976a739587801431b91b30"},l=n[i]||(n[i]={});l[e]&&l[e].hash===t||(l[e]=s);var a=l[e];return K=function(){return a},a}K(),K().s[0]++;var q=function(){K().f[0]++;var e=(K().s[1]++,this),t=(K().s[2]++,e._self._c);return K().s[3]++,t("v-dialog",{attrs:{width:"600"},model:{value:e.show,callback:function(t){K().f[1]++,K().s[4]++,e.show=t},expression:"show"}},[t("v-card",[t("v-system-bar",[t("v-spacer"),t("span",[e._v("Create New Screen")]),t("v-spacer"),t("v-tooltip",{attrs:{top:""},scopedSlots:e._u([{key:"activator",fn:function(n){var i=n.on,s=n.attrs;return K().f[2]++,K().s[5]++,[t("div",e._g(e._b({},"div",s,!1),i),[t("v-icon",{attrs:{"data-test":"new-screen-close-icon"},on:{click:function(t){K().f[3]++,K().s[6]++,e.show=!1}}},[e._v(" mdi-close-box ")])],1)]}}])},[t("span",[e._v("Close")])])],1),t("v-card-text",[t("div",{staticClass:"pa-3"},[t("v-alert",{attrs:{type:"error",dismissible:"",dense:""},model:{value:e.duplicateScreenAlert,callback:function(t){K().f[4]++,K().s[7]++,e.duplicateScreenAlert=t},expression:"duplicateScreenAlert"}},[e._v(" Screen "+e._s(e.newScreenName.toUpperCase())+" already exists! ")]),t("v-row",{staticClass:"pb-2"},[t("span",[e._v("Existing Screens: "+e._s(e.screens.join(", ")))])]),t("v-row",{staticClass:"pt-2 pb-2"},[t("v-autocomplete",{attrs:{label:"Select to base new screen on Packet","hide-details":"",dense:"",items:e.packetNames,"item-text":"label","item-value":"value","data-test":"new-screen-packet"},on:{change:e.packetNameChanged},model:{value:e.selectedPacketName,callback:function(t){K().f[5]++,K().s[8]++,e.selectedPacketName=t},expression:"selectedPacketName"}})],1),t("v-row",[t("v-text-field",{attrs:{flat:"",autofocus:"","solo-inverted":"","hide-details":"",clearable:"",label:"Screen Name (without .txt)","data-test":"new-screen-name"},on:{keyup:function(t){return K().f[6]++,K().s[9]++,e.newScreenKeyup(t)}},model:{value:e.newScreenName,callback:function(t){K().f[7]++,K().s[10]++,e.newScreenName=t},expression:"newScreenName"}}),e.newScreenSaving?(K().b[0][0]++,t("div",{staticClass:"pl-2"},[t("v-progress-circular",{attrs:{indeterminate:"",color:"primary"}})],1)):(K().b[0][1]++,e._e())],1)],1)]),t("v-divider"),t("v-card-actions",[t("v-btn",{attrs:{color:"primary",text:""},on:{click:e.saveNewScreen}},[e._v(" Ok ")]),t("v-btn",{attrs:{text:""},on:{click:function(t){K().f[8]++,K().s[11]++,e.show=!1}}},[e._v(" Cancel ")])],1)],1)],1)},X=(K().s[12]++,[]);n(1951);function J(){var e="/openc3/plugins/packages/openc3-cosmos-tool-tlmviewer/src/tools/TlmViewer/NewScreenDialog.vue",t="91b3599b61df6c2241d360bebaa63b3109ecdc3f",n=new Function("return this")(),i="__coverage__",s={path:"/openc3/plugins/packages/openc3-cosmos-tool-tlmviewer/src/tools/TlmViewer/NewScreenDialog.vue",statementMap:{0:{start:{line:12,column:21},end:{line:12,column:23}},1:{start:{line:16,column:4},end:{line:23,column:5}},2:{start:{line:26,column:4},end:{line:26,column:30}},3:{start:{line:27,column:4},end:{line:27,column:37}},4:{start:{line:28,column:4},end:{line:28,column:32}},5:{start:{line:29,column:4},end:{line:40,column:6}},6:{start:{line:30,column:6},end:{line:35,column:8}},7:{start:{line:31,column:8},end:{line:34,column:9}},8:{start:{line:36,column:6},end:{line:39,column:8}},9:{start:{line:45,column:8},end:{line:45,column:25}},10:{start:{line:48,column:8},end:{line:48,column:34}},11:{start:{line:54,column:6},end:{line:64,column:7}},12:{start:{line:55,column:8},end:{line:55,column:31}},13:{start:{line:56,column:8},end:{line:56,column:41}},14:{start:{line:58,column:8},end:{line:58,column:48}},15:{start:{line:59,column:8},end:{line:63,column:9}},16:{start:{line:60,column:10},end:{line:60,column:42}},17:{start:{line:62,column:10},end:{line:62,column:43}},18:{start:{line:67,column:6},end:{line:74,column:7}},19:{start:{line:68,column:8},end:{line:68,column:40}},20:{start:{line:70,column:8},end:{line:70,column:41}},21:{start:{line:71,column:8},end:{line:73,column:9}},22:{start:{line:72,column:10},end:{line:72,column:30}},23:{start:{line:77,column:6},end:{line:77,column:33}},24:{start:{line:78,column:6},end:{line:82,column:7}}},fnMap:{0:{name:"(anonymous_0)",decl:{start:{line:12,column:15},end:{line:12,column:16}},loc:{start:{line:12,column:21},end:{line:12,column:23}},line:12},1:{name:"(anonymous_1)",decl:{start:{line:15,column:2},end:{line:15,column:3}},loc:{start:{line:15,column:9},end:{line:24,column:3}},line:15},2:{name:"(anonymous_2)",decl:{start:{line:25,column:2},end:{line:25,column:3}},loc:{start:{line:25,column:12},end:{line:41,column:3}},line:25},3:{name:"(anonymous_3)",decl:{start:{line:29,column:55},end:{line:29,column:56}},loc:{start:{line:29,column:66},end:{line:40,column:5}},line:29},4:{name:"(anonymous_4)",decl:{start:{line:30,column:35},end:{line:30,column:36}},loc:{start:{line:30,column:45},end:{line:35,column:7}},line:30},5:{name:"(anonymous_5)",decl:{start:{line:44,column:6},end:{line:44,column:7}},loc:{start:{line:44,column:12},end:{line:46,column:7}},line:44},6:{name:"(anonymous_6)",decl:{start:{line:47,column:6},end:{line:47,column:7}},loc:{start:{line:47,column:17},end:{line:49,column:7}},line:47},7:{name:"(anonymous_7)",decl:{start:{line:53,column:4},end:{line:53,column:5}},loc:{start:{line:53,column:29},end:{line:65,column:5}},line:53},8:{name:"(anonymous_8)",decl:{start:{line:66,column:4},end:{line:66,column:5}},loc:{start:{line:66,column:26},end:{line:75,column:5}},line:66},9:{name:"(anonymous_9)",decl:{start:{line:76,column:4},end:{line:76,column:5}},loc:{start:{line:76,column:20},end:{line:83,column:5}},line:76}},branchMap:{0:{loc:{start:{line:54,column:6},end:{line:64,column:7}},type:"if",locations:[{start:{line:54,column:6},end:{line:64,column:7}},{start:{line:57,column:13},end:{line:64,column:7}}],line:54},1:{loc:{start:{line:59,column:8},end:{line:63,column:9}},type:"if",locations:[{start:{line:59,column:8},end:{line:63,column:9}},{start:{line:61,column:15},end:{line:63,column:9}}],line:59},2:{loc:{start:{line:67,column:6},end:{line:74,column:7}},type:"if",locations:[{start:{line:67,column:6},end:{line:74,column:7}},{start:{line:69,column:13},end:{line:74,column:7}}],line:67},3:{loc:{start:{line:71,column:8},end:{line:73,column:9}},type:"if",locations:[{start:{line:71,column:8},end:{line:73,column:9}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:71}},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},f:{0:0,1:0,2:0,3:0,4:0,5:0,6:0,7:0,8:0,9:0},b:{0:[0,0],1:[0,0],2:[0,0],3:[0,0]},inputSourceMap:{version:3,sources:["NewScreenDialog.vue"],names:[],mappings:";AA6FA;;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",file:"NewScreenDialog.vue",sourceRoot:"src/tools/TlmViewer",sourcesContent:['\x3c!--\n# Copyright 2022 OpenC3, Inc.\n# All Rights Reserved.\n#\n# This program is free software; you can modify and/or redistribute it\n# under the terms of the GNU Affero General Public License\n# as published by the Free Software Foundation; version 3 with\n# attribution addendums as found in the LICENSE.txt\n#\n# This program is distributed in the hope that it will be useful,\n# but WITHOUT ANY WARRANTY; without even the implied warranty of\n# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n# GNU Affero General Public License for more details.\n#\n# This file may also be used under the terms of a commercial license \n# if purchased from OpenC3, Inc.\n--\x3e\n\n<template>\n \x3c!-- Dialog for creating new screen --\x3e\n <v-dialog v-model="show" width="600">\n <v-card>\n <v-system-bar>\n <v-spacer />\n <span>Create New Screen</span>\n <v-spacer />\n <v-tooltip top>\n <template v-slot:activator="{ on, attrs }">\n <div v-on="on" v-bind="attrs">\n <v-icon data-test="new-screen-close-icon" @click="show = false">\n mdi-close-box\n </v-icon>\n </div>\n </template>\n <span>Close</span>\n </v-tooltip>\n </v-system-bar>\n \x3c!-- <v-card-title> Create New Screen </v-card-title> --\x3e\n <v-card-text>\n <div class="pa-3">\n <v-alert\n v-model="duplicateScreenAlert"\n type="error"\n dismissible\n dense\n >\n Screen {{ newScreenName.toUpperCase() }} already exists!\n </v-alert>\n\n <v-row class="pb-2">\n <span>Existing Screens: {{ screens.join(\', \') }}</span>\n </v-row>\n <v-row class="pt-2 pb-2">\n <v-autocomplete\n label="Select to base new screen on Packet"\n hide-details\n dense\n @change="packetNameChanged"\n :items="packetNames"\n item-text="label"\n item-value="value"\n v-model="selectedPacketName"\n data-test="new-screen-packet"\n />\n </v-row>\n <v-row>\n <v-text-field\n v-model="newScreenName"\n flat\n autofocus\n solo-inverted\n hide-details\n clearable\n label="Screen Name (without .txt)"\n data-test="new-screen-name"\n @keyup="newScreenKeyup($event)"\n />\n <div class="pl-2" v-if="newScreenSaving">\n <v-progress-circular indeterminate color="primary" />\n </div>\n </v-row>\n </div>\n </v-card-text>\n <v-divider />\n <v-card-actions>\n <v-btn color="primary" text @click="saveNewScreen"> Ok </v-btn>\n <v-btn text @click="show = false"> Cancel </v-btn>\n </v-card-actions>\n </v-card>\n </v-dialog>\n</template>\n\n<script>\nimport { OpenC3Api } from \'@openc3/tool-common/src/services/openc3-api\'\n\nexport default {\n props: {\n value: Boolean, // value is the default prop when using v-model\n target: {\n type: String,\n },\n screens: {\n type: Array,\n default: () => [],\n },\n },\n data() {\n return {\n api: null,\n newScreenSaving: false,\n newScreenName: \'\',\n duplicateScreenAlert: false,\n packetNames: [],\n selectedPacketName: \'\',\n }\n },\n created() {\n this.api = new OpenC3Api()\n this.duplicateScreenAlert = false\n this.newScreenSaving = false\n this.api.get_all_telemetry_names(this.target).then((names) => {\n this.packetNames = names.map((name) => {\n return {\n label: name,\n value: name,\n }\n })\n this.packetNames.unshift({\n label: \'[ BLANK ]\',\n value: \'BLANK\',\n })\n })\n },\n 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 packetNameChanged(value) {\n if (value === \'BLANK\') {\n this.newScreenName = \'\'\n this.duplicateScreenAlert = false\n } else {\n this.newScreenName = value.toLowerCase()\n if (this.screens.indexOf(this.newScreenName.toUpperCase()) !== -1) {\n this.duplicateScreenAlert = true\n } else {\n this.duplicateScreenAlert = false\n }\n }\n },\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(\n \'success\',\n this.newScreenName.toUpperCase(),\n this.selectedPacketName\n )\n },\n },\n}\n<\/script>\n']},_coverageSchema:"1a1c01bbd47fc00a2c39e90264f33305004495a9",hash:"91b3599b61df6c2241d360bebaa63b3109ecdc3f"},l=n[i]||(n[i]={});l[e]&&l[e].hash===t||(l[e]=s);var a=l[e];return J=function(){return a},a}J();var Q={props:{value:Boolean,target:{type:String},screens:{type:Array,default:function(){return J().f[0]++,J().s[0]++,[]}}},data:function(){return J().f[1]++,J().s[1]++,{api:null,newScreenSaving:!1,newScreenName:"",duplicateScreenAlert:!1,packetNames:[],selectedPacketName:""}},created:function(){var e=this;J().f[2]++,J().s[2]++,this.api=new d.k,J().s[3]++,this.duplicateScreenAlert=!1,J().s[4]++,this.newScreenSaving=!1,J().s[5]++,this.api.get_all_telemetry_names(this.target).then((function(t){J().f[3]++,J().s[6]++,e.packetNames=t.map((function(e){return J().f[4]++,J().s[7]++,{label:e,value:e}})),J().s[8]++,e.packetNames.unshift({label:"[ BLANK ]",value:"BLANK"})}))},computed:{show:{get:function(){return J().f[5]++,J().s[9]++,this.value},set:function(e){J().f[6]++,J().s[10]++,this.$emit("input",e)}}},methods:{packetNameChanged:function(e){J().f[7]++,J().s[11]++,"BLANK"===e?(J().b[0][0]++,J().s[12]++,this.newScreenName="",J().s[13]++,this.duplicateScreenAlert=!1):(J().b[0][1]++,J().s[14]++,this.newScreenName=e.toLowerCase(),J().s[15]++,-1!==this.screens.indexOf(this.newScreenName.toUpperCase())?(J().b[1][0]++,J().s[16]++,this.duplicateScreenAlert=!0):(J().b[1][1]++,J().s[17]++,this.duplicateScreenAlert=!1))},newScreenKeyup:function(e){J().f[8]++,J().s[18]++,-1!==this.screens.indexOf(this.newScreenName.toUpperCase())?(J().b[2][0]++,J().s[19]++,this.duplicateScreenAlert=!0):(J().b[2][1]++,J().s[20]++,this.duplicateScreenAlert=!1,J().s[21]++,"Enter"===e.key?(J().b[3][0]++,J().s[22]++,this.saveNewScreen()):J().b[3][1]++)},saveNewScreen:function(){J().f[9]++,J().s[23]++,this.newScreenSaving=!0,J().s[24]++,this.$emit("success",this.newScreenName.toUpperCase(),this.selectedPacketName)}}},ee=Q,te=(0,f.Z)(ee,q,X,!1,null,null,null),ne=te.exports,ie=(n(94908),function(){var e=this,t=e._self._c;return t("v-dialog",{attrs:{width:"600"},on:{keydown:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"esc",27,t.key,["Esc","Escape"])?null:e.cancel.apply(null,arguments)}},model:{value:e.show,callback:function(t){e.show=t},expression:"show"}},[t("v-card",[t("form",{on:{submit:function(t){return t.preventDefault(),e.success.apply(null,arguments)}}},[t("v-system-bar",[t("v-spacer"),t("span",[e._v("Open Configuration")]),t("v-spacer")],1),t("v-card-text",[t("div",{staticClass:"pa-3"},[t("v-row",{attrs:{dense:""}},[t("v-text-field",{attrs:{label:"search",type:"text","data-test":"search","prepend-icon":"mdi-magnify","clear-icon":"mdi-close-circle-outline",clearable:"",autofocus:"","single-line":"","hide-details":""},model:{value:e.search,callback:function(t){e.search=t},expression:"search"}})],1),t("v-data-table",{attrs:{"show-select":"","single-select":"","item-key":"configId",search:e.search,headers:e.headers,items:e.configs,"items-per-page":5,"footer-props":{"items-per-page-options":[5]}},on:{"item-selected":e.itemSelected,"click:row":function(e,t){return t.select(e)}},scopedSlots:e._u([{key:"item.actions",fn:function(n){var i=n.item;return[t("v-btn",{staticClass:"mt-1",attrs:{"data-test":"item-delete",icon:""},on:{click:function(t){return e.deleteConfig(i)}}},[t("v-icon",[e._v("mdi-delete")])],1)]}}])}),t("v-row",{attrs:{dense:""}},[t("span",{directives:[{name:"show",rawName:"v-show",value:e.error,expression:"error"}],staticClass:"ma-2 red--text",domProps:{textContent:e._s(e.error)}})]),t("v-row",[t("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 ")]),t("v-spacer"),t("v-btn",{attrs:{color:"primary","data-test":"open-config-cancel-btn"},on:{click:e.cancel}},[e._v(" Cancel ")])],1)],1)])],1)])],1)}),se=[],le=(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 d.k).list_configs(this.tool).then((function(n){e.configs=n.map((function(e){return t+=1,{configId:t,config:e}}))})).catch((function(t){e.$emit("warning","Failed to connect to OpenC3. ".concat(t))}))},methods:{itemSelected:function(e){e.value?this.selectedItem=e.item:this.selectedItem=null},success:function(){this.$emit("success",this.selectedItem.config),this.show=!1,this.search=null,this.selectedItem=null},cancel:function(){this.show=!1,this.search=null,this.selectedItem=null},deleteConfig:function(e){var t=this;this.$dialog.confirm("Are you sure you want to delete: ".concat(e.config),{okText:"Delete",cancelText:"Cancel"}).then((function(n){t.selectedItem.config===e.config&&(t.selectedItem=null),t.configs.splice(t.configs.indexOf(e),1),(new d.k).delete_config(t.tool,e.config)})).catch((function(n){n&&t.$emit("warning","Failed to delete config ".concat(e.config," Error: ").concat(n))}))}}}),ae=le,re=(0,f.Z)(ae,ie,se,!1,null,"88421d46",null),oe=re.exports,ce=function(){var e=this,t=e._self._c;return t("v-dialog",{attrs:{width:"600"},on:{keydown:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"esc",27,t.key,["Esc","Escape"])?null:e.cancel.apply(null,arguments)}},model:{value:e.show,callback:function(t){e.show=t},expression:"show"}},[t("v-card",[t("form",{on:{submit:function(t){return t.preventDefault(),e.success.apply(null,arguments)}}},[t("v-system-bar",[t("v-spacer"),t("span",[e._v("Save Configuration")]),t("v-spacer")],1),t("v-card-text",[t("div",{staticClass:"pa-3"},[t("v-row",{attrs:{dense:""}},[t("v-text-field",{attrs:{label:"search",type:"text","data-test":"search","prepend-icon":"mdi-magnify","clear-icon":"mdi-close-circle-outline",clearable:"","single-line":"","hide-details":""},model:{value:e.search,callback:function(t){e.search=t},expression:"search"}})],1),t("v-data-table",{attrs:{"show-select":"","single-select":"","item-key":"configId",search:e.search,headers:e.headers,items:e.configs,"items-per-page":5,"footer-props":{"items-per-page-options":[5]}},on:{"item-selected":e.itemSelected,"click:row":function(e,t){return t.select(e)}},scopedSlots:e._u([{key:"item.actions",fn:function(n){var i=n.item;return[t("v-btn",{staticClass:"mt-1",attrs:{icon:"","data-test":"item-delete"},on:{click:function(t){return e.deleteConfig(i)}}},[t("v-icon",[e._v("mdi-delete")])],1)]}}])}),t("v-row",{attrs:{dense:""}},[t("v-text-field",{attrs:{"hide-details":"",autofocus:"",disabled:!!e.selectedItem,label:"Configuration Name","data-test":"name-input-save-config-dialog"},model:{value:e.configName,callback:function(t){e.configName=t},expression:"configName"}})],1),t("v-row",{attrs:{dense:""}},[t("span",{directives:[{name:"show",rawName:"v-show",value:e.error,expression:"error"}],staticClass:"ma-2 red--text",domProps:{textContent:e._s(e.error)}})]),t("v-row",[t("v-spacer"),t("v-btn",{staticClass:"mx-2",attrs:{outlined:""},on:{click:e.cancel}},[e._v(" Cancel ")]),t("v-btn",{staticClass:"mx-2",attrs:{type:"submit",color:"primary","data-test":"save-config-submit-btn",disabled:!!e.error},on:{click:function(t){return t.preventDefault(),e.success.apply(null,arguments)}}},[e._v(" Ok ")])],1)],1)])],1)])],1)},ue=[],de={props:{tool:String,value:Boolean},data:function(){return{configName:"",configs:[],headers:[{text:"Configuration",value:"config"},{text:"Actions",value:"actions",align:"end",sortable:!1}],search:null,selectedItem:null}},computed:{error:function(){return""===this.configName?"Config must have a name":null},show:{get:function(){return this.value},set:function(e){this.$emit("input",e)}}},mounted:function(){var e=this,t=-1;(new d.k).list_configs(this.tool).then((function(n){e.configs=n.map((function(e){return t+=1,{configId:t,config:e}}))})).catch((function(t){e.$emit("warning","Failed to connect to OpenC3. ".concat(t))}))},methods:{itemSelected:function(e){e.value?(this.selectedItem=e.item,this.configName=e.item.config):(this.selectedItem=null,this.configName="")},success:function(){this.$emit("success",this.configName),this.show=!1,this.search=null,this.selectedItem=null,this.configName=""},cancel:function(){this.show=!1,this.search=null,this.selectedItem=null,this.configName=""},deleteConfig:function(e){var t=this;this.$dialog.confirm("Are you sure you want to delete: ".concat(e.config),{okText:"Delete",cancelText:"Cancel"}).then((function(n){t.configName===e.config&&(t.selectedItem=null,t.configName=""),t.configs.splice(t.configs.indexOf(e.config),1),(new d.k).delete_config(t.tool,e.config)})).catch((function(n){n&&t.$emit("warning","Failed to delete config ".concat(e.config," Error: ").concat(n))}))}}},me=de,he=(0,f.Z)(me,ce,ue,!1,null,null,null),pe=he.exports,Ae=n(87955);function fe(){var e="/openc3/plugins/packages/openc3-cosmos-tool-tlmviewer/src/tools/TlmViewer/TlmViewer.vue",t="73efd412b44e578e432126aeecbf971065b68cda",n=new Function("return this")(),i="__coverage__",s={path:"/openc3/plugins/packages/openc3-cosmos-tool-tlmviewer/src/tools/TlmViewer/TlmViewer.vue",statementMap:{0:{start:{line:20,column:4},end:{line:56,column:5}},1:{start:{line:40,column:16},end:{line:40,column:38}},2:{start:{line:47,column:16},end:{line:47,column:38}},3:{start:{line:59,column:4},end:{line:59,column:30}},4:{start:{line:60,column:4},end:{line:71,column:8}},5:{start:{line:63,column:26},end:{line:63,column:37}},6:{start:{line:64,column:8},end:{line:66,column:9}},7:{start:{line:64,column:21},end:{line:64,column:22}},8:{start:{line:65,column:10},end:{line:65,column:63}},9:{start:{line:67,column:8},end:{line:69,column:9}},10:{start:{line:68,column:10},end:{line:68,column:53}},11:{start:{line:70,column:8},end:{line:70,column:28}},12:{start:{line:72,column:4},end:{line:74,column:6}},13:{start:{line:73,column:6},end:{line:73,column:35}},14:{start:{line:77,column:4},end:{line:81,column:6}},15:{start:{line:82,column:4},end:{line:82,column:47}},16:{start:{line:83,column:27},end:{line:83,column:71}},17:{start:{line:84,column:4},end:{line:86,column:5}},18:{start:{line:85,column:6},end:{line:85,column:44}},19:{start:{line:90,column:6},end:{line:90,column:23}},20:{start:{line:91,column:6},end:{line:95,column:8}},21:{start:{line:92,column:8},end:{line:94,column:9}},22:{start:{line:93,column:10},end:{line:93,column:35}},23:{start:{line:98,column:6},end:{line:98,column:34}},24:{start:{line:99,column:6},end:{line:99,column:30}},25:{start:{line:100,column:6},end:{line:100,column:26}},26:{start:{line:103,column:6},end:{line:103,column:34}},27:{start:{line:104,column:6},end:{line:104,column:63}},28:{start:{line:107,column:6},end:{line:107,column:33}},29:{start:{line:110,column:17},end:{line:110,column:50}},30:{start:{line:111,column:6},end:{line:120,column:7}},31:{start:{line:112,column:8},end:{line:112,column:51}},32:{start:{line:113,column:8},end:{line:119,column:12}},33:{start:{line:116,column:12},end:{line:118,column:14}},34:{start:{line:117,column:14},end:{line:117,column:92}},35:{start:{line:121,column:6},end:{line:132,column:8}},36:{start:{line:129,column:8},end:{line:129,column:36}},37:{start:{line:130,column:8},end:{line:130,column:28}},38:{start:{line:131,column:8},end:{line:131,column:56}},39:{start:{line:135,column:18},end:{line:137,column:7}},40:{start:{line:136,column:17},end:{line:136,column:61}},41:{start:{line:138,column:6},end:{line:147,column:7}},42:{start:{line:139,column:8},end:{line:146,column:10}},43:{start:{line:140,column:10},end:{line:145,column:12}},44:{start:{line:150,column:6},end:{line:154,column:8}},45:{start:{line:157,column:6},end:{line:157,column:39}},46:{start:{line:158,column:6},end:{line:167,column:8}},47:{start:{line:159,column:20},end:{line:164,column:9}},48:{start:{line:165,column:8},end:{line:165,column:29}},49:{start:{line:166,column:8},end:{line:166,column:41}},50:{start:{line:170,column:18},end:{line:172,column:7}},51:{start:{line:171,column:17},end:{line:171,column:61}},52:{start:{line:173,column:6},end:{line:175,column:7}},53:{start:{line:174,column:8},end:{line:174,column:32}},54:{start:{line:178,column:6},end:{line:180,column:7}},55:{start:{line:179,column:8},end:{line:179,column:32}},56:{start:{line:183,column:18},end:{line:185,column:8}},57:{start:{line:186,column:6},end:{line:186,column:29}},58:{start:{line:187,column:6},end:{line:187,column:39}},59:{start:{line:188,column:6},end:{line:190,column:8}},60:{start:{line:189,column:8},end:{line:189,column:29}},61:{start:{line:193,column:6},end:{line:193,column:26}},62:{start:{line:194,column:6},end:{line:194,column:26}},63:{start:{line:197,column:6},end:{line:199,column:13}},64:{start:{line:198,column:8},end:{line:198,column:41}},65:{start:{line:202,column:6},end:{line:202,column:35}},66:{start:{line:205,column:6},end:{line:205,column:57}},67:{start:{line:206,column:6},end:{line:206,column:22}},68:{start:{line:207,column:6},end:{line:207,column:27}},69:{start:{line:208,column:27},end:{line:208,column:74}},70:{start:{line:209,column:6},end:{line:234,column:7}},71:{start:{line:210,column:23},end:{line:210,column:49}},72:{start:{line:212,column:35},end:{line:214,column:10}},73:{start:{line:213,column:10},end:{line:213,column:70}},74:{start:{line:216,column:8},end:{line:233,column:12}},75:{start:{line:219,column:12},end:{line:229,column:14}},76:{start:{line:220,column:31},end:{line:220,column:47}},77:{start:{line:221,column:14},end:{line:228,column:19}},78:{start:{line:222,column:16},end:{line:227,column:18}},79:{start:{line:232,column:12},end:{line:232,column:45}},80:{start:{line:237,column:6},end:{line:237,column:57}},81:{start:{line:238,column:24},end:{line:238,column:80}},82:{start:{line:238,column:59},end:{line:238,column:79}},83:{start:{line:239,column:21},end:{line:252,column:10}},84:{start:{line:242,column:10},end:{line:245,column:15}},85:{start:{line:248,column:10},end:{line:251,column:11}},86:{start:{line:253,column:6},end:{line:253,column:71}}},fnMap:{0:{name:"(anonymous_0)",decl:{start:{line:19,column:2},end:{line:19,column:3}},loc:{start:{line:19,column:9},end:{line:57,column:3}},line:19},1:{name:"(anonymous_1)",decl:{start:{line:39,column:23},end:{line:39,column:24}},loc:{start:{line:39,column:29},end:{line:41,column:15}},line:39},2:{name:"(anonymous_2)",decl:{start:{line:46,column:23},end:{line:46,column:24}},loc:{start:{line:46,column:29},end:{line:48,column:15}},line:46},3:{name:"(anonymous_3)",decl:{start:{line:58,column:2},end:{line:58,column:3}},loc:{start:{line:58,column:12},end:{line:75,column:3}},line:58},4:{name:"(anonymous_4)",decl:{start:{line:62,column:12},end:{line:62,column:13}},loc:{start:{line:62,column:22},end:{line:71,column:7}},line:62},5:{name:"(anonymous_5)",decl:{start:{line:72,column:61},end:{line:72,column:62}},loc:{start:{line:72,column:75},end:{line:74,column:5}},line:72},6:{name:"(anonymous_6)",decl:{start:{line:76,column:2},end:{line:76,column:3}},loc:{start:{line:76,column:12},end:{line:87,column:3}},line:76},7:{name:"(anonymous_7)",decl:{start:{line:89,column:4},end:{line:89,column:5}},loc:{start:{line:89,column:20},end:{line:96,column:5}},line:89},8:{name:"(anonymous_8)",decl:{start:{line:91,column:64},end:{line:91,column:65}},loc:{start:{line:91,column:78},end:{line:95,column:7}},line:91},9:{name:"(anonymous_9)",decl:{start:{line:97,column:4},end:{line:97,column:5}},loc:{start:{line:97,column:25},end:{line:101,column:5}},line:97},10:{name:"(anonymous_10)",decl:{start:{line:102,column:4},end:{line:102,column:5}},loc:{start:{line:102,column:25},end:{line:105,column:5}},line:102},11:{name:"(anonymous_11)",decl:{start:{line:106,column:4},end:{line:106,column:5}},loc:{start:{line:106,column:16},end:{line:108,column:5}},line:106},12:{name:"(anonymous_12)",decl:{start:{line:109,column:4},end:{line:109,column:5}},loc:{start:{line:109,column:52},end:{line:133,column:5}},line:109},13:{name:"(anonymous_13)",decl:{start:{line:115,column:16},end:{line:115,column:17}},loc:{start:{line:115,column:28},end:{line:119,column:11}},line:115},14:{name:"(anonymous_14)",decl:{start:{line:116,column:33},end:{line:116,column:34}},loc:{start:{line:116,column:43},end:{line:118,column:13}},line:116},15:{name:"(anonymous_15)",decl:{start:{line:128,column:14},end:{line:128,column:15}},loc:{start:{line:128,column:28},end:{line:132,column:7}},line:128},16:{name:"(anonymous_16)",decl:{start:{line:134,column:4},end:{line:134,column:5}},loc:{start:{line:134,column:31},end:{line:148,column:5}},line:134},17:{name:"(anonymous_17)",decl:{start:{line:136,column:8},end:{line:136,column:9}},loc:{start:{line:136,column:17},end:{line:136,column:61}},line:136},18:{name:"(anonymous_18)",decl:{start:{line:139,column:45},end:{line:139,column:46}},loc:{start:{line:139,column:59},end:{line:146,column:9}},line:139},19:{name:"(anonymous_19)",decl:{start:{line:149,column:4},end:{line:149,column:5}},loc:{start:{line:149,column:31},end:{line:155,column:5}},line:149},20:{name:"(anonymous_20)",decl:{start:{line:156,column:4},end:{line:156,column:5}},loc:{start:{line:156,column:27},end:{line:168,column:5}},line:156},21:{name:"(anonymous_21)",decl:{start:{line:158,column:21},end:{line:158,column:22}},loc:{start:{line:158,column:33},end:{line:167,column:7}},line:158},22:{name:"(anonymous_22)",decl:{start:{line:169,column:4},end:{line:169,column:5}},loc:{start:{line:169,column:38},end:{line:176,column:5}},line:169},23:{name:"(anonymous_23)",decl:{start:{line:171,column:8},end:{line:171,column:9}},loc:{start:{line:171,column:17},end:{line:171,column:61}},line:171},24:{name:"(anonymous_24)",decl:{start:{line:177,column:4},end:{line:177,column:5}},loc:{start:{line:177,column:15},end:{line:181,column:5}},line:177},25:{name:"(anonymous_25)",decl:{start:{line:182,column:4},end:{line:182,column:5}},loc:{start:{line:182,column:20},end:{line:191,column:5}},line:182},26:{name:"(anonymous_26)",decl:{start:{line:188,column:49},end:{line:188,column:50}},loc:{start:{line:188,column:72},end:{line:190,column:7}},line:188},27:{name:"(anonymous_27)",decl:{start:{line:192,column:4},end:{line:192,column:5}},loc:{start:{line:192,column:21},end:{line:195,column:5}},line:192},28:{name:"(anonymous_28)",decl:{start:{line:196,column:4},end:{line:196,column:5}},loc:{start:{line:196,column:20},end:{line:200,column:5}},line:196},29:{name:"(anonymous_29)",decl:{start:{line:197,column:17},end:{line:197,column:18}},loc:{start:{line:197,column:23},end:{line:199,column:7}},line:197},30:{name:"(anonymous_30)",decl:{start:{line:201,column:4},end:{line:201,column:5}},loc:{start:{line:201,column:17},end:{line:203,column:5}},line:201},31:{name:"(anonymous_31)",decl:{start:{line:204,column:23},end:{line:204,column:24}},loc:{start:{line:204,column:45},end:{line:235,column:5}},line:204},32:{name:"(anonymous_32)",decl:{start:{line:212,column:46},end:{line:212,column:47}},loc:{start:{line:212,column:62},end:{line:214,column:9}},line:212},33:{name:"(anonymous_33)",decl:{start:{line:217,column:16},end:{line:217,column:17}},loc:{start:{line:217,column:31},end:{line:230,column:11}},line:217},34:{name:"(anonymous_34)",decl:{start:{line:219,column:27},end:{line:219,column:28}},loc:{start:{line:219,column:50},end:{line:229,column:13}},line:219},35:{name:"(anonymous_35)",decl:{start:{line:221,column:25},end:{line:221,column:26}},loc:{start:{line:221,column:31},end:{line:228,column:15}},line:221},36:{name:"(anonymous_36)",decl:{start:{line:231,column:16},end:{line:231,column:17}},loc:{start:{line:231,column:22},end:{line:233,column:11}},line:231},37:{name:"(anonymous_37)",decl:{start:{line:236,column:23},end:{line:236,column:24}},loc:{start:{line:236,column:39},end:{line:254,column:5}},line:236},38:{name:"(anonymous_38)",decl:{start:{line:238,column:49},end:{line:238,column:50}},loc:{start:{line:238,column:59},end:{line:238,column:79}},line:238},39:{name:"(anonymous_39)",decl:{start:{line:240,column:14},end:{line:240,column:15}},loc:{start:{line:240,column:24},end:{line:246,column:9}},line:240},40:{name:"(anonymous_40)",decl:{start:{line:247,column:13},end:{line:247,column:14}},loc:{start:{line:247,column:22},end:{line:252,column:9}},line:247}},branchMap:{0:{loc:{start:{line:67,column:8},end:{line:69,column:9}},type:"if",locations:[{start:{line:67,column:8},end:{line:69,column:9}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:67},1:{loc:{start:{line:84,column:4},end:{line:86,column:5}},type:"if",locations:[{start:{line:84,column:4},end:{line:86,column:5}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:84},2:{loc:{start:{line:111,column:6},end:{line:120,column:7}},type:"if",locations:[{start:{line:111,column:6},end:{line:120,column:7}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:111},3:{loc:{start:{line:111,column:10},end:{line:111,column:54}},type:"binary-expr",locations:[{start:{line:111,column:10},end:{line:111,column:24}},{start:{line:111,column:28},end:{line:111,column:54}}],line:111},4:{loc:{start:{line:136,column:17},end:{line:136,column:61}},type:"binary-expr",locations:[{start:{line:136,column:17},end:{line:136,column:37}},{start:{line:136,column:41},end:{line:136,column:61}}],line:136},5:{loc:{start:{line:138,column:6},end:{line:147,column:7}},type:"if",locations:[{start:{line:138,column:6},end:{line:147,column:7}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:138},6:{loc:{start:{line:171,column:17},end:{line:171,column:61}},type:"binary-expr",locations:[{start:{line:171,column:17},end:{line:171,column:37}},{start:{line:171,column:41},end:{line:171,column:61}}],line:171},7:{loc:{start:{line:173,column:6},end:{line:175,column:7}},type:"if",locations:[{start:{line:173,column:6},end:{line:175,column:7}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:173},8:{loc:{start:{line:209,column:6},end:{line:234,column:7}},type:"if",locations:[{start:{line:209,column:6},end:{line:234,column:7}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:209},9:{loc:{start:{line:242,column:17},end:{line:245,column:15}},type:"cond-expr",locations:[{start:{line:244,column:14},end:{line:244,column:16}},{start:{line:245,column:14},end:{line:245,column:15}}],line:242}},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},f:{0:0,1:0,2:0,3:0,4:0,5:0,6:0,7:0,8:0,9:0,10:0,11:0,12:0,13:0,14:0,15:0,16:0,17:0,18:0,19:0,20:0,21:0,22:0,23:0,24:0,25:0,26:0,27:0,28:0,29:0,30:0,31:0,32:0,33:0,34:0,35:0,36:0,37:0,38:0,39:0,40:0},b:{0:[0,0],1:[0,0],2:[0,0],3:[0,0],4:[0,0],5:[0,0],6:[0,0],7:[0,0],8:[0,0],9:[0,0]},inputSourceMap:{version:3,sources:["TlmViewer.vue"],names:[],mappings:";AA2GA;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:"TlmViewer.vue",sourceRoot:"src/tools/TlmViewer",sourcesContent:['\x3c!--\n# Copyright 2022 Ball Aerospace & Technologies Corp.\n# All Rights Reserved.\n#\n# This program is free software; you can modify and/or redistribute it\n# under the terms of the GNU Affero General Public License\n# as published by the Free Software Foundation; version 3 with\n# attribution addendums as found in the LICENSE.txt\n#\n# This program is distributed in the hope that it will be useful,\n# but WITHOUT ANY WARRANTY; without even the implied warranty of\n# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n# GNU Affero General Public License for more details.\n\n# Modified by OpenC3, Inc.\n# All changes Copyright 2022, OpenC3, Inc.\n# All Rights Reserved\n#\n# This file may also be used under the terms of a commercial license\n# if purchased from OpenC3, Inc.\n--\x3e\n\n<template>\n <div>\n <top-bar :title="title" :menus="menus" />\n <v-container>\n <v-row class="pt-1">\n <v-select\n class="pa-0 mr-2"\n label="Select Target"\n :items="targets"\n item-text="label"\n item-value="value"\n v-model="selectedTarget"\n @change="targetSelect"\n />\n <v-select\n class="pa-0 mr-3"\n label="Select Screen"\n :items="screens"\n v-model="selectedScreen"\n @change="screenSelect"\n />\n <v-btn\n class="primary mr-2"\n :disabled="!selectedScreen"\n @click="() => showScreen(selectedTarget, selectedScreen)"\n data-test="show-screen"\n >\n Show\n </v-btn>\n <v-btn\n class="primary"\n @click="() => newScreen(selectedTarget)"\n data-test="new-screen"\n >\n New Screen\n <v-icon> mdi-file-plus</v-icon>\n </v-btn>\n </v-row>\n </v-container>\n <div class="grid">\n <div\n class="item"\n v-for="def in definitions"\n :key="def.id"\n :id="screenId(def.id)"\n ref="gridItem"\n >\n <div class="item-content">\n <openc3-screen\n :target="def.target"\n :screen="def.screen"\n :definition="def.definition"\n :keywords="keywords"\n @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 :target="selectedTarget"\n :screens="screens"\n @success="saveNewScreen"\n />\n </div>\n</template>\n\n<script>\nimport Api from \'@openc3/tool-common/src/services/api\'\nimport { OpenC3Api } from \'@openc3/tool-common/src/services/openc3-api\'\nimport TopBar from \'@openc3/tool-common/src/components/TopBar\'\nimport Openc3Screen from \'./Openc3Screen\'\nimport NewScreenDialog from \'./NewScreenDialog\'\nimport OpenConfigDialog from \'@openc3/tool-common/src/components/OpenConfigDialog\'\nimport SaveConfigDialog from \'@openc3/tool-common/src/components/SaveConfigDialog\'\nimport Muuri from \'muuri\'\n\nexport default {\n components: {\n TopBar,\n Openc3Screen,\n NewScreenDialog,\n OpenConfigDialog,\n SaveConfigDialog,\n },\n data() {\n return {\n title: \'COSMOS Telemetry Viewer\',\n counter: 0,\n definitions: [],\n targets: [],\n screens: [],\n selectedTarget: \'\',\n selectedScreen: \'\',\n newScreenDialog: false,\n grid: null,\n api: null,\n keywords: [],\n menus: [\n {\n label: \'File\',\n items: [\n {\n label: \'Open Configuration\',\n icon: \'mdi-folder-open\',\n command: () => {\n this.openConfig = true\n },\n },\n {\n label: \'Save Configuration\',\n icon: \'mdi-content-save\',\n command: () => {\n this.saveConfig = true\n },\n },\n ],\n },\n ],\n toolName: \'tlm-viewer\',\n openConfig: false,\n saveConfig: false,\n }\n },\n created() {\n this.api = new OpenC3Api()\n this.api\n .get_target_list({ params: { scope: window.openc3Scope } })\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 Api.get(\'/openc3-api/autocomplete/keywords/screen\').then((response) => {\n this.keywords = response.data\n })\n },\n mounted() {\n this.grid = new Muuri(\'.grid\', {\n dragEnabled: true,\n // Only allow drags starting from the v-system-bar title\n dragHandle: \'.v-system-bar\',\n })\n this.grid.on(\'dragEnd\', this.refreshLayout)\n 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 this.showScreen(this.selectedTarget, this.selectedScreen)\n },\n newScreen() {\n this.newScreenDialog = true\n },\n async saveNewScreen(screenName, selectedPacket) {\n let text = \'SCREEN AUTO AUTO 1.0\\nLABEL NEW\'\n if (selectedPacket && selectedPacket !== \'BLANK\') {\n text = \'SCREEN AUTO AUTO 1.0\\n\\nVERTICAL\\n\'\n await this.api\n .get_telemetry(this.selectedTarget, selectedPacket)\n .then((packet) => {\n packet.items.forEach((item) => {\n text += ` LABELVALUE ${this.selectedTarget} ${selectedPacket} ${item.name}\\n`\n })\n })\n }\n Api.post(\'/openc3-api/screen/\', {\n data: {\n scope: window.openc3Scope,\n target: this.selectedTarget,\n screen: screenName,\n text: text,\n },\n }).then((response) => {\n this.newScreenDialog = false\n this.updateScreens()\n this.showScreen(this.selectedTarget, screenName)\n })\n },\n showScreen(target, screen) {\n const def = this.definitions.find(\n (def) => def.target == target && def.screen == screen\n )\n if (!def) {\n this.loadScreen(target, screen).then((response) => {\n this.pushScreen({\n id: this.counter++,\n target: target,\n screen: screen,\n definition: response.data,\n })\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 closeScreenByName(target, screen) {\n const def = this.definitions.find(\n (def) => def.target == target && def.screen == screen\n )\n if (def) {\n this.closeScreen(def.id)\n }\n },\n closeAll() {\n for (const def of this.definitions) {\n this.closeScreen(def.id)\n }\n },\n closeScreen(id) {\n var items = this.grid.getItems([\n document.getElementById(this.screenId(id)),\n ])\n this.grid.remove(items)\n this.grid.refreshItems().layout()\n this.definitions = this.definitions.filter((value, index, arr) => {\n return value.id != id\n })\n },\n deleteScreen(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:"73efd412b44e578e432126aeecbf971065b68cda"},l=n[i]||(n[i]={});l[e]&&l[e].hash===t||(l[e]=s);var a=l[e];return fe=function(){return a},a}fe();var ve={components:{TopBar:g,Openc3Screen:Y,NewScreenDialog:ne,OpenConfigDialog:oe,SaveConfigDialog:pe},data:function(){var e=this;return fe().f[0]++,fe().s[0]++,{title:"COSMOS Telemetry Viewer",counter:0,definitions:[],targets:[],screens:[],selectedTarget:"",selectedScreen:"",newScreenDialog:!1,grid:null,api:null,keywords:[],menus:[{label:"File",items:[{label:"Open Configuration",icon:"mdi-folder-open",command:function(){fe().f[1]++,fe().s[1]++,e.openConfig=!0}},{label:"Save Configuration",icon:"mdi-content-save",command:function(){fe().f[2]++,fe().s[2]++,e.saveConfig=!0}}]}],toolName:"tlm-viewer",openConfig:!1,saveConfig:!1}},created:function(){var e=this;fe().f[3]++,fe().s[3]++,this.api=new d.k,fe().s[4]++,this.api.get_target_list({params:{scope:window.openc3Scope}}).then((function(t){fe().f[4]++;var n=(fe().s[5]++,t.length);fe().s[6]++;for(var i=(fe().s[7]++,0);i<n;i++)fe().s[8]++,e.targets.push({label:t[i],value:t[i]});fe().s[9]++,e.selectedTarget?fe().b[0][1]++:(fe().b[0][0]++,fe().s[10]++,e.selectedTarget=e.targets[0].value),fe().s[11]++,e.updateScreens()})),fe().s[12]++,u.Z.get("/openc3-api/autocomplete/keywords/screen").then((function(t){fe().f[5]++,fe().s[13]++,e.keywords=t.data}))},mounted:function(){fe().f[6]++,fe().s[14]++,this.grid=new Ae.Z(".grid",{dragEnabled:!0,dragHandle:".v-system-bar"}),fe().s[15]++,this.grid.on("dragEnd",this.refreshLayout);var e=(fe().s[16]++,localStorage["lastconfig__telemetry_viewer"]);fe().s[17]++,e?(fe().b[1][0]++,fe().s[18]++,this.openConfiguration(e)):fe().b[1][1]++},methods:{updateScreens:function(){var e=this;fe().f[7]++,fe().s[19]++,this.screens=[],fe().s[20]++,u.Z.get("/openc3-api/screen/"+this.selectedTarget).then((function(t){fe().f[8]++,fe().s[21]++;var n,i=(0,c.Z)(t.data);try{for(i.s();!(n=i.n()).done;){var s=n.value;fe().s[22]++,e.screens.push(s)}}catch(l){i.e(l)}finally{i.f()}}))},targetSelect:function(e){fe().f[9]++,fe().s[23]++,this.selectedTarget=e,fe().s[24]++,this.selectedScreen="",fe().s[25]++,this.updateScreens()},screenSelect:function(e){fe().f[10]++,fe().s[26]++,this.selectedScreen=e,fe().s[27]++,this.showScreen(this.selectedTarget,this.selectedScreen)},newScreen:function(){fe().f[11]++,fe().s[28]++,this.newScreenDialog=!0},saveNewScreen:function(e,t){var n=this;return(0,o.Z)((0,r.Z)().mark((function i(){var s;return(0,r.Z)().wrap((function(i){while(1)switch(i.prev=i.next){case 0:if(fe().f[12]++,fe().s[29]++,s="SCREEN AUTO AUTO 1.0\nLABEL NEW",fe().s[30]++,fe().b[3][0]++,!t||(fe().b[3][1]++,"BLANK"===t)){i.next=12;break}return fe().b[2][0]++,fe().s[31]++,s="SCREEN AUTO AUTO 1.0\n\nVERTICAL\n",fe().s[32]++,i.next=10,n.api.get_telemetry(n.selectedTarget,t).then((function(e){fe().f[13]++,fe().s[33]++,e.items.forEach((function(e){fe().f[14]++,fe().s[34]++,s+=" LABELVALUE ".concat(n.selectedTarget," ").concat(t," ").concat(e.name,"\n")}))}));case 10:i.next=13;break;case 12:fe().b[2][1]++;case 13:fe().s[35]++,u.Z.post("/openc3-api/screen/",{data:{scope:window.openc3Scope,target:n.selectedTarget,screen:e,text:s}}).then((function(t){fe().f[15]++,fe().s[36]++,n.newScreenDialog=!1,fe().s[37]++,n.updateScreens(),fe().s[38]++,n.showScreen(n.selectedTarget,e)}));case 15:case"end":return i.stop()}}),i)})))()},showScreen:function(e,t){var n=this;fe().f[16]++;var i=(fe().s[39]++,this.definitions.find((function(n){return fe().f[17]++,fe().s[40]++,fe().b[4][0]++,n.target==e&&(fe().b[4][1]++,n.screen==t)})));fe().s[41]++,i?fe().b[5][1]++:(fe().b[5][0]++,fe().s[42]++,this.loadScreen(e,t).then((function(i){fe().f[18]++,fe().s[43]++,n.pushScreen({id:n.counter++,target:e,screen:t,definition:i.data})})))},loadScreen:function(e,t){return fe().f[19]++,fe().s[44]++,u.Z.get("/openc3-api/screen/"+e+"/"+t,{headers:{Accept:"text/plain"}})},pushScreen:function(e){fe().f[20]++,fe().s[45]++,this.definitions.push(e),fe().s[46]++,this.$nextTick((function(){fe().f[21]++;var e=(fe().s[47]++,this.grid.add(this.$refs.gridItem[this.$refs.gridItem.length-1],{active:!1}));fe().s[48]++,this.grid.show(e),fe().s[49]++,this.grid.refreshItems().layout()}))},closeScreenByName:function(e,t){fe().f[22]++;var n=(fe().s[50]++,this.definitions.find((function(n){return fe().f[23]++,fe().s[51]++,fe().b[6][0]++,n.target==e&&(fe().b[6][1]++,n.screen==t)})));fe().s[52]++,n?(fe().b[7][0]++,fe().s[53]++,this.closeScreen(n.id)):fe().b[7][1]++},closeAll:function(){fe().f[24]++,fe().s[54]++;var e,t=(0,c.Z)(this.definitions);try{for(t.s();!(e=t.n()).done;){var n=e.value;fe().s[55]++,this.closeScreen(n.id)}}catch(i){t.e(i)}finally{t.f()}},closeScreen:function(e){fe().f[25]++;var t=(fe().s[56]++,this.grid.getItems([document.getElementById(this.screenId(e))]));fe().s[57]++,this.grid.remove(t),fe().s[58]++,this.grid.refreshItems().layout(),fe().s[59]++,this.definitions=this.definitions.filter((function(t,n,i){return fe().f[26]++,fe().s[60]++,t.id!=e}))},deleteScreen:function(e){fe().f[27]++,fe().s[61]++,this.closeScreen(e),fe().s[62]++,this.updateScreens()},refreshLayout:function(){var e=this;fe().f[28]++,fe().s[63]++,setTimeout((function(){fe().f[29]++,fe().s[64]++,e.grid.refreshItems().layout()}),600)},screenId:function(e){return fe().f[30]++,fe().s[65]++,"tlmViewerScreen"+e},openConfiguration:function(){var e=(0,o.Z)((0,r.Z)().mark((function e(t){var n,i,s,l=this;return(0,r.Z)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return fe().f[31]++,fe().s[66]++,localStorage["lastconfig__telemetry_viewer"]=t,fe().s[67]++,this.counter=0,fe().s[68]++,this.definitions=[],fe().s[69]++,e.next=10,this.api.load_config(this.toolName,t);case 10:n=e.sent,fe().s[70]++,n?(fe().b[8][0]++,fe().s[71]++,i=JSON.parse(n),fe().s[72]++,s=i.map((function(e){return fe().f[32]++,fe().s[73]++,l.loadScreen(e.target,e.screen)})),fe().s[74]++,Promise.all(s).then((function(e){fe().f[33]++,fe().s[75]++,i.forEach((function(t,n){fe().f[34]++;var i=(fe().s[76]++,e[n]);fe().s[77]++,setTimeout((function(){fe().f[35]++,fe().s[78]++,l.pushScreen({id:l.counter++,target:t.target,screen:t.screen,definition:i.data})}),0)}))})).then((function(){fe().f[36]++,fe().s[79]++,setTimeout(l.refreshLayout,0)}))):fe().b[8][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;fe().f[37]++,fe().s[80]++,localStorage["lastconfig__telemetry_viewer"]=e;var n=(fe().s[81]++,this.grid.getItems().map((function(e){return fe().f[38]++,fe().s[82]++,e.getElement().id}))),i=(fe().s[83]++,this.definitions.sort((function(e,i){return fe().f[39]++,fe().s[84]++,n.indexOf(t.screenId(e))>n.indexOf(t.screenId(i))?(fe().b[9][0]++,-1):(fe().b[9][1]++,1)})).map((function(e){return fe().f[40]++,fe().s[85]++,{screen:e.screen,target:e.target}})));fe().s[86]++,this.api.save_config(this.toolName,e,JSON.stringify(i))}}},ge=ve,_e=(n(17067),(0,f.Z)(ge,l,a,!1,null,"91e89306",null)),we=_e.exports},98977:function(e,t,n){"use strict";n.d(t,{Z:function(){return u}});n(34115),n(634);var i=function(){var e=this,t=e._self._c;return t("v-dialog",{attrs:{width:"600"},model:{value:e.show,callback:function(t){e.show=t},expression:"show"}},[t("v-card",[t("v-system-bar",[t("v-spacer"),t("span",[e._v(" Details ")]),t("v-spacer")],1),t("v-card-title",[e._v(" "+e._s(e.targetName)+" "+e._s(e.packetName)+" "+e._s(e.itemName)+" ")]),t("v-card-subtitle",[e._v(e._s(e.details.description))]),t("v-card-text",[t("v-container",{attrs:{fluid:""}},["tlm"===e.type?t("v-row",{attrs:{"no-gutters":""}},[t("v-col",{staticClass:"label",attrs:{cols:"3"}},[e._v("Item Values")]),t("v-col"),t("v-container",{staticClass:"ml-5 pa-0",attrs:{fluid:""}},[t("v-row",{attrs:{"no-gutters":""}},[t("v-col",{staticClass:"label",attrs:{cols:"4"}},[e._v("Raw Value")]),t("v-col",[e._v(e._s(e.rawValue))])],1),t("v-row",{attrs:{"no-gutters":""}},[t("v-col",{staticClass:"label",attrs:{cols:"4"}},[e._v("Converted Value")]),t("v-col",[e._v(e._s(e.convertedValue))])],1),t("v-row",{attrs:{"no-gutters":""}},[t("v-col",{staticClass:"label",attrs:{cols:"4"}},[e._v("Formatted Value")]),t("v-col",[e._v(e._s(e.formattedValue))])],1),t("v-row",{attrs:{"no-gutters":""}},[t("v-col",{staticClass:"label",attrs:{cols:"4"}},[e._v("With Units Value")]),t("v-col",[e._v(e._s(e.unitsValue))])],1)],1)],1):e._e(),t("v-row",{attrs:{"no-gutters":""}},[t("v-col",{staticClass:"label",attrs:{cols:"3"}},[e._v("Bit Offset")]),t("v-col",[e._v(e._s(e.details.bit_offset))])],1),t("v-row",{attrs:{"no-gutters":""}},[t("v-col",{staticClass:"label",attrs:{cols:"3"}},[e._v("Bit Size")]),t("v-col",[e._v(e._s(e.details.bit_size))])],1),e.details.array_size?t("v-row",{attrs:{"no-gutters":""}},[t("v-col",{staticClass:"label",attrs:{cols:"3"}},[e._v("Array Size")]),t("v-col",[e._v(e._s(e.details.array_size))])],1):e._e(),t("v-row",{attrs:{"no-gutters":""}},[t("v-col",{staticClass:"label",attrs:{cols:"3"}},[e._v("Data Type")]),t("v-col",[e._v(e._s(e.details.data_type))])],1),"cmd"===e.type?t("v-row",{attrs:{"no-gutters":""}},[t("v-col",{staticClass:"label",attrs:{cols:"3"}},[e._v("Minimum")]),t("v-col",[e._v(e._s(e.details.minimum))])],1):e._e(),"cmd"===e.type?t("v-row",{attrs:{"no-gutters":""}},[t("v-col",{staticClass:"label",attrs:{cols:"3"}},[e._v("Maximum")]),t("v-col",[e._v(e._s(e.details.maximum))])],1):e._e(),"cmd"===e.type?t("v-row",{attrs:{"no-gutters":""}},[t("v-col",{staticClass:"label",attrs:{cols:"3"}},[e._v("Default")]),t("v-col",[e._v(e._s(e.details.default))])],1):e._e(),t("v-row",{attrs:{"no-gutters":""}},[t("v-col",{staticClass:"label",attrs:{cols:"3"}},[e._v("Format String")]),t("v-col",[e._v(e._s(e.details.format_string))])],1),t("v-row",{attrs:{"no-gutters":""}},[t("v-col",{staticClass:"label",attrs:{cols:"3"}},[e._v("Read Conversion")]),e.details.read_conversion?t("v-col",[e._v(" Class: "+e._s(e.details.read_conversion.class)+" "),t("br"),e._v(" Params: "+e._s(e.details.read_conversion.params)+" ")]):t("v-col")],1),t("v-row",{attrs:{"no-gutters":""}},[t("v-col",{staticClass:"label",attrs:{cols:"3"}},[e._v("Write Conversion")]),e.details.write_conversion?t("v-col",[e._v(" Class: "+e._s(e.details.write_conversion.class)+" "),t("br"),e._v(" Params: "+e._s(e.details.write_conversion.params)+" ")]):t("v-col")],1),t("v-row",{attrs:{"no-gutters":""}},[t("v-col",{staticClass:"label",attrs:{cols:"3"}},[e._v("Id Value")]),t("v-col",[e._v(e._s(e.details.id_value))])],1),t("v-row",{attrs:{"no-gutters":""}},[t("v-col",{staticClass:"label",attrs:{cols:"3"}},[e._v("Units Full")]),t("v-col",[e._v(e._s(e.details.units_full))])],1),t("v-row",{attrs:{"no-gutters":""}},[t("v-col",{staticClass:"label",attrs:{cols:"3"}},[e._v("Units Abbr")]),t("v-col",[e._v(e._s(e.details.units))])],1),t("v-row",{attrs:{"no-gutters":""}},[t("v-col",{staticClass:"label",attrs:{cols:"3"}},[e._v("Endianness")]),t("v-col",[e._v(e._s(e.details.endianness))])],1),e.details.states?t("v-row",{attrs:{"no-gutters":""}},[t("v-col",{staticClass:"label",attrs:{cols:"3"}},[e._v("States")]),t("v-col"),t("v-container",{staticClass:"ml-5 pa-0",attrs:{fluid:""}},e._l(e.details.states,(function(n,i){return t("v-row",{key:i,attrs:{"no-gutters":""}},[t("v-col",{staticClass:"label",attrs:{cols:"4"}},[e._v(e._s(i))]),t("v-col",[e._v(e._s(n.value))])],1)})),1)],1):t("v-row",{attrs:{"no-gutters":""}},[t("v-col",{staticClass:"label",attrs:{cols:"3"}},[e._v("States")]),t("v-col",[e._v("None")])],1),e.details.limits?t("v-row",{attrs:{"no-gutters":""}},[t("v-col",{staticClass:"label",attrs:{cols:"3"}},[e._v("Limits")]),t("v-col"),t("v-container",{staticClass:"ml-5 pa-0",attrs:{fluid:""}},e._l(e.details.limits,(function(n,i){return t("v-row",{key:i,attrs:{"no-gutters":""}},[t("v-col",{staticClass:"label",attrs:{cols:"4"}},[e._v(e._s(i))]),e._v(" "+e._s(e.formatLimit(n))+" "),t("v-col")],1)})),1)],1):t("v-row",{attrs:{"no-gutters":""}},[t("v-col",{staticClass:"label",attrs:{cols:"3"}},[e._v("Limits")]),t("v-col",[e._v("None")])],1),e.details.meta?t("v-row",{attrs:{"no-gutters":""}},[t("v-col",{staticClass:"label",attrs:{cols:"3"}},[e._v("Meta")]),t("v-col"),t("v-container",{staticClass:"ml-5 pa-0",attrs:{fluid:""}},e._l(e.details.meta,(function(n,i){return t("v-row",{key:i,attrs:{"no-gutters":""}},[t("v-col",{staticClass:"label",attrs:{cols:"4"}},[e._v(e._s(i))]),t("v-col",[e._v(e._s(n))])],1)})),1)],1):t("v-row",{attrs:{"no-gutters":""}},[t("v-col",{staticClass:"label",attrs:{cols:"3"}},[e._v("Meta")]),t("v-col",[e._v("None")])],1)],1)],1)],1)],1)},s=[],l=(n(74083),n(18178),n(48392)),a={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 l.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}}},r=a,o=(n(98171),n(23287)),c=(0,o.Z)(r,i,s,!1,null,"b02d7144",null),u=c.exports},81226:function(e,t,n){"use strict";n.d(t,{Z:function(){return T}});n(74083);var i=function(){var e=this,t=e._self._c;return t("div",[t("v-card",{nativeOn:{click:function(t){return e.$emit("click")}}},[t("v-system-bar",{directives:[{name:"show",rawName:"v-show",value:!e.hideSystemBar,expression:"!hideSystemBar"}],class:e.selectedGraphId===e.id?"active":"inactive"},[t("div",{directives:[{name:"show",rawName:"v-show",value:0!==e.errors.length,expression:"errors.length !== 0"}],staticClass:"mx-2"},[t("v-tooltip",{attrs:{top:""},scopedSlots:e._u([{key:"activator",fn:function(n){var i=n.on,s=n.attrs;return[t("div",e._g(e._b({},"div",s,!1),i),[t("v-icon",{attrs:{"data-test":"error-graph-icon"},on:{click:function(t){e.errorDialog=!0}}},[e._v("mdi-alert")])],1)]}}])},[t("span",[e._v("Errors")])])],1),t("v-tooltip",{attrs:{top:""},scopedSlots:e._u([{key:"activator",fn:function(n){var i=n.on,s=n.attrs;return[t("div",e._g(e._b({},"div",s,!1),i),[t("v-icon",{attrs:{"data-test":"edit-graph-icon"},on:{click:function(t){e.editGraph=!0}}},[e._v(" mdi-pencil ")])],1)]}}])},[t("span",[e._v(" Edit ")])]),t("v-spacer"),t("span",[e._v(e._s(e.title))]),t("v-spacer"),t("div",{directives:[{name:"show",rawName:"v-show",value:e.expand,expression:"expand"}]},[t("v-tooltip",{attrs:{top:""},scopedSlots:e._u([{key:"activator",fn:function(n){var i=n.on,s=n.attrs;return[t("div",e._g(e._b({},"div",s,!1),i),[t("v-icon",{directives:[{name:"show",rawName:"v-show",value:e.calcFullSize,expression:"calcFullSize"}],attrs:{"data-test":"collapse-all"},on:{click:e.collapseAll}},[e._v(" mdi-arrow-collapse ")]),t("v-icon",{directives:[{name:"show",rawName:"v-show",value:!e.calcFullSize,expression:"!calcFullSize"}],attrs:{"data-test":"expand-all"},on:{click:e.expandAll}},[e._v(" mdi-arrow-expand ")])],1)]}}])},[t("span",{directives:[{name:"show",rawName:"v-show",value:e.calcFullSize,expression:"calcFullSize"}]},[e._v(" Collapse ")]),t("span",{directives:[{name:"show",rawName:"v-show",value:!e.calcFullSize,expression:"!calcFullSize"}]},[e._v(" Expand ")])])],1),t("div",{directives:[{name:"show",rawName:"v-show",value:e.expand,expression:"expand"}]},[t("v-tooltip",{attrs:{top:""},scopedSlots:e._u([{key:"activator",fn:function(n){var i=n.on,s=n.attrs;return[t("div",e._g(e._b({},"div",s,!1),i),[t("v-icon",{directives:[{name:"show",rawName:"v-show",value:e.fullWidth,expression:"fullWidth"}],attrs:{"data-test":"collapse-width"},on:{click:e.collapseWidth}},[e._v(" mdi-arrow-collapse-horizontal ")]),t("v-icon",{directives:[{name:"show",rawName:"v-show",value:!e.fullWidth,expression:"!fullWidth"}],attrs:{"data-test":"expand-width"},on:{click:e.expandWidth}},[e._v(" mdi-arrow-expand-horizontal ")])],1)]}}])},[t("span",{directives:[{name:"show",rawName:"v-show",value:e.fullWidth,expression:"fullWidth"}]},[e._v(" Collapse Width ")]),t("span",{directives:[{name:"show",rawName:"v-show",value:!e.fullWidth,expression:"!fullWidth"}]},[e._v(" Expand Width ")])])],1),t("div",{directives:[{name:"show",rawName:"v-show",value:e.expand,expression:"expand"}]},[t("v-tooltip",{attrs:{top:""},scopedSlots:e._u([{key:"activator",fn:function(n){var i=n.on,s=n.attrs;return[t("div",e._g(e._b({},"div",s,!1),i),[t("v-icon",{directives:[{name:"show",rawName:"v-show",value:e.fullHeight,expression:"fullHeight"}],attrs:{"data-test":"collapse-height"},on:{click:e.collapseHeight}},[e._v(" mdi-arrow-collapse-vertical ")]),t("v-icon",{directives:[{name:"show",rawName:"v-show",value:!e.fullHeight,expression:"!fullHeight"}],attrs:{"data-test":"expand-height"},on:{click:e.expandHeight}},[e._v(" mdi-arrow-expand-vertical ")])],1)]}}])},[t("span",{directives:[{name:"show",rawName:"v-show",value:e.fullHeight,expression:"fullHeight"}]},[e._v(" Collapse Height ")]),t("span",{directives:[{name:"show",rawName:"v-show",value:!e.fullHeight,expression:"!fullHeight"}]},[e._v(" Expand Height ")])])],1),t("v-tooltip",{attrs:{top:""},scopedSlots:e._u([{key:"activator",fn:function(n){var i=n.on,s=n.attrs;return[t("div",e._g(e._b({},"div",s,!1),i),[t("v-icon",{directives:[{name:"show",rawName:"v-show",value:e.expand,expression:"expand"}],attrs:{"data-test":"minimize-screen-icon"},on:{click:e.minMaxTransition}},[e._v(" mdi-window-minimize ")]),t("v-icon",{directives:[{name:"show",rawName:"v-show",value:!e.expand,expression:"!expand"}],attrs:{"data-test":"maximize-screen-icon"},on:{click:e.minMaxTransition}},[e._v(" mdi-window-maximize ")])],1)]}}])},[t("span",{directives:[{name:"show",rawName:"v-show",value:e.expand,expression:"expand"}]},[e._v(" Minimize ")]),t("span",{directives:[{name:"show",rawName:"v-show",value:!e.expand,expression:"!expand"}]},[e._v(" Maximize ")])]),t("v-tooltip",{attrs:{top:""},scopedSlots:e._u([{key:"activator",fn:function(n){var i=n.on,s=n.attrs;return[t("div",e._g(e._b({},"div",s,!1),i),[t("v-icon",{attrs:{"data-test":"close-graph-icon"},on:{click:function(t){return e.$emit("close-graph")}}},[e._v(" mdi-close-box ")])],1)]}}])},[t("span",[e._v(" Close ")])])],1),t("v-expand-transition",[t("div",{directives:[{name:"show",rawName:"v-show",value:e.expand,expression:"expand"}],ref:"chart",staticClass:"pa-1",attrs:{id:"chart"}},[t("div",{attrs:{id:"chart".concat(e.id)}}),t("div",{attrs:{id:"betweenCharts"}}),t("div",{directives:[{name:"show",rawName:"v-show",value:e.showOverview,expression:"showOverview"}],attrs:{id:"overview".concat(e.id)}})])])],1),t("v-dialog",{attrs:{"max-width":"600"},on:{keydown:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"esc",27,t.key,["Esc","Escape"])?null:e.$emit("input")},input:function(t){return e.editGraphClose()}},model:{value:e.editGraph,callback:function(t){e.editGraph=t},expression:"editGraph"}},[t("v-system-bar",[t("v-spacer"),t("span",[e._v("Edit Graph")]),t("v-spacer")],1),t("v-card",{staticClass:"pa-3"},[t("v-row",{attrs:{dense:""}},[t("v-text-field",{staticClass:"pb-2",attrs:{label:"Title","hide-details":"","data-test":"edit-graph-title"},model:{value:e.title,callback:function(t){e.title=t},expression:"title"}})],1),t("v-card-text",{staticClass:"pa-0"},[e._v(" Select a start date/time for the graph. Leave blank for start now. ")]),t("date-time-chooser",{attrs:{required:!1,"date-label":"Start Date","time-label":"Start Time"},on:{"date-time":function(t){e.graphStartDateTime=t}}}),t("v-card-text",{staticClass:"pa-0"},[e._v(" Select a end date/time for the graph. Leave blank for continuous real-time graphing. ")]),t("date-time-chooser",{attrs:{"date-label":"End Date","time-label":"End Time"},on:{"date-time":function(t){e.graphEndDateTime=t}}}),t("v-row",{attrs:{dense:""}},[t("v-select",{attrs:{label:"Legend Position",items:e.legendPositions,"data-test":"edit-legend-position"},model:{value:e.legendPosition,callback:function(t){e.legendPosition=t},expression:"legendPosition"}})],1),t("v-card-text",{staticClass:"pa-0"},[e._v(" Optional Y axis settings. ")]),t("v-row",{attrs:{dense:""}},[t("v-col",{staticClass:"px-2"},[t("v-text-field",{attrs:{"hide-details":"",label:"Min Y",type:"number","data-test":"graph-min-y"},model:{value:e.graphMinY,callback:function(t){e.graphMinY=t},expression:"graphMinY"}})],1),t("v-col",{staticClass:"px-2"},[t("v-text-field",{attrs:{"hide-details":"",label:"Max Y",type:"number","data-test":"graph-max-y"},model:{value:e.graphMaxY,callback:function(t){e.graphMaxY=t},expression:"graphMaxY"}})],1)],1),t("v-data-table",{staticClass:"elevation-1 my-2",attrs:{"item-key":"itemId",headers:e.itemHeaders,items:e.editItems,"items-per-page":5,"footer-props":{"items-per-page-options":[5]}},scopedSlots:e._u([{key:"item.actions",fn:function(n){var i=n.item;return[t("v-tooltip",{attrs:{top:""},scopedSlots:e._u([{key:"activator",fn:function(n){var s=n.on,l=n.attrs;return[t("div",e._g(e._b({},"div",l,!1),s),[t("v-btn",{attrs:{icon:"","data-test":"delete-item-icon".concat(i.itemId)},on:{click:function(){return e.removeItems([i])}}},[t("v-icon",[e._v("mdi-delete")])],1)],1)]}}],null,!0)},[t("span",[e._v("Remove")])])]}},{key:"no-data",fn:function(){return[t("span",[e._v("Currently no items on this graph")])]},proxy:!0}])}),t("v-card-actions",[t("v-btn",{attrs:{color:"primary"},on:{click:function(t){return e.editGraphClose()}}},[e._v(" Ok ")])],1)],1)],1),t("v-dialog",{attrs:{"max-width":"600"},model:{value:e.errorDialog,callback:function(t){e.errorDialog=t},expression:"errorDialog"}},[t("v-system-bar",[t("v-spacer"),t("span",[e._v("Errors")]),t("v-spacer")],1),t("v-card",{staticClass:"pa-3"},[t("v-row",{attrs:{dense:""}},[t("v-text-field",{staticClass:"pb-2",attrs:{readonly:"","hide-details":"",label:"Graph Title"},model:{value:e.title,callback:function(t){e.title=t},expression:"title"}})],1),t("v-row",{staticClass:"my-3"},[t("v-textarea",{attrs:{readonly:"",rows:"8",value:e.error}})],1),t("v-row",[t("v-btn",{attrs:{block:""},on:{click:e.clearErrors}},[e._v(" Clear ")])],1)],1)],1),e.editGraphMenu?t("v-menu",{attrs:{"position-x":e.editGraphMenuX,"position-y":e.editGraphMenuY,absolute:"","offset-y":""},model:{value:e.editGraphMenu,callback:function(t){e.editGraphMenu=t},expression:"editGraphMenu"}},[t("v-list",[t("v-list-item",{on:{click:function(t){e.editGraph=!0}}},[t("v-list-item-title",{staticStyle:{cursor:"pointer"}},[e._v(" Edit "+e._s(e.title)+" ")])],1)],1)],1):e._e(),e.editItem?t("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"}},[t("v-card",{staticClass:"pa-3"},[t("v-card-title",{staticClass:"headline"},[e._v("Edit Item")]),t("v-select",{attrs:{outlined:"","hide-details":"",label:"Value Type",items:e.valueTypes},model:{value:e.currentType,callback:function(t){e.currentType=t},expression:"currentType"}}),t("v-select",{attrs:{outlined:"","hide-details":"",label:"Color",items:e.colors},on:{change:function(t){return e.changeColor(t)}},model:{value:e.selectedItem.color,callback:function(t){e.$set(e.selectedItem,"color",t)},expression:"selectedItem.color"}}),t("v-card-actions",[t("v-btn",{attrs:{color:"primary"},on:{click:function(t){return e.closeEditItem()}}},[e._v("Ok")])],1)],1)],1):e._e(),e.itemMenu?t("v-menu",{attrs:{"position-x":e.itemMenuX,"position-y":e.itemMenuY,absolute:"","offset-y":""},model:{value:e.itemMenu,callback:function(t){e.itemMenu=t},expression:"itemMenu"}},[t("v-list",[t("v-list-item",{on:{click:function(t){return e.openEditItem()}}},[t("v-list-item-title",{staticStyle:{cursor:"pointer"}},[e._v(" Edit "+e._s(e.selectedItem.itemName)+" ")])],1),t("v-list-item",{on:{click:function(t){return e.removeItems([e.selectedItem])}}},[t("v-list-item-title",{staticStyle:{cursor:"pointer"}},[e._v(" Delete "+e._s(e.selectedItem.itemName)+" ")])],1)],1)],1):e._e(),e.legendMenu?t("v-menu",{attrs:{"position-x":e.legendMenuX,"position-y":e.legendMenuY,absolute:"","offset-y":""},model:{value:e.legendMenu,callback:function(t){e.legendMenu=t},expression:"legendMenu"}},[t("v-list",[t("v-list-item",{on:{click:function(t){return e.moveLegend("top")}}},[t("v-list-item-title",{staticStyle:{cursor:"pointer"}},[e._v("Legend Top")])],1),t("v-list-item",{on:{click:function(t){return e.moveLegend("bottom")}}},[t("v-list-item-title",{staticStyle:{cursor:"pointer"}},[e._v("Legend Bottom")])],1),t("v-list-item",{on:{click:function(t){return e.moveLegend("left")}}},[t("v-list-item-title",{staticStyle:{cursor:"pointer"}},[e._v("Legend Left")])],1),t("v-list-item",{on:{click:function(t){return e.moveLegend("right")}}},[t("v-list-item-title",{staticStyle:{cursor:"pointer"}},[e._v("Legend RIght")])],1)],1)],1):e._e()],1)},s=[],l=n(50615),a=n(97302),r=n(78081),o=n(66964),c=(n(71245),n(43450),n(6710),n(58188),n(6886),n(36728),n(43108),n(18178),n(32501),n(13489),n(99805),n(1951),n(35883),n(39529),n(31235),function(){var e=this,t=e._self._c;return t("div",[t("v-row",[t("v-col",[t("v-menu",{attrs:{"close-on-content-click":"",transition:"scale-transition","offset-y":"","max-width":"290px","min-width":"290px"},scopedSlots:e._u([{key:"activator",fn:function(n){var i=n.on;return[t("v-text-field",e._g({attrs:{label:e.dateLabel,name:"date".concat(Date.now()),rules:e.dateRules,type:"date","data-test":"date-chooser"},model:{value:e.date,callback:function(t){e.date=t},expression:"date"}},i))]}}])})],1),t("v-col",[t("v-text-field",{attrs:{label:e.timeLabel,name:"time".concat(Date.now()),rules:e.timeRules,type:"time",step:"1","data-test":"time-chooser"},on:{change:e.onChange},model:{value:e.time,callback:function(t){e.time=t},expression:"time"}})],1)],1)],1)}),u=[],d=n(31200),m=n(10247),h={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,d.Z)((0,m.Z)(e,"yyyy-MM-dd",new Date))||"Invalid date (YYYY-MM-DD)"}catch(t){return"Invalid date (YYYY-MM-DD)"}},time:function(e){if(!e)return!0;try{return(0,d.Z)((0,m.Z)(e,"HH:mm:ss",new Date))||"Invalid time (HH:MM:SS)"}catch(t){return"Invalid time (HH:MM:SS)"}}}}},computed:{dateRules:function(){var e=[this.rules.date];return(this.time||this.required)&&e.push(this.rules.required),e},timeRules:function(){var e=[this.rules.time];return(this.date||this.required)&&e.push(this.rules.required),e}},methods:{onChange:function(){this.date&&this.time?this.$emit("date-time",this.date+" "+this.time):this.$emit("date-time",null)}}},p=h,A=n(23287),f=(0,A.Z)(p,c,u,!1,null,null,null),v=f.exports,g=n(35685),_=n(86522),w=n.n(_),C=n(73053),b=n(66700),y=n(59161);n(16461);var x={components:{DateTimeChooser:v},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},sparkline:{type:Boolean,default:!1},initialItems:{type:Array},height:{type:Number},width:{type:Number}},data:function(){return{itemHeaders:[{text:"Target Name",value:"targetName"},{text:"Packet Name",value:"packetName"},{text:"Item Name",value:"itemName"},{text:"Actions",value:"actions",sortable:!1}],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,showOverview:!this.hideOverview,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 y.Z,subscription:null,needToUpdate:!1,errorDialog:!1,errors:[],colorIndex:0,colors:["cornflowerblue","red","lime","darkorange","gold","hotpink","tan","cyan","maroon","blue","teal","purple","green","brown","lightblue","white"]}},computed:{calcFullSize:function(){return this.fullWidth||this.fullHeight},editItems:function(){if(!this.items)return[];var e=0;return this.items.map((function(t){return e+=1,(0,o.Z)((0,o.Z)({},t),{},{itemId:e})}))},error:function(){return this.errorDialog&&this.errors.length>0?JSON.stringify(this.errors,null,4):null}},created:function(){this.title="Graph ".concat(this.id);var e,t=(0,r.Z)(this.items.entries());try{for(t.s();!(e=t.n()).done;){var n=(0,a.Z)(e.value,2),i=n[0],s=n[1];this.data.push([]),this.indexes[this.subscriptionKey(s)]=i+1,void 0===s.color&&(s.color=this.colors[this.colorIndex]),this.colorIndex++,this.colorIndex===this.colors.length&&(this.colorIndex=0)}}catch(l){t.e(l)}finally{t.f()}},mounted:function(){var e=this,t=this.items.reduce((function(t,n){var i={spanGaps:!0};return t.chartSeries.push((0,o.Z)((0,o.Z)({},i),{},{item:n,label:n.itemName,stroke:function(t,n){return e.items[n-1].color},value:function(e,t){return"string"===typeof t||isNaN(t)?"NaN":null==t?"--":t.toFixed(2)}})),t.overviewSeries.push((0,o.Z)({},i)),t}),{chartSeries:[],overviewSeries:[]}),n=t.chartSeries,i=t.overviewSeries,s={};if(this.sparkline)this.hideSystemBar=!0,this.hideOverview=!0,this.showOverview=!1,s={width:this.width,height:this.height,pxAlign:!1,cursor:{show:!1},select:{show:!1},legend:{show:!1},scales:{x:{time:!1}},axes:[{show:!1},{show:!1}],series:[{},{stroke:"white"}]},this.graph=new g.Z(s,this.data,document.getElementById("chart".concat(this.id)));else{s=(0,o.Z)((0,o.Z)((0,o.Z)((0,o.Z)({},this.getSize("chart")),this.getScales()),this.getAxes("chart")),{},{series:[{label:"Time",value:function(e,t){return null==t?"--":(0,C.Z)((0,b.Z)(1e3*t),"yyyy-MM-dd HH:mm:ss")}}].concat((0,l.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")),s=Math.round(e.overview.valToPos(t.scales.x.max,"x"));e.overview.setSelect({left:i,width:s-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 s=n.target.closest(".u-series"),l=Array.prototype.slice.call(i.childNodes).indexOf(s),a=t.series[l];a.item?(e.selectedItem=a.item,e.itemMenu=!0):(e.itemMenu=!1,e.legendMenuX=n.clientX,e.legendMenuY=n.clientY,e.legendMenu=!0)}))}]}}),this.graph=new g.Z(s,this.data,document.getElementById("chart".concat(this.id)));var a=(0,o.Z)((0,o.Z)((0,o.Z)((0,o.Z)({},this.getSize("overview")),this.getScales()),this.getAxes("overview")),{},{series:(0,l.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 g.Z(a,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&&this.overview.setData(e);var n=e[0][e[0].length-1],i=e[0][e[0].length-this.pointsGraphed],s=e[0][0];s<n-this.secondsGraphed&&(s=n-this.secondsGraphed),i>s&&(s=i),this.graph.setScale("x",{min:s,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&&this.overview.setSize(this.getSize("overview"))},resize:function(){this.graph.setSize(this.getSize("chart")),this.overview&&this.overview.setSize(this.getSize("overview")),this.$emit("resize",this.id)},expandAll:function(){this.fullWidth=!0,this.fullHeight=!0,this.resize()},collapseAll:function(){this.fullWidth=!1,this.fullHeight=!1,this.resize()},expandWidth:function(){this.fullWidth=!0,this.resize()},collapseWidth:function(){this.fullWidth=!1,this.resize()},expandHeight:function(){this.fullHeight=!0,this.resize()},collapseHeight:function(){this.fullHeight=!1,this.resize()},minMaxTransition:function(){this.expand=!this.expand,this.$emit("min-max-graph",this.id)},setGraphRange:function(){var e=this,t=.1;(this.graphMinY||0===this.graphMinY||this.graphMaxY||0===this.graphMaxY)&&(t=0),this.graph.scales.y.range=function(n,i,s){var l=i;(e.graphMinY||0===e.graphMinY)&&(l=e.graphMinY);var a=s;return(e.graphMaxY||0===e.graphMaxY)&&(a=e.graphMaxY),g.Z.rangeNum(l,a,t,!0)}},subscribe:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;this.cable.createSubscription("StreamingChannel",window.openc3Scope,{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 s=document.getElementsByClassName("u-legend")[0];i=s.clientWidth}var l=Math.max(document.documentElement.clientWidth,window.innerWidth||0)-n-i,a=Math.max(document.documentElement.clientHeight,window.innerHeight||0),r=document.getElementsByClassName("c-chooser")[0],o=100;"overview"===e?this.fullHeight&&!this.hideOverview&&(this.showOverview=!0):r&&(o=a-r.clientHeight-o-190,this.fullHeight||(o=o/2+10));var c=l-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]:g.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()},changeColor:function(e){var t=this.subscriptionKey(this.selectedItem),n=this.indexes[t];this.items[n-1].color=e,this.graph.root.querySelectorAll(".u-marker")[n].style.borderColor=e},changeType:function(){this.removeItems([this.selectedItem]),this.selectedItem.valueType=this.currentType,this.addItems([this.selectedItem])},addItems:function(e){var t,n=this,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"CONVERTED",s=(0,r.Z)(e);try{for(s.s();!(t=s.n()).done;){var l=t.value;l.valueType||(l.valueType=i),void 0===l.color&&(l.color=this.colors[this.colorIndex]),this.colorIndex++,this.colorIndex===this.colors.length&&(this.colorIndex=0),this.items.push(l);var a=this.data.length;this.graph.addSeries({spanGaps:!0,item:l,label:l.itemName,stroke:function(e,t){return n.items[t-1].color},value:function(e,t){return"string"===typeof t||isNaN(t)?"NaN":null===t?"--":t.toFixed(2)}},a),this.overview&&this.overview.addSeries({spanGaps:!0,stroke:function(e,t){return n.items[t-1].color}},a);var o=Array(this.data[0].length);this.data.splice(a,0,o),this.indexes[this.subscriptionKey(l)]=a}}catch(c){s.e(c)}finally{s.f()}this.addItemsToSubscription(e)},addItemsToSubscription:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.items,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.graphEndDateTime;this.subscription&&OpenC3Auth.updateToken(OpenC3Auth.defaultMinValidity).then((function(){e.subscription.perform("add",{scope:window.openc3Scope,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,r.Z)(e.map(this.subscriptionKey));try{for(n.s();!(t=n.n()).done;){var i=t.value,s=this.reorderIndexes(i);this.colors.unshift(this.graph.series[s].stroke),this.items.splice(s-1,1),this.data.splice(s,1),this.graph.delSeries(s),this.graph.setData(this.data),this.overview&&(this.overview.delSeries(s),this.overview.setData(this.data))}}catch(l){n.e(l)}finally{n.f()}},removeItemsFromSubscription:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.items;this.subscription&&this.subscription.perform("remove",{scope:window.openc3Scope,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,s=t[0].length;if(0==s||i>t[0][s-1]){for(var l=0;l<this.data.length;l++)this.data[l].push(null);this.set_data_at_index(this.data[0].length-1,i,t[n])}else{var a=w()(this.data[0],i,this.bs_comparator);if(a>=0)this.set_data_at_index(a,i,t[n]);else{for(var r=-a-1,o=0;o<this.data.length;o++)this.data[o].splice(r,0,null);this.set_data_at_index(r,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,s=Object.entries(n);i<s.length;i++){var l=(0,a.Z)(s[i],2),o=l[0],c=l[1];if("time"!=o){var u=this.indexes[o];if(u){var d=this.data[u];if(c.raw)d[e]=null;else if("string"===typeof c){if(d[e]=null,!o.includes("__RAW")){var m,h=(0,r.Z)(this.items);try{for(h.s();!(m=h.n()).done;){var p=m.value;if(this.subscriptionKey(p)===o){this.selectedItem=p;break}}}catch(A){h.e(A)}finally{h.f()}this.currentType="RAW",this.changeType()}}else d[e]=c}}}},subscriptionKey:function(e){return"DECOM__TLM__".concat(e.targetName,"__").concat(e.packetName,"__").concat(e.itemName,"__").concat(e.valueType)}}},k=x,S=(n(654),n(25685),(0,A.Z)(k,i,s,!1,null,"380bc4e2",null)),T=S.exports},40636:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return m}});var i=function(){var e=this,t=e._self._c;return t("div",{staticClass:"array-widget-container"},[t("v-textarea",{class:e.valueClass,style:[e.computedStyle,e.aging],attrs:{solo:"",dense:"",readonly:"","hide-details":"",placeholder:"Value",height:e.height,value:e._value,"data-test":"array-widget"},on:{contextmenu:e.showContextMenu}}),t("v-menu",{attrs:{"position-x":e.x,"position-y":e.y,absolute:"","offset-y":""},model:{value:e.contextMenuShown,callback:function(t){e.contextMenuShown=t},expression:"contextMenuShown"}},[t("v-list",e._l(e.contextMenuOptions,(function(n,i){return t("v-list-item",{key:i,on:{click:function(e){return e.stopPropagation(),n.action.apply(null,arguments)}}},[t("v-list-item-title",[e._v(e._s(n.title))])],1)})),1)],1),t("details-dialog",{attrs:{"target-name":e.parameters[0],"packet-name":e.parameters[1],"item-name":e.parameters[2]},model:{value:e.viewDetails,callback:function(t){e.viewDetails=t},expression:"viewDetails"}})],1)},s=[],l=n(78081),a=(n(68995),n(45794),n(92318)),r=n(98977),o=(n(80131),{components:{DetailsDialog:r.Z},data:function(){return{width:200,height:100,itemsPerRow:4,formatter:null}},mixins:[a.Z],computed:{aging:function(){return{"--aging":this.grayLevel}}},created:function(){this.width=this.setWidth(this.parameters[3],"px",this.width),this.height=this.setHeight(this.parameters[4],"px",this.height),this.parameters[5]&&(this.formatter=this.parameters[5]),this.parameters[6]&&(this.itemsPerRow=parseInt(this.parameters[6]))},methods:{getType:function(){var e="CONVERTED";return this.parameters[7]&&(e=this.parameters[7]),e},formatValue:function(e){var t="",n=" ",i="\n",s=0;if(Array.isArray(e)){var a,r=(0,l.Z)(e);try{for(r.s();!(a=r.n()).done;){var o,c=a.value;this.formatter&&"nil"!==(null===(o=this.formatter)||void 0===o?void 0:o.toLowerCase())?t+=sprintf(this.formatter,c):t+=c,s+=1,s%this.itemsPerRow===0?(s=0,t+=i):t+=n}}catch(u){r.e(u)}finally{r.f()}return t.trim()}return e}}}),c=o,u=(n(91480),n(23287)),d=(0,u.Z)(c,i,s,!1,null,"5cd86706",null),m=d.exports},19578:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return m}});var i=function(){var e=this,t=e._self._c;return t("div",{staticClass:"block-widget-container"},[t("v-textarea",{class:e.valueClass,style:[e.computedStyle,e.aging],attrs:{solo:"",dense:"",readonly:"","hide-details":"",placeholder:"Value",width:e.width,height:e.height,value:e._value,"data-test":"valueText"},on:{contextmenu:e.showContextMenu}}),t("v-menu",{attrs:{"position-x":e.x,"position-y":e.y,absolute:"","offset-y":""},model:{value:e.contextMenuShown,callback:function(t){e.contextMenuShown=t},expression:"contextMenuShown"}},[t("v-list",e._l(e.contextMenuOptions,(function(n,i){return t("v-list-item",{key:i,on:{click:function(e){return e.stopPropagation(),n.action.apply(null,arguments)}}},[t("v-list-item-title",[e._v(e._s(n.title))])],1)})),1)],1),t("details-dialog",{attrs:{"target-name":e.parameters[0],"packet-name":e.parameters[1],"item-name":e.parameters[2]},model:{value:e.viewDetails,callback:function(t){e.viewDetails=t},expression:"viewDetails"}})],1)},s=[],l=n(78081),a=(n(68995),n(92318)),r=n(98977),o=(n(80131),{components:{DetailsDialog:r.Z},data:function(){return{width:400,height:600,bytesPerWord:4,wordsPerRow:4,addrFormat:null,formatter:"%02X"}},mixins:[a.Z],computed:{aging:function(){return{"--aging":this.grayLevel}}},created:function(){this.width=this.setWidth(this.parameters[3],"px",this.width),this.height=this.setHeight(this.parameters[4],"px",this.height),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=" ",s="\n",a=0,r=0,o=this.bytesPerWord*this.wordsPerRow,c=(0,l.Z)(e.raw);try{for(c.s();!(n=c.n()).done;){var u=n.value;this.addrFormat&&0===a&&(t+=sprintf(this.addrFormat,r),r+=o),t+=sprintf(this.formatter,u),a+=1,a%o===0?(a=0,t+=s):a%this.bytesPerWord===0&&(t+=i)}}catch(d){c.e(d)}finally{c.f()}}return t}}}),c=o,u=(n(9492),n(23287)),d=(0,u.Z)(c,i,s,!1,null,"48b8ff8d",null),m=d.exports},66090:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return c}});var i=function(){var e=this,t=e._self._c;return t("div",[t("v-btn",{staticClass:"ma-1",style:e.computedStyle,attrs:{color:"primary"},on:{click:e.onClick}},[e._v(" "+e._s(e.buttonText)+" ")]),t("v-dialog",{attrs:{"max-width":"300"},model:{value:e.displaySendHazardous,callback:function(t){e.displaySendHazardous=t},expression:"displaySendHazardous"}},[t("v-card",{staticClass:"pa-3"},[t("v-card-title",{staticClass:"headline"},[e._v("Hazardous")]),t("v-card-text",[e._v(" Warning: Command is Hazardous. Send? ")]),t("v-btn",{staticClass:"primary mr-4",on:{click:e.sendHazardousCmd}},[e._v("Yes")]),t("v-btn",{staticClass:"primary",on:{click:e.cancelHazardousCmd}},[e._v("No")])],1)],1)],1)},s=[],l=n(96161),a=l.Z,r=n(23287),o=(0,r.Z)(a,i,s,!1,null,null,null),c=o.exports},75886:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return u}});var i=function(){var e=this,t=e._self._c;return t("svg",{attrs:{id:"canvas",width:e.width,height:e.height}},e._l(e.widgets,(function(n,i){return t(n.type,e._g({key:i,tag:"component",attrs:{target:n.target,parameters:n.parameters,settings:n.settings,widgets:n.widgets,name:n.name,line:n.line,lineNumber:n.lineNumber}},e.$listeners))})),1)},s=[],l=n(548),a={mixins:[l.Z],computed:{width:function(){return this.parameters[0]+"px"},height:function(){return this.parameters[1]+"px"}}},r=a,o=(n(15560),n(23287)),c=(0,o.Z)(r,i,s,!1,null,"17947dc7",null),u=c.exports},8213:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return u}});var i=function(){var e=this,t=e._self._c;return t("circle",{attrs:{cx:e.parameters[0],cy:e.parameters[1],r:e.parameters[3],fill:e.parameters[2]}})},s=[],l=n(92202),a={mixins:[l.Z]},r=a,o=n(23287),c=(0,o.Z)(r,i,s,!1,null,null,null),u=c.exports},44440:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return d}});var i=function(){var e=this,t=e._self._c;return e.imageUrl?t("image",{attrs:{href:e.imageUrl,x:e.parameters[1],y:e.parameters[2],width:e.width,height:e.height}}):e._e()},s=[],l=(n(44112),n(92202)),a=n(1716),r={mixins:[l.Z,a.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=r,c=n(23287),u=(0,c.Z)(o,i,s,!1,null,null,null),d=u.exports},13418:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return p}});var i=function(){var e=this,t=e._self._c;return t("g",[e._l(e.images,(function(n){return t("image",{directives:[{name:"show",rawName:"v-show",value:n.value==e.selectedValue,expression:"image.value == selectedValue"}],key:n.value,attrs:{href:n.url,x:n.x,y:n.y,width:n.width,height:n.height}})})),e.defaultImage?t("image",{directives:[{name:"show",rawName:"v-show",value:e.showDefault,expression:"showDefault"}],attrs:{href:e.defaultImage.url,x:e.defaultImage.x,y:e.defaultImage.y,width:e.defaultImage.width,height:e.defaultImage.height}}):e._e()],2)},s=[],l=n(66964),a=n(15789),r=n(49502),o=(n(18178),n(58188),n(43450),n(95342),n(44112),n(28673),n(6886),n(92202)),c=n(1716),u={mixins:[o.Z,c.Z],data:function(){return{images:[],defaultImage:null}},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,r.Z)((0,a.Z)().mark((function t(n){var i;return(0,a.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,l.Z)((0,l.Z)({},n),{},{url:i}):this.getPresignedUrl(i).then((function(t){e.defaultImage=(0,l.Z)((0,l.Z)({},n),{},{url:t})}))}},destroyed:function(){this.$store.commit("tlmViewerDeleteItem",this.valueId)}},d=u,m=n(23287),h=(0,m.Z)(d,i,s,!1,null,null,null),p=h.exports},66147:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return u}});var i=function(){var e=this,t=e._self._c;return t("text",{attrs:{x:e.parameters[0],y:e.parameters[1],fill:e.fillColor}},[e._v(" "+e._s(e.parameters[2])+" ")])},s=[],l=n(92202),a={mixins:[l.Z],computed:{fillColor:function(){return this.parameters[3]?this.parameters[3]:"black"}}},r=a,o=n(23287),c=(0,o.Z)(r,i,s,!1,null,null,null),u=c.exports},83207:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return u}});var i=function(){var e=this,t=e._self._c;return t("text",{attrs:{x:e.parameters[3],y:e.parameters[4],"font-size":e.fontSize,fill:e.fillColor}},[e._v(" "+e._s(e._value)+" ")])},s=[],l=(n(18178),n(92202)),a={mixins:[l.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)}},r=a,o=n(23287),c=(0,o.Z)(r,i,s,!1,null,null,null),u=c.exports},52661:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return u}});var i=function(){var e=this,t=e._self._c;return t("line",{style:e.calcStyle,attrs:{x1:e.parameters[0],y1:e.parameters[1],x2:e.parameters[2],y2:e.parameters[3]}})},s=[],l=n(92202),a={mixins:[l.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}}},r=a,o=n(23287),c=(0,o.Z)(r,i,s,!1,null,null,null),u=c.exports},37061:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return u}});var i=function(){var e=this,t=e._self._c;return t("line",{style:e.calcStyle,attrs:{x1:e.parameters[3],y1:e.parameters[4],x2:e.parameters[5],y2:e.parameters[6]}})},s=[],l=(n(68995),n(18178),n(92202)),a={mixins:[l.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)}},r=a,o=n(23287),c=(0,o.Z)(r,i,s,!1,null,null,null),u=c.exports},23984:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return u}});var i=function(){var e=this,t=e._self._c;return t("v-checkbox",{style:e.computedStyle,attrs:{"hide-details":"",dense:"",label:e.label},model:{value:e.value,callback:function(t){e.value=t},expression:"value"}})},s=[],l=(n(58188),n(1939),n(92202)),a={mixins:[l.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}}},r=a,o=n(23287),c=(0,o.Z)(r,i,s,!1,null,null,null),u=c.exports},910:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return u}});var i=function(){var e=this,t=e._self._c;return t("v-select",{style:e.computedStyle,attrs:{"hide-details":"",dense:"",items:e.items},model:{value:e.value,callback:function(t){e.value=t},expression:"value"}})},s=[],l=(n(58188),n(1939),n(92202)),a={mixins:[l.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}}},r=a,o=n(23287),c=(0,o.Z)(r,i,s,!1,null,null,null),u=c.exports},76714:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return m}});var i=n(66964),s=function(){var e=this,t=e._self._c;return t(e.widgetType,e._b({tag:"component"},"component",(0,i.Z)((0,i.Z)({},e.$props),e.$attrs),!1))},l=[],a=n(15789),r=n(49502),o=(n(18178),n(71372),{data:function(){return{widgetType:null}},props:{name:{default:null}},computed:{url:function(){return"".concat(window.location.origin,"/tools/widgets/").concat(this.name,"/").concat(this.name,".umd.min.js")}},mounted:function(){var e=this;return(0,r.Z)((0,a.Z)().mark((function t(){return(0,a.Z)().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,System.import(e.url);case 3:e.widgetType=t.sent,t.next=9;break;case 6:throw t.prev=6,t.t0=t["catch"](0),new Error("Unknown widget: ".concat(e.name));case 9:case"end":return t.stop()}}),t,null,[[0,6]])})))()}}),c=o,u=n(23287),d=(0,u.Z)(c,s,l,!1,null,null,null),m=d.exports},61867:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return d}});var i=function(){var e=this,t=e._self._c;return t("div",{ref:"container",staticClass:"d-flex flex-row",style:e.computedStyle},[t("value-widget",{attrs:{parameters:e.getParameters,settings:e.settings,"format-string":e.parameters[3]}})],1)},s=[],l=n(92202),a=n(61058),r={mixins:[l.Z],components:{ValueWidget:a["default"]},computed:{getParameters:function(){return[this.parameters[0],this.parameters[1],this.parameters[2],this.parameters[4]]}},created:function(){this.setWidth(this.parameters[5],"ch",12)}},o=r,c=n(23287),u=(0,c.Z)(o,i,s,!1,null,null,null),d=u.exports},68123:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return u}});var i=function(){var e=this,t=e._self._c;return t("div",{ref:"container",staticClass:"d-flex flex-row"},e._l(e.widgets,(function(n,i){return t(n.type,e._g({key:i,tag:"component",attrs:{target:n.target,parameters:n.parameters,settings:n.settings,widgets:n.widgets,name:n.name,line:n.line,lineNumber:n.lineNumber}},e.$listeners))})),1)},s=[],l=n(548),a={mixins:[l.Z]},r=a,o=n(23287),c=(0,o.Z)(r,i,s,!1,null,null,null),u=c.exports},71680:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return d}});var i=function(){var e=this,t=e._self._c;return t("div",[t("v-banner",{attrs:{"single-line":""}},[e._v(e._s(e.parameters.join(" ")))]),t("horizontal-widget",e._g({attrs:{parameters:e.parameters,settings:e.settings,widgets:e.widgets}},e.$listeners))],1)},s=[],l=n(68123),a=n(548),r={mixins:[a.Z],components:{HorizontalWidget:l["default"]}},o=r,c=(n(71451),n(23287)),u=(0,c.Z)(o,i,s,!1,null,"1307e02a",null),d=u.exports},27094:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return u}});var i=function(){var e=this,t=e._self._c;return t("iframe",{attrs:{src:e.src,width:e.width,height:e.height}})},s=[],l=n(92202),a={mixins:[l.Z],computed:{src:function(){return this.parameters[0]},width:function(){return this.parameters[1]+"px"},height:function(){return this.parameters[2]+"px"}}},r=a,o=n(23287),c=(0,o.Z)(r,i,s,!1,null,null,null),u=c.exports},77656:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return m}});var i=function(){var e=this,t=e._self._c;return t("img",{attrs:{src:e.src,alt:e.itemFullName,width:e.parameters[4],height:e.parameters[5]}})},s=[],l=(n(18178),n(58188),n(49228),n(48392)),a=n(92202),r=n(59161),o={mixins:[a.Z],data:function(){return{api:new l.k,cable:new r.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",window.openc3Scope,{received:function(t){return e.received(t)},connected:function(){e.subscription.perform("add",{scope:window.openc3Scope,mode:"DECOM",token:localStorage.openc3Token,items:[e.itemFullName]})},disconnected:function(){e.$notify.caution({body:"OpenC3 backend connection disconnected."})},rejected:function(){e.$notify.caution({body:"OpenC3 backend connection rejected."})}}).then((function(t){e.subscription=t}))}}},c=o,u=n(23287),d=(0,u.Z)(c,i,s,!1,null,null,null),m=d.exports},66354:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return u}});var i=function(){var e=this,t=e._self._c;return t("span",{staticClass:"pa-1 mt-1 label",style:[e.cssProps,e.computedStyle],attrs:{"data-test":"label"}},[e._v(" "+e._s(e.labelText)+" ")])},s=[],l=n(92202),a={mixins:[l.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])}},r=a,o=(n(11089),n(23287)),c=(0,o.Z)(r,i,s,!1,null,"712bf360",null),u=c.exports},50730:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return m}});var i=function(){var e=this,t=e._self._c;return t("div",{ref:"container",staticClass:"d-flex flex-row",style:e.computedStyle},[t("label-widget",{attrs:{parameters:e.labelName,settings:e.settings}}),t("led-widget",{attrs:{parameters:e.parameters,settings:e.settings}})],1)},s=[],l=n(92202),a=n(66354),r=n(34041),o={mixins:[l.Z],components:{LabelWidget:a["default"],LedWidget:r["default"]},computed:{labelName:function(){return[this.parameters[2]+":"]}}},c=o,u=n(23287),d=(0,u.Z)(c,i,s,!1,null,null,null),m=d.exports},90482:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return m}});var i=function(){var e=this,t=e._self._c;return t("div",{ref:"container",staticClass:"d-flex flex-row"},[t("label-widget",{attrs:{parameters:e.labelName,settings:e.settings,"widget-index":0}}),t("progressbar-widget",{style:e.computedStyle,attrs:{parameters:e.parameters,settings:e.settings,"widget-index":1}})],1)},s=[],l=n(92202),a=n(66354),r=n(87621),o={mixins:[l.Z],components:{LabelWidget:a["default"],ProgressbarWidget:r["default"]},computed:{labelName:function(){return[this.parameters[2]+":"]}}},c=o,u=n(23287),d=(0,u.Z)(c,i,s,!1,null,null,null),m=d.exports},11664:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return m}});var i=function(){var e=this,t=e._self._c;return t("div",{ref:"container",staticClass:"d-flex flex-row"},[t("label-widget",{attrs:{parameters:e.labelName,settings:e.settings,line:e.line,lineNumber:e.lineNumber,"widget-index":0}}),t("sparkline-widget",{style:e.computedStyle,attrs:{parameters:e.parameters,settings:e.settings,"widget-index":1}})],1)},s=[],l=n(92202),a=n(66354),r=n(42008),o={mixins:[l.Z],components:{LabelWidget:a["default"],SparklineWidget:r["default"]},computed:{labelName:function(){return[this.parameters[2]+":"]}}},c=o,u=n(23287),d=(0,u.Z)(c,i,s,!1,null,null,null),m=d.exports},58732:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return m}});var i=function(){var e=this,t=e._self._c;return t("div",{ref:"container",staticClass:"d-flex flex-row"},[t("label-widget",{attrs:{parameters:e.labelName,settings:e.settings,line:e.line,lineNumber:e.lineNumber,"widget-index":0}}),t("value-widget",{style:e.computedStyle,attrs:{parameters:e.parameters,settings:e.settings,line:e.line,lineNumber:e.lineNumber,"widget-index":1}})],1)},s=[],l=n(92202),a=n(66354),r=n(61058),o={mixins:[l.Z],components:{LabelWidget:a["default"],ValueWidget:r["default"]},computed:{labelName:function(){return[this.parameters[2]+":"]}}},c=o,u=n(23287),d=(0,u.Z)(c,i,s,!1,null,null,null),m=d.exports},67932:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return h}});n(32501);var i=function(){var e=this,t=e._self._c;return t("div",{ref:"container",staticClass:"d-flex flex-row"},[t("label-widget",{attrs:{parameters:e.labelName,settings:e.settings,"widget-index":0}}),t("value-widget",{style:e.computedStyle,attrs:{parameters:e.parameters.slice(0,3),settings:e.settings,"widget-index":1}})],1)},s=[],l=(n(34115),n(634),n(92202)),a=n(66354),r=n(61058),o=n(48392),c={mixins:[l.Z],data:function(){return{description:""}},components:{LabelWidget:a["default"],ValueWidget:r["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,s,!1,null,null,null),h=m.exports},82514:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return m}});n(43450),n(95342),n(58188),n(32501);var i=function(){var e=this,t=e._self._c;return t("div",{ref:"container",staticClass:"d-flex flex-row"},[t("labelvalue-widget",{attrs:{parameters:e.parameters,settings:e.settings}}),t("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)},s=[],l=n(58732),a=n(20788),r=n(92202),o={mixins:[r.Z],components:{LabelvalueWidget:l["default"],LimitsbarWidget:a["default"]},computed:{limitsBarParameters:function(){return[this.parameters[0],this.parameters[1],this.parameters[2],"CONVERTED"]}}},c=o,u=n(23287),d=(0,u.Z)(c,i,s,!1,null,null,null),m=d.exports},67117:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return h}});var i=function(){var e=this,t=e._self._c;return t("div",{ref:"container",staticClass:"d-flex flex-column",style:e.computedStyle},[t("label-widget",{attrs:{parameters:[e.parameters[2]],settings:e.settings,"widget-index":0}}),t("limitscolumn-widget",{attrs:{parameters:e.limitsColumnParameters,settings:e.settings,"widget-index":1}}),t("value-widget",{attrs:{parameters:e.parameters,settings:e.settings,"widget-index":2}})],1)},s=[],l=(n(36728),n(66354)),a=n(61058),r=n(39288),o=n(92202),c={mixins:[o.Z],components:{LabelWidget:l["default"],ValueWidget:a["default"],LimitscolumnWidget:r["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,s,!1,null,null,null),h=m.exports},21487:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return m}});var i=function(){var e=this,t=e._self._c;return t("div",{ref:"container",staticClass:"d-flex flex-row"},[t("labelvalue-widget",{attrs:{parameters:e.labelValueParameters,settings:e.settings}}),t("rangebar-widget",{attrs:{parameters:e.rangeBarParameters}})],1)},s=[],l=n(58732),a=n(87994),r=n(92202),o={mixins:[r.Z],components:{LabelvalueWidget:l["default"],RangebarWidget:a["default"]},computed:{labelValueParameters:function(){return[this.parameters[0],this.parameters[1],this.parameters[2],this.parameters[5],this.parameters[6]]},rangeBarParameters:function(){return[this.parameters[0],this.parameters[1],this.parameters[2],this.parameters[3],this.parameters[4],this.parameters[5],this.parameters[7],this.parameters[8]]}}},c=o,u=n(23287),d=(0,u.Z)(c,i,s,!1,null,null,null),m=d.exports},34041:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return u}});var i=function(){var e=this,t=e._self._c;return t("div",{staticClass:"led mt-2",style:[e.cssProps,e.computedStyle]})},s=[],l=(n(68995),n(58188),n(1939),n(18178),n(92202)),a={mixins:[l.Z],data:function(){return{valueId:null,colors:{TRUE:"openc3-green",FALSE:"openc3-red"}}},computed:{width:function(){return this.parameters[4]?parseInt(this.parameters[4]):20},height:function(){return this.parameters[5]?parseInt(this.parameters[5]):20},cssProps:function(){var e=this.$store.state.tlmViewerValues[this.valueId][0],t=this.colors[e];return t||(t=this.colors.ANY),t||(t="openc3-black"),{"--height":this.height+"px","--width":this.width+"px","--color":t}}},created:function(){var e=this;this.settings.forEach((function(t){switch(t[0]){case"LED_COLOR":e.colors[t[1]]=t[2];break}})),this.parameters[3]||(this.parameters[3]="CONVERTED"),this.valueId="".concat(this.parameters[0],"__").concat(this.parameters[1],"__").concat(this.parameters[2],"__").concat(this.parameters[3]),this.$store.commit("tlmViewerAddItem",this.valueId)},destroyed:function(){this.$store.commit("tlmViewerDeleteItem",this.valueId)}},r=a,o=(n(13614),n(23287)),c=(0,o.Z)(r,i,s,!1,null,"6b37bdba",null),u=c.exports},20788:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return m}});var i=function(){var e=this,t=e._self._c;return t("div",{staticClass:"limitsbar",style:[e.cssProps,e.computedStyle]},[e._m(0)])},s=[function(){var e=this,t=e._self._c;return t("div",{staticClass:"limitsbar__container"},[t("div",{staticClass:"limitsbar__redlow"}),t("div",{staticClass:"limitsbar__redhigh"}),t("div",{staticClass:"limitsbar__yellowlow"}),t("div",{staticClass:"limitsbar__yellowhigh"}),t("div",{staticClass:"limitsbar__greenlow"}),t("div",{staticClass:"limitsbar__greenhigh"}),t("div",{staticClass:"limitsbar__blue"}),t("div",{staticClass:"limitsbar__line"}),t("div",{staticClass:"limitsbar__arrow"})])}],l=(n(58188),n(1939),n(68995),n(18178),n(92202)),a=n(48392),r="DEFAULT",o={mixins:[l.Z],data:function(){return{width:160,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:r,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+"px","--container-height":this.height-5+"px","--position":this.calcPosition(e,t)+"%","--redlow-width":this.redLow+"%","--redhigh-width":this.redHigh+"%","--yellowlow-width":this.yellowLow+"%","--yellowhigh-width":this.yellowHigh+"%","--greenlow-width":this.greenLow+"%","--greenhigh-width":this.greenHigh+"%","--blue-width":this.blue+"%"}},selectedLimitsSet:function(){return this.limitsSettings.hasOwnProperty(this.currentLimitsSet)?this.currentLimitsSet:r}},created:function(){var e=this;this.api=new a.k,this.api.get_limits(this.parameters[0],this.parameters[1],this.parameters[2]).then((function(t){e.limitsSettings=t})),this.getCurrentLimitsSet(),this.currentSetRefreshInterval=setInterval(this.getCurrentLimitsSet,6e4),this.settings.forEach((function(t){"MIN_VALUE"===t[0]&&(e.minValue=parseInt(t[1])),"MAX_VALUE"===t[0]&&(e.maxValue=parseInt(t[1]))})),this.width=this.setWidth(this.parameters[4],"px",this.width),this.height=this.setHeight(this.parameters[5],"px",this.height);var t="CONVERTED";this.parameters[3]&&(t=this.parameters[3]),this.valueId="".concat(this.parameters[0],"__").concat(this.parameters[1],"__").concat(this.parameters[2],"__").concat(t),this.$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(null!=e&&t){var n=t[0]-10*this.scale;this.minValue&&this.minValue==t[0]&&(n=t[0]);t[3],this.scale;if(this.maxValue&&this.maxValue==t[3]&&t[3],e.raw)return"-Infinity"===e.raw?0:100;if(e<this.min)return 0;if(e>this.max)return 100;var i=parseInt((e-n)/this.scale);return i>100?100:i<0?0:i}},calcLimits:function(e){e&&(this.yellowLow=Math.round((e[1]-e[0])/this.scale),this.yellowHigh=Math.round((e[3]-e[2])/this.scale),e.length>4?(this.greenLow=Math.round((e[4]-e[1])/this.scale),this.greenHigh=Math.round((e[2]-e[5])/this.scale),this.blue=Math.round(100-this.redLow-this.yellowLow-this.greenLow-this.greenHigh-this.yellowHigh-this.redHigh)):(this.greenLow=Math.round(100-this.redLow-this.yellowLow-this.yellowHigh-this.redHigh),this.greenHigh=0,this.blue=0))},getCurrentLimitsSet:function(){var e=this;this.api.get_limits_set().then((function(t){e.currentLimitsSet=t}))}}},c=o,u=(n(45911),n(23287)),d=(0,u.Z)(c,i,s,!1,null,"5eb118dc",null),m=d.exports},38668:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return u}});var i=function(){var e=this,t=e._self._c;return t("div",{ref:"container",staticClass:"d-flex flex-row"},[t("div",{staticClass:"led align-self-center",style:[e.cssProps,e.computedStyle]}),t("label-widget",{style:e.computedStyle,attrs:{parameters:e.labelName,settings:e.settings,"widget-index":1}})],1)},s=[],l=(n(68995),n(92318)),a={mixins:[l.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}}},r=a,o=(n(43683),n(23287)),c=(0,o.Z)(r,i,s,!1,null,"7b6a53f7",null),u=c.exports},39288:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return m}});var i=function(){var e=this,t=e._self._c;return t("div",{staticClass:"limitsbar",style:[e.cssProps,e.computedStyle]},[e._m(0)])},s=[function(){var e=this,t=e._self._c;return t("div",{staticClass:"limitsbar__container"},[t("div",{staticClass:"limitsbar__redlow"}),t("div",{staticClass:"limitsbar__redhigh"}),t("div",{staticClass:"limitsbar__yellowlow"}),t("div",{staticClass:"limitsbar__yellowhigh"}),t("div",{staticClass:"limitsbar__greenlow"}),t("div",{staticClass:"limitsbar__greenhigh"}),t("div",{staticClass:"limitsbar__blue"}),t("div",{staticClass:"limitsbar__line"}),t("div",{staticClass:"limitsbar__arrow"})])}],l=(n(18178),n(68995),n(92202)),a=n(48392),r="DEFAULT",o={mixins:[l.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:r,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:r}},created:function(){var e=this;this.api=new a.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,s=t[0]-.1*i;t[3];if(e.raw)return"-Infinity"===e.raw?0:100;if(e<this.min)return 0;if(e>this.max)return 100;var l=parseInt((e-s)/i*100);return l>100?100:l<0?0:l}},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(45853),n(23287)),d=(0,u.Z)(c,i,s,!1,null,"3b476f5b",null),m=d.exports},34489:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return m}});var i=function(){var e=this,t=e._self._c;return t("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":""}})},s=[],l=(n(58188),n(1939),n(36728),n(68995),n(92202)),a=n(81226),r="CONVERTED",o={components:{Graph:a.Z},mixins:[l.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:r}],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:r});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}}))}},c=o,u=n(23287),d=(0,u.Z)(c,i,s,!1,null,null,null),m=d.exports},28490:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return m}});var i=function(){var e=this,t=e._self._c;return t("v-container",{staticClass:"pa-0"},e._l(e.widgetChunks,(function(n,i){return t("v-row",{key:"r"+i,attrs:{"no-gutters":""}},e._l(n,(function(n,i){return t("v-col",{key:"c"+i},[t(n.type,e._g({tag:"component",attrs:{target:n.target,parameters:n.parameters,settings:n.settings,widgets:n.widgets,name:n.name,line:n.line,lineNumber:n.lineNumber}},e.$listeners))],1)})),1)})),1)},s=[],l=(n(68995),n(548)),a=n(76635),r=n.n(a),o={mixins:[l.Z],computed:{columns:function(){return parseInt(this.parameters[0])},widgetChunks:function(){return r().chunk(this.widgets,this.columns)}}},c=o,u=n(23287),d=(0,u.Z)(c,i,s,!1,null,null,null),m=d.exports},87621:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return u}});var i=function(){var e=this,t=e._self._c;return t("v-progress-linear",{style:e.computedStyle,attrs:{height:"25",value:e._value}},[t("strong",[e._v(e._s(Math.ceil(e._value))+"%")])])},s=[],l=(n(68995),n(13489),n(18178),n(92202)),a={mixins:[l.Z],props:{value:{default:null}},data:function(){return{valueId:null,scaleFactor:1,width:100}},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.width=this.setWidth(this.parameters[4],"px",this.width),null===this.value){var e="CONVERTED";this.parameters[5]&&(e=this.parameters[5]),this.valueId="".concat(this.parameters[0],"__").concat(this.parameters[1],"__").concat(this.parameters[2],"__").concat(e),this.$store.commit("tlmViewerAddItem",this.valueId)}},destroyed:function(){this.$store.commit("tlmViewerDeleteItem",this.valueId)}},r=a,o=n(23287),c=(0,o.Z)(r,i,s,!1,null,null,null),u=c.exports},65398:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return u}});var i=function(){var e=this,t=e._self._c;return t("v-radio",{style:e.computedStyle,attrs:{"hide-details":"",dense:"",label:e.label,value:e.value}})},s=[],l=(n(71245),n(92202)),a={props:{value:{type:Number}},mixins:[l.Z],data:function(){return{label:"Radio"}},created:function(){this.label=this.parameters[0]}},r=a,o=n(23287),c=(0,o.Z)(r,i,s,!1,null,null,null),u=c.exports},12413:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return u}});var i=function(){var e=this,t=e._self._c;return t("v-radio-group",{style:e.computedStyle,attrs:{"hide-details":"",dense:""},model:{value:e.selectedIndex,callback:function(t){e.selectedIndex=t},expression:"selectedIndex"}},e._l(e.widgets,(function(n,i){return t(n.type,e._g({key:i,tag:"component",attrs:{value:i,target:n.target,parameters:n.parameters,settings:n.settings,name:n.name}},e.$listeners))})),1)},s=[],l=(n(58188),n(1939),n(68995),n(548)),a={mixins:[l.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}}},r=a,o=n(23287),c=(0,o.Z)(r,i,s,!1,null,null,null),u=c.exports},87994:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return u}});var i=function(){var e=this,t=e._self._c;return t("div",{staticClass:"rangebar",style:[e.cssProps,e.computedStyle]},[e._m(0)])},s=[function(){var e=this,t=e._self._c;return t("div",{staticClass:"rangebar__container"},[t("div",{staticClass:"rangebar__line"}),t("div",{staticClass:"rangebar__arrow"})])}],l=(n(68995),n(18178),n(92202)),a={mixins:[l.Z],data:function(){return{width:160,height:20}},computed:{cssProps:function(){return{"--height":this.height+"px","--width":this.width+"px","--container-height":this.height-5+"px","--position":this.calcPosition()+"%"}},min:function(){return parseInt(this.parameters[3])},max:function(){return parseInt(this.parameters[4])},range:function(){return this.max-this.min}},created:function(){var e=this.parameters[5]?this.parameters[5]:"CONVERTED";this.valueId="".concat(this.parameters[0],"__").concat(this.parameters[1],"__").concat(this.parameters[2],"__").concat(e),this.$store.commit("tlmViewerAddItem",this.valueId),this.width=this.setWidth(this.parameters[6],"px",this.width),this.height=this.setHeight(this.parameters[7],"px",this.height)},destroyed:function(){this.$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}}},r=a,o=(n(60244),n(23287)),c=(0,o.Z)(r,i,s,!1,null,"66c56776",null),u=c.exports},96211:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return d}});var i=function(){var e=this,t=e._self._c;return t("verticalbox-widget",e._g({attrs:{settings:e.settings,widgets:e.widgets,"content-style":e.scrollwindowStyle}},e.$listeners))},s=[],l=(n(68995),n(548)),a=n(26215),r={mixins:[l.Z],components:{VerticalboxWidget:a["default"]},computed:{maxHeight:function(){return this.parameters[0]?parseInt(this.parameters[0]):200},scrollwindowStyle:function(){return"\n max-height: ".concat(this.maxHeight,"px;\n overflow-y: scroll;\n ")}}},o=r,c=n(23287),u=(0,c.Z)(o,i,s,!1,null,null,null),d=u.exports},71591:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return u}});var i=function(){var e=this,t=e._self._c;return t("v-banner",{attrs:{"single-line":""}},[e._v(e._s(e.labelText))])},s=[],l=n(92202),a={mixins:[l.Z],computed:{labelText:function(){return this.parameters[0]}}},r=a,o=n(23287),c=(0,o.Z)(r,i,s,!1,null,null,null),u=c.exports},77627:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return u}});var i=function(){var e=this,t=e._self._c;return t("div",{style:e.style})},s=[],l=n(92202),a={mixins:[l.Z],computed:{style:function(){return["width: ".concat(this.parameters[0],"px;"),"height: ".concat(this.parameters[1],"px;")].join("")}}},r=a,o=n(23287),c=(0,o.Z)(r,i,s,!1,null,null,null),u=c.exports},42008:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return m}});var i=function(){var e=this,t=e._self._c;return t("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,sparkline:""}})},s=[],l=(n(58188),n(1939),n(36728),n(68995),n(92202)),a=n(81226),r="CONVERTED",o={components:{Graph:a.Z},mixins:[l.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:r}],secondsGraphed:300,pointsSaved:300,pointsGraphed:300,size:{height:30,width:130}}},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:r});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}}))}},c=o,u=n(23287),d=(0,u.Z)(c,i,s,!1,null,null,null),m=d.exports},87313:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return u}});n(18178);var i=function(){var e=this,t=e._self._c;return t("div",[t("v-tabs",{model:{value:e.curTab,callback:function(t){e.curTab=t},expression:"curTab"}},e._l(e.widgets,(function(n,i){return t("v-tab",{key:i},[e._v(" "+e._s(n.parameters[0])+" ")])})),1),t("v-tabs-items",{model:{value:e.curTab,callback:function(t){e.curTab=t},expression:"curTab"}},e._l(e.widgets,(function(n,i){return t("v-tab-item",{key:i},e._l(n.widgets,(function(n,s){return t(n.type,e._g({key:"".concat(i,"-").concat(s),tag:"component",attrs:{target:n.target,parameters:n.parameters,settings:n.settings,widgets:n.widgets,name:n.name,line:n.line,lineNumber:n.lineNumber}},e.$listeners))})),1)})),1)],1)},s=[],l=n(548),a={mixins:[l.Z],data:function(){return{curTab:null}},watch:{curTab:function(){this.$emit("min-max-screen")}}},r=a,o=n(23287),c=(0,o.Z)(r,i,s,!1,null,null,null),u=c.exports},7312:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return d}});var i=function(){var e=this,t=e._self._c;return t("div",{staticClass:"textbox-widget-container"},[t("v-textarea",{class:e.valueClass,style:[e.computedStyle,e.aging],attrs:{solo:"",dense:"",readonly:"","hide-details":"",placeholder:"Value",height:e.height,value:e._value,"data-test":"valueText"},on:{contextmenu:e.showContextMenu}}),t("v-menu",{attrs:{"position-x":e.x,"position-y":e.y,absolute:"","offset-y":""},model:{value:e.contextMenuShown,callback:function(t){e.contextMenuShown=t},expression:"contextMenuShown"}},[t("v-list",e._l(e.contextMenuOptions,(function(n,i){return t("v-list-item",{key:i,on:{click:function(e){return e.stopPropagation(),n.action.apply(null,arguments)}}},[t("v-list-item-title",[e._v(e._s(n.title))])],1)})),1)],1),t("details-dialog",{attrs:{"target-name":e.parameters[0],"packet-name":e.parameters[1],"item-name":e.parameters[2]},model:{value:e.viewDetails,callback:function(t){e.viewDetails=t},expression:"viewDetails"}})],1)},s=[],l=n(92318),a=n(98977),r=(n(80131),{components:{DetailsDialog:a.Z},data:function(){return{width:200,height:200}},mixins:[l.Z],computed:{aging:function(){return{"--aging":this.grayLevel}}},created:function(){this.width=this.setWidth(this.parameters[3],"px",this.width),this.height=this.setHeight(this.parameters[4],"px",this.height)},methods:{getType:function(){var e="CONVERTED";return this.parameters[5]&&(e=this.parameters[5]),e}}}),o=r,c=(n(26422),n(23287)),u=(0,c.Z)(o,i,s,!1,null,"0b5bfdc6",null),d=u.exports},57451:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return u}});var i=function(){var e=this,t=e._self._c;return t("v-text-field",{style:e.computedStyle,attrs:{solo:"",dense:"","single-line":"","hide-no-data":"","hide-details":""},model:{value:e.value,callback:function(t){e.value=t},expression:"value"}})},s=[],l=(n(58188),n(1939),n(92202)),a={mixins:[l.Z],data:function(){return{value:null}},created:function(){var e=this;this.settings.forEach((function(t){"NAMED_WIDGET"===t[0]&&t[2].setNamedWidget(t[1],e)})),this.setWidth(this.parameters[0],"ch",12),this.parameters[1]&&(this.value=this.parameters[1])},methods:{text:function(){return this.value}}},r=a,o=n(23287),c=(0,o.Z)(r,i,s,!1,null,null,null),u=c.exports},94788:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return u}});var i=function(){var e=this,t=e._self._c;return t("span",{staticClass:"text-h5 text-center pa-1 mt-1 label",style:e.computedStyle},[e._v(" "+e._s(e.labelText)+" ")])},s=[],l=(n(71372),n(92202)),a={mixins:[l.Z],computed:{labelText:function(){return this.parameters[0]}},created:function(){if(this.parameters.length<1)throw new Error("Not enough parameters for TITLE.")}},r=a,o=n(23287),c=(0,o.Z)(r,i,s,!1,null,null,null),u=c.exports},61058:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return m}});var i=function(){var e=this,t=e._self._c;return t("div",{staticClass:"value-widget-container"},[t("v-tooltip",{attrs:{bottom:""},scopedSlots:e._u([{key:"activator",fn:function(n){var i=n.on,s=n.attrs;return[t("v-text-field",e._g(e._b({class:e.valueClass,style:[e.computedStyle,e.aging],attrs:{solo:"",dense:"",readonly:"","single-line":"","hide-no-data":"","hide-details":"",placeholder:"Value",value:e._value,"data-test":"value"},on:{contextmenu:e.showContextMenu}},"v-text-field",s,!1),i))]}}])},[t("span",[e._v(e._s(e.fullName))])]),t("v-menu",{attrs:{"position-x":e.x,"position-y":e.y,absolute:"","offset-y":""},model:{value:e.contextMenuShown,callback:function(t){e.contextMenuShown=t},expression:"contextMenuShown"}},[t("v-list",e._l(e.contextMenuOptions,(function(n,i){return t("v-list-item",{key:i,on:{click:function(e){return e.stopPropagation(),n.action.apply(null,arguments)}}},[t("v-list-item-title",[e._v(e._s(n.title))])],1)})),1)],1),t("details-dialog",{attrs:{"target-name":e.parameters[0],"packet-name":e.parameters[1],"item-name":e.parameters[2]},model:{value:e.viewDetails,callback:function(t){e.viewDetails=t},expression:"viewDetails"}})],1)},s=[],l=(n(68995),n(92318)),a=n(98977),r=4,o={components:{DetailsDialog:a.Z},mixins:[l.Z],data:function(){return{width:12+r}},computed:{fullName:function(){return this.parameters[0]+" "+this.parameters[1]+" "+this.parameters[2]},aging:function(){return{"--aging":this.grayLevel}}},created:function(){this.verifyNumParams("VALUE",3,3,"VALUE <TARGET> <PACKET> <ITEM>"),this.width=this.setWidth(parseInt(this.parameters[4])+r,"ch",this.width)}},c=o,u=(n(43792),n(23287)),d=(0,u.Z)(c,i,s,!1,null,"c4d1ea2c",null),m=d.exports},6154:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return m}});n(32501),n(43450),n(95342),n(58188);var i=function(){var e=this,t=e._self._c;return t("div",{ref:"container",staticClass:"d-flex flex-row"},[t("value-widget",{attrs:{parameters:e.parameters,settings:e.settings}}),t("limitsbar-widget",{attrs:{parameters:e.parameters.slice(0,4),settings:e.settings.filter((function(e){return 1==e[0]})).map((function(e){return e.slice(1)}))}})],1)},s=[],l=n(61058),a=n(20788),r=n(92202),o={mixins:[r.Z],components:{ValueWidget:l["default"],LimitsbarWidget:a["default"]},computed:{limitsBarParameters:function(){return[this.parameters[0],this.parameters[1],this.parameters[2],this.parameters[3]]}}},c=o,u=n(23287),d=(0,u.Z)(c,i,s,!1,null,null,null),m=d.exports},23970:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return m}});var i=function(){var e=this,t=e._self._c;return t("div",{ref:"container",staticClass:"d-flex flex-column",style:e.computedStyle},[t("limitscolumn-widget",{attrs:{parameters:e.limitsColumnParameters,settings:e.settings,"widget-index":0}}),t("value-widget",{attrs:{parameters:e.parameters,settings:e.settings,"widget-index":1}})],1)},s=[],l=(n(36728),n(61058)),a=n(39288),r=n(92202),o={mixins:[r.Z],components:{ValueWidget:l["default"],LimitscolumnWidget:a["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,s,!1,null,null,null),m=d.exports},30792:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return m}});var i=function(){var e=this,t=e._self._c;return t("div",{ref:"container",staticClass:"d-flex flex-row"},[t("value-widget",{attrs:{parameters:e.valueParameters}}),t("rangebar-widget",{attrs:{parameters:e.rangeBarParameters}})],1)},s=[],l=n(61058),a=n(87994),r=n(92202),o={mixins:[r.Z],components:{ValueWidget:l["default"],RangebarWidget:a["default"]},computed:{valueParameters:function(){return[this.parameters[0],this.parameters[1],this.parameters[2],this.parameters[5],this.parameters[6]]},rangeBarParameters:function(){return[this.parameters[0],this.parameters[1],this.parameters[2],this.parameters[3],this.parameters[4],this.parameters[5],this.parameters[7],this.parameters[8]]}}},c=o,u=n(23287),d=(0,u.Z)(c,i,s,!1,null,null,null),m=d.exports},51171:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return u}});var i=function(){var e=this,t=e._self._c;return t("div",{ref:"container",staticClass:"d-flex flex-column"},e._l(e.widgets,(function(n,i){return t(n.type,e._g({key:i,tag:"component",attrs:{target:n.target,parameters:n.parameters,settings:n.settings,widgets:n.widgets,name:n.name,line:n.line,lineNumber:n.lineNumber}},e.$listeners))})),1)},s=[],l=n(548),a={mixins:[l.Z]},r=a,o=n(23287),c=(0,o.Z)(r,i,s,!1,null,null,null),u=c.exports},26215:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return d}});var i=function(){var e=this,t=e._self._c;return t("div",[t("v-banner",{attrs:{"single-line":""}},[e._v(e._s(e.parameters.join(" ")))]),t("vertical-widget",e._g({style:e.contentStyle,attrs:{parameters:e.parameters,settings:e.settings,widgets:e.widgets}},e.$listeners))],1)},s=[],l=n(51171),a=n(548),r={mixins:[a.Z],components:{VerticalWidget:l["default"]},props:{contentStyle:{type:String}}},o=r,c=(n(26275),n(23287)),u=(0,c.Z)(o,i,s,!1,null,"8f70d4e2",null),d=u.exports},30366:function(e,t,n){"use strict";n.r(t);var i=n(33467),s=n.n(i),l=n(58715),a=n.n(l),r=a()(s());r.push([e.id,".ace_autocomplete{width:60vw!important}",""]),t["default"]=r},80269:function(e,t,n){"use strict";n.r(t);var i=n(33467),s=n.n(i),l=n(58715),a=n.n(l),r=a()(s());r.push([e.id,"#editor[data-v-40612998]{height:50vh;width:75vw;font-size:16px}.v-card[data-v-40612998]{background-color:var(--v-tertiary-darken2)}.v-textarea[data-v-40612998] textarea{padding:5px;background-color:var(--v-tertiary-darken1)!important}",""]),t["default"]=r},59843:function(e,t,n){"use strict";n.r(t);var i=n(33467),s=n.n(i),l=n(58715),a=n.n(l),r=a()(s());r.push([e.id,".v-card[data-v-80e18d8a]{background-color:var(--v-tertiary-darken2)}.v-textarea[data-v-80e18d8a] textarea{padding:5px;background-color:var(--v-tertiary-darken1)!important}",""]),t["default"]=r},45688:function(e,t,n){"use strict";n.r(t);var i=n(33467),s=n.n(i),l=n(58715),a=n.n(l),r=a()(s());r.push([e.id,".grid[data-v-91e89306]{position:relative}.item[data-v-91e89306]{position:absolute;display:block;margin:5px;z-index:1}.item.muuri-item-dragging[data-v-91e89306]{z-index:3}.item.muuri-item-releasing[data-v-91e89306]{z-index:2}.item.muuri-item-hidden[data-v-91e89306]{z-index:0}.item-content[data-v-91e89306]{position:relative;cursor:pointer;border-radius:6px}",""]),t["default"]=r},30201:function(e,t,n){"use strict";n.r(t);var i=n(33467),s=n.n(i),l=n(58715),a=n.n(l),r=a()(s());r.push([e.id,".label[data-v-b02d7144]{font-weight:700;text-transform:capitalize}",""]),t["default"]=r},55803:function(e,t,n){"use strict";n.r(t);var i=n(33467),s=n.n(i),l=n(58715),a=n.n(l),r=a()(s());r.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"]=r},91288:function(e,t,n){"use strict";n.r(t);var i=n(33467),s=n.n(i),l=n(58715),a=n.n(l),r=a()(s());r.push([e.id,"#chart[data-v-380bc4e2]{background-color:var(--v-tertiary-darken2)}#chart[data-v-380bc4e2] .u-select{background-color:hsla(0,0%,100%,.07)}",""]),t["default"]=r},30073:function(e,t,n){"use strict";n.r(t);var i=n(33467),s=n.n(i),l=n(58715),a=n.n(l),r=a()(s());r.push([e.id,".v-list[data-v-6b1b57d9] .v-label{margin-left:5px}.v-list-item__icon[data-v-6b1b57d9]{margin-right:15px!important}.v-list-item__title[data-v-6b1b57d9]{color:#fff}",""]),t["default"]=r},39299:function(e,t,n){"use strict";n.r(t);var i=n(33467),s=n.n(i),l=n(58715),a=n.n(l),r=a()(s());r.push([e.id,".array-widget-container[data-v-5cd86706] .v-input__slot{background:rgba(var(--aging),var(--aging),var(--aging),1)!important}.value[data-v-5cd86706] div{min-height:24px!important;display:flex!important;align-items:center!important}.openc3-green[data-v-5cd86706] input{color:#00c800}.openc3-yellow[data-v-5cd86706] input{color:#ffdc00}.openc3-red[data-v-5cd86706] input{color:#ff2d2d}.openc3-blue[data-v-5cd86706] input{color:#09f}.openc3-purple[data-v-5cd86706] input{color:#c800c8}.openc3-black[data-v-5cd86706] input{color:#000}.openc3-white[data-v-5cd86706] input{color:#fff}",""]),t["default"]=r},27990:function(e,t,n){"use strict";n.r(t);var i=n(33467),s=n.n(i),l=n(58715),a=n.n(l),r=a()(s());r.push([e.id,".block-widget-container[data-v-48b8ff8d] .v-input__slot{background:rgba(var(--aging),var(--aging),var(--aging),1)!important}.v-textarea[data-v-48b8ff8d] textarea{font-family:Courier New,Courier,monospace}.value[data-v-48b8ff8d] div{min-height:24px!important;display:flex!important;align-items:center!important}.openc3-green[data-v-48b8ff8d] input{color:#00c800}.openc3-yellow[data-v-48b8ff8d] input{color:#ffdc00}.openc3-red[data-v-48b8ff8d] input{color:#ff2d2d}.openc3-blue[data-v-48b8ff8d] input{color:#09f}.openc3-purple[data-v-48b8ff8d] input{color:#c800c8}.openc3-black[data-v-48b8ff8d] input{color:#000}.openc3-white[data-v-48b8ff8d] input{color:#fff}",""]),t["default"]=r},48213:function(e,t,n){"use strict";n.r(t);var i=n(33467),s=n.n(i),l=n(58715),a=n.n(l),r=a()(s());r.push([e.id,".v-banner[data-v-1307e02a] div{background-color:var(--v-tertiary-darken2)!important}",""]),t["default"]=r},33061:function(e,t,n){"use strict";n.r(t);var i=n(33467),s=n.n(i),l=n(58715),a=n.n(l),r=a()(s());r.push([e.id,".label[data-v-712bf360]{font-family:var(--font-family);font-size:var(--font-size);font-weight:var(--font-weight);font-style:var(--font-style)}",""]),t["default"]=r},14804:function(e,t,n){"use strict";n.r(t);var i=n(33467),s=n.n(i),l=n(58715),a=n.n(l),r=a()(s());r.push([e.id,".led[data-v-6b37bdba]{height:var(--height);width:var(--width);background-color:var(--color);border-radius:50%}",""]),t["default"]=r},99938:function(e,t,n){"use strict";n.r(t);var i=n(33467),s=n.n(i),l=n(58715),a=n.n(l),r=a()(s());r.push([e.id,".led[data-v-7b6a53f7]{height:var(--height);width:var(--width);background-color:var(--color);border-radius:50%}",""]),t["default"]=r},26339:function(e,t,n){"use strict";n.r(t);var i=n(33467),s=n.n(i),l=n(58715),a=n.n(l),r=a()(s());r.push([e.id,".textbox-widget-container[data-v-0b5bfdc6] .v-input__slot{background:rgba(var(--aging),var(--aging),var(--aging),1)!important}.value[data-v-0b5bfdc6] div{min-height:24px!important;display:flex!important;align-items:center!important}.openc3-green[data-v-0b5bfdc6] input{color:#00c800}.openc3-yellow[data-v-0b5bfdc6] input{color:#ffdc00}.openc3-red[data-v-0b5bfdc6] input{color:#ff2d2d}.openc3-blue[data-v-0b5bfdc6] input{color:#09f}.openc3-purple[data-v-0b5bfdc6] input{color:#c800c8}.openc3-black[data-v-0b5bfdc6] input{color:#000}.openc3-white[data-v-0b5bfdc6] input{color:#fff}",""]),t["default"]=r},52102:function(e,t,n){"use strict";n.r(t);var i=n(33467),s=n.n(i),l=n(58715),a=n.n(l),r=a()(s());r.push([e.id,".v-banner[data-v-8f70d4e2] div{background-color:var(--v-tertiary-darken2)!important}",""]),t["default"]=r},99845:function(e,t,n){"use strict";n.r(t);var i=n(33467),s=n.n(i),l=n(58715),a=n.n(l),r=a()(s());r.push([e.id,"svg[data-v-17947dc7]{background-color:#fff}",""]),t["default"]=r},79717:function(e,t,n){"use strict";n.r(t);var i=n(33467),s=n.n(i),l=n(58715),a=n.n(l),r=a()(s());r.push([e.id,".limitsbar[data-v-5eb118dc]{cursor:default;display:flex;justify-content:center;align-items:center;padding:5px;width:var(--width)}.limitsbar__container[data-v-5eb118dc]{position:relative;flex:1;height:var(--container-height);border:1px solid #000;background-color:#fff}.limitsbar__redlow[data-v-5eb118dc]{left:0;width:var(--redlow-width)}.limitsbar__redhigh[data-v-5eb118dc],.limitsbar__redlow[data-v-5eb118dc]{position:absolute;top:-1px;height:var(--container-height);background-color:#ff2d2d}.limitsbar__redhigh[data-v-5eb118dc]{right:0;width:var(--redhigh-width)}.limitsbar__yellowlow[data-v-5eb118dc]{left:var(--redlow-width);width:var(--yellowlow-width)}.limitsbar__yellowhigh[data-v-5eb118dc],.limitsbar__yellowlow[data-v-5eb118dc]{position:absolute;top:-1px;height:var(--container-height);background-color:#ffdc00}.limitsbar__yellowhigh[data-v-5eb118dc]{right:var(--redhigh-width);width:var(--yellowhigh-width)}.limitsbar__greenlow[data-v-5eb118dc]{left:calc(var(--redlow-width) + var(--yellowlow-width));width:var(--greenlow-width)}.limitsbar__greenhigh[data-v-5eb118dc],.limitsbar__greenlow[data-v-5eb118dc]{position:absolute;top:-1px;height:var(--container-height);background-color:#00c800}.limitsbar__greenhigh[data-v-5eb118dc]{right:calc(var(--redhigh-width) + var(--yellowhigh-width));width:var(--greenhigh-width)}.limitsbar__blue[data-v-5eb118dc]{top:-1px;left:calc(var(--redlow-width) + var(--yellowlow-width) + var(--greenlow-width));width:var(--blue-width);background-color:#09f}.limitsbar__blue[data-v-5eb118dc],.limitsbar__line[data-v-5eb118dc]{position:absolute;height:var(--container-height)}.limitsbar__line[data-v-5eb118dc]{left:var(--position);width:1px;background-color:gray}.limitsbar__arrow[data-v-5eb118dc]{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"]=r},21706:function(e,t,n){"use strict";n.r(t);var i=n(33467),s=n.n(i),l=n(58715),a=n.n(l),r=a()(s());r.push([e.id,".limitsbar[data-v-3b476f5b]{cursor:default;display:flex;flex-direction:column;justify-content:center;align-items:center;padding:5px;height:var(--height)}.limitsbar__container[data-v-3b476f5b]{position:relative;flex:1 1 100%;width:var(--container-width);border:1px solid #000;background-color:#fff}.limitsbar__redlow[data-v-3b476f5b]{bottom:0;height:var(--redlow-height)}.limitsbar__redhigh[data-v-3b476f5b],.limitsbar__redlow[data-v-3b476f5b]{position:absolute;width:var(--container-width);background-color:#ff2d2d}.limitsbar__redhigh[data-v-3b476f5b]{top:0;height:var(--redhigh-height)}.limitsbar__yellowlow[data-v-3b476f5b]{bottom:var(--redlow-height);height:var(--yellowlow-height)}.limitsbar__yellowhigh[data-v-3b476f5b],.limitsbar__yellowlow[data-v-3b476f5b]{position:absolute;width:var(--container-width);background-color:#ffdc00}.limitsbar__yellowhigh[data-v-3b476f5b]{top:var(--redhigh-height);height:var(--yellowhigh-height)}.limitsbar__greenlow[data-v-3b476f5b]{bottom:calc(var(--redlow-height) + var(--yellowlow-height));height:var(--greenlow-height)}.limitsbar__greenhigh[data-v-3b476f5b],.limitsbar__greenlow[data-v-3b476f5b]{position:absolute;width:var(--container-width);background-color:#00c800}.limitsbar__greenhigh[data-v-3b476f5b]{top:calc(var(--redhigh-height) + var(--yellowhigh-height));height:var(--greenhigh-height)}.limitsbar__blue[data-v-3b476f5b]{bottom:calc(var(--redlow-height) + var(--yellowlow-height) + var(--greenlow-height));height:var(--blue-height);background-color:#09f}.limitsbar__blue[data-v-3b476f5b],.limitsbar__line[data-v-3b476f5b]{position:absolute;width:var(--container-width)}.limitsbar__line[data-v-3b476f5b]{bottom:var(--position);height:1px;background-color:gray}.limitsbar__arrow[data-v-3b476f5b]{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"]=r},96444:function(e,t,n){"use strict";n.r(t);var i=n(33467),s=n.n(i),l=n(58715),a=n.n(l),r=a()(s());r.push([e.id,".rangebar[data-v-66c56776]{cursor:default;display:flex;justify-content:center;align-items:center;padding:5px;width:var(--width)}.rangebar__container[data-v-66c56776]{position:relative;flex:1;height:var(--container-height);border:1px solid #000;background-color:#fff}.rangebar__line[data-v-66c56776]{width:1px;height:var(--container-height);background-color:gray}.rangebar__arrow[data-v-66c56776],.rangebar__line[data-v-66c56776]{position:absolute;left:var(--position)}.rangebar__arrow[data-v-66c56776]{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"]=r},51134:function(e,t,n){"use strict";n.r(t);var i=n(33467),s=n.n(i),l=n(58715),a=n.n(l),r=a()(s());r.push([e.id,".value-widget-container[data-v-c4d1ea2c]{min-height:34px}.value-widget-container[data-v-c4d1ea2c] .v-input__slot{background:rgba(var(--aging),var(--aging),var(--aging),1)!important}.value[data-v-c4d1ea2c] div{min-height:24px!important;display:flex!important;align-items:center!important}.openc3-green[data-v-c4d1ea2c] input{color:#00c800}.openc3-yellow[data-v-c4d1ea2c] input{color:#ffdc00}.openc3-red[data-v-c4d1ea2c] input{color:#ff2d2d}.openc3-blue[data-v-c4d1ea2c] input{color:#09f}.openc3-purple[data-v-c4d1ea2c] input{color:#c800c8}.openc3-black[data-v-c4d1ea2c] input{color:#000}.openc3-white[data-v-c4d1ea2c] input{color:#fff}",""]),t["default"]=r},59221:function(e,t,n){var i=n(30366);i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[e.id,i,""]]),i.locals&&(e.exports=i.locals);var s=n(3514).Z;s("7cac3903",i,!0,{sourceMap:!1,shadowMode:!1})},96146:function(e,t,n){var i=n(80269);i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[e.id,i,""]]),i.locals&&(e.exports=i.locals);var s=n(3514).Z;s("9a59f2e2",i,!0,{sourceMap:!1,shadowMode:!1})},39764:function(e,t,n){var i=n(59843);i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[e.id,i,""]]),i.locals&&(e.exports=i.locals);var s=n(3514).Z;s("32f0b62c",i,!0,{sourceMap:!1,shadowMode:!1})},17067:function(e,t,n){var i=n(45688);i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[e.id,i,""]]),i.locals&&(e.exports=i.locals);var s=n(3514).Z;s("3b735128",i,!0,{sourceMap:!1,shadowMode:!1})},98171:function(e,t,n){var i=n(30201);i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[e.id,i,""]]),i.locals&&(e.exports=i.locals);var s=n(3514).Z;s("e6662f94",i,!0,{sourceMap:!1,shadowMode:!1})},654:function(e,t,n){var i=n(55803);i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[e.id,i,""]]),i.locals&&(e.exports=i.locals);var s=n(3514).Z;s("c25edaf4",i,!0,{sourceMap:!1,shadowMode:!1})},25685:function(e,t,n){var i=n(91288);i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[e.id,i,""]]),i.locals&&(e.exports=i.locals);var s=n(3514).Z;s("9dfb7adc",i,!0,{sourceMap:!1,shadowMode:!1})},64387:function(e,t,n){var i=n(30073);i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[e.id,i,""]]),i.locals&&(e.exports=i.locals);var s=n(3514).Z;s("45b2ead8",i,!0,{sourceMap:!1,shadowMode:!1})},91480:function(e,t,n){var i=n(39299);i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[e.id,i,""]]),i.locals&&(e.exports=i.locals);var s=n(3514).Z;s("0bb5a694",i,!0,{sourceMap:!1,shadowMode:!1})},9492:function(e,t,n){var i=n(27990);i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[e.id,i,""]]),i.locals&&(e.exports=i.locals);var s=n(3514).Z;s("0af882f1",i,!0,{sourceMap:!1,shadowMode:!1})},71451:function(e,t,n){var i=n(48213);i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[e.id,i,""]]),i.locals&&(e.exports=i.locals);var s=n(3514).Z;s("50923c24",i,!0,{sourceMap:!1,shadowMode:!1})},11089:function(e,t,n){var i=n(33061);i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[e.id,i,""]]),i.locals&&(e.exports=i.locals);var s=n(3514).Z;s("0b0f9cdc",i,!0,{sourceMap:!1,shadowMode:!1})},13614:function(e,t,n){var i=n(14804);i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[e.id,i,""]]),i.locals&&(e.exports=i.locals);var s=n(3514).Z;s("1aea39fc",i,!0,{sourceMap:!1,shadowMode:!1})},43683:function(e,t,n){var i=n(99938);i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[e.id,i,""]]),i.locals&&(e.exports=i.locals);var s=n(3514).Z;s("7b6a26e0",i,!0,{sourceMap:!1,shadowMode:!1})},26422:function(e,t,n){var i=n(26339);i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[e.id,i,""]]),i.locals&&(e.exports=i.locals);var s=n(3514).Z;s("6c25233b",i,!0,{sourceMap:!1,shadowMode:!1})},26275:function(e,t,n){var i=n(52102);i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[e.id,i,""]]),i.locals&&(e.exports=i.locals);var s=n(3514).Z;s("09da99ef",i,!0,{sourceMap:!1,shadowMode:!1})},15560:function(e,t,n){var i=n(99845);i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[e.id,i,""]]),i.locals&&(e.exports=i.locals);var s=n(3514).Z;s("5f683430",i,!0,{sourceMap:!1,shadowMode:!1})},45911:function(e,t,n){var i=n(79717);i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[e.id,i,""]]),i.locals&&(e.exports=i.locals);var s=n(3514).Z;s("1ea1f59e",i,!0,{sourceMap:!1,shadowMode:!1})},45853:function(e,t,n){var i=n(21706);i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[e.id,i,""]]),i.locals&&(e.exports=i.locals);var s=n(3514).Z;s("5353aa35",i,!0,{sourceMap:!1,shadowMode:!1})},60244:function(e,t,n){var i=n(96444);i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[e.id,i,""]]),i.locals&&(e.exports=i.locals);var s=n(3514).Z;s("090e1478",i,!0,{sourceMap:!1,shadowMode:!1})},43792:function(e,t,n){var i=n(51134);i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[e.id,i,""]]),i.locals&&(e.exports=i.locals);var s=n(3514).Z;s("06e5b457",i,!0,{sourceMap:!1,shadowMode:!1})}}]);
|
2
|
+
//# sourceMappingURL=668.js.map
|