openc3-cosmos-tool-tlmviewer 5.4.2 → 5.4.3.pre.beta0.20230214173046
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/tools/tlmviewer/js/439.js +1 -1
- data/tools/tlmviewer/js/439.js.map +1 -1
- data/tools/tlmviewer/js/734.js +2 -2
- data/tools/tlmviewer/js/734.js.map +1 -1
- data/tools/tlmviewer/js/app.js +1 -1
- data/tools/tlmviewer/js/app.js.map +1 -1
- metadata +4 -4
data/tools/tlmviewer/js/439.js
CHANGED
@@ -1,2 +1,2 @@
|
|
1
|
-
(self["webpackChunk_openc3_cosmos_tool_tlmviewer"]=self["webpackChunk_openc3_cosmos_tool_tlmviewer"]||[]).push([[439],{15507:function(e,t,n){var i={"./ArrayWidget.vue":91679,"./BlockWidget.vue":69674,"./ButtonWidget.vue":66336,"./CanvasWidget.vue":37739,"./CanvasdotWidget.vue":72810,"./CanvasimageWidget.vue":4673,"./CanvasimagevalueWidget.vue":62847,"./CanvaslabelWidget.vue":19091,"./CanvaslabelvalueWidget.vue":19269,"./CanvaslineWidget.vue":96068,"./CanvaslinevalueWidget.vue":87502,"./CheckbuttonWidget.vue":6122,"./ComboboxWidget.vue":84190,"./DynamicWidget.vue":26593,"./FormatvalueWidget.vue":90742,"./HorizontalWidget.vue":21282,"./HorizontalboxWidget.vue":23901,"./IframeWidget.vue":59673,"./ImageviewerWidget.vue":29685,"./LabelWidget.vue":6903,"./LabelledWidget.vue":1633,"./LabelprogressbarWidget.vue":28,"./LabelsparklineWidget.vue":5986,"./LabelvalueWidget.vue":69233,"./LabelvaluedescWidget.vue":41038,"./LabelvaluelimitsbarWidget.vue":80129,"./LabelvaluelimitscolumnWidget.vue":87435,"./LabelvaluerangebarWidget.vue":32678,"./LedWidget.vue":26626,"./LimitsbarWidget.vue":97619,"./LimitscolorWidget.vue":93396,"./LimitscolumnWidget.vue":29677,"./LinegraphWidget.vue":9701,"./MatrixbycolumnsWidget.vue":78577,"./ProgressbarWidget.vue":96129,"./RadiobuttonWidget.vue":1882,"./RadiogroupWidget.vue":22201,"./RangebarWidget.vue":57280,"./ScrollwindowWidget.vue":44449,"./SectionheaderWidget.vue":1138,"./SpacerWidget.vue":98213,"./SparklineWidget.vue":24810,"./TabbookWidget.vue":90871,"./TextboxWidget.vue":31597,"./TextfieldWidget.vue":71447,"./TitleWidget.vue":43748,"./ValueWidget.vue":25572,"./ValuelimitsbarWidget.vue":97749,"./ValuelimitscolumnWidget.vue":35979,"./ValuerangebarWidget.vue":90330,"./VerticalWidget.vue":17814,"./VerticalboxWidget.vue":98477};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(27233),n(28673),n(32501),n(58188),n(88233);var i=n(92202);n(80131);t["Z"]={mixins:[i.Z],props:{value:{default:null},limitsState:{type:String,default:null},counter:{default:null},formatString:null},data:function(){var e=this;return{curValue:null,prevValue:null,grayLevel:80,grayRate:5,valueId:null,colorBlind:!1,viewDetails:!1,contextMenuShown:!1,x:0,y:0,contextMenuOptions:[{title:"Details",action:function(){e.contextMenuShown=!1,e.viewDetails=!0}},{title:"Graph",action:function(){window.open("/tools/tlmgrapher/"+e.parameters[0]+"/"+e.parameters[1]+"/"+e.parameters[2],"_blank")}}]}},watch:{_counter:function(e,t){this.curValue!==this.prevValue?this.grayLevel=80:(this.grayLevel-=this.grayRate,this.grayLevel<30&&(this.grayLevel=30)),this.prevValue=this.curValue}},computed:{_value:function(){return this.curValue=this.value,null===this.curValue&&(this.$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(e&&"String"===e["json_class"]&&void 0!==e["raw"]){var t=Array.from(e["raw"].slice(0,32),(function(e){return("0"+(255&e).toString(16)).slice(-2)})).join(" ").toUpperCase();return e["raw"].length>32&&(t+="..."),t}if("Array"===Object.prototype.toString.call(e).slice(8,-1)){for(var n="[",i=0;i<e.length;i++)"String"===Object.prototype.toString.call(e[i]).slice(8,-1)?n+='"'+e[i]+'"':n+=e[i],i!=e.length-1&&(n+=", ");return n+="]",n}return"Object"===Object.prototype.toString.call(e).slice(8,-1)?"":this.formatString&&e?sprintf(this.formatString,e):""+e},showContextMenu:function(e){var t=this;e.preventDefault(),this.contextMenuShown=!1,this.x=e.clientX,this.y=e.clientY,this.$nextTick((function(){t.contextMenuShown=!0}))}}}},92202:function(e,t,n){"use strict";n(71245),n(58188),n(1939),n(68995),n(32501),n(49228),n(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=10;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)}))}},{key:"recordPing",value:function(){this._cable.connection.monitor.recordPing()}}]),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();if(0!==c.length){if(!0===l){if("#"===c[0])continue;c=c.substring(1,c.length)}var u=c.charAt(c.length-1),d=!1;switch(u){case"+":d=!0;case"\\":var m=c.substring(0,c.length-1).trim();this.line+=m.substring(0,m.length-1),d&&(this.line+="\n"),l=!0;continue;case"&":this.line+=c.substring(0,c.length-1);continue;default:this.line+=c}l=!1;var h=/("([^\\"]|\\.)*")|('([^\\']|\\.)*')|\S+/g,p=this.scan_string(this.line,h),A="";if(p.length>0&&(A+=p[0]),0===A.length||"#"===A.charAt(0)?this.keyword=null:this.keyword=A.toUpperCase(),this.parameters=[],null!==this.keyword){var f=p.length;if(f>1)for(var v=1;v<f;v++){var g=p[v];if(g.length>0&&"#"===g.charAt(0))break;i?this.parameters.push(this.remove_quotes(g)):this.parameters.push(g)}s(this.keyword,this.parameters,this.line,this.lineNumber),this.line=""}else n&&s(this.keyword,this.parameters,this.line,this.lineNumber),this.line=""}}}}]),e}()},48392:function(e,t,n){"use strict";n.d(t,{k:function(){return d}});var i=n(26259),s=n(15789),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:"ensure_offline_access",value:function(){var e=this;this.offline_access_needed().then((function(t){t&&(localStorage.openc3OfflineToken?e.set_offline_access(localStorage.openc3OfflineToken).then((function(){delete localStorage.openc3OfflineToken})):OpenC3Auth.getOfflineAccess())}))}},{key:"offline_access_needed",value:function(){return this.exec("offline_access_needed",[])}},{key:"set_offline_access",value:function(e){return this.exec("set_offline_access",[e])}},{key:"get_all_interface_info",value:function(){return this.exec("get_all_interface_info",[])}},{key:"map_target_to_interface",value:function(e,t){return this.exec("map_target_to_interface",[e,t])}},{key:"connect_interface",value:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];return n.length>0?this.exec("connect_interface",[e,n]):this.exec("connect_interface",[e])}},{key:"disconnect_interface",value:function(e){return this.exec("disconnect_interface",[e])}},{key:"get_all_router_info",value:function(){return this.exec("get_all_router_info",[])}},{key:"connect_router",value:function(e){return this.exec("connect_router",[e])}},{key:"disconnect_router",value:function(e){return this.exec("disconnect_router",[e])}},{key:"get_target_interfaces",value:function(){return this.exec("get_target_interfaces",[])}},{key:"get_all_target_info",value:function(){return this.exec("get_all_target_info",[])}},{key:"get_tlm_cnts",value:function(e){return this.exec("get_tlm_cnts",[e])}},{key:"get_item",value:function(e,t,n){return this.exec("get_item",[e,t,n])}},{key:"get_parameter",value:function(e,t,n){return this.exec("get_parameter",[e,t,n])}},{key:"get_all_packet_logger_info",value:function(){return this.exec("get_all_packet_logger_info",[])}},{key:"start_logging",value:function(){return this.exec("start_logging",[])}},{key:"stop_logging",value:function(){return this.exec("stop_logging",[])}},{key:"start_cmd_log",value:function(e){return this.exec("start_cmd_log",[e])}},{key:"start_tlm_log",value:function(e){return this.exec("start_tlm_log",[e])}},{key:"stop_cmd_log",value:function(e){return this.exec("stop_cmd_log",[e])}},{key:"stop_tlm_log",value:function(e){return this.exec("stop_tlm_log",[e])}},{key:"get_server_status",value:function(){return this.exec("get_server_status",[])}},{key:"get_limits_sets",value:function(){return this.exec("get_limits_sets",[])}},{key:"get_limits_set",value:function(){return this.exec("get_limits_set",[])}},{key:"set_limits_set",value:function(e){return this.exec("set_limits_set",[e])}},{key:"get_background_tasks",value:function(){return this.exec("get_background_tasks",[])}},{key:"start_background_task",value:function(e){return this.exec("start_background_task",[e])}},{key:"stop_background_task",value:function(e){return this.exec("stop_background_task",[e])}},{key:"get_target",value:function(e){return this.exec("get_target",[e])}},{key:"get_target_list",value:function(){return this.exec("get_target_list",[])}},{key:"get_telemetry",value:function(e,t){return this.exec("get_telemetry",[e,t])}},{key:"get_all_telemetry",value:function(e){return this.exec("get_all_telemetry",[e])}},{key:"get_all_telemetry_names",value:function(e){return this.exec("get_all_telemetry_names",[e])}},{key:"get_tlm_packet",value:function(){var e=(0,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:"inject_tlm",value:function(){var e=(0,a.Z)((0,s.Z)().mark((function e(t,n){var i,l,a=arguments;return(0,s.Z)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return i=a.length>2&&void 0!==a[2]?a[2]:null,l=a.length>3&&void 0!==a[3]?a[3]:"CONVERTED",e.next=4,this.exec("inject_tlm",[t,n,i],{type:l});case 4:data=e.sent;case 5:case"end":return e.stop()}}),e,this)})));function t(t,n){return e.apply(this,arguments)}return t}()},{key:"set_tlm",value:function(e,t,n,i){return this.exec("set_tlm",[e,t,n],{type:i})}},{key:"override_tlm",value:function(e,t,n,i){return this.exec("override_tlm",[e,t,n],{type:i})}},{key:"get_overrides",value:function(){return this.exec("get_overrides")}},{key:"normalize_tlm",value:function(e,t,n,i){return this.exec("normalize_tlm",[e,t,n],{type:i})}},{key:"get_all_commands",value:function(e){return this.exec("get_all_commands",[e])}},{key:"get_all_command_names",value:function(e){return this.exec("get_all_command_names",[e])}},{key:"get_command",value:function(e,t){return this.exec("get_command",[e,t])}},{key:"get_cmd_cnts",value:function(e){return this.exec("get_cmd_cnts",[e])}},{key:"get_cmd_value",value:function(e,t,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"CONVERTED";return this.exec("get_cmd_value",[e,t,n,i])}},{key:"get_cmd_buffer",value:function(e,t){return this.exec("get_cmd_buffer",[e,t])}},{key:"_cmd",value:function(e,t,n,i,s){var 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:"enable_limits",value:function(e,t,n){return this.exec("enable_limits",[e,t,n])}},{key:"disable_limits",value:function(e,t,n){return this.exec("disable_limits",[e,t,n])}},{key:"get_out_of_limits",value:function(){return this.exec("get_out_of_limits",[])}},{key:"get_overall_limits_state",value:function(e){return this.exec("get_overall_limits_state",[e])}},{key:"list_settings",value:function(){return this.exec("list_settings",[])}},{key:"get_all_settings",value:function(){return this.exec("get_all_settings",[])}},{key:"get_setting",value:function(e){return this.exec("get_setting",[e])}},{key:"get_settings",value:function(e){return this.exec("get_settings",e)}},{key:"save_setting",value:function(e,t){return this.exec("save_setting",[e,t])}},{key:"get_metrics",value:function(){return this.exec("get_metrics",[])}},{key:"hashString",value:function(){var e=(0,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}()},84439: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="8af10f8c710a3960234f7b76d757b0f39f3cc8da",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:2463}},4:{start:{line:1,column:410},end:{line:1,column:432}},5:{start:{line:1,column:666},end:{line:1,column:688}},6:{start:{line:1,column:843},end:{line:1,column:897}},7:{start:{line:1,column:1005},end:{line:1,column:1038}},8:{start:{line:1,column:1186},end:{line:1,column:1689}},9:{start:{line:1,column:1493},end:{line:1,column:1523}},10:{start:{line:1,column:1589},end:{line:1,column:1614}},11:{start:{line:1,column:1648},end:{line:1,column:1679}},12:{start:{line:1,column:1796},end:{line:1,column:1832}},13:{start:{line:1,column:1890},end:{line:1,column:1908}},14:{start:{line:1,column:2047},end:{line:1,column:2083}},15:{start:{line:1,column:2141},end:{line:1,column:2159}},16:{start:{line:1,column:2394},end:{line:1,column:2417}},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:650},end:{line:1,column:651}},loc:{start:{line:1,column:665},end:{line:1,column:689}},line:1},3:{name:"(anonymous_3)",decl:{start:{line:1,column:837},end:{line:1,column:838}},loc:{start:{line:1,column:843},end:{line:1,column:897}},line:1},4:{name:"(anonymous_4)",decl:{start:{line:1,column:999},end:{line:1,column:1e3}},loc:{start:{line:1,column:1005},end:{line:1,column:1038}},line:1},5:{name:"(anonymous_5)",decl:{start:{line:1,column:1172},end:{line:1,column:1173}},loc:{start:{line:1,column:1185},end:{line:1,column:1690}},line:1},6:{name:"(anonymous_6)",decl:{start:{line:1,column:1476},end:{line:1,column:1477}},loc:{start:{line:1,column:1492},end:{line:1,column:1524}},line:1},7:{name:"(anonymous_7)",decl:{start:{line:1,column:1577},end:{line:1,column:1578}},loc:{start:{line:1,column:1589},end:{line:1,column:1614}},line:1},8:{name:"(anonymous_8)",decl:{start:{line:1,column:1631},end:{line:1,column:1632}},loc:{start:{line:1,column:1647},end:{line:1,column:1680}},line:1},9:{name:"(anonymous_9)",decl:{start:{line:1,column:1779},end:{line:1,column:1780}},loc:{start:{line:1,column:1795},end:{line:1,column:1833}},line:1},10:{name:"(anonymous_10)",decl:{start:{line:1,column:1874},end:{line:1,column:1875}},loc:{start:{line:1,column:1889},end:{line:1,column:1909}},line:1},11:{name:"(anonymous_11)",decl:{start:{line:1,column:2030},end:{line:1,column:2031}},loc:{start:{line:1,column:2046},end:{line:1,column:2084}},line:1},12:{name:"(anonymous_12)",decl:{start:{line:1,column:2125},end:{line:1,column:2126}},loc:{start:{line:1,column:2140},end:{line:1,column:2160}},line:1},13:{name:"(anonymous_13)",decl:{start:{line:1,column:2378},end:{line:1,column:2379}},loc:{start:{line:1,column:2393},end:{line:1,column:2418}},line:1}},branchMap:{0:{loc:{start:{line:1,column:1695},end:{line:1,column:1945}},type:"cond-expr",locations:[{start:{line:1,column:1712},end:{line:1,column:1936}},{start:{line:1,column:1937},end:{line:1,column:1945}}],line:1},1:{loc:{start:{line:1,column:1946},end:{line:1,column:2196}},type:"cond-expr",locations:[{start:{line:1,column:1963},end:{line:1,column:2187}},{start:{line:1,column:2188},end:{line:1,column:2196}}],line:1},2:{loc:{start:{line:1,column:2197},end:{line:1,column:2459}},type:"cond-expr",locations:[{start:{line:1,column:2219},end:{line:1,column:2450}},{start:{line:1,column:2451},end:{line:1,column:2459}}],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:"8af10f8c710a3960234f7b76d757b0f39f3cc8da"},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[e.selectedTarget]},on:{change:e.screenSelect},model:{value:e.selectedScreen,callback:function(t){s().f[2]++,s().s[5]++,e.selectedScreen=t},expression:"selectedScreen"}}),t("v-btn",{staticClass:"primary mr-2",attrs:{disabled:!e.selectedScreen,"data-test":"show-screen"},on:{click:function(){return s().f[3]++,s().s[6]++,e.showScreen(e.selectedTarget,e.selectedScreen)}}},[e._v(" Show ")]),t("v-btn",{staticClass:"primary",attrs:{"data-test":"new-screen"},on:{click:function(){return s().f[4]++,s().s[7]++,e.newScreen(e.selectedTarget)}}},[e._v(" New Screen "),t("v-icon",[e._v(" mdi-file-plus")])],1)],1)],1),t("div",{staticClass:"grid"},e._l(e.definitions,(function(n){return s().f[5]++,s().s[8]++,t("div",{key:n.id,ref:"gridItem",refInFor:!0,staticClass:"item",attrs:{id:e.screenId(n.id)}},[t("div",{staticClass:"item-content"},[t("openc3-screen",{attrs:{target:n.target,screen:n.screen,definition:n.definition,keywords:e.keywords},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(78081),o=n(15789),c=n(49502),u=(n(36728),n(58188),n(28673),n(6886),n(1939),n(18178),n(39529),n(31235),n(43430),n(49228),n(95342),n(43450),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:function(e){return i.command(i)}}},[i.radio?t("v-list-item-action",[t("v-radio",{attrs:{color:"secondary",label:i.label,value:i.label}})],1):e._e(),i.checkbox?t("v-list-item-action",[t("v-checkbox",{attrs:{color:"secondary",label:i.label},model:{value:i.checked,callback:function(t){e.$set(i,"checked",t)},expression:"option.checked"}})],1):e._e(),i.icon?t("v-list-item-icon",[t("v-icon",{attrs:{disabled:i.disabled}},[e._v(e._s(i.icon))])],1):e._e(),i.radio||i.checkbox?e._e():t("v-list-item-title",{style:"cursor: pointer;"+(i.disabled?"opacity: 0.2":"")},[e._v(e._s(i.label))])],1)]}))],2)],1)],1)})),t("v-spacer"),t("v-toolbar-title",[e._v(e._s(e.title))]),t("v-spacer")],2)])},h=[],p=(n(77950),n(85940),n(71639),{props:{menus:{type:Array,default:function(){return[]}},title:{type:String,default:""}},methods:{formatDT:function(e){return e.replaceAll(" ","-").toLowerCase()}},mounted:function(){"COSMOS "===this.title.substring(0,7)?document.title=this.title.substring(7):document.title=this.title}}),A=p,f=(n(94888),n(93483)),v=(0,f.Z)(A,m,h,!1,null,"2eb37f67",null),g=v.exports;function _(){var e="/openc3/plugins/packages/openc3-cosmos-tool-tlmviewer/src/tools/TlmViewer/Openc3Screen.vue",t="8f01bbe948c5145c4ca89357f16b8b742c863723",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:759},end:{line:1,column:926}},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:735},end:{line:1,column:736}},loc:{start:{line:1,column:758},end:{line:1,column:927}},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:"8f01bbe948c5145c4ca89357f16b8b742c863723"},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-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-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[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(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 E=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)},I=(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="2f090b51a33ed5b1603e6f4ebe772e92bfb0f10d",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:72,column:4},end:{line:72,column:48}},21:{start:{line:72,column:29},end:{line:72,column:47}},22:{start:{line:73,column:4},end:{line:73,column:36}},23:{start:{line:74,column:4},end:{line:74,column:46}},24:{start:{line:75,column:23},end:{line:75,column:45}},25:{start:{line:76,column:4},end:{line:76,column:49}},26:{start:{line:77,column:4},end:{line:77,column:37}},27:{start:{line:78,column:4},end:{line:78,column:44}},28:{start:{line:79,column:4},end:{line:79,column:42}},29:{start:{line:80,column:4},end:{line:80,column:60}},30:{start:{line:81,column:4},end:{line:81,column:59}},31:{start:{line:82,column:4},end:{line:82,column:52}},32:{start:{line:83,column:4},end:{line:83,column:45}},33:{start:{line:84,column:4},end:{line:84,column:41}},34:{start:{line:85,column:4},end:{line:85,column:32}},35:{start:{line:86,column:4},end:{line:86,column:23}},36:{start:{line:89,column:4},end:{line:89,column:25}},37:{start:{line:90,column:4},end:{line:90,column:34}},38:{start:{line:94,column:16},end:{line:94,column:42}},39:{start:{line:95,column:31},end:{line:97,column:26}},40:{start:{line:99,column:17},end:{line:99,column:40}},41:{start:{line:100,column:33},end:{line:126,column:7}},42:{start:{line:101,column:8},end:{line:124,column:9}},43:{start:{line:125,column:8},end:{line:125,column:29}},44:{start:{line:127,column:6},end:{line:127,column:60}},45:{start:{line:128,column:17},end:{line:130,column:7}},46:{start:{line:129,column:8},end:{line:129,column:50}},47:{start:{line:131,column:21},end:{line:131,column:54}},48:{start:{line:132,column:6},end:{line:133,column:7}},49:{start:{line:133,column:7},end:{line:135,column:29}},50:{start:{line:134,column:8},end:{line:134,column:36}},51:{start:{line:136,column:6},end:{line:136,column:17}},52:{start:{line:139,column:19},end:{line:141,column:8}},53:{start:{line:143,column:19},end:{line:143,column:46}},54:{start:{line:144,column:6},end:{line:144,column:43}},55:{start:{line:145,column:6},end:{line:145,column:72}},56:{start:{line:146,column:6},end:{line:146,column:18}},57:{start:{line:149,column:25},end:{line:149,column:41}},58:{start:{line:150,column:6},end:{line:150,column:38}},59:{start:{line:151,column:19},end:{line:151,column:23}},60:{start:{line:152,column:6},end:{line:155,column:7}},61:{start:{line:153,column:8},end:{line:153,column:47}},62:{start:{line:154,column:8},end:{line:154,column:24}},63:{start:{line:158,column:6},end:{line:165,column:10}},64:{start:{line:164,column:10},end:{line:164,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:29},end:{line:87,column:3}},line:70},7:{name:"(anonymous_7)",decl:{start:{line:72,column:22},end:{line:72,column:23}},loc:{start:{line:72,column:29},end:{line:72,column:47}},line:72},8:{name:"(anonymous_8)",decl:{start:{line:88,column:2},end:{line:88,column:3}},loc:{start:{line:88,column:18},end:{line:91,column:3}},line:88},9:{name:"(anonymous_9)",decl:{start:{line:93,column:4},end:{line:93,column:5}},loc:{start:{line:93,column:22},end:{line:137,column:5}},line:93},10:{name:"(anonymous_10)",decl:{start:{line:100,column:33},end:{line:100,column:34}},loc:{start:{line:100,column:45},end:{line:126,column:7}},line:100},11:{name:"(anonymous_11)",decl:{start:{line:128,column:17},end:{line:128,column:18}},loc:{start:{line:128,column:29},end:{line:130,column:7}},line:128},12:{name:"(anonymous_12)",decl:{start:{line:133,column:8},end:{line:133,column:9}},loc:{start:{line:133,column:20},end:{line:135,column:7}},line:133},13:{name:"(anonymous_13)",decl:{start:{line:138,column:20},end:{line:138,column:21}},loc:{start:{line:138,column:32},end:{line:147,column:5}},line:138},14:{name:"(anonymous_14)",decl:{start:{line:148,column:14},end:{line:148,column:15}},loc:{start:{line:148,column:26},end:{line:156,column:5}},line:148},15:{name:"(anonymous_15)",decl:{start:{line:152,column:26},end:{line:152,column:27}},loc:{start:{line:152,column:38},end:{line:155,column:7}},line:152},16:{name:"(anonymous_16)",decl:{start:{line:157,column:18},end:{line:157,column:19}},loc:{start:{line:157,column:30},end:{line:166,column:5}},line:157},17:{name:"(anonymous_17)",decl:{start:{line:163,column:14},end:{line:163,column:15}},loc:{start:{line:163,column:26},end:{line:165,column:9}},line:163}},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,63:0,64: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},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;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: async function () {\n // Wait for things to render per https://github.com/ajaxorg/ace/issues/5012\n await new Promise((r) => setTimeout(r, 300))\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 position: relative;\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:"2f090b51a33ed5b1603e6f4ebe772e92bfb0f10d"},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,r.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(){var e=(0,c.Z)((0,o.Z)().mark((function e(){var t;return(0,o.Z)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return P().f[6]++,P().s[20]++,e.next=4,new Promise((function(e){return P().f[7]++,P().s[21]++,setTimeout(e,300)}));case 4:P().s[22]++,this.editor=M.edit("editor"),P().s[23]++,this.editor.setTheme("ace/theme/twilight"),P().s[24]++,t=this.buildScreenMode(),P().s[25]++,this.editor.session.setMode(new t),P().s[26]++,this.editor.session.setTabSize(2),P().s[27]++,this.editor.session.setUseWrapMode(!0),P().s[28]++,this.editor.$blockScrolling=1/0,P().s[29]++,this.editor.setOption("enableBasicAutocompletion",!0),P().s[30]++,this.editor.setOption("enableLiveAutocompletion",!0),P().s[31]++,this.editor.completers=[new W],P().s[32]++,this.editor.setHighlightActiveLine(!1),P().s[33]++,this.editor.setValue(this.definition),P().s[34]++,this.editor.clearSelection(),P().s[35]++,this.editor.focus();case 31:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}(),beforeDestroy:function(){P().f[8]++,P().s[36]++,this.editor.destroy(),P().s[37]++,this.editor.container.remove()},methods:{buildScreenMode:function(){P().f[9]++;var e=(P().s[38]++,M.require("ace/lib/oop")),t=(P().s[39]++,M.require("ace/mode/text_highlight_rules").TextHighlightRules),n=(P().s[40]++,this.keywords.join("|"));P().s[41]++;var i=function(){P().f[10]++,P().s[42]++,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[43]++,this.normalizeRules()};P().s[44]++,e.inherits(i,t),P().s[45]++;var s=function(){P().f[11]++,P().s[46]++,this.HighlightRules=i},l=(P().s[47]++,M.require("ace/mode/text").Mode);return P().s[48]++,e.inherits(s,l),P().s[49]++,function(){P().f[12]++,P().s[50]++,this.$id="ace/mode/openc3"}.call(s.prototype),P().s[51]++,s},downloadScreen:function(){P().f[13]++;var e=(P().s[52]++,new Blob([this.editor.getValue()],{type:"text/plain"})),t=(P().s[53]++,document.createElement("a"));P().s[54]++,t.href=URL.createObjectURL(e),P().s[55]++,t.setAttribute("download","".concat(this.target,"_").concat(this.screen,".txt")),P().s[56]++,t.click()},loadFile:function(){P().f[14]++;var e=(P().s[57]++,new FileReader);P().s[58]++,e.readAsText(this.file);var t=(P().s[59]++,this);P().s[60]++,e.onload=function(){P().f[15]++,P().s[61]++,t.editor.setValue(e.result),P().s[62]++,t.file=null}},deleteScreen:function(){var e=this;P().f[16]++,P().s[63]++,this.$dialog.confirm("Are you sure you want to delete this screen?!",{okText:"Delete",cancelText:"Cancel"}).then((function(t){P().f[17]++,P().s[64]++,e.$emit("delete")}))}}},$=R,H=(n(40606),n(92399),(0,f.Z)($,E,I,!1,null,"16f638fc",null)),U=H.exports;function z(){var e="/openc3/plugins/packages/openc3-cosmos-tool-tlmviewer/src/tools/TlmViewer/Openc3Screen.vue",t="ab59473fb2a7d1aeff1683c41151fa93c3ffd37f",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:88,column:5}},7:{start:{line:92,column:6},end:{line:104,column:7}},8:{start:{line:93,column:23},end:{line:93,column:32}},9:{start:{line:94,column:21},end:{line:94,column:23}},10:{start:{line:95,column:8},end:{line:102,column:9}},11:{start:{line:96,column:10},end:{line:98,column:11}},12:{start:{line:97,column:12},end:{line:97,column:20}},13:{start:{line:99,column:20},end:{line:99,column:71}},14:{start:{line:100,column:10},end:{line:100,column:23}},15:{start:{line:101,column:10},end:{line:101,column:37}},16:{start:{line:103,column:8},end:{line:103,column:21}},17:{start:{line:105,column:6},end:{line:105,column:17}},18:{start:{line:112,column:4},end:{line:127,column:5}},19:{start:{line:113,column:6},end:{line:120,column:8}},20:{start:{line:122,column:6},end:{line:126,column:8}},21:{start:{line:128,column:4},end:{line:128,column:16}},22:{start:{line:131,column:4},end:{line:131,column:30}},23:{start:{line:132,column:4},end:{line:132,column:49}},24:{start:{line:133,column:4},end:{line:133,column:26}},25:{start:{line:134,column:4},end:{line:134,column:56}},26:{start:{line:137,column:26},end:{line:137,column:51}},27:{start:{line:138,column:4},end:{line:140,column:23}},28:{start:{line:139,column:6},end:{line:139,column:19}},29:{start:{line:143,column:4},end:{line:146,column:5}},30:{start:{line:144,column:6},end:{line:144,column:33}},31:{start:{line:145,column:6},end:{line:145,column:25}},32:{start:{line:151,column:6},end:{line:151,column:45}},33:{start:{line:154,column:6},end:{line:154,column:52}},34:{start:{line:157,column:6},end:{line:157,column:29}},35:{start:{line:161,column:6},end:{line:161,column:22}},36:{start:{line:165,column:6},end:{line:165,column:22}},37:{start:{line:166,column:6},end:{line:166,column:28}},38:{start:{line:167,column:6},end:{line:167,column:27}},39:{start:{line:168,column:6},end:{line:168,column:30}},40:{start:{line:170,column:6},end:{line:174,column:8}},41:{start:{line:175,column:6},end:{line:175,column:72}},42:{start:{line:177,column:6},end:{line:227,column:7}},43:{start:{line:183,column:10},end:{line:225,column:11}},44:{start:{line:184,column:12},end:{line:224,column:13}},45:{start:{line:186,column:16},end:{line:190,column:17}},46:{start:{line:191,column:16},end:{line:191,column:52}},47:{start:{line:192,column:16},end:{line:192,column:53}},48:{start:{line:193,column:16},end:{line:193,column:62}},49:{start:{line:194,column:16},end:{line:194,column:21}},50:{start:{line:196,column:16},end:{line:196,column:75}},51:{start:{line:197,column:16},end:{line:197,column:38}},52:{start:{line:198,column:16},end:{line:199,column:63}},53:{start:{line:200,column:16},end:{line:200,column:21}},54:{start:{line:202,column:16},end:{line:206,column:17}},55:{start:{line:207,column:16},end:{line:207,column:56}},56:{start:{line:208,column:16},end:{line:208,column:21}},57:{start:{line:212,column:18},end:{line:214,column:41}},58:{start:{line:215,column:16},end:{line:215,column:48}},59:{start:{line:216,column:16},end:{line:216,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:73}},63:{start:{line:223,column:16},end:{line:223,column:21}},64:{start:{line:229,column:6},end:{line:252,column:7}},65:{start:{line:230,column:20},end:{line:230,column:22}},66:{start:{line:231,column:20},end:{line:231,column:22}},67:{start:{line:232,column:8},end:{line:235,column:9}},68:{start:{line:233,column:10},end:{line:233,column:33}},69:{start:{line:234,column:10},end:{line:234,column:39}},70:{start:{line:237,column:8},end:{line:242,column:10}},71:{start:{line:245,column:8},end:{line:249,column:9}},72:{start:{line:251,column:8},end:{line:251,column:61}},73:{start:{line:256,column:6},end:{line:256,column:36}},74:{start:{line:260,column:6},end:{line:260,column:36}},75:{start:{line:264,column:6},end:{line:264,column:38}},76:{start:{line:267,column:6},end:{line:283,column:7}},77:{start:{line:271,column:8},end:{line:282,column:12}},78:{start:{line:274,column:12},end:{line:274,column:61}},79:{start:{line:277,column:12},end:{line:281,column:14}},80:{start:{line:287,column:6},end:{line:287,column:52}},81:{start:{line:288,column:6},end:{line:288,column:28}},82:{start:{line:291,column:6},end:{line:291,column:22}},83:{start:{line:292,column:6},end:{line:292,column:29}},84:{start:{line:294,column:6},end:{line:294,column:42}},85:{start:{line:295,column:6},end:{line:295,column:28}},86:{start:{line:297,column:6},end:{line:297,column:58}},87:{start:{line:299,column:6},end:{line:301,column:8}},88:{start:{line:300,column:8},end:{line:300,column:26}},89:{start:{line:304,column:6},end:{line:304,column:41}},90:{start:{line:305,column:6},end:{line:305,column:28}},91:{start:{line:307,column:6},end:{line:307,column:58}},92:{start:{line:309,column:6},end:{line:319,column:8}},93:{start:{line:310,column:8},end:{line:317,column:10}},94:{start:{line:318,column:8},end:{line:318,column:31}},95:{start:{line:322,column:6},end:{line:322,column:29}},96:{start:{line:323,column:6},end:{line:327,column:7}},97:{start:{line:325,column:10},end:{line:325,column:37}},98:{start:{line:330,column:6},end:{line:330,column:32}},99:{start:{line:331,column:6},end:{line:331,column:34}},100:{start:{line:334,column:23},end:{line:334,column:27}},101:{start:{line:335,column:6},end:{line:344,column:7}},102:{start:{line:336,column:8},end:{line:340,column:9}},103:{start:{line:341,column:8},end:{line:341,column:48}},104:{start:{line:342,column:8},end:{line:342,column:45}},105:{start:{line:343,column:8},end:{line:343,column:59}},106:{start:{line:346,column:8},end:{line:348,column:16}},107:{start:{line:349,column:21},end:{line:349,column:23}},108:{start:{line:350,column:6},end:{line:355,column:7}},109:{start:{line:354,column:8},end:{line:354,column:57}},110:{start:{line:357,column:6},end:{line:403,column:7}},111:{start:{line:367,column:23},end:{line:372,column:9}},112:{start:{line:373,column:8},end:{line:373,column:37}},113:{start:{line:374,column:8},end:{line:374,column:47}},114:{start:{line:375,column:8},end:{line:375,column:35}},115:{start:{line:378,column:8},end:{line:380,column:9}},116:{start:{line:379,column:10},end:{line:379,column:41}},117:{start:{line:381,column:8},end:{line:402,column:9}},118:{start:{line:382,column:10},end:{line:389,column:12}},119:{start:{line:391,column:23},end:{line:399,column:11}},120:{start:{line:400,column:10},end:{line:400,column:49}},121:{start:{line:401,column:10},end:{line:401,column:42}},122:{start:{line:406,column:6},end:{line:421,column:8}},123:{start:{line:407,column:8},end:{line:420,column:10}},124:{start:{line:410,column:10},end:{line:415,column:11}},125:{start:{line:414,column:12},end:{line:414,column:50}},126:{start:{line:417,column:10},end:{line:419,column:11}},127:{start:{line:418,column:12},end:{line:418,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:89,column:3}},line:65},3:{name:"(anonymous_3)",decl:{start:{line:91,column:11},end:{line:91,column:12}},loc:{start:{line:91,column:23},end:{line:106,column:5}},line:91},4:{name:"(anonymous_4)",decl:{start:{line:111,column:2},end:{line:111,column:3}},loc:{start:{line:111,column:31},end:{line:129,column:3}},line:111},5:{name:"(anonymous_5)",decl:{start:{line:130,column:2},end:{line:130,column:3}},loc:{start:{line:130,column:12},end:{line:135,column:3}},line:130},6:{name:"(anonymous_6)",decl:{start:{line:136,column:2},end:{line:136,column:3}},loc:{start:{line:136,column:12},end:{line:141,column:3}},line:136},7:{name:"(anonymous_7)",decl:{start:{line:138,column:31},end:{line:138,column:32}},loc:{start:{line:138,column:37},end:{line:140,column:5}},line:138},8:{name:"(anonymous_8)",decl:{start:{line:142,column:2},end:{line:142,column:3}},loc:{start:{line:142,column:14},end:{line:147,column:3}},line:142},9:{name:"(anonymous_9)",decl:{start:{line:150,column:4},end:{line:150,column:5}},loc:{start:{line:150,column:25},end:{line:152,column:5}},line:150},10:{name:"(anonymous_10)",decl:{start:{line:153,column:4},end:{line:153,column:5}},loc:{start:{line:153,column:26},end:{line:155,column:5}},line:153},11:{name:"(anonymous_11)",decl:{start:{line:156,column:4},end:{line:156,column:5}},loc:{start:{line:156,column:15},end:{line:158,column:5}},line:156},12:{name:"(anonymous_12)",decl:{start:{line:160,column:17},end:{line:160,column:18}},loc:{start:{line:160,column:29},end:{line:162,column:5}},line:160},13:{name:"(anonymous_13)",decl:{start:{line:163,column:21},end:{line:163,column:22}},loc:{start:{line:163,column:33},end:{line:253,column:5}},line:163},14:{name:"(anonymous_14)",decl:{start:{line:182,column:8},end:{line:182,column:9}},loc:{start:{line:182,column:51},end:{line:226,column:9}},line:182},15:{name:"(anonymous_15)",decl:{start:{line:255,column:20},end:{line:255,column:21}},loc:{start:{line:255,column:36},end:{line:257,column:5}},line:255},16:{name:"(anonymous_16)",decl:{start:{line:259,column:22},end:{line:259,column:23}},loc:{start:{line:259,column:38},end:{line:261,column:5}},line:259},17:{name:"(anonymous_17)",decl:{start:{line:263,column:20},end:{line:263,column:21}},loc:{start:{line:263,column:44},end:{line:265,column:5}},line:263},18:{name:"(anonymous_18)",decl:{start:{line:266,column:12},end:{line:266,column:13}},loc:{start:{line:266,column:24},end:{line:284,column:5}},line:266},19:{name:"(anonymous_19)",decl:{start:{line:273,column:16},end:{line:273,column:17}},loc:{start:{line:273,column:26},end:{line:275,column:11}},line:273},20:{name:"(anonymous_20)",decl:{start:{line:276,column:17},end:{line:276,column:18}},loc:{start:{line:276,column:28},end:{line:282,column:11}},line:276},21:{name:"(anonymous_21)",decl:{start:{line:285,column:14},end:{line:285,column:15}},loc:{start:{line:285,column:26},end:{line:289,column:5}},line:285},22:{name:"(anonymous_22)",decl:{start:{line:290,column:16},end:{line:290,column:17}},loc:{start:{line:290,column:28},end:{line:302,column:5}},line:290},23:{name:"(anonymous_23)",decl:{start:{line:299,column:21},end:{line:299,column:22}},loc:{start:{line:299,column:33},end:{line:301,column:7}},line:299},24:{name:"(anonymous_24)",decl:{start:{line:303,column:14},end:{line:303,column:15}},loc:{start:{line:303,column:36},end:{line:320,column:5}},line:303},25:{name:"(anonymous_25)",decl:{start:{line:309,column:21},end:{line:309,column:22}},loc:{start:{line:309,column:33},end:{line:319,column:7}},line:309},26:{name:"(anonymous_26)",decl:{start:{line:321,column:18},end:{line:321,column:19}},loc:{start:{line:321,column:30},end:{line:328,column:5}},line:321},27:{name:"(anonymous_27)",decl:{start:{line:324,column:8},end:{line:324,column:9}},loc:{start:{line:324,column:22},end:{line:326,column:9}},line:324},28:{name:"(anonymous_28)",decl:{start:{line:329,column:22},end:{line:329,column:23}},loc:{start:{line:329,column:34},end:{line:332,column:5}},line:329},29:{name:"(anonymous_29)",decl:{start:{line:333,column:19},end:{line:333,column:20}},loc:{start:{line:333,column:68},end:{line:404,column:5}},line:333},30:{name:"(anonymous_30)",decl:{start:{line:405,column:25},end:{line:405,column:26}},loc:{start:{line:405,column:44},end:{line:422,column:5}},line:405},31:{name:"(anonymous_31)",decl:{start:{line:406,column:34},end:{line:406,column:35}},loc:{start:{line:406,column:47},end:{line:421,column:7}},line:406},32:{name:"(anonymous_32)",decl:{start:{line:407,column:24},end:{line:407,column:25}},loc:{start:{line:407,column:36},end:{line:420,column:9}},line:407}},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:92,column:6},end:{line:104,column:7}},type:"if",locations:[{start:{line:92,column:6},end:{line:104,column:7}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:92},2:{loc:{start:{line:92,column:10},end:{line:92,column:52}},type:"binary-expr",locations:[{start:{line:92,column:10},end:{line:92,column:26}},{start:{line:92,column:30},end:{line:92,column:52}}],line:92},3:{loc:{start:{line:96,column:10},end:{line:98,column:11}},type:"if",locations:[{start:{line:96,column:10},end:{line:98,column:11}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:96},4:{loc:{start:{line:112,column:4},end:{line:127,column:5}},type:"if",locations:[{start:{line:112,column:4},end:{line:127,column:5}},{start:{line:121,column:11},end:{line:127,column:5}}],line:112},5:{loc:{start:{line:143,column:4},end:{line:146,column:5}},type:"if",locations:[{start:{line:143,column:4},end:{line:146,column:5}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:143},6:{loc:{start:{line:183,column:10},end:{line:225,column:11}},type:"if",locations:[{start:{line:183,column:10},end:{line:225,column:11}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:183},7:{loc:{start:{line:184,column:12},end:{line:224,column:13}},type:"switch",locations:[{start:{line:185,column:14},end:{line:194,column:21}},{start:{line:195,column:14},end:{line:200,column:21}},{start:{line:201,column:14},end:{line:208,column:21}},{start:{line:209,column:14},end:{line:209,column:29}},{start:{line:210,column:14},end:{line:216,column:21}},{start:{line:217,column:14},end:{line:217,column:36}},{start:{line:218,column:14},end:{line:220,column:21}},{start:{line:221,column:14},end:{line:223,column:21}}],line:184},8:{loc:{start:{line:212,column:18},end:{line:214,column:41}},type:"binary-expr",locations:[{start:{line:212,column:18},end:{line:214,column:19}},{start:{line:214,column:23},end:{line:214,column:41}}],line:212},9:{loc:{start:{line:229,column:6},end:{line:252,column:7}},type:"if",locations:[{start:{line:229,column:6},end:{line:252,column:7}},{start:{line:250,column:13},end:{line:252,column:7}}],line:229},10:{loc:{start:{line:267,column:6},end:{line:283,column:7}},type:"if",locations:[{start:{line:267,column:6},end:{line:283,column:7}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:267},11:{loc:{start:{line:268,column:8},end:{line:269,column:32}},type:"binary-expr",locations:[{start:{line:268,column:8},end:{line:268,column:53}},{start:{line:269,column:8},end:{line:269,column:32}}],line:268},12:{loc:{start:{line:335,column:6},end:{line:344,column:7}},type:"if",locations:[{start:{line:335,column:6},end:{line:344,column:7}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:335},13:{loc:{start:{line:350,column:6},end:{line:355,column:7}},type:"if",locations:[{start:{line:350,column:6},end:{line:355,column:7}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:350},14:{loc:{start:{line:357,column:6},end:{line:403,column:7}},type:"if",locations:[{start:{line:357,column:6},end:{line:403,column:7}},{start:{line:376,column:13},end:{line:403,column:7}}],line:357},15:{loc:{start:{line:358,column:8},end:{line:365,column:34}},type:"binary-expr",locations:[{start:{line:358,column:8},end:{line:358,column:36}},{start:{line:359,column:8},end:{line:359,column:38}},{start:{line:360,column:8},end:{line:360,column:37}},{start:{line:361,column:8},end:{line:361,column:29}},{start:{line:362,column:8},end:{line:362,column:29}},{start:{line:363,column:8},end:{line:363,column:28}},{start:{line:364,column:8},end:{line:364,column:32}},{start:{line:365,column:8},end:{line:365,column:34}}],line:358},16:{loc:{start:{line:378,column:8},end:{line:380,column:9}},type:"if",locations:[{start:{line:378,column:8},end:{line:380,column:9}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:378},17:{loc:{start:{line:381,column:8},end:{line:402,column:9}},type:"if",locations:[{start:{line:381,column:8},end:{line:402,column:9}},{start:{line:390,column:15},end:{line:402,column:9}}],line:381},18:{loc:{start:{line:410,column:10},end:{line:415,column:11}},type:"if",locations:[{start:{line:410,column:10},end:{line:415,column:11}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:410},19:{loc:{start:{line:417,column:10},end:{line:419,column:11}},type:"if",locations:[{start:{line:417,column:10},end:{line:419,column:11}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:417}},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},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;;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",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-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-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\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 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 case 'GLOBAL_SUBSETTING':\n this.globalSettings.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:"ab59473fb2a7d1aeff1683c41151fa93c3ffd37f"},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:[],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,r.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]++;case"GLOBAL_SUBSETTING":z().b[7][6]++,z().s[60]++,e.globalSettings.push(n),z().s[61]++;break;default:z().b[7][7]++,z().s[62]++,e.processWidget(t,n,i,s),z().s[63]++;break}else z().b[6][1]++})),z().s[64]++,"undefined"===typeof this.layoutStack[0]){z().b[9][0]++;var t=(z().s[65]++,[]),n=(z().s[66]++,[]);z().s[67]++;var i,s=(0,r.Z)(this.dynamicWidgets);try{for(s.s();!(i=s.n()).done;){var l=i.value;z().s[68]++,t.push(l.name),z().s[69]++,n.push(l.lineNumber)}}catch(a){s.e(a)}finally{s.f()}z().s[70]++,this.errors.push({type:"usage",message:"Unknown widget! Are these widgets: ".concat(t.join(","),"?"),lineNumber:n.join(","),time:(new Date).getTime()}),z().s[71]++,this.layoutStack[0]={type:"VerticalWidget",parameters:[],widgets:[]}}else z().b[9][1]++,z().s[72]++,this.applyGlobalSettings(this.layoutStack[0].widgets)},getNamedWidget:function(e){return z().f[15]++,z().s[73]++,this.namedWidgets[e]},get_named_widget:function(e){return z().f[16]++,z().s[74]++,this.namedWidgets[e]},setNamedWidget:function(e,t){z().f[17]++,z().s[75]++,this.namedWidgets[e]=t},update:function(){var e=this;z().f[18]++,z().s[76]++,z().b[11][0]++,0!==this.$store.state.tlmViewerItems.length&&(z().b[11][1]++,0===this.errors.length)?(z().b[10][0]++,z().s[77]++,this.api.get_tlm_values(this.$store.state.tlmViewerItems,this.staleTime).then((function(t){z().f[19]++,z().s[78]++,e.$store.commit("tlmViewerUpdateValues",t)})).catch((function(t){z().f[20]++,z().s[79]++,e.errors.push({type:"usage",message:t.message,time:(new Date).getTime()})}))):z().b[10][1]++},openEdit:function(){z().f[21]++,z().s[80]++,this.backup=this.currentDefinition.repeat(1),z().s[81]++,this.editDialog=!0},cancelEdit:function(){z().f[22]++,z().s[82]++,this.file=null,z().s[83]++,this.editDialog=!1,z().s[84]++,this.currentDefinition=this.backup,z().s[85]++,this.parseDefinition(),z().s[86]++,this.screenKey=Math.floor(1e6*Math.random()),z().s[87]++,this.$nextTick((function(){z().f[23]++,z().s[88]++,this.clearErrors()}))},saveEdit:function(e){z().f[24]++,z().s[89]++,this.currentDefinition=e,z().s[90]++,this.parseDefinition(),z().s[91]++,this.screenKey=Math.floor(1e6*Math.random()),z().s[92]++,this.$nextTick((function(){z().f[25]++,z().s[93]++,u.Z.post("/openc3-api/screen/",{data:{scope:window.openc3Scope,target:this.target,screen:this.screen,text:this.currentDefinition}}),z().s[94]++,this.editDialog=!1}))},deleteScreen:function(){var e=this;z().f[26]++,z().s[95]++,this.editDialog=!1,z().s[96]++,u.Z["delete"]("/openc3-api/screen/".concat(this.target,"/").concat(this.screen)).then((function(t){z().f[27]++,z().s[97]++,e.$emit("delete-screen")}))},minMaxTransition:function(){z().f[28]++,z().s[98]++,this.expand=!this.expand,z().s[99]++,this.$emit("min-max-screen")},processWidget:function(e,t,n,i){z().f[29]++;var s=(z().s[100]++,null);z().s[101]++,"NAMED_WIDGET"===e?(z().b[12][0]++,z().s[102]++,this.configParser.verify_num_parameters(2,null,"".concat(e," <Widget Name> <Widget Type> <Widget Settings... (optional)>")),z().s[103]++,s=t[0].toUpperCase(),z().s[104]++,e=t[1].toUpperCase(),z().s[105]++,t=t.slice(2,t.length)):z().b[12][1]++;var l=(z().s[106]++,e.charAt(0).toUpperCase()+e.slice(1).toLowerCase()+"Widget"),a=(z().s[107]++,[]);if(z().s[108]++,null!==s?(z().b[13][0]++,z().s[109]++,a.push(["NAMED_WIDGET",s,this])):z().b[13][1]++,z().s[110]++,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[111]++,{type:l,parameters:t,settings:a,widgets:[]});z().s[112]++,this.layoutStack.push(r),z().s[113]++,this.currentLayout.widgets.push(r),z().s[114]++,this.currentLayout=r}else if(z().b[14][1]++,z().s[115]++,e.includes("BUTTON")?(z().b[16][0]++,z().s[116]++,a.push(["SCREEN",this])):z().b[16][1]++,z().s[117]++,y["default"].options.components[l])z().b[17][0]++,z().s[118]++,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[119]++,{type:"DynamicWidget",target:this.target,parameters:t,settings:a,name:l,line:n,lineNumber:i});z().s[120]++,this.currentLayout.widgets.push(o),z().s[121]++,this.dynamicWidgets.push(o)}},applyGlobalSettings:function(e){var t=this;z().f[30]++,z().s[122]++,this.globalSettings.forEach((function(n){z().f[31]++,z().s[123]++,e.forEach((function(e){z().f[32]++,z().s[124]++,e.type.toLowerCase()===n[0].toLowerCase()+"widget"?(z().b[18][0]++,z().s[125]++,e.settings.push(n.slice(1))):z().b[18][1]++,z().s[126]++,e.widgets?(z().b[19][0]++,z().s[127]++,t.applyGlobalSettings(e.widgets)):z().b[19][1]++}))}))}}},j=B,F=(n(65909),(0,f.Z)(j,w,C,!1,null,"28e0f181",null)),K=F.exports;function Y(){var e="/openc3/plugins/packages/openc3-cosmos-tool-tlmviewer/src/tools/TlmViewer/NewScreenDialog.vue",t="e135ccf4af0072f972d2dc566276f9a92e5aa88a",n=new Function("return this")(),i="__coverage__",s={path:"/openc3/plugins/packages/openc3-cosmos-tool-tlmviewer/src/tools/TlmViewer/NewScreenDialog.vue",statementMap:{0:{start:{line:1,column:13},end:{line:2,column:1}},1:{start:{line:1,column:39},end:{line:1,column:43}},2:{start:{line:1,column:47},end:{line:1,column:59}},3:{start:{line:1,column:60},end:{line:1,column:2519}},4:{start:{line:1,column:153},end:{line:1,column:165}},5:{start:{line:1,column:388},end:{line:1,column:585}},6:{start:{line:1,column:532},end:{line:1,column:548}},7:{start:{line:1,column:806},end:{line:1,column:834}},8:{start:{line:1,column:1190},end:{line:1,column:1212}},9:{start:{line:1,column:1697},end:{line:1,column:1723}},10:{start:{line:1,column:1976},end:{line:1,column:2009}},11:{start:{line:1,column:2070},end:{line:1,column:2091}},12:{start:{line:1,column:2466},end:{line:1,column:2482}},13:{start:{line:3,column:22},end:{line:3,column:24}}},fnMap:{0:{name:"render",decl:{start:{line:1,column:22},end:{line:1,column:28}},loc:{start:{line:1,column:30},end:{line:2,column:1}},line:1},1:{name:"(anonymous_1)",decl:{start:{line:1,column:137},end:{line:1,column:138}},loc:{start:{line:1,column:152},end:{line:1,column:166}},line:1},2:{name:"(anonymous_2)",decl:{start:{line:1,column:364},end:{line:1,column:365}},loc:{start:{line:1,column:387},end:{line:1,column:586}},line:1},3:{name:"(anonymous_3)",decl:{start:{line:1,column:515},end:{line:1,column:516}},loc:{start:{line:1,column:531},end:{line:1,column:549}},line:1},4:{name:"(anonymous_4)",decl:{start:{line:1,column:790},end:{line:1,column:791}},loc:{start:{line:1,column:805},end:{line:1,column:835}},line:1},5:{name:"(anonymous_5)",decl:{start:{line:1,column:1174},end:{line:1,column:1175}},loc:{start:{line:1,column:1189},end:{line:1,column:1213}},line:1},6:{name:"(anonymous_6)",decl:{start:{line:1,column:1681},end:{line:1,column:1682}},loc:{start:{line:1,column:1696},end:{line:1,column:1724}},line:1},7:{name:"(anonymous_7)",decl:{start:{line:1,column:1959},end:{line:1,column:1960}},loc:{start:{line:1,column:1975},end:{line:1,column:2010}},line:1},8:{name:"(anonymous_8)",decl:{start:{line:1,column:2054},end:{line:1,column:2055}},loc:{start:{line:1,column:2069},end:{line:1,column:2092}},line:1},9:{name:"(anonymous_9)",decl:{start:{line:1,column:2449},end:{line:1,column:2450}},loc:{start:{line:1,column:2465},end:{line:1,column:2483}},line:1}},branchMap:{0:{loc:{start:{line:1,column:2123},end:{line:1,column:2261}},type:"cond-expr",locations:[{start:{line:1,column:2145},end:{line:1,column:2252}},{start:{line:1,column:2253},end:{line:1,column:2261}}],line:1}},s:{0:0,1:0,2:0,3:0,4:0,5:0,6:0,7:0,8:0,9:0,10:0,11:0,12:0,13:0},f:{0:0,1:0,2:0,3:0,4:0,5:0,6:0,7:0,8:0,9:0},b:{0:[0,0]},_coverageSchema:"1a1c01bbd47fc00a2c39e90264f33305004495a9",hash:"e135ccf4af0072f972d2dc566276f9a92e5aa88a"},l=n[i]||(n[i]={});l[e]&&l[e].hash===t||(l[e]=s);var a=l[e];return Y=function(){return a},a}Y(),Y().s[0]++;var q=function(){Y().f[0]++;var e=(Y().s[1]++,this),t=(Y().s[2]++,e._self._c);return Y().s[3]++,t("v-dialog",{attrs:{width:"600"},model:{value:e.show,callback:function(t){Y().f[1]++,Y().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 Y().f[2]++,Y().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){Y().f[3]++,Y().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){Y().f[4]++,Y().s[7]++,e.duplicateScreenAlert=t},expression:"duplicateScreenAlert"}},[e._v(" Screen "+e._s(e.newScreenName.toUpperCase())+" already exists! ")]),t("v-row",{staticClass:"pt-2 pb-2"},[t("v-select",{attrs:{label:"Select Target",items:e.targets,"item-text":"label","item-value":"value"},on:{change:e.targetSelect},model:{value:e.selectedTarget,callback:function(t){Y().f[5]++,Y().s[8]++,e.selectedTarget=t},expression:"selectedTarget"}})],1),t("v-row",{staticClass:"pt-2 pb-2"},[t("span",[e._v("Existing Screens: "+e._s(e.existingScreens))])]),t("v-row",{staticClass:"pt-2 pb-2"},[t("v-autocomplete",{attrs:{label:"Select to base new screen on Packet","hide-details":"",dense:"",items:e.packetNames,"item-text":"label","item-value":"value","data-test":"new-screen-packet"},on:{change:e.packetNameChanged},model:{value:e.selectedPacketName,callback:function(t){Y().f[6]++,Y().s[9]++,e.selectedPacketName=t},expression:"selectedPacketName"}})],1),t("v-row",[t("v-text-field",{attrs:{flat:"",autofocus:"","solo-inverted":"","hide-details":"",clearable:"",label:"Screen Name (without .txt)","data-test":"new-screen-name"},on:{keyup:function(t){return Y().f[7]++,Y().s[10]++,e.newScreenKeyup(t)}},model:{value:e.newScreenName,callback:function(t){Y().f[8]++,Y().s[11]++,e.newScreenName=t},expression:"newScreenName"}}),e.newScreenSaving?(Y().b[0][0]++,t("div",{staticClass:"pl-2"},[t("v-progress-circular",{attrs:{indeterminate:"",color:"primary"}})],1)):(Y().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){Y().f[9]++,Y().s[12]++,e.show=!1}}},[e._v(" Cancel ")])],1)],1)],1)},X=(Y().s[13]++,[]);n(1951);function J(){var e="/openc3/plugins/packages/openc3-cosmos-tool-tlmviewer/src/tools/TlmViewer/NewScreenDialog.vue",t="1f3afa5d8eab560fc402cbf25543bd1e397da152",n=new Function("return this")(),i="__coverage__",s={path:"/openc3/plugins/packages/openc3-cosmos-tool-tlmviewer/src/tools/TlmViewer/NewScreenDialog.vue",statementMap:{0:{start:{line:15,column:4},end:{line:24,column:5}},1:{start:{line:27,column:4},end:{line:27,column:30}},2:{start:{line:28,column:4},end:{line:28,column:37}},3:{start:{line:29,column:4},end:{line:29,column:32}},4:{start:{line:30,column:4},end:{line:30,column:37}},5:{start:{line:31,column:4},end:{line:35,column:8}},6:{start:{line:34,column:8},end:{line:34,column:67}},7:{start:{line:34,column:48},end:{line:34,column:66}},8:{start:{line:36,column:4},end:{line:36,column:42}},9:{start:{line:41,column:8},end:{line:41,column:25}},10:{start:{line:44,column:8},end:{line:44,column:34}},11:{start:{line:48,column:6},end:{line:52,column:7}},12:{start:{line:49,column:8},end:{line:49,column:59}},13:{start:{line:51,column:8},end:{line:51,column:21}},14:{start:{line:57,column:6},end:{line:57,column:34}},15:{start:{line:58,column:6},end:{line:69,column:8}},16:{start:{line:59,column:8},end:{line:64,column:10}},17:{start:{line:60,column:10},end:{line:63,column:11}},18:{start:{line:65,column:8},end:{line:68,column:10}},19:{start:{line:72,column:6},end:{line:87,column:7}},20:{start:{line:73,column:8},end:{line:73,column:31}},21:{start:{line:74,column:8},end:{line:74,column:41}},22:{start:{line:76,column:8},end:{line:76,column:48}},23:{start:{line:77,column:8},end:{line:86,column:9}},24:{start:{line:83,column:10},end:{line:83,column:42}},25:{start:{line:85,column:10},end:{line:85,column:43}},26:{start:{line:90,column:6},end:{line:102,column:7}},27:{start:{line:96,column:8},end:{line:96,column:40}},28:{start:{line:98,column:8},end:{line:98,column:41}},29:{start:{line:99,column:8},end:{line:101,column:9}},30:{start:{line:100,column:10},end:{line:100,column:30}},31:{start:{line:105,column:6},end:{line:105,column:33}},32:{start:{line:106,column:6},end:{line:111,column:7}}},fnMap:{0:{name:"(anonymous_0)",decl:{start:{line:14,column:2},end:{line:14,column:3}},loc:{start:{line:14,column:9},end:{line:25,column:3}},line:14},1:{name:"(anonymous_1)",decl:{start:{line:26,column:2},end:{line:26,column:3}},loc:{start:{line:26,column:12},end:{line:37,column:3}},line:26},2:{name:"(anonymous_2)",decl:{start:{line:33,column:12},end:{line:33,column:13}},loc:{start:{line:33,column:25},end:{line:35,column:7}},line:33},3:{name:"(anonymous_3)",decl:{start:{line:34,column:38},end:{line:34,column:39}},loc:{start:{line:34,column:48},end:{line:34,column:66}},line:34},4:{name:"(anonymous_4)",decl:{start:{line:40,column:6},end:{line:40,column:7}},loc:{start:{line:40,column:12},end:{line:42,column:7}},line:40},5:{name:"(anonymous_5)",decl:{start:{line:43,column:6},end:{line:43,column:7}},loc:{start:{line:43,column:17},end:{line:45,column:7}},line:43},6:{name:"(anonymous_6)",decl:{start:{line:47,column:4},end:{line:47,column:5}},loc:{start:{line:47,column:22},end:{line:53,column:5}},line:47},7:{name:"(anonymous_7)",decl:{start:{line:56,column:4},end:{line:56,column:5}},loc:{start:{line:56,column:25},end:{line:70,column:5}},line:56},8:{name:"(anonymous_8)",decl:{start:{line:58,column:65},end:{line:58,column:66}},loc:{start:{line:58,column:76},end:{line:69,column:7}},line:58},9:{name:"(anonymous_9)",decl:{start:{line:59,column:37},end:{line:59,column:38}},loc:{start:{line:59,column:47},end:{line:64,column:9}},line:59},10:{name:"(anonymous_10)",decl:{start:{line:71,column:4},end:{line:71,column:5}},loc:{start:{line:71,column:29},end:{line:88,column:5}},line:71},11:{name:"(anonymous_11)",decl:{start:{line:89,column:4},end:{line:89,column:5}},loc:{start:{line:89,column:26},end:{line:103,column:5}},line:89},12:{name:"(anonymous_12)",decl:{start:{line:104,column:4},end:{line:104,column:5}},loc:{start:{line:104,column:20},end:{line:112,column:5}},line:104}},branchMap:{0:{loc:{start:{line:48,column:6},end:{line:52,column:7}},type:"if",locations:[{start:{line:48,column:6},end:{line:52,column:7}},{start:{line:50,column:13},end:{line:52,column:7}}],line:48},1:{loc:{start:{line:72,column:6},end:{line:87,column:7}},type:"if",locations:[{start:{line:72,column:6},end:{line:87,column:7}},{start:{line:75,column:13},end:{line:87,column:7}}],line:72},2:{loc:{start:{line:77,column:8},end:{line:86,column:9}},type:"if",locations:[{start:{line:77,column:8},end:{line:86,column:9}},{start:{line:84,column:15},end:{line:86,column:9}}],line:77},3:{loc:{start:{line:78,column:10},end:{line:81,column:18}},type:"binary-expr",locations:[{start:{line:78,column:10},end:{line:78,column:43}},{start:{line:79,column:10},end:{line:81,column:18}}],line:78},4:{loc:{start:{line:90,column:6},end:{line:102,column:7}},type:"if",locations:[{start:{line:90,column:6},end:{line:102,column:7}},{start:{line:97,column:13},end:{line:102,column:7}}],line:90},5:{loc:{start:{line:91,column:8},end:{line:94,column:16}},type:"binary-expr",locations:[{start:{line:91,column:8},end:{line:91,column:41}},{start:{line:92,column:8},end:{line:94,column:16}}],line:91},6:{loc:{start:{line:99,column:8},end:{line:101,column:9}},type:"if",locations:[{start:{line:99,column:8},end:{line:101,column:9}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:99}},s:{0:0,1:0,2:0,3:0,4:0,5:0,6:0,7:0,8:0,9:0,10:0,11:0,12:0,13:0,14:0,15:0,16:0,17:0,18:0,19:0,20:0,21:0,22:0,23:0,24:0,25:0,26:0,27:0,28:0,29:0,30:0,31:0,32:0},f:{0:0,1:0,2:0,3:0,4:0,5:0,6:0,7:0,8:0,9:0,10:0,11:0,12:0},b:{0:[0,0],1:[0,0],2:[0,0],3:[0,0],4:[0,0],5:[0,0],6:[0,0]},inputSourceMap:{version:3,sources:["NewScreenDialog.vue"],names:[],mappings:";AAsGA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA",file:"NewScreenDialog.vue",sourceRoot:"src/tools/TlmViewer",sourcesContent:['\x3c!--\n# Copyright 2022 OpenC3, Inc.\n# All Rights Reserved.\n#\n# This program is free software; you can modify and/or redistribute it\n# under the terms of the GNU Affero General Public License\n# as published by the Free Software Foundation; version 3 with\n# attribution addendums as found in the LICENSE.txt\n#\n# This program is distributed in the hope that it will be useful,\n# but WITHOUT ANY WARRANTY; without even the implied warranty of\n# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n# GNU Affero General Public License for more details.\n#\n# This file may also be used under the terms of a commercial license\n# if purchased from OpenC3, Inc.\n--\x3e\n\n<template>\n \x3c!-- Dialog for creating new screen --\x3e\n <v-dialog v-model="show" width="600">\n <v-card>\n <v-system-bar>\n <v-spacer />\n <span>Create New Screen</span>\n <v-spacer />\n <v-tooltip top>\n <template v-slot:activator="{ on, attrs }">\n <div v-on="on" v-bind="attrs">\n <v-icon data-test="new-screen-close-icon" @click="show = false">\n mdi-close-box\n </v-icon>\n </div>\n </template>\n <span>Close</span>\n </v-tooltip>\n </v-system-bar>\n \x3c!-- <v-card-title> Create New Screen </v-card-title> --\x3e\n <v-card-text>\n <div class="pa-3">\n <v-alert\n v-model="duplicateScreenAlert"\n type="error"\n dismissible\n dense\n >\n Screen {{ newScreenName.toUpperCase() }} already exists!\n </v-alert>\n <v-row class="pt-2 pb-2">\n <v-select\n label="Select Target"\n :items="targets"\n item-text="label"\n item-value="value"\n v-model="selectedTarget"\n @change="targetSelect"\n /></v-row>\n\n <v-row class="pt-2 pb-2">\n <span>Existing Screens: {{ existingScreens }}</span>\n </v-row>\n <v-row class="pt-2 pb-2">\n <v-autocomplete\n label="Select to base new screen on Packet"\n hide-details\n dense\n @change="packetNameChanged"\n :items="packetNames"\n item-text="label"\n item-value="value"\n v-model="selectedPacketName"\n data-test="new-screen-packet"\n />\n </v-row>\n <v-row>\n <v-text-field\n v-model="newScreenName"\n flat\n autofocus\n solo-inverted\n hide-details\n clearable\n label="Screen Name (without .txt)"\n data-test="new-screen-name"\n @keyup="newScreenKeyup($event)"\n />\n <div class="pl-2" v-if="newScreenSaving">\n <v-progress-circular indeterminate color="primary" />\n </div>\n </v-row>\n </div>\n </v-card-text>\n <v-divider />\n <v-card-actions>\n <v-btn color="primary" text @click="saveNewScreen"> Ok </v-btn>\n <v-btn text @click="show = false"> Cancel </v-btn>\n </v-card-actions>\n </v-card>\n </v-dialog>\n</template>\n\n<script>\nimport { OpenC3Api } from \'@openc3/tool-common/src/services/openc3-api\'\n\nexport default {\n props: {\n value: Boolean, // value is the default prop when using v-model\n target: {\n type: String,\n },\n screens: {\n type: Object,\n },\n },\n data() {\n return {\n api: null,\n targets: [],\n newScreenSaving: false,\n newScreenName: \'\',\n duplicateScreenAlert: false,\n packetNames: [],\n selectedTarget: \'\',\n selectedPacketName: \'\',\n }\n },\n created() {\n this.api = new OpenC3Api()\n this.duplicateScreenAlert = false\n this.newScreenSaving = false\n this.selectedTarget = this.target\n this.api\n .get_target_list({ params: { scope: window.openc3Scope } })\n .then((targets) => {\n this.targets = targets.filter((item) => item !== \'UNKNOWN\')\n })\n this.targetSelect(this.selectedTarget)\n },\n computed: {\n show: {\n get() {\n return this.value\n },\n set(value) {\n this.$emit(\'input\', value) // input is the default event when using v-model\n },\n },\n existingScreens() {\n if (this.screens[this.selectedTarget]) {\n return this.screens[this.selectedTarget].join(\', \')\n } else {\n return \'None\'\n }\n },\n },\n methods: {\n targetSelect(target) {\n this.selectedTarget = target\n this.api.get_all_telemetry_names(this.selectedTarget).then((names) => {\n this.packetNames = names.map((name) => {\n return {\n label: name,\n value: name,\n }\n })\n this.packetNames.unshift({\n label: \'[ BLANK ]\',\n value: \'BLANK\',\n })\n })\n },\n packetNameChanged(value) {\n if (value === \'BLANK\') {\n this.newScreenName = \'\'\n this.duplicateScreenAlert = false\n } else {\n this.newScreenName = value.toLowerCase()\n if (\n this.screens[this.selectedTarget] &&\n this.screens[this.selectedTarget].indexOf(\n this.newScreenName.toUpperCase()\n ) !== -1\n ) {\n this.duplicateScreenAlert = true\n } else {\n this.duplicateScreenAlert = false\n }\n }\n },\n newScreenKeyup(event) {\n if (\n this.screens[this.selectedTarget] &&\n this.screens[this.selectedTarget].indexOf(\n this.newScreenName.toUpperCase()\n ) !== -1\n ) {\n this.duplicateScreenAlert = true\n } else {\n this.duplicateScreenAlert = false\n if (event.key === \'Enter\') {\n this.saveNewScreen()\n }\n }\n },\n saveNewScreen() {\n this.newScreenSaving = true\n this.$emit(\n \'success\',\n this.newScreenName.toUpperCase(),\n this.selectedPacketName,\n this.selectedTarget\n )\n },\n },\n}\n<\/script>\n']},_coverageSchema:"1a1c01bbd47fc00a2c39e90264f33305004495a9",hash:"1f3afa5d8eab560fc402cbf25543bd1e397da152"},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:Object}},data:function(){return J().f[0]++,J().s[0]++,{api:null,targets:[],newScreenSaving:!1,newScreenName:"",duplicateScreenAlert:!1,packetNames:[],selectedTarget:"",selectedPacketName:""}},created:function(){var e=this;J().f[1]++,J().s[1]++,this.api=new d.k,J().s[2]++,this.duplicateScreenAlert=!1,J().s[3]++,this.newScreenSaving=!1,J().s[4]++,this.selectedTarget=this.target,J().s[5]++,this.api.get_target_list({params:{scope:window.openc3Scope}}).then((function(t){J().f[2]++,J().s[6]++,e.targets=t.filter((function(e){return J().f[3]++,J().s[7]++,"UNKNOWN"!==e}))})),J().s[8]++,this.targetSelect(this.selectedTarget)},computed:{show:{get:function(){return J().f[4]++,J().s[9]++,this.value},set:function(e){J().f[5]++,J().s[10]++,this.$emit("input",e)}},existingScreens:function(){return J().f[6]++,J().s[11]++,this.screens[this.selectedTarget]?(J().b[0][0]++,J().s[12]++,this.screens[this.selectedTarget].join(", ")):(J().b[0][1]++,J().s[13]++,"None")}},methods:{targetSelect:function(e){var t=this;J().f[7]++,J().s[14]++,this.selectedTarget=e,J().s[15]++,this.api.get_all_telemetry_names(this.selectedTarget).then((function(e){J().f[8]++,J().s[16]++,t.packetNames=e.map((function(e){return J().f[9]++,J().s[17]++,{label:e,value:e}})),J().s[18]++,t.packetNames.unshift({label:"[ BLANK ]",value:"BLANK"})}))},packetNameChanged:function(e){J().f[10]++,J().s[19]++,"BLANK"===e?(J().b[1][0]++,J().s[20]++,this.newScreenName="",J().s[21]++,this.duplicateScreenAlert=!1):(J().b[1][1]++,J().s[22]++,this.newScreenName=e.toLowerCase(),J().s[23]++,J().b[3][0]++,this.screens[this.selectedTarget]&&(J().b[3][1]++,-1!==this.screens[this.selectedTarget].indexOf(this.newScreenName.toUpperCase()))?(J().b[2][0]++,J().s[24]++,this.duplicateScreenAlert=!0):(J().b[2][1]++,J().s[25]++,this.duplicateScreenAlert=!1))},newScreenKeyup:function(e){J().f[11]++,J().s[26]++,J().b[5][0]++,this.screens[this.selectedTarget]&&(J().b[5][1]++,-1!==this.screens[this.selectedTarget].indexOf(this.newScreenName.toUpperCase()))?(J().b[4][0]++,J().s[27]++,this.duplicateScreenAlert=!0):(J().b[4][1]++,J().s[28]++,this.duplicateScreenAlert=!1,J().s[29]++,"Enter"===e.key?(J().b[6][0]++,J().s[30]++,this.saveNewScreen()):J().b[6][1]++)},saveNewScreen:function(){J().f[12]++,J().s[31]++,this.newScreenSaving=!0,J().s[32]++,this.$emit("success",this.newScreenName.toUpperCase(),this.selectedPacketName,this.selectedTarget)}}},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="7d41d1d7b72113519aad346fc49c9081230f9209",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:60,column:4},end:{line:60,column:30}},4:{start:{line:61,column:4},end:{line:61,column:36}},5:{start:{line:62,column:4},end:{line:80,column:8}},6:{start:{line:65,column:29},end:{line:65,column:31}},7:{start:{line:66,column:8},end:{line:68,column:9}},8:{start:{line:66,column:21},end:{line:66,column:22}},9:{start:{line:67,column:10},end:{line:67,column:74}},10:{start:{line:69,column:8},end:{line:79,column:10}},11:{start:{line:70,column:10},end:{line:78,column:12}},12:{start:{line:71,column:12},end:{line:77,column:13}},13:{start:{line:72,column:14},end:{line:72,column:65}},14:{start:{line:73,column:14},end:{line:73,column:64}},15:{start:{line:74,column:14},end:{line:76,column:15}},16:{start:{line:75,column:16},end:{line:75,column:59}},17:{start:{line:81,column:4},end:{line:83,column:6}},18:{start:{line:82,column:6},end:{line:82,column:35}},19:{start:{line:86,column:4},end:{line:90,column:6}},20:{start:{line:91,column:4},end:{line:91,column:47}},21:{start:{line:92,column:27},end:{line:92,column:71}},22:{start:{line:93,column:4},end:{line:95,column:5}},23:{start:{line:94,column:6},end:{line:94,column:44}},24:{start:{line:99,column:6},end:{line:101,column:8}},25:{start:{line:100,column:8},end:{line:100,column:67}},26:{start:{line:104,column:6},end:{line:104,column:34}},27:{start:{line:105,column:6},end:{line:105,column:30}},28:{start:{line:106,column:6},end:{line:106,column:26}},29:{start:{line:109,column:6},end:{line:109,column:34}},30:{start:{line:110,column:6},end:{line:110,column:63}},31:{start:{line:113,column:6},end:{line:113,column:33}},32:{start:{line:116,column:17},end:{line:116,column:41}},33:{start:{line:117,column:6},end:{line:127,column:7}},34:{start:{line:118,column:8},end:{line:118,column:30}},35:{start:{line:119,column:8},end:{line:124,column:10}},36:{start:{line:120,column:10},end:{line:122,column:12}},37:{start:{line:121,column:12},end:{line:121,column:77}},38:{start:{line:123,column:10},end:{line:123,column:25}},39:{start:{line:126,column:8},end:{line:126,column:31}},40:{start:{line:128,column:6},end:{line:153,column:8}},41:{start:{line:136,column:8},end:{line:136,column:36}},42:{start:{line:137,column:8},end:{line:148,column:9}},43:{start:{line:138,column:10},end:{line:138,column:69}},44:{start:{line:139,column:10},end:{line:147,column:12}},45:{start:{line:140,column:12},end:{line:142,column:13}},46:{start:{line:141,column:14},end:{line:141,column:23}},47:{start:{line:143,column:12},end:{line:145,column:13}},48:{start:{line:144,column:14},end:{line:144,column:22}},49:{start:{line:146,column:12},end:{line:146,column:20}},50:{start:{line:149,column:8},end:{line:149,column:40}},51:{start:{line:150,column:8},end:{line:150,column:40}},52:{start:{line:151,column:8},end:{line:151,column:28}},53:{start:{line:152,column:8},end:{line:152,column:47}},54:{start:{line:156,column:18},end:{line:158,column:7}},55:{start:{line:157,column:17},end:{line:157,column:61}},56:{start:{line:159,column:6},end:{line:168,column:7}},57:{start:{line:160,column:8},end:{line:167,column:10}},58:{start:{line:161,column:10},end:{line:166,column:12}},59:{start:{line:171,column:6},end:{line:175,column:8}},60:{start:{line:178,column:6},end:{line:178,column:39}},61:{start:{line:179,column:6},end:{line:188,column:8}},62:{start:{line:180,column:20},end:{line:185,column:9}},63:{start:{line:186,column:8},end:{line:186,column:29}},64:{start:{line:187,column:8},end:{line:187,column:41}},65:{start:{line:191,column:18},end:{line:193,column:7}},66:{start:{line:192,column:17},end:{line:192,column:61}},67:{start:{line:194,column:6},end:{line:196,column:7}},68:{start:{line:195,column:8},end:{line:195,column:32}},69:{start:{line:199,column:6},end:{line:201,column:7}},70:{start:{line:200,column:8},end:{line:200,column:32}},71:{start:{line:204,column:18},end:{line:206,column:8}},72:{start:{line:207,column:6},end:{line:207,column:29}},73:{start:{line:208,column:6},end:{line:208,column:39}},74:{start:{line:209,column:6},end:{line:211,column:8}},75:{start:{line:210,column:8},end:{line:210,column:29}},76:{start:{line:214,column:6},end:{line:214,column:26}},77:{start:{line:215,column:6},end:{line:215,column:26}},78:{start:{line:218,column:6},end:{line:220,column:13}},79:{start:{line:219,column:8},end:{line:219,column:41}},80:{start:{line:223,column:6},end:{line:223,column:35}},81:{start:{line:226,column:6},end:{line:226,column:57}},82:{start:{line:227,column:6},end:{line:227,column:22}},83:{start:{line:228,column:6},end:{line:228,column:27}},84:{start:{line:229,column:27},end:{line:229,column:74}},85:{start:{line:230,column:6},end:{line:255,column:7}},86:{start:{line:231,column:23},end:{line:231,column:49}},87:{start:{line:233,column:35},end:{line:235,column:10}},88:{start:{line:234,column:10},end:{line:234,column:70}},89:{start:{line:237,column:8},end:{line:254,column:12}},90:{start:{line:240,column:12},end:{line:250,column:14}},91:{start:{line:241,column:31},end:{line:241,column:47}},92:{start:{line:242,column:14},end:{line:249,column:19}},93:{start:{line:243,column:16},end:{line:248,column:18}},94:{start:{line:253,column:12},end:{line:253,column:45}},95:{start:{line:258,column:6},end:{line:258,column:57}},96:{start:{line:259,column:24},end:{line:259,column:80}},97:{start:{line:259,column:59},end:{line:259,column:79}},98:{start:{line:260,column:21},end:{line:273,column:10}},99:{start:{line:263,column:10},end:{line:266,column:15}},100:{start:{line:269,column:10},end:{line:272,column:11}},101:{start:{line:274,column:6},end:{line:274,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:84,column:3}},line:58},4:{name:"(anonymous_4)",decl:{start:{line:64,column:12},end:{line:64,column:13}},loc:{start:{line:64,column:25},end:{line:80,column:7}},line:64},5:{name:"(anonymous_5)",decl:{start:{line:69,column:41},end:{line:69,column:42}},loc:{start:{line:69,column:56},end:{line:79,column:9}},line:69},6:{name:"(anonymous_6)",decl:{start:{line:70,column:26},end:{line:70,column:27}},loc:{start:{line:70,column:41},end:{line:78,column:11}},line:70},7:{name:"(anonymous_7)",decl:{start:{line:81,column:61},end:{line:81,column:62}},loc:{start:{line:81,column:75},end:{line:83,column:5}},line:81},8:{name:"(anonymous_8)",decl:{start:{line:85,column:2},end:{line:85,column:3}},loc:{start:{line:85,column:12},end:{line:96,column:3}},line:85},9:{name:"(anonymous_9)",decl:{start:{line:98,column:4},end:{line:98,column:5}},loc:{start:{line:98,column:20},end:{line:102,column:5}},line:98},10:{name:"(anonymous_10)",decl:{start:{line:99,column:64},end:{line:99,column:65}},loc:{start:{line:99,column:78},end:{line:101,column:7}},line:99},11:{name:"(anonymous_11)",decl:{start:{line:103,column:4},end:{line:103,column:5}},loc:{start:{line:103,column:25},end:{line:107,column:5}},line:103},12:{name:"(anonymous_12)",decl:{start:{line:108,column:4},end:{line:108,column:5}},loc:{start:{line:108,column:25},end:{line:111,column:5}},line:108},13:{name:"(anonymous_13)",decl:{start:{line:112,column:4},end:{line:112,column:5}},loc:{start:{line:112,column:16},end:{line:114,column:5}},line:112},14:{name:"(anonymous_14)",decl:{start:{line:115,column:4},end:{line:115,column:5}},loc:{start:{line:115,column:60},end:{line:154,column:5}},line:115},15:{name:"(anonymous_15)",decl:{start:{line:119,column:66},end:{line:119,column:67}},loc:{start:{line:119,column:78},end:{line:124,column:9}},line:119},16:{name:"(anonymous_16)",decl:{start:{line:120,column:31},end:{line:120,column:32}},loc:{start:{line:120,column:41},end:{line:122,column:11}},line:120},17:{name:"(anonymous_17)",decl:{start:{line:135,column:14},end:{line:135,column:15}},loc:{start:{line:135,column:28},end:{line:153,column:7}},line:135},18:{name:"(anonymous_18)",decl:{start:{line:139,column:28},end:{line:139,column:29}},loc:{start:{line:139,column:38},end:{line:147,column:11}},line:139},19:{name:"(anonymous_19)",decl:{start:{line:155,column:4},end:{line:155,column:5}},loc:{start:{line:155,column:31},end:{line:169,column:5}},line:155},20:{name:"(anonymous_20)",decl:{start:{line:157,column:8},end:{line:157,column:9}},loc:{start:{line:157,column:17},end:{line:157,column:61}},line:157},21:{name:"(anonymous_21)",decl:{start:{line:160,column:45},end:{line:160,column:46}},loc:{start:{line:160,column:59},end:{line:167,column:9}},line:160},22:{name:"(anonymous_22)",decl:{start:{line:170,column:4},end:{line:170,column:5}},loc:{start:{line:170,column:31},end:{line:176,column:5}},line:170},23:{name:"(anonymous_23)",decl:{start:{line:177,column:4},end:{line:177,column:5}},loc:{start:{line:177,column:27},end:{line:189,column:5}},line:177},24:{name:"(anonymous_24)",decl:{start:{line:179,column:21},end:{line:179,column:22}},loc:{start:{line:179,column:33},end:{line:188,column:7}},line:179},25:{name:"(anonymous_25)",decl:{start:{line:190,column:4},end:{line:190,column:5}},loc:{start:{line:190,column:38},end:{line:197,column:5}},line:190},26:{name:"(anonymous_26)",decl:{start:{line:192,column:8},end:{line:192,column:9}},loc:{start:{line:192,column:17},end:{line:192,column:61}},line:192},27:{name:"(anonymous_27)",decl:{start:{line:198,column:4},end:{line:198,column:5}},loc:{start:{line:198,column:15},end:{line:202,column:5}},line:198},28:{name:"(anonymous_28)",decl:{start:{line:203,column:4},end:{line:203,column:5}},loc:{start:{line:203,column:20},end:{line:212,column:5}},line:203},29:{name:"(anonymous_29)",decl:{start:{line:209,column:49},end:{line:209,column:50}},loc:{start:{line:209,column:72},end:{line:211,column:7}},line:209},30:{name:"(anonymous_30)",decl:{start:{line:213,column:4},end:{line:213,column:5}},loc:{start:{line:213,column:21},end:{line:216,column:5}},line:213},31:{name:"(anonymous_31)",decl:{start:{line:217,column:4},end:{line:217,column:5}},loc:{start:{line:217,column:20},end:{line:221,column:5}},line:217},32:{name:"(anonymous_32)",decl:{start:{line:218,column:17},end:{line:218,column:18}},loc:{start:{line:218,column:23},end:{line:220,column:7}},line:218},33:{name:"(anonymous_33)",decl:{start:{line:222,column:4},end:{line:222,column:5}},loc:{start:{line:222,column:17},end:{line:224,column:5}},line:222},34:{name:"(anonymous_34)",decl:{start:{line:225,column:23},end:{line:225,column:24}},loc:{start:{line:225,column:45},end:{line:256,column:5}},line:225},35:{name:"(anonymous_35)",decl:{start:{line:233,column:46},end:{line:233,column:47}},loc:{start:{line:233,column:62},end:{line:235,column:9}},line:233},36:{name:"(anonymous_36)",decl:{start:{line:238,column:16},end:{line:238,column:17}},loc:{start:{line:238,column:31},end:{line:251,column:11}},line:238},37:{name:"(anonymous_37)",decl:{start:{line:240,column:27},end:{line:240,column:28}},loc:{start:{line:240,column:50},end:{line:250,column:13}},line:240},38:{name:"(anonymous_38)",decl:{start:{line:242,column:25},end:{line:242,column:26}},loc:{start:{line:242,column:31},end:{line:249,column:15}},line:242},39:{name:"(anonymous_39)",decl:{start:{line:252,column:16},end:{line:252,column:17}},loc:{start:{line:252,column:22},end:{line:254,column:11}},line:252},40:{name:"(anonymous_40)",decl:{start:{line:257,column:23},end:{line:257,column:24}},loc:{start:{line:257,column:39},end:{line:275,column:5}},line:257},41:{name:"(anonymous_41)",decl:{start:{line:259,column:49},end:{line:259,column:50}},loc:{start:{line:259,column:59},end:{line:259,column:79}},line:259},42:{name:"(anonymous_42)",decl:{start:{line:261,column:14},end:{line:261,column:15}},loc:{start:{line:261,column:24},end:{line:267,column:9}},line:261},43:{name:"(anonymous_43)",decl:{start:{line:268,column:13},end:{line:268,column:14}},loc:{start:{line:268,column:22},end:{line:273,column:9}},line:268}},branchMap:{0:{loc:{start:{line:71,column:12},end:{line:77,column:13}},type:"if",locations:[{start:{line:71,column:12},end:{line:77,column:13}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:71},1:{loc:{start:{line:74,column:14},end:{line:76,column:15}},type:"if",locations:[{start:{line:74,column:14},end:{line:76,column:15}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:74},2:{loc:{start:{line:93,column:4},end:{line:95,column:5}},type:"if",locations:[{start:{line:93,column:4},end:{line:95,column:5}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:93},3:{loc:{start:{line:117,column:6},end:{line:127,column:7}},type:"if",locations:[{start:{line:117,column:6},end:{line:127,column:7}},{start:{line:125,column:13},end:{line:127,column:7}}],line:117},4:{loc:{start:{line:117,column:10},end:{line:117,column:46}},type:"binary-expr",locations:[{start:{line:117,column:10},end:{line:117,column:20}},{start:{line:117,column:24},end:{line:117,column:46}}],line:117},5:{loc:{start:{line:137,column:8},end:{line:148,column:9}},type:"if",locations:[{start:{line:137,column:8},end:{line:148,column:9}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:137},6:{loc:{start:{line:140,column:12},end:{line:142,column:13}},type:"if",locations:[{start:{line:140,column:12},end:{line:142,column:13}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:140},7:{loc:{start:{line:143,column:12},end:{line:145,column:13}},type:"if",locations:[{start:{line:143,column:12},end:{line:145,column:13}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:143},8:{loc:{start:{line:157,column:17},end:{line:157,column:61}},type:"binary-expr",locations:[{start:{line:157,column:17},end:{line:157,column:37}},{start:{line:157,column:41},end:{line:157,column:61}}],line:157},9:{loc:{start:{line:159,column:6},end:{line:168,column:7}},type:"if",locations:[{start:{line:159,column:6},end:{line:168,column:7}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:159},10:{loc:{start:{line:192,column:17},end:{line:192,column:61}},type:"binary-expr",locations:[{start:{line:192,column:17},end:{line:192,column:37}},{start:{line:192,column:41},end:{line:192,column:61}}],line:192},11:{loc:{start:{line:194,column:6},end:{line:196,column:7}},type:"if",locations:[{start:{line:194,column:6},end:{line:196,column:7}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:194},12:{loc:{start:{line:230,column:6},end:{line:255,column:7}},type:"if",locations:[{start:{line:230,column:6},end:{line:255,column:7}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:230},13:{loc:{start:{line:263,column:17},end:{line:266,column:15}},type:"cond-expr",locations:[{start:{line:265,column:14},end:{line:265,column:16}},{start:{line:266,column:14},end:{line:266,column:15}}],line:263}},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},f:{0:0,1:0,2:0,3:0,4:0,5:0,6:0,7:0,8:0,9:0,10:0,11:0,12:0,13:0,14:0,15:0,16:0,17:0,18:0,19:0,20:0,21:0,22:0,23:0,24:0,25:0,26:0,27:0,28:0,29:0,30:0,31:0,32:0,33:0,34:0,35:0,36:0,37:0,38:0,39:0,40:0,41:0,42:0,43:0},b:{0:[0,0],1:[0,0],2:[0,0],3:[0,0],4:[0,0],5:[0,0],6:[0,0],7:[0,0],8:[0,0],9:[0,0],10:[0,0],11:[0,0],12:[0,0],13:[0,0]},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;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[selectedTarget]"\n v-model="selectedScreen"\n @change="screenSelect"\n />\n <v-btn\n class="primary mr-2"\n :disabled="!selectedScreen"\n @click="() => showScreen(selectedTarget, selectedScreen)"\n data-test="show-screen"\n >\n Show\n </v-btn>\n <v-btn\n class="primary"\n @click="() => newScreen(selectedTarget)"\n data-test="new-screen"\n >\n New Screen\n <v-icon> mdi-file-plus</v-icon>\n </v-btn>\n </v-row>\n </v-container>\n <div class="grid">\n <div\n class="item"\n v-for="def in definitions"\n :key="def.id"\n :id="screenId(def.id)"\n ref="gridItem"\n >\n <div class="item-content">\n <openc3-screen\n :target="def.target"\n :screen="def.screen"\n :definition="def.definition"\n :keywords="keywords"\n @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 // Ensure Offline Access Is Setup For the Current User\n this.api = new OpenC3Api()\n this.api.ensure_offline_access()\n this.api\n .get_target_list({ params: { scope: window.openc3Scope } })\n .then((targets) => {\n let screenPromises = []\n for (var i = 0; i < targets.length; i++) {\n screenPromises.push(Api.get(\'/openc3-api/screen/\' + targets[i]))\n }\n Promise.all(screenPromises).then((responses) => {\n targets.forEach((target, i) => {\n if (responses[i].data.length !== 0) {\n this.targets.push({ label: target, value: target })\n this.$set(this.screens, target, responses[i].data)\n if (!this.selectedTarget) {\n this.selectedTarget = this.targets[0].value\n }\n }\n })\n })\n })\n Api.get(\'/openc3-api/autocomplete/keywords/screen\').then((response) => {\n this.keywords = response.data\n })\n },\n mounted() {\n this.grid = new Muuri(\'.grid\', {\n dragEnabled: true,\n // Only allow drags starting from the v-system-bar title\n dragHandle: \'.v-system-bar\',\n })\n this.grid.on(\'dragEnd\', this.refreshLayout)\n const previousConfig = localStorage[\'lastconfig__telemetry_viewer\']\n if (previousConfig) {\n this.openConfiguration(previousConfig)\n }\n },\n methods: {\n updateScreens() {\n Api.get(\'/openc3-api/screen/\' + this.selectedTarget).then((response) => {\n this.$set(this.screens, this.selectedTarget, response.data)\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, packetName, targetName) {\n let text = \'SCREEN AUTO AUTO 1.0\\n\'\n if (packetName && packetName !== \'BLANK\') {\n text += \'\\nVERTICAL\\n\'\n await this.api.get_telemetry(targetName, packetName).then((packet) => {\n packet.items.forEach((item) => {\n text += ` LABELVALUE ${targetName} ${packetName} ${item.name}\\n`\n })\n text += \'END\\n\'\n })\n } else {\n text += \'\\nLABEL NEW\\n\'\n }\n Api.post(\'/openc3-api/screen/\', {\n data: {\n scope: window.openc3Scope,\n target: targetName,\n screen: screenName,\n text: text,\n },\n }).then((response) => {\n this.newScreenDialog = false\n if (!this.targets.includes({ label: targetName, value: targetName })) {\n this.targets.push({ label: targetName, value: targetName })\n this.targets.sort((a, b) => {\n if (a.label < b.label) {\n return -1\n }\n if (a.label > b.label) {\n return 1\n }\n return 0\n })\n }\n this.selectedTarget = targetName\n this.selectedScreen = screenName\n this.updateScreens()\n this.showScreen(targetName, screenName)\n })\n },\n showScreen(target, screen) {\n const def = this.definitions.find(\n (def) => def.target == target && def.screen == screen\n )\n if (!def) {\n this.loadScreen(target, screen).then((response) => {\n this.pushScreen({\n id: this.counter++,\n target: target,\n screen: screen,\n definition: response.data,\n })\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:"7d41d1d7b72113519aad346fc49c9081230f9209"},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:K,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.ensure_offline_access(),fe().s[5]++,this.api.get_target_list({params:{scope:window.openc3Scope}}).then((function(t){fe().f[4]++;var n=(fe().s[6]++,[]);fe().s[7]++;for(var i=(fe().s[8]++,0);i<t.length;i++)fe().s[9]++,n.push(u.Z.get("/openc3-api/screen/"+t[i]));fe().s[10]++,Promise.all(n).then((function(n){fe().f[5]++,fe().s[11]++,t.forEach((function(t,i){fe().f[6]++,fe().s[12]++,0!==n[i].data.length?(fe().b[0][0]++,fe().s[13]++,e.targets.push({label:t,value:t}),fe().s[14]++,e.$set(e.screens,t,n[i].data),fe().s[15]++,e.selectedTarget?fe().b[1][1]++:(fe().b[1][0]++,fe().s[16]++,e.selectedTarget=e.targets[0].value)):fe().b[0][1]++}))}))})),fe().s[17]++,u.Z.get("/openc3-api/autocomplete/keywords/screen").then((function(t){fe().f[7]++,fe().s[18]++,e.keywords=t.data}))},mounted:function(){fe().f[8]++,fe().s[19]++,this.grid=new Ae.Z(".grid",{dragEnabled:!0,dragHandle:".v-system-bar"}),fe().s[20]++,this.grid.on("dragEnd",this.refreshLayout);var e=(fe().s[21]++,localStorage["lastconfig__telemetry_viewer"]);fe().s[22]++,e?(fe().b[2][0]++,fe().s[23]++,this.openConfiguration(e)):fe().b[2][1]++},methods:{updateScreens:function(){var e=this;fe().f[9]++,fe().s[24]++,u.Z.get("/openc3-api/screen/"+this.selectedTarget).then((function(t){fe().f[10]++,fe().s[25]++,e.$set(e.screens,e.selectedTarget,t.data)}))},targetSelect:function(e){fe().f[11]++,fe().s[26]++,this.selectedTarget=e,fe().s[27]++,this.selectedScreen="",fe().s[28]++,this.updateScreens()},screenSelect:function(e){fe().f[12]++,fe().s[29]++,this.selectedScreen=e,fe().s[30]++,this.showScreen(this.selectedTarget,this.selectedScreen)},newScreen:function(){fe().f[13]++,fe().s[31]++,this.newScreenDialog=!0},saveNewScreen:function(e,t,n){var i=this;return(0,c.Z)((0,o.Z)().mark((function s(){var l;return(0,o.Z)().wrap((function(s){while(1)switch(s.prev=s.next){case 0:if(fe().f[14]++,fe().s[32]++,l="SCREEN AUTO AUTO 1.0\n",fe().s[33]++,fe().b[4][0]++,!t||(fe().b[4][1]++,"BLANK"===t)){s.next=12;break}return fe().b[3][0]++,fe().s[34]++,l+="\nVERTICAL\n",fe().s[35]++,s.next=10,i.api.get_telemetry(n,t).then((function(e){fe().f[15]++,fe().s[36]++,e.items.forEach((function(e){fe().f[16]++,fe().s[37]++,l+=" LABELVALUE ".concat(n," ").concat(t," ").concat(e.name,"\n")})),fe().s[38]++,l+="END\n"}));case 10:s.next=15;break;case 12:fe().b[3][1]++,fe().s[39]++,l+="\nLABEL NEW\n";case 15:fe().s[40]++,u.Z.post("/openc3-api/screen/",{data:{scope:window.openc3Scope,target:n,screen:e,text:l}}).then((function(t){fe().f[17]++,fe().s[41]++,i.newScreenDialog=!1,fe().s[42]++,i.targets.includes({label:n,value:n})?fe().b[5][1]++:(fe().b[5][0]++,fe().s[43]++,i.targets.push({label:n,value:n}),fe().s[44]++,i.targets.sort((function(e,t){return fe().f[18]++,fe().s[45]++,e.label<t.label?(fe().b[6][0]++,fe().s[46]++,-1):(fe().b[6][1]++,fe().s[47]++,e.label>t.label?(fe().b[7][0]++,fe().s[48]++,1):(fe().b[7][1]++,fe().s[49]++,0))}))),fe().s[50]++,i.selectedTarget=n,fe().s[51]++,i.selectedScreen=e,fe().s[52]++,i.updateScreens(),fe().s[53]++,i.showScreen(n,e)}));case 17:case"end":return s.stop()}}),s)})))()},showScreen:function(e,t){var n=this;fe().f[19]++;var i=(fe().s[54]++,this.definitions.find((function(n){return fe().f[20]++,fe().s[55]++,fe().b[8][0]++,n.target==e&&(fe().b[8][1]++,n.screen==t)})));fe().s[56]++,i?fe().b[9][1]++:(fe().b[9][0]++,fe().s[57]++,this.loadScreen(e,t).then((function(i){fe().f[21]++,fe().s[58]++,n.pushScreen({id:n.counter++,target:e,screen:t,definition:i.data})})))},loadScreen:function(e,t){return fe().f[22]++,fe().s[59]++,u.Z.get("/openc3-api/screen/"+e+"/"+t,{headers:{Accept:"text/plain"}})},pushScreen:function(e){fe().f[23]++,fe().s[60]++,this.definitions.push(e),fe().s[61]++,this.$nextTick((function(){fe().f[24]++;var e=(fe().s[62]++,this.grid.add(this.$refs.gridItem[this.$refs.gridItem.length-1],{active:!1}));fe().s[63]++,this.grid.show(e),fe().s[64]++,this.grid.refreshItems().layout()}))},closeScreenByName:function(e,t){fe().f[25]++;var n=(fe().s[65]++,this.definitions.find((function(n){return fe().f[26]++,fe().s[66]++,fe().b[10][0]++,n.target==e&&(fe().b[10][1]++,n.screen==t)})));fe().s[67]++,n?(fe().b[11][0]++,fe().s[68]++,this.closeScreen(n.id)):fe().b[11][1]++},closeAll:function(){fe().f[27]++,fe().s[69]++;var e,t=(0,r.Z)(this.definitions);try{for(t.s();!(e=t.n()).done;){var n=e.value;fe().s[70]++,this.closeScreen(n.id)}}catch(i){t.e(i)}finally{t.f()}},closeScreen:function(e){fe().f[28]++;var t=(fe().s[71]++,this.grid.getItems([document.getElementById(this.screenId(e))]));fe().s[72]++,this.grid.remove(t),fe().s[73]++,this.grid.refreshItems().layout(),fe().s[74]++,this.definitions=this.definitions.filter((function(t,n,i){return fe().f[29]++,fe().s[75]++,t.id!=e}))},deleteScreen:function(e){fe().f[30]++,fe().s[76]++,this.closeScreen(e),fe().s[77]++,this.updateScreens()},refreshLayout:function(){var e=this;fe().f[31]++,fe().s[78]++,setTimeout((function(){fe().f[32]++,fe().s[79]++,e.grid.refreshItems().layout()}),600)},screenId:function(e){return fe().f[33]++,fe().s[80]++,"tlmViewerScreen"+e},openConfiguration:function(){var e=(0,c.Z)((0,o.Z)().mark((function e(t){var n,i,s,l=this;return(0,o.Z)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return fe().f[34]++,fe().s[81]++,localStorage["lastconfig__telemetry_viewer"]=t,fe().s[82]++,this.counter=0,fe().s[83]++,this.definitions=[],fe().s[84]++,e.next=10,this.api.load_config(this.toolName,t);case 10:n=e.sent,fe().s[85]++,n?(fe().b[12][0]++,fe().s[86]++,i=JSON.parse(n),fe().s[87]++,s=i.map((function(e){return fe().f[35]++,fe().s[88]++,l.loadScreen(e.target,e.screen)})),fe().s[89]++,Promise.all(s).then((function(e){fe().f[36]++,fe().s[90]++,i.forEach((function(t,n){fe().f[37]++;var i=(fe().s[91]++,e[n]);fe().s[92]++,setTimeout((function(){fe().f[38]++,fe().s[93]++,l.pushScreen({id:l.counter++,target:t.target,screen:t.screen,definition:i.data})}),0)}))})).then((function(){fe().f[39]++,fe().s[94]++,setTimeout(l.refreshLayout,0)}))):fe().b[12][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[40]++,fe().s[95]++,localStorage["lastconfig__telemetry_viewer"]=e;var n=(fe().s[96]++,this.grid.getItems().map((function(e){return fe().f[41]++,fe().s[97]++,e.getElement().id}))),i=(fe().s[98]++,this.definitions.sort((function(e,i){return fe().f[42]++,fe().s[99]++,n.indexOf(t.screenId(e))>n.indexOf(t.screenId(i))?(fe().b[13][0]++,-1):(fe().b[13][1]++,1)})).map((function(e){return fe().f[43]++,fe().s[100]++,{screen:e.screen,target:e.target}})));fe().s[101]++,this.api.save_config(this.toolName,e,JSON.stringify(i))}}},ge=ve,_e=(n(31032),(0,f.Z)(ge,l,a,!1,null,"7087470b",null)),we=_e.exports},93964:function(e,t,n){"use strict";n.d(t,{Z:function(){return h}});n(34115),n(634);var i=function(){var e=this,t=e._self._c;return t("v-dialog",{attrs:{width:"600"},model:{value:e.show,callback:function(t){e.show=t},expression:"show"}},[t("v-card",[t("v-system-bar",[t("v-spacer"),t("span",[e._v(" Details ")]),t("v-spacer")],1),t("v-card-title",[e._v(" "+e._s(e.targetName)+" "+e._s(e.packetName)+" "+e._s(e.itemName)+" ")]),t("v-card-subtitle",[e._v(e._s(e.details.description))]),t("v-card-text",[t("v-container",{attrs:{fluid:""}},["tlm"===e.type?t("v-row",{attrs:{"no-gutters":""}},[t("v-col",{staticClass:"label",attrs:{cols:"3"}},[e._v("Item Values")]),t("v-col"),t("v-container",{staticClass:"ml-5 pa-0",attrs:{fluid:""}},[t("v-row",{attrs:{"no-gutters":""}},[t("v-col",{staticClass:"label",attrs:{cols:"4"}},[e._v("Raw Value")]),t("v-col",[e._v(e._s(e.rawValue))])],1),t("v-row",{attrs:{"no-gutters":""}},[t("v-col",{staticClass:"label",attrs:{cols:"4"}},[e._v("Converted Value")]),t("v-col",[e._v(e._s(e.convertedValue))])],1),t("v-row",{attrs:{"no-gutters":""}},[t("v-col",{staticClass:"label",attrs:{cols:"4"}},[e._v("Formatted Value")]),t("v-col",[e._v(e._s(e.formattedValue))])],1),t("v-row",{attrs:{"no-gutters":""}},[t("v-col",{staticClass:"label",attrs:{cols:"4"}},[e._v("With Units Value")]),t("v-col",[e._v(e._s(e.unitsValue))])],1)],1)],1):e._e(),t("v-row",{attrs:{"no-gutters":""}},[t("v-col",{staticClass:"label",attrs:{cols:"3"}},[e._v("Bit Offset")]),t("v-col",[e._v(e._s(e.details.bit_offset))])],1),t("v-row",{attrs:{"no-gutters":""}},[t("v-col",{staticClass:"label",attrs:{cols:"3"}},[e._v("Bit Size")]),t("v-col",[e._v(e._s(e.details.bit_size))])],1),e.details.array_size?t("v-row",{attrs:{"no-gutters":""}},[t("v-col",{staticClass:"label",attrs:{cols:"3"}},[e._v("Array Size")]),t("v-col",[e._v(e._s(e.details.array_size))])],1):e._e(),t("v-row",{attrs:{"no-gutters":""}},[t("v-col",{staticClass:"label",attrs:{cols:"3"}},[e._v("Data Type")]),t("v-col",[e._v(e._s(e.details.data_type))])],1),"cmd"===e.type?t("v-row",{attrs:{"no-gutters":""}},[t("v-col",{staticClass:"label",attrs:{cols:"3"}},[e._v("Minimum")]),t("v-col",[e._v(e._s(e.details.minimum))])],1):e._e(),"cmd"===e.type?t("v-row",{attrs:{"no-gutters":""}},[t("v-col",{staticClass:"label",attrs:{cols:"3"}},[e._v("Maximum")]),t("v-col",[e._v(e._s(e.details.maximum))])],1):e._e(),"cmd"===e.type?t("v-row",{attrs:{"no-gutters":""}},[t("v-col",{staticClass:"label",attrs:{cols:"3"}},[e._v("Default")]),t("v-col",[e._v(e._s(e.details.default))])],1):e._e(),t("v-row",{attrs:{"no-gutters":""}},[t("v-col",{staticClass:"label",attrs:{cols:"3"}},[e._v("Format String")]),t("v-col",[e._v(e._s(e.details.format_string))])],1),t("v-row",{attrs:{"no-gutters":""}},[t("v-col",{staticClass:"label",attrs:{cols:"3"}},[e._v("Read Conversion")]),e.details.read_conversion?t("v-col",[e._v(" Class: "+e._s(e.details.read_conversion.class)+" "),t("br"),e._v(" Params: "+e._s(e.details.read_conversion.params)+" ")]):t("v-col")],1),t("v-row",{attrs:{"no-gutters":""}},[t("v-col",{staticClass:"label",attrs:{cols:"3"}},[e._v("Write Conversion")]),e.details.write_conversion?t("v-col",[e._v(" Class: "+e._s(e.details.write_conversion.class)+" "),t("br"),e._v(" Params: "+e._s(e.details.write_conversion.params)+" ")]):t("v-col")],1),t("v-row",{attrs:{"no-gutters":""}},[t("v-col",{staticClass:"label",attrs:{cols:"3"}},[e._v("Id Value")]),t("v-col",[e._v(e._s(e.details.id_value))])],1),t("v-row",{attrs:{"no-gutters":""}},[t("v-col",{staticClass:"label",attrs:{cols:"3"}},[e._v("Units Full")]),t("v-col",[e._v(e._s(e.details.units_full))])],1),t("v-row",{attrs:{"no-gutters":""}},[t("v-col",{staticClass:"label",attrs:{cols:"3"}},[e._v("Units Abbr")]),t("v-col",[e._v(e._s(e.details.units))])],1),t("v-row",{attrs:{"no-gutters":""}},[t("v-col",{staticClass:"label",attrs:{cols:"3"}},[e._v("Endianness")]),t("v-col",[e._v(e._s(e.details.endianness))])],1),e.details.states?t("v-row",{attrs:{"no-gutters":""}},[t("v-col",{staticClass:"label",attrs:{cols:"3"}},[e._v("States")]),t("v-col"),t("v-container",{staticClass:"ml-5 pa-0",attrs:{fluid:""}},e._l(e.details.states,(function(n,i){return t("v-row",{key:i,attrs:{"no-gutters":""}},[t("v-col",{staticClass:"label",attrs:{cols:"4"}},[e._v(e._s(i))]),t("v-col",[e._v(e._s(n.value))])],1)})),1)],1):t("v-row",{attrs:{"no-gutters":""}},[t("v-col",{staticClass:"label",attrs:{cols:"3"}},[e._v("States")]),t("v-col",[e._v("None")])],1),e.details.limits?t("v-row",{attrs:{"no-gutters":""}},[t("v-col",{staticClass:"label",attrs:{cols:"3"}},[e._v("Limits")]),t("v-col"),t("v-container",{staticClass:"ml-5 pa-0",attrs:{fluid:""}},e._l(e.details.limits,(function(n,i){return t("v-row",{key:i,attrs:{"no-gutters":""}},["enabled"===i?t("v-col",{staticClass:"label",attrs:{cols:"4"}},[e._v("Enabled")]):e._e(),"enabled"===i?t("v-switch",{attrs:{dense:"","hide-details":""},on:{change:e.changeLimitsEnabled},model:{value:e.details.limits.enabled,callback:function(t){e.$set(e.details.limits,"enabled",t)},expression:"details.limits.enabled"}}):e._e(),"enabled"!==i?t("v-col",{staticClass:"label",attrs:{cols:"4"}},[e._v(e._s(i))]):e._e(),"enabled"!==i?t("div",[e._v(e._s(e.formatLimit(n)))]):e._e(),t("v-col")],1)})),1)],1):t("v-row",{attrs:{"no-gutters":""}},[t("v-col",{staticClass:"label",attrs:{cols:"3"}},[e._v("Limits")]),t("v-col",[e._v("None")])],1),e.details.meta?t("v-row",{attrs:{"no-gutters":""}},[t("v-col",{staticClass:"label",attrs:{cols:"3"}},[e._v("Meta")]),t("v-col"),t("v-container",{staticClass:"ml-5 pa-0",attrs:{fluid:""}},e._l(e.details.meta,(function(n,i){return t("v-row",{key:i,attrs:{"no-gutters":""}},[t("v-col",{staticClass:"label",attrs:{cols:"4"}},[e._v(e._s(i))]),t("v-col",[e._v(e._s(n))])],1)})),1)],1):t("v-row",{attrs:{"no-gutters":""}},[t("v-col",{staticClass:"label",attrs:{cols:"3"}},[e._v("Meta")]),t("v-col",[e._v("None")])],1)],1)],1)],1)],1)},s=[],l=n(15789),a=n(66964),r=n(49502),o=(n(74083),n(18178),n(32501),n(68995),n(27233),n(28673),n(58188),n(88233),n(48392)),c={props:{type:{default:"tlm",validator:function(e){return-1!==["cmd","tlm"].indexOf(e)}},targetName:String,packetName:String,itemName:String,value:Boolean},data:function(){return{details:Object,updater:null,rawValue:null,convertedValue:null,formattedValue:null,unitsValue:null}},computed:{show:{get:function(){return this.value},set:function(e){this.$emit("input",e)}}},created:function(){this.api=new o.k},beforeDestroy:function(){clearInterval(this.updater),this.updater=null},watch:{value:function(e,t){var n=this;e?(this.requestDetails(),"tlm"===this.type&&(this.updater=setInterval((function(){n.api.get_tlm_values(["".concat(n.targetName,"__").concat(n.packetName,"__").concat(n.itemName,"__RAW"),"".concat(n.targetName,"__").concat(n.packetName,"__").concat(n.itemName,"__CONVERTED"),"".concat(n.targetName,"__").concat(n.packetName,"__").concat(n.itemName,"__FORMATTED"),"".concat(n.targetName,"__").concat(n.packetName,"__").concat(n.itemName,"__WITH_UNITS")]).then((function(e){for(var t=0;t<e.length;t++){var i=null;if("String"===e[t][0]["json_class"]&&void 0!==e[t][0]["raw"]?i=e[t][0]["raw"]:"BLOCK"===n.details.data_type&&(i=e[t][0]),null!==i){i=i.slice(0,parseInt(n.details.bit_size)/8);var s=!1;i.length>64&&(s=!0),e[t][0]=Array.from(i.slice(0,64),(function(e){return("0"+(255&e).toString(16)).slice(-2)})).join(" ").toUpperCase(),s&&(e[t][0]+="...")}}n.rawValue=e[0][0],n.convertedValue=e[1][0],n.formattedValue=e[2][0],n.unitsValue=e[3][0]}))}),1e3))):(clearInterval(this.updater),this.updater=null)}},methods:{requestDetails:function(){var e=this;return(0,r.Z)((0,l.Z)().mark((function t(){return(0,l.Z)().wrap((function(t){while(1)switch(t.prev=t.next){case 0:if("tlm"!==e.type){t.next=5;break}return t.next=3,e.api.get_item(e.targetName,e.packetName,e.itemName).then((function(t){if(e.details=t,t.limits){var n=!1;t.limits.enabled&&(n=!0,delete t.limits.enabled),e.details.limits=(0,a.Z)({enabled:n},t.limits)}}));case 3:t.next=7;break;case 5:return t.next=7,e.api.get_parameter(e.targetName,e.packetName,e.itemName).then((function(t){e.details=t}));case 7:case"end":return t.stop()}}),t)})))()},changeLimitsEnabled:function(){var e=this;return(0,r.Z)((0,l.Z)().mark((function t(){return(0,l.Z)().wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(!e.details.limits.enabled){t.next=5;break}return t.next=3,e.api.enable_limits(e.targetName,e.packetName,e.itemName);case 3:t.next=7;break;case 5:return t.next=7,e.api.disable_limits(e.targetName,e.packetName,e.itemName);case 7:case"end":return t.stop()}}),t)})))()},formatLimit:function(e){return e.green_low?"RL/"+e.red_low+" YL/"+e.yellow_low+" YH/"+e.yellow_high+" RH/"+e.red_high+" GL/"+e.green_low+" GH/"+e.green_high:e.red_low?"RL/"+e.red_low+" YL/"+e.yellow_low+" YH/"+e.yellow_high+" RH/"+e.red_high:e}}},u=c,d=(n(23270),n(93483)),m=(0,d.Z)(u,i,s,!1,null,"1e0f0ab0",null),h=m.exports},92207: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","date-time":e.graphStartDateTime},on:{"date-time":function(t){e.graphStartDateTime=t}}}),t("v-card-text",{staticClass:"pa-0"},[e._v(" Select a end date/time for the graph. Leave blank for continuous real-time graphing. ")]),t("date-time-chooser",{attrs:{"date-label":"End Date","time-label":"End Time","date-time":e.graphEndDateTime},on:{"date-time":function(t){e.graphEndDateTime=t}}}),t("v-row",{attrs:{dense:""}},[t("v-select",{attrs:{label:"Legend Position",items:e.legendPositions,"data-test":"edit-legend-position"},model:{value:e.legendPosition,callback:function(t){e.legendPosition=t},expression:"legendPosition"}})],1),t("v-card-text",{staticClass:"pa-0"},[e._v(" Optional Y axis settings. ")]),t("v-row",{attrs:{dense:""}},[t("v-col",{staticClass:"px-2"},[t("v-text-field",{attrs:{"hide-details":"",label:"Min Y",type:"number","data-test":"graph-min-y"},model:{value:e.graphMinY,callback:function(t){e.graphMinY=t},expression:"graphMinY"}})],1),t("v-col",{staticClass:"px-2"},[t("v-text-field",{attrs:{"hide-details":"",label:"Max Y",type:"number","data-test":"graph-max-y"},model:{value:e.graphMaxY,callback:function(t){e.graphMaxY=t},expression:"graphMaxY"}})],1)],1),t("v-data-table",{staticClass:"elevation-1 my-2",attrs:{"item-key":"itemId",headers:e.itemHeaders,items:e.editItems,"items-per-page":5,"footer-props":{"items-per-page-options":[5]}},scopedSlots:e._u([{key:"item.actions",fn:function(n){var i=n.item;return[t("v-tooltip",{attrs:{top:""},scopedSlots:e._u([{key:"activator",fn:function(n){var s=n.on,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",{attrs:{nav:"",dense:""}},[t("v-subheader",[e._v(" "+e._s(e.selectedItem.targetName)+" "+e._s(e.selectedItem.packetName)+" "+e._s(e.selectedItem.itemName)+" ")]),t("v-list-item",{on:{click:function(t){return e.openEditItem()}}},[t("v-list-item-icon",[t("v-icon",[e._v("mdi-pencil")])],1),t("v-list-item-content",[t("v-list-item-title",[e._v(" Edit ")])],1)],1),t("v-list-item",{on:{click:function(t){return e.removeItems([e.selectedItem])}}},[t("v-list-item-icon",[t("v-icon",[e._v("mdi-delete")])],1),t("v-list-item-content",[t("v-list-item-title",[e._v(" Delete ")])],1)],1)],1)],1):e._e(),e.legendMenu?t("v-menu",{attrs:{"position-x":e.legendMenuX,"position-y":e.legendMenuY,absolute:"","offset-y":""},model:{value:e.legendMenu,callback:function(t){e.legendMenu=t},expression:"legendMenu"}},[t("v-list",[t("v-list-item",{on:{click:function(t){return e.moveLegend("top")}}},[t("v-list-item-title",{staticStyle:{cursor:"pointer"}},[e._v("Legend Top")])],1),t("v-list-item",{on:{click:function(t){return e.moveLegend("bottom")}}},[t("v-list-item-title",{staticStyle:{cursor:"pointer"}},[e._v("Legend Bottom")])],1),t("v-list-item",{on:{click:function(t){return e.moveLegend("left")}}},[t("v-list-item-title",{staticStyle:{cursor:"pointer"}},[e._v("Legend Left")])],1),t("v-list-item",{on:{click:function(t){return e.moveLegend("right")}}},[t("v-list-item-title",{staticStyle:{cursor:"pointer"}},[e._v("Legend RIght")])],1)],1)],1):e._e()],1)},s=[],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=n(66700),p=n(73053),A={props:{required:{type:Boolean,default:!0},dateTime:{type:Number,default:null},dateLabel:{type:String,default:"Date"},timeLabel:{type:String,default:"Time"}},data:function(){return{date:null,time:null,rules:{required:function(e){return!!e||"Required"},date:function(e){if(!e)return!0;try{return(0,d.Z)((0,m.Z)(e,"yyyy-MM-dd",new Date))||"Invalid date (YYYY-MM-DD)"}catch(t){return"Invalid date (YYYY-MM-DD)"}},time:function(e){if(!e)return!0;try{return(0,d.Z)((0,m.Z)(e,"HH:mm:ss",new Date))||"Invalid time (HH:MM:SS)"}catch(t){return"Invalid time (HH:MM:SS)"}}}}},computed:{dateRules:function(){var e=[this.rules.date];return(this.time||this.required)&&e.push(this.rules.required),e},timeRules:function(){var e=[this.rules.time];return(this.date||this.required)&&e.push(this.rules.required),e}},created:function(){if(this.dateTime){var e=(0,h.Z)(this.dateTime/1e6);this.date=(0,p.Z)(e,"yyyy-MM-dd"),this.time=(0,p.Z)(e,"HH:mm:ss")}},methods:{onChange:function(){this.date&&this.time?this.$emit("date-time",this.date+" "+this.time):this.$emit("date-time",null)}}},f=A,v=n(93483),g=(0,v.Z)(f,c,u,!1,null,null,null),_=g.exports,w=n(35685),C=n(86522),b=n.n(C),y=n(59161);n(8514);var x={components:{DateTimeChooser:_},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:null,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 w.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,p.Z)((0,h.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 w.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 w.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),w.Z.rangeNum(l,a,t,!0)}},subscribe:function(){var e=this;this.cable.createSubscription("StreamingChannel",window.openc3Scope,{received:function(t){return e.received(t)},connected:function(){e.addItemsToSubscription(e.items)},disconnected:function(){e.errors.push({type:"disconnected",message:"OpenC3 backend connection disconnected",time:(new Date).getTime()})},rejected:function(){e.errors.push({type:"rejected",message:"OpenC3 backend connection rejected",time:(new Date).getTime()})}}).then((function(t){e.subscription=t}))},getSize:function(e){var t=document.getElementById("openc3-nav-drawer"),n=t.classList.contains("v-navigation-drawer--open")?t.clientWidth:0,i=0;if("right"===this.legendPosition||"left"===this.legendPosition){var s=document.getElementsByClassName("u-legend")[0];i=s.clientWidth}var 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:this.showOverview=!1: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]:w.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=this.startTime;this.graphStartDateTime&&(n=this.graphStartDateTime),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:n,end_time:e.graphEndDateTime})}))},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){this.cable.recordPing();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=b()(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])}}}if(null===this.startTime){var c=1e9*this.data[0][0];this.$emit("started",c)}},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(87653),n(96541),(0,v.Z)(k,i,s,!1,null,"cf7e213e",null)),T=S.exports},91679: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(93964),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(94776),n(93483)),d=(0,u.Z)(c,i,s,!1,null,"5cd86706",null),m=d.exports},69674: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(93964),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(15474),n(93483)),d=(0,u.Z)(c,i,s,!1,null,"48b8ff8d",null),m=d.exports},66336: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(90985),a=l.Z,r=n(93483),o=(0,r.Z)(a,i,s,!1,null,null,null),c=o.exports},37739: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(64550),n(93483)),c=(0,o.Z)(r,i,s,!1,null,"17947dc7",null),u=c.exports},72810: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(93483),c=(0,o.Z)(r,i,s,!1,null,null,null),u=c.exports},4673: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(93483),u=(0,c.Z)(o,i,s,!1,null,null,null),d=u.exports},62847: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(93483),h=(0,m.Z)(d,i,s,!1,null,null,null),p=h.exports},19091: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(93483),c=(0,o.Z)(r,i,s,!1,null,null,null),u=c.exports},19269: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(93483),c=(0,o.Z)(r,i,s,!1,null,null,null),u=c.exports},96068: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(93483),c=(0,o.Z)(r,i,s,!1,null,null,null),u=c.exports},87502: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(93483),c=(0,o.Z)(r,i,s,!1,null,null,null),u=c.exports},6122: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(93483),c=(0,o.Z)(r,i,s,!1,null,null,null),u=c.exports},84190: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(93483),c=(0,o.Z)(r,i,s,!1,null,null,null),u=c.exports},26593: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(93483),d=(0,u.Z)(c,s,l,!1,null,null,null),m=d.exports},90742: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(25572),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(93483),u=(0,c.Z)(o,i,s,!1,null,null,null),d=u.exports},21282: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(93483),c=(0,o.Z)(r,i,s,!1,null,null,null),u=c.exports},23901: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(21282),a=n(548),r={mixins:[a.Z],components:{HorizontalWidget:l["default"]}},o=r,c=(n(52192),n(93483)),u=(0,c.Z)(o,i,s,!1,null,"1307e02a",null),d=u.exports},59673: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(93483),c=(0,o.Z)(r,i,s,!1,null,null,null),u=c.exports},29685: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(this.cable.recordPing(),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(93483),d=(0,u.Z)(c,i,s,!1,null,null,null),m=d.exports},6903: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(41018),n(93483)),c=(0,o.Z)(r,i,s,!1,null,"712bf360",null),u=c.exports},1633: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(6903),r=n(26626),o={mixins:[l.Z],components:{LabelWidget:a["default"],LedWidget:r["default"]},computed:{labelName:function(){return[this.parameters[2]+":"]}}},c=o,u=n(93483),d=(0,u.Z)(c,i,s,!1,null,null,null),m=d.exports},28: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(6903),r=n(96129),o={mixins:[l.Z],components:{LabelWidget:a["default"],ProgressbarWidget:r["default"]},computed:{labelName:function(){return[this.parameters[2]+":"]}}},c=o,u=n(93483),d=(0,u.Z)(c,i,s,!1,null,null,null),m=d.exports},5986: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(6903),r=n(24810),o={mixins:[l.Z],components:{LabelWidget:a["default"],SparklineWidget:r["default"]},computed:{labelName:function(){return[this.parameters[2]+":"]}}},c=o,u=n(93483),d=(0,u.Z)(c,i,s,!1,null,null,null),m=d.exports},69233: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(6903),r=n(25572),o={mixins:[l.Z],components:{LabelWidget:a["default"],ValueWidget:r["default"]},computed:{labelName:function(){return[this.parameters[2]+":"]}}},c=o,u=n(93483),d=(0,u.Z)(c,i,s,!1,null,null,null),m=d.exports},41038: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(6903),r=n(25572),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(93483),m=(0,d.Z)(u,i,s,!1,null,null,null),h=m.exports},80129: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(69233),a=n(97619),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(93483),d=(0,u.Z)(c,i,s,!1,null,null,null),m=d.exports},87435: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(6903)),a=n(25572),r=n(29677),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(93483),m=(0,d.Z)(u,i,s,!1,null,null,null),h=m.exports},32678: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(69233),a=n(57280),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(93483),d=(0,u.Z)(c,i,s,!1,null,null,null),m=d.exports},26626: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(77901),n(93483)),c=(0,o.Z)(r,i,s,!1,null,"6b37bdba",null),u=c.exports},97619: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(34010),n(93483)),d=(0,u.Z)(c,i,s,!1,null,"5eb118dc",null),m=d.exports},93396: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(31225),n(93483)),c=(0,o.Z)(r,i,s,!1,null,"7b6a53f7",null),u=c.exports},29677: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(25234),n(93483)),d=(0,u.Z)(c,i,s,!1,null,"3b476f5b",null),m=d.exports},9701: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(92207),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(93483),d=(0,u.Z)(c,i,s,!1,null,null,null),m=d.exports},78577: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(93483),d=(0,u.Z)(c,i,s,!1,null,null,null),m=d.exports},96129: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(93483),c=(0,o.Z)(r,i,s,!1,null,null,null),u=c.exports},1882: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(93483),c=(0,o.Z)(r,i,s,!1,null,null,null),u=c.exports},22201: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(93483),c=(0,o.Z)(r,i,s,!1,null,null,null),u=c.exports},57280: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(27287),n(93483)),c=(0,o.Z)(r,i,s,!1,null,"66c56776",null),u=c.exports},44449: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(98477),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(93483),u=(0,c.Z)(o,i,s,!1,null,null,null),d=u.exports},1138: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(93483),c=(0,o.Z)(r,i,s,!1,null,null,null),u=c.exports},98213: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(93483),c=(0,o.Z)(r,i,s,!1,null,null,null),u=c.exports},24810: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(92207),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(93483),d=(0,u.Z)(c,i,s,!1,null,null,null),m=d.exports},90871: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(93483),c=(0,o.Z)(r,i,s,!1,null,null,null),u=c.exports},31597: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(93964),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(13134),n(93483)),u=(0,c.Z)(o,i,s,!1,null,"0b5bfdc6",null),d=u.exports},71447: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(93483),c=(0,o.Z)(r,i,s,!1,null,null,null),u=c.exports},43748: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(93483),c=(0,o.Z)(r,i,s,!1,null,null,null),u=c.exports},25572: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(93964),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(93529),n(93483)),d=(0,u.Z)(c,i,s,!1,null,"c4d1ea2c",null),m=d.exports},97749: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(25572),a=n(97619),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(93483),d=(0,u.Z)(c,i,s,!1,null,null,null),m=d.exports},35979: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(25572)),a=n(29677),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(93483),d=(0,u.Z)(c,i,s,!1,null,null,null),m=d.exports},90330: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(25572),a=n(57280),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(93483),d=(0,u.Z)(c,i,s,!1,null,null,null),m=d.exports},17814: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(93483),c=(0,o.Z)(r,i,s,!1,null,null,null),u=c.exports},98477: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(17814),a=n(548),r={mixins:[a.Z],components:{VerticalWidget:l["default"]},props:{contentStyle:{type:String}}},o=r,c=(n(59904),n(93483)),u=(0,c.Z)(o,i,s,!1,null,"8f70d4e2",null),d=u.exports},37475:function(e,t,n){"use strict";n.r(t);var i=n(39601),s=n.n(i),l=n(82609),a=n.n(l),r=a()(s());r.push([e.id,".ace_autocomplete{width:60vw!important}",""]),t["default"]=r},11176:function(e,t,n){"use strict";n.r(t);var i=n(39601),s=n.n(i),l=n(82609),a=n.n(l),r=a()(s());r.push([e.id,"#editor[data-v-16f638fc]{height:50vh;width:75vw;position:relative;font-size:16px}.v-card[data-v-16f638fc]{background-color:var(--v-tertiary-darken2)}.v-textarea[data-v-16f638fc] textarea{padding:5px;background-color:var(--v-tertiary-darken1)!important}",""]),t["default"]=r},44820:function(e,t,n){"use strict";n.r(t);var i=n(39601),s=n.n(i),l=n(82609),a=n.n(l),r=a()(s());r.push([e.id,".v-card[data-v-28e0f181]{background-color:var(--v-tertiary-darken2)}.v-textarea[data-v-28e0f181] textarea{padding:5px;background-color:var(--v-tertiary-darken1)!important}",""]),t["default"]=r},93954:function(e,t,n){"use strict";n.r(t);var i=n(39601),s=n.n(i),l=n(82609),a=n.n(l),r=a()(s());r.push([e.id,".grid[data-v-7087470b]{position:relative}.item[data-v-7087470b]{position:absolute;display:block;margin:5px;z-index:1}.item.muuri-item-dragging[data-v-7087470b]{z-index:3}.item.muuri-item-releasing[data-v-7087470b]{z-index:2}.item.muuri-item-hidden[data-v-7087470b]{z-index:0}.item-content[data-v-7087470b]{position:relative;cursor:pointer;border-radius:6px}",""]),t["default"]=r},43208:function(e,t,n){"use strict";n.r(t);var i=n(39601),s=n.n(i),l=n(82609),a=n.n(l),r=a()(s());r.push([e.id,".label[data-v-1e0f0ab0]{font-weight:700;text-transform:capitalize}[data-v-1e0f0ab0] .v-input--selection-controls{padding:0;margin:0}",""]),t["default"]=r},63061:function(e,t,n){"use strict";n.r(t);var i=n(39601),s=n.n(i),l=n(82609),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},96504:function(e,t,n){"use strict";n.r(t);var i=n(39601),s=n.n(i),l=n(82609),a=n.n(l),r=a()(s());r.push([e.id,"#chart[data-v-cf7e213e]{background-color:var(--v-tertiary-darken2)}#chart[data-v-cf7e213e] .u-select{background-color:hsla(0,0%,100%,.07)}",""]),t["default"]=r},6294:function(e,t,n){"use strict";n.r(t);var i=n(39601),s=n.n(i),l=n(82609),a=n.n(l),r=a()(s());r.push([e.id,".v-list[data-v-2eb37f67] .v-label{margin-left:5px}.v-list-item__icon[data-v-2eb37f67]{margin-right:15px!important}.v-list-item__title[data-v-2eb37f67]{color:#fff}",""]),t["default"]=r},20652:function(e,t,n){"use strict";n.r(t);var i=n(39601),s=n.n(i),l=n(82609),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},55401:function(e,t,n){"use strict";n.r(t);var i=n(39601),s=n.n(i),l=n(82609),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},37829:function(e,t,n){"use strict";n.r(t);var i=n(39601),s=n.n(i),l=n(82609),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},97062:function(e,t,n){"use strict";n.r(t);var i=n(39601),s=n.n(i),l=n(82609),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},91423:function(e,t,n){"use strict";n.r(t);var i=n(39601),s=n.n(i),l=n(82609),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},68375:function(e,t,n){"use strict";n.r(t);var i=n(39601),s=n.n(i),l=n(82609),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},76658:function(e,t,n){"use strict";n.r(t);var i=n(39601),s=n.n(i),l=n(82609),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},64596:function(e,t,n){"use strict";n.r(t);var i=n(39601),s=n.n(i),l=n(82609),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},31023:function(e,t,n){"use strict";n.r(t);var i=n(39601),s=n.n(i),l=n(82609),a=n.n(l),r=a()(s());r.push([e.id,"svg[data-v-17947dc7]{background-color:#fff}",""]),t["default"]=r},98732:function(e,t,n){"use strict";n.r(t);var i=n(39601),s=n.n(i),l=n(82609),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},63535:function(e,t,n){"use strict";n.r(t);var i=n(39601),s=n.n(i),l=n(82609),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},68534:function(e,t,n){"use strict";n.r(t);var i=n(39601),s=n.n(i),l=n(82609),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},72509:function(e,t,n){"use strict";n.r(t);var i=n(39601),s=n.n(i),l=n(82609),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},90985: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__),core_js_modules_es_array_push_js__WEBPACK_IMPORTED_MODULE_9__=__webpack_require__(36728),core_js_modules_es_array_push_js__WEBPACK_IMPORTED_MODULE_9___default=__webpack_require__.n(core_js_modules_es_array_push_js__WEBPACK_IMPORTED_MODULE_9__),_services_openc3_api__WEBPACK_IMPORTED_MODULE_10__=__webpack_require__(48392),_services_api__WEBPACK_IMPORTED_MODULE_11__=__webpack_require__(16129),_Widget__WEBPACK_IMPORTED_MODULE_12__=__webpack_require__(92202);__webpack_exports__["Z"]={mixins:[_Widget__WEBPACK_IMPORTED_MODULE_12__.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_10__.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],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=[];for(var s in n)i.push({key:s,value:n[s],readonly:!1});_services_api__WEBPACK_IMPORTED_MODULE_11__.Z.post("/script-api/scripts/".concat(e,"/run"),{data:{environment:i}}).then((function(e){t&&window.open("/tools/scriptrunner/".concat(e.data),"_blank")}))}}}},40606:function(e,t,n){var i=n(37475);i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[e.id,i,""]]),i.locals&&(e.exports=i.locals);var s=n(3514).Z;s("a9364eb0",i,!0,{sourceMap:!1,shadowMode:!1})},92399:function(e,t,n){var i=n(11176);i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[e.id,i,""]]),i.locals&&(e.exports=i.locals);var s=n(3514).Z;s("adef5298",i,!0,{sourceMap:!1,shadowMode:!1})},65909:function(e,t,n){var i=n(44820);i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[e.id,i,""]]),i.locals&&(e.exports=i.locals);var s=n(3514).Z;s("a3e4ab5e",i,!0,{sourceMap:!1,shadowMode:!1})},31032:function(e,t,n){var i=n(93954);i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[e.id,i,""]]),i.locals&&(e.exports=i.locals);var s=n(3514).Z;s("43e3e91e",i,!0,{sourceMap:!1,shadowMode:!1})},23270:function(e,t,n){var i=n(43208);i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[e.id,i,""]]),i.locals&&(e.exports=i.locals);var s=n(3514).Z;s("c388abcc",i,!0,{sourceMap:!1,shadowMode:!1})},87653:function(e,t,n){var i=n(63061);i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[e.id,i,""]]),i.locals&&(e.exports=i.locals);var s=n(3514).Z;s("6850da48",i,!0,{sourceMap:!1,shadowMode:!1})},96541:function(e,t,n){var i=n(96504);i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[e.id,i,""]]),i.locals&&(e.exports=i.locals);var s=n(3514).Z;s("509af754",i,!0,{sourceMap:!1,shadowMode:!1})},94888:function(e,t,n){var i=n(6294);i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[e.id,i,""]]),i.locals&&(e.exports=i.locals);var s=n(3514).Z;s("706a3f6d",i,!0,{sourceMap:!1,shadowMode:!1})},94776:function(e,t,n){var i=n(20652);i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[e.id,i,""]]),i.locals&&(e.exports=i.locals);var s=n(3514).Z;s("771bf989",i,!0,{sourceMap:!1,shadowMode:!1})},15474:function(e,t,n){var i=n(55401);i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[e.id,i,""]]),i.locals&&(e.exports=i.locals);var s=n(3514).Z;s("765ed5e6",i,!0,{sourceMap:!1,shadowMode:!1})},52192:function(e,t,n){var i=n(37829);i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[e.id,i,""]]),i.locals&&(e.exports=i.locals);var s=n(3514).Z;s("52caaae3",i,!0,{sourceMap:!1,shadowMode:!1})},41018:function(e,t,n){var i=n(97062);i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[e.id,i,""]]),i.locals&&(e.exports=i.locals);var s=n(3514).Z;s("7675efd1",i,!0,{sourceMap:!1,shadowMode:!1})},77901:function(e,t,n){var i=n(91423);i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[e.id,i,""]]),i.locals&&(e.exports=i.locals);var s=n(3514).Z;s("1bf24f71",i,!0,{sourceMap:!1,shadowMode:!1})},31225:function(e,t,n){var i=n(68375);i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[e.id,i,""]]),i.locals&&(e.exports=i.locals);var s=n(3514).Z;s("ffa90ff6",i,!0,{sourceMap:!1,shadowMode:!1})},13134:function(e,t,n){var i=n(76658);i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[e.id,i,""]]),i.locals&&(e.exports=i.locals);var s=n(3514).Z;s("458ef3b0",i,!0,{sourceMap:!1,shadowMode:!1})},59904:function(e,t,n){var i=n(64596);i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[e.id,i,""]]),i.locals&&(e.exports=i.locals);var s=n(3514).Z;s("7089b538",i,!0,{sourceMap:!1,shadowMode:!1})},64550:function(e,t,n){var i=n(31023);i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[e.id,i,""]]),i.locals&&(e.exports=i.locals);var s=n(3514).Z;s("62b2115a",i,!0,{sourceMap:!1,shadowMode:!1})},34010:function(e,t,n){var i=n(98732);i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[e.id,i,""]]),i.locals&&(e.exports=i.locals);var s=n(3514).Z;s("3617cb48",i,!0,{sourceMap:!1,shadowMode:!1})},25234:function(e,t,n){var i=n(63535);i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[e.id,i,""]]),i.locals&&(e.exports=i.locals);var s=n(3514).Z;s("0560f320",i,!0,{sourceMap:!1,shadowMode:!1})},27287:function(e,t,n){var i=n(68534);i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[e.id,i,""]]),i.locals&&(e.exports=i.locals);var s=n(3514).Z;s("575c7863",i,!0,{sourceMap:!1,shadowMode:!1})},93529:function(e,t,n){var i=n(72509);i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[e.id,i,""]]),i.locals&&(e.exports=i.locals);var s=n(3514).Z;s("8dc7b6fc",i,!0,{sourceMap:!1,shadowMode:!1})}}]);
|
1
|
+
(self["webpackChunk_openc3_cosmos_tool_tlmviewer"]=self["webpackChunk_openc3_cosmos_tool_tlmviewer"]||[]).push([[439],{15507:function(e,t,n){var i={"./ArrayWidget.vue":91679,"./BlockWidget.vue":69674,"./ButtonWidget.vue":66336,"./CanvasWidget.vue":37739,"./CanvasdotWidget.vue":72810,"./CanvasimageWidget.vue":4673,"./CanvasimagevalueWidget.vue":62847,"./CanvaslabelWidget.vue":19091,"./CanvaslabelvalueWidget.vue":19269,"./CanvaslineWidget.vue":96068,"./CanvaslinevalueWidget.vue":87502,"./CheckbuttonWidget.vue":6122,"./ComboboxWidget.vue":84190,"./DynamicWidget.vue":26593,"./FormatvalueWidget.vue":90742,"./HorizontalWidget.vue":21282,"./HorizontalboxWidget.vue":23901,"./IframeWidget.vue":59673,"./ImageviewerWidget.vue":29685,"./LabelWidget.vue":6903,"./LabelledWidget.vue":1633,"./LabelprogressbarWidget.vue":28,"./LabelsparklineWidget.vue":5986,"./LabelvalueWidget.vue":69233,"./LabelvaluedescWidget.vue":41038,"./LabelvaluelimitsbarWidget.vue":80129,"./LabelvaluelimitscolumnWidget.vue":87435,"./LabelvaluerangebarWidget.vue":32678,"./LedWidget.vue":26626,"./LimitsbarWidget.vue":97619,"./LimitscolorWidget.vue":93396,"./LimitscolumnWidget.vue":29677,"./LinegraphWidget.vue":9701,"./MatrixbycolumnsWidget.vue":78577,"./ProgressbarWidget.vue":96129,"./RadiobuttonWidget.vue":1882,"./RadiogroupWidget.vue":22201,"./RangebarWidget.vue":57280,"./ScrollwindowWidget.vue":44449,"./SectionheaderWidget.vue":1138,"./SpacerWidget.vue":98213,"./SparklineWidget.vue":24810,"./TabbookWidget.vue":90871,"./TextboxWidget.vue":31597,"./TextfieldWidget.vue":71447,"./TitleWidget.vue":43748,"./ValueWidget.vue":25572,"./ValuelimitsbarWidget.vue":97749,"./ValuelimitscolumnWidget.vue":35979,"./ValuerangebarWidget.vue":90330,"./VerticalWidget.vue":17814,"./VerticalboxWidget.vue":98477};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(27233),n(28673),n(32501),n(58188),n(88233);var i=n(92202);n(80131);t["Z"]={mixins:[i.Z],props:{value:{default:null},limitsState:{type:String,default:null},counter:{default:null},formatString:null},data:function(){var e=this;return{curValue:null,prevValue:null,grayLevel:80,grayRate:5,valueId:null,colorBlind:!1,viewDetails:!1,contextMenuShown:!1,x:0,y:0,contextMenuOptions:[{title:"Details",action:function(){e.contextMenuShown=!1,e.viewDetails=!0}},{title:"Graph",action:function(){window.open("/tools/tlmgrapher/"+e.parameters[0]+"/"+e.parameters[1]+"/"+e.parameters[2],"_blank")}}]}},watch:{_counter:function(e,t){this.curValue!==this.prevValue?this.grayLevel=80:(this.grayLevel-=this.grayRate,this.grayLevel<30&&(this.grayLevel=30)),this.prevValue=this.curValue}},computed:{_value:function(){return this.curValue=this.value,null===this.curValue&&(this.$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(e&&"String"===e["json_class"]&&void 0!==e["raw"]){var t=Array.from(e["raw"].slice(0,32),(function(e){return("0"+(255&e).toString(16)).slice(-2)})).join(" ").toUpperCase();return e["raw"].length>32&&(t+="..."),t}if("Array"===Object.prototype.toString.call(e).slice(8,-1)){for(var n="[",i=0;i<e.length;i++)"String"===Object.prototype.toString.call(e[i]).slice(8,-1)?n+='"'+e[i]+'"':n+=e[i],i!=e.length-1&&(n+=", ");return n+="]",n}return"Object"===Object.prototype.toString.call(e).slice(8,-1)?"":this.formatString&&e?sprintf(this.formatString,e):""+e},showContextMenu:function(e){var t=this;e.preventDefault(),this.contextMenuShown=!1,this.x=e.clientX,this.y=e.clientY,this.$nextTick((function(){t.contextMenuShown=!0}))}}}},92202:function(e,t,n){"use strict";n(71245),n(58188),n(1939),n(68995),n(32501),n(49228),n(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=10;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)}))}},{key:"recordPing",value:function(){this._cable.connection.monitor.recordPing()}}]),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();if(0!==c.length){if(!0===l){if("#"===c[0])continue;c=c.substring(1,c.length)}var u=c.charAt(c.length-1),d=!1;switch(u){case"+":d=!0;case"\\":var m=c.substring(0,c.length-1).trim();this.line+=m.substring(0,m.length-1),d&&(this.line+="\n"),l=!0;continue;case"&":this.line+=c.substring(0,c.length-1);continue;default:this.line+=c}l=!1;var h=/("([^\\"]|\\.)*")|('([^\\']|\\.)*')|\S+/g,p=this.scan_string(this.line,h),A="";if(p.length>0&&(A+=p[0]),0===A.length||"#"===A.charAt(0)?this.keyword=null:this.keyword=A.toUpperCase(),this.parameters=[],null!==this.keyword){var f=p.length;if(f>1)for(var v=1;v<f;v++){var g=p[v];if(g.length>0&&"#"===g.charAt(0))break;i?this.parameters.push(this.remove_quotes(g)):this.parameters.push(g)}s(this.keyword,this.parameters,this.line,this.lineNumber),this.line=""}else n&&s(this.keyword,this.parameters,this.line,this.lineNumber),this.line=""}}}}]),e}()},48392:function(e,t,n){"use strict";n.d(t,{k:function(){return d}});var i=n(26259),s=n(15789),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(22649),n(80014),n(61996),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:"ensure_offline_access",value:function(){var e=this;this.offline_access_needed().then((function(t){t&&(localStorage.openc3OfflineToken?e.set_offline_access(localStorage.openc3OfflineToken).then((function(){delete localStorage.openc3OfflineToken})):OpenC3Auth.getOfflineAccess())}))}},{key:"offline_access_needed",value:function(){return this.exec("offline_access_needed",[])}},{key:"set_offline_access",value:function(e){return this.exec("set_offline_access",[e])}},{key:"get_all_interface_info",value:function(){return this.exec("get_all_interface_info",[])}},{key:"map_target_to_interface",value:function(e,t){return this.exec("map_target_to_interface",[e,t])}},{key:"connect_interface",value:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];return n.length>0?this.exec("connect_interface",[e,n]):this.exec("connect_interface",[e])}},{key:"disconnect_interface",value:function(e){return this.exec("disconnect_interface",[e])}},{key:"get_all_router_info",value:function(){return this.exec("get_all_router_info",[])}},{key:"connect_router",value:function(e){return this.exec("connect_router",[e])}},{key:"disconnect_router",value:function(e){return this.exec("disconnect_router",[e])}},{key:"get_target_interfaces",value:function(){return this.exec("get_target_interfaces",[])}},{key:"get_all_target_info",value:function(){return this.exec("get_all_target_info",[])}},{key:"get_tlm_cnts",value:function(e){return this.exec("get_tlm_cnts",[e])}},{key:"get_item",value:function(e,t,n){return this.exec("get_item",[e,t,n])}},{key:"get_parameter",value:function(e,t,n){return this.exec("get_parameter",[e,t,n])}},{key:"get_all_packet_logger_info",value:function(){return this.exec("get_all_packet_logger_info",[])}},{key:"start_logging",value:function(){return this.exec("start_logging",[])}},{key:"stop_logging",value:function(){return this.exec("stop_logging",[])}},{key:"start_cmd_log",value:function(e){return this.exec("start_cmd_log",[e])}},{key:"start_tlm_log",value:function(e){return this.exec("start_tlm_log",[e])}},{key:"stop_cmd_log",value:function(e){return this.exec("stop_cmd_log",[e])}},{key:"stop_tlm_log",value:function(e){return this.exec("stop_tlm_log",[e])}},{key:"get_server_status",value:function(){return this.exec("get_server_status",[])}},{key:"get_limits_sets",value:function(){return this.exec("get_limits_sets",[])}},{key:"get_limits_set",value:function(){return this.exec("get_limits_set",[])}},{key:"set_limits_set",value:function(e){return this.exec("set_limits_set",[e])}},{key:"get_background_tasks",value:function(){return this.exec("get_background_tasks",[])}},{key:"start_background_task",value:function(e){return this.exec("start_background_task",[e])}},{key:"stop_background_task",value:function(e){return this.exec("stop_background_task",[e])}},{key:"get_target",value:function(e){return this.exec("get_target",[e])}},{key:"get_target_list",value:function(){return this.exec("get_target_list",[])}},{key:"get_telemetry",value:function(e,t){return this.exec("get_telemetry",[e,t])}},{key:"get_all_telemetry",value:function(e){return this.exec("get_all_telemetry",[e])}},{key:"get_all_telemetry_names",value:function(e){return this.exec("get_all_telemetry_names",[e])}},{key:"get_tlm_packet",value:function(){var e=(0,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:"inject_tlm",value:function(){var e=(0,a.Z)((0,s.Z)().mark((function e(t,n){var i,l,a=arguments;return(0,s.Z)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return i=a.length>2&&void 0!==a[2]?a[2]:null,l=a.length>3&&void 0!==a[3]?a[3]:"CONVERTED",e.next=4,this.exec("inject_tlm",[t,n,i],{type:l});case 4:data=e.sent;case 5:case"end":return e.stop()}}),e,this)})));function t(t,n){return e.apply(this,arguments)}return t}()},{key:"set_tlm",value:function(e,t,n,i){return this.exec("set_tlm",[e,t,n],{type:i})}},{key:"override_tlm",value:function(e,t,n,i){return this.exec("override_tlm",[e,t,n],{type:i})}},{key:"get_overrides",value:function(){return this.exec("get_overrides")}},{key:"normalize_tlm",value:function(e,t,n,i){return this.exec("normalize_tlm",[e,t,n],{type:i})}},{key:"get_all_commands",value:function(e){return this.exec("get_all_commands",[e])}},{key:"get_all_command_names",value:function(e){return this.exec("get_all_command_names",[e])}},{key:"get_command",value:function(e,t){return this.exec("get_command",[e,t])}},{key:"get_cmd_cnts",value:function(e){return this.exec("get_cmd_cnts",[e])}},{key:"get_cmd_value",value:function(e,t,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"CONVERTED";return this.exec("get_cmd_value",[e,t,n,i])}},{key:"get_cmd_buffer",value:function(e,t){return this.exec("get_cmd_buffer",[e,t])}},{key:"_cmd",value:function(e,t,n,i,s){var 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:"enable_limits",value:function(e,t,n){return this.exec("enable_limits",[e,t,n])}},{key:"disable_limits",value:function(e,t,n){return this.exec("disable_limits",[e,t,n])}},{key:"get_out_of_limits",value:function(){return this.exec("get_out_of_limits",[])}},{key:"get_overall_limits_state",value:function(e){return this.exec("get_overall_limits_state",[e])}},{key:"list_settings",value:function(){return this.exec("list_settings",[])}},{key:"get_all_settings",value:function(){return this.exec("get_all_settings",[])}},{key:"get_setting",value:function(e){return this.exec("get_setting",[e])}},{key:"get_settings",value:function(e){return this.exec("get_settings",e)}},{key:"save_setting",value:function(e,t){return this.exec("save_setting",[e,t])}},{key:"get_metrics",value:function(){return this.exec("get_metrics",[])}},{key:"hashString",value:function(){var e=(0,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}()},84439: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="8af10f8c710a3960234f7b76d757b0f39f3cc8da",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:2463}},4:{start:{line:1,column:410},end:{line:1,column:432}},5:{start:{line:1,column:666},end:{line:1,column:688}},6:{start:{line:1,column:843},end:{line:1,column:897}},7:{start:{line:1,column:1005},end:{line:1,column:1038}},8:{start:{line:1,column:1186},end:{line:1,column:1689}},9:{start:{line:1,column:1493},end:{line:1,column:1523}},10:{start:{line:1,column:1589},end:{line:1,column:1614}},11:{start:{line:1,column:1648},end:{line:1,column:1679}},12:{start:{line:1,column:1796},end:{line:1,column:1832}},13:{start:{line:1,column:1890},end:{line:1,column:1908}},14:{start:{line:1,column:2047},end:{line:1,column:2083}},15:{start:{line:1,column:2141},end:{line:1,column:2159}},16:{start:{line:1,column:2394},end:{line:1,column:2417}},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:650},end:{line:1,column:651}},loc:{start:{line:1,column:665},end:{line:1,column:689}},line:1},3:{name:"(anonymous_3)",decl:{start:{line:1,column:837},end:{line:1,column:838}},loc:{start:{line:1,column:843},end:{line:1,column:897}},line:1},4:{name:"(anonymous_4)",decl:{start:{line:1,column:999},end:{line:1,column:1e3}},loc:{start:{line:1,column:1005},end:{line:1,column:1038}},line:1},5:{name:"(anonymous_5)",decl:{start:{line:1,column:1172},end:{line:1,column:1173}},loc:{start:{line:1,column:1185},end:{line:1,column:1690}},line:1},6:{name:"(anonymous_6)",decl:{start:{line:1,column:1476},end:{line:1,column:1477}},loc:{start:{line:1,column:1492},end:{line:1,column:1524}},line:1},7:{name:"(anonymous_7)",decl:{start:{line:1,column:1577},end:{line:1,column:1578}},loc:{start:{line:1,column:1589},end:{line:1,column:1614}},line:1},8:{name:"(anonymous_8)",decl:{start:{line:1,column:1631},end:{line:1,column:1632}},loc:{start:{line:1,column:1647},end:{line:1,column:1680}},line:1},9:{name:"(anonymous_9)",decl:{start:{line:1,column:1779},end:{line:1,column:1780}},loc:{start:{line:1,column:1795},end:{line:1,column:1833}},line:1},10:{name:"(anonymous_10)",decl:{start:{line:1,column:1874},end:{line:1,column:1875}},loc:{start:{line:1,column:1889},end:{line:1,column:1909}},line:1},11:{name:"(anonymous_11)",decl:{start:{line:1,column:2030},end:{line:1,column:2031}},loc:{start:{line:1,column:2046},end:{line:1,column:2084}},line:1},12:{name:"(anonymous_12)",decl:{start:{line:1,column:2125},end:{line:1,column:2126}},loc:{start:{line:1,column:2140},end:{line:1,column:2160}},line:1},13:{name:"(anonymous_13)",decl:{start:{line:1,column:2378},end:{line:1,column:2379}},loc:{start:{line:1,column:2393},end:{line:1,column:2418}},line:1}},branchMap:{0:{loc:{start:{line:1,column:1695},end:{line:1,column:1945}},type:"cond-expr",locations:[{start:{line:1,column:1712},end:{line:1,column:1936}},{start:{line:1,column:1937},end:{line:1,column:1945}}],line:1},1:{loc:{start:{line:1,column:1946},end:{line:1,column:2196}},type:"cond-expr",locations:[{start:{line:1,column:1963},end:{line:1,column:2187}},{start:{line:1,column:2188},end:{line:1,column:2196}}],line:1},2:{loc:{start:{line:1,column:2197},end:{line:1,column:2459}},type:"cond-expr",locations:[{start:{line:1,column:2219},end:{line:1,column:2450}},{start:{line:1,column:2451},end:{line:1,column:2459}}],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:"8af10f8c710a3960234f7b76d757b0f39f3cc8da"},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[e.selectedTarget]},on:{change:e.screenSelect},model:{value:e.selectedScreen,callback:function(t){s().f[2]++,s().s[5]++,e.selectedScreen=t},expression:"selectedScreen"}}),t("v-btn",{staticClass:"primary mr-2",attrs:{disabled:!e.selectedScreen,"data-test":"show-screen"},on:{click:function(){return s().f[3]++,s().s[6]++,e.showScreen(e.selectedTarget,e.selectedScreen)}}},[e._v(" Show ")]),t("v-btn",{staticClass:"primary",attrs:{"data-test":"new-screen"},on:{click:function(){return s().f[4]++,s().s[7]++,e.newScreen(e.selectedTarget)}}},[e._v(" New Screen "),t("v-icon",[e._v(" mdi-file-plus")])],1)],1)],1),t("div",{staticClass:"grid"},e._l(e.definitions,(function(n){return s().f[5]++,s().s[8]++,t("div",{key:n.id,ref:"gridItem",refInFor:!0,staticClass:"item",attrs:{id:e.screenId(n.id)}},[t("div",{staticClass:"item-content"},[t("openc3-screen",{attrs:{target:n.target,screen:n.screen,definition:n.definition,keywords:e.keywords},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(78081),o=n(15789),c=n(49502),u=(n(36728),n(58188),n(28673),n(6886),n(1939),n(18178),n(39529),n(31235),n(43430),n(49228),n(95342),n(43450),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:function(e){return i.command(i)}}},[i.radio?t("v-list-item-action",[t("v-radio",{attrs:{color:"secondary",label:i.label,value:i.label}})],1):e._e(),i.checkbox?t("v-list-item-action",[t("v-checkbox",{attrs:{color:"secondary",label:i.label},model:{value:i.checked,callback:function(t){e.$set(i,"checked",t)},expression:"option.checked"}})],1):e._e(),i.icon?t("v-list-item-icon",[t("v-icon",{attrs:{disabled:i.disabled}},[e._v(e._s(i.icon))])],1):e._e(),i.radio||i.checkbox?e._e():t("v-list-item-title",{style:"cursor: pointer;"+(i.disabled?"opacity: 0.2":"")},[e._v(e._s(i.label))])],1)]}))],2)],1)],1)})),t("v-spacer"),t("v-toolbar-title",[e._v(e._s(e.title))]),t("v-spacer")],2)])},h=[],p=(n(77950),n(85940),n(71639),{props:{menus:{type:Array,default:function(){return[]}},title:{type:String,default:""}},methods:{formatDT:function(e){return e.replaceAll(" ","-").toLowerCase()}},mounted:function(){"COSMOS "===this.title.substring(0,7)?document.title=this.title.substring(7):document.title=this.title}}),A=p,f=(n(94888),n(93483)),v=(0,f.Z)(A,m,h,!1,null,"2eb37f67",null),g=v.exports;function _(){var e="/openc3/plugins/packages/openc3-cosmos-tool-tlmviewer/src/tools/TlmViewer/Openc3Screen.vue",t="8f01bbe948c5145c4ca89357f16b8b742c863723",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:759},end:{line:1,column:926}},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:735},end:{line:1,column:736}},loc:{start:{line:1,column:758},end:{line:1,column:927}},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:"8f01bbe948c5145c4ca89357f16b8b742c863723"},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-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-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[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(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 E=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)},I=(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="2f090b51a33ed5b1603e6f4ebe772e92bfb0f10d",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:72,column:4},end:{line:72,column:48}},21:{start:{line:72,column:29},end:{line:72,column:47}},22:{start:{line:73,column:4},end:{line:73,column:36}},23:{start:{line:74,column:4},end:{line:74,column:46}},24:{start:{line:75,column:23},end:{line:75,column:45}},25:{start:{line:76,column:4},end:{line:76,column:49}},26:{start:{line:77,column:4},end:{line:77,column:37}},27:{start:{line:78,column:4},end:{line:78,column:44}},28:{start:{line:79,column:4},end:{line:79,column:42}},29:{start:{line:80,column:4},end:{line:80,column:60}},30:{start:{line:81,column:4},end:{line:81,column:59}},31:{start:{line:82,column:4},end:{line:82,column:52}},32:{start:{line:83,column:4},end:{line:83,column:45}},33:{start:{line:84,column:4},end:{line:84,column:41}},34:{start:{line:85,column:4},end:{line:85,column:32}},35:{start:{line:86,column:4},end:{line:86,column:23}},36:{start:{line:89,column:4},end:{line:89,column:25}},37:{start:{line:90,column:4},end:{line:90,column:34}},38:{start:{line:94,column:16},end:{line:94,column:42}},39:{start:{line:95,column:31},end:{line:97,column:26}},40:{start:{line:99,column:17},end:{line:99,column:40}},41:{start:{line:100,column:33},end:{line:126,column:7}},42:{start:{line:101,column:8},end:{line:124,column:9}},43:{start:{line:125,column:8},end:{line:125,column:29}},44:{start:{line:127,column:6},end:{line:127,column:60}},45:{start:{line:128,column:17},end:{line:130,column:7}},46:{start:{line:129,column:8},end:{line:129,column:50}},47:{start:{line:131,column:21},end:{line:131,column:54}},48:{start:{line:132,column:6},end:{line:133,column:7}},49:{start:{line:133,column:7},end:{line:135,column:29}},50:{start:{line:134,column:8},end:{line:134,column:36}},51:{start:{line:136,column:6},end:{line:136,column:17}},52:{start:{line:139,column:19},end:{line:141,column:8}},53:{start:{line:143,column:19},end:{line:143,column:46}},54:{start:{line:144,column:6},end:{line:144,column:43}},55:{start:{line:145,column:6},end:{line:145,column:72}},56:{start:{line:146,column:6},end:{line:146,column:18}},57:{start:{line:149,column:25},end:{line:149,column:41}},58:{start:{line:150,column:6},end:{line:150,column:38}},59:{start:{line:151,column:19},end:{line:151,column:23}},60:{start:{line:152,column:6},end:{line:155,column:7}},61:{start:{line:153,column:8},end:{line:153,column:47}},62:{start:{line:154,column:8},end:{line:154,column:24}},63:{start:{line:158,column:6},end:{line:165,column:10}},64:{start:{line:164,column:10},end:{line:164,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:29},end:{line:87,column:3}},line:70},7:{name:"(anonymous_7)",decl:{start:{line:72,column:22},end:{line:72,column:23}},loc:{start:{line:72,column:29},end:{line:72,column:47}},line:72},8:{name:"(anonymous_8)",decl:{start:{line:88,column:2},end:{line:88,column:3}},loc:{start:{line:88,column:18},end:{line:91,column:3}},line:88},9:{name:"(anonymous_9)",decl:{start:{line:93,column:4},end:{line:93,column:5}},loc:{start:{line:93,column:22},end:{line:137,column:5}},line:93},10:{name:"(anonymous_10)",decl:{start:{line:100,column:33},end:{line:100,column:34}},loc:{start:{line:100,column:45},end:{line:126,column:7}},line:100},11:{name:"(anonymous_11)",decl:{start:{line:128,column:17},end:{line:128,column:18}},loc:{start:{line:128,column:29},end:{line:130,column:7}},line:128},12:{name:"(anonymous_12)",decl:{start:{line:133,column:8},end:{line:133,column:9}},loc:{start:{line:133,column:20},end:{line:135,column:7}},line:133},13:{name:"(anonymous_13)",decl:{start:{line:138,column:20},end:{line:138,column:21}},loc:{start:{line:138,column:32},end:{line:147,column:5}},line:138},14:{name:"(anonymous_14)",decl:{start:{line:148,column:14},end:{line:148,column:15}},loc:{start:{line:148,column:26},end:{line:156,column:5}},line:148},15:{name:"(anonymous_15)",decl:{start:{line:152,column:26},end:{line:152,column:27}},loc:{start:{line:152,column:38},end:{line:155,column:7}},line:152},16:{name:"(anonymous_16)",decl:{start:{line:157,column:18},end:{line:157,column:19}},loc:{start:{line:157,column:30},end:{line:166,column:5}},line:157},17:{name:"(anonymous_17)",decl:{start:{line:163,column:14},end:{line:163,column:15}},loc:{start:{line:163,column:26},end:{line:165,column:9}},line:163}},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,63:0,64: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},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;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: async function () {\n // Wait for things to render per https://github.com/ajaxorg/ace/issues/5012\n await new Promise((r) => setTimeout(r, 300))\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 position: relative;\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:"2f090b51a33ed5b1603e6f4ebe772e92bfb0f10d"},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,r.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(){var e=(0,c.Z)((0,o.Z)().mark((function e(){var t;return(0,o.Z)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return P().f[6]++,P().s[20]++,e.next=4,new Promise((function(e){return P().f[7]++,P().s[21]++,setTimeout(e,300)}));case 4:P().s[22]++,this.editor=M.edit("editor"),P().s[23]++,this.editor.setTheme("ace/theme/twilight"),P().s[24]++,t=this.buildScreenMode(),P().s[25]++,this.editor.session.setMode(new t),P().s[26]++,this.editor.session.setTabSize(2),P().s[27]++,this.editor.session.setUseWrapMode(!0),P().s[28]++,this.editor.$blockScrolling=1/0,P().s[29]++,this.editor.setOption("enableBasicAutocompletion",!0),P().s[30]++,this.editor.setOption("enableLiveAutocompletion",!0),P().s[31]++,this.editor.completers=[new W],P().s[32]++,this.editor.setHighlightActiveLine(!1),P().s[33]++,this.editor.setValue(this.definition),P().s[34]++,this.editor.clearSelection(),P().s[35]++,this.editor.focus();case 31:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}(),beforeDestroy:function(){P().f[8]++,P().s[36]++,this.editor.destroy(),P().s[37]++,this.editor.container.remove()},methods:{buildScreenMode:function(){P().f[9]++;var e=(P().s[38]++,M.require("ace/lib/oop")),t=(P().s[39]++,M.require("ace/mode/text_highlight_rules").TextHighlightRules),n=(P().s[40]++,this.keywords.join("|"));P().s[41]++;var i=function(){P().f[10]++,P().s[42]++,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[43]++,this.normalizeRules()};P().s[44]++,e.inherits(i,t),P().s[45]++;var s=function(){P().f[11]++,P().s[46]++,this.HighlightRules=i},l=(P().s[47]++,M.require("ace/mode/text").Mode);return P().s[48]++,e.inherits(s,l),P().s[49]++,function(){P().f[12]++,P().s[50]++,this.$id="ace/mode/openc3"}.call(s.prototype),P().s[51]++,s},downloadScreen:function(){P().f[13]++;var e=(P().s[52]++,new Blob([this.editor.getValue()],{type:"text/plain"})),t=(P().s[53]++,document.createElement("a"));P().s[54]++,t.href=URL.createObjectURL(e),P().s[55]++,t.setAttribute("download","".concat(this.target,"_").concat(this.screen,".txt")),P().s[56]++,t.click()},loadFile:function(){P().f[14]++;var e=(P().s[57]++,new FileReader);P().s[58]++,e.readAsText(this.file);var t=(P().s[59]++,this);P().s[60]++,e.onload=function(){P().f[15]++,P().s[61]++,t.editor.setValue(e.result),P().s[62]++,t.file=null}},deleteScreen:function(){var e=this;P().f[16]++,P().s[63]++,this.$dialog.confirm("Are you sure you want to delete this screen?!",{okText:"Delete",cancelText:"Cancel"}).then((function(t){P().f[17]++,P().s[64]++,e.$emit("delete")}))}}},$=R,H=(n(40606),n(92399),(0,f.Z)($,E,I,!1,null,"16f638fc",null)),U=H.exports;function z(){var e="/openc3/plugins/packages/openc3-cosmos-tool-tlmviewer/src/tools/TlmViewer/Openc3Screen.vue",t="ab59473fb2a7d1aeff1683c41151fa93c3ffd37f",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:88,column:5}},7:{start:{line:92,column:6},end:{line:104,column:7}},8:{start:{line:93,column:23},end:{line:93,column:32}},9:{start:{line:94,column:21},end:{line:94,column:23}},10:{start:{line:95,column:8},end:{line:102,column:9}},11:{start:{line:96,column:10},end:{line:98,column:11}},12:{start:{line:97,column:12},end:{line:97,column:20}},13:{start:{line:99,column:20},end:{line:99,column:71}},14:{start:{line:100,column:10},end:{line:100,column:23}},15:{start:{line:101,column:10},end:{line:101,column:37}},16:{start:{line:103,column:8},end:{line:103,column:21}},17:{start:{line:105,column:6},end:{line:105,column:17}},18:{start:{line:112,column:4},end:{line:127,column:5}},19:{start:{line:113,column:6},end:{line:120,column:8}},20:{start:{line:122,column:6},end:{line:126,column:8}},21:{start:{line:128,column:4},end:{line:128,column:16}},22:{start:{line:131,column:4},end:{line:131,column:30}},23:{start:{line:132,column:4},end:{line:132,column:49}},24:{start:{line:133,column:4},end:{line:133,column:26}},25:{start:{line:134,column:4},end:{line:134,column:56}},26:{start:{line:137,column:26},end:{line:137,column:51}},27:{start:{line:138,column:4},end:{line:140,column:23}},28:{start:{line:139,column:6},end:{line:139,column:19}},29:{start:{line:143,column:4},end:{line:146,column:5}},30:{start:{line:144,column:6},end:{line:144,column:33}},31:{start:{line:145,column:6},end:{line:145,column:25}},32:{start:{line:151,column:6},end:{line:151,column:45}},33:{start:{line:154,column:6},end:{line:154,column:52}},34:{start:{line:157,column:6},end:{line:157,column:29}},35:{start:{line:161,column:6},end:{line:161,column:22}},36:{start:{line:165,column:6},end:{line:165,column:22}},37:{start:{line:166,column:6},end:{line:166,column:28}},38:{start:{line:167,column:6},end:{line:167,column:27}},39:{start:{line:168,column:6},end:{line:168,column:30}},40:{start:{line:170,column:6},end:{line:174,column:8}},41:{start:{line:175,column:6},end:{line:175,column:72}},42:{start:{line:177,column:6},end:{line:227,column:7}},43:{start:{line:183,column:10},end:{line:225,column:11}},44:{start:{line:184,column:12},end:{line:224,column:13}},45:{start:{line:186,column:16},end:{line:190,column:17}},46:{start:{line:191,column:16},end:{line:191,column:52}},47:{start:{line:192,column:16},end:{line:192,column:53}},48:{start:{line:193,column:16},end:{line:193,column:62}},49:{start:{line:194,column:16},end:{line:194,column:21}},50:{start:{line:196,column:16},end:{line:196,column:75}},51:{start:{line:197,column:16},end:{line:197,column:38}},52:{start:{line:198,column:16},end:{line:199,column:63}},53:{start:{line:200,column:16},end:{line:200,column:21}},54:{start:{line:202,column:16},end:{line:206,column:17}},55:{start:{line:207,column:16},end:{line:207,column:56}},56:{start:{line:208,column:16},end:{line:208,column:21}},57:{start:{line:212,column:18},end:{line:214,column:41}},58:{start:{line:215,column:16},end:{line:215,column:48}},59:{start:{line:216,column:16},end:{line:216,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:73}},63:{start:{line:223,column:16},end:{line:223,column:21}},64:{start:{line:229,column:6},end:{line:252,column:7}},65:{start:{line:230,column:20},end:{line:230,column:22}},66:{start:{line:231,column:20},end:{line:231,column:22}},67:{start:{line:232,column:8},end:{line:235,column:9}},68:{start:{line:233,column:10},end:{line:233,column:33}},69:{start:{line:234,column:10},end:{line:234,column:39}},70:{start:{line:237,column:8},end:{line:242,column:10}},71:{start:{line:245,column:8},end:{line:249,column:9}},72:{start:{line:251,column:8},end:{line:251,column:61}},73:{start:{line:256,column:6},end:{line:256,column:36}},74:{start:{line:260,column:6},end:{line:260,column:36}},75:{start:{line:264,column:6},end:{line:264,column:38}},76:{start:{line:267,column:6},end:{line:283,column:7}},77:{start:{line:271,column:8},end:{line:282,column:12}},78:{start:{line:274,column:12},end:{line:274,column:61}},79:{start:{line:277,column:12},end:{line:281,column:14}},80:{start:{line:287,column:6},end:{line:287,column:52}},81:{start:{line:288,column:6},end:{line:288,column:28}},82:{start:{line:291,column:6},end:{line:291,column:22}},83:{start:{line:292,column:6},end:{line:292,column:29}},84:{start:{line:294,column:6},end:{line:294,column:42}},85:{start:{line:295,column:6},end:{line:295,column:28}},86:{start:{line:297,column:6},end:{line:297,column:58}},87:{start:{line:299,column:6},end:{line:301,column:8}},88:{start:{line:300,column:8},end:{line:300,column:26}},89:{start:{line:304,column:6},end:{line:304,column:41}},90:{start:{line:305,column:6},end:{line:305,column:28}},91:{start:{line:307,column:6},end:{line:307,column:58}},92:{start:{line:309,column:6},end:{line:319,column:8}},93:{start:{line:310,column:8},end:{line:317,column:10}},94:{start:{line:318,column:8},end:{line:318,column:31}},95:{start:{line:322,column:6},end:{line:322,column:29}},96:{start:{line:323,column:6},end:{line:327,column:7}},97:{start:{line:325,column:10},end:{line:325,column:37}},98:{start:{line:330,column:6},end:{line:330,column:32}},99:{start:{line:331,column:6},end:{line:331,column:34}},100:{start:{line:334,column:23},end:{line:334,column:27}},101:{start:{line:335,column:6},end:{line:344,column:7}},102:{start:{line:336,column:8},end:{line:340,column:9}},103:{start:{line:341,column:8},end:{line:341,column:48}},104:{start:{line:342,column:8},end:{line:342,column:45}},105:{start:{line:343,column:8},end:{line:343,column:59}},106:{start:{line:346,column:8},end:{line:348,column:16}},107:{start:{line:349,column:21},end:{line:349,column:23}},108:{start:{line:350,column:6},end:{line:355,column:7}},109:{start:{line:354,column:8},end:{line:354,column:57}},110:{start:{line:357,column:6},end:{line:403,column:7}},111:{start:{line:367,column:23},end:{line:372,column:9}},112:{start:{line:373,column:8},end:{line:373,column:37}},113:{start:{line:374,column:8},end:{line:374,column:47}},114:{start:{line:375,column:8},end:{line:375,column:35}},115:{start:{line:378,column:8},end:{line:380,column:9}},116:{start:{line:379,column:10},end:{line:379,column:41}},117:{start:{line:381,column:8},end:{line:402,column:9}},118:{start:{line:382,column:10},end:{line:389,column:12}},119:{start:{line:391,column:23},end:{line:399,column:11}},120:{start:{line:400,column:10},end:{line:400,column:49}},121:{start:{line:401,column:10},end:{line:401,column:42}},122:{start:{line:406,column:6},end:{line:421,column:8}},123:{start:{line:407,column:8},end:{line:420,column:10}},124:{start:{line:410,column:10},end:{line:415,column:11}},125:{start:{line:414,column:12},end:{line:414,column:50}},126:{start:{line:417,column:10},end:{line:419,column:11}},127:{start:{line:418,column:12},end:{line:418,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:89,column:3}},line:65},3:{name:"(anonymous_3)",decl:{start:{line:91,column:11},end:{line:91,column:12}},loc:{start:{line:91,column:23},end:{line:106,column:5}},line:91},4:{name:"(anonymous_4)",decl:{start:{line:111,column:2},end:{line:111,column:3}},loc:{start:{line:111,column:31},end:{line:129,column:3}},line:111},5:{name:"(anonymous_5)",decl:{start:{line:130,column:2},end:{line:130,column:3}},loc:{start:{line:130,column:12},end:{line:135,column:3}},line:130},6:{name:"(anonymous_6)",decl:{start:{line:136,column:2},end:{line:136,column:3}},loc:{start:{line:136,column:12},end:{line:141,column:3}},line:136},7:{name:"(anonymous_7)",decl:{start:{line:138,column:31},end:{line:138,column:32}},loc:{start:{line:138,column:37},end:{line:140,column:5}},line:138},8:{name:"(anonymous_8)",decl:{start:{line:142,column:2},end:{line:142,column:3}},loc:{start:{line:142,column:14},end:{line:147,column:3}},line:142},9:{name:"(anonymous_9)",decl:{start:{line:150,column:4},end:{line:150,column:5}},loc:{start:{line:150,column:25},end:{line:152,column:5}},line:150},10:{name:"(anonymous_10)",decl:{start:{line:153,column:4},end:{line:153,column:5}},loc:{start:{line:153,column:26},end:{line:155,column:5}},line:153},11:{name:"(anonymous_11)",decl:{start:{line:156,column:4},end:{line:156,column:5}},loc:{start:{line:156,column:15},end:{line:158,column:5}},line:156},12:{name:"(anonymous_12)",decl:{start:{line:160,column:17},end:{line:160,column:18}},loc:{start:{line:160,column:29},end:{line:162,column:5}},line:160},13:{name:"(anonymous_13)",decl:{start:{line:163,column:21},end:{line:163,column:22}},loc:{start:{line:163,column:33},end:{line:253,column:5}},line:163},14:{name:"(anonymous_14)",decl:{start:{line:182,column:8},end:{line:182,column:9}},loc:{start:{line:182,column:51},end:{line:226,column:9}},line:182},15:{name:"(anonymous_15)",decl:{start:{line:255,column:20},end:{line:255,column:21}},loc:{start:{line:255,column:36},end:{line:257,column:5}},line:255},16:{name:"(anonymous_16)",decl:{start:{line:259,column:22},end:{line:259,column:23}},loc:{start:{line:259,column:38},end:{line:261,column:5}},line:259},17:{name:"(anonymous_17)",decl:{start:{line:263,column:20},end:{line:263,column:21}},loc:{start:{line:263,column:44},end:{line:265,column:5}},line:263},18:{name:"(anonymous_18)",decl:{start:{line:266,column:12},end:{line:266,column:13}},loc:{start:{line:266,column:24},end:{line:284,column:5}},line:266},19:{name:"(anonymous_19)",decl:{start:{line:273,column:16},end:{line:273,column:17}},loc:{start:{line:273,column:26},end:{line:275,column:11}},line:273},20:{name:"(anonymous_20)",decl:{start:{line:276,column:17},end:{line:276,column:18}},loc:{start:{line:276,column:28},end:{line:282,column:11}},line:276},21:{name:"(anonymous_21)",decl:{start:{line:285,column:14},end:{line:285,column:15}},loc:{start:{line:285,column:26},end:{line:289,column:5}},line:285},22:{name:"(anonymous_22)",decl:{start:{line:290,column:16},end:{line:290,column:17}},loc:{start:{line:290,column:28},end:{line:302,column:5}},line:290},23:{name:"(anonymous_23)",decl:{start:{line:299,column:21},end:{line:299,column:22}},loc:{start:{line:299,column:33},end:{line:301,column:7}},line:299},24:{name:"(anonymous_24)",decl:{start:{line:303,column:14},end:{line:303,column:15}},loc:{start:{line:303,column:36},end:{line:320,column:5}},line:303},25:{name:"(anonymous_25)",decl:{start:{line:309,column:21},end:{line:309,column:22}},loc:{start:{line:309,column:33},end:{line:319,column:7}},line:309},26:{name:"(anonymous_26)",decl:{start:{line:321,column:18},end:{line:321,column:19}},loc:{start:{line:321,column:30},end:{line:328,column:5}},line:321},27:{name:"(anonymous_27)",decl:{start:{line:324,column:8},end:{line:324,column:9}},loc:{start:{line:324,column:22},end:{line:326,column:9}},line:324},28:{name:"(anonymous_28)",decl:{start:{line:329,column:22},end:{line:329,column:23}},loc:{start:{line:329,column:34},end:{line:332,column:5}},line:329},29:{name:"(anonymous_29)",decl:{start:{line:333,column:19},end:{line:333,column:20}},loc:{start:{line:333,column:68},end:{line:404,column:5}},line:333},30:{name:"(anonymous_30)",decl:{start:{line:405,column:25},end:{line:405,column:26}},loc:{start:{line:405,column:44},end:{line:422,column:5}},line:405},31:{name:"(anonymous_31)",decl:{start:{line:406,column:34},end:{line:406,column:35}},loc:{start:{line:406,column:47},end:{line:421,column:7}},line:406},32:{name:"(anonymous_32)",decl:{start:{line:407,column:24},end:{line:407,column:25}},loc:{start:{line:407,column:36},end:{line:420,column:9}},line:407}},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:92,column:6},end:{line:104,column:7}},type:"if",locations:[{start:{line:92,column:6},end:{line:104,column:7}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:92},2:{loc:{start:{line:92,column:10},end:{line:92,column:52}},type:"binary-expr",locations:[{start:{line:92,column:10},end:{line:92,column:26}},{start:{line:92,column:30},end:{line:92,column:52}}],line:92},3:{loc:{start:{line:96,column:10},end:{line:98,column:11}},type:"if",locations:[{start:{line:96,column:10},end:{line:98,column:11}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:96},4:{loc:{start:{line:112,column:4},end:{line:127,column:5}},type:"if",locations:[{start:{line:112,column:4},end:{line:127,column:5}},{start:{line:121,column:11},end:{line:127,column:5}}],line:112},5:{loc:{start:{line:143,column:4},end:{line:146,column:5}},type:"if",locations:[{start:{line:143,column:4},end:{line:146,column:5}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:143},6:{loc:{start:{line:183,column:10},end:{line:225,column:11}},type:"if",locations:[{start:{line:183,column:10},end:{line:225,column:11}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:183},7:{loc:{start:{line:184,column:12},end:{line:224,column:13}},type:"switch",locations:[{start:{line:185,column:14},end:{line:194,column:21}},{start:{line:195,column:14},end:{line:200,column:21}},{start:{line:201,column:14},end:{line:208,column:21}},{start:{line:209,column:14},end:{line:209,column:29}},{start:{line:210,column:14},end:{line:216,column:21}},{start:{line:217,column:14},end:{line:217,column:36}},{start:{line:218,column:14},end:{line:220,column:21}},{start:{line:221,column:14},end:{line:223,column:21}}],line:184},8:{loc:{start:{line:212,column:18},end:{line:214,column:41}},type:"binary-expr",locations:[{start:{line:212,column:18},end:{line:214,column:19}},{start:{line:214,column:23},end:{line:214,column:41}}],line:212},9:{loc:{start:{line:229,column:6},end:{line:252,column:7}},type:"if",locations:[{start:{line:229,column:6},end:{line:252,column:7}},{start:{line:250,column:13},end:{line:252,column:7}}],line:229},10:{loc:{start:{line:267,column:6},end:{line:283,column:7}},type:"if",locations:[{start:{line:267,column:6},end:{line:283,column:7}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:267},11:{loc:{start:{line:268,column:8},end:{line:269,column:32}},type:"binary-expr",locations:[{start:{line:268,column:8},end:{line:268,column:53}},{start:{line:269,column:8},end:{line:269,column:32}}],line:268},12:{loc:{start:{line:335,column:6},end:{line:344,column:7}},type:"if",locations:[{start:{line:335,column:6},end:{line:344,column:7}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:335},13:{loc:{start:{line:350,column:6},end:{line:355,column:7}},type:"if",locations:[{start:{line:350,column:6},end:{line:355,column:7}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:350},14:{loc:{start:{line:357,column:6},end:{line:403,column:7}},type:"if",locations:[{start:{line:357,column:6},end:{line:403,column:7}},{start:{line:376,column:13},end:{line:403,column:7}}],line:357},15:{loc:{start:{line:358,column:8},end:{line:365,column:34}},type:"binary-expr",locations:[{start:{line:358,column:8},end:{line:358,column:36}},{start:{line:359,column:8},end:{line:359,column:38}},{start:{line:360,column:8},end:{line:360,column:37}},{start:{line:361,column:8},end:{line:361,column:29}},{start:{line:362,column:8},end:{line:362,column:29}},{start:{line:363,column:8},end:{line:363,column:28}},{start:{line:364,column:8},end:{line:364,column:32}},{start:{line:365,column:8},end:{line:365,column:34}}],line:358},16:{loc:{start:{line:378,column:8},end:{line:380,column:9}},type:"if",locations:[{start:{line:378,column:8},end:{line:380,column:9}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:378},17:{loc:{start:{line:381,column:8},end:{line:402,column:9}},type:"if",locations:[{start:{line:381,column:8},end:{line:402,column:9}},{start:{line:390,column:15},end:{line:402,column:9}}],line:381},18:{loc:{start:{line:410,column:10},end:{line:415,column:11}},type:"if",locations:[{start:{line:410,column:10},end:{line:415,column:11}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:410},19:{loc:{start:{line:417,column:10},end:{line:419,column:11}},type:"if",locations:[{start:{line:417,column:10},end:{line:419,column:11}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:417}},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},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;;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",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-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-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\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 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 case 'GLOBAL_SUBSETTING':\n this.globalSettings.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:"ab59473fb2a7d1aeff1683c41151fa93c3ffd37f"},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:[],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,r.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]++;case"GLOBAL_SUBSETTING":z().b[7][6]++,z().s[60]++,e.globalSettings.push(n),z().s[61]++;break;default:z().b[7][7]++,z().s[62]++,e.processWidget(t,n,i,s),z().s[63]++;break}else z().b[6][1]++})),z().s[64]++,"undefined"===typeof this.layoutStack[0]){z().b[9][0]++;var t=(z().s[65]++,[]),n=(z().s[66]++,[]);z().s[67]++;var i,s=(0,r.Z)(this.dynamicWidgets);try{for(s.s();!(i=s.n()).done;){var l=i.value;z().s[68]++,t.push(l.name),z().s[69]++,n.push(l.lineNumber)}}catch(a){s.e(a)}finally{s.f()}z().s[70]++,this.errors.push({type:"usage",message:"Unknown widget! Are these widgets: ".concat(t.join(","),"?"),lineNumber:n.join(","),time:(new Date).getTime()}),z().s[71]++,this.layoutStack[0]={type:"VerticalWidget",parameters:[],widgets:[]}}else z().b[9][1]++,z().s[72]++,this.applyGlobalSettings(this.layoutStack[0].widgets)},getNamedWidget:function(e){return z().f[15]++,z().s[73]++,this.namedWidgets[e]},get_named_widget:function(e){return z().f[16]++,z().s[74]++,this.namedWidgets[e]},setNamedWidget:function(e,t){z().f[17]++,z().s[75]++,this.namedWidgets[e]=t},update:function(){var e=this;z().f[18]++,z().s[76]++,z().b[11][0]++,0!==this.$store.state.tlmViewerItems.length&&(z().b[11][1]++,0===this.errors.length)?(z().b[10][0]++,z().s[77]++,this.api.get_tlm_values(this.$store.state.tlmViewerItems,this.staleTime).then((function(t){z().f[19]++,z().s[78]++,e.$store.commit("tlmViewerUpdateValues",t)})).catch((function(t){z().f[20]++,z().s[79]++,e.errors.push({type:"usage",message:t.message,time:(new Date).getTime()})}))):z().b[10][1]++},openEdit:function(){z().f[21]++,z().s[80]++,this.backup=this.currentDefinition.repeat(1),z().s[81]++,this.editDialog=!0},cancelEdit:function(){z().f[22]++,z().s[82]++,this.file=null,z().s[83]++,this.editDialog=!1,z().s[84]++,this.currentDefinition=this.backup,z().s[85]++,this.parseDefinition(),z().s[86]++,this.screenKey=Math.floor(1e6*Math.random()),z().s[87]++,this.$nextTick((function(){z().f[23]++,z().s[88]++,this.clearErrors()}))},saveEdit:function(e){z().f[24]++,z().s[89]++,this.currentDefinition=e,z().s[90]++,this.parseDefinition(),z().s[91]++,this.screenKey=Math.floor(1e6*Math.random()),z().s[92]++,this.$nextTick((function(){z().f[25]++,z().s[93]++,u.Z.post("/openc3-api/screen/",{data:{scope:window.openc3Scope,target:this.target,screen:this.screen,text:this.currentDefinition}}),z().s[94]++,this.editDialog=!1}))},deleteScreen:function(){var e=this;z().f[26]++,z().s[95]++,this.editDialog=!1,z().s[96]++,u.Z["delete"]("/openc3-api/screen/".concat(this.target,"/").concat(this.screen)).then((function(t){z().f[27]++,z().s[97]++,e.$emit("delete-screen")}))},minMaxTransition:function(){z().f[28]++,z().s[98]++,this.expand=!this.expand,z().s[99]++,this.$emit("min-max-screen")},processWidget:function(e,t,n,i){z().f[29]++;var s=(z().s[100]++,null);z().s[101]++,"NAMED_WIDGET"===e?(z().b[12][0]++,z().s[102]++,this.configParser.verify_num_parameters(2,null,"".concat(e," <Widget Name> <Widget Type> <Widget Settings... (optional)>")),z().s[103]++,s=t[0].toUpperCase(),z().s[104]++,e=t[1].toUpperCase(),z().s[105]++,t=t.slice(2,t.length)):z().b[12][1]++;var l=(z().s[106]++,e.charAt(0).toUpperCase()+e.slice(1).toLowerCase()+"Widget"),a=(z().s[107]++,[]);if(z().s[108]++,null!==s?(z().b[13][0]++,z().s[109]++,a.push(["NAMED_WIDGET",s,this])):z().b[13][1]++,z().s[110]++,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[111]++,{type:l,parameters:t,settings:a,widgets:[]});z().s[112]++,this.layoutStack.push(r),z().s[113]++,this.currentLayout.widgets.push(r),z().s[114]++,this.currentLayout=r}else if(z().b[14][1]++,z().s[115]++,e.includes("BUTTON")?(z().b[16][0]++,z().s[116]++,a.push(["SCREEN",this])):z().b[16][1]++,z().s[117]++,y["default"].options.components[l])z().b[17][0]++,z().s[118]++,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[119]++,{type:"DynamicWidget",target:this.target,parameters:t,settings:a,name:l,line:n,lineNumber:i});z().s[120]++,this.currentLayout.widgets.push(o),z().s[121]++,this.dynamicWidgets.push(o)}},applyGlobalSettings:function(e){var t=this;z().f[30]++,z().s[122]++,this.globalSettings.forEach((function(n){z().f[31]++,z().s[123]++,e.forEach((function(e){z().f[32]++,z().s[124]++,e.type.toLowerCase()===n[0].toLowerCase()+"widget"?(z().b[18][0]++,z().s[125]++,e.settings.push(n.slice(1))):z().b[18][1]++,z().s[126]++,e.widgets?(z().b[19][0]++,z().s[127]++,t.applyGlobalSettings(e.widgets)):z().b[19][1]++}))}))}}},j=B,F=(n(65909),(0,f.Z)(j,w,C,!1,null,"28e0f181",null)),K=F.exports;function Y(){var e="/openc3/plugins/packages/openc3-cosmos-tool-tlmviewer/src/tools/TlmViewer/NewScreenDialog.vue",t="e135ccf4af0072f972d2dc566276f9a92e5aa88a",n=new Function("return this")(),i="__coverage__",s={path:"/openc3/plugins/packages/openc3-cosmos-tool-tlmviewer/src/tools/TlmViewer/NewScreenDialog.vue",statementMap:{0:{start:{line:1,column:13},end:{line:2,column:1}},1:{start:{line:1,column:39},end:{line:1,column:43}},2:{start:{line:1,column:47},end:{line:1,column:59}},3:{start:{line:1,column:60},end:{line:1,column:2519}},4:{start:{line:1,column:153},end:{line:1,column:165}},5:{start:{line:1,column:388},end:{line:1,column:585}},6:{start:{line:1,column:532},end:{line:1,column:548}},7:{start:{line:1,column:806},end:{line:1,column:834}},8:{start:{line:1,column:1190},end:{line:1,column:1212}},9:{start:{line:1,column:1697},end:{line:1,column:1723}},10:{start:{line:1,column:1976},end:{line:1,column:2009}},11:{start:{line:1,column:2070},end:{line:1,column:2091}},12:{start:{line:1,column:2466},end:{line:1,column:2482}},13:{start:{line:3,column:22},end:{line:3,column:24}}},fnMap:{0:{name:"render",decl:{start:{line:1,column:22},end:{line:1,column:28}},loc:{start:{line:1,column:30},end:{line:2,column:1}},line:1},1:{name:"(anonymous_1)",decl:{start:{line:1,column:137},end:{line:1,column:138}},loc:{start:{line:1,column:152},end:{line:1,column:166}},line:1},2:{name:"(anonymous_2)",decl:{start:{line:1,column:364},end:{line:1,column:365}},loc:{start:{line:1,column:387},end:{line:1,column:586}},line:1},3:{name:"(anonymous_3)",decl:{start:{line:1,column:515},end:{line:1,column:516}},loc:{start:{line:1,column:531},end:{line:1,column:549}},line:1},4:{name:"(anonymous_4)",decl:{start:{line:1,column:790},end:{line:1,column:791}},loc:{start:{line:1,column:805},end:{line:1,column:835}},line:1},5:{name:"(anonymous_5)",decl:{start:{line:1,column:1174},end:{line:1,column:1175}},loc:{start:{line:1,column:1189},end:{line:1,column:1213}},line:1},6:{name:"(anonymous_6)",decl:{start:{line:1,column:1681},end:{line:1,column:1682}},loc:{start:{line:1,column:1696},end:{line:1,column:1724}},line:1},7:{name:"(anonymous_7)",decl:{start:{line:1,column:1959},end:{line:1,column:1960}},loc:{start:{line:1,column:1975},end:{line:1,column:2010}},line:1},8:{name:"(anonymous_8)",decl:{start:{line:1,column:2054},end:{line:1,column:2055}},loc:{start:{line:1,column:2069},end:{line:1,column:2092}},line:1},9:{name:"(anonymous_9)",decl:{start:{line:1,column:2449},end:{line:1,column:2450}},loc:{start:{line:1,column:2465},end:{line:1,column:2483}},line:1}},branchMap:{0:{loc:{start:{line:1,column:2123},end:{line:1,column:2261}},type:"cond-expr",locations:[{start:{line:1,column:2145},end:{line:1,column:2252}},{start:{line:1,column:2253},end:{line:1,column:2261}}],line:1}},s:{0:0,1:0,2:0,3:0,4:0,5:0,6:0,7:0,8:0,9:0,10:0,11:0,12:0,13:0},f:{0:0,1:0,2:0,3:0,4:0,5:0,6:0,7:0,8:0,9:0},b:{0:[0,0]},_coverageSchema:"1a1c01bbd47fc00a2c39e90264f33305004495a9",hash:"e135ccf4af0072f972d2dc566276f9a92e5aa88a"},l=n[i]||(n[i]={});l[e]&&l[e].hash===t||(l[e]=s);var a=l[e];return Y=function(){return a},a}Y(),Y().s[0]++;var q=function(){Y().f[0]++;var e=(Y().s[1]++,this),t=(Y().s[2]++,e._self._c);return Y().s[3]++,t("v-dialog",{attrs:{width:"600"},model:{value:e.show,callback:function(t){Y().f[1]++,Y().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 Y().f[2]++,Y().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){Y().f[3]++,Y().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){Y().f[4]++,Y().s[7]++,e.duplicateScreenAlert=t},expression:"duplicateScreenAlert"}},[e._v(" Screen "+e._s(e.newScreenName.toUpperCase())+" already exists! ")]),t("v-row",{staticClass:"pt-2 pb-2"},[t("v-select",{attrs:{label:"Select Target",items:e.targets,"item-text":"label","item-value":"value"},on:{change:e.targetSelect},model:{value:e.selectedTarget,callback:function(t){Y().f[5]++,Y().s[8]++,e.selectedTarget=t},expression:"selectedTarget"}})],1),t("v-row",{staticClass:"pt-2 pb-2"},[t("span",[e._v("Existing Screens: "+e._s(e.existingScreens))])]),t("v-row",{staticClass:"pt-2 pb-2"},[t("v-autocomplete",{attrs:{label:"Select to base new screen on Packet","hide-details":"",dense:"",items:e.packetNames,"item-text":"label","item-value":"value","data-test":"new-screen-packet"},on:{change:e.packetNameChanged},model:{value:e.selectedPacketName,callback:function(t){Y().f[6]++,Y().s[9]++,e.selectedPacketName=t},expression:"selectedPacketName"}})],1),t("v-row",[t("v-text-field",{attrs:{flat:"",autofocus:"","solo-inverted":"","hide-details":"",clearable:"",label:"Screen Name (without .txt)","data-test":"new-screen-name"},on:{keyup:function(t){return Y().f[7]++,Y().s[10]++,e.newScreenKeyup(t)}},model:{value:e.newScreenName,callback:function(t){Y().f[8]++,Y().s[11]++,e.newScreenName=t},expression:"newScreenName"}}),e.newScreenSaving?(Y().b[0][0]++,t("div",{staticClass:"pl-2"},[t("v-progress-circular",{attrs:{indeterminate:"",color:"primary"}})],1)):(Y().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){Y().f[9]++,Y().s[12]++,e.show=!1}}},[e._v(" Cancel ")])],1)],1)],1)},X=(Y().s[13]++,[]);n(1951);function J(){var e="/openc3/plugins/packages/openc3-cosmos-tool-tlmviewer/src/tools/TlmViewer/NewScreenDialog.vue",t="1f3afa5d8eab560fc402cbf25543bd1e397da152",n=new Function("return this")(),i="__coverage__",s={path:"/openc3/plugins/packages/openc3-cosmos-tool-tlmviewer/src/tools/TlmViewer/NewScreenDialog.vue",statementMap:{0:{start:{line:15,column:4},end:{line:24,column:5}},1:{start:{line:27,column:4},end:{line:27,column:30}},2:{start:{line:28,column:4},end:{line:28,column:37}},3:{start:{line:29,column:4},end:{line:29,column:32}},4:{start:{line:30,column:4},end:{line:30,column:37}},5:{start:{line:31,column:4},end:{line:35,column:8}},6:{start:{line:34,column:8},end:{line:34,column:67}},7:{start:{line:34,column:48},end:{line:34,column:66}},8:{start:{line:36,column:4},end:{line:36,column:42}},9:{start:{line:41,column:8},end:{line:41,column:25}},10:{start:{line:44,column:8},end:{line:44,column:34}},11:{start:{line:48,column:6},end:{line:52,column:7}},12:{start:{line:49,column:8},end:{line:49,column:59}},13:{start:{line:51,column:8},end:{line:51,column:21}},14:{start:{line:57,column:6},end:{line:57,column:34}},15:{start:{line:58,column:6},end:{line:69,column:8}},16:{start:{line:59,column:8},end:{line:64,column:10}},17:{start:{line:60,column:10},end:{line:63,column:11}},18:{start:{line:65,column:8},end:{line:68,column:10}},19:{start:{line:72,column:6},end:{line:87,column:7}},20:{start:{line:73,column:8},end:{line:73,column:31}},21:{start:{line:74,column:8},end:{line:74,column:41}},22:{start:{line:76,column:8},end:{line:76,column:48}},23:{start:{line:77,column:8},end:{line:86,column:9}},24:{start:{line:83,column:10},end:{line:83,column:42}},25:{start:{line:85,column:10},end:{line:85,column:43}},26:{start:{line:90,column:6},end:{line:102,column:7}},27:{start:{line:96,column:8},end:{line:96,column:40}},28:{start:{line:98,column:8},end:{line:98,column:41}},29:{start:{line:99,column:8},end:{line:101,column:9}},30:{start:{line:100,column:10},end:{line:100,column:30}},31:{start:{line:105,column:6},end:{line:105,column:33}},32:{start:{line:106,column:6},end:{line:111,column:7}}},fnMap:{0:{name:"(anonymous_0)",decl:{start:{line:14,column:2},end:{line:14,column:3}},loc:{start:{line:14,column:9},end:{line:25,column:3}},line:14},1:{name:"(anonymous_1)",decl:{start:{line:26,column:2},end:{line:26,column:3}},loc:{start:{line:26,column:12},end:{line:37,column:3}},line:26},2:{name:"(anonymous_2)",decl:{start:{line:33,column:12},end:{line:33,column:13}},loc:{start:{line:33,column:25},end:{line:35,column:7}},line:33},3:{name:"(anonymous_3)",decl:{start:{line:34,column:38},end:{line:34,column:39}},loc:{start:{line:34,column:48},end:{line:34,column:66}},line:34},4:{name:"(anonymous_4)",decl:{start:{line:40,column:6},end:{line:40,column:7}},loc:{start:{line:40,column:12},end:{line:42,column:7}},line:40},5:{name:"(anonymous_5)",decl:{start:{line:43,column:6},end:{line:43,column:7}},loc:{start:{line:43,column:17},end:{line:45,column:7}},line:43},6:{name:"(anonymous_6)",decl:{start:{line:47,column:4},end:{line:47,column:5}},loc:{start:{line:47,column:22},end:{line:53,column:5}},line:47},7:{name:"(anonymous_7)",decl:{start:{line:56,column:4},end:{line:56,column:5}},loc:{start:{line:56,column:25},end:{line:70,column:5}},line:56},8:{name:"(anonymous_8)",decl:{start:{line:58,column:65},end:{line:58,column:66}},loc:{start:{line:58,column:76},end:{line:69,column:7}},line:58},9:{name:"(anonymous_9)",decl:{start:{line:59,column:37},end:{line:59,column:38}},loc:{start:{line:59,column:47},end:{line:64,column:9}},line:59},10:{name:"(anonymous_10)",decl:{start:{line:71,column:4},end:{line:71,column:5}},loc:{start:{line:71,column:29},end:{line:88,column:5}},line:71},11:{name:"(anonymous_11)",decl:{start:{line:89,column:4},end:{line:89,column:5}},loc:{start:{line:89,column:26},end:{line:103,column:5}},line:89},12:{name:"(anonymous_12)",decl:{start:{line:104,column:4},end:{line:104,column:5}},loc:{start:{line:104,column:20},end:{line:112,column:5}},line:104}},branchMap:{0:{loc:{start:{line:48,column:6},end:{line:52,column:7}},type:"if",locations:[{start:{line:48,column:6},end:{line:52,column:7}},{start:{line:50,column:13},end:{line:52,column:7}}],line:48},1:{loc:{start:{line:72,column:6},end:{line:87,column:7}},type:"if",locations:[{start:{line:72,column:6},end:{line:87,column:7}},{start:{line:75,column:13},end:{line:87,column:7}}],line:72},2:{loc:{start:{line:77,column:8},end:{line:86,column:9}},type:"if",locations:[{start:{line:77,column:8},end:{line:86,column:9}},{start:{line:84,column:15},end:{line:86,column:9}}],line:77},3:{loc:{start:{line:78,column:10},end:{line:81,column:18}},type:"binary-expr",locations:[{start:{line:78,column:10},end:{line:78,column:43}},{start:{line:79,column:10},end:{line:81,column:18}}],line:78},4:{loc:{start:{line:90,column:6},end:{line:102,column:7}},type:"if",locations:[{start:{line:90,column:6},end:{line:102,column:7}},{start:{line:97,column:13},end:{line:102,column:7}}],line:90},5:{loc:{start:{line:91,column:8},end:{line:94,column:16}},type:"binary-expr",locations:[{start:{line:91,column:8},end:{line:91,column:41}},{start:{line:92,column:8},end:{line:94,column:16}}],line:91},6:{loc:{start:{line:99,column:8},end:{line:101,column:9}},type:"if",locations:[{start:{line:99,column:8},end:{line:101,column:9}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:99}},s:{0:0,1:0,2:0,3:0,4:0,5:0,6:0,7:0,8:0,9:0,10:0,11:0,12:0,13:0,14:0,15:0,16:0,17:0,18:0,19:0,20:0,21:0,22:0,23:0,24:0,25:0,26:0,27:0,28:0,29:0,30:0,31:0,32:0},f:{0:0,1:0,2:0,3:0,4:0,5:0,6:0,7:0,8:0,9:0,10:0,11:0,12:0},b:{0:[0,0],1:[0,0],2:[0,0],3:[0,0],4:[0,0],5:[0,0],6:[0,0]},inputSourceMap:{version:3,sources:["NewScreenDialog.vue"],names:[],mappings:";AAsGA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA",file:"NewScreenDialog.vue",sourceRoot:"src/tools/TlmViewer",sourcesContent:['\x3c!--\n# Copyright 2022 OpenC3, Inc.\n# All Rights Reserved.\n#\n# This program is free software; you can modify and/or redistribute it\n# under the terms of the GNU Affero General Public License\n# as published by the Free Software Foundation; version 3 with\n# attribution addendums as found in the LICENSE.txt\n#\n# This program is distributed in the hope that it will be useful,\n# but WITHOUT ANY WARRANTY; without even the implied warranty of\n# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n# GNU Affero General Public License for more details.\n#\n# This file may also be used under the terms of a commercial license\n# if purchased from OpenC3, Inc.\n--\x3e\n\n<template>\n \x3c!-- Dialog for creating new screen --\x3e\n <v-dialog v-model="show" width="600">\n <v-card>\n <v-system-bar>\n <v-spacer />\n <span>Create New Screen</span>\n <v-spacer />\n <v-tooltip top>\n <template v-slot:activator="{ on, attrs }">\n <div v-on="on" v-bind="attrs">\n <v-icon data-test="new-screen-close-icon" @click="show = false">\n mdi-close-box\n </v-icon>\n </div>\n </template>\n <span>Close</span>\n </v-tooltip>\n </v-system-bar>\n \x3c!-- <v-card-title> Create New Screen </v-card-title> --\x3e\n <v-card-text>\n <div class="pa-3">\n <v-alert\n v-model="duplicateScreenAlert"\n type="error"\n dismissible\n dense\n >\n Screen {{ newScreenName.toUpperCase() }} already exists!\n </v-alert>\n <v-row class="pt-2 pb-2">\n <v-select\n label="Select Target"\n :items="targets"\n item-text="label"\n item-value="value"\n v-model="selectedTarget"\n @change="targetSelect"\n /></v-row>\n\n <v-row class="pt-2 pb-2">\n <span>Existing Screens: {{ existingScreens }}</span>\n </v-row>\n <v-row class="pt-2 pb-2">\n <v-autocomplete\n label="Select to base new screen on Packet"\n hide-details\n dense\n @change="packetNameChanged"\n :items="packetNames"\n item-text="label"\n item-value="value"\n v-model="selectedPacketName"\n data-test="new-screen-packet"\n />\n </v-row>\n <v-row>\n <v-text-field\n v-model="newScreenName"\n flat\n autofocus\n solo-inverted\n hide-details\n clearable\n label="Screen Name (without .txt)"\n data-test="new-screen-name"\n @keyup="newScreenKeyup($event)"\n />\n <div class="pl-2" v-if="newScreenSaving">\n <v-progress-circular indeterminate color="primary" />\n </div>\n </v-row>\n </div>\n </v-card-text>\n <v-divider />\n <v-card-actions>\n <v-btn color="primary" text @click="saveNewScreen"> Ok </v-btn>\n <v-btn text @click="show = false"> Cancel </v-btn>\n </v-card-actions>\n </v-card>\n </v-dialog>\n</template>\n\n<script>\nimport { OpenC3Api } from \'@openc3/tool-common/src/services/openc3-api\'\n\nexport default {\n props: {\n value: Boolean, // value is the default prop when using v-model\n target: {\n type: String,\n },\n screens: {\n type: Object,\n },\n },\n data() {\n return {\n api: null,\n targets: [],\n newScreenSaving: false,\n newScreenName: \'\',\n duplicateScreenAlert: false,\n packetNames: [],\n selectedTarget: \'\',\n selectedPacketName: \'\',\n }\n },\n created() {\n this.api = new OpenC3Api()\n this.duplicateScreenAlert = false\n this.newScreenSaving = false\n this.selectedTarget = this.target\n this.api\n .get_target_list({ params: { scope: window.openc3Scope } })\n .then((targets) => {\n this.targets = targets.filter((item) => item !== \'UNKNOWN\')\n })\n this.targetSelect(this.selectedTarget)\n },\n computed: {\n show: {\n get() {\n return this.value\n },\n set(value) {\n this.$emit(\'input\', value) // input is the default event when using v-model\n },\n },\n existingScreens() {\n if (this.screens[this.selectedTarget]) {\n return this.screens[this.selectedTarget].join(\', \')\n } else {\n return \'None\'\n }\n },\n },\n methods: {\n targetSelect(target) {\n this.selectedTarget = target\n this.api.get_all_telemetry_names(this.selectedTarget).then((names) => {\n this.packetNames = names.map((name) => {\n return {\n label: name,\n value: name,\n }\n })\n this.packetNames.unshift({\n label: \'[ BLANK ]\',\n value: \'BLANK\',\n })\n })\n },\n packetNameChanged(value) {\n if (value === \'BLANK\') {\n this.newScreenName = \'\'\n this.duplicateScreenAlert = false\n } else {\n this.newScreenName = value.toLowerCase()\n if (\n this.screens[this.selectedTarget] &&\n this.screens[this.selectedTarget].indexOf(\n this.newScreenName.toUpperCase()\n ) !== -1\n ) {\n this.duplicateScreenAlert = true\n } else {\n this.duplicateScreenAlert = false\n }\n }\n },\n newScreenKeyup(event) {\n if (\n this.screens[this.selectedTarget] &&\n this.screens[this.selectedTarget].indexOf(\n this.newScreenName.toUpperCase()\n ) !== -1\n ) {\n this.duplicateScreenAlert = true\n } else {\n this.duplicateScreenAlert = false\n if (event.key === \'Enter\') {\n this.saveNewScreen()\n }\n }\n },\n saveNewScreen() {\n this.newScreenSaving = true\n this.$emit(\n \'success\',\n this.newScreenName.toUpperCase(),\n this.selectedPacketName,\n this.selectedTarget\n )\n },\n },\n}\n<\/script>\n']},_coverageSchema:"1a1c01bbd47fc00a2c39e90264f33305004495a9",hash:"1f3afa5d8eab560fc402cbf25543bd1e397da152"},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:Object}},data:function(){return J().f[0]++,J().s[0]++,{api:null,targets:[],newScreenSaving:!1,newScreenName:"",duplicateScreenAlert:!1,packetNames:[],selectedTarget:"",selectedPacketName:""}},created:function(){var e=this;J().f[1]++,J().s[1]++,this.api=new d.k,J().s[2]++,this.duplicateScreenAlert=!1,J().s[3]++,this.newScreenSaving=!1,J().s[4]++,this.selectedTarget=this.target,J().s[5]++,this.api.get_target_list({params:{scope:window.openc3Scope}}).then((function(t){J().f[2]++,J().s[6]++,e.targets=t.filter((function(e){return J().f[3]++,J().s[7]++,"UNKNOWN"!==e}))})),J().s[8]++,this.targetSelect(this.selectedTarget)},computed:{show:{get:function(){return J().f[4]++,J().s[9]++,this.value},set:function(e){J().f[5]++,J().s[10]++,this.$emit("input",e)}},existingScreens:function(){return J().f[6]++,J().s[11]++,this.screens[this.selectedTarget]?(J().b[0][0]++,J().s[12]++,this.screens[this.selectedTarget].join(", ")):(J().b[0][1]++,J().s[13]++,"None")}},methods:{targetSelect:function(e){var t=this;J().f[7]++,J().s[14]++,this.selectedTarget=e,J().s[15]++,this.api.get_all_telemetry_names(this.selectedTarget).then((function(e){J().f[8]++,J().s[16]++,t.packetNames=e.map((function(e){return J().f[9]++,J().s[17]++,{label:e,value:e}})),J().s[18]++,t.packetNames.unshift({label:"[ BLANK ]",value:"BLANK"})}))},packetNameChanged:function(e){J().f[10]++,J().s[19]++,"BLANK"===e?(J().b[1][0]++,J().s[20]++,this.newScreenName="",J().s[21]++,this.duplicateScreenAlert=!1):(J().b[1][1]++,J().s[22]++,this.newScreenName=e.toLowerCase(),J().s[23]++,J().b[3][0]++,this.screens[this.selectedTarget]&&(J().b[3][1]++,-1!==this.screens[this.selectedTarget].indexOf(this.newScreenName.toUpperCase()))?(J().b[2][0]++,J().s[24]++,this.duplicateScreenAlert=!0):(J().b[2][1]++,J().s[25]++,this.duplicateScreenAlert=!1))},newScreenKeyup:function(e){J().f[11]++,J().s[26]++,J().b[5][0]++,this.screens[this.selectedTarget]&&(J().b[5][1]++,-1!==this.screens[this.selectedTarget].indexOf(this.newScreenName.toUpperCase()))?(J().b[4][0]++,J().s[27]++,this.duplicateScreenAlert=!0):(J().b[4][1]++,J().s[28]++,this.duplicateScreenAlert=!1,J().s[29]++,"Enter"===e.key?(J().b[6][0]++,J().s[30]++,this.saveNewScreen()):J().b[6][1]++)},saveNewScreen:function(){J().f[12]++,J().s[31]++,this.newScreenSaving=!0,J().s[32]++,this.$emit("success",this.newScreenName.toUpperCase(),this.selectedPacketName,this.selectedTarget)}}},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="7d41d1d7b72113519aad346fc49c9081230f9209",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:60,column:4},end:{line:60,column:30}},4:{start:{line:61,column:4},end:{line:61,column:36}},5:{start:{line:62,column:4},end:{line:80,column:8}},6:{start:{line:65,column:29},end:{line:65,column:31}},7:{start:{line:66,column:8},end:{line:68,column:9}},8:{start:{line:66,column:21},end:{line:66,column:22}},9:{start:{line:67,column:10},end:{line:67,column:74}},10:{start:{line:69,column:8},end:{line:79,column:10}},11:{start:{line:70,column:10},end:{line:78,column:12}},12:{start:{line:71,column:12},end:{line:77,column:13}},13:{start:{line:72,column:14},end:{line:72,column:65}},14:{start:{line:73,column:14},end:{line:73,column:64}},15:{start:{line:74,column:14},end:{line:76,column:15}},16:{start:{line:75,column:16},end:{line:75,column:59}},17:{start:{line:81,column:4},end:{line:83,column:6}},18:{start:{line:82,column:6},end:{line:82,column:35}},19:{start:{line:86,column:4},end:{line:90,column:6}},20:{start:{line:91,column:4},end:{line:91,column:47}},21:{start:{line:92,column:27},end:{line:92,column:71}},22:{start:{line:93,column:4},end:{line:95,column:5}},23:{start:{line:94,column:6},end:{line:94,column:44}},24:{start:{line:99,column:6},end:{line:101,column:8}},25:{start:{line:100,column:8},end:{line:100,column:67}},26:{start:{line:104,column:6},end:{line:104,column:34}},27:{start:{line:105,column:6},end:{line:105,column:30}},28:{start:{line:106,column:6},end:{line:106,column:26}},29:{start:{line:109,column:6},end:{line:109,column:34}},30:{start:{line:110,column:6},end:{line:110,column:63}},31:{start:{line:113,column:6},end:{line:113,column:33}},32:{start:{line:116,column:17},end:{line:116,column:41}},33:{start:{line:117,column:6},end:{line:127,column:7}},34:{start:{line:118,column:8},end:{line:118,column:30}},35:{start:{line:119,column:8},end:{line:124,column:10}},36:{start:{line:120,column:10},end:{line:122,column:12}},37:{start:{line:121,column:12},end:{line:121,column:77}},38:{start:{line:123,column:10},end:{line:123,column:25}},39:{start:{line:126,column:8},end:{line:126,column:31}},40:{start:{line:128,column:6},end:{line:153,column:8}},41:{start:{line:136,column:8},end:{line:136,column:36}},42:{start:{line:137,column:8},end:{line:148,column:9}},43:{start:{line:138,column:10},end:{line:138,column:69}},44:{start:{line:139,column:10},end:{line:147,column:12}},45:{start:{line:140,column:12},end:{line:142,column:13}},46:{start:{line:141,column:14},end:{line:141,column:23}},47:{start:{line:143,column:12},end:{line:145,column:13}},48:{start:{line:144,column:14},end:{line:144,column:22}},49:{start:{line:146,column:12},end:{line:146,column:20}},50:{start:{line:149,column:8},end:{line:149,column:40}},51:{start:{line:150,column:8},end:{line:150,column:40}},52:{start:{line:151,column:8},end:{line:151,column:28}},53:{start:{line:152,column:8},end:{line:152,column:47}},54:{start:{line:156,column:18},end:{line:158,column:7}},55:{start:{line:157,column:17},end:{line:157,column:61}},56:{start:{line:159,column:6},end:{line:168,column:7}},57:{start:{line:160,column:8},end:{line:167,column:10}},58:{start:{line:161,column:10},end:{line:166,column:12}},59:{start:{line:171,column:6},end:{line:175,column:8}},60:{start:{line:178,column:6},end:{line:178,column:39}},61:{start:{line:179,column:6},end:{line:188,column:8}},62:{start:{line:180,column:20},end:{line:185,column:9}},63:{start:{line:186,column:8},end:{line:186,column:29}},64:{start:{line:187,column:8},end:{line:187,column:41}},65:{start:{line:191,column:18},end:{line:193,column:7}},66:{start:{line:192,column:17},end:{line:192,column:61}},67:{start:{line:194,column:6},end:{line:196,column:7}},68:{start:{line:195,column:8},end:{line:195,column:32}},69:{start:{line:199,column:6},end:{line:201,column:7}},70:{start:{line:200,column:8},end:{line:200,column:32}},71:{start:{line:204,column:18},end:{line:206,column:8}},72:{start:{line:207,column:6},end:{line:207,column:29}},73:{start:{line:208,column:6},end:{line:208,column:39}},74:{start:{line:209,column:6},end:{line:211,column:8}},75:{start:{line:210,column:8},end:{line:210,column:29}},76:{start:{line:214,column:6},end:{line:214,column:26}},77:{start:{line:215,column:6},end:{line:215,column:26}},78:{start:{line:218,column:6},end:{line:220,column:13}},79:{start:{line:219,column:8},end:{line:219,column:41}},80:{start:{line:223,column:6},end:{line:223,column:35}},81:{start:{line:226,column:6},end:{line:226,column:57}},82:{start:{line:227,column:6},end:{line:227,column:22}},83:{start:{line:228,column:6},end:{line:228,column:27}},84:{start:{line:229,column:27},end:{line:229,column:74}},85:{start:{line:230,column:6},end:{line:255,column:7}},86:{start:{line:231,column:23},end:{line:231,column:49}},87:{start:{line:233,column:35},end:{line:235,column:10}},88:{start:{line:234,column:10},end:{line:234,column:70}},89:{start:{line:237,column:8},end:{line:254,column:12}},90:{start:{line:240,column:12},end:{line:250,column:14}},91:{start:{line:241,column:31},end:{line:241,column:47}},92:{start:{line:242,column:14},end:{line:249,column:19}},93:{start:{line:243,column:16},end:{line:248,column:18}},94:{start:{line:253,column:12},end:{line:253,column:45}},95:{start:{line:258,column:6},end:{line:258,column:57}},96:{start:{line:259,column:24},end:{line:259,column:80}},97:{start:{line:259,column:59},end:{line:259,column:79}},98:{start:{line:260,column:21},end:{line:273,column:10}},99:{start:{line:263,column:10},end:{line:266,column:15}},100:{start:{line:269,column:10},end:{line:272,column:11}},101:{start:{line:274,column:6},end:{line:274,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:84,column:3}},line:58},4:{name:"(anonymous_4)",decl:{start:{line:64,column:12},end:{line:64,column:13}},loc:{start:{line:64,column:25},end:{line:80,column:7}},line:64},5:{name:"(anonymous_5)",decl:{start:{line:69,column:41},end:{line:69,column:42}},loc:{start:{line:69,column:56},end:{line:79,column:9}},line:69},6:{name:"(anonymous_6)",decl:{start:{line:70,column:26},end:{line:70,column:27}},loc:{start:{line:70,column:41},end:{line:78,column:11}},line:70},7:{name:"(anonymous_7)",decl:{start:{line:81,column:61},end:{line:81,column:62}},loc:{start:{line:81,column:75},end:{line:83,column:5}},line:81},8:{name:"(anonymous_8)",decl:{start:{line:85,column:2},end:{line:85,column:3}},loc:{start:{line:85,column:12},end:{line:96,column:3}},line:85},9:{name:"(anonymous_9)",decl:{start:{line:98,column:4},end:{line:98,column:5}},loc:{start:{line:98,column:20},end:{line:102,column:5}},line:98},10:{name:"(anonymous_10)",decl:{start:{line:99,column:64},end:{line:99,column:65}},loc:{start:{line:99,column:78},end:{line:101,column:7}},line:99},11:{name:"(anonymous_11)",decl:{start:{line:103,column:4},end:{line:103,column:5}},loc:{start:{line:103,column:25},end:{line:107,column:5}},line:103},12:{name:"(anonymous_12)",decl:{start:{line:108,column:4},end:{line:108,column:5}},loc:{start:{line:108,column:25},end:{line:111,column:5}},line:108},13:{name:"(anonymous_13)",decl:{start:{line:112,column:4},end:{line:112,column:5}},loc:{start:{line:112,column:16},end:{line:114,column:5}},line:112},14:{name:"(anonymous_14)",decl:{start:{line:115,column:4},end:{line:115,column:5}},loc:{start:{line:115,column:60},end:{line:154,column:5}},line:115},15:{name:"(anonymous_15)",decl:{start:{line:119,column:66},end:{line:119,column:67}},loc:{start:{line:119,column:78},end:{line:124,column:9}},line:119},16:{name:"(anonymous_16)",decl:{start:{line:120,column:31},end:{line:120,column:32}},loc:{start:{line:120,column:41},end:{line:122,column:11}},line:120},17:{name:"(anonymous_17)",decl:{start:{line:135,column:14},end:{line:135,column:15}},loc:{start:{line:135,column:28},end:{line:153,column:7}},line:135},18:{name:"(anonymous_18)",decl:{start:{line:139,column:28},end:{line:139,column:29}},loc:{start:{line:139,column:38},end:{line:147,column:11}},line:139},19:{name:"(anonymous_19)",decl:{start:{line:155,column:4},end:{line:155,column:5}},loc:{start:{line:155,column:31},end:{line:169,column:5}},line:155},20:{name:"(anonymous_20)",decl:{start:{line:157,column:8},end:{line:157,column:9}},loc:{start:{line:157,column:17},end:{line:157,column:61}},line:157},21:{name:"(anonymous_21)",decl:{start:{line:160,column:45},end:{line:160,column:46}},loc:{start:{line:160,column:59},end:{line:167,column:9}},line:160},22:{name:"(anonymous_22)",decl:{start:{line:170,column:4},end:{line:170,column:5}},loc:{start:{line:170,column:31},end:{line:176,column:5}},line:170},23:{name:"(anonymous_23)",decl:{start:{line:177,column:4},end:{line:177,column:5}},loc:{start:{line:177,column:27},end:{line:189,column:5}},line:177},24:{name:"(anonymous_24)",decl:{start:{line:179,column:21},end:{line:179,column:22}},loc:{start:{line:179,column:33},end:{line:188,column:7}},line:179},25:{name:"(anonymous_25)",decl:{start:{line:190,column:4},end:{line:190,column:5}},loc:{start:{line:190,column:38},end:{line:197,column:5}},line:190},26:{name:"(anonymous_26)",decl:{start:{line:192,column:8},end:{line:192,column:9}},loc:{start:{line:192,column:17},end:{line:192,column:61}},line:192},27:{name:"(anonymous_27)",decl:{start:{line:198,column:4},end:{line:198,column:5}},loc:{start:{line:198,column:15},end:{line:202,column:5}},line:198},28:{name:"(anonymous_28)",decl:{start:{line:203,column:4},end:{line:203,column:5}},loc:{start:{line:203,column:20},end:{line:212,column:5}},line:203},29:{name:"(anonymous_29)",decl:{start:{line:209,column:49},end:{line:209,column:50}},loc:{start:{line:209,column:72},end:{line:211,column:7}},line:209},30:{name:"(anonymous_30)",decl:{start:{line:213,column:4},end:{line:213,column:5}},loc:{start:{line:213,column:21},end:{line:216,column:5}},line:213},31:{name:"(anonymous_31)",decl:{start:{line:217,column:4},end:{line:217,column:5}},loc:{start:{line:217,column:20},end:{line:221,column:5}},line:217},32:{name:"(anonymous_32)",decl:{start:{line:218,column:17},end:{line:218,column:18}},loc:{start:{line:218,column:23},end:{line:220,column:7}},line:218},33:{name:"(anonymous_33)",decl:{start:{line:222,column:4},end:{line:222,column:5}},loc:{start:{line:222,column:17},end:{line:224,column:5}},line:222},34:{name:"(anonymous_34)",decl:{start:{line:225,column:23},end:{line:225,column:24}},loc:{start:{line:225,column:45},end:{line:256,column:5}},line:225},35:{name:"(anonymous_35)",decl:{start:{line:233,column:46},end:{line:233,column:47}},loc:{start:{line:233,column:62},end:{line:235,column:9}},line:233},36:{name:"(anonymous_36)",decl:{start:{line:238,column:16},end:{line:238,column:17}},loc:{start:{line:238,column:31},end:{line:251,column:11}},line:238},37:{name:"(anonymous_37)",decl:{start:{line:240,column:27},end:{line:240,column:28}},loc:{start:{line:240,column:50},end:{line:250,column:13}},line:240},38:{name:"(anonymous_38)",decl:{start:{line:242,column:25},end:{line:242,column:26}},loc:{start:{line:242,column:31},end:{line:249,column:15}},line:242},39:{name:"(anonymous_39)",decl:{start:{line:252,column:16},end:{line:252,column:17}},loc:{start:{line:252,column:22},end:{line:254,column:11}},line:252},40:{name:"(anonymous_40)",decl:{start:{line:257,column:23},end:{line:257,column:24}},loc:{start:{line:257,column:39},end:{line:275,column:5}},line:257},41:{name:"(anonymous_41)",decl:{start:{line:259,column:49},end:{line:259,column:50}},loc:{start:{line:259,column:59},end:{line:259,column:79}},line:259},42:{name:"(anonymous_42)",decl:{start:{line:261,column:14},end:{line:261,column:15}},loc:{start:{line:261,column:24},end:{line:267,column:9}},line:261},43:{name:"(anonymous_43)",decl:{start:{line:268,column:13},end:{line:268,column:14}},loc:{start:{line:268,column:22},end:{line:273,column:9}},line:268}},branchMap:{0:{loc:{start:{line:71,column:12},end:{line:77,column:13}},type:"if",locations:[{start:{line:71,column:12},end:{line:77,column:13}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:71},1:{loc:{start:{line:74,column:14},end:{line:76,column:15}},type:"if",locations:[{start:{line:74,column:14},end:{line:76,column:15}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:74},2:{loc:{start:{line:93,column:4},end:{line:95,column:5}},type:"if",locations:[{start:{line:93,column:4},end:{line:95,column:5}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:93},3:{loc:{start:{line:117,column:6},end:{line:127,column:7}},type:"if",locations:[{start:{line:117,column:6},end:{line:127,column:7}},{start:{line:125,column:13},end:{line:127,column:7}}],line:117},4:{loc:{start:{line:117,column:10},end:{line:117,column:46}},type:"binary-expr",locations:[{start:{line:117,column:10},end:{line:117,column:20}},{start:{line:117,column:24},end:{line:117,column:46}}],line:117},5:{loc:{start:{line:137,column:8},end:{line:148,column:9}},type:"if",locations:[{start:{line:137,column:8},end:{line:148,column:9}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:137},6:{loc:{start:{line:140,column:12},end:{line:142,column:13}},type:"if",locations:[{start:{line:140,column:12},end:{line:142,column:13}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:140},7:{loc:{start:{line:143,column:12},end:{line:145,column:13}},type:"if",locations:[{start:{line:143,column:12},end:{line:145,column:13}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:143},8:{loc:{start:{line:157,column:17},end:{line:157,column:61}},type:"binary-expr",locations:[{start:{line:157,column:17},end:{line:157,column:37}},{start:{line:157,column:41},end:{line:157,column:61}}],line:157},9:{loc:{start:{line:159,column:6},end:{line:168,column:7}},type:"if",locations:[{start:{line:159,column:6},end:{line:168,column:7}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:159},10:{loc:{start:{line:192,column:17},end:{line:192,column:61}},type:"binary-expr",locations:[{start:{line:192,column:17},end:{line:192,column:37}},{start:{line:192,column:41},end:{line:192,column:61}}],line:192},11:{loc:{start:{line:194,column:6},end:{line:196,column:7}},type:"if",locations:[{start:{line:194,column:6},end:{line:196,column:7}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:194},12:{loc:{start:{line:230,column:6},end:{line:255,column:7}},type:"if",locations:[{start:{line:230,column:6},end:{line:255,column:7}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:230},13:{loc:{start:{line:263,column:17},end:{line:266,column:15}},type:"cond-expr",locations:[{start:{line:265,column:14},end:{line:265,column:16}},{start:{line:266,column:14},end:{line:266,column:15}}],line:263}},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},f:{0:0,1:0,2:0,3:0,4:0,5:0,6:0,7:0,8:0,9:0,10:0,11:0,12:0,13:0,14:0,15:0,16:0,17:0,18:0,19:0,20:0,21:0,22:0,23:0,24:0,25:0,26:0,27:0,28:0,29:0,30:0,31:0,32:0,33:0,34:0,35:0,36:0,37:0,38:0,39:0,40:0,41:0,42:0,43:0},b:{0:[0,0],1:[0,0],2:[0,0],3:[0,0],4:[0,0],5:[0,0],6:[0,0],7:[0,0],8:[0,0],9:[0,0],10:[0,0],11:[0,0],12:[0,0],13:[0,0]},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;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[selectedTarget]"\n v-model="selectedScreen"\n @change="screenSelect"\n />\n <v-btn\n class="primary mr-2"\n :disabled="!selectedScreen"\n @click="() => showScreen(selectedTarget, selectedScreen)"\n data-test="show-screen"\n >\n Show\n </v-btn>\n <v-btn\n class="primary"\n @click="() => newScreen(selectedTarget)"\n data-test="new-screen"\n >\n New Screen\n <v-icon> mdi-file-plus</v-icon>\n </v-btn>\n </v-row>\n </v-container>\n <div class="grid">\n <div\n class="item"\n v-for="def in definitions"\n :key="def.id"\n :id="screenId(def.id)"\n ref="gridItem"\n >\n <div class="item-content">\n <openc3-screen\n :target="def.target"\n :screen="def.screen"\n :definition="def.definition"\n :keywords="keywords"\n @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 // Ensure Offline Access Is Setup For the Current User\n this.api = new OpenC3Api()\n this.api.ensure_offline_access()\n this.api\n .get_target_list({ params: { scope: window.openc3Scope } })\n .then((targets) => {\n let screenPromises = []\n for (var i = 0; i < targets.length; i++) {\n screenPromises.push(Api.get(\'/openc3-api/screen/\' + targets[i]))\n }\n Promise.all(screenPromises).then((responses) => {\n targets.forEach((target, i) => {\n if (responses[i].data.length !== 0) {\n this.targets.push({ label: target, value: target })\n this.$set(this.screens, target, responses[i].data)\n if (!this.selectedTarget) {\n this.selectedTarget = this.targets[0].value\n }\n }\n })\n })\n })\n Api.get(\'/openc3-api/autocomplete/keywords/screen\').then((response) => {\n this.keywords = response.data\n })\n },\n mounted() {\n this.grid = new Muuri(\'.grid\', {\n dragEnabled: true,\n // Only allow drags starting from the v-system-bar title\n dragHandle: \'.v-system-bar\',\n })\n this.grid.on(\'dragEnd\', this.refreshLayout)\n const previousConfig = localStorage[\'lastconfig__telemetry_viewer\']\n if (previousConfig) {\n this.openConfiguration(previousConfig)\n }\n },\n methods: {\n updateScreens() {\n Api.get(\'/openc3-api/screen/\' + this.selectedTarget).then((response) => {\n this.$set(this.screens, this.selectedTarget, response.data)\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, packetName, targetName) {\n let text = \'SCREEN AUTO AUTO 1.0\\n\'\n if (packetName && packetName !== \'BLANK\') {\n text += \'\\nVERTICAL\\n\'\n await this.api.get_telemetry(targetName, packetName).then((packet) => {\n packet.items.forEach((item) => {\n text += ` LABELVALUE ${targetName} ${packetName} ${item.name}\\n`\n })\n text += \'END\\n\'\n })\n } else {\n text += \'\\nLABEL NEW\\n\'\n }\n Api.post(\'/openc3-api/screen/\', {\n data: {\n scope: window.openc3Scope,\n target: targetName,\n screen: screenName,\n text: text,\n },\n }).then((response) => {\n this.newScreenDialog = false\n if (!this.targets.includes({ label: targetName, value: targetName })) {\n this.targets.push({ label: targetName, value: targetName })\n this.targets.sort((a, b) => {\n if (a.label < b.label) {\n return -1\n }\n if (a.label > b.label) {\n return 1\n }\n return 0\n })\n }\n this.selectedTarget = targetName\n this.selectedScreen = screenName\n this.updateScreens()\n this.showScreen(targetName, screenName)\n })\n },\n showScreen(target, screen) {\n const def = this.definitions.find(\n (def) => def.target == target && def.screen == screen\n )\n if (!def) {\n this.loadScreen(target, screen).then((response) => {\n this.pushScreen({\n id: this.counter++,\n target: target,\n screen: screen,\n definition: response.data,\n })\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:"7d41d1d7b72113519aad346fc49c9081230f9209"},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:K,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.ensure_offline_access(),fe().s[5]++,this.api.get_target_list({params:{scope:window.openc3Scope}}).then((function(t){fe().f[4]++;var n=(fe().s[6]++,[]);fe().s[7]++;for(var i=(fe().s[8]++,0);i<t.length;i++)fe().s[9]++,n.push(u.Z.get("/openc3-api/screen/"+t[i]));fe().s[10]++,Promise.all(n).then((function(n){fe().f[5]++,fe().s[11]++,t.forEach((function(t,i){fe().f[6]++,fe().s[12]++,0!==n[i].data.length?(fe().b[0][0]++,fe().s[13]++,e.targets.push({label:t,value:t}),fe().s[14]++,e.$set(e.screens,t,n[i].data),fe().s[15]++,e.selectedTarget?fe().b[1][1]++:(fe().b[1][0]++,fe().s[16]++,e.selectedTarget=e.targets[0].value)):fe().b[0][1]++}))}))})),fe().s[17]++,u.Z.get("/openc3-api/autocomplete/keywords/screen").then((function(t){fe().f[7]++,fe().s[18]++,e.keywords=t.data}))},mounted:function(){fe().f[8]++,fe().s[19]++,this.grid=new Ae.Z(".grid",{dragEnabled:!0,dragHandle:".v-system-bar"}),fe().s[20]++,this.grid.on("dragEnd",this.refreshLayout);var e=(fe().s[21]++,localStorage["lastconfig__telemetry_viewer"]);fe().s[22]++,e?(fe().b[2][0]++,fe().s[23]++,this.openConfiguration(e)):fe().b[2][1]++},methods:{updateScreens:function(){var e=this;fe().f[9]++,fe().s[24]++,u.Z.get("/openc3-api/screen/"+this.selectedTarget).then((function(t){fe().f[10]++,fe().s[25]++,e.$set(e.screens,e.selectedTarget,t.data)}))},targetSelect:function(e){fe().f[11]++,fe().s[26]++,this.selectedTarget=e,fe().s[27]++,this.selectedScreen="",fe().s[28]++,this.updateScreens()},screenSelect:function(e){fe().f[12]++,fe().s[29]++,this.selectedScreen=e,fe().s[30]++,this.showScreen(this.selectedTarget,this.selectedScreen)},newScreen:function(){fe().f[13]++,fe().s[31]++,this.newScreenDialog=!0},saveNewScreen:function(e,t,n){var i=this;return(0,c.Z)((0,o.Z)().mark((function s(){var l;return(0,o.Z)().wrap((function(s){while(1)switch(s.prev=s.next){case 0:if(fe().f[14]++,fe().s[32]++,l="SCREEN AUTO AUTO 1.0\n",fe().s[33]++,fe().b[4][0]++,!t||(fe().b[4][1]++,"BLANK"===t)){s.next=12;break}return fe().b[3][0]++,fe().s[34]++,l+="\nVERTICAL\n",fe().s[35]++,s.next=10,i.api.get_telemetry(n,t).then((function(e){fe().f[15]++,fe().s[36]++,e.items.forEach((function(e){fe().f[16]++,fe().s[37]++,l+=" LABELVALUE ".concat(n," ").concat(t," ").concat(e.name,"\n")})),fe().s[38]++,l+="END\n"}));case 10:s.next=15;break;case 12:fe().b[3][1]++,fe().s[39]++,l+="\nLABEL NEW\n";case 15:fe().s[40]++,u.Z.post("/openc3-api/screen/",{data:{scope:window.openc3Scope,target:n,screen:e,text:l}}).then((function(t){fe().f[17]++,fe().s[41]++,i.newScreenDialog=!1,fe().s[42]++,i.targets.includes({label:n,value:n})?fe().b[5][1]++:(fe().b[5][0]++,fe().s[43]++,i.targets.push({label:n,value:n}),fe().s[44]++,i.targets.sort((function(e,t){return fe().f[18]++,fe().s[45]++,e.label<t.label?(fe().b[6][0]++,fe().s[46]++,-1):(fe().b[6][1]++,fe().s[47]++,e.label>t.label?(fe().b[7][0]++,fe().s[48]++,1):(fe().b[7][1]++,fe().s[49]++,0))}))),fe().s[50]++,i.selectedTarget=n,fe().s[51]++,i.selectedScreen=e,fe().s[52]++,i.updateScreens(),fe().s[53]++,i.showScreen(n,e)}));case 17:case"end":return s.stop()}}),s)})))()},showScreen:function(e,t){var n=this;fe().f[19]++;var i=(fe().s[54]++,this.definitions.find((function(n){return fe().f[20]++,fe().s[55]++,fe().b[8][0]++,n.target==e&&(fe().b[8][1]++,n.screen==t)})));fe().s[56]++,i?fe().b[9][1]++:(fe().b[9][0]++,fe().s[57]++,this.loadScreen(e,t).then((function(i){fe().f[21]++,fe().s[58]++,n.pushScreen({id:n.counter++,target:e,screen:t,definition:i.data})})))},loadScreen:function(e,t){return fe().f[22]++,fe().s[59]++,u.Z.get("/openc3-api/screen/"+e+"/"+t,{headers:{Accept:"text/plain"}})},pushScreen:function(e){fe().f[23]++,fe().s[60]++,this.definitions.push(e),fe().s[61]++,this.$nextTick((function(){fe().f[24]++;var e=(fe().s[62]++,this.grid.add(this.$refs.gridItem[this.$refs.gridItem.length-1],{active:!1}));fe().s[63]++,this.grid.show(e),fe().s[64]++,this.grid.refreshItems().layout()}))},closeScreenByName:function(e,t){fe().f[25]++;var n=(fe().s[65]++,this.definitions.find((function(n){return fe().f[26]++,fe().s[66]++,fe().b[10][0]++,n.target==e&&(fe().b[10][1]++,n.screen==t)})));fe().s[67]++,n?(fe().b[11][0]++,fe().s[68]++,this.closeScreen(n.id)):fe().b[11][1]++},closeAll:function(){fe().f[27]++,fe().s[69]++;var e,t=(0,r.Z)(this.definitions);try{for(t.s();!(e=t.n()).done;){var n=e.value;fe().s[70]++,this.closeScreen(n.id)}}catch(i){t.e(i)}finally{t.f()}},closeScreen:function(e){fe().f[28]++;var t=(fe().s[71]++,this.grid.getItems([document.getElementById(this.screenId(e))]));fe().s[72]++,this.grid.remove(t),fe().s[73]++,this.grid.refreshItems().layout(),fe().s[74]++,this.definitions=this.definitions.filter((function(t,n,i){return fe().f[29]++,fe().s[75]++,t.id!=e}))},deleteScreen:function(e){fe().f[30]++,fe().s[76]++,this.closeScreen(e),fe().s[77]++,this.updateScreens()},refreshLayout:function(){var e=this;fe().f[31]++,fe().s[78]++,setTimeout((function(){fe().f[32]++,fe().s[79]++,e.grid.refreshItems().layout()}),600)},screenId:function(e){return fe().f[33]++,fe().s[80]++,"tlmViewerScreen"+e},openConfiguration:function(){var e=(0,c.Z)((0,o.Z)().mark((function e(t){var n,i,s,l=this;return(0,o.Z)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return fe().f[34]++,fe().s[81]++,localStorage["lastconfig__telemetry_viewer"]=t,fe().s[82]++,this.counter=0,fe().s[83]++,this.definitions=[],fe().s[84]++,e.next=10,this.api.load_config(this.toolName,t);case 10:n=e.sent,fe().s[85]++,n?(fe().b[12][0]++,fe().s[86]++,i=JSON.parse(n),fe().s[87]++,s=i.map((function(e){return fe().f[35]++,fe().s[88]++,l.loadScreen(e.target,e.screen)})),fe().s[89]++,Promise.all(s).then((function(e){fe().f[36]++,fe().s[90]++,i.forEach((function(t,n){fe().f[37]++;var i=(fe().s[91]++,e[n]);fe().s[92]++,setTimeout((function(){fe().f[38]++,fe().s[93]++,l.pushScreen({id:l.counter++,target:t.target,screen:t.screen,definition:i.data})}),0)}))})).then((function(){fe().f[39]++,fe().s[94]++,setTimeout(l.refreshLayout,0)}))):fe().b[12][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[40]++,fe().s[95]++,localStorage["lastconfig__telemetry_viewer"]=e;var n=(fe().s[96]++,this.grid.getItems().map((function(e){return fe().f[41]++,fe().s[97]++,e.getElement().id}))),i=(fe().s[98]++,this.definitions.sort((function(e,i){return fe().f[42]++,fe().s[99]++,n.indexOf(t.screenId(e))>n.indexOf(t.screenId(i))?(fe().b[13][0]++,-1):(fe().b[13][1]++,1)})).map((function(e){return fe().f[43]++,fe().s[100]++,{screen:e.screen,target:e.target}})));fe().s[101]++,this.api.save_config(this.toolName,e,JSON.stringify(i))}}},ge=ve,_e=(n(31032),(0,f.Z)(ge,l,a,!1,null,"7087470b",null)),we=_e.exports},93964:function(e,t,n){"use strict";n.d(t,{Z:function(){return h}});n(34115),n(634);var i=function(){var e=this,t=e._self._c;return t("v-dialog",{attrs:{width:"600"},model:{value:e.show,callback:function(t){e.show=t},expression:"show"}},[t("v-card",[t("v-system-bar",[t("v-spacer"),t("span",[e._v(" Details ")]),t("v-spacer")],1),t("v-card-title",[e._v(" "+e._s(e.targetName)+" "+e._s(e.packetName)+" "+e._s(e.itemName)+" ")]),t("v-card-subtitle",[e._v(e._s(e.details.description))]),t("v-card-text",[t("v-container",{attrs:{fluid:""}},["tlm"===e.type?t("v-row",{attrs:{"no-gutters":""}},[t("v-col",{staticClass:"label",attrs:{cols:"3"}},[e._v("Item Values")]),t("v-col"),t("v-container",{staticClass:"ml-5 pa-0",attrs:{fluid:""}},[t("v-row",{attrs:{"no-gutters":""}},[t("v-col",{staticClass:"label",attrs:{cols:"4"}},[e._v("Raw Value")]),t("v-col",[e._v(e._s(e.rawValue))])],1),t("v-row",{attrs:{"no-gutters":""}},[t("v-col",{staticClass:"label",attrs:{cols:"4"}},[e._v("Converted Value")]),t("v-col",[e._v(e._s(e.convertedValue))])],1),t("v-row",{attrs:{"no-gutters":""}},[t("v-col",{staticClass:"label",attrs:{cols:"4"}},[e._v("Formatted Value")]),t("v-col",[e._v(e._s(e.formattedValue))])],1),t("v-row",{attrs:{"no-gutters":""}},[t("v-col",{staticClass:"label",attrs:{cols:"4"}},[e._v("With Units Value")]),t("v-col",[e._v(e._s(e.unitsValue))])],1)],1)],1):e._e(),t("v-row",{attrs:{"no-gutters":""}},[t("v-col",{staticClass:"label",attrs:{cols:"3"}},[e._v("Bit Offset")]),t("v-col",[e._v(e._s(e.details.bit_offset))])],1),t("v-row",{attrs:{"no-gutters":""}},[t("v-col",{staticClass:"label",attrs:{cols:"3"}},[e._v("Bit Size")]),t("v-col",[e._v(e._s(e.details.bit_size))])],1),e.details.array_size?t("v-row",{attrs:{"no-gutters":""}},[t("v-col",{staticClass:"label",attrs:{cols:"3"}},[e._v("Array Size")]),t("v-col",[e._v(e._s(e.details.array_size))])],1):e._e(),t("v-row",{attrs:{"no-gutters":""}},[t("v-col",{staticClass:"label",attrs:{cols:"3"}},[e._v("Data Type")]),t("v-col",[e._v(e._s(e.details.data_type))])],1),"cmd"===e.type?t("v-row",{attrs:{"no-gutters":""}},[t("v-col",{staticClass:"label",attrs:{cols:"3"}},[e._v("Minimum")]),t("v-col",[e._v(e._s(e.details.minimum))])],1):e._e(),"cmd"===e.type?t("v-row",{attrs:{"no-gutters":""}},[t("v-col",{staticClass:"label",attrs:{cols:"3"}},[e._v("Maximum")]),t("v-col",[e._v(e._s(e.details.maximum))])],1):e._e(),"cmd"===e.type?t("v-row",{attrs:{"no-gutters":""}},[t("v-col",{staticClass:"label",attrs:{cols:"3"}},[e._v("Default")]),t("v-col",[e._v(e._s(e.details.default))])],1):e._e(),t("v-row",{attrs:{"no-gutters":""}},[t("v-col",{staticClass:"label",attrs:{cols:"3"}},[e._v("Format String")]),t("v-col",[e._v(e._s(e.details.format_string))])],1),t("v-row",{attrs:{"no-gutters":""}},[t("v-col",{staticClass:"label",attrs:{cols:"3"}},[e._v("Read Conversion")]),e.details.read_conversion?t("v-col",[e._v(" Class: "+e._s(e.details.read_conversion.class)+" "),t("br"),e._v(" Params: "+e._s(e.details.read_conversion.params)+" ")]):t("v-col")],1),t("v-row",{attrs:{"no-gutters":""}},[t("v-col",{staticClass:"label",attrs:{cols:"3"}},[e._v("Write Conversion")]),e.details.write_conversion?t("v-col",[e._v(" Class: "+e._s(e.details.write_conversion.class)+" "),t("br"),e._v(" Params: "+e._s(e.details.write_conversion.params)+" ")]):t("v-col")],1),t("v-row",{attrs:{"no-gutters":""}},[t("v-col",{staticClass:"label",attrs:{cols:"3"}},[e._v("Id Value")]),t("v-col",[e._v(e._s(e.details.id_value))])],1),t("v-row",{attrs:{"no-gutters":""}},[t("v-col",{staticClass:"label",attrs:{cols:"3"}},[e._v("Units Full")]),t("v-col",[e._v(e._s(e.details.units_full))])],1),t("v-row",{attrs:{"no-gutters":""}},[t("v-col",{staticClass:"label",attrs:{cols:"3"}},[e._v("Units Abbr")]),t("v-col",[e._v(e._s(e.details.units))])],1),t("v-row",{attrs:{"no-gutters":""}},[t("v-col",{staticClass:"label",attrs:{cols:"3"}},[e._v("Endianness")]),t("v-col",[e._v(e._s(e.details.endianness))])],1),e.details.states?t("v-row",{attrs:{"no-gutters":""}},[t("v-col",{staticClass:"label",attrs:{cols:"3"}},[e._v("States")]),t("v-col"),t("v-container",{staticClass:"ml-5 pa-0",attrs:{fluid:""}},e._l(e.details.states,(function(n,i){return t("v-row",{key:i,attrs:{"no-gutters":""}},[t("v-col",{staticClass:"label",attrs:{cols:"4"}},[e._v(e._s(i))]),t("v-col",[e._v(e._s(n.value))])],1)})),1)],1):t("v-row",{attrs:{"no-gutters":""}},[t("v-col",{staticClass:"label",attrs:{cols:"3"}},[e._v("States")]),t("v-col",[e._v("None")])],1),e.details.limits?t("v-row",{attrs:{"no-gutters":""}},[t("v-col",{staticClass:"label",attrs:{cols:"3"}},[e._v("Limits")]),t("v-col"),t("v-container",{staticClass:"ml-5 pa-0",attrs:{fluid:""}},e._l(e.details.limits,(function(n,i){return t("v-row",{key:i,attrs:{"no-gutters":""}},["enabled"===i?t("v-col",{staticClass:"label",attrs:{cols:"4"}},[e._v("Enabled")]):e._e(),"enabled"===i?t("v-switch",{attrs:{dense:"","hide-details":""},on:{change:e.changeLimitsEnabled},model:{value:e.details.limits.enabled,callback:function(t){e.$set(e.details.limits,"enabled",t)},expression:"details.limits.enabled"}}):e._e(),"enabled"!==i?t("v-col",{staticClass:"label",attrs:{cols:"4"}},[e._v(e._s(i))]):e._e(),"enabled"!==i?t("div",[e._v(e._s(e.formatLimit(n)))]):e._e(),t("v-col")],1)})),1)],1):t("v-row",{attrs:{"no-gutters":""}},[t("v-col",{staticClass:"label",attrs:{cols:"3"}},[e._v("Limits")]),t("v-col",[e._v("None")])],1),e.details.meta?t("v-row",{attrs:{"no-gutters":""}},[t("v-col",{staticClass:"label",attrs:{cols:"3"}},[e._v("Meta")]),t("v-col"),t("v-container",{staticClass:"ml-5 pa-0",attrs:{fluid:""}},e._l(e.details.meta,(function(n,i){return t("v-row",{key:i,attrs:{"no-gutters":""}},[t("v-col",{staticClass:"label",attrs:{cols:"4"}},[e._v(e._s(i))]),t("v-col",[e._v(e._s(n))])],1)})),1)],1):t("v-row",{attrs:{"no-gutters":""}},[t("v-col",{staticClass:"label",attrs:{cols:"3"}},[e._v("Meta")]),t("v-col",[e._v("None")])],1)],1)],1)],1)],1)},s=[],l=n(15789),a=n(66964),r=n(49502),o=(n(74083),n(18178),n(32501),n(68995),n(27233),n(28673),n(58188),n(88233),n(48392)),c={props:{type:{default:"tlm",validator:function(e){return-1!==["cmd","tlm"].indexOf(e)}},targetName:String,packetName:String,itemName:String,value:Boolean},data:function(){return{details:Object,updater:null,rawValue:null,convertedValue:null,formattedValue:null,unitsValue:null}},computed:{show:{get:function(){return this.value},set:function(e){this.$emit("input",e)}}},created:function(){this.api=new o.k},beforeDestroy:function(){clearInterval(this.updater),this.updater=null},watch:{value:function(e,t){var n=this;e?(this.requestDetails(),"tlm"===this.type&&(this.updater=setInterval((function(){n.api.get_tlm_values(["".concat(n.targetName,"__").concat(n.packetName,"__").concat(n.itemName,"__RAW"),"".concat(n.targetName,"__").concat(n.packetName,"__").concat(n.itemName,"__CONVERTED"),"".concat(n.targetName,"__").concat(n.packetName,"__").concat(n.itemName,"__FORMATTED"),"".concat(n.targetName,"__").concat(n.packetName,"__").concat(n.itemName,"__WITH_UNITS")]).then((function(e){for(var t=0;t<e.length;t++){var i=null;if("String"===e[t][0]["json_class"]&&void 0!==e[t][0]["raw"]?i=e[t][0]["raw"]:"BLOCK"===n.details.data_type&&(i=e[t][0]),null!==i){i=i.slice(0,parseInt(n.details.bit_size)/8);var s=!1;i.length>64&&(s=!0),e[t][0]=Array.from(i.slice(0,64),(function(e){return("0"+(255&e).toString(16)).slice(-2)})).join(" ").toUpperCase(),s&&(e[t][0]+="...")}}n.rawValue=e[0][0],n.convertedValue=e[1][0],n.formattedValue=e[2][0],n.unitsValue=e[3][0]}))}),1e3))):(clearInterval(this.updater),this.updater=null)}},methods:{requestDetails:function(){var e=this;return(0,r.Z)((0,l.Z)().mark((function t(){return(0,l.Z)().wrap((function(t){while(1)switch(t.prev=t.next){case 0:if("tlm"!==e.type){t.next=5;break}return t.next=3,e.api.get_item(e.targetName,e.packetName,e.itemName).then((function(t){if(e.details=t,t.limits){var n=!1;t.limits.enabled&&(n=!0,delete t.limits.enabled),e.details.limits=(0,a.Z)({enabled:n},t.limits)}}));case 3:t.next=7;break;case 5:return t.next=7,e.api.get_parameter(e.targetName,e.packetName,e.itemName).then((function(t){e.details=t}));case 7:case"end":return t.stop()}}),t)})))()},changeLimitsEnabled:function(){var e=this;return(0,r.Z)((0,l.Z)().mark((function t(){return(0,l.Z)().wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(!e.details.limits.enabled){t.next=5;break}return t.next=3,e.api.enable_limits(e.targetName,e.packetName,e.itemName);case 3:t.next=7;break;case 5:return t.next=7,e.api.disable_limits(e.targetName,e.packetName,e.itemName);case 7:case"end":return t.stop()}}),t)})))()},formatLimit:function(e){return e.green_low?"RL/"+e.red_low+" YL/"+e.yellow_low+" YH/"+e.yellow_high+" RH/"+e.red_high+" GL/"+e.green_low+" GH/"+e.green_high:e.red_low?"RL/"+e.red_low+" YL/"+e.yellow_low+" YH/"+e.yellow_high+" RH/"+e.red_high:e}}},u=c,d=(n(23270),n(93483)),m=(0,d.Z)(u,i,s,!1,null,"1e0f0ab0",null),h=m.exports},92207: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","date-time":e.graphStartDateTime},on:{"date-time":function(t){e.graphStartDateTime=t}}}),t("v-card-text",{staticClass:"pa-0"},[e._v(" Select a end date/time for the graph. Leave blank for continuous real-time graphing. ")]),t("date-time-chooser",{attrs:{"date-label":"End Date","time-label":"End Time","date-time":e.graphEndDateTime},on:{"date-time":function(t){e.graphEndDateTime=t}}}),t("v-row",{attrs:{dense:""}},[t("v-select",{attrs:{label:"Legend Position",items:e.legendPositions,"data-test":"edit-legend-position"},model:{value:e.legendPosition,callback:function(t){e.legendPosition=t},expression:"legendPosition"}})],1),t("v-card-text",{staticClass:"pa-0"},[e._v(" Optional Y axis settings. ")]),t("v-row",{attrs:{dense:""}},[t("v-col",{staticClass:"px-2"},[t("v-text-field",{attrs:{"hide-details":"",label:"Min Y",type:"number","data-test":"graph-min-y"},model:{value:e.graphMinY,callback:function(t){e.graphMinY=t},expression:"graphMinY"}})],1),t("v-col",{staticClass:"px-2"},[t("v-text-field",{attrs:{"hide-details":"",label:"Max Y",type:"number","data-test":"graph-max-y"},model:{value:e.graphMaxY,callback:function(t){e.graphMaxY=t},expression:"graphMaxY"}})],1)],1),t("v-data-table",{staticClass:"elevation-1 my-2",attrs:{"item-key":"itemId",headers:e.itemHeaders,items:e.editItems,"items-per-page":5,"footer-props":{"items-per-page-options":[5]}},scopedSlots:e._u([{key:"item.actions",fn:function(n){var i=n.item;return[t("v-tooltip",{attrs:{top:""},scopedSlots:e._u([{key:"activator",fn:function(n){var s=n.on,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",{attrs:{nav:"",dense:""}},[t("v-subheader",[e._v(" "+e._s(e.selectedItem.targetName)+" "+e._s(e.selectedItem.packetName)+" "+e._s(e.selectedItem.itemName)+" ")]),t("v-list-item",{on:{click:function(t){return e.openEditItem()}}},[t("v-list-item-icon",[t("v-icon",[e._v("mdi-pencil")])],1),t("v-list-item-content",[t("v-list-item-title",[e._v(" Edit ")])],1)],1),t("v-list-item",{on:{click:function(t){return e.removeItems([e.selectedItem])}}},[t("v-list-item-icon",[t("v-icon",[e._v("mdi-delete")])],1),t("v-list-item-content",[t("v-list-item-title",[e._v(" Delete ")])],1)],1)],1)],1):e._e(),e.legendMenu?t("v-menu",{attrs:{"position-x":e.legendMenuX,"position-y":e.legendMenuY,absolute:"","offset-y":""},model:{value:e.legendMenu,callback:function(t){e.legendMenu=t},expression:"legendMenu"}},[t("v-list",[t("v-list-item",{on:{click:function(t){return e.moveLegend("top")}}},[t("v-list-item-title",{staticStyle:{cursor:"pointer"}},[e._v("Legend Top")])],1),t("v-list-item",{on:{click:function(t){return e.moveLegend("bottom")}}},[t("v-list-item-title",{staticStyle:{cursor:"pointer"}},[e._v("Legend Bottom")])],1),t("v-list-item",{on:{click:function(t){return e.moveLegend("left")}}},[t("v-list-item-title",{staticStyle:{cursor:"pointer"}},[e._v("Legend Left")])],1),t("v-list-item",{on:{click:function(t){return e.moveLegend("right")}}},[t("v-list-item-title",{staticStyle:{cursor:"pointer"}},[e._v("Legend RIght")])],1)],1)],1):e._e()],1)},s=[],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=n(66700),p=n(73053),A={props:{required:{type:Boolean,default:!0},dateTime:{type:Number,default:null},dateLabel:{type:String,default:"Date"},timeLabel:{type:String,default:"Time"}},data:function(){return{date:null,time:null,rules:{required:function(e){return!!e||"Required"},date:function(e){if(!e)return!0;try{return(0,d.Z)((0,m.Z)(e,"yyyy-MM-dd",new Date))||"Invalid date (YYYY-MM-DD)"}catch(t){return"Invalid date (YYYY-MM-DD)"}},time:function(e){if(!e)return!0;try{return(0,d.Z)((0,m.Z)(e,"HH:mm:ss",new Date))||"Invalid time (HH:MM:SS)"}catch(t){return"Invalid time (HH:MM:SS)"}}}}},computed:{dateRules:function(){var e=[this.rules.date];return(this.time||this.required)&&e.push(this.rules.required),e},timeRules:function(){var e=[this.rules.time];return(this.date||this.required)&&e.push(this.rules.required),e}},created:function(){if(this.dateTime){var e=(0,h.Z)(this.dateTime/1e6);this.date=(0,p.Z)(e,"yyyy-MM-dd"),this.time=(0,p.Z)(e,"HH:mm:ss")}},methods:{onChange:function(){this.date&&this.time?this.$emit("date-time",this.date+" "+this.time):this.$emit("date-time",null)}}},f=A,v=n(93483),g=(0,v.Z)(f,c,u,!1,null,null,null),_=g.exports,w=n(35685),C=n(86522),b=n.n(C),y=n(59161);n(8514);var x={components:{DateTimeChooser:_},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:null,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 w.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,p.Z)((0,h.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 w.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 w.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),w.Z.rangeNum(l,a,t,!0)}},subscribe:function(){var e=this;this.cable.createSubscription("StreamingChannel",window.openc3Scope,{received:function(t){return e.received(t)},connected:function(){e.addItemsToSubscription(e.items)},disconnected:function(){e.errors.push({type:"disconnected",message:"OpenC3 backend connection disconnected",time:(new Date).getTime()})},rejected:function(){e.errors.push({type:"rejected",message:"OpenC3 backend connection rejected",time:(new Date).getTime()})}}).then((function(t){e.subscription=t}))},getSize:function(e){var t=document.getElementById("openc3-nav-drawer"),n=t.classList.contains("v-navigation-drawer--open")?t.clientWidth:0,i=0;if("right"===this.legendPosition||"left"===this.legendPosition){var s=document.getElementsByClassName("u-legend")[0];i=s.clientWidth}var 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:this.showOverview=!1: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]:w.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=this.startTime;this.graphStartDateTime&&(n=this.graphStartDateTime),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:n,end_time:e.graphEndDateTime})}))},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){this.cable.recordPing();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=b()(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])}}}if(null===this.startTime){var c=1e9*this.data[0][0];this.$emit("started",c)}},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(87653),n(96541),(0,v.Z)(k,i,s,!1,null,"cf7e213e",null)),T=S.exports},91679: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(93964),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(94776),n(93483)),d=(0,u.Z)(c,i,s,!1,null,"5cd86706",null),m=d.exports},69674: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(93964),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(15474),n(93483)),d=(0,u.Z)(c,i,s,!1,null,"48b8ff8d",null),m=d.exports},66336: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(90985),a=l.Z,r=n(93483),o=(0,r.Z)(a,i,s,!1,null,null,null),c=o.exports},37739: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(64550),n(93483)),c=(0,o.Z)(r,i,s,!1,null,"17947dc7",null),u=c.exports},72810: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(93483),c=(0,o.Z)(r,i,s,!1,null,null,null),u=c.exports},4673: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(93483),u=(0,c.Z)(o,i,s,!1,null,null,null),d=u.exports},62847: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(93483),h=(0,m.Z)(d,i,s,!1,null,null,null),p=h.exports},19091: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(93483),c=(0,o.Z)(r,i,s,!1,null,null,null),u=c.exports},19269: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(93483),c=(0,o.Z)(r,i,s,!1,null,null,null),u=c.exports},96068: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(93483),c=(0,o.Z)(r,i,s,!1,null,null,null),u=c.exports},87502: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(93483),c=(0,o.Z)(r,i,s,!1,null,null,null),u=c.exports},6122: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(93483),c=(0,o.Z)(r,i,s,!1,null,null,null),u=c.exports},84190: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(93483),c=(0,o.Z)(r,i,s,!1,null,null,null),u=c.exports},26593: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(93483),d=(0,u.Z)(c,s,l,!1,null,null,null),m=d.exports},90742: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(25572),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(93483),u=(0,c.Z)(o,i,s,!1,null,null,null),d=u.exports},21282: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(93483),c=(0,o.Z)(r,i,s,!1,null,null,null),u=c.exports},23901: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(21282),a=n(548),r={mixins:[a.Z],components:{HorizontalWidget:l["default"]}},o=r,c=(n(52192),n(93483)),u=(0,c.Z)(o,i,s,!1,null,"1307e02a",null),d=u.exports},59673: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(93483),c=(0,o.Z)(r,i,s,!1,null,null,null),u=c.exports},29685: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(this.cable.recordPing(),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(93483),d=(0,u.Z)(c,i,s,!1,null,null,null),m=d.exports},6903: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(41018),n(93483)),c=(0,o.Z)(r,i,s,!1,null,"712bf360",null),u=c.exports},1633: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(6903),r=n(26626),o={mixins:[l.Z],components:{LabelWidget:a["default"],LedWidget:r["default"]},computed:{labelName:function(){return[this.parameters[2]+":"]}}},c=o,u=n(93483),d=(0,u.Z)(c,i,s,!1,null,null,null),m=d.exports},28: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(6903),r=n(96129),o={mixins:[l.Z],components:{LabelWidget:a["default"],ProgressbarWidget:r["default"]},computed:{labelName:function(){return[this.parameters[2]+":"]}}},c=o,u=n(93483),d=(0,u.Z)(c,i,s,!1,null,null,null),m=d.exports},5986: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(6903),r=n(24810),o={mixins:[l.Z],components:{LabelWidget:a["default"],SparklineWidget:r["default"]},computed:{labelName:function(){return[this.parameters[2]+":"]}}},c=o,u=n(93483),d=(0,u.Z)(c,i,s,!1,null,null,null),m=d.exports},69233: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(6903),r=n(25572),o={mixins:[l.Z],components:{LabelWidget:a["default"],ValueWidget:r["default"]},computed:{labelName:function(){return[this.parameters[2]+":"]}}},c=o,u=n(93483),d=(0,u.Z)(c,i,s,!1,null,null,null),m=d.exports},41038: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(6903),r=n(25572),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(93483),m=(0,d.Z)(u,i,s,!1,null,null,null),h=m.exports},80129: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(69233),a=n(97619),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(93483),d=(0,u.Z)(c,i,s,!1,null,null,null),m=d.exports},87435: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(6903)),a=n(25572),r=n(29677),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(93483),m=(0,d.Z)(u,i,s,!1,null,null,null),h=m.exports},32678: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(69233),a=n(57280),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(93483),d=(0,u.Z)(c,i,s,!1,null,null,null),m=d.exports},26626: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(77901),n(93483)),c=(0,o.Z)(r,i,s,!1,null,"6b37bdba",null),u=c.exports},97619: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(34010),n(93483)),d=(0,u.Z)(c,i,s,!1,null,"5eb118dc",null),m=d.exports},93396: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(31225),n(93483)),c=(0,o.Z)(r,i,s,!1,null,"7b6a53f7",null),u=c.exports},29677: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(25234),n(93483)),d=(0,u.Z)(c,i,s,!1,null,"3b476f5b",null),m=d.exports},9701: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(92207),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(93483),d=(0,u.Z)(c,i,s,!1,null,null,null),m=d.exports},78577: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(93483),d=(0,u.Z)(c,i,s,!1,null,null,null),m=d.exports},96129: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(93483),c=(0,o.Z)(r,i,s,!1,null,null,null),u=c.exports},1882: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(93483),c=(0,o.Z)(r,i,s,!1,null,null,null),u=c.exports},22201: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(93483),c=(0,o.Z)(r,i,s,!1,null,null,null),u=c.exports},57280: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(27287),n(93483)),c=(0,o.Z)(r,i,s,!1,null,"66c56776",null),u=c.exports},44449: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(98477),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(93483),u=(0,c.Z)(o,i,s,!1,null,null,null),d=u.exports},1138: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(93483),c=(0,o.Z)(r,i,s,!1,null,null,null),u=c.exports},98213: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(93483),c=(0,o.Z)(r,i,s,!1,null,null,null),u=c.exports},24810: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(92207),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(93483),d=(0,u.Z)(c,i,s,!1,null,null,null),m=d.exports},90871: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(93483),c=(0,o.Z)(r,i,s,!1,null,null,null),u=c.exports},31597: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(93964),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(13134),n(93483)),u=(0,c.Z)(o,i,s,!1,null,"0b5bfdc6",null),d=u.exports},71447: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(93483),c=(0,o.Z)(r,i,s,!1,null,null,null),u=c.exports},43748: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(93483),c=(0,o.Z)(r,i,s,!1,null,null,null),u=c.exports},25572: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(93964),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(93529),n(93483)),d=(0,u.Z)(c,i,s,!1,null,"c4d1ea2c",null),m=d.exports},97749: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(25572),a=n(97619),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(93483),d=(0,u.Z)(c,i,s,!1,null,null,null),m=d.exports},35979: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(25572)),a=n(29677),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(93483),d=(0,u.Z)(c,i,s,!1,null,null,null),m=d.exports},90330: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(25572),a=n(57280),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(93483),d=(0,u.Z)(c,i,s,!1,null,null,null),m=d.exports},17814: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(93483),c=(0,o.Z)(r,i,s,!1,null,null,null),u=c.exports},98477: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(17814),a=n(548),r={mixins:[a.Z],components:{VerticalWidget:l["default"]},props:{contentStyle:{type:String}}},o=r,c=(n(59904),n(93483)),u=(0,c.Z)(o,i,s,!1,null,"8f70d4e2",null),d=u.exports},37475:function(e,t,n){"use strict";n.r(t);var i=n(39601),s=n.n(i),l=n(82609),a=n.n(l),r=a()(s());r.push([e.id,".ace_autocomplete{width:60vw!important}",""]),t["default"]=r},11176:function(e,t,n){"use strict";n.r(t);var i=n(39601),s=n.n(i),l=n(82609),a=n.n(l),r=a()(s());r.push([e.id,"#editor[data-v-16f638fc]{height:50vh;width:75vw;position:relative;font-size:16px}.v-card[data-v-16f638fc]{background-color:var(--v-tertiary-darken2)}.v-textarea[data-v-16f638fc] textarea{padding:5px;background-color:var(--v-tertiary-darken1)!important}",""]),t["default"]=r},44820:function(e,t,n){"use strict";n.r(t);var i=n(39601),s=n.n(i),l=n(82609),a=n.n(l),r=a()(s());r.push([e.id,".v-card[data-v-28e0f181]{background-color:var(--v-tertiary-darken2)}.v-textarea[data-v-28e0f181] textarea{padding:5px;background-color:var(--v-tertiary-darken1)!important}",""]),t["default"]=r},93954:function(e,t,n){"use strict";n.r(t);var i=n(39601),s=n.n(i),l=n(82609),a=n.n(l),r=a()(s());r.push([e.id,".grid[data-v-7087470b]{position:relative}.item[data-v-7087470b]{position:absolute;display:block;margin:5px;z-index:1}.item.muuri-item-dragging[data-v-7087470b]{z-index:3}.item.muuri-item-releasing[data-v-7087470b]{z-index:2}.item.muuri-item-hidden[data-v-7087470b]{z-index:0}.item-content[data-v-7087470b]{position:relative;cursor:pointer;border-radius:6px}",""]),t["default"]=r},43208:function(e,t,n){"use strict";n.r(t);var i=n(39601),s=n.n(i),l=n(82609),a=n.n(l),r=a()(s());r.push([e.id,".label[data-v-1e0f0ab0]{font-weight:700;text-transform:capitalize}[data-v-1e0f0ab0] .v-input--selection-controls{padding:0;margin:0}",""]),t["default"]=r},63061:function(e,t,n){"use strict";n.r(t);var i=n(39601),s=n.n(i),l=n(82609),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},96504:function(e,t,n){"use strict";n.r(t);var i=n(39601),s=n.n(i),l=n(82609),a=n.n(l),r=a()(s());r.push([e.id,"#chart[data-v-cf7e213e]{background-color:var(--v-tertiary-darken2)}#chart[data-v-cf7e213e] .u-select{background-color:hsla(0,0%,100%,.07)}",""]),t["default"]=r},6294:function(e,t,n){"use strict";n.r(t);var i=n(39601),s=n.n(i),l=n(82609),a=n.n(l),r=a()(s());r.push([e.id,".v-list[data-v-2eb37f67] .v-label{margin-left:5px}.v-list-item__icon[data-v-2eb37f67]{margin-right:15px!important}.v-list-item__title[data-v-2eb37f67]{color:#fff}",""]),t["default"]=r},20652:function(e,t,n){"use strict";n.r(t);var i=n(39601),s=n.n(i),l=n(82609),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},55401:function(e,t,n){"use strict";n.r(t);var i=n(39601),s=n.n(i),l=n(82609),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},37829:function(e,t,n){"use strict";n.r(t);var i=n(39601),s=n.n(i),l=n(82609),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},97062:function(e,t,n){"use strict";n.r(t);var i=n(39601),s=n.n(i),l=n(82609),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},91423:function(e,t,n){"use strict";n.r(t);var i=n(39601),s=n.n(i),l=n(82609),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},68375:function(e,t,n){"use strict";n.r(t);var i=n(39601),s=n.n(i),l=n(82609),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},76658:function(e,t,n){"use strict";n.r(t);var i=n(39601),s=n.n(i),l=n(82609),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},64596:function(e,t,n){"use strict";n.r(t);var i=n(39601),s=n.n(i),l=n(82609),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},31023:function(e,t,n){"use strict";n.r(t);var i=n(39601),s=n.n(i),l=n(82609),a=n.n(l),r=a()(s());r.push([e.id,"svg[data-v-17947dc7]{background-color:#fff}",""]),t["default"]=r},98732:function(e,t,n){"use strict";n.r(t);var i=n(39601),s=n.n(i),l=n(82609),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},63535:function(e,t,n){"use strict";n.r(t);var i=n(39601),s=n.n(i),l=n(82609),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},68534:function(e,t,n){"use strict";n.r(t);var i=n(39601),s=n.n(i),l=n(82609),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},72509:function(e,t,n){"use strict";n.r(t);var i=n(39601),s=n.n(i),l=n(82609),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},90985: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__),core_js_modules_es_array_push_js__WEBPACK_IMPORTED_MODULE_9__=__webpack_require__(36728),core_js_modules_es_array_push_js__WEBPACK_IMPORTED_MODULE_9___default=__webpack_require__.n(core_js_modules_es_array_push_js__WEBPACK_IMPORTED_MODULE_9__),_services_openc3_api__WEBPACK_IMPORTED_MODULE_10__=__webpack_require__(48392),_services_api__WEBPACK_IMPORTED_MODULE_11__=__webpack_require__(16129),_Widget__WEBPACK_IMPORTED_MODULE_12__=__webpack_require__(92202);__webpack_exports__["Z"]={mixins:[_Widget__WEBPACK_IMPORTED_MODULE_12__.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_10__.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],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=[];for(var s in n)i.push({key:s,value:n[s],readonly:!1});_services_api__WEBPACK_IMPORTED_MODULE_11__.Z.post("/script-api/scripts/".concat(e,"/run"),{data:{environment:i}}).then((function(e){t&&window.open("/tools/scriptrunner/".concat(e.data),"_blank")}))}}}},40606:function(e,t,n){var i=n(37475);i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[e.id,i,""]]),i.locals&&(e.exports=i.locals);var s=n(3514).Z;s("a9364eb0",i,!0,{sourceMap:!1,shadowMode:!1})},92399:function(e,t,n){var i=n(11176);i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[e.id,i,""]]),i.locals&&(e.exports=i.locals);var s=n(3514).Z;s("adef5298",i,!0,{sourceMap:!1,shadowMode:!1})},65909:function(e,t,n){var i=n(44820);i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[e.id,i,""]]),i.locals&&(e.exports=i.locals);var s=n(3514).Z;s("a3e4ab5e",i,!0,{sourceMap:!1,shadowMode:!1})},31032:function(e,t,n){var i=n(93954);i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[e.id,i,""]]),i.locals&&(e.exports=i.locals);var s=n(3514).Z;s("43e3e91e",i,!0,{sourceMap:!1,shadowMode:!1})},23270:function(e,t,n){var i=n(43208);i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[e.id,i,""]]),i.locals&&(e.exports=i.locals);var s=n(3514).Z;s("c388abcc",i,!0,{sourceMap:!1,shadowMode:!1})},87653:function(e,t,n){var i=n(63061);i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[e.id,i,""]]),i.locals&&(e.exports=i.locals);var s=n(3514).Z;s("6850da48",i,!0,{sourceMap:!1,shadowMode:!1})},96541:function(e,t,n){var i=n(96504);i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[e.id,i,""]]),i.locals&&(e.exports=i.locals);var s=n(3514).Z;s("509af754",i,!0,{sourceMap:!1,shadowMode:!1})},94888:function(e,t,n){var i=n(6294);i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[e.id,i,""]]),i.locals&&(e.exports=i.locals);var s=n(3514).Z;s("706a3f6d",i,!0,{sourceMap:!1,shadowMode:!1})},94776:function(e,t,n){var i=n(20652);i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[e.id,i,""]]),i.locals&&(e.exports=i.locals);var s=n(3514).Z;s("771bf989",i,!0,{sourceMap:!1,shadowMode:!1})},15474:function(e,t,n){var i=n(55401);i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[e.id,i,""]]),i.locals&&(e.exports=i.locals);var s=n(3514).Z;s("765ed5e6",i,!0,{sourceMap:!1,shadowMode:!1})},52192:function(e,t,n){var i=n(37829);i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[e.id,i,""]]),i.locals&&(e.exports=i.locals);var s=n(3514).Z;s("52caaae3",i,!0,{sourceMap:!1,shadowMode:!1})},41018:function(e,t,n){var i=n(97062);i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[e.id,i,""]]),i.locals&&(e.exports=i.locals);var s=n(3514).Z;s("7675efd1",i,!0,{sourceMap:!1,shadowMode:!1})},77901:function(e,t,n){var i=n(91423);i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[e.id,i,""]]),i.locals&&(e.exports=i.locals);var s=n(3514).Z;s("1bf24f71",i,!0,{sourceMap:!1,shadowMode:!1})},31225:function(e,t,n){var i=n(68375);i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[e.id,i,""]]),i.locals&&(e.exports=i.locals);var s=n(3514).Z;s("ffa90ff6",i,!0,{sourceMap:!1,shadowMode:!1})},13134:function(e,t,n){var i=n(76658);i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[e.id,i,""]]),i.locals&&(e.exports=i.locals);var s=n(3514).Z;s("458ef3b0",i,!0,{sourceMap:!1,shadowMode:!1})},59904:function(e,t,n){var i=n(64596);i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[e.id,i,""]]),i.locals&&(e.exports=i.locals);var s=n(3514).Z;s("7089b538",i,!0,{sourceMap:!1,shadowMode:!1})},64550:function(e,t,n){var i=n(31023);i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[e.id,i,""]]),i.locals&&(e.exports=i.locals);var s=n(3514).Z;s("62b2115a",i,!0,{sourceMap:!1,shadowMode:!1})},34010:function(e,t,n){var i=n(98732);i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[e.id,i,""]]),i.locals&&(e.exports=i.locals);var s=n(3514).Z;s("3617cb48",i,!0,{sourceMap:!1,shadowMode:!1})},25234:function(e,t,n){var i=n(63535);i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[e.id,i,""]]),i.locals&&(e.exports=i.locals);var s=n(3514).Z;s("0560f320",i,!0,{sourceMap:!1,shadowMode:!1})},27287:function(e,t,n){var i=n(68534);i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[e.id,i,""]]),i.locals&&(e.exports=i.locals);var s=n(3514).Z;s("575c7863",i,!0,{sourceMap:!1,shadowMode:!1})},93529:function(e,t,n){var i=n(72509);i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[e.id,i,""]]),i.locals&&(e.exports=i.locals);var s=n(3514).Z;s("8dc7b6fc",i,!0,{sourceMap:!1,shadowMode:!1})}}]);
|
2
2
|
//# sourceMappingURL=439.js.map
|