openc3-cosmos-tool-tlmviewer 5.16.2 → 5.17.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,2 @@
1
+ (self["webpackChunk_openc3_cosmos_tool_tlmviewer"]=self["webpackChunk_openc3_cosmos_tool_tlmviewer"]||[]).push([[552],{7448:(e,t,n)=>{var i={"./ArrayWidget.vue":8687,"./BlockWidget.vue":171,"./ButtonWidget.vue":4814,"./CanvasWidget.vue":2430,"./CanvasdotWidget.vue":6614,"./CanvasimageWidget.vue":8239,"./CanvasimagevalueWidget.vue":4653,"./CanvaslabelWidget.vue":6631,"./CanvaslabelvalueWidget.vue":8211,"./CanvaslineWidget.vue":4352,"./CanvaslinevalueWidget.vue":4291,"./CheckbuttonWidget.vue":5733,"./ComboboxWidget.vue":3835,"./DynamicWidget.vue":3634,"./FormatvalueWidget.vue":2656,"./HorizontalWidget.vue":2907,"./HorizontalboxWidget.vue":4812,"./HorizontallineWidget.vue":9646,"./IframeWidget.vue":527,"./ImageviewerWidget.vue":1404,"./LabelWidget.vue":4858,"./LabelledWidget.vue":9830,"./LabelprogressbarWidget.vue":2503,"./LabelsparklineWidget.vue":2194,"./LabelvalueWidget.vue":1921,"./LabelvaluedescWidget.vue":974,"./LabelvaluelimitsbarWidget.vue":2171,"./LabelvaluelimitscolumnWidget.vue":8981,"./LabelvaluerangebarWidget.vue":9124,"./LedWidget.vue":6507,"./LimitsbarWidget.vue":1057,"./LimitscolorWidget.vue":8518,"./LimitscolumnWidget.vue":6992,"./LinegraphWidget.vue":2653,"./MatrixbycolumnsWidget.vue":5043,"./ProgressbarWidget.vue":6825,"./RadiobuttonWidget.vue":5993,"./RadiogroupWidget.vue":5758,"./RangebarWidget.vue":5736,"./RollupWidget.vue":9517,"./ScrollwindowWidget.vue":9769,"./SectionheaderWidget.vue":2959,"./SpacerWidget.vue":6637,"./SparklineWidget.vue":6115,"./TabbookWidget.vue":2926,"./TextboxWidget.vue":2128,"./TextfieldWidget.vue":7540,"./TitleWidget.vue":6525,"./ValueWidget.vue":4348,"./ValuelimitsbarWidget.vue":440,"./ValuelimitscolumnWidget.vue":6931,"./ValuerangebarWidget.vue":5918,"./VerticalWidget.vue":1629,"./VerticalboxWidget.vue":5757};function s(e){var t=a(e);return n(t)}function a(e){if(!n.o(i,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return i[e]}s.keys=function(){return Object.keys(i)},s.resolve=a,e.exports=s,s.id=7448},1033:(e,t,n)=>{"use strict";n.d(t,{A:()=>l});n(7107),n(9375);var i=n(4554),s=n(6444),a=n(9729);const l={mixins:[a.A],data:function(){return{id:Math.floor(1e11*Math.random()),state:"start",items:[{targetName:this.parameters[0],packetName:this.parameters[1],itemName:this.parameters[2],valueType:this.parameters[3]||"CONVERTED",reduced:this.parameters[4]||"DECOM",reducedType:this.parameters[5]||null}],startTime:null,secondsGraphed:3600,pointsSaved:3600,pointsGraphed:3600,size:{height:300,width:400}}},created:function(){this.settings.forEach((e=>{switch(e[0]){case"ITEM":this.items.push({targetName:e[1],packetName:e[2],itemName:e[3],valueType:e[4]||"CONVERTED",reduced:e[5]||"DECOM",reducedType:e[6]||null});case"STARTTIME":let t=(0,i.qg)(e[1],"yyyy/MM/dd HH:mm:ss",new Date);this.startTime=1e6*t.getTime();break;case"HISTORY":let n=parseInt(e[1].slice(0,e[1].length-1)),a=null,l=1;switch(e[1][e[1].length-1]){case"d":a="days",l=86400;break;case"h":a="hours",l=3600;break;case"m":a="minutes",l=60;break;case"s":a="seconds";break;default:throw new Error(`Unknown time suffix: ${e[1]}!`)}let r={};r[a]=n,this.startTime=1e6*(0,s.j)(new Date,r).getTime(),n*l>this.secondsGraphed&&(this.secondsGraphed=n*l),n*l>this.pointsSaved&&(this.pointsSaved=n*l),n*l>this.pointsGraphed&&(this.pointsGraphed=n*l);break;case"SECONDSGRAPHED":this.secondsGraphed=parseInt(e[1]);break;case"POINTSSAVED":this.pointsSaved=parseInt(e[1]);break;case"POINTSGRAPHED":this.pointsGraphed=parseInt(e[1]);break;case"SIZE":this.size.width=parseInt(e[1]),this.size.height=parseInt(e[2]);break}})),this.screen&&this.items.map((e=>this.screen.addItem(`${e.targetName}__${e.packetName}__${e.itemName}__${e.valueType}`)))},destroyed(){this.screen&&this.items.map((e=>this.screen.deleteItem(`${e.targetName}__${e.packetName}__${e.itemName}__${e.valueType}`)))}}},7163:(e,t,n)=>{"use strict";n.d(t,{A:()=>s});var i=n(2795);const s={props:{target:{type:String,require:!0}},methods:{getPresignedUrl:async function(e){var t="targets_modified";await i.A.get(`/openc3-api/storage/exists/${encodeURIComponent(`${window.openc3Scope}/${t}/${this.target}/public/${e}`)}?bucket=OPENC3_CONFIG_BUCKET`,{headers:{Accept:"application/json","Ignore-Errors":"404"}}).catch((e=>{t="targets"}));var n=await i.A.get(`/openc3-api/storage/download/${encodeURIComponent(`${window.openc3Scope}/${t}/${this.target}/public/${e}`)}?bucket=OPENC3_CONFIG_BUCKET`);return n.data.url}}}},9843:(e,t,n)=>{"use strict";n.d(t,{A:()=>s});var i=n(9729);const s={mixins:[i.A],props:{widgets:{type:Array,default:()=>[]}}}},2967:(e,t,n)=>{"use strict";n.d(t,{A:()=>s});n(4293);var i=n(9729);n(9471);const s={mixins:[i.A],props:{value:{default:null},limitsState:{type:String,default:null},counter:{default:null},formatString:null},data(){return{curValue:null,prevValue:null,grayLevel:80,grayRate:5,valueId:null,arrayIndex:null,viewDetails:!1,contextMenuShown:!1,x:0,y:0,contextMenuOptions:[{title:"Details",action:()=>{this.contextMenuShown=!1,this.viewDetails=!0}},{title:"Graph",action:()=>{window.open("/tools/tlmgrapher/"+this.parameters[0]+"/"+this.parameters[1]+"/"+this.parameters[2],"_blank")}}]}},watch:{_counter:function(e,t){this.curValue!==this.prevValue?this.grayLevel=80:(this.grayLevel-=this.grayRate,this.grayLevel<30&&(this.grayLevel=30)),this.prevValue=this.curValue}},computed:{_value:function(){return this.curValue=this.value,null===this.curValue&&(this.screen?this.screen.screenValues[this.valueId]&&(null!==this.arrayIndex&&this.screen.screenValues[this.valueId][0]?this.curValue=this.screen.screenValues[this.valueId][0][this.arrayIndex]:this.curValue=this.screen.screenValues[this.valueId][0]):this.curValue=null),this.curValue=this.formatValue(this.curValue),this.curValue},_limitsState:function(){let e=this.limitsState;return null===e&&(this.screen?this.screen.screenValues[this.valueId]&&(e=this.screen.screenValues[this.valueId][1]):e=null),e},_counter:function(){let e=this.counter;return null===e&&(this.screen?this.screen.screenValues[this.valueId]&&(e=this.screen.screenValues[this.valueId][2]):e=null),e},valueClass:function(){return"value shrink pa-1 openc3-"+this.limitsColor},astroIcon(){switch(this.limitsColor){case"green":return"$vuetify.icons.astro-status-normal";case"yellow":return"$vuetify.icons.astro-status-caution";case"red":return"$vuetify.icons.astro-status-critical";case"blue":return"$vuetify.icons.astro-status-standby";default:return null}},limitsColor(){let e=this._limitsState;if(null!=e)switch(e){case"GREEN":case"GREEN_HIGH":case"GREEN_LOW":return"green";case"YELLOW":case"YELLOW_HIGH":case"YELLOW_LOW":return"yellow";case"RED":case"RED_HIGH":case"RED_LOW":return"red";case"BLUE":return"blue";case"STALE":return"purple";default:return"white"}return""},limitsLetter(){let e=this._limitsState;if(null!=e){let t=e.charAt(0);return e.endsWith("_LOW")&&(t=t.toLowerCase()),t}return""}},created(){if(null===this.value||null===this.limitsState){if(this.parameters[2].includes("[["))this.parameters[2]=this.parameters[2].replace("[[","[").replace("]]","]");else if(this.parameters[2].includes("[")){let e=this.parameters[2].match(/\[(\d+)\]/);this.arrayIndex=parseInt(e[1]),this.parameters[2]=this.parameters[2].replace(e[0],"")}this.valueId=`${this.parameters[0]}__${this.parameters[1]}__${this.parameters[2]}__${this.getType()}`,this.screen&&this.screen.addItem(this.valueId)}},destroyed(){null!==this.value&&null!==this.limitsState||this.screen&&this.screen.deleteItem(this.valueId)},methods:{getType(){var e="WITH_UNITS";return this.parameters[3]&&(e=this.parameters[3]),e},formatValue(e){if(e&&"String"===e["json_class"]&&void 0!==e["raw"]){let t=Array.from(e["raw"].slice(0,32),(function(e){return("0"+(255&e).toString(16)).slice(-2)})).join(" ").toUpperCase();return e["raw"].length>32&&(t+="..."),t}if("Array"===Object.prototype.toString.call(e).slice(8,-1)){let t="[";for(let n=0;n<e.length;n++)"String"===Object.prototype.toString.call(e[n]).slice(8,-1)?t+='"'+e[n]+'"':t+=e[n],n!=e.length-1&&(t+=", ");return t+="]",t}return"Object"===Object.prototype.toString.call(e).slice(8,-1)?"":this.formatString&&e?sprintf(this.formatString,e):""+e},showContextMenu(e){e.preventDefault(),this.contextMenuShown=!1,this.x=e.clientX,this.y=e.clientY,this.$nextTick((()=>{this.contextMenuShown=!0}))}}}},9729:(e,t,n)=>{"use strict";n.d(t,{A:()=>s});n(9375),n(7534);var i=n(3069);const s={props:{widgetIndex:{type:Number,default:null},parameters:{type:Array,default:()=>[]},settings:{type:Array,default:()=>[]},line:{type:String,default:""},lineNumber:{type:Number,default:0}},data(){return{screen:null}},computed:{computedStyle(){let e={};return this.settings.forEach((t=>{const n=parseInt(t[0]);if(null!==this.widgetIndex){if(this.widgetIndex!==n)return;t=t.slice(1)}this.applySetting(e,t)})),void 0===e["width"]&&(e["flex"]="0 10 100%"),e}},created(){this.settings.forEach((e=>{"__SCREEN__"===e[0]&&(this.screen=e[1])}))},methods:{applySetting(e,t){switch(t[0]){case"TEXTALIGN":e["text-align"]=t[1].toLowerCase()+" !important",e["--text-align"]=t[1].toLowerCase();break;case"PADDING":isNaN(Number(t[1]))||(t[1]+="px"),e["padding"]=t[1]+" !important";break;case"MARGIN":isNaN(Number(t[1]))||(t[1]+="px"),e["margin"]=t[1]+" !important";break;case"BACKCOLOR":e["background-color"]=this.getColor(t.slice(1))+" !important";break;case"TEXTCOLOR":e["color"]=this.getColor(t.slice(1))+" !important";break;case"BORDERCOLOR":e["border-width"]="1px!important",e["border-style"]="solid!important",e["border-color"]=this.getColor(t.slice(1))+" !important";break;case"WIDTH":isNaN(Number(t[1]))||(t[1]+="px"),e["width"]=t[1]+" !important";break;case"HEIGHT":isNaN(Number(t[1]))||(t[1]+="px"),e["height"]=t[1]+" !important";break;case"RAW":e[t[1].toLowerCase()]=t[2]+" !important";break}},verifyNumParams(e,t,n,s=""){let a={line:this.line,lineNumber:this.lineNumber,keyword:e,parameters:this.parameters};for(var l=1;l<=t;l++)if(void 0===this.parameters[l-1])throw new i.o(a,`Not enough parameters for ${e}.`,s,"https://docs.openc3.com/docs/configuration");if(null!==n&&this.parameters.length>n)throw new i.o(a,`Too many parameters for ${e}.`,s,"https://docs.openc3.com/docs/configuration")},setWidth(e,t="px",n="120"){let i=null;if(i=null!==this.widgetIndex?this.settings.find((e=>parseInt(e[0])===this.widgetIndex&&"WIDTH"===e[1])):this.settings.find((e=>"WIDTH"===e[0])),i)return i["WIDTH"];if(e){let n=["WIDTH",`${e}${t}`];return null!==this.widgetIndex&&n.unshift(this.widgetIndex),this.settings.push(n),parseInt(e)}{let e=["WIDTH",`${n}${t}`];return null!==this.widgetIndex&&e.unshift(this.widgetIndex),this.settings.push(e),parseInt(n)}},setHeight(e,t="px",n="20"){let i=null;if(i=null!==this.widgetIndex?this.settings.find((e=>parseInt(e[0])===this.widgetIndex&&"HEIGHT"===e[1])):this.settings.find((e=>"HEIGHT"===e[0])),i)return i["HEIGHT"];if(e){let n=["HEIGHT",`${e}${t}`];return null!==this.widgetIndex&&n.unshift(this.widgetIndex),this.settings.push(n),parseInt(e)}{let e=["HEIGHT",`${n}${t}`];return null!==this.widgetIndex&&e.unshift(this.widgetIndex),this.settings.push(e),parseInt(n)}},getColor(e){switch(e.length){case 1:return e[0].toLowerCase();case 3:return`rgb(${e[0]},${e[1]},${e[2]})`}}}}},2795:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});var i=n(2673);const s=async function(e,t,{data:n,params:s={},headers:a,noAuth:l=!1,noScope:r=!1,onUploadProgress:o={}}={}){if(!l){try{let e=await OpenC3Auth.updateToken(OpenC3Auth.defaultMinValidity);e&&OpenC3Auth.setTokens()}catch(c){OpenC3Auth.login()}a["Authorization"]=localStorage.openc3Token}return r||s["scope"]||(s["scope"]=window.openc3Scope),(0,i.A)({method:e,url:t,data:n,params:s,headers:a,onUploadProgress:o})},a={Accept:"application/json"},l={...a,"Content-Type":"application/json"},r={get:function(e,{params:t,headers:n=a,noScope:i,noAuth:l,onUploadProgress:r}={}){return s("get",e,{params:t,headers:n,noScope:i,noAuth:l,onUploadProgress:r})},put:function(e,{data:t,params:n,headers:i=l,noScope:a,noAuth:r,onUploadProgress:o}={}){return s("put",e,{data:t,params:n,headers:i,noScope:a,noAuth:r,onUploadProgress:o})},post:function(e,{data:t,params:n,headers:i=l,noScope:a,noAuth:r,onUploadProgress:o}={}){return s("post",e,{data:t,params:n,headers:i,noScope:a,noAuth:r,onUploadProgress:o})},delete:function(e,{params:t,headers:n=a,noScope:i,noAuth:l,onUploadProgress:r}={}){return s("delete",e,{params:t,headers:n,noScope:i,noAuth:l,onUploadProgress:r})}}},2673:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});var i=n(3816),s=n(1649);const a=new s["default"],l=i.A.create({baseURL:location.origin,timeout:6e4,params:{}});l.interceptors.response.use((e=>e),(e=>{if(e.response){var t,n,i,s,l;if(401===e.response.status&&OpenC3Auth.updateToken(OpenC3Auth.defaultMinValidity,!0).then((function(e){e&&OpenC3Auth.setTokens()})),e.response.config.headers["Ignore-Errors"]&&e.response.config.headers["Ignore-Errors"].includes(e.response.status.toString()))return Promise.reject(e);let o=`HTTP ${e.response.status} - `;if(null!==(t=e.response)&&void 0!==t&&t.statusText&&(o+=`${e.response.statusText} `),null!==(n=e.response)&&void 0!==n&&null!==(n=n.config)&&void 0!==n&&n.data&&(o+=`${e.response.config.data} `),null!==(i=e.response)&&void 0!==i&&null!==(i=i.data)&&void 0!==i&&i.message)o+=`${e.response.data.message}`;else if(null!==(s=e.response)&&void 0!==s&&null!==(s=s.data)&&void 0!==s&&s.exception)o+=`${e.response.data.exception}`;else if(null!==(l=e.response)&&void 0!==l&&null!==(l=l.data)&&void 0!==l&&null!==(l=l.error)&&void 0!==l&&l.message)e.response.data.error.class&&(o+=`${e.response.data.error.class} `),o+=`${e.response.data.error.message}`;else{var r;o+=`${null===(r=e.response)||void 0===r?void 0:r.data}`}throw a.$notify&&a.$notify.serious({title:"Network error",body:o}),e}throw e}));const r=l},2702:(e,t,n)=>{"use strict";n.d(t,{A:()=>s});var i=n(7752);i.D$.staleThreshold=10;class s{constructor(e="/openc3-api/cable"){this._cable=null,this._url=e}disconnect(){this._cable&&this._cable.disconnect()}createSubscription(e,t,n={},s={}){return OpenC3Auth.updateToken(OpenC3Auth.defaultMinValidity).then((t=>{if(t&&OpenC3Auth.setTokens(),null==this._cable){let e=this._url+"?scope="+encodeURIComponent(window.openc3Scope)+"&authorization="+encodeURIComponent(localStorage.openc3Token);this._cable=i.Be(e)}return this._cable.subscriptions.create({channel:e,...s},n)}))}recordPing(){this._cable.connection.monitor.recordPing()}}},3069:(e,t,n)=>{"use strict";n.d(t,{R:()=>a,o:()=>s});var i=n(814);n(9375),n(4293);class s{constructor(e,t,n="",i=""){this.keyword=e.keyword,this.parameters=e.parameters,this.filename=e.filename,this.line=e.line,this.lineNumber=e.lineNumber,this.message=t,this.usage=n,this.url=i}}class a{constructor(){(0,i.A)(this,"keyword",null),(0,i.A)(this,"parameters",[]),(0,i.A)(this,"filename",""),(0,i.A)(this,"line",""),(0,i.A)(this,"lineNumber",0),(0,i.A)(this,"url","https://docs.openc3.com/docs/configuration")}verify_num_parameters(e,t,n=""){for(let i=1;i<=e;i++)if(void 0===this.parameters[i-1])throw new s(this,`Not enough parameters for ${this.keyword}.`,n,this.url);if(t&&void 0!==this.parameters[t])throw new s(this,`Too many parameters for ${this.keyword}.`,n,this.url)}remove_quotes(e){if(e.length<2)return e;let t=e.charAt(0);if('"'!==t&&"'"!==t)return e;let n=e.charAt(e.length-1);return t!==n?e:e.substring(1,e.length-1)}scan_string(e,t){if(!t.global)throw"rx must have 'global' flag set";let n=[];return e.replace(t,(function(e){return n.push(e),e})),n}parse_string(e,t,n,i,s){let a=!1;this.line="",this.keyword=null,this.parameters=[],this.filename=t;let l=e.split("\n"),r=l.length;for(let o=0;o<r;o++){this.lineNumber=o+1;let e=l[o].trim();if(0===e.length)continue;if(!0===a){if("#"===e[0])continue;e=e.substring(1,e.length)}let t=e.charAt(e.length-1),r=!1;switch(t){case"+":r=!0;case"\\":let t=e.substring(0,e.length-1).trim();this.line+=t.substring(0,t.length-1),r&&(this.line+="\n"),a=!0;continue;case"&":this.line+=e.substring(0,e.length-1);continue;default:this.line+=e}a=!1;let c=/("([^\\"]|\\.)*")|('([^\\']|\\.)*')|\S+/g,d=this.scan_string(this.line,c),u="";if(d.length>0&&(u+=d[0]),0===u.length||"#"===u.charAt(0)?this.keyword=null:this.keyword=u.toUpperCase(),this.parameters=[],null===this.keyword){n&&s(this.keyword,this.parameters,this.line,this.lineNumber),this.line="";continue}let m=d.length;if(m>1)for(let n=1;n<m;n++){let e=d[n];if(e.length>0&&"#"===e.charAt(0))break;i?this.parameters.push(this.remove_quotes(e)):this.parameters.push(e)}s(this.keyword,this.parameters,this.line,this.lineNumber),this.line=""}}}},4364:(e,t,n)=>{"use strict";n.d(t,{x:()=>a});var i=n(814),s=(n(7107),n(2482),n(7067),n(4147),n(2682),n(785),n(8357),n(6196),n(821),n(6554),n(8472),n(7404),n(5803),n(3912),n(7010),n(2673));class a{constructor(){(0,i.A)(this,"id",1)}async exec(e,t,n={},i={},a=6e4){try{let e=await OpenC3Auth.updateToken(OpenC3Auth.defaultMinValidity);e&&OpenC3Auth.setTokens()}catch(r){OpenC3Auth.login()}this.id=this.id+1;try{n["scope"]=window.openc3Scope;const l=await s.A.post("/openc3-api/api",{jsonrpc:"2.0",method:e,params:t,id:this.id,keyword_params:n},{headers:{Authorization:localStorage.openc3Token,"Content-Type":"application/json-rpc",...i},timeout:a});return l.data.result}catch(r){var l=new Error;throw r.response?(l.name=r.response.data.error.data.class,l.message=r.response.data.error.data.message):r.request?(l.name="Request error",l.message="Request error, no response received"):l.name="Unknown error",l}}decode_openc3_type(e){if(null!==e&&"object"===typeof e&&"Float"==e.json_class&&e.raw){if("NaN"==e.raw)return NaN;if("Infinity"==e.raw)return 1/0;if("-Infinity"==e.raw)return-1/0}return null}encode_openc3_type(e){return Number.isNaN(e)?{json_class:"Float",raw:"NaN"}:e==Number.POSITIVE_INFINITY?{json_class:"Float",raw:"Infinity"}:e==Number.NEGATIVE_INFINITY?{json_class:"Float",raw:"-Infinity"}:null}ensure_offline_access(){this.offline_access_needed().then((e=>{e&&(localStorage.openc3OfflineToken?this.set_offline_access(localStorage.openc3OfflineToken).then((()=>{delete localStorage.openc3OfflineToken})):OpenC3Auth.getOfflineAccess())}))}offline_access_needed(){return this.exec("offline_access_needed",[])}set_offline_access(e){return this.exec("set_offline_access",[e])}get_all_interface_info(){return this.exec("get_all_interface_info",[])}map_target_to_interface(e,t){return this.exec("map_target_to_interface",[e,t])}connect_interface(e,...t){return t.length>0?this.exec("connect_interface",[e,...t]):this.exec("connect_interface",[e])}disconnect_interface(e){return this.exec("disconnect_interface",[e])}interface_cmd(e,t,...n){return this.exec("interface_cmd",[e,t,...n])}get_all_router_info(){return this.exec("get_all_router_info",[])}connect_router(e){return this.exec("connect_router",[e])}disconnect_router(e){return this.exec("disconnect_router",[e])}get_target_interfaces(){return this.exec("get_target_interfaces",[])}get_all_target_info(){return this.exec("get_all_target_info",[])}get_tlm_cnts(e){return this.exec("get_tlm_cnts",[e])}get_item(e,t,n){return this.exec("get_item",[e,t,n])}get_param(e,t,n){return this.exec("get_param",[e,t,n])}get_parameter(e,t,n){return this.exec("get_parameter",[e,t,n])}get_limits_sets(){return this.exec("get_limits_sets",[])}get_limits_set(){return this.exec("get_limits_set",[])}set_limits_set(e){return this.exec("set_limits_set",[e])}get_target(e){return this.exec("get_target",[e])}get_target_names(){return this.exec("get_target_names",[])}get_target_list(){return this.exec("get_target_list",[])}get_tlm(e,t){return this.exec("get_tlm",[e,t])}get_telemetry(e,t){return this.exec("get_telemetry",[e,t])}get_all_tlm(e){return this.exec("get_all_tlm",[e])}get_all_telemetry(e){return this.exec("get_all_telemetry",[e])}get_all_tlm_names(e){return this.exec("get_all_tlm_names",[e])}get_all_telemetry_names(e){return this.exec("get_all_telemetry_names",[e])}async get_tlm_packet(e,t,n,i=30){const s=await this.exec("get_tlm_packet",[e,t],{type:n,stale_time:i});if(null!=s)for(var a=s.length,l=null,r=0;r<a;r++)l=this.decode_openc3_type(s[r][1]),null!==l&&(s[r][1]=l);return s}get_packet_derived_items(e,t){return this.exec("get_packet_derived_items",[e,t])}get_tlm_buffer(e,t){return this.exec("get_tlm_buffer",[e,t])}async get_tlm_values(e,t=30,n=null){let i={stale_time:t};null!==n&&(i["cache_timeout"]=n);const s=await this.exec("get_tlm_values",[e],i,{},1e4);for(var a=s[0].length,l=null,r=0;r<a;r++)l=this.decode_openc3_type(s[0][r]),null!==l&&(s[0][r]=l);return s}get_limits(e,t,n){return this.exec("get_limits",[e,t,n])}async tlm(e,t,n,i="CONVERTED"){let s=null;if(void 0===t)s=await this.exec("tlm",[e]);else if(void 0===n){if(!["RAW","CONVERTED","FORMATTED","WITH_UNITS"].includes(t)){var a=new Error;throw a.name="TypeError",a.message=`Invalid data type ${t}. Valid options are RAW, CONVERTED, FORMATTED, and WITH_UNITS.`,a}s=await this.exec("tlm",[e],{type:t})}else s=await this.exec("tlm",[e,t,n],{type:i});var l=this.decode_openc3_type(s);return null!==l&&(s=l),s}async inject_tlm(e,t,n=null,i="CONVERTED"){data=await this.exec("inject_tlm",[e,t,n],{type:i})}set_tlm(e,t,n,i){return this.exec("set_tlm",[e,t,n],{type:i})}override_tlm(e,t,n,i){return this.exec("override_tlm",[e,t,n],{type:i})}get_overrides(){return this.exec("get_overrides")}normalize_tlm(e,t,n,i){return this.exec("normalize_tlm",[e,t,n],{type:i})}get_all_cmds(e){return this.exec("get_all_cmds",[e])}get_all_commands(e){return this.exec("get_all_commands",[e])}get_all_cmd_names(e){return this.exec("get_all_cmd_names",[e])}get_all_command_names(e){return this.exec("get_all_command_names",[e])}get_cmd(e,t){return this.exec("get_cmd",[e,t])}get_command(e,t){return this.exec("get_command",[e,t])}get_cmd_cnts(e){return this.exec("get_cmd_cnts",[e])}get_cmd_value(e,t,n,i="CONVERTED"){return this.exec("get_cmd_value",[e,t,n,i])}get_cmd_buffer(e,t){return this.exec("get_cmd_buffer",[e,t])}_cmd(e,t,n,i,s){var a=null;for(var l in i)Object.prototype.hasOwnProperty.call(i,l)&&(a=this.encode_openc3_type(i[l]),null!==a&&(i[l]=a));return this.exec(e,[t,n,i],{},s)}get_cmd_hazardous(e,t,n){return void 0===t?this.exec("get_cmd_hazardous",e):this._cmd("get_cmd_hazardous",e,t,n)}cmd(e,t,n,i={}){return void 0===t?this.exec("cmd",e,{},i):this._cmd("cmd",e,t,n,i)}cmd_no_range_check(e,t,n){return void 0===t?this.exec("cmd_no_range_check",e):this._cmd("cmd_no_range_check",e,t,n)}cmd_raw(e,t,n){return void 0===t?this.exec("cmd_raw",e):this._cmd("cmd_raw",e,t,n)}cmd_raw_no_range_check(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)}cmd_no_hazardous_check(e,t,n){return void 0===t?this.exec("cmd_no_hazardous_check",e):this._cmd("cmd_no_hazardous_check",e,t,n)}cmd_no_checks(e,t,n){return void 0===t?this.exec("cmd_no_checks",e):this._cmd("cmd_no_checks",e,t,n)}cmd_raw_no_hazardous_check(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)}cmd_raw_no_checks(e,t,n){return void 0===t?this.exec("cmd_raw_no_checks",e):this._cmd("cmd_raw_no_checks",e,t,n)}build_cmd(e,t,n){return void 0===t?this.exec("build_cmd",e):this._cmd("build_cmd",e,t,n)}build_command(e,t,n){return void 0===t?this.exec("build_command",e):this._cmd("build_command",e,t,n)}get_interface_names(){return this.exec("get_interface_names",[])}send_raw(e,t){return this.exec("send_raw",[e,t])}list_configs(e){return this.exec("list_configs",[e])}load_config(e,t){return this.exec("load_config",[e,t])}save_config(e,t,n){return this.exec("save_config",[e,t,n])}delete_config(e,t){return this.exec("delete_config",[e,t])}enable_limits(e,t,n){return this.exec("enable_limits",[e,t,n])}disable_limits(e,t,n){return this.exec("disable_limits",[e,t,n])}get_out_of_limits(){return this.exec("get_out_of_limits",[])}get_overall_limits_state(e){return this.exec("get_overall_limits_state",[e])}list_settings(){return this.exec("list_settings",[])}get_all_settings(){return this.exec("get_all_settings",[])}get_setting(e){return this.exec("get_setting",[e])}get_settings(e){return this.exec("get_settings",e)}set_setting(e,t){return this.exec("set_setting",[e,t])}save_setting(e,t){return this.exec("save_setting",[e,t])}get_metrics(){return this.exec("get_metrics",[])}async hashString(e){if(window.isSecureContext){const t=(new TextEncoder).encode(e),n=await crypto.subtle.digest("SHA-256",t),i=new Uint8Array(n);return Array.from(i).map((e=>e.toString(16).padStart(2,"0"))).join("")}}}},3552:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>de});n(7010);function i(){var e="/openc3/plugins/packages/openc3-cosmos-tool-tlmviewer/src/tools/TlmViewer/TlmViewer.vue",t="a09c9063833daf5a210dcde10a3fb20f9dde2ee8",n=new Function("return this")(),s="__coverage__",a={path:"/openc3/plugins/packages/openc3-cosmos-tool-tlmviewer/src/tools/TlmViewer/TlmViewer.vue",statementMap:{0:{start:{line:1,column:13},end:{line:2,column:1}},1:{start:{line:1,column:39},end:{line:1,column:43}},2:{start:{line:1,column:47},end:{line:1,column:59}},3:{start:{line:1,column:60},end:{line:1,column:3338}},4:{start:{line:1,column:260},end:{line:1,column:273}},5:{start:{line:1,column:766},end:{line:1,column:788}},6:{start:{line:1,column:1111},end:{line:1,column:1133}},7:{start:{line:1,column:1300},end:{line:1,column:1354}},8:{start:{line:1,column:1502},end:{line:1,column:1535}},9:{start:{line:1,column:1737},end:{line:1,column:2582}},10:{start:{line:1,column:2139},end:{line:1,column:2169}},11:{start:{line:1,column:2235},end:{line:1,column:2260}},12:{start:{line:1,column:2294},end:{line:1,column:2322}},13:{start:{line:1,column:2356},end:{line:1,column:2394}},14:{start:{line:1,column:2430},end:{line:1,column:2470}},15:{start:{line:1,column:2503},end:{line:1,column:2540}},16:{start:{line:1,column:2768},end:{line:1,column:2786}},17:{start:{line:1,column:3004},end:{line:1,column:3022}},18:{start:{line:1,column:3269},end:{line:1,column:3292}},19:{start:{line:3,column:22},end:{line:3,column:24}}},fnMap:{0:{name:"render",decl:{start:{line:1,column:22},end:{line:1,column:28}},loc:{start:{line:1,column:30},end:{line:2,column:1}},line:1},1:{name:"(anonymous_1)",decl:{start:{line:1,column:244},end:{line:1,column:245}},loc:{start:{line:1,column:259},end:{line:1,column:274}},line:1},2:{name:"(anonymous_2)",decl:{start:{line:1,column:750},end:{line:1,column:751}},loc:{start:{line:1,column:765},end:{line:1,column:789}},line:1},3:{name:"(anonymous_3)",decl:{start:{line:1,column:1095},end:{line:1,column:1096}},loc:{start:{line:1,column:1110},end:{line:1,column:1134}},line:1},4:{name:"(anonymous_4)",decl:{start:{line:1,column:1294},end:{line:1,column:1295}},loc:{start:{line:1,column:1300},end:{line:1,column:1354}},line:1},5:{name:"(anonymous_5)",decl:{start:{line:1,column:1496},end:{line:1,column:1497}},loc:{start:{line:1,column:1502},end:{line:1,column:1535}},line:1},6:{name:"(anonymous_6)",decl:{start:{line:1,column:1723},end:{line:1,column:1724}},loc:{start:{line:1,column:1736},end:{line:1,column:2583}},line:1},7:{name:"(anonymous_7)",decl:{start:{line:1,column:2122},end:{line:1,column:2123}},loc:{start:{line:1,column:2138},end:{line:1,column:2170}},line:1},8:{name:"(anonymous_8)",decl:{start:{line:1,column:2223},end:{line:1,column:2224}},loc:{start:{line:1,column:2235},end:{line:1,column:2260}},line:1},9:{name:"(anonymous_9)",decl:{start:{line:1,column:2277},end:{line:1,column:2278}},loc:{start:{line:1,column:2293},end:{line:1,column:2323}},line:1},10:{name:"(anonymous_10)",decl:{start:{line:1,column:2339},end:{line:1,column:2340}},loc:{start:{line:1,column:2355},end:{line:1,column:2395}},line:1},11:{name:"(anonymous_11)",decl:{start:{line:1,column:2413},end:{line:1,column:2414}},loc:{start:{line:1,column:2429},end:{line:1,column:2471}},line:1},12:{name:"(anonymous_12)",decl:{start:{line:1,column:2486},end:{line:1,column:2487}},loc:{start:{line:1,column:2502},end:{line:1,column:2541}},line:1},13:{name:"(anonymous_13)",decl:{start:{line:1,column:2752},end:{line:1,column:2753}},loc:{start:{line:1,column:2767},end:{line:1,column:2787}},line:1},14:{name:"(anonymous_14)",decl:{start:{line:1,column:2988},end:{line:1,column:2989}},loc:{start:{line:1,column:3003},end:{line:1,column:3023}},line:1},15:{name:"(anonymous_15)",decl:{start:{line:1,column:3253},end:{line:1,column:3254}},loc:{start:{line:1,column:3268},end:{line:1,column:3293}},line:1}},branchMap:{0:{loc:{start:{line:1,column:2600},end:{line:1,column:2823}},type:"cond-expr",locations:[{start:{line:1,column:2617},end:{line:1,column:2814}},{start:{line:1,column:2815},end:{line:1,column:2823}}],line:1},1:{loc:{start:{line:1,column:2836},end:{line:1,column:3059}},type:"cond-expr",locations:[{start:{line:1,column:2853},end:{line:1,column:3050}},{start:{line:1,column:3051},end:{line:1,column:3059}}],line:1},2:{loc:{start:{line:1,column:3072},end:{line:1,column:3334}},type:"cond-expr",locations:[{start:{line:1,column:3094},end:{line:1,column:3325}},{start:{line:1,column:3326},end:{line:1,column:3334}}],line:1}},s:{0:0,1:0,2:0,3:0,4:0,5:0,6:0,7:0,8:0,9:0,10:0,11:0,12:0,13:0,14:0,15:0,16:0,17:0,18:0,19:0},f:{0:0,1:0,2:0,3:0,4:0,5:0,6:0,7:0,8:0,9:0,10:0,11:0,12:0,13:0,14:0,15:0},b:{0:[0,0],1:[0,0],2:[0,0]},_coverageSchema:"1a1c01bbd47fc00a2c39e90264f33305004495a9",hash:"a09c9063833daf5a210dcde10a3fb20f9dde2ee8"},l=n[s]||(n[s]={});l[e]&&l[e].hash===t||(l[e]=a);var r=l[e];return i=function(){return r},r}i(),i().s[0]++;var s=function(){i().f[0]++;var e=(i().s[1]++,this),t=(i().s[2]++,e._self._c);return i().s[3]++,t("div",[t("top-bar",{attrs:{title:e.title,menus:e.menus}}),e._v(" "),t("v-expansion-panels",{staticStyle:{"margin-bottom":"5px"},model:{value:e.panel,callback:function(t){i().f[1]++,i().s[4]++,e.panel=t},expression:"panel"}},[t("v-expansion-panel",[t("v-expansion-panel-header"),e._v(" "),t("v-expansion-panel-content",[t("v-container",[t("v-row",{staticClass:"pt-3"},[t("v-select",{staticClass:"pa-0 mr-4",staticStyle:{"max-width":"300px"},attrs:{dense:"","hide-details":"",outlined:"",label:"Select Target",items:Object.keys(e.screens).sort(),"item-text":"label","item-value":"value"},on:{change:e.targetSelect},model:{value:e.selectedTarget,callback:function(t){i().f[2]++,i().s[5]++,e.selectedTarget=t},expression:"selectedTarget"}}),e._v(" "),t("v-select",{staticClass:"pa-0 mr-4",staticStyle:{"max-width":"300px"},attrs:{dense:"","hide-details":"",outlined:"",label:"Select Screen",items:e.screens[e.selectedTarget]},on:{change:e.screenSelect},model:{value:e.selectedScreen,callback:function(t){i().f[3]++,i().s[6]++,e.selectedScreen=t},expression:"selectedScreen"}}),e._v(" "),t("v-btn",{staticClass:"primary mr-2",attrs:{disabled:!e.selectedScreen,"data-test":"show-screen"},on:{click:()=>(i().f[4]++,i().s[7]++,e.showScreen(e.selectedTarget,e.selectedScreen))}},[e._v("\n Show\n ")]),e._v(" "),t("v-btn",{staticClass:"primary",attrs:{"data-test":"new-screen"},on:{click:()=>(i().f[5]++,i().s[8]++,e.newScreen(e.selectedTarget))}},[e._v("\n New Screen\n "),t("v-icon",[e._v(" mdi-file-plus")])],1)],1)],1)],1)],1)],1),e._v(" "),t("div",{staticClass:"grid"},e._l(e.definitions,(function(n){return i().f[6]++,i().s[9]++,t("div",{key:n.id,ref:"gridItem",refInFor:!0,staticClass:"item",attrs:{id:e.screenId(n.id)}},[t("div",{staticClass:"item-content"},[t("openc3-screen",{attrs:{target:n.target,screen:n.screen,definition:n.definition,keywords:e.keywords,initialFloated:n.floated,initialTop:n.top,initialLeft:n.left,initialZ:n.zIndex},on:{"close-screen":function(t){return i().f[7]++,i().s[10]++,e.closeScreen(n.id)},"min-max-screen":e.refreshLayout,"add-new-screen":t=>(i().f[8]++,i().s[11]++,e.showScreen(...t)),"delete-screen":function(t){return i().f[9]++,i().s[12]++,e.deleteScreen(n)},"float-screen":function(t){return i().f[10]++,i().s[13]++,e.floatScreen(n,...t)},"unfloat-screen":function(t){return i().f[11]++,i().s[14]++,e.unfloatScreen(n,...t)},"drag-screen":function(t){return i().f[12]++,i().s[15]++,e.dragScreen(n,...t)},"edit-screen":e.refreshLayout}})],1)])})),0),e._v(" "),e.openConfig?(i().b[0][0]++,t("open-config-dialog",{attrs:{configKey:e.configKey},on:{success:e.openConfiguration},model:{value:e.openConfig,callback:function(t){i().f[13]++,i().s[16]++,e.openConfig=t},expression:"openConfig"}})):(i().b[0][1]++,e._e()),e._v(" "),e.saveConfig?(i().b[1][0]++,t("save-config-dialog",{attrs:{configKey:e.configKey},on:{success:e.saveConfiguration},model:{value:e.saveConfig,callback:function(t){i().f[14]++,i().s[17]++,e.saveConfig=t},expression:"saveConfig"}})):(i().b[1][1]++,e._e()),e._v(" "),e.newScreenDialog?(i().b[2][0]++,t("new-screen-dialog",{attrs:{target:e.selectedTarget,screens:e.screens},on:{success:e.saveNewScreen},model:{value:e.newScreenDialog,callback:function(t){i().f[15]++,i().s[18]++,e.newScreenDialog=t},expression:"newScreenDialog"}})):(i().b[2][1]++,e._e())],1)},a=(i().s[19]++,[]),l=(n(9375),n(2795)),r=(n(4293),n(4364));const o={data:{configKey:"",dontSaveDefaultConfig:!1},methods:{loadDefaultConfig:function(){return localStorage[`${this.configKey}__default`]?JSON.parse(localStorage[`${this.configKey}__default`]):{}},saveDefaultConfig:function(e){!0!==this.dontSaveDefaultConfig&&(localStorage[`${this.configKey}__default`]=JSON.stringify(e))},openConfigBase:function(e,t=!1,n=null){(new r.x).load_config(this.configKey,e).then((i=>{i?(this.$notify.normal({title:"Loading configuration",body:e}),n&&n(JSON.parse(i)),t||this.$router.currentRoute.fullPath.includes(e)||this.$router.push({query:{config:e}})):this.$notify.caution({title:"Unknown configuration",body:e})})).catch((t=>{t&&this.$notify.serious({title:`Error opening configuration: ${e}`,body:t})}))},saveConfigBase:function(e,t){(new r.x).save_config(this.configKey,e,JSON.stringify(t)).then((()=>{this.$notify.normal({title:"Saved configuration",body:e})})).catch((t=>{t&&this.$notify.serious({title:`Error saving configuration: ${e}`,body:t})}))},resetConfigBase:function(){localStorage.removeItem(`${this.configKey}__default`),"/"!==this.$router.currentRoute.fullPath&&(this.$router.replace(this.$router.currentRoute.path),this.$router.go())}}};var c=function(){var e=this,t=e._self._c;return t("mounting-portal",{attrs:{"mount-to":"#openc3-menu",append:""}},[t("v-row",{attrs:{"no-gutters":""}},[t("v-col",{attrs:{"align-self":"end"}},[t("span",{staticClass:"app-title mr-2"},[e._v(e._s(e.title))])])],1),e._v(" "),t("v-row",{staticClass:"flex-nowrap",attrs:{dense:""}},e._l(e.menus,(function(n,i){return t("v-menu",{key:i,ref:"topmenu",refInFor:!0,attrs:{"offset-y":""},scopedSlots:e._u([{key:"activator",fn:function({on:i,attrs:s}){return[t("v-btn",e._g(e._b({staticClass:"mx-1 menu-button",attrs:{outlined:"","data-test":e.formatDT(`${e.title} ${n.label}`)}},"v-btn",s,!1),i),[t("span",{domProps:{textContent:e._s(n.label)}}),e._v(" "),t("v-icon",{staticClass:"myicon",attrs:{right:""}},[e._v(" mdi-menu-down ")])],1)]}}],null,!0)},[e._v(" "),t("v-list",[t("v-radio-group",{staticClass:"ma-0 pa-0",attrs:{value:n.radioGroup,"hide-details":"",dense:""}},[e._l(n.items,(function(i,s){return[i.divider?t("v-divider",{key:s}):i.subMenu&&i.subMenu.length>0?t("div",{key:s},[t("v-menu",{key:e.k,attrs:{"open-on-hover":"","offset-x":"",bottom:""},scopedSlots:e._u([{key:"activator",fn:function({on:n,attrs:a}){return[t("v-list-item",e._g(e._b({key:s,attrs:{disabled:i.disabled}},"v-list-item",a,!1),n),[i.icon?t("v-list-item-icon",[t("v-icon",{attrs:{disabled:i.disabled}},[e._v(e._s(i.icon))])],1):e._e(),e._v(" "),i.radio||i.checkbox?e._e():t("v-list-item-title",{style:"cursor: pointer;"+(i.disabled?"opacity: 0.2":"")},[e._v(e._s(i.label)+"\n ")]),e._v(" "),t("v-icon",[e._v(" mdi-chevron-right ")])],1)]}}],null,!0)},[e._v(" "),t("v-list",e._l(i.subMenu,(function(n,i){return t("v-list-item",{key:i,on:{click:function(t){return e.subMenuClick(n)}}},[n.icon?t("v-list-item-icon",[t("v-icon",[e._v(e._s(n.icon))])],1):e._e(),e._v(" "),t("v-list-item-title",[e._v(e._s(n.label))])],1)})),1)],1)],1):t("v-list-item",{key:s,attrs:{disabled:i.disabled,"data-test":e.formatDT(`${e.title} ${n.label} ${i.label}`)},on:{click:function(e){return i.command(i)}}},[i.radio?t("v-list-item-action",[t("v-radio",{attrs:{color:"secondary",label:i.label,value:i.label}})],1):e._e(),e._v(" "),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(),e._v(" "),i.icon?t("v-list-item-icon",[t("v-icon",{attrs:{disabled:i.disabled}},[e._v(e._s(i.icon))])],1):e._e(),e._v(" "),i.radio||i.checkbox?e._e():t("v-list-item-title",{style:"cursor: pointer;"+(i.disabled?"opacity: 0.2":"")},[e._v(e._s(i.label))])],1)]}))],2)],1)],1)})),1)],1)},d=[];n(8715);const u={props:{menus:{type:Array,default:function(){return[]}},title:{type:String,default:""}},methods:{formatDT:function(e){return e.replaceAll(" ","-").toLowerCase()},subMenuClick(e){e.command(e),this.$refs.topmenu[0].isActive=!1}},mounted(){document.title=this.title}},m=u;n(1e3);var h=n(2401),p=(0,h.A)(m,c,d,!1,null,"57d4fdd2",null);const v=p.exports;var f=function(){var e=this,t=e._self._c;return t("div",{ref:"bar",style:e.computedStyle},[t("v-card",{attrs:{"min-height":e.height,"min-width":e.width}},[t("v-system-bar",[t("div",{directives:[{name:"show",rawName:"v-show",value:0!==e.errors.length,expression:"errors.length !== 0"}]},[t("v-tooltip",{attrs:{top:""},scopedSlots:e._u([{key:"activator",fn:function({on:n,attrs:i}){return[t("div",e._g(e._b({},"div",i,!1),n),[t("v-icon",{attrs:{"data-test":"error-graph-icon"},on:{click:function(t){e.errorDialog=!0}}},[e._v("\n mdi-alert\n ")])],1)]}}])},[e._v(" "),t("span",[e._v(" Errors ")])])],1),e._v(" "),t("v-tooltip",{attrs:{top:""},scopedSlots:e._u([{key:"activator",fn:function({on:n,attrs:i}){return[t("div",e._g(e._b({},"div",i,!1),n),[t("v-icon",{attrs:{"data-test":"edit-screen-icon"},on:{click:e.openEdit}},[e._v("\n mdi-pencil\n ")])],1)]}}])},[e._v(" "),t("span",[e._v(" Edit Screen ")])]),e._v(" "),e.fixFloated?e._e():t("v-tooltip",{attrs:{top:""},scopedSlots:e._u([{key:"activator",fn:function({on:n,attrs:i}){return[t("div",e._g(e._b({},"div",i,!1),n),[t("v-icon",{attrs:{"data-test":"float-screen-icon"},on:{click:e.floatScreen}},[e._v("\n "+e._s(e.floated?"mdi-balloon":"mdi-view-grid-outline")+"\n ")])],1)]}}],null,!1,4011884781)},[e._v(" "),t("span",[e._v(" "+e._s(e.floated?"Unfloat Screen":"Float Screen")+" ")])]),e._v(" "),e.floated?t("v-tooltip",{attrs:{top:""},scopedSlots:e._u([{key:"activator",fn:function({on:n,attrs:i}){return[t("div",e._g(e._b({},"div",i,!1),n),[t("v-icon",{attrs:{"data-test":"up-screen-icon"},on:{click:e.upScreen}},[e._v("\n mdi-arrow-up\n ")])],1)]}}],null,!1,3296657168)},[e._v(" "),t("span",[e._v(" Move Screen Up ")])]):e._e(),e._v(" "),e.floated&&e.zIndex>e.minZ?t("v-tooltip",{attrs:{top:""},scopedSlots:e._u([{key:"activator",fn:function({on:n,attrs:i}){return[t("div",e._g(e._b({},"div",i,!1),n),[t("v-icon",{attrs:{"data-test":"down-screen-icon"},on:{click:e.downScreen}},[e._v("\n mdi-arrow-down\n ")])],1)]}}],null,!1,1167902535)},[e._v(" "),t("span",[e._v(" Move Screen Down ")])]):e._e(),e._v(" "),t("v-spacer"),e._v(" "),t("span",[e._v(e._s(e.target)+" "+e._s(e.screen))]),e._v(" "),t("v-spacer"),e._v(" "),t("v-tooltip",{attrs:{top:""},scopedSlots:e._u([{key:"activator",fn:function({on:n,attrs:i}){return[t("div",e._g(e._b({},"div",i,!1),n),[t("v-icon",{directives:[{name:"show",rawName:"v-show",value:e.expand,expression:"expand"}],attrs:{"data-test":"minimize-screen-icon"},on:{click:e.minMaxTransition}},[e._v("\n mdi-window-minimize\n ")]),e._v(" "),t("v-icon",{directives:[{name:"show",rawName:"v-show",value:!e.expand,expression:"!expand"}],attrs:{"data-test":"maximize-screen-icon"},on:{click:e.minMaxTransition}},[e._v("\n mdi-window-maximize\n ")])],1)]}}])},[e._v(" "),t("span",{directives:[{name:"show",rawName:"v-show",value:e.expand,expression:"expand"}]},[e._v(" Minimize Screen ")]),e._v(" "),t("span",{directives:[{name:"show",rawName:"v-show",value:!e.expand,expression:"!expand"}]},[e._v(" Maximize Screen ")])]),e._v(" "),e.showClose?t("v-tooltip",{attrs:{top:""},scopedSlots:e._u([{key:"activator",fn:function({on:n,attrs:i}){return[t("div",e._g(e._b({},"div",i,!1),n),[t("v-icon",{attrs:{"data-test":"close-screen-icon"},on:{click:function(t){return e.$emit("close-screen")}}},[e._v("\n mdi-close-box\n ")])],1)]}}],null,!1,1921143701)},[e._v(" "),t("span",[e._v(" Close Screen ")])]):e._e()],1),e._v(" "),e.editDialog?e._e():t("v-expand-transition",[t("div",{directives:[{name:"show",rawName:"v-show",value:e.expand,expression:"expand"}],ref:"screen",staticClass:"pa-1",staticStyle:{position:"relative"}},[t("v-overlay",{staticStyle:{"pointer-events":"none"},attrs:{value:0!==e.errors.length,opacity:"0.8",absolute:""}}),e._v(" "),t("vertical-widget",e._g({key:e.screenKey,attrs:{widgets:e.layoutStack[0].widgets}},e.$listeners))],1)])],1),e._v(" "),e.editDialog?t("edit-screen-dialog",{attrs:{target:e.target,screen:e.screen,definition:e.currentDefinition,keywords:e.keywords,errors:e.errors},on:{save:function(t){return e.saveEdit(t)},cancel:function(t){return e.cancelEdit()},delete:function(t){return e.deleteScreen()}},model:{value:e.editDialog,callback:function(t){e.editDialog=t},expression:"editDialog"}}):e._e(),e._v(" "),t("v-dialog",{attrs:{"max-width":"600"},model:{value:e.errorDialog,callback:function(t){e.errorDialog=t},expression:"errorDialog"}},[t("v-system-bar",[t("v-spacer"),e._v(" "),t("span",[e._v(" Screen: "+e._s(e.target)+" "+e._s(e.screen)+" Errors ")]),e._v(" "),t("v-spacer")],1),e._v(" "),t("v-card",[t("v-textarea",{staticClass:"errors",attrs:{readonly:"",rows:"13",value:e.error}})],1)],1)],1)},g=[],_=(n(5100),n(7162),n(6403),n(4154),n(4777),n(8846),n(2896),n(3069)),A=n(1649),w=n(5485),b=n.n(w),y=n(9677),x=n.n(y),C=function(){var e=this,t=e._self._c;return t("v-dialog",{attrs:{persistent:"",width:"75vw"},model:{value:e.show,callback:function(t){e.show=t},expression:"show"}},[t("v-card",[t("v-system-bar",[t("div",{staticClass:"mx-2"},[t("v-tooltip",{attrs:{top:""},scopedSlots:e._u([{key:"activator",fn:function({on:n,attrs:i}){return[t("div",e._g(e._b({},"div",i,!1),n),[t("v-icon",{attrs:{"data-test":"delete-screen-icon"},on:{click:e.deleteScreen}},[e._v("\n mdi-delete\n ")])],1)]}}])},[e._v(" "),t("span",[e._v(" Delete Screen ")])])],1),e._v(" "),t("v-spacer"),e._v(" "),t("span",[e._v(" Edit Screen: "+e._s(e.target)+" "+e._s(e.screen)+" ")]),e._v(" "),t("v-spacer"),e._v(" "),t("div",{staticClass:"mx-2"},[t("v-tooltip",{attrs:{top:""},scopedSlots:e._u([{key:"activator",fn:function({on:n,attrs:i}){return[t("div",e._g(e._b({},"div",i,!1),n),[t("v-icon",{attrs:{"data-test":"download-screen-icon"},on:{click:e.downloadScreen}},[e._v("\n mdi-download\n ")])],1)]}}])},[e._v(" "),t("span",[e._v(" Download Screen ")])])],1)],1),e._v(" "),t("v-card-text",[t("v-row",{staticClass:"mt-3"},[e._v(" Upload a screen file. ")]),e._v(" "),t("v-row",{attrs:{"no-gutters":"",align:"center"}},[t("v-btn",{staticClass:"mr-3",attrs:{disabled:!e.file,color:"primary","data-test":"edit-screen-load"},on:{click:e.loadFile}},[e._v("\n Load\n ")]),e._v(" "),t("v-file-input",{attrs:{"truncate-length":"15",accept:".txt",label:"Click to select .txt screen file."},model:{value:e.file,callback:function(t){e.file=t},expression:"file"}})],1),e._v(" "),t("v-row",{staticClass:"mb-2"},[e._v(" Edit the screen definition. ")]),e._v(" "),t("v-row",{staticClass:"mb-2"},[t("pre",{ref:"editor",staticClass:"editor",on:{contextmenu:function(t){return t.preventDefault(),e.showContextMenu.apply(null,arguments)}}}),e._v(" "),t("v-menu",{attrs:{"position-x":e.menuX,"position-y":e.menuY,absolute:"","offset-y":""},model:{value:e.contextMenu,callback:function(t){e.contextMenu=t},expression:"contextMenu"}},[t("v-list",[t("v-list-item",{attrs:{link:""}},[t("v-list-item-title",{on:{click:e.openDocumentation}},[e._v("\n "+e._s(e.docsKeyword)+" documentation\n ")])],1)],1)],1)],1),e._v(" "),e._l(e.editErrors,(function(n,i){return t("v-row",{key:i,staticClass:"my-3"},[t("span",{staticClass:"red--text",domProps:{textContent:e._s(n)}})])})),e._v(" "),t("v-row",[t("span",[e._v("Ctrl-space brings up autocomplete. Right click keywords for\n documentation.")]),e._v(" "),t("v-spacer"),e._v(" "),t("v-btn",{staticClass:"mx-2",attrs:{outlined:"","data-test":"edit-screen-cancel"},on:{click:function(t){return e.$emit("cancel")}}},[e._v("\n Cancel\n ")]),e._v(" "),t("v-btn",{staticClass:"mx-2",attrs:{color:"primary","data-test":"edit-screen-save"},on:{click:function(t){e.$emit("save",e.editor.getValue())}}},[e._v("\n Save\n ")])],1)],2)],1)],1)},S=[],k=(n(3165),n(4541),n(4397),n(1412),n(1883),n(7905),n(1841)),I=(n(1136),n(5617),n(6717),n(9946),n(814));n(8605);class N{constructor(){(0,I.A)(this,"getCompletions",(async function(e,t,n,i,s){var a=t.getLine(n.row),l=a.slice(0,n.column),r=l.trimStart().split(/ (?![^<]*>)/),o=this.autocompleteData;r.length>1&&(o=o.find((e=>e.caption===r[0])));var c={},d=!0;if(o&&o["params"]){o["params"].length==r.length-1&&(d=!1);var u=o["params"][r.length-2];if(u["Target name"]){var m=await this.api.get_target_names();o=m.reduce(((e,t)=>(e[t]=1,e)),{})}else if(u["Packet name"]){var h=r[r.length-2],p=await this.api.get_all_tlm(h);o=p.reduce(((e,t)=>(e[t.packet_name]=t.description,e)),{})}else if(u["Item name"]){h=r[r.length-3];var v=r[r.length-2];v=await this.api.get_tlm(h,v);o=v.items.reduce(((e,t)=>(e[t.name]=t.description,e)),{})}else o=u;c=Object.keys(o||{}).map((e=>{var t={value:e+(d?" ":""),command:d&&"startAutocomplete"};return"string"===typeof o[e]&&(t["meta"]=o[e]),t}))}else c=o;s(null,c)})),l.A.get("/openc3-api/autocomplete/data/screen").then((e=>{this.autocompleteData=e.data})),this.api=new r.x}}const T={props:{value:Boolean,target:{type:String,default:""},screen:{type:String,default:""},definition:{type:String,default:""},keywords:{type:Array,default:()=>[]},errors:{type:Array,default:()=>[]}},data(){return{file:null,docsKeyword:"",contextMenu:!1,menuX:0,menuY:0}},computed:{editErrors:function(){if(""===this.definition&&!this.file)return["Input can not be blank."];if(0!==this.errors.length){let e=new Set,t=[];for(const n of this.errors){if(e.has(n.message))continue;let i=`At ${n.lineNumber}: (${n.line}) ${n.message}.`;n.usage&&(i+=` Usage: ${n.usage}`),t.push(i),e.add(n.message)}return t}return[]},show:{get(){return this.value},set(e){this.$emit("input",e)}}},mounted:function(){this.editor=k.edit(this.$refs.editor),this.editor.setTheme("ace/theme/twilight");const e=this.buildScreenMode();this.editor.session.setMode(new e),this.editor.session.setTabSize(2),this.editor.session.setUseWrapMode(!0),this.editor.$blockScrolling=1/0,this.editor.setOption("enableBasicAutocompletion",!0),this.editor.setOption("enableLiveAutocompletion",!0),this.editor.completers=[new N],this.editor.setHighlightActiveLine(!1),this.editor.setValue(this.definition),this.editor.clearSelection(),this.editor.focus()},beforeDestroy(){this.editor.destroy(),this.editor.container.remove()},methods:{showContextMenu:function(e){this.menuX=e.pageX,this.menuY=e.pageY;var t=this.editor.getCursorPosition(),n=this.editor.session.getTokenAt(t.row,t.column);if(n){var i=n.value.trim();i.includes(" ")?this.docsKeyword=i.split(" ")[0]:this.docsKeyword=i,this.contextMenu=!0}},openDocumentation(){window.open(`${window.location.origin}/tools/staticdocs/docs/configuration/telemetry-screens#${this.docsKeyword.toLowerCase()}`,"_blank")},buildScreenMode(){var e=k.require("ace/lib/oop"),t=k.require("ace/mode/text_highlight_rules").TextHighlightRules;let n=this.keywords.join("|");var i=function(){this.$rules={start:[{token:"comment",regex:"#.*$"},{token:"string",regex:'".*?"'},{token:"string",regex:"'.*?'"},{token:"constant.numeric",regex:"\\b\\d+(?:\\.\\d+)?\\b"},{token:"keyword",regex:new RegExp(`^\\s*(${n})\\b`)}]},this.normalizeRules()};e.inherits(i,t);var s=function(){this.HighlightRules=i},a=k.require("ace/mode/text").Mode;return e.inherits(s,a),function(){this.$id="ace/mode/openc3"}.call(s.prototype),s},downloadScreen:function(){const e=new Blob([this.editor.getValue()],{type:"text/plain"}),t=document.createElement("a");t.href=URL.createObjectURL(e),t.setAttribute("download",`${this.screen.toLowerCase()}.txt`),t.click()},loadFile:function(){const e=new FileReader;e.readAsText(this.file);const t=this;e.onload=function(){t.editor.setValue(e.result),t.file=null}},deleteScreen:function(){this.$dialog.confirm("Are you sure you want to delete this screen?!",{okText:"Delete",cancelText:"Cancel"}).then((e=>{this.$emit("delete")}))}}},E=T;n(2605),n(7613);var M=(0,h.A)(E,C,S,!1,null,"2f59da98",null);const $=M.exports,D=20,L=n(7448);L.keys().forEach((e=>{const t=L(e),n=b()(x()(e.split("/").pop().replace(/\.\w+$/,"")));A["default"].component(n,t.default||t)}));const O={components:{EditScreenDialog:$},props:{target:{type:String,default:""},screen:{type:String,default:""},definition:{type:String,default:""},keywords:{type:Array,default:()=>[]},initialFloated:{type:Boolean,default:!1},initialTop:{type:Number,default:0},initialLeft:{type:Number,default:0},initialZ:{type:Number,default:0},minZ:{type:Number,default:0},fixFloated:{type:Boolean,default:!1},count:{type:Number,default:0},showClose:{type:Boolean,default:!0}},data(){return{api:null,backup:"",currentDefinition:this.definition,editDialog:!1,expand:!0,configParser:null,configError:!1,currentLayout:null,layoutStack:[],namedWidgets:{},dynamicWidgets:[],width:null,height:null,staleTime:30,cacheTimeout:.1,globalSettings:[],substitute:!1,original_target_name:null,force_substitute:!1,pollingPeriod:1,errors:[],errorDialog:!1,screenKey:null,dragX:0,dragY:0,floated:this.initialFloated,top:this.initialTop,left:this.initialLeft,zIndex:this.initialZ,changeCounter:0,screenItems:[],screenValues:{},updateCounter:0}},watch:{count:{handler(e,t){this.currentDefinition=this.definition,this.rerender()}}},computed:{error:function(){if(this.errorDialog&&this.errors.length>0){let e=new Set,t="";for(const n of this.errors){if(e.has(n.message))continue;let i=`${n.time}: (${n.type}) ${n.message}\n`;t+=i,e.add(n.message)}return t}return null},computedStyle(){let e={};return this.floated&&(e["position"]="absolute",e["top"]=this.top+"px",e["left"]=this.left+"px"),e}},errorCaptured(e,t,n){return this.errors.length<D&&(e.usage?this.errors.push({type:"usage",message:e.message,usage:e.usage,line:e.line,lineNumber:e.lineNumber,time:(new Date).getTime()}):this.errors.push({type:"error",message:e,time:(new Date).getTime()}),this.configError=!0),!1},created(){this.api=new r.x,this.configParser=new _.R,this.parseDefinition(),this.screenKey=Math.floor(1e6*Math.random())},mounted(){this.updateRefreshInterval(),this.floated&&(this.$refs.bar.onmousedown=this.dragMouseDown,this.$refs.bar.parentElement.parentElement.style="z-index: "+this.zIndex)},destroyed(){null!=this.updater&&(clearInterval(this.updater),this.updater=null)},methods:{open(e,t){this.$parent.showScreen(e,t)},close(e,t){this.$parent.closeScreenByName(e,t)},closeAll(){this.$parent.closeAll()},clearErrors:function(){this.errors=[],this.configError=!1},updateRefreshInterval:function(){let e=1e3*this.pollingPeriod;this.updater&&clearInterval(this.updater),this.updater=setInterval((()=>{this.update()}),e)},parseDefinition:function(){if(this.clearErrors(),this.namedWidgets={},this.layoutStack=[],this.dynamicWidgets=[],this.layoutStack.push({type:"VerticalWidget",parameters:[],widgets:[]}),this.currentLayout=this.layoutStack[this.layoutStack.length-1],this.configParser.parse_string(this.currentDefinition,"",!1,!0,((e,t,n,i)=>{var s;if(e)switch(e){case"SCREEN":this.configParser.verify_num_parameters(3,4,`${e} <Width or AUTO> <Height or AUTO> <Polling Period>`),this.width=parseInt(t[0]),this.height=parseInt(t[1]),this.pollingPeriod=parseFloat(t[2]);break;case"END":this.configParser.verify_num_parameters(0,0,`${e}`),this.layoutStack.pop(),this.currentLayout=this.layoutStack[this.layoutStack.length-1];break;case"STALE_TIME":this.configParser.verify_num_parameters(1,1,`${e} <Time (s)>`),this.staleTime=parseInt(t[0]);break;case"SETTING":case"SUBSETTING":const a=null!==(s=this.currentLayout.widgets[this.currentLayout.widgets.length-1])&&void 0!==s?s:this.currentLayout;a.settings.push(t);break;case"GLOBAL_SETTING":case"GLOBAL_SUBSETTING":this.globalSettings.push(t);break;default:this.processWidget(e,t,n,i);break}})),"undefined"===typeof this.layoutStack[0]){let e=[],t=[];for(const n of this.dynamicWidgets)e.push(n.name),t.push(n.lineNumber);this.errors.length<D&&(this.errors.push({type:"usage",message:`Unknown widget! Are these widgets: ${e.join(",")}?`,lineNumber:t.join(","),time:(new Date).getTime()}),this.configError=!0),this.layoutStack[0]={type:"VerticalWidget",parameters:[],widgets:[]}}else this.applyGlobalSettings(this.layoutStack[0].widgets)},getNamedWidget:function(e){return this.namedWidgets[e]},get_named_widget:function(e){return this.namedWidgets[e]},setNamedWidget:function(e,t){this.namedWidgets[e]=t},openEdit:function(){this.backup=this.currentDefinition.repeat(1),this.editDialog=!0},upScreen:function(){this.zIndex+=1,this.$refs.bar.parentElement.parentElement.style="z-index: "+this.zIndex,this.$emit("drag-screen",[this.floated,this.top,this.left,this.zIndex])},downScreen:function(){this.zIndex>this.minZ&&(this.zIndex-=1,this.$refs.bar.parentElement.parentElement.style="z-index: "+this.zIndex,this.$emit("drag-screen",[this.floated,this.top,this.left,this.zIndex]))},floatScreen:function(){if(this.floated)this.$refs.bar.onmousedown=null,this.$refs.bar.parentElement.parentElement.style="z-index: 0",this.floated=!1,this.$emit("unfloat-screen",[this.floated,this.top,this.left,this.zIndex]);else{let e=this.$refs.bar.parentElement.parentElement.parentElement.getBoundingClientRect(),t=this.$refs.bar.getBoundingClientRect();this.top=t.top-e.top-5,this.left=t.left-e.left-5,this.$refs.bar.onmousedown=this.dragMouseDown,this.$refs.bar.parentElement.parentElement.style="z-index: "+this.zIndex,this.floated=!0,this.$emit("float-screen",[this.floated,this.top,this.left,this.zIndex])}},dragMouseDown:function(e){e=e||window.event,e.preventDefault(),this.dragX=e.clientX,this.dragY=e.clientY,document.onmouseup=this.closeDragElement,document.onmousemove=this.elementDrag},elementDrag:function(e){e=e||window.event,e.preventDefault();let t=this.dragX-e.clientX,n=this.dragY-e.clientY;this.dragX=e.clientX,this.dragY=e.clientY,this.top=this.$refs.bar.offsetTop-n,this.left=this.$refs.bar.offsetLeft-t,this.$emit("drag-screen",[this.floated,this.top,this.left,this.zIndex])},closeDragElement:function(){document.onmouseup=null,document.onmousemove=null},rerender:function(){this.parseDefinition(),this.updateRefreshInterval(),this.screenKey=Math.floor(1e6*Math.random()),this.$nextTick((function(){this.clearErrors(),this.$emit("edit-screen")}))},cancelEdit:function(){this.file=null,this.editDialog=!1,this.currentDefinition=this.backup,this.rerender()},saveEdit:function(e){this.editDialog=!1,this.currentDefinition=e,this.rerender(),this.$nextTick((function(){l.A.post("/openc3-api/screen/",{data:{scope:window.openc3Scope,target:this.target,screen:this.screen,text:this.currentDefinition}},0)}))},deleteScreen:function(){this.editDialog=!1,l.A.delete(`/openc3-api/screen/${this.target}/${this.screen}`).then((e=>{this.$emit("delete-screen")}))},minMaxTransition:function(){this.expand=!this.expand,this.$emit("min-max-screen")},processWidget:function(e,t,n,i){var s=null;"NAMED_WIDGET"===e&&(this.configParser.verify_num_parameters(2,null,`${e} <Widget Name> <Widget Type> <Widget Settings... (optional)>`),s=t[0].toUpperCase(),e=t[1].toUpperCase(),t=t.slice(2,t.length));const a=e.charAt(0).toUpperCase()+e.slice(1).toLowerCase()+"Widget";let l=[];if(null!==s&&l.push(["NAMED_WIDGET",s,this]),"VERTICAL"===e||"VERTICALBOX"===e||"HORIZONTAL"===e||"HORIZONTALBOX"===e||"MATRIXBYCOLUMNS"===e||"TABBOOK"===e||"TABITEM"===e||"CANVAS"===e||"RADIOGROUP"===e||"SCROLLWINDOW"===e){const e={type:a,parameters:t,settings:l,widgets:[]};this.layoutStack.push(e),this.currentLayout.widgets.push(e),this.currentLayout=e}else if(l.push(["__SCREEN__",this]),A["default"].options.components[a])this.currentLayout.widgets.push({type:a,target:this.target,parameters:t,settings:l,line:n,lineNumber:i});else{let e={type:"DynamicWidget",target:this.target,parameters:t,settings:l,name:a,line:n,lineNumber:i};this.currentLayout.widgets.push(e),this.dynamicWidgets.push(e)}},applyGlobalSettings:function(e){e.forEach((e=>{this.globalSettings.forEach((t=>{e.type.toLowerCase()===t[0].toLowerCase()+"widget"&&e.settings.push(t.slice(1))})),e.widgets&&this.applyGlobalSettings(e.widgets)}))},update:function(){0!==this.screenItems.length&&!1===this.configError&&this.api.get_tlm_values(this.screenItems,this.staleTime,this.cacheTimeout).then((e=>{this.clearErrors(),this.updateValues(e)})).catch((e=>{let t=JSON.stringify(e,null,2);t.includes("no response received")||(this.configError=!0),this.errors.find((e=>e.message===t))||this.errors.length<D&&this.errors.push({type:"error",message:t,time:(new Date).getTime()})}))},updateValues:function(e){this.updateCounter+=1;for(let t=0;t<e.length;t++)e[t].push(this.updateCounter),A["default"].set(this.screenValues,this.screenItems[t],e[t])},addItem:function(e){this.screenItems.push(e),A["default"].set(this.screenValues,e,[null,null,0])},deleteItem:function(e){let t=this.screenItems.indexOf(e);this.screenItems.splice(t,1)}}},V=O;n(308);var W=(0,h.A)(V,f,g,!1,null,"ff31ea44",null);const R=W.exports;function P(){var e="/openc3/plugins/packages/openc3-cosmos-tool-tlmviewer/src/tools/TlmViewer/NewScreenDialog.vue",t="b27cb2709ef0cdd29c88c3d70f8724cd6355e35f",n=new Function("return this")(),i="__coverage__",s={path:"/openc3/plugins/packages/openc3-cosmos-tool-tlmviewer/src/tools/TlmViewer/NewScreenDialog.vue",statementMap:{0:{start:{line:1,column:13},end:{line:2,column:1}},1:{start:{line:1,column:39},end:{line:1,column:43}},2:{start:{line:1,column:47},end:{line:1,column:59}},3:{start:{line:1,column:60},end:{line:1,column:3179}},4:{start:{line:1,column:153},end:{line:1,column:165}},5:{start:{line:1,column:424},end:{line:1,column:649}},6:{start:{line:1,column:568},end:{line:1,column:584}},7:{start:{line:1,column:863},end:{line:1,column:891}},8:{start:{line:1,column:1406},end:{line:1,column:1428}},9:{start:{line:1,column:2189},end:{line:1,column:2215}},10:{start:{line:1,column:2509},end:{line:1,column:2542}},11:{start:{line:1,column:2603},end:{line:1,column:2624}},12:{start:{line:1,column:2989},end:{line:1,column:3005}},13:{start:{line:3,column:22},end:{line:3,column:24}}},fnMap:{0:{name:"render",decl:{start:{line:1,column:22},end:{line:1,column:28}},loc:{start:{line:1,column:30},end:{line:2,column:1}},line:1},1:{name:"(anonymous_1)",decl:{start:{line:1,column:137},end:{line:1,column:138}},loc:{start:{line:1,column:152},end:{line:1,column:166}},line:1},2:{name:"(anonymous_2)",decl:{start:{line:1,column:400},end:{line:1,column:401}},loc:{start:{line:1,column:423},end:{line:1,column:650}},line:1},3:{name:"(anonymous_3)",decl:{start:{line:1,column:551},end:{line:1,column:552}},loc:{start:{line:1,column:567},end:{line:1,column:585}},line:1},4:{name:"(anonymous_4)",decl:{start:{line:1,column:847},end:{line:1,column:848}},loc:{start:{line:1,column:862},end:{line:1,column:892}},line:1},5:{name:"(anonymous_5)",decl:{start:{line:1,column:1390},end:{line:1,column:1391}},loc:{start:{line:1,column:1405},end:{line:1,column:1429}},line:1},6:{name:"(anonymous_6)",decl:{start:{line:1,column:2173},end:{line:1,column:2174}},loc:{start:{line:1,column:2188},end:{line:1,column:2216}},line:1},7:{name:"(anonymous_7)",decl:{start:{line:1,column:2492},end:{line:1,column:2493}},loc:{start:{line:1,column:2508},end:{line:1,column:2543}},line:1},8:{name:"(anonymous_8)",decl:{start:{line:1,column:2587},end:{line:1,column:2588}},loc:{start:{line:1,column:2602},end:{line:1,column:2625}},line:1},9:{name:"(anonymous_9)",decl:{start:{line:1,column:2972},end:{line:1,column:2973}},loc:{start:{line:1,column:2988},end:{line:1,column:3006}},line:1}},branchMap:{0:{loc:{start:{line:1,column:2668},end:{line:1,column:2806}},type:"cond-expr",locations:[{start:{line:1,column:2690},end:{line:1,column:2797}},{start:{line:1,column:2798},end:{line:1,column:2806}}],line:1}},s:{0:0,1:0,2:0,3:0,4:0,5:0,6:0,7:0,8:0,9:0,10:0,11:0,12:0,13:0},f:{0:0,1:0,2:0,3:0,4:0,5:0,6:0,7:0,8:0,9:0},b:{0:[0,0]},_coverageSchema:"1a1c01bbd47fc00a2c39e90264f33305004495a9",hash:"b27cb2709ef0cdd29c88c3d70f8724cd6355e35f"},a=n[i]||(n[i]={});a[e]&&a[e].hash===t||(a[e]=s);var l=a[e];return P=function(){return l},l}P(),P().s[0]++;var z=function(){P().f[0]++;var e=(P().s[1]++,this),t=(P().s[2]++,e._self._c);return P().s[3]++,t("v-dialog",{attrs:{width:"600"},model:{value:e.show,callback:function(t){P().f[1]++,P().s[4]++,e.show=t},expression:"show"}},[t("v-card",[t("v-system-bar",[t("v-spacer"),e._v(" "),t("span",[e._v("Create New Screen")]),e._v(" "),t("v-spacer"),e._v(" "),t("v-tooltip",{attrs:{top:""},scopedSlots:e._u([{key:"activator",fn:function({on:n,attrs:i}){return P().f[2]++,P().s[5]++,[t("div",e._g(e._b({},"div",i,!1),n),[t("v-icon",{attrs:{"data-test":"new-screen-close-icon"},on:{click:function(t){P().f[3]++,P().s[6]++,e.show=!1}}},[e._v("\n mdi-close-box\n ")])],1)]}}])},[e._v(" "),t("span",[e._v("Close")])])],1),e._v(" "),t("v-card-text",[t("v-alert",{attrs:{type:"error",dismissible:"",dense:""},model:{value:e.duplicateScreenAlert,callback:function(t){P().f[4]++,P().s[7]++,e.duplicateScreenAlert=t},expression:"duplicateScreenAlert"}},[e._v("\n Screen "+e._s(e.newScreenName.toUpperCase())+" already exists!\n ")]),e._v(" "),t("v-row",{staticClass:"pt-3"},[t("v-col",[e._v(" Screens must belong to a target. Select a target:")])],1),e._v(" "),t("v-row",{attrs:{dense:""}},[t("v-col",[t("v-select",{attrs:{label:"Select Target",items:e.targets,"item-text":"label","item-value":"value"},on:{change:e.targetSelect},model:{value:e.selectedTarget,callback:function(t){P().f[5]++,P().s[8]++,e.selectedTarget=t},expression:"selectedTarget"}})],1)],1),e._v(" "),t("v-row",{attrs:{dense:""}},[t("v-col",[e._v("Screens can be auto-generated based on an existing Packet. This\n creates a LABELVALUE line for every item in the packet. The screen\n can then be edited and customized.")])],1),e._v(" "),t("v-row",{attrs:{dense:""}},[t("v-col",[e._v("Leave this blank to start with a blank screen.")])],1),e._v(" "),t("v-row",{attrs:{dense:""}},[t("v-col",[t("v-autocomplete",{attrs:{label:"New screen packet","hide-details":"",dense:"",items:e.packetNames,"item-text":"label","item-value":"value","data-test":"new-screen-packet"},on:{change:e.packetNameChanged},model:{value:e.selectedPacketName,callback:function(t){P().f[6]++,P().s[9]++,e.selectedPacketName=t},expression:"selectedPacketName"}})],1)],1),e._v(" "),t("v-row",{attrs:{dense:""}},[t("v-col",[t("v-text-field",{attrs:{flat:"",autofocus:"",clearable:"",label:"Screen Name (without .txt)",rules:[e.rules.required],"data-test":"new-screen-name"},on:{keyup:function(t){return P().f[7]++,P().s[10]++,e.newScreenKeyup(t)}},model:{value:e.newScreenName,callback:function(t){P().f[8]++,P().s[11]++,e.newScreenName=t},expression:"newScreenName"}}),e._v(" "),e.newScreenSaving?(P().b[0][0]++,t("div",{staticClass:"pl-2"},[t("v-progress-circular",{attrs:{indeterminate:"",color:"primary"}})],1)):(P().b[0][1]++,e._e())],1)],1)],1),e._v(" "),t("v-divider"),e._v(" "),t("v-card-actions",[t("v-spacer"),e._v(" "),t("v-btn",{staticClass:"mx-2",attrs:{outlined:""},on:{click:function(t){P().f[9]++,P().s[12]++,e.show=!1}}},[e._v(" Cancel ")]),e._v(" "),t("v-btn",{staticClass:"mx-2",attrs:{color:"primary"},on:{click:e.saveNewScreen}},[e._v("\n Save\n ")])],1)],1)],1)},H=(P().s[13]++,[]);n(7534);function U(){var e="/openc3/plugins/packages/openc3-cosmos-tool-tlmviewer/src/tools/TlmViewer/NewScreenDialog.vue",t="da6b3531dd2b4a41f07244bbf8e8c45a58aba1fa",n=new Function("return this")(),i="__coverage__",s={path:"/openc3/plugins/packages/openc3-cosmos-tool-tlmviewer/src/tools/TlmViewer/NewScreenDialog.vue",statementMap:{0:{start:{line:15,column:4},end:{line:27,column:5}},1:{start:{line:25,column:29},end:{line:25,column:51}},2:{start:{line:30,column:4},end:{line:30,column:30}},3:{start:{line:31,column:4},end:{line:31,column:37}},4:{start:{line:32,column:4},end:{line:32,column:32}},5:{start:{line:33,column:4},end:{line:33,column:37}},6:{start:{line:34,column:4},end:{line:38,column:8}},7:{start:{line:37,column:8},end:{line:37,column:67}},8:{start:{line:37,column:48},end:{line:37,column:66}},9:{start:{line:39,column:4},end:{line:39,column:42}},10:{start:{line:44,column:8},end:{line:44,column:25}},11:{start:{line:47,column:8},end:{line:47,column:34}},12:{start:{line:51,column:6},end:{line:55,column:7}},13:{start:{line:52,column:8},end:{line:52,column:59}},14:{start:{line:54,column:8},end:{line:54,column:21}},15:{start:{line:60,column:6},end:{line:60,column:34}},16:{start:{line:61,column:6},end:{line:72,column:8}},17:{start:{line:62,column:8},end:{line:67,column:10}},18:{start:{line:63,column:10},end:{line:66,column:11}},19:{start:{line:68,column:8},end:{line:71,column:10}},20:{start:{line:75,column:6},end:{line:90,column:7}},21:{start:{line:76,column:8},end:{line:76,column:31}},22:{start:{line:77,column:8},end:{line:77,column:41}},23:{start:{line:79,column:8},end:{line:79,column:48}},24:{start:{line:80,column:8},end:{line:89,column:9}},25:{start:{line:86,column:10},end:{line:86,column:42}},26:{start:{line:88,column:10},end:{line:88,column:43}},27:{start:{line:93,column:6},end:{line:105,column:7}},28:{start:{line:99,column:8},end:{line:99,column:40}},29:{start:{line:101,column:8},end:{line:101,column:41}},30:{start:{line:102,column:8},end:{line:104,column:9}},31:{start:{line:103,column:10},end:{line:103,column:30}},32:{start:{line:108,column:6},end:{line:110,column:7}},33:{start:{line:109,column:8},end:{line:109,column:14}},34:{start:{line:111,column:6},end:{line:111,column:33}},35:{start:{line:112,column:6},end:{line:117,column:7}}},fnMap:{0:{name:"(anonymous_0)",decl:{start:{line:14,column:2},end:{line:14,column:3}},loc:{start:{line:14,column:9},end:{line:28,column:3}},line:14},1:{name:"(anonymous_1)",decl:{start:{line:25,column:18},end:{line:25,column:19}},loc:{start:{line:25,column:29},end:{line:25,column:51}},line:25},2:{name:"(anonymous_2)",decl:{start:{line:29,column:2},end:{line:29,column:3}},loc:{start:{line:29,column:12},end:{line:40,column:3}},line:29},3:{name:"(anonymous_3)",decl:{start:{line:36,column:12},end:{line:36,column:13}},loc:{start:{line:36,column:25},end:{line:38,column:7}},line:36},4:{name:"(anonymous_4)",decl:{start:{line:37,column:38},end:{line:37,column:39}},loc:{start:{line:37,column:48},end:{line:37,column:66}},line:37},5:{name:"(anonymous_5)",decl:{start:{line:43,column:6},end:{line:43,column:7}},loc:{start:{line:43,column:12},end:{line:45,column:7}},line:43},6:{name:"(anonymous_6)",decl:{start:{line:46,column:6},end:{line:46,column:7}},loc:{start:{line:46,column:17},end:{line:48,column:7}},line:46},7:{name:"(anonymous_7)",decl:{start:{line:50,column:4},end:{line:50,column:5}},loc:{start:{line:50,column:22},end:{line:56,column:5}},line:50},8:{name:"(anonymous_8)",decl:{start:{line:59,column:4},end:{line:59,column:5}},loc:{start:{line:59,column:25},end:{line:73,column:5}},line:59},9:{name:"(anonymous_9)",decl:{start:{line:61,column:59},end:{line:61,column:60}},loc:{start:{line:61,column:70},end:{line:72,column:7}},line:61},10:{name:"(anonymous_10)",decl:{start:{line:62,column:37},end:{line:62,column:38}},loc:{start:{line:62,column:47},end:{line:67,column:9}},line:62},11:{name:"(anonymous_11)",decl:{start:{line:74,column:4},end:{line:74,column:5}},loc:{start:{line:74,column:29},end:{line:91,column:5}},line:74},12:{name:"(anonymous_12)",decl:{start:{line:92,column:4},end:{line:92,column:5}},loc:{start:{line:92,column:26},end:{line:106,column:5}},line:92},13:{name:"(anonymous_13)",decl:{start:{line:107,column:4},end:{line:107,column:5}},loc:{start:{line:107,column:20},end:{line:118,column:5}},line:107}},branchMap:{0:{loc:{start:{line:25,column:29},end:{line:25,column:51}},type:"binary-expr",locations:[{start:{line:25,column:29},end:{line:25,column:36}},{start:{line:25,column:40},end:{line:25,column:51}}],line:25},1:{loc:{start:{line:51,column:6},end:{line:55,column:7}},type:"if",locations:[{start:{line:51,column:6},end:{line:55,column:7}},{start:{line:53,column:13},end:{line:55,column:7}}],line:51},2:{loc:{start:{line:75,column:6},end:{line:90,column:7}},type:"if",locations:[{start:{line:75,column:6},end:{line:90,column:7}},{start:{line:78,column:13},end:{line:90,column:7}}],line:75},3:{loc:{start:{line:80,column:8},end:{line:89,column:9}},type:"if",locations:[{start:{line:80,column:8},end:{line:89,column:9}},{start:{line:87,column:15},end:{line:89,column:9}}],line:80},4:{loc:{start:{line:81,column:10},end:{line:84,column:18}},type:"binary-expr",locations:[{start:{line:81,column:10},end:{line:81,column:43}},{start:{line:82,column:10},end:{line:84,column:18}}],line:81},5:{loc:{start:{line:93,column:6},end:{line:105,column:7}},type:"if",locations:[{start:{line:93,column:6},end:{line:105,column:7}},{start:{line:100,column:13},end:{line:105,column:7}}],line:93},6:{loc:{start:{line:94,column:8},end:{line:97,column:16}},type:"binary-expr",locations:[{start:{line:94,column:8},end:{line:94,column:41}},{start:{line:95,column:8},end:{line:97,column:16}}],line:94},7:{loc:{start:{line:102,column:8},end:{line:104,column:9}},type:"if",locations:[{start:{line:102,column:8},end:{line:104,column:9}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:102},8:{loc:{start:{line:108,column:6},end:{line:110,column:7}},type:"if",locations:[{start:{line:108,column:6},end:{line:110,column:7}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:108},9:{loc:{start:{line:108,column:10},end:{line:108,column:64}},type:"binary-expr",locations:[{start:{line:108,column:10},end:{line:108,column:35}},{start:{line:108,column:39},end:{line:108,column:64}}],line:108}},s:{0:0,1:0,2:0,3:0,4:0,5:0,6:0,7:0,8:0,9:0,10:0,11:0,12:0,13:0,14:0,15:0,16:0,17:0,18:0,19:0,20:0,21:0,22:0,23:0,24:0,25:0,26:0,27:0,28:0,29:0,30:0,31:0,32:0,33:0,34:0,35:0},f:{0:0,1:0,2:0,3:0,4:0,5:0,6:0,7:0,8:0,9:0,10:0,11:0,12:0,13:0},b:{0:[0,0],1:[0,0],2:[0,0],3:[0,0],4:[0,0],5:[0,0],6:[0,0],7:[0,0],8:[0,0],9:[0,0]},inputSourceMap:{version:3,sources:["NewScreenDialog.vue"],names:[],mappings:";AA4GA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA",file:"NewScreenDialog.vue",sourceRoot:"src/tools/TlmViewer",sourcesContent:['\x3c!--\n# Copyright 2023 OpenC3, Inc.\n# All Rights Reserved.\n#\n# This program is free software; you can modify and/or redistribute it\n# under the terms of the GNU Affero General Public License\n# as published by the Free Software Foundation; version 3 with\n# attribution addendums as found in the LICENSE.txt\n#\n# This program is distributed in the hope that it will be useful,\n# but WITHOUT ANY WARRANTY; without even the implied warranty of\n# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n# GNU Affero General Public License for more details.\n#\n# This file may also be used under the terms of a commercial license\n# if purchased from OpenC3, Inc.\n--\x3e\n\n<template>\n \x3c!-- Dialog for creating new screen --\x3e\n <v-dialog v-model="show" width="600">\n <v-card>\n <v-system-bar>\n <v-spacer />\n <span>Create New Screen</span>\n <v-spacer />\n <v-tooltip top>\n <template v-slot:activator="{ on, attrs }">\n <div v-on="on" v-bind="attrs">\n <v-icon data-test="new-screen-close-icon" @click="show = false">\n mdi-close-box\n </v-icon>\n </div>\n </template>\n <span>Close</span>\n </v-tooltip>\n </v-system-bar>\n <v-card-text>\n <v-alert v-model="duplicateScreenAlert" type="error" dismissible dense>\n Screen {{ newScreenName.toUpperCase() }} already exists!\n </v-alert>\n <v-row class="pt-3">\n <v-col> Screens must belong to a target. Select a target:</v-col>\n </v-row>\n <v-row dense\n ><v-col>\n <v-select\n label="Select Target"\n :items="targets"\n item-text="label"\n item-value="value"\n v-model="selectedTarget"\n @change="targetSelect" /></v-col\n ></v-row>\n\n <v-row dense>\n <v-col\n >Screens can be auto-generated based on an existing Packet. This\n creates a LABELVALUE line for every item in the packet. The screen\n can then be edited and customized.</v-col\n >\n </v-row>\n <v-row dense>\n <v-col>Leave this blank to start with a blank screen.</v-col>\n </v-row>\n <v-row dense>\n <v-col>\n <v-autocomplete\n label="New screen packet"\n hide-details\n dense\n @change="packetNameChanged"\n :items="packetNames"\n item-text="label"\n item-value="value"\n v-model="selectedPacketName"\n data-test="new-screen-packet"\n /></v-col>\n </v-row>\n <v-row dense>\n <v-col>\n <v-text-field\n v-model="newScreenName"\n flat\n autofocus\n clearable\n label="Screen Name (without .txt)"\n :rules="[rules.required]"\n data-test="new-screen-name"\n @keyup="newScreenKeyup($event)" />\n <div class="pl-2" v-if="newScreenSaving">\n <v-progress-circular indeterminate color="primary" /></div\n ></v-col>\n </v-row>\n </v-card-text>\n <v-divider />\n <v-card-actions>\n <v-spacer />\n <v-btn outlined class="mx-2" @click="show = false"> Cancel </v-btn>\n <v-btn color="primary" class="mx-2" @click="saveNewScreen">\n Save\n </v-btn>\n </v-card-actions>\n </v-card>\n </v-dialog>\n</template>\n\n<script>\nimport { OpenC3Api } from \'@openc3/tool-common/src/services/openc3-api\'\n\nexport default {\n props: {\n value: Boolean, // value is the default prop when using v-model\n target: {\n type: String,\n },\n screens: {\n type: Object,\n },\n },\n data() {\n return {\n api: null,\n targets: [],\n newScreenSaving: false,\n newScreenName: \'\',\n duplicateScreenAlert: false,\n packetNames: [],\n selectedTarget: \'\',\n selectedPacketName: \'\',\n rules: {\n required: (value) => !!value || \'Required.\',\n },\n }\n },\n created() {\n this.api = new OpenC3Api()\n this.duplicateScreenAlert = false\n this.newScreenSaving = false\n this.selectedTarget = this.target\n this.api\n .get_target_names({ params: { scope: window.openc3Scope } })\n .then((targets) => {\n this.targets = targets.filter((item) => item !== \'UNKNOWN\')\n })\n this.targetSelect(this.selectedTarget)\n },\n computed: {\n show: {\n get() {\n return this.value\n },\n set(value) {\n this.$emit(\'input\', value) // input is the default event when using v-model\n },\n },\n existingScreens() {\n if (this.screens[this.selectedTarget]) {\n return this.screens[this.selectedTarget].join(\', \')\n } else {\n return \'None\'\n }\n },\n },\n methods: {\n targetSelect(target) {\n this.selectedTarget = target\n this.api.get_all_tlm_names(this.selectedTarget).then((names) => {\n this.packetNames = names.map((name) => {\n return {\n label: name,\n value: name,\n }\n })\n this.packetNames.unshift({\n label: \'[ BLANK ]\',\n value: \'BLANK\',\n })\n })\n },\n packetNameChanged(value) {\n if (value === \'BLANK\') {\n this.newScreenName = \'\'\n this.duplicateScreenAlert = false\n } else {\n this.newScreenName = value.toLowerCase()\n if (\n this.screens[this.selectedTarget] &&\n this.screens[this.selectedTarget].indexOf(\n this.newScreenName.toUpperCase(),\n ) !== -1\n ) {\n this.duplicateScreenAlert = true\n } else {\n this.duplicateScreenAlert = false\n }\n }\n },\n newScreenKeyup(event) {\n if (\n this.screens[this.selectedTarget] &&\n this.screens[this.selectedTarget].indexOf(\n this.newScreenName.toUpperCase(),\n ) !== -1\n ) {\n this.duplicateScreenAlert = true\n } else {\n this.duplicateScreenAlert = false\n if (event.key === \'Enter\') {\n this.saveNewScreen()\n }\n }\n },\n saveNewScreen() {\n if (this.duplicateScreenAlert || this.newScreenName === \'\') {\n return\n }\n this.newScreenSaving = true\n this.$emit(\n \'success\',\n this.newScreenName.toUpperCase(),\n this.selectedPacketName,\n this.selectedTarget,\n )\n },\n },\n}\n<\/script>\n\n<style scoped>\n.v-alert {\n margin-bottom: 0px;\n}\n</style>\n']},_coverageSchema:"1a1c01bbd47fc00a2c39e90264f33305004495a9",hash:"da6b3531dd2b4a41f07244bbf8e8c45a58aba1fa"},a=n[i]||(n[i]={});a[e]&&a[e].hash===t||(a[e]=s);var l=a[e];return U=function(){return l},l}U();const G={props:{value:Boolean,target:{type:String},screens:{type:Object}},data(){return U().f[0]++,U().s[0]++,{api:null,targets:[],newScreenSaving:!1,newScreenName:"",duplicateScreenAlert:!1,packetNames:[],selectedTarget:"",selectedPacketName:"",rules:{required:e=>(U().f[1]++,U().s[1]++,U().b[0][0]++,!!e||(U().b[0][1]++,"Required."))}}},created(){U().f[2]++,U().s[2]++,this.api=new r.x,U().s[3]++,this.duplicateScreenAlert=!1,U().s[4]++,this.newScreenSaving=!1,U().s[5]++,this.selectedTarget=this.target,U().s[6]++,this.api.get_target_names({params:{scope:window.openc3Scope}}).then((e=>{U().f[3]++,U().s[7]++,this.targets=e.filter((e=>(U().f[4]++,U().s[8]++,"UNKNOWN"!==e)))})),U().s[9]++,this.targetSelect(this.selectedTarget)},computed:{show:{get(){return U().f[5]++,U().s[10]++,this.value},set(e){U().f[6]++,U().s[11]++,this.$emit("input",e)}},existingScreens(){return U().f[7]++,U().s[12]++,this.screens[this.selectedTarget]?(U().b[1][0]++,U().s[13]++,this.screens[this.selectedTarget].join(", ")):(U().b[1][1]++,U().s[14]++,"None")}},methods:{targetSelect(e){U().f[8]++,U().s[15]++,this.selectedTarget=e,U().s[16]++,this.api.get_all_tlm_names(this.selectedTarget).then((e=>{U().f[9]++,U().s[17]++,this.packetNames=e.map((e=>(U().f[10]++,U().s[18]++,{label:e,value:e}))),U().s[19]++,this.packetNames.unshift({label:"[ BLANK ]",value:"BLANK"})}))},packetNameChanged(e){U().f[11]++,U().s[20]++,"BLANK"===e?(U().b[2][0]++,U().s[21]++,this.newScreenName="",U().s[22]++,this.duplicateScreenAlert=!1):(U().b[2][1]++,U().s[23]++,this.newScreenName=e.toLowerCase(),U().s[24]++,U().b[4][0]++,this.screens[this.selectedTarget]&&(U().b[4][1]++,-1!==this.screens[this.selectedTarget].indexOf(this.newScreenName.toUpperCase()))?(U().b[3][0]++,U().s[25]++,this.duplicateScreenAlert=!0):(U().b[3][1]++,U().s[26]++,this.duplicateScreenAlert=!1))},newScreenKeyup(e){U().f[12]++,U().s[27]++,U().b[6][0]++,this.screens[this.selectedTarget]&&(U().b[6][1]++,-1!==this.screens[this.selectedTarget].indexOf(this.newScreenName.toUpperCase()))?(U().b[5][0]++,U().s[28]++,this.duplicateScreenAlert=!0):(U().b[5][1]++,U().s[29]++,this.duplicateScreenAlert=!1,U().s[30]++,"Enter"===e.key?(U().b[7][0]++,U().s[31]++,this.saveNewScreen()):U().b[7][1]++)},saveNewScreen(){if(U().f[13]++,U().s[32]++,U().b[9][0]++,this.duplicateScreenAlert||(U().b[9][1]++,""===this.newScreenName))return U().b[8][0]++,void U().s[33]++;U().b[8][1]++,U().s[34]++,this.newScreenSaving=!0,U().s[35]++,this.$emit("success",this.newScreenName.toUpperCase(),this.selectedPacketName,this.selectedTarget)}}},B=G;n(1148);var F=(0,h.A)(B,z,H,!1,null,"77161074",null);const Y=F.exports;var K=function(){var e=this,t=e._self._c;return t("v-dialog",{attrs:{width:"600"},on:{keydown:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"esc",27,t.key,["Esc","Escape"])?null:e.cancel.apply(null,arguments)}},model:{value:e.show,callback:function(t){e.show=t},expression:"show"}},[t("v-card",[t("form",{on:{submit:function(t){return t.preventDefault(),e.success.apply(null,arguments)}}},[t("v-system-bar",[t("v-spacer"),e._v(" "),t("span",[e._v("Open Configuration")]),e._v(" "),t("v-spacer")],1),e._v(" "),t("v-card-text",[t("div",{staticClass:"pa-3"},[t("v-row",{attrs:{dense:""}},[t("v-text-field",{attrs:{label:"search",type:"text","prepend-inner-icon":"mdi-magnify",clearable:"",outlined:"",dense:"","clear-icon":"mdi-close-circle-outline",clearable:"",autofocus:"","single-line":"","hide-details":"","data-test":"search"},model:{value:e.search,callback:function(t){e.search=t},expression:"search"}})],1),e._v(" "),t("v-data-table",{attrs:{"show-select":"","single-select":"","item-key":"configId",search:e.search,headers:e.headers,items:e.configs,"items-per-page":5,"footer-props":{"items-per-page-options":[5]}},on:{"item-selected":e.itemSelected,"click:row":(e,t)=>t.select(e)},scopedSlots:e._u([{key:"item.actions",fn:function({item:n}){return[t("v-btn",{staticClass:"mt-1",attrs:{"data-test":"item-delete",icon:""},on:{click:function(t){return e.deleteConfig(n)}}},[t("v-icon",[e._v("mdi-delete")])],1)]}}])}),e._v(" "),t("v-row",{attrs:{dense:""}},[t("span",{directives:[{name:"show",rawName:"v-show",value:e.error,expression:"error"}],staticClass:"ma-2 red--text",domProps:{textContent:e._s(e.error)}})])],1)]),e._v(" "),t("v-card-actions",[t("v-spacer"),e._v(" "),t("v-btn",{staticClass:"mx-2",attrs:{outlined:"","data-test":"open-config-cancel-btn"},on:{click:e.cancel}},[e._v("\n Cancel\n ")]),e._v(" "),t("v-btn",{staticClass:"mx-2",attrs:{type:"submit",color:"primary","data-test":"open-config-submit-btn",disabled:!!e.error},on:{click:function(t){return t.preventDefault(),e.success.apply(null,arguments)}}},[e._v("\n Ok\n ")])],1)],1)])],1)},j=[];const q={props:{configKey:String,value:Boolean},data(){return{configs:[],headers:[{text:"Configuration",value:"config"},{text:"Actions",value:"actions",align:"end",sortable:!1}],search:null,selectedItem:null}},computed:{error:function(){return""===this.selectedItem||null===this.selectedItem?"Must select a config":null},show:{get(){return this.value},set(e){this.$emit("input",e)}}},mounted(){let e=-1;(new r.x).list_configs(this.configKey).then((t=>{this.configs=t.map((t=>(e+=1,{configId:e,config:t})))})).catch((e=>{this.$emit("warning",`Failed to connect to OpenC3. ${e}`)}))},methods:{itemSelected:function(e){e.value?this.selectedItem=e.item:this.selectedItem=null},success:function(){this.$emit("success",this.selectedItem.config),this.show=!1,this.search=null,this.selectedItem=null},cancel:function(){this.show=!1,this.search=null,this.selectedItem=null},deleteConfig:function(e){this.$dialog.confirm(`Are you sure you want to delete: ${e.config}`,{okText:"Delete",cancelText:"Cancel"}).then((t=>{this.selectedItem.config===e.config&&(this.selectedItem=null),this.configs.splice(this.configs.indexOf(e),1),(new r.x).delete_config(this.configKey,e.config)})).catch((t=>{t&&this.$emit("warning",`Failed to delete config ${e.config} Error: ${t}`)}))}}},X=q;var J=(0,h.A)(X,K,j,!1,null,null,null);const Z=J.exports;var Q=function(){var e=this,t=e._self._c;return t("v-dialog",{attrs:{width:"600"},on:{keydown:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"esc",27,t.key,["Esc","Escape"])?null:e.cancel.apply(null,arguments)}},model:{value:e.show,callback:function(t){e.show=t},expression:"show"}},[t("v-card",[t("form",{on:{submit:function(t){return t.preventDefault(),e.success.apply(null,arguments)}}},[t("v-system-bar",[t("v-spacer"),e._v(" "),t("span",[e._v("Save Configuration")]),e._v(" "),t("v-spacer")],1),e._v(" "),t("v-card-text",[t("div",{staticClass:"pa-3"},[t("v-row",{attrs:{dense:""}},[t("v-text-field",{attrs:{label:"search",type:"text","prepend-inner-icon":"mdi-magnify",clearable:"",outlined:"",dense:"","clear-icon":"mdi-close-circle-outline",clearable:"","single-line":"","hide-details":"","data-test":"search"},model:{value:e.search,callback:function(t){e.search=t},expression:"search"}})],1),e._v(" "),t("v-data-table",{attrs:{"show-select":"","single-select":"","item-key":"configId",search:e.search,headers:e.headers,items:e.configs,"items-per-page":5,"footer-props":{"items-per-page-options":[5]}},on:{"item-selected":e.itemSelected,"click:row":(e,t)=>t.select(e)},scopedSlots:e._u([{key:"item.actions",fn:function({item:n}){return[t("v-btn",{staticClass:"mt-1",attrs:{icon:"","data-test":"item-delete"},on:{click:function(t){return e.deleteConfig(n)}}},[t("v-icon",[e._v("mdi-delete")])],1)]}}])}),e._v(" "),t("v-row",{attrs:{dense:""}},[t("v-text-field",{attrs:{"hide-details":"",autofocus:"",disabled:!!e.selectedItem,label:"Configuration Name","data-test":"name-input-save-config-dialog"},model:{value:e.configName,callback:function(t){e.configName=t},expression:"configName"}})],1),e._v(" "),t("v-row",{attrs:{dense:""}},[t("span",{directives:[{name:"show",rawName:"v-show",value:e.error,expression:"error"}],staticClass:"ma-2 red--text",domProps:{textContent:e._s(e.error)}})])],1)]),e._v(" "),t("v-card-actions",[t("v-spacer"),e._v(" "),t("v-btn",{staticClass:"mx-2",attrs:{outlined:""},on:{click:e.cancel}},[e._v(" Cancel ")]),e._v(" "),t("v-btn",{staticClass:"mx-2",attrs:{type:"submit",color:"primary","data-test":"save-config-submit-btn",disabled:!!e.error},on:{click:function(t){return t.preventDefault(),e.success.apply(null,arguments)}}},[e._v("\n Ok\n ")])],1)],1)])],1)},ee=[];const te={props:{configKey:String,value:Boolean},data(){return{configName:"",configs:[],headers:[{text:"Configuration",value:"config"},{text:"Actions",value:"actions",align:"end",sortable:!1}],search:null,selectedItem:null}},computed:{error:function(){return""===this.configName?"Config must have a name":null},show:{get(){return this.value},set(e){this.$emit("input",e)}}},mounted(){let e=-1;(new r.x).list_configs(this.configKey).then((t=>{this.configs=t.map((t=>(e+=1,{configId:e,config:t})))})).catch((e=>{this.$emit("warning",`Failed to connect to OpenC3. ${e}`)}))},methods:{itemSelected:function(e){e.value?(this.selectedItem=e.item,this.configName=e.item.config):(this.selectedItem=null,this.configName="")},success:function(){this.$emit("success",this.configName),this.show=!1,this.search=null,this.selectedItem=null,this.configName=""},cancel:function(){this.show=!1,this.search=null,this.selectedItem=null,this.configName=""},deleteConfig:function(e){this.$dialog.confirm(`Are you sure you want to delete: ${e.config}`,{okText:"Delete",cancelText:"Cancel"}).then((t=>{this.configName===e.config&&(this.selectedItem=null,this.configName=""),this.configs.splice(this.configs.indexOf(e.config),1),(new r.x).delete_config(this.configKey,e.config)})).catch((t=>{t&&this.$emit("warning",`Failed to delete config ${e.config} Error: ${t}`)}))}}},ne=te;var ie=(0,h.A)(ne,Q,ee,!1,null,null,null);const se=ie.exports;var ae=n(8893);function le(){var e="/openc3/plugins/packages/openc3-cosmos-tool-tlmviewer/src/tools/TlmViewer/TlmViewer.vue",t="060e5c9e195ab7a46f917765edaa58dd20b46147",n=new Function("return this")(),i="__coverage__",s={path:"/openc3/plugins/packages/openc3-cosmos-tool-tlmviewer/src/tools/TlmViewer/TlmViewer.vue",statementMap:{0:{start:{line:22,column:4},end:{line:67,column:5}},1:{start:{line:42,column:16},end:{line:42,column:38}},2:{start:{line:49,column:16},end:{line:49,column:38}},3:{start:{line:56,column:16},end:{line:56,column:30}},4:{start:{line:57,column:16},end:{line:57,column:31}},5:{start:{line:58,column:16},end:{line:58,column:38}},6:{start:{line:72,column:8},end:{line:72,column:50}},7:{start:{line:79,column:6},end:{line:88,column:8}},8:{start:{line:80,column:8},end:{line:87,column:9}},9:{start:{line:93,column:4},end:{line:93,column:30}},10:{start:{line:94,column:4},end:{line:94,column:36}},11:{start:{line:95,column:4},end:{line:122,column:6}},12:{start:{line:96,column:6},end:{line:103,column:8}},13:{start:{line:97,column:20},end:{line:97,column:39}},14:{start:{line:98,column:8},end:{line:101,column:9}},15:{start:{line:100,column:10},end:{line:100,column:47}},16:{start:{line:102,column:8},end:{line:102,column:73}},17:{start:{line:105,column:6},end:{line:105,column:56}},18:{start:{line:106,column:6},end:{line:106,column:64}},19:{start:{line:109,column:6},end:{line:121,column:7}},20:{start:{line:110,column:8},end:{line:110,column:62}},21:{start:{line:111,column:13},end:{line:121,column:7}},22:{start:{line:113,column:8},end:{line:113,column:66}},23:{start:{line:114,column:8},end:{line:114,column:66}},24:{start:{line:116,column:21},end:{line:116,column:45}},25:{start:{line:118,column:8},end:{line:120,column:9}},26:{start:{line:119,column:10},end:{line:119,column:52}},27:{start:{line:123,column:4},end:{line:125,column:6}},28:{start:{line:124,column:6},end:{line:124,column:35}},29:{start:{line:128,column:4},end:{line:132,column:6}},30:{start:{line:133,column:4},end:{line:133,column:47}},31:{start:{line:137,column:6},end:{line:137,column:34}},32:{start:{line:138,column:6},end:{line:138,column:51}},33:{start:{line:141,column:6},end:{line:141,column:34}},34:{start:{line:142,column:6},end:{line:142,column:63}},35:{start:{line:145,column:6},end:{line:145,column:33}},36:{start:{line:148,column:17},end:{line:148,column:41}},37:{start:{line:149,column:6},end:{line:159,column:7}},38:{start:{line:150,column:8},end:{line:150,column:30}},39:{start:{line:151,column:8},end:{line:156,column:10}},40:{start:{line:152,column:10},end:{line:154,column:12}},41:{start:{line:153,column:12},end:{line:153,column:77}},42:{start:{line:155,column:10},end:{line:155,column:25}},43:{start:{line:158,column:8},end:{line:158,column:31}},44:{start:{line:160,column:6},end:{line:178,column:8}},45:{start:{line:168,column:8},end:{line:168,column:36}},46:{start:{line:169,column:8},end:{line:172,column:9}},47:{start:{line:171,column:10},end:{line:171,column:49}},48:{start:{line:173,column:8},end:{line:173,column:49}},49:{start:{line:174,column:8},end:{line:174,column:39}},50:{start:{line:175,column:8},end:{line:175,column:40}},51:{start:{line:176,column:8},end:{line:176,column:40}},52:{start:{line:177,column:8},end:{line:177,column:47}},53:{start:{line:181,column:18},end:{line:183,column:7}},54:{start:{line:182,column:17},end:{line:182,column:61}},55:{start:{line:184,column:6},end:{line:197,column:7}},56:{start:{line:185,column:8},end:{line:196,column:10}},57:{start:{line:186,column:10},end:{line:195,column:12}},58:{start:{line:200,column:6},end:{line:204,column:8}},59:{start:{line:207,column:6},end:{line:207,column:39}},60:{start:{line:208,column:6},end:{line:219,column:8}},61:{start:{line:209,column:8},end:{line:218,column:9}},62:{start:{line:210,column:22},end:{line:215,column:11}},63:{start:{line:216,column:10},end:{line:216,column:31}},64:{start:{line:217,column:10},end:{line:217,column:43}},65:{start:{line:222,column:18},end:{line:224,column:7}},66:{start:{line:223,column:17},end:{line:223,column:61}},67:{start:{line:225,column:6},end:{line:227,column:7}},68:{start:{line:226,column:8},end:{line:226,column:32}},69:{start:{line:230,column:6},end:{line:232,column:7}},70:{start:{line:231,column:8},end:{line:231,column:32}},71:{start:{line:235,column:18},end:{line:237,column:8}},72:{start:{line:238,column:6},end:{line:238,column:29}},73:{start:{line:239,column:6},end:{line:239,column:39}},74:{start:{line:240,column:6},end:{line:242,column:8}},75:{start:{line:241,column:8},end:{line:241,column:29}},76:{start:{line:245,column:6},end:{line:245,column:30}},77:{start:{line:246,column:18},end:{line:246,column:62}},78:{start:{line:247,column:6},end:{line:253,column:7}},79:{start:{line:248,column:8},end:{line:248,column:49}},80:{start:{line:249,column:8},end:{line:252,column:9}},81:{start:{line:251,column:10},end:{line:251,column:48}},82:{start:{line:256,column:6},end:{line:256,column:34}},83:{start:{line:257,column:6},end:{line:257,column:26}},84:{start:{line:258,column:6},end:{line:258,column:28}},85:{start:{line:259,column:6},end:{line:259,column:32}},86:{start:{line:260,column:18},end:{line:262,column:8}},87:{start:{line:263,column:6},end:{line:263,column:29}},88:{start:{line:264,column:6},end:{line:264,column:39}},89:{start:{line:267,column:6},end:{line:267,column:34}},90:{start:{line:268,column:6},end:{line:268,column:26}},91:{start:{line:269,column:6},end:{line:269,column:28}},92:{start:{line:270,column:6},end:{line:270,column:32}},93:{start:{line:271,column:18},end:{line:271,column:73}},94:{start:{line:272,column:6},end:{line:272,column:26}},95:{start:{line:273,column:6},end:{line:273,column:39}},96:{start:{line:276,column:6},end:{line:276,column:34}},97:{start:{line:277,column:6},end:{line:277,column:26}},98:{start:{line:278,column:6},end:{line:278,column:28}},99:{start:{line:279,column:6},end:{line:279,column:32}},100:{start:{line:282,column:6},end:{line:284,column:13}},101:{start:{line:283,column:8},end:{line:283,column:41}},102:{start:{line:287,column:6},end:{line:287,column:35}},103:{start:{line:291,column:6},end:{line:319,column:10}},104:{start:{line:294,column:10},end:{line:315,column:12}},105:{start:{line:295,column:29},end:{line:295,column:45}},106:{start:{line:296,column:12},end:{line:314,column:17}},107:{start:{line:297,column:28},end:{line:297,column:46}},108:{start:{line:298,column:14},end:{line:300,column:15}},109:{start:{line:299,column:16},end:{line:299,column:31}},110:{start:{line:301,column:24},end:{line:301,column:43}},111:{start:{line:302,column:25},end:{line:302,column:45}},112:{start:{line:303,column:27},end:{line:303,column:49}},113:{start:{line:304,column:14},end:{line:313,column:16}},114:{start:{line:318,column:10},end:{line:318,column:43}},115:{start:{line:322,column:6},end:{line:322,column:22}},116:{start:{line:323,column:6},end:{line:323,column:27}},117:{start:{line:325,column:29},end:{line:327,column:8}},118:{start:{line:326,column:8},end:{line:326,column:68}},119:{start:{line:328,column:6},end:{line:328,column:42}},120:{start:{line:331,column:6},end:{line:336,column:8}},121:{start:{line:332,column:8},end:{line:332,column:32}},122:{start:{line:337,column:6},end:{line:337,column:23}},123:{start:{line:340,column:6},end:{line:340,column:51}}},fnMap:{0:{name:"(anonymous_0)",decl:{start:{line:21,column:2},end:{line:21,column:3}},loc:{start:{line:21,column:9},end:{line:68,column:3}},line:21},1:{name:"(anonymous_1)",decl:{start:{line:41,column:23},end:{line:41,column:24}},loc:{start:{line:41,column:29},end:{line:43,column:15}},line:41},2:{name:"(anonymous_2)",decl:{start:{line:48,column:23},end:{line:48,column:24}},loc:{start:{line:48,column:29},end:{line:50,column:15}},line:48},3:{name:"(anonymous_3)",decl:{start:{line:55,column:23},end:{line:55,column:24}},loc:{start:{line:55,column:29},end:{line:59,column:15}},line:55},4:{name:"(anonymous_4)",decl:{start:{line:71,column:15},end:{line:71,column:16}},loc:{start:{line:71,column:27},end:{line:73,column:7}},line:71},5:{name:"(anonymous_5)",decl:{start:{line:78,column:19},end:{line:78,column:20}},loc:{start:{line:78,column:31},end:{line:89,column:5}},line:78},6:{name:"(anonymous_6)",decl:{start:{line:79,column:34},end:{line:79,column:35}},loc:{start:{line:79,column:43},end:{line:88,column:7}},line:79},7:{name:"(anonymous_7)",decl:{start:{line:91,column:2},end:{line:91,column:3}},loc:{start:{line:91,column:12},end:{line:126,column:3}},line:91},8:{name:"(anonymous_8)",decl:{start:{line:95,column:40},end:{line:95,column:41}},loc:{start:{line:95,column:54},end:{line:122,column:5}},line:95},9:{name:"(anonymous_9)",decl:{start:{line:96,column:28},end:{line:96,column:29}},loc:{start:{line:96,column:42},end:{line:103,column:7}},line:96},10:{name:"(anonymous_10)",decl:{start:{line:123,column:61},end:{line:123,column:62}},loc:{start:{line:123,column:75},end:{line:125,column:5}},line:123},11:{name:"(anonymous_11)",decl:{start:{line:127,column:2},end:{line:127,column:3}},loc:{start:{line:127,column:12},end:{line:134,column:3}},line:127},12:{name:"(anonymous_12)",decl:{start:{line:136,column:4},end:{line:136,column:5}},loc:{start:{line:136,column:25},end:{line:139,column:5}},line:136},13:{name:"(anonymous_13)",decl:{start:{line:140,column:4},end:{line:140,column:5}},loc:{start:{line:140,column:25},end:{line:143,column:5}},line:140},14:{name:"(anonymous_14)",decl:{start:{line:144,column:4},end:{line:144,column:5}},loc:{start:{line:144,column:16},end:{line:146,column:5}},line:144},15:{name:"(anonymous_15)",decl:{start:{line:147,column:4},end:{line:147,column:5}},loc:{start:{line:147,column:60},end:{line:179,column:5}},line:147},16:{name:"(anonymous_16)",decl:{start:{line:151,column:60},end:{line:151,column:61}},loc:{start:{line:151,column:72},end:{line:156,column:9}},line:151},17:{name:"(anonymous_17)",decl:{start:{line:152,column:31},end:{line:152,column:32}},loc:{start:{line:152,column:41},end:{line:154,column:11}},line:152},18:{name:"(anonymous_18)",decl:{start:{line:167,column:14},end:{line:167,column:15}},loc:{start:{line:167,column:28},end:{line:178,column:7}},line:167},19:{name:"(anonymous_19)",decl:{start:{line:180,column:4},end:{line:180,column:5}},loc:{start:{line:180,column:31},end:{line:198,column:5}},line:180},20:{name:"(anonymous_20)",decl:{start:{line:182,column:8},end:{line:182,column:9}},loc:{start:{line:182,column:17},end:{line:182,column:61}},line:182},21:{name:"(anonymous_21)",decl:{start:{line:185,column:45},end:{line:185,column:46}},loc:{start:{line:185,column:59},end:{line:196,column:9}},line:185},22:{name:"(anonymous_22)",decl:{start:{line:199,column:4},end:{line:199,column:5}},loc:{start:{line:199,column:31},end:{line:205,column:5}},line:199},23:{name:"(anonymous_23)",decl:{start:{line:206,column:4},end:{line:206,column:5}},loc:{start:{line:206,column:27},end:{line:220,column:5}},line:206},24:{name:"(anonymous_24)",decl:{start:{line:208,column:21},end:{line:208,column:22}},loc:{start:{line:208,column:33},end:{line:219,column:7}},line:208},25:{name:"(anonymous_25)",decl:{start:{line:221,column:4},end:{line:221,column:5}},loc:{start:{line:221,column:38},end:{line:228,column:5}},line:221},26:{name:"(anonymous_26)",decl:{start:{line:223,column:8},end:{line:223,column:9}},loc:{start:{line:223,column:17},end:{line:223,column:61}},line:223},27:{name:"(anonymous_27)",decl:{start:{line:229,column:4},end:{line:229,column:5}},loc:{start:{line:229,column:15},end:{line:233,column:5}},line:229},28:{name:"(anonymous_28)",decl:{start:{line:234,column:4},end:{line:234,column:5}},loc:{start:{line:234,column:20},end:{line:243,column:5}},line:234},29:{name:"(anonymous_29)",decl:{start:{line:240,column:49},end:{line:240,column:50}},loc:{start:{line:240,column:72},end:{line:242,column:7}},line:240},30:{name:"(anonymous_30)",decl:{start:{line:244,column:4},end:{line:244,column:5}},loc:{start:{line:244,column:22},end:{line:254,column:5}},line:244},31:{name:"(anonymous_31)",decl:{start:{line:255,column:4},end:{line:255,column:5}},loc:{start:{line:255,column:56},end:{line:265,column:5}},line:255},32:{name:"(anonymous_32)",decl:{start:{line:266,column:4},end:{line:266,column:5}},loc:{start:{line:266,column:58},end:{line:274,column:5}},line:266},33:{name:"(anonymous_33)",decl:{start:{line:275,column:4},end:{line:275,column:5}},loc:{start:{line:275,column:55},end:{line:280,column:5}},line:275},34:{name:"(anonymous_34)",decl:{start:{line:281,column:4},end:{line:281,column:5}},loc:{start:{line:281,column:20},end:{line:285,column:5}},line:281},35:{name:"(anonymous_35)",decl:{start:{line:282,column:17},end:{line:282,column:18}},loc:{start:{line:282,column:23},end:{line:284,column:7}},line:282},36:{name:"(anonymous_36)",decl:{start:{line:286,column:4},end:{line:286,column:5}},loc:{start:{line:286,column:17},end:{line:288,column:5}},line:286},37:{name:"(anonymous_37)",decl:{start:{line:289,column:4},end:{line:289,column:5}},loc:{start:{line:289,column:30},end:{line:320,column:5}},line:289},38:{name:"(anonymous_38)",decl:{start:{line:292,column:14},end:{line:292,column:15}},loc:{start:{line:292,column:29},end:{line:316,column:9}},line:292},39:{name:"(anonymous_39)",decl:{start:{line:294,column:25},end:{line:294,column:26}},loc:{start:{line:294,column:48},end:{line:315,column:11}},line:294},40:{name:"(anonymous_40)",decl:{start:{line:296,column:23},end:{line:296,column:24}},loc:{start:{line:296,column:29},end:{line:314,column:13}},line:296},41:{name:"(anonymous_41)",decl:{start:{line:317,column:14},end:{line:317,column:15}},loc:{start:{line:317,column:20},end:{line:319,column:9}},line:317},42:{name:"(anonymous_42)",decl:{start:{line:321,column:17},end:{line:321,column:18}},loc:{start:{line:321,column:35},end:{line:329,column:5}},line:321},43:{name:"(anonymous_43)",decl:{start:{line:325,column:40},end:{line:325,column:41}},loc:{start:{line:325,column:56},end:{line:327,column:7}},line:325},44:{name:"(anonymous_44)",decl:{start:{line:330,column:23},end:{line:330,column:24}},loc:{start:{line:330,column:55},end:{line:338,column:5}},line:330},45:{name:"(anonymous_45)",decl:{start:{line:331,column:40},end:{line:331,column:41}},loc:{start:{line:331,column:52},end:{line:336,column:7}},line:331},46:{name:"(anonymous_46)",decl:{start:{line:339,column:23},end:{line:339,column:24}},loc:{start:{line:339,column:39},end:{line:341,column:5}},line:339}},branchMap:{0:{loc:{start:{line:98,column:8},end:{line:101,column:9}},type:"if",locations:[{start:{line:98,column:8},end:{line:101,column:9}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:98},1:{loc:{start:{line:109,column:6},end:{line:121,column:7}},type:"if",locations:[{start:{line:109,column:6},end:{line:121,column:7}},{start:{line:111,column:13},end:{line:121,column:7}}],line:109},2:{loc:{start:{line:109,column:10},end:{line:109,column:55}},type:"binary-expr",locations:[{start:{line:109,column:10},end:{line:109,column:27}},{start:{line:109,column:31},end:{line:109,column:55}}],line:109},3:{loc:{start:{line:111,column:13},end:{line:121,column:7}},type:"if",locations:[{start:{line:111,column:13},end:{line:121,column:7}},{start:{line:115,column:13},end:{line:121,column:7}}],line:111},4:{loc:{start:{line:111,column:17},end:{line:111,column:71}},type:"binary-expr",locations:[{start:{line:111,column:17},end:{line:111,column:42}},{start:{line:111,column:46},end:{line:111,column:71}}],line:111},5:{loc:{start:{line:118,column:8},end:{line:120,column:9}},type:"if",locations:[{start:{line:118,column:8},end:{line:120,column:9}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:118},6:{loc:{start:{line:149,column:6},end:{line:159,column:7}},type:"if",locations:[{start:{line:149,column:6},end:{line:159,column:7}},{start:{line:157,column:13},end:{line:159,column:7}}],line:149},7:{loc:{start:{line:149,column:10},end:{line:149,column:46}},type:"binary-expr",locations:[{start:{line:149,column:10},end:{line:149,column:20}},{start:{line:149,column:24},end:{line:149,column:46}}],line:149},8:{loc:{start:{line:169,column:8},end:{line:172,column:9}},type:"if",locations:[{start:{line:169,column:8},end:{line:172,column:9}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:169},9:{loc:{start:{line:182,column:17},end:{line:182,column:61}},type:"binary-expr",locations:[{start:{line:182,column:17},end:{line:182,column:37}},{start:{line:182,column:41},end:{line:182,column:61}}],line:182},10:{loc:{start:{line:184,column:6},end:{line:197,column:7}},type:"if",locations:[{start:{line:184,column:6},end:{line:197,column:7}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:184},11:{loc:{start:{line:209,column:8},end:{line:218,column:9}},type:"if",locations:[{start:{line:209,column:8},end:{line:218,column:9}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:209},12:{loc:{start:{line:223,column:17},end:{line:223,column:61}},type:"binary-expr",locations:[{start:{line:223,column:17},end:{line:223,column:37}},{start:{line:223,column:41},end:{line:223,column:61}}],line:223},13:{loc:{start:{line:225,column:6},end:{line:227,column:7}},type:"if",locations:[{start:{line:225,column:6},end:{line:227,column:7}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:225},14:{loc:{start:{line:247,column:6},end:{line:253,column:7}},type:"if",locations:[{start:{line:247,column:6},end:{line:253,column:7}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:247},15:{loc:{start:{line:249,column:8},end:{line:252,column:9}},type:"if",locations:[{start:{line:249,column:8},end:{line:252,column:9}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:249},16:{loc:{start:{line:298,column:14},end:{line:300,column:15}},type:"if",locations:[{start:{line:298,column:14},end:{line:300,column:15}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:298},17:{loc:{start:{line:301,column:24},end:{line:301,column:43}},type:"binary-expr",locations:[{start:{line:301,column:24},end:{line:301,column:38}},{start:{line:301,column:42},end:{line:301,column:43}}],line:301},18:{loc:{start:{line:302,column:25},end:{line:302,column:45}},type:"binary-expr",locations:[{start:{line:302,column:25},end:{line:302,column:40}},{start:{line:302,column:44},end:{line:302,column:45}}],line:302},19:{loc:{start:{line:303,column:27},end:{line:303,column:49}},type:"binary-expr",locations:[{start:{line:303,column:27},end:{line:303,column:44}},{start:{line:303,column:48},end:{line:303,column:49}}],line:303},20:{loc:{start:{line:330,column:39},end:{line:330,column:53}},type:"default-arg",locations:[{start:{line:330,column:48},end:{line:330,column:53}}],line:330}},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},f:{0:0,1:0,2:0,3:0,4:0,5:0,6:0,7:0,8:0,9:0,10:0,11:0,12:0,13:0,14:0,15:0,16:0,17:0,18:0,19:0,20:0,21:0,22:0,23:0,24:0,25:0,26:0,27:0,28:0,29:0,30:0,31:0,32:0,33:0,34:0,35:0,36:0,37:0,38:0,39:0,40:0,41:0,42:0,43:0,44:0,45:0,46:0},b:{0:[0,0],1:[0,0],2:[0,0],3:[0,0],4:[0,0],5:[0,0],6:[0,0],7:[0,0],8:[0,0],9:[0,0],10:[0,0],11:[0,0],12:[0,0],13:[0,0],14:[0,0],15:[0,0],16:[0,0],17:[0,0],18:[0,0],19:[0,0],20:[0]},inputSourceMap:{version:3,sources:["TlmViewer.vue"],names:[],mappings:";AAkIA;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;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA",file:"TlmViewer.vue",sourceRoot:"src/tools/TlmViewer",sourcesContent:['\x3c!--\n# Copyright 2022 Ball Aerospace & Technologies Corp.\n# All Rights Reserved.\n#\n# This program is free software; you can modify and/or redistribute it\n# under the terms of the GNU Affero General Public License\n# as published by the Free Software Foundation; version 3 with\n# attribution addendums as found in the LICENSE.txt\n#\n# This program is distributed in the hope that it will be useful,\n# but WITHOUT ANY WARRANTY; without even the implied warranty of\n# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n# GNU Affero General Public License for more details.\n\n# Modified by OpenC3, Inc.\n# All changes Copyright 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-expansion-panels v-model="panel" style="margin-bottom: 5px">\n <v-expansion-panel>\n <v-expansion-panel-header></v-expansion-panel-header>\n <v-expansion-panel-content>\n <v-container>\n <v-row class="pt-3">\n <v-select\n class="pa-0 mr-4"\n dense\n hide-details\n outlined\n label="Select Target"\n :items="Object.keys(screens).sort()"\n item-text="label"\n item-value="value"\n v-model="selectedTarget"\n @change="targetSelect"\n style="max-width: 300px"\n />\n <v-select\n class="pa-0 mr-4"\n dense\n hide-details\n outlined\n label="Select Screen"\n :items="screens[selectedTarget]"\n v-model="selectedScreen"\n @change="screenSelect"\n style="max-width: 300px"\n />\n <v-btn\n class="primary mr-2"\n :disabled="!selectedScreen"\n @click="() => showScreen(selectedTarget, selectedScreen)"\n data-test="show-screen"\n >\n Show\n </v-btn>\n <v-btn\n class="primary"\n @click="() => newScreen(selectedTarget)"\n data-test="new-screen"\n >\n New Screen\n <v-icon> mdi-file-plus</v-icon>\n </v-btn>\n </v-row>\n </v-container>\n </v-expansion-panel-content>\n </v-expansion-panel>\n </v-expansion-panels>\n <div class="grid">\n <div\n class="item"\n v-for="def in definitions"\n :key="def.id"\n :id="screenId(def.id)"\n ref="gridItem"\n >\n <div class="item-content">\n <openc3-screen\n :target="def.target"\n :screen="def.screen"\n :definition="def.definition"\n :keywords="keywords"\n :initialFloated="def.floated"\n :initialTop="def.top"\n :initialLeft="def.left"\n :initialZ="def.zIndex"\n @close-screen="closeScreen(def.id)"\n @min-max-screen="refreshLayout"\n @add-new-screen="($event) => showScreen(...$event)"\n @delete-screen="deleteScreen(def)"\n @float-screen="floatScreen(def, ...$event)"\n @unfloat-screen="unfloatScreen(def, ...$event)"\n @drag-screen="dragScreen(def, ...$event)"\n @edit-screen="refreshLayout"\n />\n </div>\n </div>\n </div>\n \x3c!-- Dialogs for opening and saving configs --\x3e\n <open-config-dialog\n v-if="openConfig"\n v-model="openConfig"\n :configKey="configKey"\n @success="openConfiguration"\n />\n <save-config-dialog\n v-if="saveConfig"\n v-model="saveConfig"\n :configKey="configKey"\n @success="saveConfiguration"\n />\n <new-screen-dialog\n v-if="newScreenDialog"\n v-model="newScreenDialog"\n :target="selectedTarget"\n :screens="screens"\n @success="saveNewScreen"\n />\n </div>\n</template>\n\n<script>\nimport Api from \'@openc3/tool-common/src/services/api\'\nimport Config from \'@openc3/tool-common/src/components/config/Config\'\nimport { OpenC3Api } from \'@openc3/tool-common/src/services/openc3-api\'\nimport TopBar from \'@openc3/tool-common/src/components/TopBar\'\nimport Openc3Screen from \'@openc3/tool-common/src/components/Openc3Screen\'\nimport NewScreenDialog from \'./NewScreenDialog\'\nimport OpenConfigDialog from \'@openc3/tool-common/src/components/config/OpenConfigDialog\'\nimport SaveConfigDialog from \'@openc3/tool-common/src/components/config/SaveConfigDialog\'\nimport Muuri from \'muuri\'\n\nexport default {\n components: {\n TopBar,\n Openc3Screen,\n NewScreenDialog,\n OpenConfigDialog,\n SaveConfigDialog,\n },\n mixins: [Config],\n data() {\n return {\n title: \'Telemetry Viewer\',\n panel: 0,\n counter: 0,\n definitions: [],\n screens: {},\n selectedTarget: \'\',\n selectedScreen: \'\',\n newScreenDialog: false,\n grid: null,\n api: null,\n keywords: [],\n menus: [\n {\n label: \'File\',\n items: [\n {\n label: \'Open Configuration\',\n icon: \'mdi-folder-open\',\n command: () => {\n this.openConfig = true\n },\n },\n {\n label: \'Save Configuration\',\n icon: \'mdi-content-save\',\n command: () => {\n this.saveConfig = true\n },\n },\n {\n label: \'Reset Configuration\',\n icon: \'mdi-monitor-shimmer\',\n command: () => {\n this.panel = 0 // Expand the expansion panel\n this.closeAll()\n this.resetConfigBase()\n },\n },\n ],\n },\n ],\n configKey: \'telemetry_viewer\',\n openConfig: false,\n saveConfig: false,\n }\n },\n watch: {\n definitions: {\n handler: function () {\n this.saveDefaultConfig(this.currentConfig)\n },\n deep: true,\n },\n },\n computed: {\n currentConfig: function () {\n return this.definitions.map((def) => {\n return {\n screen: def.screen,\n target: def.target,\n floated: def.floated,\n top: def.top,\n left: def.left,\n zIndex: def.zIndex,\n }\n })\n },\n },\n created() {\n // Ensure Offline Access Is Setup For the Current User\n this.api = new OpenC3Api()\n this.api.ensure_offline_access()\n Api.get(\'/openc3-api/screens\').then((response) => {\n response.data.forEach((filename) => {\n let parts = filename.split(\'/\')\n if (this.screens[parts[0]] === undefined) {\n // Must call this.$set to allow Vue to make the screen arrays reactive\n this.$set(this.screens, parts[0], [])\n }\n this.screens[parts[0]].push(parts[2].split(\'.\')[0].toUpperCase())\n })\n // Select the first target and screen as an optimization\n this.selectedTarget = Object.keys(this.screens)[0]\n this.selectedScreen = this.screens[this.selectedTarget][0]\n\n // Called like /tools/tlmviewer?config=ground\n if (this.$route.query && this.$route.query.config) {\n this.openConfiguration(this.$route.query.config, true) // routed\n } else if (this.$route.params.target && this.$route.params.screen) {\n // If we\'re passed in a target / packet as part of the route\n this.targetSelect(this.$route.params.target.toUpperCase())\n this.screenSelect(this.$route.params.screen.toUpperCase())\n } else {\n let config = this.loadDefaultConfig()\n // Only apply the config if it\'s not an empty object (config does not exist)\n if (JSON.stringify(config) !== \'{}\') {\n this.applyConfig(this.loadDefaultConfig())\n }\n }\n })\n Api.get(\'/openc3-api/autocomplete/keywords/screen\').then((response) => {\n this.keywords = response.data\n })\n },\n mounted() {\n this.grid = new Muuri(\'.grid\', {\n dragEnabled: true,\n // Only allow drags starting from the v-system-bar title\n dragHandle: \'.v-system-bar\',\n })\n this.grid.on(\'dragEnd\', this.refreshLayout)\n },\n methods: {\n targetSelect(target) {\n this.selectedTarget = target\n this.selectedScreen = this.screens[target][0]\n },\n screenSelect(screen) {\n this.selectedScreen = screen\n this.showScreen(this.selectedTarget, this.selectedScreen)\n },\n newScreen() {\n this.newScreenDialog = true\n },\n async saveNewScreen(screenName, packetName, targetName) {\n let text = \'SCREEN AUTO AUTO 1.0\\n\'\n if (packetName && packetName !== \'BLANK\') {\n text += \'\\nVERTICAL\\n\'\n await this.api.get_tlm(targetName, packetName).then((packet) => {\n packet.items.forEach((item) => {\n text += ` LABELVALUE ${targetName} ${packetName} ${item.name}\\n`\n })\n text += \'END\\n\'\n })\n } else {\n text += \'\\nLABEL NEW\\n\'\n }\n Api.post(\'/openc3-api/screen/\', {\n data: {\n scope: window.openc3Scope,\n target: targetName,\n screen: screenName,\n text: text,\n },\n }).then((response) => {\n this.newScreenDialog = false\n if (this.screens[targetName] === undefined) {\n // Must call this.$set to allow Vue to make the screen arrays reactive\n this.$set(this.screens, targetName, [])\n }\n this.screens[targetName].push(screenName)\n this.screens[targetName].sort()\n this.selectedTarget = targetName\n this.selectedScreen = screenName\n this.showScreen(targetName, screenName)\n })\n },\n showScreen(target, screen) {\n const def = this.definitions.find(\n (def) => def.target == target && def.screen == screen,\n )\n if (!def) {\n this.loadScreen(target, screen).then((response) => {\n this.pushScreen({\n id: this.counter++,\n target: target,\n screen: screen,\n definition: response.data,\n floated: false,\n top: 0,\n left: 0,\n zIndex: 0,\n })\n })\n }\n },\n loadScreen(target, screen) {\n return Api.get(\'/openc3-api/screen/\' + target + \'/\' + screen, {\n headers: {\n Accept: \'text/plain\',\n },\n })\n },\n pushScreen(definition) {\n this.definitions.push(definition)\n this.$nextTick(function () {\n if (!definition.floated) {\n var items = this.grid.add(\n this.$refs.gridItem[this.$refs.gridItem.length - 1],\n {\n active: false,\n },\n )\n this.grid.show(items)\n this.grid.refreshItems().layout()\n }\n })\n },\n closeScreenByName(target, screen) {\n const def = this.definitions.find(\n (def) => def.target == target && def.screen == screen,\n )\n if (def) {\n this.closeScreen(def.id)\n }\n },\n closeAll() {\n for (const def of this.definitions) {\n this.closeScreen(def.id)\n }\n },\n closeScreen(id) {\n var items = this.grid.getItems([\n document.getElementById(this.screenId(id)),\n ])\n this.grid.remove(items)\n this.grid.refreshItems().layout()\n this.definitions = this.definitions.filter((value, index, arr) => {\n return value.id != id\n })\n },\n deleteScreen(def) {\n this.closeScreen(def.id)\n var index = this.screens[def.target].indexOf(def.screen)\n if (index !== -1) {\n this.screens[def.target].splice(index, 1)\n if (this.screens[def.target].length === 0) {\n // Must call this.$delete to notify Vue of property deletion\n this.$delete(this.screens, def.target)\n }\n }\n },\n floatScreen(definition, floated, top, left, zIndex) {\n definition.floated = floated\n definition.top = top\n definition.left = left\n definition.zIndex = zIndex\n var items = this.grid.getItems([\n document.getElementById(this.screenId(definition.id)),\n ])\n this.grid.remove(items)\n this.grid.refreshItems().layout()\n },\n unfloatScreen(definition, floated, top, left, zIndex) {\n definition.floated = floated\n definition.top = top\n definition.left = left\n definition.zIndex = zIndex\n var items = [document.getElementById(this.screenId(definition.id))]\n this.grid.add(items)\n this.grid.refreshItems().layout()\n },\n dragScreen(definition, floated, top, left, zIndex) {\n definition.floated = floated\n definition.top = top\n definition.left = left\n definition.zIndex = zIndex\n },\n refreshLayout() {\n setTimeout(() => {\n this.grid.refreshItems().layout()\n }, 600) // TODO: Is 600ms ok for all screens?\n },\n screenId(id) {\n return \'tlmViewerScreen\' + id\n },\n loadAll(config, promises) {\n // Wait until they\'re all loaded\n Promise.all(promises)\n .then((responses) => {\n // Then add all the screens in order\n config.forEach((definition, index) => {\n const response = responses[index]\n setTimeout(() => {\n let floated = definition.floated\n if (!floated) {\n floated = false\n }\n let top = definition.top || 0\n let left = definition.left || 0\n let zIndex = definition.zIndex || 0\n this.pushScreen({\n id: this.counter++,\n target: definition.target,\n screen: definition.screen,\n definition: response.data,\n floated: floated,\n top: top,\n left: left,\n zIndex: zIndex,\n })\n }, 0) // I don\'t even know... but Muuri complains if this isn\'t in a setTimeout\n })\n })\n .then(() => {\n setTimeout(this.refreshLayout, 0) // Muuri probably stacked some, so refresh that\n })\n },\n applyConfig: function (config) {\n this.counter = 0\n this.definitions = []\n // Load all the screen definitions from the API at once\n const screenPromises = config.map((definition) => {\n return this.loadScreen(definition.target, definition.screen)\n })\n this.loadAll(config, screenPromises)\n },\n openConfiguration: function (name, routed = false) {\n this.openConfigBase(name, routed, (config) => {\n this.applyConfig(config)\n // No need to this.saveDefaultConfig(config)\n // because applyConfig calls loadAll which calls pushScreen\n // which does a this.saveDefaultConfig(this.currentConfig)\n })\n this.panel = null // Minimize the expansion panel\n },\n saveConfiguration: function (name) {\n this.saveConfigBase(name, this.currentConfig)\n },\n },\n}\n<\/script>\n\n<style>\n/* Flash the chevron icon 3 times to let the user know they can minimize the controls */\ni.v-icon.mdi-chevron-down {\n animation: pulse 2s 3;\n}\n@keyframes pulse {\n 0% {\n -webkit-box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.4);\n }\n 70% {\n -webkit-box-shadow: 0 0 0 10px rgba(255, 255, 255, 0);\n }\n 100% {\n -webkit-box-shadow: 0 0 0 0 rgba(255, 255, 255, 0);\n }\n}\n</style>\n<style scoped>\n.v-expansion-panel-content {\n .container {\n margin: 0px;\n }\n}\n.v-expansion-panel-header {\n min-height: 10px;\n padding: 5px;\n}\n.grid {\n position: relative;\n}\n.item {\n position: absolute;\n display: block;\n margin: 5px;\n z-index: 1;\n}\n.item.muuri-item-dragging {\n z-index: 3;\n}\n.item.muuri-item-releasing {\n z-index: 2;\n}\n.item.muuri-item-hidden {\n z-index: 0;\n}\n.item-content {\n position: relative;\n cursor: pointer;\n border-radius: 6px;\n}\n</style>\n']},_coverageSchema:"1a1c01bbd47fc00a2c39e90264f33305004495a9",hash:"060e5c9e195ab7a46f917765edaa58dd20b46147"},a=n[i]||(n[i]={});a[e]&&a[e].hash===t||(a[e]=s);var l=a[e];return le=function(){return l},l}le();const re={components:{TopBar:v,Openc3Screen:R,NewScreenDialog:Y,OpenConfigDialog:Z,SaveConfigDialog:se},mixins:[o],data(){return le().f[0]++,le().s[0]++,{title:"Telemetry Viewer",panel:0,counter:0,definitions:[],screens:{},selectedTarget:"",selectedScreen:"",newScreenDialog:!1,grid:null,api:null,keywords:[],menus:[{label:"File",items:[{label:"Open Configuration",icon:"mdi-folder-open",command:()=>{le().f[1]++,le().s[1]++,this.openConfig=!0}},{label:"Save Configuration",icon:"mdi-content-save",command:()=>{le().f[2]++,le().s[2]++,this.saveConfig=!0}},{label:"Reset Configuration",icon:"mdi-monitor-shimmer",command:()=>{le().f[3]++,le().s[3]++,this.panel=0,le().s[4]++,this.closeAll(),le().s[5]++,this.resetConfigBase()}}]}],configKey:"telemetry_viewer",openConfig:!1,saveConfig:!1}},watch:{definitions:{handler:function(){le().f[4]++,le().s[6]++,this.saveDefaultConfig(this.currentConfig)},deep:!0}},computed:{currentConfig:function(){return le().f[5]++,le().s[7]++,this.definitions.map((e=>(le().f[6]++,le().s[8]++,{screen:e.screen,target:e.target,floated:e.floated,top:e.top,left:e.left,zIndex:e.zIndex})))}},created(){le().f[7]++,le().s[9]++,this.api=new r.x,le().s[10]++,this.api.ensure_offline_access(),le().s[11]++,l.A.get("/openc3-api/screens").then((e=>{if(le().f[8]++,le().s[12]++,e.data.forEach((e=>{le().f[9]++;let t=(le().s[13]++,e.split("/"));le().s[14]++,void 0===this.screens[t[0]]?(le().b[0][0]++,le().s[15]++,this.$set(this.screens,t[0],[])):le().b[0][1]++,le().s[16]++,this.screens[t[0]].push(t[2].split(".")[0].toUpperCase())})),le().s[17]++,this.selectedTarget=Object.keys(this.screens)[0],le().s[18]++,this.selectedScreen=this.screens[this.selectedTarget][0],le().s[19]++,le().b[2][0]++,this.$route.query&&(le().b[2][1]++,this.$route.query.config))le().b[1][0]++,le().s[20]++,this.openConfiguration(this.$route.query.config,!0);else if(le().b[1][1]++,le().s[21]++,le().b[4][0]++,this.$route.params.target&&(le().b[4][1]++,this.$route.params.screen))le().b[3][0]++,le().s[22]++,this.targetSelect(this.$route.params.target.toUpperCase()),le().s[23]++,this.screenSelect(this.$route.params.screen.toUpperCase());else{le().b[3][1]++;let e=(le().s[24]++,this.loadDefaultConfig());le().s[25]++,"{}"!==JSON.stringify(e)?(le().b[5][0]++,le().s[26]++,this.applyConfig(this.loadDefaultConfig())):le().b[5][1]++}})),le().s[27]++,l.A.get("/openc3-api/autocomplete/keywords/screen").then((e=>{le().f[10]++,le().s[28]++,this.keywords=e.data}))},mounted(){le().f[11]++,le().s[29]++,this.grid=new ae.A(".grid",{dragEnabled:!0,dragHandle:".v-system-bar"}),le().s[30]++,this.grid.on("dragEnd",this.refreshLayout)},methods:{targetSelect(e){le().f[12]++,le().s[31]++,this.selectedTarget=e,le().s[32]++,this.selectedScreen=this.screens[e][0]},screenSelect(e){le().f[13]++,le().s[33]++,this.selectedScreen=e,le().s[34]++,this.showScreen(this.selectedTarget,this.selectedScreen)},newScreen(){le().f[14]++,le().s[35]++,this.newScreenDialog=!0},async saveNewScreen(e,t,n){le().f[15]++;let i=(le().s[36]++,"SCREEN AUTO AUTO 1.0\n");le().s[37]++,le().b[7][0]++,t&&(le().b[7][1]++,"BLANK"!==t)?(le().b[6][0]++,le().s[38]++,i+="\nVERTICAL\n",le().s[39]++,await this.api.get_tlm(n,t).then((e=>{le().f[16]++,le().s[40]++,e.items.forEach((e=>{le().f[17]++,le().s[41]++,i+=` LABELVALUE ${n} ${t} ${e.name}\n`})),le().s[42]++,i+="END\n"}))):(le().b[6][1]++,le().s[43]++,i+="\nLABEL NEW\n"),le().s[44]++,l.A.post("/openc3-api/screen/",{data:{scope:window.openc3Scope,target:n,screen:e,text:i}}).then((t=>{le().f[18]++,le().s[45]++,this.newScreenDialog=!1,le().s[46]++,void 0===this.screens[n]?(le().b[8][0]++,le().s[47]++,this.$set(this.screens,n,[])):le().b[8][1]++,le().s[48]++,this.screens[n].push(e),le().s[49]++,this.screens[n].sort(),le().s[50]++,this.selectedTarget=n,le().s[51]++,this.selectedScreen=e,le().s[52]++,this.showScreen(n,e)}))},showScreen(e,t){le().f[19]++;const n=(le().s[53]++,this.definitions.find((n=>(le().f[20]++,le().s[54]++,le().b[9][0]++,n.target==e&&(le().b[9][1]++,n.screen==t)))));le().s[55]++,n?le().b[10][1]++:(le().b[10][0]++,le().s[56]++,this.loadScreen(e,t).then((n=>{le().f[21]++,le().s[57]++,this.pushScreen({id:this.counter++,target:e,screen:t,definition:n.data,floated:!1,top:0,left:0,zIndex:0})})))},loadScreen(e,t){return le().f[22]++,le().s[58]++,l.A.get("/openc3-api/screen/"+e+"/"+t,{headers:{Accept:"text/plain"}})},pushScreen(e){le().f[23]++,le().s[59]++,this.definitions.push(e),le().s[60]++,this.$nextTick((function(){if(le().f[24]++,le().s[61]++,e.floated)le().b[11][1]++;else{le().b[11][0]++;var t=(le().s[62]++,this.grid.add(this.$refs.gridItem[this.$refs.gridItem.length-1],{active:!1}));le().s[63]++,this.grid.show(t),le().s[64]++,this.grid.refreshItems().layout()}}))},closeScreenByName(e,t){le().f[25]++;const n=(le().s[65]++,this.definitions.find((n=>(le().f[26]++,le().s[66]++,le().b[12][0]++,n.target==e&&(le().b[12][1]++,n.screen==t)))));le().s[67]++,n?(le().b[13][0]++,le().s[68]++,this.closeScreen(n.id)):le().b[13][1]++},closeAll(){le().f[27]++,le().s[69]++;for(const e of this.definitions)le().s[70]++,this.closeScreen(e.id)},closeScreen(e){le().f[28]++;var t=(le().s[71]++,this.grid.getItems([document.getElementById(this.screenId(e))]));le().s[72]++,this.grid.remove(t),le().s[73]++,this.grid.refreshItems().layout(),le().s[74]++,this.definitions=this.definitions.filter(((t,n,i)=>(le().f[29]++,le().s[75]++,t.id!=e)))},deleteScreen(e){le().f[30]++,le().s[76]++,this.closeScreen(e.id);var t=(le().s[77]++,this.screens[e.target].indexOf(e.screen));le().s[78]++,-1!==t?(le().b[14][0]++,le().s[79]++,this.screens[e.target].splice(t,1),le().s[80]++,0===this.screens[e.target].length?(le().b[15][0]++,le().s[81]++,this.$delete(this.screens,e.target)):le().b[15][1]++):le().b[14][1]++},floatScreen(e,t,n,i,s){le().f[31]++,le().s[82]++,e.floated=t,le().s[83]++,e.top=n,le().s[84]++,e.left=i,le().s[85]++,e.zIndex=s;var a=(le().s[86]++,this.grid.getItems([document.getElementById(this.screenId(e.id))]));le().s[87]++,this.grid.remove(a),le().s[88]++,this.grid.refreshItems().layout()},unfloatScreen(e,t,n,i,s){le().f[32]++,le().s[89]++,e.floated=t,le().s[90]++,e.top=n,le().s[91]++,e.left=i,le().s[92]++,e.zIndex=s;var a=(le().s[93]++,[document.getElementById(this.screenId(e.id))]);le().s[94]++,this.grid.add(a),le().s[95]++,this.grid.refreshItems().layout()},dragScreen(e,t,n,i,s){le().f[33]++,le().s[96]++,e.floated=t,le().s[97]++,e.top=n,le().s[98]++,e.left=i,le().s[99]++,e.zIndex=s},refreshLayout(){le().f[34]++,le().s[100]++,setTimeout((()=>{le().f[35]++,le().s[101]++,this.grid.refreshItems().layout()}),600)},screenId(e){return le().f[36]++,le().s[102]++,"tlmViewerScreen"+e},loadAll(e,t){le().f[37]++,le().s[103]++,Promise.all(t).then((t=>{le().f[38]++,le().s[104]++,e.forEach(((e,n)=>{le().f[39]++;const i=(le().s[105]++,t[n]);le().s[106]++,setTimeout((()=>{le().f[40]++;let t=(le().s[107]++,e.floated);le().s[108]++,t?le().b[16][1]++:(le().b[16][0]++,le().s[109]++,t=!1);let n=(le().s[110]++,le().b[17][0]++,e.top||(le().b[17][1]++,0)),s=(le().s[111]++,le().b[18][0]++,e.left||(le().b[18][1]++,0)),a=(le().s[112]++,le().b[19][0]++,e.zIndex||(le().b[19][1]++,0));le().s[113]++,this.pushScreen({id:this.counter++,target:e.target,screen:e.screen,definition:i.data,floated:t,top:n,left:s,zIndex:a})}),0)}))})).then((()=>{le().f[41]++,le().s[114]++,setTimeout(this.refreshLayout,0)}))},applyConfig:function(e){le().f[42]++,le().s[115]++,this.counter=0,le().s[116]++,this.definitions=[];const t=(le().s[117]++,e.map((e=>(le().f[43]++,le().s[118]++,this.loadScreen(e.target,e.screen)))));le().s[119]++,this.loadAll(e,t)},openConfiguration:function(e,t=(le().b[20][0]++,!1)){le().f[44]++,le().s[120]++,this.openConfigBase(e,t,(e=>{le().f[45]++,le().s[121]++,this.applyConfig(e)})),le().s[122]++,this.panel=null},saveConfiguration:function(e){le().f[46]++,le().s[123]++,this.saveConfigBase(e,this.currentConfig)}}},oe=re;n(5731),n(8367);var ce=(0,h.A)(oe,s,a,!1,null,"01a62a1d",null);const de=ce.exports},9821:(e,t,n)=>{"use strict";n.d(t,{A:()=>d});var i=function(){var e=this,t=e._self._c;return t("v-dialog",{attrs:{width:"600"},model:{value:e.show,callback:function(t){e.show=t},expression:"show"}},[t("v-card",[t("v-system-bar",[t("v-spacer"),e._v(" "),t("span",[e._v(" Details ")]),e._v(" "),t("v-spacer")],1),e._v(" "),t("v-card-title",[e._v("\n "+e._s(e.targetName)+" "+e._s(e.packetName)+" "+e._s(e.itemName)+"\n ")]),e._v(" "),t("v-card-subtitle",[e._v(e._s(e.details.description))]),e._v(" "),t("v-card-text",[t("v-container",{attrs:{fluid:""}},["tlm"===e.type?t("v-row",{attrs:{"no-gutters":""}},[t("v-col",{staticClass:"label",attrs:{cols:"3"}},[e._v("Item Values")]),e._v(" "),t("v-col"),e._v(" "),t("v-container",{staticClass:"ml-5 pa-0",attrs:{fluid:""}},[t("v-row",{attrs:{"no-gutters":""}},[t("v-col",{staticClass:"label",attrs:{cols:"4"}},[e._v("Raw Value")]),e._v(" "),t("v-col",[e._v(e._s(e.rawValue))])],1),e._v(" "),t("v-row",{attrs:{"no-gutters":""}},[t("v-col",{staticClass:"label",attrs:{cols:"4"}},[e._v("Converted Value")]),e._v(" "),t("v-col",[e._v(e._s(e.convertedValue))])],1),e._v(" "),t("v-row",{attrs:{"no-gutters":""}},[t("v-col",{staticClass:"label",attrs:{cols:"4"}},[e._v("Formatted Value")]),e._v(" "),t("v-col",[e._v(e._s(e.formattedValue))])],1),e._v(" "),t("v-row",{attrs:{"no-gutters":""}},[t("v-col",{staticClass:"label",attrs:{cols:"4"}},[e._v("With Units Value")]),e._v(" "),t("v-col",[e._v(e._s(e.unitsValue))])],1)],1)],1):e._e(),e._v(" "),t("v-row",{attrs:{"no-gutters":""}},[t("v-col",{staticClass:"label",attrs:{cols:"3"}},[e._v("Bit Offset")]),e._v(" "),t("v-col",[e._v(e._s(e.details.bit_offset))])],1),e._v(" "),t("v-row",{attrs:{"no-gutters":""}},[t("v-col",{staticClass:"label",attrs:{cols:"3"}},[e._v("Bit Size")]),e._v(" "),t("v-col",[e._v(e._s(e.details.bit_size))])],1),e._v(" "),e.details.array_size?t("v-row",{attrs:{"no-gutters":""}},[t("v-col",{staticClass:"label",attrs:{cols:"3"}},[e._v("Array Size")]),e._v(" "),t("v-col",[e._v(e._s(e.details.array_size))])],1):e._e(),e._v(" "),t("v-row",{attrs:{"no-gutters":""}},[t("v-col",{staticClass:"label",attrs:{cols:"3"}},[e._v("Data Type")]),e._v(" "),t("v-col",[e._v(e._s(e.details.data_type))])],1),e._v(" "),"cmd"===e.type?t("v-row",{attrs:{"no-gutters":""}},[t("v-col",{staticClass:"label",attrs:{cols:"3"}},[e._v("Minimum")]),e._v(" "),t("v-col",[e._v(e._s(e.details.minimum))])],1):e._e(),e._v(" "),"cmd"===e.type?t("v-row",{attrs:{"no-gutters":""}},[t("v-col",{staticClass:"label",attrs:{cols:"3"}},[e._v("Maximum")]),e._v(" "),t("v-col",[e._v(e._s(e.details.maximum))])],1):e._e(),e._v(" "),"cmd"===e.type?t("v-row",{attrs:{"no-gutters":""}},[t("v-col",{staticClass:"label",attrs:{cols:"3"}},[e._v("Default")]),e._v(" "),t("v-col",[e._v(e._s(e.details.default))])],1):e._e(),e._v(" "),t("v-row",{attrs:{"no-gutters":""}},[t("v-col",{staticClass:"label",attrs:{cols:"3"}},[e._v("Format String")]),e._v(" "),t("v-col",[e._v(e._s(e.details.format_string))])],1),e._v(" "),t("v-row",{attrs:{"no-gutters":""}},[t("v-col",{staticClass:"label",attrs:{cols:"3"}},[e._v("Read Conversion")]),e._v(" "),e.details.read_conversion?t("v-col",[e._v("\n Class: "+e._s(e.details.read_conversion.class)+"\n "),t("br"),e._v("\n Params:\n "+e._s(e.details.read_conversion.params)+"\n ")]):t("v-col")],1),e._v(" "),t("v-row",{attrs:{"no-gutters":""}},[t("v-col",{staticClass:"label",attrs:{cols:"3"}},[e._v("Write Conversion")]),e._v(" "),e.details.write_conversion?t("v-col",[e._v("\n Class: "+e._s(e.details.write_conversion.class)+"\n "),t("br"),e._v("\n Params:\n "+e._s(e.details.write_conversion.params)+"\n ")]):t("v-col")],1),e._v(" "),t("v-row",{attrs:{"no-gutters":""}},[t("v-col",{staticClass:"label",attrs:{cols:"3"}},[e._v("Id Value")]),e._v(" "),t("v-col",[e._v(e._s(e.details.id_value))])],1),e._v(" "),t("v-row",{attrs:{"no-gutters":""}},[t("v-col",{staticClass:"label",attrs:{cols:"3"}},[e._v("Units Full")]),e._v(" "),t("v-col",[e._v(e._s(e.details.units_full))])],1),e._v(" "),t("v-row",{attrs:{"no-gutters":""}},[t("v-col",{staticClass:"label",attrs:{cols:"3"}},[e._v("Units Abbr")]),e._v(" "),t("v-col",[e._v(e._s(e.details.units))])],1),e._v(" "),t("v-row",{attrs:{"no-gutters":""}},[t("v-col",{staticClass:"label",attrs:{cols:"3"}},[e._v("Endianness")]),e._v(" "),t("v-col",[e._v(e._s(e.details.endianness))])],1),e._v(" "),e.details.states?t("v-row",{attrs:{"no-gutters":""}},[t("v-col",{staticClass:"label",attrs:{cols:"3"}},[e._v("States")]),e._v(" "),t("v-col"),e._v(" "),t("v-container",{staticClass:"ml-5 pa-0",attrs:{fluid:""}},e._l(e.details.states,(function(n,i){return t("v-row",{key:i,attrs:{"no-gutters":""}},[t("v-col",{staticClass:"label",attrs:{cols:"4"}},[e._v(e._s(i))]),e._v(" "),t("v-col",[e._v(e._s(n.value))])],1)})),1)],1):t("v-row",{attrs:{"no-gutters":""}},[t("v-col",{staticClass:"label",attrs:{cols:"3"}},[e._v("States")]),e._v(" "),t("v-col",[e._v("None")])],1),e._v(" "),e.details.limits?t("v-row",{attrs:{"no-gutters":""}},[t("v-col",{staticClass:"label",attrs:{cols:"3"}},[e._v("Limits")]),e._v(" "),t("v-col"),e._v(" "),t("v-container",{staticClass:"ml-5 pa-0",attrs:{fluid:""}},e._l(e.details.limits,(function(n,i){return t("v-row",{key:i,attrs:{"no-gutters":""}},["enabled"===i?t("v-col",{staticClass:"label",attrs:{cols:"4"}},[e._v("Enabled")]):e._e(),e._v(" "),"enabled"===i?t("v-switch",{attrs:{dense:"","hide-details":""},on:{change:e.changeLimitsEnabled},model:{value:e.details.limits.enabled,callback:function(t){e.$set(e.details.limits,"enabled",t)},expression:"details.limits.enabled"}}):e._e(),e._v(" "),"enabled"!==i?t("v-col",{staticClass:"label",attrs:{cols:"4"}},[e._v(e._s(i))]):e._e(),e._v(" "),"enabled"!==i?t("div",[e._v(e._s(e.formatLimit(n)))]):e._e(),e._v(" "),t("v-col")],1)})),1)],1):t("v-row",{attrs:{"no-gutters":""}},[t("v-col",{staticClass:"label",attrs:{cols:"3"}},[e._v("Limits")]),e._v(" "),t("v-col",[e._v("None")])],1),e._v(" "),e.details.meta?t("v-row",{attrs:{"no-gutters":""}},[t("v-col",{staticClass:"label",attrs:{cols:"3"}},[e._v("Meta")]),e._v(" "),t("v-col"),e._v(" "),t("v-container",{staticClass:"ml-5 pa-0",attrs:{fluid:""}},e._l(e.details.meta,(function(n,i){return t("v-row",{key:i,attrs:{"no-gutters":""}},[t("v-col",{staticClass:"label",attrs:{cols:"4"}},[e._v(e._s(i))]),e._v(" "),t("v-col",[e._v(e._s(n))])],1)})),1)],1):t("v-row",{attrs:{"no-gutters":""}},[t("v-col",{staticClass:"label",attrs:{cols:"3"}},[e._v("Meta")]),e._v(" "),t("v-col",[e._v("None")])],1)],1)],1)],1)],1)},s=[],a=n(4364);const l={props:{type:{default:"tlm",validator:function(e){return-1!==["cmd","tlm"].indexOf(e)}},targetName:String,packetName:String,itemName:String,value:Boolean},data(){return{details:Object,updater:null,rawValue:null,convertedValue:null,formattedValue:null,unitsValue:null}},computed:{show:{get(){return this.value},set(e){this.$emit("input",e)}}},created(){this.api=new a.x},beforeDestroy(){clearInterval(this.updater),this.updater=null},watch:{value:function(e,t){e?(this.requestDetails(),"tlm"===this.type&&(this.updater=setInterval((()=>{this.api.get_tlm_values([`${this.targetName}__${this.packetName}__${this.itemName}__RAW`,`${this.targetName}__${this.packetName}__${this.itemName}__CONVERTED`,`${this.targetName}__${this.packetName}__${this.itemName}__FORMATTED`,`${this.targetName}__${this.packetName}__${this.itemName}__WITH_UNITS`]).then((e=>{for(var t=0;t<e.length;t++){let n=null;if("String"===e[t][0]["json_class"]&&void 0!==e[t][0]["raw"]?n=e[t][0]["raw"]:"BLOCK"===this.details.data_type&&(n=e[t][0]),null!==n){n=n.slice(0,parseInt(this.details.bit_size)/8);let i=!1;n.length>64&&(i=!0),e[t][0]=Array.from(n.slice(0,64),(function(e){return" "===e?"20":("0"+(255&e).toString(16)).slice(-2)})).join(" ").toUpperCase(),i&&(e[t][0]+="...")}}this.details.data_type.includes("INT")&&!this.details.array_size?this.rawValue=`${e[0][0]} (0x${e[0][0].toString(16).toUpperCase()})`:this.rawValue=e[0][0],this.convertedValue=e[1][0],this.formattedValue=e[2][0],this.unitsValue=e[3][0]}))}),1e3))):(clearInterval(this.updater),this.updater=null)}},methods:{async requestDetails(){"tlm"===this.type?await this.api.get_item(this.targetName,this.packetName,this.itemName).then((e=>{if(this.details=e,0===Object.keys(e.limits).length)this.details.limits=null;else{let t=!1;e.limits.enabled&&(t=!0,delete e.limits.enabled),this.details.limits={enabled:t,...e.limits}}})):await this.api.get_parameter(this.targetName,this.packetName,this.itemName).then((e=>{this.details=e}))},async changeLimitsEnabled(){this.details.limits.enabled?await this.api.enable_limits(this.targetName,this.packetName,this.itemName):await this.api.disable_limits(this.targetName,this.packetName,this.itemName)},formatLimit(e){return e.hasOwnProperty("green_low")?"RL/"+e.red_low+" YL/"+e.yellow_low+" YH/"+e.yellow_high+" RH/"+e.red_high+" GL/"+e.green_low+" GH/"+e.green_high:e.hasOwnProperty("red_low")?"RL/"+e.red_low+" YL/"+e.yellow_low+" YH/"+e.yellow_high+" RH/"+e.red_high:e}}},r=l;n(1727);var o=n(2401),c=(0,o.A)(r,i,s,!1,null,"6659f972",null);const d=c.exports},2056:(e,t,n)=>{"use strict";n.d(t,{A:()=>E});var i=function(){var e=this,t=e._self._c;return t("div",[t("v-card",{nativeOn:{click:function(t){return e.$emit("click")}}},[t("v-system-bar",{directives:[{name:"show",rawName:"v-show",value:!e.hideSystemBar,expression:"!hideSystemBar"}],class:e.selectedGraphId===e.id?"active":"inactive"},[t("div",{directives:[{name:"show",rawName:"v-show",value:0!==e.errors.length,expression:"errors.length !== 0"}],staticClass:"mx-2"},[t("v-tooltip",{attrs:{top:""},scopedSlots:e._u([{key:"activator",fn:function({on:n,attrs:i}){return[t("div",e._g(e._b({},"div",i,!1),n),[t("v-icon",{attrs:{"data-test":"error-graph-icon"},on:{click:function(t){e.errorDialog=!0}}},[e._v("mdi-alert")])],1)]}}])},[e._v(" "),t("span",[e._v("Errors")])])],1),e._v(" "),t("v-tooltip",{attrs:{top:""},scopedSlots:e._u([{key:"activator",fn:function({on:n,attrs:i}){return[t("div",e._g(e._b({},"div",i,!1),n),[t("v-icon",{attrs:{"data-test":"edit-graph-icon"},on:{click:function(t){e.editGraph=!0}}},[e._v("\n mdi-pencil\n ")])],1)]}}])},[e._v(" "),t("span",[e._v(" Edit ")])]),e._v(" "),t("v-spacer"),e._v(" "),t("span",[e._v(e._s(e.title))]),e._v(" "),t("v-spacer"),e._v(" "),t("div",{directives:[{name:"show",rawName:"v-show",value:e.expand,expression:"expand"}]},[t("v-tooltip",{attrs:{top:""},scopedSlots:e._u([{key:"activator",fn:function({on:n,attrs:i}){return[t("div",e._g(e._b({},"div",i,!1),n),[t("v-icon",{directives:[{name:"show",rawName:"v-show",value:e.calcFullSize,expression:"calcFullSize"}],attrs:{"data-test":"collapse-all"},on:{click:e.collapseAll}},[e._v("\n mdi-arrow-collapse\n ")]),e._v(" "),t("v-icon",{directives:[{name:"show",rawName:"v-show",value:!e.calcFullSize,expression:"!calcFullSize"}],attrs:{"data-test":"expand-all"},on:{click:e.expandAll}},[e._v("\n mdi-arrow-expand\n ")])],1)]}}])},[e._v(" "),t("span",{directives:[{name:"show",rawName:"v-show",value:e.calcFullSize,expression:"calcFullSize"}]},[e._v(" Collapse ")]),e._v(" "),t("span",{directives:[{name:"show",rawName:"v-show",value:!e.calcFullSize,expression:"!calcFullSize"}]},[e._v(" Expand ")])])],1),e._v(" "),t("div",{directives:[{name:"show",rawName:"v-show",value:e.expand,expression:"expand"}]},[t("v-tooltip",{attrs:{top:""},scopedSlots:e._u([{key:"activator",fn:function({on:n,attrs:i}){return[t("div",e._g(e._b({},"div",i,!1),n),[t("v-icon",{directives:[{name:"show",rawName:"v-show",value:e.fullWidth,expression:"fullWidth"}],attrs:{"data-test":"collapse-width"},on:{click:e.collapseWidth}},[e._v("\n mdi-arrow-collapse-horizontal\n ")]),e._v(" "),t("v-icon",{directives:[{name:"show",rawName:"v-show",value:!e.fullWidth,expression:"!fullWidth"}],attrs:{"data-test":"expand-width"},on:{click:e.expandWidth}},[e._v("\n mdi-arrow-expand-horizontal\n ")])],1)]}}])},[e._v(" "),t("span",{directives:[{name:"show",rawName:"v-show",value:e.fullWidth,expression:"fullWidth"}]},[e._v(" Collapse Width ")]),e._v(" "),t("span",{directives:[{name:"show",rawName:"v-show",value:!e.fullWidth,expression:"!fullWidth"}]},[e._v(" Expand Width ")])])],1),e._v(" "),t("div",{directives:[{name:"show",rawName:"v-show",value:e.expand,expression:"expand"}]},[t("v-tooltip",{attrs:{top:""},scopedSlots:e._u([{key:"activator",fn:function({on:n,attrs:i}){return[t("div",e._g(e._b({},"div",i,!1),n),[t("v-icon",{directives:[{name:"show",rawName:"v-show",value:e.fullHeight,expression:"fullHeight"}],attrs:{"data-test":"collapse-height"},on:{click:e.collapseHeight}},[e._v("\n mdi-arrow-collapse-vertical\n ")]),e._v(" "),t("v-icon",{directives:[{name:"show",rawName:"v-show",value:!e.fullHeight,expression:"!fullHeight"}],attrs:{"data-test":"expand-height"},on:{click:e.expandHeight}},[e._v("\n mdi-arrow-expand-vertical\n ")])],1)]}}])},[e._v(" "),t("span",{directives:[{name:"show",rawName:"v-show",value:e.fullHeight,expression:"fullHeight"}]},[e._v(" Collapse Height ")]),e._v(" "),t("span",{directives:[{name:"show",rawName:"v-show",value:!e.fullHeight,expression:"!fullHeight"}]},[e._v(" Expand Height ")])])],1),e._v(" "),t("v-tooltip",{attrs:{top:""},scopedSlots:e._u([{key:"activator",fn:function({on:n,attrs:i}){return[t("div",e._g(e._b({},"div",i,!1),n),[t("v-icon",{directives:[{name:"show",rawName:"v-show",value:e.expand,expression:"expand"}],attrs:{"data-test":"minimize-screen-icon"},on:{click:e.minMaxTransition}},[e._v("\n mdi-window-minimize\n ")]),e._v(" "),t("v-icon",{directives:[{name:"show",rawName:"v-show",value:!e.expand,expression:"!expand"}],attrs:{"data-test":"maximize-screen-icon"},on:{click:e.minMaxTransition}},[e._v("\n mdi-window-maximize\n ")])],1)]}}])},[e._v(" "),t("span",{directives:[{name:"show",rawName:"v-show",value:e.expand,expression:"expand"}]},[e._v(" Minimize ")]),e._v(" "),t("span",{directives:[{name:"show",rawName:"v-show",value:!e.expand,expression:"!expand"}]},[e._v(" Maximize ")])]),e._v(" "),t("v-tooltip",{attrs:{top:""},scopedSlots:e._u([{key:"activator",fn:function({on:n,attrs:i}){return[t("div",e._g(e._b({},"div",i,!1),n),[t("v-icon",{attrs:{"data-test":"close-graph-icon"},on:{click:function(t){return e.$emit("close-graph")}}},[e._v("\n mdi-close-box\n ")])],1)]}}])},[e._v(" "),t("span",[e._v(" Close ")])])],1),e._v(" "),t("v-expand-transition",[t("div",{directives:[{name:"show",rawName:"v-show",value:e.expand,expression:"expand"}],ref:"chart",staticClass:"pa-1",attrs:{id:"chart"}},[t("div",{attrs:{id:`chart${e.id}`}}),e._v(" "),t("div",{attrs:{id:"betweenCharts"}}),e._v(" "),t("div",{directives:[{name:"show",rawName:"v-show",value:e.showOverview,expression:"showOverview"}],attrs:{id:`overview${e.id}`}})])])],1),e._v(" "),t("v-dialog",{attrs:{"max-width":"700"},on:{keydown:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"esc",27,t.key,["Esc","Escape"])?null:e.$emit("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"),e._v(" "),t("span",[e._v("Edit Graph")]),e._v(" "),t("v-spacer")],1),e._v(" "),t("v-card",{staticClass:"pa-3"},[t("v-tabs",{staticClass:"ml-3",model:{value:e.tab,callback:function(t){e.tab=t},expression:"tab"}},[t("v-tab",{key:0},[e._v(" Settings ")]),e._v(" "),t("v-tab",{key:1},[e._v(" Scale / Lines ")]),e._v(" "),t("v-tab",{key:1},[e._v(" Items ")])],1),e._v(" "),t("v-tabs-items",{model:{value:e.tab,callback:function(t){e.tab=t},expression:"tab"}},[t("v-tab-item",{key:0,staticClass:"tab",attrs:{eager:"true"}},[t("div",{staticClass:"edit-box"},[t("v-row",[t("v-col",[t("v-card-text",{staticClass:"pa-0"},[t("v-text-field",{staticClass:"pb-2",attrs:{label:"Title","hide-details":"","data-test":"edit-graph-title"},model:{value:e.title,callback:function(t){e.title=t},expression:"title"}})],1)],1),e._v(" "),t("v-col",{staticStyle:{}},[t("v-select",{staticStyle:{"max-width":"280px"},attrs:{label:"Legend Position",dense:"",outlined:"","hide-details":"",items:e.legendPositions,"data-test":"edit-legend-position"},model:{value:e.legendPosition,callback:function(t){e.legendPosition=t},expression:"legendPosition"}})],1)],1)],1),e._v(" "),t("div",{staticClass:"edit-box"},[t("v-card-text",{staticClass:"pa-0"},[e._v("\n Select a start date/time for the graph. Leave blank for start\n now.\n ")]),e._v(" "),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}}}),e._v(" "),t("v-card-text",{staticClass:"pa-0"},[e._v("\n Select a end date/time for the graph. Leave blank for continuous\n real-time graphing.\n ")]),e._v(" "),t("date-time-chooser",{attrs:{"date-label":"End Date","time-label":"End Time","date-time":e.graphEndDateTime},on:{"date-time":function(t){e.graphEndDateTime=t}}})],1)]),e._v(" "),t("v-tab-item",{key:1,staticClass:"tab",attrs:{eager:"true"}},[t("div",{staticClass:"edit-box"},[t("v-card-text",{staticClass:"pa-0"},[e._v("\n Set a min or max Y value to override automatic scaling\n ")]),e._v(" "),t("v-row",{attrs:{dense:""}},[t("v-col",{staticClass:"px-2"},[t("v-text-field",{attrs:{"hide-details":"",label:"Min Y Axis (Optional)",type:"number","data-test":"edit-graph-min-y"},model:{value:e.graphMinY,callback:function(t){e.graphMinY=t},expression:"graphMinY"}})],1),e._v(" "),t("v-col",{staticClass:"px-2"},[t("v-text-field",{attrs:{"hide-details":"",label:"Max Y Axis (Optional)",type:"number","data-test":"edit-graph-max-y"},model:{value:e.graphMaxY,callback:function(t){e.graphMaxY=t},expression:"graphMaxY"}})],1)],1)],1),e._v(" "),t("div",{staticClass:"edit-box"},[t("v-card-text",{staticClass:"pa-0"},[e._v("Add horizontal lines to the graph")]),e._v(" "),t("v-data-table",{attrs:{"item-key":"lineId","data-test":"edit-graph-lines",headers:e.lineHeaders,items:e.lines,"items-per-page":5,"footer-props":{itemsPerPageOptions:[5]}},scopedSlots:e._u([{key:"item.yValue",fn:function(n){return[t("v-edit-dialog",{attrs:{"return-value":n.item.yValue},on:{"update:returnValue":function(t){return e.$set(n.item,"yValue",t)},"update:return-value":function(t){return e.$set(n.item,"yValue",t)}},scopedSlots:e._u([{key:"input",fn:function(){return[t("v-text-field",{attrs:{label:"Edit","single-line":"",counter:""},model:{value:n.item.yValue,callback:function(t){e.$set(n.item,"yValue",t)},expression:"props.item.yValue"}})]},proxy:!0}],null,!0)},[e._v("\n "+e._s(n.item.yValue)+"\n ")])]}},{key:"item.color",fn:function(n){return[t("v-edit-dialog",{attrs:{"return-value":n.item.color},on:{"update:returnValue":function(t){return e.$set(n.item,"color",t)},"update:return-value":function(t){return e.$set(n.item,"color",t)}},scopedSlots:e._u([{key:"input",fn:function(){return[t("v-select",{attrs:{outlined:"","hide-details":"",label:"Color",items:e.colors},model:{value:n.item.color,callback:function(t){e.$set(n.item,"color",t)},expression:"props.item.color"}})]},proxy:!0}],null,!0)},[e._v("\n "+e._s(n.item.color)+"\n ")])]}},{key:"footer.prepend",fn:function(){return[t("v-btn",{staticStyle:{"margin-top":"3px"},attrs:{small:""},on:{click:e.addLine}},[e._v("\n New Horizontal Line\n ")]),e._v("\n   Click to edit values, Enter to save\n "),t("v-spacer")]},proxy:!0},{key:"item.actions",fn:function({item:n}){return[t("v-tooltip",{attrs:{top:""},scopedSlots:e._u([{key:"activator",fn:function({on:i,attrs:s}){return[t("div",e._g(e._b({},"div",s,!1),i),[t("v-btn",{attrs:{icon:"","data-test":`delete-line-icon${n.lineId}`},on:{click:()=>e.removeLine(n)}},[t("v-icon",[e._v("mdi-delete")])],1)],1)]}}],null,!0)},[e._v(" "),t("span",[e._v("Remove")])])]}},{key:"no-data",fn:function(){return[t("span",[e._v("Currently no horizontal lines on this graph")])]},proxy:!0}])})],1)]),e._v(" "),t("v-tab-item",{key:2,staticClass:"tab",attrs:{eager:"true"}},[t("v-data-table",{staticClass:"elevation-1 my-2",attrs:{"item-key":"itemId","data-test":"edit-graph-items",headers:e.itemHeaders,items:e.editItems,"items-per-page":5,"footer-props":{"items-per-page-options":[5]}},scopedSlots:e._u([{key:"item.actions",fn:function({item:n}){return[t("v-tooltip",{attrs:{top:""},scopedSlots:e._u([{key:"activator",fn:function({on:i,attrs:s}){return[t("div",e._g(e._b({},"div",s,!1),i),[t("v-btn",{attrs:{icon:"","data-test":`delete-item-icon${n.itemId}`},on:{click:()=>e.removeItems([n])}},[t("v-icon",[e._v("mdi-delete")])],1)],1)]}}],null,!0)},[e._v(" "),t("span",[e._v("Remove")])])]}},{key:"no-data",fn:function(){return[t("span",[e._v("Currently no items on this graph")])]},proxy:!0}])})],1)],1),e._v(" "),t("v-card-actions",[t("v-spacer"),e._v(" "),t("v-btn",{attrs:{color:"primary"},on:{click:e.editGraphClose}},[e._v(" Ok ")])],1)],1)],1),e._v(" "),t("v-dialog",{attrs:{"max-width":"600"},model:{value:e.errorDialog,callback:function(t){e.errorDialog=t},expression:"errorDialog"}},[t("v-system-bar",[t("v-spacer"),e._v(" "),t("span",[e._v("Errors")]),e._v(" "),t("v-spacer")],1),e._v(" "),t("v-card",{staticClass:"pa-3"},[t("v-row",{attrs:{dense:""}},[t("v-text-field",{staticClass:"pb-2",attrs:{readonly:"","hide-details":"",label:"Graph Title"},model:{value:e.title,callback:function(t){e.title=t},expression:"title"}})],1),e._v(" "),t("v-row",{staticClass:"my-3"},[t("v-textarea",{attrs:{readonly:"",rows:"8",value:e.error}})],1),e._v(" "),t("v-row",[t("v-btn",{attrs:{block:""},on:{click:e.clearErrors}},[e._v(" Clear ")])],1)],1)],1),e._v(" "),e.editGraphMenu?t("v-menu",{attrs:{"position-x":e.editGraphMenuX,"position-y":e.editGraphMenuY,absolute:"","offset-y":""},model:{value:e.editGraphMenu,callback:function(t){e.editGraphMenu=t},expression:"editGraphMenu"}},[t("v-list",[t("v-list-item",{on:{click:function(t){e.editGraph=!0}}},[t("v-list-item-title",{staticStyle:{cursor:"pointer"}},[e._v("\n Edit "+e._s(e.title)+"\n ")])],1)],1)],1):e._e(),e._v(" "),e.editItem?t("graph-edit-item-dialog",{attrs:{colors:e.colors,item:e.selectedItem},on:{changeColor:e.changeColor,changeLimits:e.changeLimits,cancel:function(t){e.editItem=!1},close:e.closeEditItem},model:{value:e.editItem,callback:function(t){e.editItem=t},expression:"editItem"}}):e._e(),e._v(" "),e.itemMenu?t("v-menu",{attrs:{"position-x":e.itemMenuX,"position-y":e.itemMenuY,absolute:"","offset-y":""},model:{value:e.itemMenu,callback:function(t){e.itemMenu=t},expression:"itemMenu"}},[t("v-list",{attrs:{nav:"",dense:""}},[t("v-subheader",[e._v("\n "+e._s(e.selectedItem.targetName)+"\n "+e._s(e.selectedItem.packetName)+"\n "+e._s(e.selectedItem.itemName)+"\n ")]),e._v(" "),t("v-list-item",{on:{click:function(t){e.editItem=!0}}},[t("v-list-item-icon",[t("v-icon",[e._v("mdi-pencil")])],1),e._v(" "),t("v-list-item-content",[t("v-list-item-title",[e._v(" Edit ")])],1)],1),e._v(" "),t("v-list-item",{on:{click:function(t){return e.removeItems([e.selectedItem])}}},[t("v-list-item-icon",[t("v-icon",[e._v("mdi-delete")])],1),e._v(" "),t("v-list-item-content",[t("v-list-item-title",[e._v(" Delete ")])],1)],1)],1)],1):e._e(),e._v(" "),e.legendMenu?t("v-menu",{attrs:{"position-x":e.legendMenuX,"position-y":e.legendMenuY,absolute:"","offset-y":""},model:{value:e.legendMenu,callback:function(t){e.legendMenu=t},expression:"legendMenu"}},[t("v-list",[t("v-list-item",{on:{click:function(t){return e.moveLegend("top")}}},[t("v-list-item-title",{staticStyle:{cursor:"pointer"}},[e._v("Legend Top")])],1),e._v(" "),t("v-list-item",{on:{click:function(t){return e.moveLegend("bottom")}}},[t("v-list-item-title",{staticStyle:{cursor:"pointer"}},[e._v("Legend Bottom")])],1),e._v(" "),t("v-list-item",{on:{click:function(t){return e.moveLegend("left")}}},[t("v-list-item-title",{staticStyle:{cursor:"pointer"}},[e._v("Legend Left")])],1),e._v(" "),t("v-list-item",{on:{click:function(t){return e.moveLegend("right")}}},[t("v-list-item-title",{staticStyle:{cursor:"pointer"}},[e._v("Legend RIght")])],1)],1)],1):e._e()],1)},s=[],a=(n(9375),n(8605),n(7010),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({on:n}){return[t("v-text-field",e._g({attrs:{label:e.dateLabel,name:`date${Date.now()}`,rules:e.dateRules,type:"date","data-test":"date-chooser"},model:{value:e.date,callback:function(t){e.date=t},expression:"date"}},n))]}}])})],1),e._v(" "),t("v-col",[t("v-text-field",{attrs:{label:e.timeLabel,name:`time${Date.now()}`,rules:e.timeRules,type:"time",step:"1","data-test":"time-chooser"},on:{change:e.onChange},model:{value:e.time,callback:function(t){e.time=t},expression:"time"}})],1)],1)],1)}),l=[],r=n(6375),o=n(4554),c=n(2509),d=n(3769);const u={props:{required:{type:Boolean,default:!0},dateTime:{type:Number,default:null},dateLabel:{type:String,default:"Date"},timeLabel:{type:String,default:"Time"}},data(){return{date:null,time:null,rules:{required:e=>!!e||"Required",date:e=>{if(!e)return!0;try{return(0,r.f)((0,o.qg)(e,"yyyy-MM-dd",new Date))||"Invalid date (YYYY-MM-DD)"}catch(t){return"Invalid date (YYYY-MM-DD)"}},time:e=>{if(!e)return!0;try{return(0,r.f)((0,o.qg)(e,"HH:mm:ss",new Date))||"Invalid time (HH:MM:SS)"}catch(t){return"Invalid time (HH:MM:SS)"}}}}},computed:{dateRules(){let e=[this.rules.date];return(this.time||this.required)&&e.push(this.rules.required),e},timeRules(){let e=[this.rules.time];return(this.date||this.required)&&e.push(this.rules.required),e}},created(){if(this.dateTime){let e=(0,c.a)(this.dateTime/1e6);this.date=(0,d.GP)(e,"yyyy-MM-dd"),this.time=(0,d.GP)(e,"HH:mm:ss")}},methods:{onChange(){this.date&&this.time?this.$emit("date-time",this.date+" "+this.time):this.$emit("date-time",null)}}},m=u;var h=n(2401),p=(0,h.A)(m,a,l,!1,null,null,null);const v=p.exports;var f=function(){var e=this,t=e._self._c;return t("v-dialog",{attrs:{width:"400"},on:{keydown:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.success()}},model:{value:e.show,callback:function(t){e.show=t},expression:"show"}},[t("v-card",[t("v-card-title",{staticClass:"mb-2"},[e._v("Edit Item")]),e._v(" "),t("v-card-text",[t("v-select",{staticClass:"mb-2",attrs:{outlined:"","hide-details":"",label:"Value Type",items:e.valueTypes},model:{value:e.editItem.valueType,callback:function(t){e.$set(e.editItem,"valueType",t)},expression:"editItem.valueType"}}),e._v(" "),t("v-select",{staticClass:"mb-2",attrs:{outlined:"","hide-details":"",label:"Reduction",items:e.reduction},model:{value:e.editItem.reduced,callback:function(t){e.$set(e.editItem,"reduced",t)},expression:"editItem.reduced"}}),e._v(" "),t("v-select",{staticClass:"mb-2",attrs:{outlined:"","hide-details":"",label:"Reduced Type",items:e.reducedTypes,disabled:"DECOM"===e.currentReduced},model:{value:e.editItem.reducedType,callback:function(t){e.$set(e.editItem,"reducedType",t)},expression:"editItem.reducedType"}}),e._v(" "),t("v-select",{staticClass:"mb-2",attrs:{outlined:"","hide-details":"",label:"Color",items:e.colors},on:{change:function(t){return e.$emit("changeColor",t)}},model:{value:e.editItem.color,callback:function(t){e.$set(e.editItem,"color",t)},expression:"editItem.color"}}),e._v(" "),e.limitsNames.length>1?t("div",[t("v-select",{attrs:{outlined:"","hide-details":"",label:"Display Limits",items:e.limitsNames},on:{change:function(t){return e.$emit("changeLimits",e.limits[e.limitsName])}},model:{value:e.limitsName,callback:function(t){e.limitsName=t},expression:"limitsName"}}),e._v(" "),t("div",{staticClass:"pa-3"},[e._v(e._s(e.limitsName)+": "+e._s(e.limits[e.limitsName]))])],1):e._e()],1),e._v(" "),t("v-card-actions",[t("v-spacer"),e._v(" "),t("v-btn",{staticClass:"mx-2",attrs:{outlined:""},on:{click:function(t){return e.$emit("cancel")}}},[e._v(" Cancel ")]),e._v(" "),t("v-btn",{staticClass:"mx-2",attrs:{color:"primary"},on:{click:function(t){return e.$emit("close",e.editItem)}}},[e._v("\n Ok\n ")])],1)],1)],1)},g=[],_=n(4364);const A={props:{value:Boolean,item:{type:Object,required:!0},colors:{type:Array,required:!0}},data:function(){return{editItem:null,limitsName:"NONE",limits:{NONE:[]},valueTypes:["CONVERTED","RAW"],reduction:[{text:"NONE",value:"DECOM"},{text:"REDUCED_MINUTE",value:"REDUCED_MINUTE"},{text:"REDUCED_HOUR",value:"REDUCED_HOUR"},{text:"REDUCED_DAY",value:"REDUCED_DAY"}],reducedTypes:["MIN","MAX","AVG","STDDEV"]}},computed:{show:{get(){return this.value},set(e){this.$emit("input",e)}},limitsNames(){return Object.keys(this.limits)}},async created(){this.editItem={...this.item},await this.api,this.api=(new _.x).get_item(this.item.targetName,this.item.packetName,this.item.itemName).then((e=>{for(const[t,n]of Object.entries(e.limits))Object.keys(n).includes("red_low")&&this.$set(this.limits,t,Object.values(n));this.limitsName=Object.keys(this.limits).find((e=>this.limits[e]+""===this.editItem.limits+""))}))}},w=A;var b=(0,h.A)(w,f,g,!1,null,null,null);const y=b.exports;var x=n(2132),C=n(5914),S=n.n(C),k=n(2702);n(9037);const I={components:{DateTimeChooser:v,GraphEditItemDialog:y},props:{id:{type:Number,required:!0},selectedGraphId:{type:Number},state:{type:String,required:!0},startTime:{type:Number},secondsGraphed:{type:Number,required:!0},pointsSaved:{type:Number,required:!0},pointsGraphed:{type:Number,required:!0},refreshIntervalMs:{type:Number,default:200},hideSystemBar:{type:Boolean,default:!1},hideOverview:{type:Boolean,default:!1},sparkline:{type:Boolean,default:!1},initialItems:{type:Array},height:{type:Number},width:{type:Number}},data(){return{tab:0,itemHeaders:[{text:"Target Name",value:"targetName"},{text:"Packet Name",value:"packetName"},{text:"Item Name",value:"itemName"},{text:"Actions",value:"actions",sortable:!1}],lines:[],lineHeaders:[{text:"Y Value",value:"yValue"},{text:"Color",value:"color"},{text:"Actions",value:"actions",sortable:!1}],active:!0,expand:!0,fullWidth:!0,fullHeight:!0,graph:null,editGraph:!1,editGraphMenu:!1,editGraphMenuX:0,editGraphMenuY:0,editItem:!1,itemMenu:!1,itemMenuX:0,itemMenuY:0,legendMenu:!1,legendMenuX:0,legendMenuY:0,legendPosition:"bottom",legendPositions:["top","bottom","left","right"],selectedItem:null,showOverview:!this.hideOverview,title:"",overview:null,data:[[]],dataChanged:!1,timeout:null,graphMinY:"",graphMaxY:"",graphStartDateTime:null,graphEndDateTime:null,indexes:{},items:this.initialItems||[],limitsValues:[],drawInterval:null,zoomChart:!1,zoomOverview:!1,cable:new k.A,subscription:null,needToUpdate:!1,errorDialog:!1,errors:[],colorIndex:0,colors:["#00c7cb","#938bdb","#4dacff","lime","darkorange","red","gold","hotpink","tan","cyan","maroon","blue","teal","purple","green","brown","lightblue","white","black"]}},computed:{calcFullSize:function(){return this.fullWidth||this.fullHeight},editItems:function(){if(!this.items)return[];let e=0;return this.items.map((t=>(e+=1,{...t,itemId:e})))},error:function(){return this.errorDialog&&this.errors.length>0?JSON.stringify(this.errors,null,4):null}},created(){this.title=`Graph ${this.id}`;for(const[e,t]of this.items.entries())this.data.push([]),this.indexes[this.subscriptionKey(t)]=e+1,void 0===t.color&&(t.color=this.colors[this.colorIndex]),this.colorIndex++,this.colorIndex===this.colors.length&&(this.colorIndex=0)},mounted(){const{chartSeries:e,overviewSeries:t}=this.items.reduce(((e,t)=>{const n={spanGaps:!0};return e.chartSeries.push({...n,item:t,label:this.formatLabel(t),stroke:(e,t)=>this.items[t-1].color,width:2,value:(e,t)=>"string"===typeof t||isNaN(t)?"NaN":null==t?"--":t.toFixed(3)}),e.overviewSeries.push({...n}),e}),{chartSeries:[],overviewSeries:[]});let n={};if(this.sparkline)this.hideSystemBar=!0,this.hideOverview=!0,this.showOverview=!1,n={width:this.width,height:this.height,pxAlign:!1,cursor:{show:!1},select:{show:!1},legend:{show:!1},scales:{x:{time:!1}},axes:[{show:!1},{show:!1}],series:[{},{stroke:"white"}]},this.graph=new x.A(n,this.data,document.getElementById(`chart${this.id}`));else{n={...this.getSize("chart"),...this.getScales(),...this.getAxes("chart"),plugins:[this.linesPlugin()],series:[{label:"Time",value:(e,t)=>null==t?"--":(0,d.GP)((0,c.a)(1e3*t),"yyyy-MM-dd HH:mm:ss")},...e],cursor:{drag:{x:!0,y:!1},sync:{key:"openc3"},bind:{mouseup:(e,t,n)=>t=>{"pause"===this.state&&0===e.select.width&&this.$emit("start"),n(t)}}},hooks:{setScale:[(e,t)=>{if("x"===t&&!this.zoomOverview&&this.overview){this.zoomChart=!0;let t=Math.round(this.overview.valToPos(e.scales.x.min,"x")),n=Math.round(this.overview.valToPos(e.scales.x.max,"x"));this.overview.setSelect({left:t,width:n-t}),this.zoomChart=!1}}],setSelect:[e=>{"start"===this.state&&e.select.width>0&&this.$emit("pause")}],ready:[e=>{let t=e.root.querySelector(".u-over");t.addEventListener("contextmenu",(e=>{e.preventDefault(),this.itemMenu=!1,this.legendMenu=!1,this.editGraphMenuX=e.clientX,this.editGraphMenuY=e.clientY,this.editGraphMenu=!0})),t.addEventListener("mouseenter",(e=>{this.$emit("resize")})),t.addEventListener("mouseleave",(e=>{this.$emit("resize")}));let n=e.root.querySelector(".u-legend");n.addEventListener("contextmenu",(t=>{t.preventDefault(),this.editGraphMenu=!1,this.legendMenu=!1,this.itemMenuX=t.clientX,this.itemMenuY=t.clientY;let i=t.target.closest(".u-series"),s=Array.prototype.slice.call(n.childNodes[0].childNodes).indexOf(i),a=e.series[s];a.item?(this.selectedItem=a.item,this.itemMenu=!0):(this.itemMenu=!1,this.legendMenuX=t.clientX,this.legendMenuY=t.clientY,this.legendMenu=!0)}))}]}},this.graph=new x.A(n,this.data,document.getElementById(`chart${this.id}`));const i={...this.getSize("overview"),...this.getScales(),...this.getAxes("overview"),series:[...t],cursor:{y:!1,points:{show:!1},drag:{setScale:!1,x:!0,y:!1}},legend:{show:!1},hooks:{setSelect:[e=>{if(!this.zoomChart){"start"===this.state&&e.select.width>0&&this.$emit("pause"),this.zoomOverview=!0;let t=e.posToVal(e.select.left,"x"),n=e.posToVal(e.select.left+e.select.width,"x");this.graph.setScale("x",{min:t,max:n}),this.zoomOverview=!1}}]}};this.overview=new x.A(i,this.data,document.getElementById(`overview${this.id}`)),this.moveLegend(this.legendPosition),window.addEventListener("resize",this.handleResize)}"stop"!==this.state&&this.startGraph()},beforeDestroy:function(){this.stopGraph(),this.cable.disconnect(),window.removeEventListener("resize",this.handleResize)},watch:{state:function(e,t){switch(e){case"start":"stop"===t&&this.startGraph();break;case"stop":this.stopGraph();break}},data:function(e,t){this.dataChanged=!0},graphMinY:function(e,t){let n=parseFloat(e);isNaN(n)||(this.graphMinY=n),this.setGraphRange()},graphMaxY:function(e,t){let n=parseFloat(e);isNaN(n)||(this.graphMaxY=n),this.setGraphRange()},graphStartDateTime:function(e,t){this.needToUpdate=!0,e&&"string"===typeof e&&(this.graphStartDateTime=1e6*new Date(this.graphStartDateTime).getTime())},graphEndDateTime:function(e,t){this.needToUpdate=!0,e&&"string"===typeof e&&(this.graphEndDateTime=1e6*new Date(this.graphEndDateTime).getTime())}},methods:{startGraph:function(){this.subscribe(),this.timeout=setTimeout((()=>{this.updateTimeout()}),this.refreshIntervalMs)},stopGraph:function(){this.subscription&&(this.subscription.unsubscribe(),this.subscription=null),this.timeout&&(clearTimeout(this.timeout),this.timeout=null)},updateTimeout:function(){this.updateGraphData(),this.timeout=setTimeout((()=>{this.updateTimeout()}),this.refreshIntervalMs)},updateGraphData:function(){if("pause"===this.state||!this.dataChanged)return;this.graph.setData(this.data),this.overview&&this.overview.setData(this.data);let e=this.data[0][this.data[0].length-1],t=this.data[0][this.data[0].length-this.pointsGraphed],n=this.data[0][0];n<e-this.secondsGraphed&&(n=e-this.secondsGraphed),t>n&&(n=t),this.graph.setScale("x",{min:n,max:e}),this.dataChanged=!1},addLine(){this.lines.push({yValue:0,color:"white"})},removeLine(e){let t=this.lines.indexOf(e);this.lines.splice(t,1)},formatLabel(e){if("CONVERTED"===e.valueType&&"DECOM"===e.reduced)return e.itemName;{let t="";return"CONVERTED"!==e.valueType&&(t+=e.valueType),"DECOM"!==e.reduced&&(""!==t&&(t+=" "),t+=`${e.reduced.split("_")[1]} ${e.reducedType}`),`${e.itemName} (${t})`}},moveLegend:function(e){switch(e){case"bottom":this.graph.root.classList.remove("side-legend"),this.graph.root.classList.remove("left-legend"),this.graph.root.classList.remove("top-legend");break;case"top":this.graph.root.classList.remove("side-legend"),this.graph.root.classList.remove("left-legend"),this.graph.root.classList.add("top-legend");break;case"left":this.graph.root.classList.remove("top-legend"),this.graph.root.classList.add("side-legend"),this.graph.root.classList.add("left-legend");break;case"right":this.graph.root.classList.remove("top-legend"),this.graph.root.classList.remove("left-legend"),this.graph.root.classList.add("side-legend");break}this.legendPosition=e,this.resize()},clearErrors:function(){this.errors=[]},editGraphClose:function(){if(this.editGraph=!1,this.needToUpdate){if(null==this.subscription)this.startGraph();else{let e=JSON.parse(JSON.stringify(this.items));this.removeItems(e),setTimeout((()=>{this.addItems(e)}),0)}this.needToUpdate=!1}this.moveLegend(this.legendPosition),this.$emit("edit")},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(){let e=.1;(this.graphMinY||0===this.graphMinY||this.graphMaxY||0===this.graphMaxY)&&(e=0),this.graph.scales.y.range=(t,n,i)=>{let s=n;(this.graphMinY||0===this.graphMinY)&&(s=this.graphMinY);let a=i;return(this.graphMaxY||0===this.graphMaxY)&&(a=this.graphMaxY),x.A.rangeNum(s,a,e,!0)}},subscribe:function(){this.cable.createSubscription("StreamingChannel",window.openc3Scope,{received:e=>this.received(e),connected:()=>{this.addItemsToSubscription(this.items)},disconnected:()=>{this.errors.push({type:"disconnected",message:"OpenC3 backend connection disconnected",time:(new Date).getTime()})},rejected:()=>{this.errors.push({type:"rejected",message:"OpenC3 backend connection rejected",time:(new Date).getTime()})}}).then((e=>{this.subscription=e}))},getSize:function(e){const t=document.getElementById("openc3-nav-drawer"),n=t.classList.contains("v-navigation-drawer--open")?t.clientWidth:0;let i=0;if("right"===this.legendPosition||"left"===this.legendPosition){const e=document.getElementsByClassName("u-legend")[0];i=e.clientWidth}const s=Math.max(document.documentElement.clientWidth,window.innerWidth||0)-n-i,a=Math.max(document.documentElement.clientHeight,window.innerHeight||0),l=document.getElementsByClassName("tgt-pkt-item-chooser")[0];let r=100;"overview"===e?this.fullHeight&&!this.hideOverview?this.showOverview=!0:this.showOverview=!1:l&&(r=a-l.clientHeight-r-250,this.fullHeight||(r=r/2+10));let o=s-62;return this.fullWidth||(o=o/2-10),{width:this.width||o,height:this.height||r}},getScales:function(){return{scales:{x:{range(e,t,n){return null==t?[1566453600,1566497660]:[t,n]}},y:{range(e,t,n){return null==t?[-100,100]:x.A.rangeNum(t,n,.1,!0)}}}}},getAxes:function(e){let t="rgba(0, 0, 0, .1)",n="black";return this.$vuetify.theme.dark&&(t="rgba(255, 255, 255, .1)",n="white"),{axes:[{stroke:n,grid:{show:!0,stroke:t,width:2}},{size:80,stroke:n,grid:{show:"overview"!==e,stroke:t,width:2},values(e,t){return(t.some((e=>e>=1e7))||t.every((e=>e<.01)))&&(t=t.map((e=>e.toExponential(3)))),t}}]}},closeEditItem:function(e){this.editItem=!1,(null!==this.graphEndDateTime&&this.selectedItem!==e||this.selectedItem.valueType!==e.valueType||this.selectedItem.reduced!==e.reduced||this.selectedItem.reducedType!==e.reducedType)&&this.changeItem(e)},changeColor:function(e){let t=this.subscriptionKey(this.selectedItem),n=this.indexes[t];this.items[n-1].color=e,this.selectedItem.color=e,this.graph.root.querySelectorAll(".u-marker")[n].style.borderColor=e},changeLimits:function(e){let t=this.subscriptionKey(this.selectedItem),n=this.indexes[t];this.items[n-1].limits=e,this.selectedItem.limits=e,this.limitsValues=e},linesPlugin:function(){return{hooks:{draw:e=>{const{ctx:t,bbox:n}=e,i=e.valToPos(e.scales.y.min,"y",!0),s=e.valToPos(e.scales.y.max,"y",!0),a=e.valToPos(this.limitsValues[0],"y",!0),l=e.valToPos(this.limitsValues[1],"y",!0),r=e.valToPos(this.limitsValues[2],"y",!0),o=e.valToPos(this.limitsValues[3],"y",!0);if(this.lines.forEach((i=>{e.scales.y.min<=i.yValue&&i.yValue<=e.scales.y.max&&(t.save(),t.beginPath(),t.strokeStyle=i.color,t.lineWidth=2,t.moveTo(n.left,e.valToPos(i.yValue,"y",!0)),t.lineTo(n.left+n.width,e.valToPos(i.yValue,"y",!0)),t.stroke(),t.restore())})),t.save(),t.beginPath(),t.fillStyle="rgba(255,0,0,0.15)",e.scales.y.min<this.limitsValues[0]){let e=a<s?s:a;t.fillRect(n.left,a,n.width,i-e)}if(e.scales.y.max>this.limitsValues[3]){let e=i<o?i:o;t.fillRect(n.left,s,n.width,e-s)}if(t.fillStyle="rgba(255,255,0,0.15)",e.scales.y.min<this.limitsValues[1]&&e.scales.y.max>this.limitsValues[0]){let e=l<s?s:l;t.fillRect(n.left,e,n.width,a-e)}if(e.scales.y.max>this.limitsValues[2]&&e.scales.y.min<this.limitsValues[3]){let e=i<o?i:o,s=i<r?i:r;t.fillRect(n.left,e,n.width,s-e)}if(t.fillStyle="rgba(0,255,0,0.15)",4===this.limitsValues.length){if(e.scales.y.min<this.limitsValues[2]&&e.scales.y.max>this.limitsValues[1]){let e=r<s?s:r,a=i<l?i:l;t.fillRect(n.left,e,n.width,a-e)}}else{const a=e.valToPos(this.limitsValues[4],"y",!0),o=e.valToPos(this.limitsValues[5],"y",!0);if(e.scales.y.min<this.limitsValues[4]&&e.scales.y.max>this.limitsValues[1]){let e=a<s?s:a;t.fillRect(n.left,e,n.width,l-e)}if(e.scales.y.max>this.limitsValues[5]&&e.scales.y.min<this.limitsValues[2]){let e=i<r?i:r,s=i<o?i:o;t.fillRect(n.left,e,n.width,s-e)}t.fillStyle="rgba(0,0,255,0.15)";let c=o<s?s:o,d=i<a?i:a;t.fillRect(n.left,c,n.width,d-c)}t.stroke(),t.restore()}}}},changeItem:function(e){this.removeItems([this.selectedItem]),this.selectedItem.valueType=e.valueType,this.selectedItem.reduced=e.reduced,this.selectedItem.reducedType=e.reducedType,setTimeout((()=>{this.addItems([this.selectedItem])}),0)},addItems:function(e,t="CONVERTED"){for(const i of e){i.valueType||(i.valueType=t),void 0===i.color&&(i.color=this.colors[this.colorIndex]),void 0===i.limits?i.limits=[]:i.limits.length>0&&(this.limitsValues=i.limits),this.colorIndex++,this.colorIndex===this.colors.length&&(this.colorIndex=0),this.items.push(i);const e=this.data.length;this.graph.addSeries({spanGaps:!0,item:i,label:this.formatLabel(i),stroke:(e,t)=>this.items[t-1].color,width:2,value:(e,t)=>"string"===typeof t||isNaN(t)?"NaN":null==t?"--":Math.abs(t)<.01||Math.abs(t)>=1e7?t.toExponential(6):t.toFixed(6)},e),this.overview&&this.overview.addSeries({spanGaps:!0,stroke:(e,t)=>this.items[t-1].color},e);let n=Array(this.data[0].length);this.data.splice(e,0,n),this.indexes[this.subscriptionKey(i)]=e}let n=this.colors.indexOf(e[e.length-1].color);n&&(this.colorIndex=n+1),this.addItemsToSubscription(e),this.$emit("edit")},addItemsToSubscription:function(e=this.items){let t=this.startTime;this.graphStartDateTime&&(t=this.graphStartDateTime),this.subscription&&OpenC3Auth.updateToken(OpenC3Auth.defaultMinValidity).then((n=>{n&&OpenC3Auth.setTokens(),this.subscription.perform("add",{scope:window.openc3Scope,token:localStorage.openc3Token,items:e.map(this.subscriptionKey),start_time:t,end_time:this.graphEndDateTime})}))},removeItems:function(e){this.removeItemsFromSubscription(e);for(const t of e.map(this.subscriptionKey)){const e=this.reorderIndexes(t);this.items.splice(e-1,1),this.data.splice(e,1),this.graph.delSeries(e),this.graph.setData(this.data),this.overview&&(this.overview.delSeries(e),this.overview.setData(this.data))}1===this.data.length&&(this.data[0]=[],this.graph.setData(this.data),this.overview.setData(this.data)),this.$emit("edit")},removeItemsFromSubscription:function(e=this.items){this.subscription&&this.subscription.perform("remove",{scope:window.openc3Scope,token:localStorage.openc3Token,items:e.map(this.subscriptionKey)})},reorderIndexes:function(e){let t=this.indexes[e];for(var n in delete this.indexes[e],this.indexes)this.indexes[n]>t&&(this.indexes[n]-=1);return t},received:function(e){this.cable.recordPing();for(let t=0;t<e.length;t++){let n=e[t].__time/1e9,i=e[0].length;if(0===i||n>e[0][i-1]){for(let e=0;e<this.data.length;e++)this.data[e].push(null);this.set_data_at_index(this.data[0].length-1,n,e[t])}else{let i=S()(this.data[0],n,this.bs_comparator);if(i>=0)this.set_data_at_index(i,n,e[t]);else{let s=-i-1;for(let e=0;e<this.data.length;e++)this.data[e].splice(s,0,null);this.set_data_at_index(s,n,e[t])}}}if(null==this.startTime&&this.data[0][0]){let e=1e9*this.data[0][0];this.$emit("started",e)}this.dataChanged=!0},bs_comparator:function(e,t){return e-t},set_data_at_index:function(e,t,n){this.data[0][e]=t;for(const[i,s]of Object.entries(n)){if("time"===i)continue;let t=this.indexes[i];if(t){let n=this.data[t];if(null!==s&&void 0!==s&&s.raw)n[e]=null;else if("string"===typeof s){if(n[e]=null,!i.includes("__RAW")){for(let e of this.items)if(this.subscriptionKey(e)===i){this.selectedItem=e;break}this.changeItem({valueType:"RAW",reduced:this.selectedItem.reduced,reducedType:this.selectedItem.reducedType})}}else n[e]=s}}},subscriptionKey:function(e){let t=`${e.reduced}__TLM__${e.targetName}__${e.packetName}__${e.itemName}__${e.valueType}`;return"REDUCED_MINUTE"!==e.reduced&&"REDUCED_HOUR"!==e.reduced&&"REDUCED_DAY"!==e.reduced||(t+=`__${e.reducedType}`),t}}},N=I;n(6738),n(7346);var T=(0,h.A)(N,i,s,!1,null,"5efb6623",null);const E=T.exports},8687:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>u});var i=function(){var e=this,t=e._self._c;return t("div",{staticClass:"array-widget-container"},[t("v-textarea",{class:e.valueClass,style:[e.computedStyle,e.aging],attrs:{solo:"",dense:"",readonly:"","hide-details":"",placeholder:"Value",height:e.height,value:e._value,"data-test":"array-widget"},on:{contextmenu:e.showContextMenu}}),e._v(" "),t("v-menu",{attrs:{"position-x":e.x,"position-y":e.y,absolute:"","offset-y":""},model:{value:e.contextMenuShown,callback:function(t){e.contextMenuShown=t},expression:"contextMenuShown"}},[t("v-list",e._l(e.contextMenuOptions,(function(n,i){return t("v-list-item",{key:i,on:{click:function(e){return e.stopPropagation(),n.action.apply(null,arguments)}}},[t("v-list-item-title",[e._v(e._s(n.title))])],1)})),1)],1),e._v(" "),t("details-dialog",{attrs:{"target-name":e.parameters[0],"packet-name":e.parameters[1],"item-name":e.parameters[2]},model:{value:e.viewDetails,callback:function(t){e.viewDetails=t},expression:"viewDetails"}})],1)},s=[],a=(n(7010),n(2967)),l=n(9821);n(9471);const r={components:{DetailsDialog:l.A},data:function(){return{width:200,height:100,itemsPerRow:4,formatter:null}},mixins:[a.A],computed:{aging(){return{"--aging":this.grayLevel}}},created:function(){this.width=this.setWidth(this.parameters[3],"px",this.width),this.height=this.setHeight(this.parameters[4],"px",this.height),this.parameters[5]&&(this.formatter=this.parameters[5]),this.parameters[6]&&(this.itemsPerRow=parseInt(this.parameters[6]))},methods:{getType:function(){var e="CONVERTED";return this.parameters[7]&&(e=this.parameters[7]),e},formatValue:function(e){var t="",n=" ",i="\n",s=0;if(Array.isArray(e)){for(const l of e){var a;this.formatter&&"nil"!==(null===(a=this.formatter)||void 0===a?void 0:a.toLowerCase())?t+=sprintf(this.formatter,l):t+=l,s+=1,s%this.itemsPerRow===0?(s=0,t+=i):t+=n}return t.trim()}return e}}},o=r;n(8644);var c=n(2401),d=(0,c.A)(o,i,s,!1,null,"5cd86706",null);const u=d.exports},171:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>u});var i=function(){var e=this,t=e._self._c;return t("div",{staticClass:"block-widget-container"},[t("v-textarea",{class:e.valueClass,style:[e.computedStyle,e.aging],attrs:{solo:"",dense:"",readonly:"","no-resize":"","hide-details":"",placeholder:"Value",width:e.width,height:e.height,value:e._value,"data-test":"valueText"},on:{contextmenu:e.showContextMenu}}),e._v(" "),t("v-menu",{attrs:{"position-x":e.x,"position-y":e.y,absolute:"","offset-y":""},model:{value:e.contextMenuShown,callback:function(t){e.contextMenuShown=t},expression:"contextMenuShown"}},[t("v-list",e._l(e.contextMenuOptions,(function(n,i){return t("v-list-item",{key:i,on:{click:function(e){return e.stopPropagation(),n.action.apply(null,arguments)}}},[t("v-list-item-title",[e._v(e._s(n.title))])],1)})),1)],1),e._v(" "),t("details-dialog",{attrs:{"target-name":e.parameters[0],"packet-name":e.parameters[1],"item-name":e.parameters[2]},model:{value:e.viewDetails,callback:function(t){e.viewDetails=t},expression:"viewDetails"}})],1)},s=[],a=(n(7010),n(2967)),l=n(9821);n(9471);const r={components:{DetailsDialog:l.A},data:function(){return{width:400,height:400,bytesPerWord:4,wordsPerRow:4,addrFormat:null,formatter:"%02X"}},mixins:[a.A],computed:{aging(){return{"--aging":this.grayLevel}}},created:function(){this.width=this.setWidth(this.parameters[3],"px",this.width),this.height=this.setHeight(this.parameters[4],"px",this.height),this.parameters[5]&&(this.formatter=this.parameters[5]),this.parameters[6]&&(this.bytesPerWord=parseInt(this.parameters[6])),this.parameters[7]&&(this.wordsPerRow=parseInt(this.parameters[7])),this.parameters[8]&&(this.addrFormat=this.parameters[8])},methods:{getType:function(){var e="RAW";return this.parameters[9]&&(e=this.parameters[9]),e},formatValue:function(e){var t="";if(e&&e.raw){var n=" ",i="\n",s=0,a=0;const l=this.bytesPerWord*this.wordsPerRow;for(const r of e.raw)this.addrFormat&&0===s&&(t+=sprintf(this.addrFormat,a),a+=l),t+=sprintf(this.formatter,r),s+=1,s%l===0?(s=0,t+=i):s%this.bytesPerWord===0&&(t+=n)}else t=e;return t}}},o=r;n(8827);var c=n(2401),d=(0,c.A)(o,i,s,!1,null,"0872fd0e",null);const u=d.exports},4814:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>c});var i=function(){var e=this,t=e._self._c;return t("div",[t("v-btn",{staticClass:"ma-1",style:e.computedStyle,attrs:{color:"primary"},on:{click:e.onClick}},[e._v("\n "+e._s(e.buttonText)+"\n ")]),e._v(" "),t("v-dialog",{attrs:{"max-width":"300"},model:{value:e.displaySendHazardous,callback:function(t){e.displaySendHazardous=t},expression:"displaySendHazardous"}},[t("v-card",[t("v-card-title",[e._v("Hazardous")]),e._v(" "),t("v-card-text",[t("div",{staticClass:"mx-1"},[t("v-row",{staticClass:"my-2"},[t("span",[e._v(" Warning: Command is Hazardous. Send? ")])]),e._v(" "),t("v-row",[t("v-spacer"),e._v(" "),t("v-btn",{attrs:{outlined:""},on:{click:e.cancelHazardousCmd}},[e._v(" Cancel ")]),e._v(" "),t("v-btn",{staticClass:"primary mx-1",on:{click:e.sendHazardousCmd}},[e._v("\n Send\n ")])],1)],1)])],1)],1)],1)},s=[],a=n(47);const l=a.A;var r=n(2401),o=(0,r.A)(l,i,s,!1,null,null,null);const c=o.exports},2430:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>d});var i=function(){var e=this,t=e._self._c;return t("svg",{attrs:{id:"canvas",width:e.width,height:e.height}},e._l(e.widgets,(function(n,i){return t(n.type,e._g({key:i,tag:"component",attrs:{target:n.target,parameters:n.parameters,settings:n.settings,widgets:n.widgets,name:n.name,line:n.line,lineNumber:n.lineNumber}},e.$listeners))})),1)},s=[],a=n(9843);const l={mixins:[a.A],computed:{width(){return this.parameters[0]+"px"},height(){return this.parameters[1]+"px"}}},r=l;n(1497);var o=n(2401),c=(0,o.A)(r,i,s,!1,null,"17947dc7",null);const d=c.exports},6614:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>d});var i=function(){var e=this,t=e._self._c;return t("circle",{attrs:{cx:e.parameters[0],cy:e.parameters[1],r:e.parameters[3],fill:e.parameters[2]}})},s=[],a=n(9729);const l={mixins:[a.A]},r=l;var o=n(2401),c=(0,o.A)(r,i,s,!1,null,null,null);const d=c.exports},8239:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>u});var i=function(){var e=this,t=e._self._c;return e.imageUrl?t("image",{attrs:{href:e.imageUrl,x:e.parameters[1],y:e.parameters[2],width:e.width,height:e.height},on:{click:e.clickHandler}}):e._e()},s=[],a=n(9729),l=n(7163);const r={mixins:[a.A,l.A],data:function(){return{imageUrl:null,screenTarget:null,screenName:null}},computed:{width:function(){return this.parameters[3]?`${this.parameters[3]}px`:"100%"},height:function(){return this.parameters[4]?`${this.parameters[4]}px`:"100%"}},created:function(){this.settings.forEach((e=>{"SCREEN"===e[0]&&(this.screenTarget=e[1],this.screenName=e[2])})),this.parameters[0].startsWith("http")?this.imageUrl=this.parameters[0]:this.getPresignedUrl(this.parameters[0]).then((e=>{this.imageUrl=e}))},methods:{clickHandler(){this.screenTarget&&this.screenName&&this.screen.open(this.screenTarget,this.screenName)}}},o=r;var c=n(2401),d=(0,c.A)(o,i,s,!1,null,null,null);const u=d.exports},4653:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>u});var i=function(){var e=this,t=e._self._c;return t("g",[e._l(e.images,(function(n){return t("image",{directives:[{name:"show",rawName:"v-show",value:n.value==e.selectedValue,expression:"image.value == selectedValue"}],key:n.value,attrs:{href:n.url,x:n.x,y:n.y,width:n.width,height:n.height},on:{click:e.clickHandler}})})),e._v(" "),e.defaultImage?t("image",{directives:[{name:"show",rawName:"v-show",value:e.showDefault,expression:"showDefault"}],attrs:{href:e.defaultImage.url,x:e.defaultImage.x,y:e.defaultImage.y,width:e.defaultImage.width,height:e.defaultImage.height},on:{click:e.clickHandler}}):e._e()],2)},s=[],a=(n(7010),n(9729)),l=n(7163);const r={mixins:[a.A,l.A],data:function(){return{images:[],defaultImage:null,screenTarget:null,screenName:null}},computed:{selectedValue:function(){return this.screen&&this.screen.screenValues[this.valueId]?this.screen.screenValues[this.valueId][0]:null},showDefault:function(){return!this.images.some((e=>e.value==this.selectedValue))}},created:function(){this.settings.forEach((e=>{"SCREEN"===e[0]&&(this.screenTarget=e[1],this.screenName=e[2])})),this.valueId=`${this.parameters[0]}__${this.parameters[1]}__${this.parameters[2]}__${this.parameters[3]||"RAW"}`,this.screen&&this.screen.addItem(this.valueId);const e=this.settings.filter((e=>"IMAGE"===e[0])).map((async e=>{let t=e[2];return t.startsWith("http")||(t=await this.getPresignedUrl(t)),{url:t,value:e[1],x:e[3],y:e[4],width:e[5],height:e[6]}}));if(Promise.all(e).then((e=>{this.images=e})),this.parameters[4]){const e={x:this.parameters[5],y:this.parameters[6],width:this.parameters[7]?`${this.parameters[7]}px`:"100%",height:this.parameters[8]?`${this.parameters[8]}px`:"100%"};let t=this.parameters[4];t.startsWith("http")?this.defaultImage={...e,url:t}:this.getPresignedUrl(t).then((t=>{this.defaultImage={...e,url:t}}))}},destroyed:function(){this.screen&&this.screen.deleteItem(this.valueId)},methods:{clickHandler(){this.screenTarget&&this.screenName&&this.screen.open(this.screenTarget,this.screenName)}}},o=r;var c=n(2401),d=(0,c.A)(o,i,s,!1,null,null,null);const u=d.exports},6631:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>d});var i=function(){var e=this,t=e._self._c;return t("text",{attrs:{x:e.parameters[0],y:e.parameters[1],fill:e.fillColor}},[e._v("\n "+e._s(e.parameters[2])+"\n")])},s=[],a=n(9729);const l={mixins:[a.A],computed:{fillColor(){return this.parameters[3]?this.parameters[3]:"black"}}},r=l;var o=n(2401),c=(0,o.A)(r,i,s,!1,null,null,null);const d=c.exports},8211:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>d});var i=function(){var e=this,t=e._self._c;return t("text",{attrs:{x:e.parameters[3],y:e.parameters[4],"font-size":e.fontSize,fill:e.fillColor}},[e._v("\n "+e._s(e._value)+"\n")])},s=[],a=n(9729);const l={mixins:[a.A],data(){return{valueId:null}},computed:{_value(){return this.screen?this.screen.screenValues[this.valueId][0]:null},fontSize(){return this.parameters[5]?this.parameters[5]+"px":"14px"},fillColor(){return this.parameters[6]?this.parameters[6]:"black"}},created(){let e="CONVERTED";this.parameters[7]&&(e=this.parameters[7]),this.valueId=`${this.parameters[0]}__${this.parameters[1]}__${this.parameters[2]}__${e}`,this.screen&&this.screen.addItem(this.valueId)},destroyed(){this.screen&&this.screen.deleteItem(this.valueId)}},r=l;var o=n(2401),c=(0,o.A)(r,i,s,!1,null,null,null);const d=c.exports},4352:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>d});var i=function(){var e=this,t=e._self._c;return t("line",{style:e.calcStyle,attrs:{x1:e.parameters[0],y1:e.parameters[1],x2:e.parameters[2],y2:e.parameters[3]}})},s=[],a=n(9729);const l={mixins:[a.A],computed:{calcStyle(){let e="black";this.parameters[4]&&(e=this.parameters[4]);let t=1;return this.parameters[5]&&(t=this.parameters[5]),"stroke:"+e+";stroke-width:"+t}}},r=l;var o=n(2401),c=(0,o.A)(r,i,s,!1,null,null,null);const d=c.exports},4291:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>d});var i=function(){var e=this,t=e._self._c;return t("line",{style:e.calcStyle,attrs:{x1:e.parameters[3],y1:e.parameters[4],x2:e.parameters[5],y2:e.parameters[6]}})},s=[],a=n(9729);const l={mixins:[a.A],data(){return{valueId:0,valueMap:{}}},computed:{calcStyle(){let e="black";this.screen&&this.screen.screenValues[this.valueId]&&(e=this.valueMap[this.screen.screenValues[this.valueId][0]]);let t=1;return this.parameters[7]&&(t=this.parameters[7]),"stroke:"+e+";stroke-width:"+t}},created(){this.settings.forEach((e=>{"VALUE_EQ"===e[0]&&(this.valueMap[e[1]]=e[2])}));let e="CONVERTED";this.parameters[8]&&(e=this.parameters[8]),this.valueId=`${this.parameters[0]}__${this.parameters[1]}__${this.parameters[2]}__${e}`,this.screen&&this.screen.addItem(this.valueId)},destroyed(){this.screen&&this.screen.deleteItem(this.valueId)}},r=l;var o=n(2401),c=(0,o.A)(r,i,s,!1,null,null,null);const d=c.exports},5733:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>d});var i=function(){var e=this,t=e._self._c;return t("v-checkbox",{style:e.computedStyle,attrs:{"hide-details":"",dense:"",label:e.label},model:{value:e.value,callback:function(t){e.value=t},expression:"value"}})},s=[],a=n(9729);const l={mixins:[a.A],data(){return{items:[],label:"Checkbox",value:!1}},created(){this.settings.forEach((e=>{"NAMED_WIDGET"===e[0]&&e[2].setNamedWidget(e[1],this)})),this.label=this.parameters[0]},methods:{checked(){return this.value}}},r=l;var o=n(2401),c=(0,o.A)(r,i,s,!1,null,null,null);const d=c.exports},3835:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>d});var i=function(){var e=this,t=e._self._c;return t("v-select",{style:e.computedStyle,attrs:{"hide-details":"",dense:"",outlined:"",items:e.items},model:{value:e.value,callback:function(t){e.value=t},expression:"value"}})},s=[],a=n(9729);const l={mixins:[a.A],data(){return{items:[],value:null}},created(){this.settings.forEach((e=>{"NAMED_WIDGET"===e[0]&&e[2].setNamedWidget(e[1],this)})),this.value=this.parameters[0],this.items=this.parameters},methods:{text(){return this.value}}},r=l;var o=n(2401),c=(0,o.A)(r,i,s,!1,null,null,null);const d=c.exports},3634:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>c});var i=function(){var e=this,t=e._self._c;return t(e.widgetType,e._b({tag:"component"},"component",{...e.$props,...e.$attrs},!1))},s=[];n(7107);const a={data(){return{widgetType:null}},props:{name:{default:null}},computed:{url:function(){return`${window.location.origin}/tools/widgets/${this.name}/${this.name}.umd.min.js`}},async mounted(){try{this.widgetType=await System.import(this.url)}catch(e){throw new Error(`Unknown widget: ${this.name}`)}}},l=a;var r=n(2401),o=(0,r.A)(l,i,s,!1,null,null,null);const c=o.exports},2656:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>u});var i=function(){var e=this,t=e._self._c;return t("div",{ref:"container",staticClass:"d-flex flex-row",style:e.computedStyle},[t("value-widget",{attrs:{parameters:e.getParameters,settings:e.settings,"format-string":e.parameters[3]}})],1)},s=[],a=n(9729),l=n(4348);const r={mixins:[a.A],components:{ValueWidget:l["default"]},computed:{getParameters(){return[this.parameters[0],this.parameters[1],this.parameters[2],this.parameters[4]]}},created(){this.setWidth(this.parameters[5],"ch",12)}},o=r;var c=n(2401),d=(0,c.A)(o,i,s,!1,null,null,null);const u=d.exports},2907:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>d});var i=function(){var e=this,t=e._self._c;return t("div",{ref:"container",staticClass:"d-flex flex-row",style:e.computedStyle},e._l(e.widgets,(function(n,i){return t(n.type,e._g({key:i,tag:"component",attrs:{target:n.target,parameters:n.parameters,settings:n.settings,widgets:n.widgets,name:n.name,line:n.line,lineNumber:n.lineNumber}},e.$listeners))})),1)},s=[],a=(n(9375),n(9843));const l={mixins:[a.A],created:function(){if(this.parameters[0]){let e=this.parameters[0];this.widgets.forEach((t=>{const n=t.settings.find((e=>"MARGIN"===e[0]||"RAW"===e[0]&&e[1].toUpperCase().includes("MARGIN")));void 0===n&&t.settings.push(["MARGIN",e])}))}}},r=l;var o=n(2401),c=(0,o.A)(r,i,s,!1,null,null,null);const d=c.exports},4812:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>u});var i=function(){var e=this,t=e._self._c;return t("div",[t("v-banner",{staticClass:"boxbanner",style:e.computedStyle,attrs:{"single-line":""}},[e._v(e._s(e.parameters[0]))]),e._v(" "),t("horizontal-widget",e._g({attrs:{parameters:e.parameters.slice(1),settings:e.settings,widgets:e.widgets}},e.$listeners))],1)},s=[],a=n(2907),l=n(9843);const r={mixins:[l.A],components:{HorizontalWidget:a["default"]}},o=r;n(6395);var c=n(2401),d=(0,c.A)(o,i,s,!1,null,"7935dee2",null);const u=d.exports},9646:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});var i=function(){var e=this,t=e._self._c;return t("hr")},s=[],a=n(2401),l={},r=(0,a.A)(l,i,s,!1,null,null,null);const o=r.exports},527:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>d});var i=function(){var e=this,t=e._self._c;return t("iframe",{style:e.computedStyle,attrs:{title:"IFrameWidget",src:e.parameters[0],width:e.width,height:e.height}})},s=[],a=n(9729);const l={mixins:[a.A],data:function(){return{width:800,height:600}},created:function(){this.setWidth(this.parameters[1],"px",this.width),this.setHeight(this.parameters[2],"px",this.height)}},r=l;var o=n(2401),c=(0,o.A)(r,i,s,!1,null,null,null);const d=c.exports},1404:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>m});var i=function(){var e=this,t=e._self._c;return t("img",{style:e.computedStyle,attrs:{src:e.src,alt:e.itemFullName,width:e.parameters[4],height:e.parameters[5]}})},s=[],a=n(4364),l=n(9729),r=n(2702);const o={mixins:[l.A],data:function(){return{api:new a.x,cable:new r.A,subscription:null,imageData:""}},computed:{src:function(){return`data:image/${this.parameters[3]};base64, ${this.imageData}`},itemFullName:function(){return`TLM__${this.targetName}__${this.packetName}__${this.itemName}__${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(){this.api.get_tlm_packet(this.targetName,this.packetName,this.valueType).then((e=>{const t=null===e||void 0===e?void 0:e.find((e=>e[0]===this.itemName));t&&(this.imageData=t[1])})).finally((()=>{this.subscribe()}))},destroyed:function(){this.subscription&&this.subscription.unsubscribe(),this.cable.disconnect()},methods:{received:function(e){if(this.cable.recordPing(),e["error"])this.$notify.serious({body:e["error"]});else if(e.length){const t=e[e.length-1];this.imageData=t[this.itemFullName]}},subscribe:function(){this.cable.createSubscription("StreamingChannel",window.openc3Scope,{received:e=>this.received(e),connected:()=>{this.subscription.perform("add",{scope:window.openc3Scope,mode:"DECOM",token:localStorage.openc3Token,items:[this.itemFullName]})},disconnected:()=>{this.$notify.caution({body:"OpenC3 backend connection disconnected."})},rejected:()=>{this.$notify.caution({body:"OpenC3 backend connection rejected."})}}).then((e=>{this.subscription=e}))}}},c=o;var d=n(2401),u=(0,d.A)(c,i,s,!1,null,null,null);const m=u.exports},4858:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>d});var i=function(){var e=this,t=e._self._c;return t("div",{staticClass:"pa-1 mt-1 label",style:[e.cssProps,e.computedStyle],attrs:{"data-test":"label"}},[e._v("\n "+e._s(e.labelText)+"\n")])},s=[],a=n(9729);const l={mixins:[a.A],data(){return{fontFamily:null,fontSize:null,fontWeight:"normal",fontStyle:"normal"}},computed:{labelText(){return this.parameters[0]},cssProps(){var e=null;return this.fontSize&&(e=this.fontSize+"px"),{"--font-family":this.fontFamily,"--font-size":e,"--font-weight":this.fontWeight,"--font-style":this.fontStyle}}},created(){this.verifyNumParams("LABEL",1,5,"LABEL <Text> <Font Family> <Font Size> <Font Weight> <Font Style>"),this.parameters[1]&&(this.fontFamily=this.parameters[1]),this.parameters[2]&&(this.fontSize=this.parameters[2]),this.parameters[3]&&(this.fontWeight=this.parameters[3]),this.parameters[4]&&(this.fontStyle=this.parameters[4])}},r=l;n(6074);var o=n(2401),c=(0,o.A)(r,i,s,!1,null,"19db816e",null);const d=c.exports},9830:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>m});n(7010);var i=function(){var e=this,t=e._self._c;return t("div",{ref:"container",staticClass:"d-flex flex-row",style:e.computedStyle},[t("label-widget",{attrs:{parameters:e.labelName,settings:[...e.settings],"widget-index":0}}),e._v(" "),t("led-widget",{attrs:{parameters:e.parameters,settings:[...e.settings],"widget-index":1}})],1)},s=[],a=n(9729),l=n(4858),r=n(6507);const o={mixins:[a.A],components:{LabelWidget:l["default"],LedWidget:r["default"]},computed:{labelName(){return[this.parameters[2]+":"]}}},c=o;var d=n(2401),u=(0,d.A)(c,i,s,!1,null,null,null);const m=u.exports},2503:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>m});n(7010);var i=function(){var e=this,t=e._self._c;return t("div",{ref:"container",staticClass:"d-flex flex-row",style:e.computedStyle},[t("label-widget",{attrs:{parameters:e.labelName,settings:[...e.settings],"widget-index":0}}),e._v(" "),t("progressbar-widget",{style:e.computedStyle,attrs:{parameters:e.parameters,settings:[...e.settings],"widget-index":1}})],1)},s=[],a=n(9729),l=n(4858),r=n(6825);const o={mixins:[a.A],components:{LabelWidget:l["default"],ProgressbarWidget:r["default"]},computed:{labelName(){return[this.parameters[2]+":"]}}},c=o;var d=n(2401),u=(0,d.A)(c,i,s,!1,null,null,null);const m=u.exports},2194:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>m});n(7010);var i=function(){var e=this,t=e._self._c;return t("div",{ref:"container",staticClass:"d-flex flex-row",style:e.computedStyle},[t("label-widget",{attrs:{parameters:e.labelName,settings:[...e.settings],line:e.line,lineNumber:e.lineNumber,"widget-index":0}}),e._v(" "),t("sparkline-widget",{style:e.computedStyle,attrs:{parameters:e.parameters,settings:[...e.settings],"widget-index":1}})],1)},s=[],a=n(9729),l=n(4858),r=n(6115);const o={mixins:[a.A],components:{LabelWidget:l["default"],SparklineWidget:r["default"]},computed:{labelName(){return[this.parameters[2]+":"]}}},c=o;var d=n(2401),u=(0,d.A)(c,i,s,!1,null,null,null);const m=u.exports},1921:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>m});n(7010);var i=function(){var e=this,t=e._self._c;return t("div",{ref:"container",staticClass:"d-flex flex-row",style:e.computedStyle},[t("label-widget",{attrs:{parameters:e.labelName,settings:[...e.settings],line:e.line,lineNumber:e.lineNumber,"widget-index":0}}),e._v(" "),t("value-widget",{attrs:{parameters:e.valueParameters,settings:[...e.settings],line:e.line,lineNumber:e.lineNumber,"widget-index":1}})],1)},s=[],a=(n(4293),n(9729)),l=n(4858),r=n(4348);const o={mixins:[a.A],components:{LabelWidget:l["default"],ValueWidget:r["default"]},computed:{labelName(){let e=this.parameters[2];return e.includes("[[")&&(e=e.replace("[[","[").replace("]]","]")),[e+":"]},valueParameters(){return[this.parameters[0],this.parameters[1],this.parameters[2],this.parameters[3],this.parameters[4]]}}},c=o;var d=n(2401),u=(0,d.A)(c,i,s,!1,null,null,null);const m=u.exports},974:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>h});n(7010);var i=function(){var e=this,t=e._self._c;return t("div",{ref:"container",staticClass:"d-flex flex-row",style:e.computedStyle},[t("label-widget",{attrs:{parameters:e.labelName,settings:[...e.settings],line:e.line,lineNumber:e.lineNumber,"widget-index":0}}),e._v(" "),t("value-widget",{attrs:{parameters:e.valueParameters,settings:[...e.settings],line:e.line,lineNumber:e.lineNumber,"widget-index":1}})],1)},s=[],a=(n(9375),n(9729)),l=n(4858),r=n(4348),o=n(4364);const c={mixins:[a.A],data(){return{description:"",valueParameters:[]}},components:{LabelWidget:l["default"],ValueWidget:r["default"]},computed:{labelName(){return[this.description]}},created(){this.valueParameters=this.parameters.slice(0,3),void 0!=this.parameters[4]&&this.valueParameters.push(this.parameters[4]),void 0!=this.parameters[5]&&this.valueParameters.push(this.parameters[5]),this.parameters.length>3?this.description=this.parameters[3]:(new o.x).get_item(this.parameters[0],this.parameters[1],this.parameters[2]).then((e=>{this.description=e["description"]}))}},d=c;var u=n(2401),m=(0,u.A)(d,i,s,!1,null,null,null);const h=m.exports},2171:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>m});n(7010);var i=function(){var e=this,t=e._self._c;return t("div",{ref:"container",staticClass:"d-flex flex-row",style:e.computedStyle},[t("labelvalue-widget",{attrs:{parameters:e.parameters,settings:e.labelValueSettings}}),e._v(" "),t("limitsbar-widget",{attrs:{parameters:e.limitsBarParameters,settings:[...e.settings],"widget-index":2}})],1)},s=[],a=n(1921),l=n(1057),r=n(9729);const o={mixins:[r.A],components:{LabelvalueWidget:a["default"],LimitsbarWidget:l["default"]},computed:{labelValueSettings(){return[...this.settings.filter((e=>"__SCREEN__"===e[0])),...this.settings.filter((e=>0===parseInt(e[0])||1===parseInt(e[0])))]},limitsBarParameters(){return[this.parameters[0],this.parameters[1],this.parameters[2],"CONVERTED"]}}},c=o;var d=n(2401),u=(0,d.A)(c,i,s,!1,null,null,null);const m=u.exports},8981:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>h});n(7010);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}}),e._v(" "),t("limitscolumn-widget",{attrs:{parameters:e.limitsColumnParameters,settings:[...e.settings],"widget-index":1}}),e._v(" "),t("value-widget",{attrs:{parameters:e.parameters,settings:[...e.settings],"widget-index":2}})],1)},s=[],a=n(4858),l=n(4348),r=n(6992),o=n(9729);const c={mixins:[o.A],components:{LabelWidget:a["default"],ValueWidget:l["default"],LimitscolumnWidget:r["default"]},computed:{limitsColumnParameters(){return[this.parameters[0],this.parameters[1],this.parameters[2],"CONVERTED"]}}},d=c;var u=n(2401),m=(0,u.A)(d,i,s,!1,null,null,null);const h=m.exports},9124:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>m});n(7010);var i=function(){var e=this,t=e._self._c;return t("div",{ref:"container",staticClass:"d-flex flex-row",style:e.computedStyle},[t("labelvalue-widget",{attrs:{parameters:e.labelValueParameters,settings:e.labelValueSettings}}),e._v(" "),t("rangebar-widget",{attrs:{parameters:e.rangeBarParameters,settings:[...e.settings],"widget-index":2}})],1)},s=[],a=n(1921),l=n(5736),r=n(9729);const o={mixins:[r.A],components:{LabelvalueWidget:a["default"],RangebarWidget:l["default"]},computed:{labelValueSettings(){return[...this.settings.filter((e=>"__SCREEN__"===e[0])),...this.settings.filter((e=>0===parseInt(e[0])||1===parseInt(e[0])))]},labelValueParameters(){return[this.parameters[0],this.parameters[1],this.parameters[2],this.parameters[5],this.parameters[6]]},rangeBarParameters(){return[this.parameters[0],this.parameters[1],this.parameters[2],this.parameters[3],this.parameters[4],this.parameters[5],this.parameters[7],this.parameters[8]]}}},c=o;var d=n(2401),u=(0,d.A)(c,i,s,!1,null,null,null);const m=u.exports},6507:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>d});var i=function(){var e=this,t=e._self._c;return t("div",{staticClass:"led mt-1",style:e.cssProps})},s=[],a=n(9729);const l={mixins:[a.A],data(){return{valueId:null,colors:{TRUE:"openc3-green",FALSE:"openc3-red"}}},computed:{width(){return this.parameters[4]?parseInt(this.parameters[4]):20},height(){return this.parameters[5]?parseInt(this.parameters[5]):20},cssProps(){let e=null;this.screen&&(e=this.screen.screenValues[this.valueId][0]);let t=this.colors[e];return t||(t=this.colors.ANY),t||(t="openc3-black"),{"--height":this.height+"px","--width":this.width+"px","--color":t}}},created(){this.settings.forEach((e=>{switch(e[0]){case"LED_COLOR":this.colors[e[1]]=e[2];break}})),this.parameters[3]||(this.parameters[3]="CONVERTED"),this.valueId=`${this.parameters[0]}__${this.parameters[1]}__${this.parameters[2]}__${this.parameters[3]}`,this.screen&&this.screen.addItem(this.valueId)},destroyed(){this.screen&&this.screen.deleteItem(this.valueId)}},r=l;n(4572);var o=n(2401),c=(0,o.A)(r,i,s,!1,null,"4e68ef1f",null);const d=c.exports},1057:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>m});var i=function(){var e=this,t=e._self._c;return t("div",{staticClass:"limitsbar",style:[e.cssProps,e.computedStyle]},[e._m(0)])},s=[function(){var e=this,t=e._self._c;return t("div",{staticClass:"limitsbar__container"},[t("div",{staticClass:"limitsbar__redlow"}),e._v(" "),t("div",{staticClass:"limitsbar__redhigh"}),e._v(" "),t("div",{staticClass:"limitsbar__yellowlow"}),e._v(" "),t("div",{staticClass:"limitsbar__yellowhigh"}),e._v(" "),t("div",{staticClass:"limitsbar__greenlow"}),e._v(" "),t("div",{staticClass:"limitsbar__greenhigh"}),e._v(" "),t("div",{staticClass:"limitsbar__blue"}),e._v(" "),t("div",{staticClass:"limitsbar__line"}),e._v(" "),t("div",{staticClass:"limitsbar__arrow"})])}],a=n(9729),l=n(4364);const r="DEFAULT",o={mixins:[a.A],data(){return{width:160,height:22,minValue:null,maxValue:null,scale:0,redLow:0,yellowLow:0,greenLow:0,greenHigh:0,yellowHigh:0,redHigh:0,blue:0,api:null,limitsSettings:{DEFAULT:[]},currentLimitsSet:r,currentSetRefreshInterval:null}},computed:{cssProps:function(){let e=null;this.screen&&(e=this.screen.screenValues[this.valueId][0]);let t=this.modifyLimits(this.limitsSettings[this.selectedLimitsSet]);return this.calcLimits(t),{"--height":this.height+"px","--width":this.width+"px","--container-height":this.height-5+"px","--position":this.calcPosition(e,t)+"%","--redlow-width":this.redLow+"%","--redhigh-width":this.redHigh+"%","--yellowlow-width":this.yellowLow+"%","--yellowhigh-width":this.yellowHigh+"%","--greenlow-width":this.greenLow+"%","--greenhigh-width":this.greenHigh+"%","--blue-width":this.blue+"%"}},selectedLimitsSet:function(){return this.limitsSettings.hasOwnProperty(this.currentLimitsSet)?this.currentLimitsSet:r}},created(){this.api=new l.x,this.api.get_limits(this.parameters[0],this.parameters[1],this.parameters[2]).then((e=>{this.limitsSettings=e})),this.getCurrentLimitsSet(),this.currentSetRefreshInterval=setInterval(this.getCurrentLimitsSet,6e4),this.settings.forEach((e=>{"MIN_VALUE"===e[0]&&(this.minValue=parseInt(e[1])),"MAX_VALUE"===e[0]&&(this.maxValue=parseInt(e[1]))})),this.width=this.setWidth(this.parameters[4],"px",this.width),this.height=this.setHeight(this.parameters[5],"px",this.height);let e="CONVERTED";this.parameters[3]&&(e=this.parameters[3]),this.valueId=`${this.parameters[0]}__${this.parameters[1]}__${this.parameters[2]}__${e}`,this.screen&&this.screen.addItem(this.valueId)},destroyed(){this.screen&&this.screen.deleteItem(this.valueId),clearInterval(this.currentSetRefreshInterval)},methods:{modifyLimits(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.yellowLow=0),e[2]==e[3]&&(this.yellowHigh=0);let t=80;return 0==this.redLow&&(t+=10),0==this.redHigh&&(t+=10),this.scale=(e[3]-e[0])/t,e},calcPosition(e,t){if(null==e||!t)return;let n=t[0]-10*this.scale;this.minValue&&this.minValue==t[0]&&(n=t[0]);let i=t[3]-10*this.scale;if(this.maxValue&&this.maxValue==t[3]&&(i=t[3]),e.raw)return"-Infinity"===e.raw?0:100;if(e<this.min)return 0;if(e>this.max)return 100;{const t=parseInt((e-n)/this.scale);return t>100?100:t<0?0:t}},calcLimits(e){e&&(this.yellowLow=Math.round((e[1]-e[0])/this.scale),this.yellowHigh=Math.round((e[3]-e[2])/this.scale),e.length>4?(this.greenLow=Math.round((e[4]-e[1])/this.scale),this.greenHigh=Math.round((e[2]-e[5])/this.scale),this.blue=Math.round(100-this.redLow-this.yellowLow-this.greenLow-this.greenHigh-this.yellowHigh-this.redHigh)):(this.greenLow=Math.round(100-this.redLow-this.yellowLow-this.yellowHigh-this.redHigh),this.greenHigh=0,this.blue=0))},getCurrentLimitsSet:function(){this.api.get_limits_set().then((e=>{this.currentLimitsSet=e}))}}},c=o;n(6619);var d=n(2401),u=(0,d.A)(c,i,s,!1,null,"344f6330",null);const m=u.exports},8518:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>d});var i=function(){var e=this,t=e._self._c;return t("div",{ref:"container",staticClass:"d-flex flex-row",style:e.computedStyle},[t("div",{staticClass:"led align-self-center",style:e.cssProps}),e._v(" "),t("label-widget",{style:e.computedStyle,attrs:{parameters:e.labelName,settings:e.settings,"widget-index":1}})],1)},s=[],a=n(2967);const l={mixins:[a.A],data(){return{radius:15,fullLabelDisplay:!1}},created(){this.parameters[4]&&(this.radius=parseInt(this.parameters[4])),this.parameters[5]&&"true"===this.parameters[5].toLowerCase()&&(this.fullLabelDisplay=!0)},computed:{labelName(){return this.fullLabelDisplay?[this.parameters[0]+" "+this.parameters[1]+" "+this.parameters[2]]:[this.parameters[2]]},cssProps(){let e=null;return this.screen&&(e=this.screen.screenValues[this.valueId][0]),{"--height":this.radius+"px","--width":this.radius+"px","--color":this.limitsColor}}},methods:{getType(){var e="CONVERTED";return this.parameters[3]&&(e=this.parameters[3]),e}}},r=l;n(8490);var o=n(2401),c=(0,o.A)(r,i,s,!1,null,"47f390ae",null);const d=c.exports},6992:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>m});var i=function(){var e=this,t=e._self._c;return t("div",{staticClass:"limitsbar",style:[e.cssProps,e.computedStyle]},[e._m(0)])},s=[function(){var e=this,t=e._self._c;return t("div",{staticClass:"limitsbar__container"},[t("div",{staticClass:"limitsbar__redlow"}),e._v(" "),t("div",{staticClass:"limitsbar__redhigh"}),e._v(" "),t("div",{staticClass:"limitsbar__yellowlow"}),e._v(" "),t("div",{staticClass:"limitsbar__yellowhigh"}),e._v(" "),t("div",{staticClass:"limitsbar__greenlow"}),e._v(" "),t("div",{staticClass:"limitsbar__greenhigh"}),e._v(" "),t("div",{staticClass:"limitsbar__blue"}),e._v(" "),t("div",{staticClass:"limitsbar__line"}),e._v(" "),t("div",{staticClass:"limitsbar__arrow"})])}],a=n(9729),l=n(4364);const r="DEFAULT",o={mixins:[a.A],data(){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(){let e=null;return this.screen&&(e=this.screen.screenValues[this.valueId][0]),this.calcLimits(this.limitsSettings[this.selectedLimitsSet]),{"--height":this.height+"px","--width":this.width+"px","--container-width":this.width-5+"px","--position":this.calcPosition(e,this.limitsSettings[this.selectedLimitsSet])+"%","--redlow-height":this.redLow+"%","--redhigh-height":this.redHigh+"%","--yellowlow-height":this.yellowLow+"%","--yellowhigh-height":this.yellowHigh+"%","--greenlow-height":this.greenLow+"%","--greenhigh-height":this.greenHigh+"%","--blue-height":this.blue+"%"}},selectedLimitsSet:function(){return this.limitsSettings.hasOwnProperty(this.currentLimitsSet)?this.currentLimitsSet:r}},created(){this.api=new l.x,this.api.get_limits(this.parameters[0],this.parameters[1],this.parameters[2]).then((e=>{this.limitsSettings=e})),this.getCurrentLimitsSet(),this.currentSetRefreshInterval=setInterval(this.getCurrentLimitsSet,6e4),this.width=this.setWidth(this.parameters[4],"px",this.width),this.height=this.setHeight(this.parameters[5],"px",this.height);let e="CONVERTED";this.parameters[3]&&(e=this.parameters[3]),this.valueId=`${this.parameters[0]}__${this.parameters[1]}__${this.parameters[2]}__${e}`,this.screen&&this.screen.addItem(this.valueId)},destroyed(){this.screen&&this.screen.deleteItem(this.valueId),clearInterval(this.currentSetRefreshInterval)},methods:{calcPosition(e,t){if(!e||!t)return;let n=.8;t[0]===t[1]&&(n+=.1),t[2]===t[3]&&(n+=.1);const 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;{const t=parseInt((e-s)/i*100);return t>100?100:t<0?0:t}},calcLimits(e){if(!e)return;let 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;const 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(){this.api.get_limits_set().then((e=>{this.currentLimitsSet=e}))}}},c=o;n(2846);var d=n(2401),u=(0,d.A)(c,i,s,!1,null,"0e4c2263",null);const m=u.exports},2653:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>u});var i=function(){var e=this,t=e._self._c;return t("graph",{ref:"graph"+e.id,style:e.computedStyle,attrs:{id:e.id,state:e.state,"selected-graph-id":e.id,startTime:e.startTime,"seconds-graphed":e.secondsGraphed,"points-saved":e.pointsSaved,"points-graphed":e.pointsGraphed,"initial-items":e.items,height:e.size.height,width:e.size.width,"hide-system-bar":"","hide-overview":""},on:{pause:()=>e.state="pause",start:()=>e.state="start"}})},s=[],a=n(1033),l=n(2056);const r={components:{Graph:l.A},mixins:[a.A]},o=r;var c=n(2401),d=(0,c.A)(o,i,s,!1,null,null,null);const u=d.exports},5043:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>m});var i=function(){var e=this,t=e._self._c;return t("table",{style:e.computedStyle,attrs:{role:"presentation"}},e._l(e.widgetChunks,(function(n,i){return t("tr",{key:"r"+i},e._l(n,(function(n,i){return t("td",{key:"c"+i},[t(n.type,e._g({tag:"component",attrs:{target:n.target,parameters:n.parameters,settings:n.settings,widgets:n.widgets,name:n.name,line:n.line,lineNumber:n.lineNumber}},e.$listeners))],1)})),0)})),0)},s=[],a=(n(9375),n(9843)),l=n(5250),r=n.n(l);const o={mixins:[a.A],computed:{columns(){return parseInt(this.parameters[0])},widgetChunks(){return r().chunk(this.widgets,this.columns)}},created:function(){if(this.parameters[1]){let e=this.parameters[1];this.widgets.forEach((t=>{const n=t.settings.find((e=>"MARGIN"===e[0]||"RAW"===e[0]&&e[1].toUpperCase().includes("MARGIN")));void 0===n&&t.settings.push(["MARGIN",e])}))}}},c=o;var d=n(2401),u=(0,d.A)(c,i,s,!1,null,null,null);const m=u.exports},6825:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>d});var i=function(){var e=this,t=e._self._c;return t("rux-progress",{staticClass:"progress",style:e.computedStyle,attrs:{value:e._value}})},s=[],a=n(9729);const l={mixins:[a.A],props:{value:{default:null}},data:function(){return{valueId:null,scaleFactor:1,width:150}},computed:{_value:function(){let e=this.value;return null===e&&this.screen&&(e=this.screen.screenValues[this.valueId][0]),parseInt(parseFloat(e)*this.scaleFactor)}},created:function(){if(this.parameters[3]&&(this.scaleFactor=parseFloat(this.parameters[3])),this.width=this.setWidth(this.parameters[4],"px",this.width),null===this.value){var e="CONVERTED";this.parameters[5]&&(e=this.parameters[5]),this.valueId=`${this.parameters[0]}__${this.parameters[1]}__${this.parameters[2]}__${e}`,this.screen&&this.screen.addItem(this.valueId)}},destroyed:function(){this.screen&&this.screen.deleteItem(this.valueId)}},r=l;n(3519);var o=n(2401),c=(0,o.A)(r,i,s,!1,null,"e34552b0",null);const d=c.exports},5993:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>d});var i=function(){var e=this,t=e._self._c;return t("v-radio",{style:e.computedStyle,attrs:{"hide-details":"",dense:"",label:e.label,value:e.value}})},s=[],a=n(9729);const l={props:{value:{type:Number}},mixins:[a.A],data(){return{label:"Radio"}},created(){this.label=this.parameters[0]}},r=l;var o=n(2401),c=(0,o.A)(r,i,s,!1,null,null,null);const d=c.exports},5758:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>d});var i=function(){var e=this,t=e._self._c;return t("v-radio-group",{style:e.computedStyle,attrs:{"hide-details":"",dense:""},model:{value:e.selectedIndex,callback:function(t){e.selectedIndex=t},expression:"selectedIndex"}},e._l(e.widgets,(function(n,i){return t(n.type,e._g({key:i,tag:"component",attrs:{value:i,target:n.target,parameters:n.parameters,settings:n.settings,name:n.name}},e.$listeners))})),1)},s=[],a=n(9843);const l={mixins:[a.A],data(){return{selectedIndex:0}},created(){this.settings.forEach((e=>{"NAMED_WIDGET"===e[0]&&e[2].setNamedWidget(e[1],this)})),this.parameters[0]&&(this.selectedIndex=parseInt(this.parameters[0]))},methods:{selected(){return this.selectedIndex}}},r=l;var o=n(2401),c=(0,o.A)(r,i,s,!1,null,null,null);const d=c.exports},5736:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>d});var i=function(){var e=this,t=e._self._c;return t("div",{staticClass:"rangebar",style:[e.cssProps,e.computedStyle]},[e._m(0)])},s=[function(){var e=this,t=e._self._c;return t("div",{staticClass:"rangebar__container"},[t("div",{staticClass:"rangebar__line"}),e._v(" "),t("div",{staticClass:"rangebar__arrow"})])}],a=n(9729);const l={mixins:[a.A],data(){return{width:160,height:22}},computed:{cssProps(){return{"--height":this.height+"px","--width":this.width+"px","--container-height":this.height-5+"px","--position":this.calcPosition()+"%"}},min(){return parseInt(this.parameters[3])},max(){return parseInt(this.parameters[4])},range(){return this.max-this.min}},created(){const e=this.parameters[5]?this.parameters[5]:"CONVERTED";this.valueId=`${this.parameters[0]}__${this.parameters[1]}__${this.parameters[2]}__${e}`,this.screen&&this.screen.addItem(this.valueId),this.width=this.setWidth(this.parameters[6],"px",this.width),this.height=this.setHeight(this.parameters[7],"px",this.height)},destroyed(){this.screen&&this.screen.deleteItem(this.valueId)},methods:{calcPosition(){let e=null;if(this.screen&&(e=this.screen.screenValues[this.valueId][0]),!e)return 0;if(e.raw)return"-Infinity"===e.raw?0:100;const t=(e-this.min)/this.range*100;return t>100?100:t<0?0:t}}},r=l;n(519);var o=n(2401),c=(0,o.A)(r,i,s,!1,null,"f50bb458",null);const d=c.exports},9517:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>d});var i=function(){var e=this,t=e._self._c;return t("rux-monitoring-icon",e._g(e._b({staticClass:"rux-icon",attrs:{icon:e.icon,status:e.status,label:e.label,sublabel:e.subLabel},on:{click:e.clickHandler}},"rux-monitoring-icon",e.attrs,!1),e.on))},s=[],a=(n(9375),n(7010),n(9729));const l={mixins:[a.A],props:{value:{default:null}},data:function(){return{valueId:null,icon:"",label:"",subLabel:"",items:[]}},computed:{status:function(){let e="off";if(this.screen)for(const t of this.items){let n=this.screen.screenValues[t][1];n&&((n.includes("BLUE")||n.includes("GREEN"))&&"caution"!=e&&"critical"!=e&&(e="normal"),n.includes("YELLOW")&&"critical"!=e&&(e="caution"),n.includes("RED")&&(e="critical"))}else e="off";return e}},created:function(){this.icon=this.parameters[0],this.label=this.parameters[1],this.subLabel=this.parameters[2],this.settings.forEach((e=>{switch(e[0].toUpperCase()){case"SCREEN":this.screenTarget=e[1],this.screenName=e[2];break;case"TLM":let t="CONVERTED";e[4]&&(t=e[4]);let n=`${e[1]}__${e[2]}__${e[3]}__${t}`;this.items.push(n),this.screen&&this.screen.addItem(n);break}}))},destroyed:function(){this.screen&&this.items.forEach((e=>{this.screen.deleteItem(e)}))},methods:{clickHandler(){this.screenTarget&&this.screenName&&this.screen.open(this.screenTarget,this.screenName)}}},r=l;var o=n(2401),c=(0,o.A)(r,i,s,!1,null,null,null);const d=c.exports},9769:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>u});var i=function(){var e=this,t=e._self._c;return t("vertical-widget",e._g({staticClass:"overflow-y-auto",style:e.computedStyle,attrs:{settings:e.settings,parameters:e.parameters.slice(1),widgets:e.widgets}},e.$listeners))},s=[],a=n(9843),l=n(1629);const r={mixins:[a.A],components:{VerticalWidget:l["default"]},created:function(){this.setHeight(this.parameters[0],"px",200)}},o=r;var c=n(2401),d=(0,c.A)(o,i,s,!1,null,null,null);const u=d.exports},2959:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>d});var i=function(){var e=this,t=e._self._c;return t("v-banner",{style:e.computedStyle,attrs:{"single-line":""}},[e._v(e._s(e.labelText))])},s=[],a=n(9729);const l={mixins:[a.A],computed:{labelText(){return this.parameters[0]}}},r=l;var o=n(2401),c=(0,o.A)(r,i,s,!1,null,null,null);const d=c.exports},6637:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>d});var i=function(){var e=this,t=e._self._c;return t("div",{style:e.style})},s=[],a=n(9729);const l={mixins:[a.A],computed:{style:function(){return[`width: ${this.parameters[0]}px;`,`height: ${this.parameters[1]}px;`].join("")}}},r=l;var o=n(2401),c=(0,o.A)(r,i,s,!1,null,null,null);const d=c.exports},6115:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>u});var i=function(){var e=this,t=e._self._c;return t("graph",{ref:"graph"+e.id,style:e.computedStyle,attrs:{id:e.id,state:e.state,"selected-graph-id":e.id,startTime:e.startTime,"seconds-graphed":e.secondsGraphed,"points-saved":e.pointsSaved,"points-graphed":e.pointsGraphed,"initial-items":e.items,height:e.size.height,width:e.size.width,sparkline:""}})},s=[],a=n(1033),l=n(2056);const r={components:{Graph:l.A},mixins:[a.A],data:function(){return{secondsGraphed:300,pointsSaved:300,pointsGraphed:300,size:{height:30,width:130}}}},o=r;var c=n(2401),d=(0,c.A)(o,i,s,!1,null,null,null);const u=d.exports},2926:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>d});var i=function(){var e=this,t=e._self._c;return t("div",[t("v-tabs",{style:e.computedStyle,model:{value:e.curTab,callback:function(t){e.curTab=t},expression:"curTab"}},e._l(e.widgets,(function(n,i){return t("v-tab",{key:i},[e._v("\n "+e._s(n.parameters[0])+"\n ")])})),1),e._v(" "),t("v-tabs-items",{model:{value:e.curTab,callback:function(t){e.curTab=t},expression:"curTab"}},e._l(e.widgets,(function(n,i){return t("v-tab-item",{key:i},e._l(n.widgets,(function(n,s){return t(n.type,e._g({key:`${i}-${s}`,tag:"component",attrs:{target:n.target,parameters:n.parameters,settings:n.settings,widgets:n.widgets,name:n.name,line:n.line,lineNumber:n.lineNumber}},e.$listeners))})),1)})),1)],1)},s=[],a=n(9843);const l={mixins:[a.A],data:function(){return{curTab:null}},watch:{curTab:function(){this.$emit("min-max-screen")}}},r=l;var o=n(2401),c=(0,o.A)(r,i,s,!1,null,null,null);const d=c.exports},2128:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>u});var i=function(){var e=this,t=e._self._c;return t("div",{staticClass:"textbox-widget-container"},[t("v-textarea",{class:e.valueClass,style:[e.computedStyle,e.aging],attrs:{solo:"",dense:"",readonly:"","hide-details":"",placeholder:"Value",height:e.height,value:e._value,"data-test":"valueText"},on:{contextmenu:e.showContextMenu}}),e._v(" "),t("v-menu",{attrs:{"position-x":e.x,"position-y":e.y,absolute:"","offset-y":""},model:{value:e.contextMenuShown,callback:function(t){e.contextMenuShown=t},expression:"contextMenuShown"}},[t("v-list",e._l(e.contextMenuOptions,(function(n,i){return t("v-list-item",{key:i,on:{click:function(e){return e.stopPropagation(),n.action.apply(null,arguments)}}},[t("v-list-item-title",[e._v(e._s(n.title))])],1)})),1)],1),e._v(" "),t("details-dialog",{attrs:{"target-name":e.parameters[0],"packet-name":e.parameters[1],"item-name":e.parameters[2]},model:{value:e.viewDetails,callback:function(t){e.viewDetails=t},expression:"viewDetails"}})],1)},s=[],a=n(2967),l=n(9821);n(9471);const r={components:{DetailsDialog:l.A},data:function(){return{width:200,height:200}},mixins:[a.A],computed:{aging(){return{"--aging":this.grayLevel}}},created:function(){this.width=this.setWidth(this.parameters[3],"px",this.width),this.height=this.setHeight(this.parameters[4],"px",this.height)},methods:{getType:function(){var e="CONVERTED";return this.parameters[5]&&(e=this.parameters[5]),e}}},o=r;n(1552);var c=n(2401),d=(0,c.A)(o,i,s,!1,null,"0b5bfdc6",null);const u=d.exports},7540:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>d});var i=function(){var e=this,t=e._self._c;return t("v-text-field",{style:e.computedStyle,attrs:{solo:"",dense:"","single-line":"","hide-no-data":"","hide-details":""},model:{value:e.value,callback:function(t){e.value=t},expression:"value"}})},s=[],a=n(9729);const l={mixins:[a.A],data(){return{value:null}},created(){this.settings.forEach((e=>{"NAMED_WIDGET"===e[0]&&e[2].setNamedWidget(e[1],this)})),this.setWidth(this.parameters[0],"ch",12),this.parameters[1]&&(this.value=this.parameters[1])},methods:{text(){return this.value}}},r=l;var o=n(2401),c=(0,o.A)(r,i,s,!1,null,null,null);const d=c.exports},6525:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>d});var i=function(){var e=this,t=e._self._c;return t("span",{staticClass:"text-h5 text-center pa-1 mt-1 label",style:e.computedStyle},[e._v("\n "+e._s(e.labelText)+"\n")])},s=[],a=(n(7107),n(9729));const l={mixins:[a.A],computed:{labelText(){return this.parameters[0]}},created(){if(this.parameters.length<1)throw new Error("Not enough parameters for TITLE.")}},r=l;var o=n(2401),c=(0,o.A)(r,i,s,!1,null,null,null);const d=c.exports},4348:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>m});var i=function(){var e=this,t=e._self._c;return t("div",{staticClass:"value-widget-container",style:[e.computedStyle,e.aging]},[t("v-tooltip",{attrs:{bottom:""},scopedSlots:e._u([{key:"activator",fn:function({on:n,attrs:i}){return[t("v-text-field",e._g(e._b({class:e.valueClass,attrs:{solo:"",dense:"",readonly:"","single-line":"","hide-no-data":"","hide-details":"",placeholder:"Value",value:e._value,"prepend-inner-icon":e.astroIcon,"data-test":"value"},on:{contextmenu:e.showContextMenu}},"v-text-field",i,!1),n))]}}])},[e._v(" "),t("span",[e._v(e._s(e.fullName))])]),e._v(" "),t("v-menu",{staticStyle:{"z-index":"10"},attrs:{"position-x":e.x,"position-y":e.y,absolute:"","offset-y":""},model:{value:e.contextMenuShown,callback:function(t){e.contextMenuShown=t},expression:"contextMenuShown"}},[t("v-list",e._l(e.contextMenuOptions,(function(n,i){return t("v-list-item",{key:i,on:{click:function(e){return e.stopPropagation(),n.action.apply(null,arguments)}}},[t("v-list-item-title",[e._v(e._s(n.title))])],1)})),1)],1),e._v(" "),t("details-dialog",{attrs:{"target-name":e.parameters[0],"packet-name":e.parameters[1],"item-name":e.parameters[2]},model:{value:e.viewDetails,callback:function(t){e.viewDetails=t},expression:"viewDetails"}})],1)},s=[],a=n(2967),l=n(9821);const r=4,o={components:{DetailsDialog:l.A},mixins:[a.A],data:function(){return{width:12+r}},computed:{fullName(){return this.parameters[0]+" "+this.parameters[1]+" "+this.parameters[2]},aging(){return{"--aging":this.grayLevel}}},created(){this.verifyNumParams("VALUE",3,5,"VALUE <TARGET> <PACKET> <ITEM> <TYPE> <WIDTH>"),this.setWidth(parseInt(this.parameters[4])+r,"ch",this.width)}},c=o;n(8087);var d=n(2401),u=(0,d.A)(c,i,s,!1,null,"f6adf1e0",null);const m=u.exports},440:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>m});n(7010);var i=function(){var e=this,t=e._self._c;return t("div",{ref:"container",staticClass:"d-flex flex-row",style:e.computedStyle},[t("value-widget",{attrs:{parameters:e.parameters,settings:[...e.settings],"widget-index":0}}),e._v(" "),t("limitsbar-widget",{attrs:{parameters:e.parameters.slice(0,4),settings:[...e.settings],"widget-index":1}})],1)},s=[],a=n(4348),l=n(1057),r=n(9729);const o={mixins:[r.A],components:{ValueWidget:a["default"],LimitsbarWidget:l["default"]},computed:{limitsBarParameters(){return[this.parameters[0],this.parameters[1],this.parameters[2],this.parameters[3]]}}},c=o;var d=n(2401),u=(0,d.A)(c,i,s,!1,null,null,null);const m=u.exports},6931:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>m});n(7010);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}}),e._v(" "),t("value-widget",{attrs:{parameters:e.parameters,settings:[...e.settings],"widget-index":1}})],1)},s=[],a=n(4348),l=n(6992),r=n(9729);const o={mixins:[r.A],components:{ValueWidget:a["default"],LimitscolumnWidget:l["default"]},computed:{limitsColumnParameters(){return[this.parameters[0],this.parameters[1],this.parameters[2],"CONVERTED"]}}},c=o;var d=n(2401),u=(0,d.A)(c,i,s,!1,null,null,null);const m=u.exports},5918:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>m});n(7010);var i=function(){var e=this,t=e._self._c;return t("div",{ref:"container",staticClass:"d-flex flex-row",style:e.computedStyle},[t("value-widget",{attrs:{parameters:e.valueParameters,settings:[...e.settings],"widget-index":0}}),e._v(" "),t("rangebar-widget",{attrs:{parameters:e.rangeBarParameters,settings:[...e.settings],"widget-index":1}})],1)},s=[],a=n(4348),l=n(5736),r=n(9729);const o={mixins:[r.A],components:{ValueWidget:a["default"],RangebarWidget:l["default"]},computed:{valueParameters(){return[this.parameters[0],this.parameters[1],this.parameters[2],this.parameters[5],this.parameters[6]]},rangeBarParameters(){return[this.parameters[0],this.parameters[1],this.parameters[2],this.parameters[3],this.parameters[4],this.parameters[5],this.parameters[7],this.parameters[8]]}}},c=o;var d=n(2401),u=(0,d.A)(c,i,s,!1,null,null,null);const m=u.exports},1629:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>d});var i=function(){var e=this,t=e._self._c;return t("div",{ref:"container",staticClass:"d-flex flex-column",style:e.computedStyle},e._l(e.widgets,(function(n,i){return t(n.type,e._g({key:i,tag:"component",attrs:{target:n.target,parameters:n.parameters,settings:n.settings,widgets:n.widgets,name:n.name,line:n.line,lineNumber:n.lineNumber}},e.$listeners))})),1)},s=[],a=(n(9375),n(9843));const l={mixins:[a.A],created:function(){if(this.parameters[0]){let e=this.parameters[0];this.widgets.forEach((t=>{const n=t.settings.find((e=>"MARGIN"===e[0]||"RAW"===e[0]&&e[1].toUpperCase().includes("MARGIN")));void 0===n&&t.settings.push(["MARGIN",e])}))}}},r=l;var o=n(2401),c=(0,o.A)(r,i,s,!1,null,null,null);const d=c.exports},5757:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>u});var i=function(){var e=this,t=e._self._c;return t("div",[t("v-banner",{staticClass:"boxbanner",style:e.computedStyle,attrs:{"single-line":""}},[e._v(e._s(e.parameters[0]))]),e._v(" "),t("vertical-widget",e._g({attrs:{parameters:e.parameters.slice(1),settings:e.settings,widgets:e.widgets}},e.$listeners))],1)},s=[],a=n(1629),l=n(9843);const r={mixins:[l.A],components:{VerticalWidget:a["default"]}},o=r;n(1241);var c=n(2401),d=(0,c.A)(o,i,s,!1,null,"e0b00b10",null);const u=d.exports},1972:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});var i=n(6758),s=n.n(i),a=n(935),l=n.n(a),r=l()(s());r.push([e.id,".v-alert[data-v-77161074]{margin-bottom:0}",""]);const o=r},8331:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});var i=n(6758),s=n.n(i),a=n(935),l=n.n(a),r=l()(s());r.push([e.id,"i.v-icon.mdi-chevron-down{animation:pulse 2s 3}@keyframes pulse{0%{-webkit-box-shadow:0 0 0 0 hsla(0,0%,100%,.4)}70%{-webkit-box-shadow:0 0 0 10px hsla(0,0%,100%,0)}to{-webkit-box-shadow:0 0 0 0 hsla(0,0%,100%,0)}}",""]);const o=r},5367:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});var i=n(6758),s=n.n(i),a=n(935),l=n.n(a),r=l()(s());r.push([e.id,".v-expansion-panel-content[data-v-01a62a1d]{.container[data-v-01a62a1d]{margin:0}}.v-expansion-panel-header[data-v-01a62a1d]{min-height:10px;padding:5px}.grid[data-v-01a62a1d]{position:relative}.item[data-v-01a62a1d]{position:absolute;display:block;margin:5px;z-index:1}.item.muuri-item-dragging[data-v-01a62a1d]{z-index:3}.item.muuri-item-releasing[data-v-01a62a1d]{z-index:2}.item.muuri-item-hidden[data-v-01a62a1d]{z-index:0}.item-content[data-v-01a62a1d]{position:relative;cursor:pointer;border-radius:6px}",""]);const o=r},3076:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});var i=n(6758),s=n.n(i),a=n(935),l=n.n(a),r=l()(s());r.push([e.id,".label[data-v-6659f972]{font-weight:700;text-transform:capitalize}[data-v-6659f972] .v-input--selection-controls{padding:0;margin:0}",""]);const o=r},7589:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});var i=n(6758),s=n.n(i),a=n(935),l=n.n(a),r=l()(s());r.push([e.id,".ace_autocomplete{width:60vw!important}",""]);const o=r},1365:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});var i=n(6758),s=n.n(i),a=n(935),l=n.n(a),r=l()(s());r.push([e.id,".editor[data-v-2f59da98]{height:50vh;width:75vw;position:relative;font-size:16px}.v-textarea[data-v-2f59da98] textarea{padding:5px}",""]);const o=r},8730:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});var i=n(6758),s=n.n(i),a=n(935),l=n.n(a),r=l()(s());r.push([e.id,".edit-box,.v-window-item{background-color:var(--color-background-surface-default)}.edit-box{color:hsla(0,0%,100%,.7);padding:10px;margin-top:10px}.v-small-dialog__content{background-color:var(--color-background-surface-selected);padding:5px 5px}.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}",""]);const o=r},9530:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});var i=n(6758),s=n.n(i),a=n(935),l=n.n(a),r=l()(s());r.push([e.id,"#chart[data-v-5efb6623] .u-select{background-color:hsla(0,0%,100%,.07)}",""]);const o=r},1340:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});var i=n(6758),s=n.n(i),a=n(935),l=n.n(a),r=l()(s());r.push([e.id,".errors[data-v-ff31ea44]{padding-top:0;margin-top:0}.v-textarea[data-v-ff31ea44] textarea{padding:5px}",""]);const o=r},9808:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});var i=n(6758),s=n.n(i),a=n(935),l=n.n(a),r=l()(s());r.push([e.id,".app-title[data-v-57d4fdd2]{font-size:2rem}.menu-button[data-v-57d4fdd2]{border-color:var(--color-border-interactive-muted)!important;background-color:var(--color-background-base-default)!important;padding-right:3px!important}span.v-btn__content span[data-v-57d4fdd2]{padding-right:5px}.myicon[data-v-57d4fdd2]{background-color:var(--color-background-surface-selected);border:1px solid currentColor;border-radius:3px;height:36px!important;width:36px!important}.v-list[data-v-57d4fdd2] .v-label{margin-left:5px}.v-list-item__icon[data-v-57d4fdd2]{margin-right:15px!important}.v-list-item__title[data-v-57d4fdd2]{color:#fff}",""]);const o=r},2604:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});var i=n(6758),s=n.n(i),a=n(935),l=n.n(a),r=l()(s());r.push([e.id,".array-widget-container[data-v-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}",""]);const o=r},1651:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});var i=n(6758),s=n.n(i),a=n(935),l=n.n(a),r=l()(s());r.push([e.id,".block-widget-container[data-v-0872fd0e] .v-input__slot{background:rgba(var(--aging),var(--aging),var(--aging),1)!important}.v-textarea[data-v-0872fd0e] textarea{font-family:Courier New,Courier,monospace}.value[data-v-0872fd0e] div{min-height:24px!important;display:flex!important;align-items:center!important}.openc3-green[data-v-0872fd0e] input{color:#00c800}.openc3-yellow[data-v-0872fd0e] input{color:#ffdc00}.openc3-red[data-v-0872fd0e] input{color:#ff2d2d}.openc3-blue[data-v-0872fd0e] input{color:#09f}.openc3-purple[data-v-0872fd0e] input{color:#c800c8}.openc3-black[data-v-0872fd0e] input{color:#000}.openc3-white[data-v-0872fd0e] input{color:#fff}",""]);const o=r},8784:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});var i=n(6758),s=n.n(i),a=n(935),l=n.n(a),r=l()(s());r.push([e.id,".boxbanner[data-v-7935dee2] .v-banner__wrapper{padding:4px!important}.boxbanner[data-v-7935dee2] .v-banner__text{font-weight:600;font-size:16px}",""]);const o=r},2498:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});var i=n(6758),s=n.n(i),a=n(935),l=n.n(a),r=l()(s());r.push([e.id,".label[data-v-19db816e]{font-family:var(--font-family);font-size:var(--font-size);font-weight:var(--font-weight);font-style:var(--font-style)}",""]);const o=r},9316:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});var i=n(6758),s=n.n(i),a=n(935),l=n.n(a),r=l()(s());r.push([e.id,".led[data-v-4e68ef1f]{height:var(--height);width:var(--width);background-color:var(--color);border-radius:50%}",""]);const o=r},9058:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});var i=n(6758),s=n.n(i),a=n(935),l=n.n(a),r=l()(s());r.push([e.id,".led[data-v-47f390ae]{height:var(--height);width:var(--width);background-color:var(--color);border-radius:50%}",""]);const o=r},6552:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});var i=n(6758),s=n.n(i),a=n(935),l=n.n(a),r=l()(s());r.push([e.id,".textbox-widget-container[data-v-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}",""]);const o=r},3425:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});var i=n(6758),s=n.n(i),a=n(935),l=n.n(a),r=l()(s());r.push([e.id,".boxbanner[data-v-e0b00b10] .v-banner__wrapper{padding:4px!important}.boxbanner[data-v-e0b00b10] .v-banner__text{font-weight:600;font-size:16px}",""]);const o=r},3224:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});var i=n(6758),s=n.n(i),a=n(935),l=n.n(a),r=l()(s());r.push([e.id,"svg[data-v-17947dc7]{background-color:#fff}",""]);const o=r},8452:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});var i=n(6758),s=n.n(i),a=n(935),l=n.n(a),r=l()(s());r.push([e.id,".limitsbar[data-v-344f6330]{cursor:default;display:flex;justify-content:center;align-items:center;padding:5px;padding-top:15px;width:var(--width)}.limitsbar__container[data-v-344f6330]{position:relative;flex:1;height:var(--container-height);border:1px solid #000;background-color:#fff}.limitsbar__redlow[data-v-344f6330]{left:0;width:var(--redlow-width)}.limitsbar__redhigh[data-v-344f6330],.limitsbar__redlow[data-v-344f6330]{position:absolute;top:-1px;height:var(--container-height);background-color:#ff2d2d}.limitsbar__redhigh[data-v-344f6330]{right:0;width:var(--redhigh-width)}.limitsbar__yellowlow[data-v-344f6330]{left:var(--redlow-width);width:var(--yellowlow-width)}.limitsbar__yellowhigh[data-v-344f6330],.limitsbar__yellowlow[data-v-344f6330]{position:absolute;top:-1px;height:var(--container-height);background-color:#ffdc00}.limitsbar__yellowhigh[data-v-344f6330]{right:var(--redhigh-width);width:var(--yellowhigh-width)}.limitsbar__greenlow[data-v-344f6330]{left:calc(var(--redlow-width) + var(--yellowlow-width));width:var(--greenlow-width)}.limitsbar__greenhigh[data-v-344f6330],.limitsbar__greenlow[data-v-344f6330]{position:absolute;top:-1px;height:var(--container-height);background-color:#00c800}.limitsbar__greenhigh[data-v-344f6330]{right:calc(var(--redhigh-width) + var(--yellowhigh-width));width:var(--greenhigh-width)}.limitsbar__blue[data-v-344f6330]{top:-1px;left:calc(var(--redlow-width) + var(--yellowlow-width) + var(--greenlow-width));width:var(--blue-width);background-color:#09f}.limitsbar__blue[data-v-344f6330],.limitsbar__line[data-v-344f6330]{position:absolute;height:var(--container-height)}.limitsbar__line[data-v-344f6330]{left:var(--position);width:1px;background-color:gray}.limitsbar__arrow[data-v-344f6330]{position:absolute;top:-5px;left:var(--position);width:0;height:0;transform:translateX(-5px);border-left:5px solid transparent;border-right:5px solid transparent;border-top:5px solid gray}",""]);const o=r},5895:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});var i=n(6758),s=n.n(i),a=n(935),l=n.n(a),r=l()(s());r.push([e.id,".limitsbar[data-v-0e4c2263]{cursor:default;display:flex;flex-direction:column;justify-content:center;align-items:center;padding:5px;height:var(--height)}.limitsbar__container[data-v-0e4c2263]{position:relative;flex:1 1 100%;width:var(--container-width);border:1px solid #000;background-color:#fff}.limitsbar__redlow[data-v-0e4c2263]{bottom:0;height:var(--redlow-height)}.limitsbar__redhigh[data-v-0e4c2263],.limitsbar__redlow[data-v-0e4c2263]{position:absolute;width:var(--container-width);background-color:#ff2d2d}.limitsbar__redhigh[data-v-0e4c2263]{top:0;height:var(--redhigh-height)}.limitsbar__yellowlow[data-v-0e4c2263]{bottom:var(--redlow-height);height:var(--yellowlow-height)}.limitsbar__yellowhigh[data-v-0e4c2263],.limitsbar__yellowlow[data-v-0e4c2263]{position:absolute;width:var(--container-width);background-color:#ffdc00}.limitsbar__yellowhigh[data-v-0e4c2263]{top:var(--redhigh-height);height:var(--yellowhigh-height)}.limitsbar__greenlow[data-v-0e4c2263]{bottom:calc(var(--redlow-height) + var(--yellowlow-height));height:var(--greenlow-height)}.limitsbar__greenhigh[data-v-0e4c2263],.limitsbar__greenlow[data-v-0e4c2263]{position:absolute;width:var(--container-width);background-color:#00c800}.limitsbar__greenhigh[data-v-0e4c2263]{top:calc(var(--redhigh-height) + var(--yellowhigh-height));height:var(--greenhigh-height)}.limitsbar__blue[data-v-0e4c2263]{bottom:calc(var(--redlow-height) + var(--yellowlow-height) + var(--greenlow-height));height:var(--blue-height);background-color:#09f}.limitsbar__blue[data-v-0e4c2263],.limitsbar__line[data-v-0e4c2263]{position:absolute;width:var(--container-width)}.limitsbar__line[data-v-0e4c2263]{bottom:var(--position);height:1px;background-color:gray}.limitsbar__arrow[data-v-0e4c2263]{position:absolute;bottom:var(--position);left:var(--container-width);width:0;height:0;transform:translateY(5px);border-top:5px solid transparent;border-bottom:5px solid transparent;border-right:5px solid gray}",""]);const o=r},3160:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});var i=n(6758),s=n.n(i),a=n(935),l=n.n(a),r=l()(s());r.push([e.id,".progress[data-v-e34552b0]{margin:5px;flex:auto!important}",""]);const o=r},2574:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});var i=n(6758),s=n.n(i),a=n(935),l=n.n(a),r=l()(s());r.push([e.id,".rangebar[data-v-f50bb458]{cursor:default;display:flex;justify-content:center;align-items:center;padding:5px;padding-top:15px;width:var(--width)}.rangebar__container[data-v-f50bb458]{position:relative;flex:1;height:var(--container-height);border:1px solid #000;background-color:#fff}.rangebar__line[data-v-f50bb458]{width:1px;height:var(--container-height);background-color:gray}.rangebar__arrow[data-v-f50bb458],.rangebar__line[data-v-f50bb458]{position:absolute;left:var(--position)}.rangebar__arrow[data-v-f50bb458]{top:-5px;width:0;height:0;transform:translateX(-5px);border-left:5px solid transparent;border-right:5px solid transparent;border-top:5px solid gray}",""]);const o=r},3200:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});var i=n(6758),s=n.n(i),a=n(935),l=n.n(a),r=l()(s());r.push([e.id,".value-widget-container[data-v-f6adf1e0]{min-height:34px}.value-widget-container[data-v-f6adf1e0] .v-input__slot{background:rgba(var(--aging),var(--aging),var(--aging),1)!important}.value-widget-container[data-v-f6adf1e0] input{text-align:var(--text-align)!important}[data-v-f6adf1e0] .v-input__slot:has(.v-icon){padding-left:2px!important}.value-widget-container[data-v-f6adf1e0] .v-icon{margin-top:9px}.value[data-v-f6adf1e0] div{min-height:24px!important;display:flex!important;align-items:center!important}.openc3-green[data-v-f6adf1e0] input{color:#00c800}.openc3-yellow[data-v-f6adf1e0] input{color:#ffdc00}.openc3-red[data-v-f6adf1e0] input{color:#ff2d2d}.openc3-blue[data-v-f6adf1e0] input{color:#09f}.openc3-purple[data-v-f6adf1e0] input{color:#c800c8}.openc3-black[data-v-f6adf1e0] input{color:#000}.openc3-white[data-v-f6adf1e0] input{color:#fff}",""]);const o=r},47:(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{A:()=>__WEBPACK_DEFAULT_EXPORT__});var core_js_modules_es_array_push_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(9375),core_js_modules_es_array_push_js__WEBPACK_IMPORTED_MODULE_0___default=__webpack_require__.n(core_js_modules_es_array_push_js__WEBPACK_IMPORTED_MODULE_0__),core_js_modules_es_string_replace_js__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(4293),core_js_modules_es_string_replace_js__WEBPACK_IMPORTED_MODULE_1___default=__webpack_require__.n(core_js_modules_es_string_replace_js__WEBPACK_IMPORTED_MODULE_1__),_services_openc3_api__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(4364),_services_api__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__(2795),_Widget__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__(9729);const __WEBPACK_DEFAULT_EXPORT__={mixins:[_Widget__WEBPACK_IMPORTED_MODULE_4__.A],data(){return{api:null,screen:null,displaySendHazardous:!1,lastCmd:""}},computed:{buttonText(){return this.parameters[0]},eval(){return this.parameters[1]}},created(){this.api=new _services_openc3_api__WEBPACK_IMPORTED_MODULE_2__.x},methods:{async onClick(){const lines=this.eval.split(";;"),self=this,screen=this.screen,api=this.api,run_script=this.runScript,runScript=this.runScript;for(let i=0;i<lines.length;i++){const result=eval(lines[i].trim());if(result instanceof Promise)try{await result}catch(err){if(err.message.includes("is Hazardous")){this.lastCmd=err.message.split("\n").pop(),this.displaySendHazardous=!0;while(this.displaySendHazardous)await new Promise((e=>setTimeout(e,500)))}}}},sendHazardousCmd(){this.lastCmd=this.lastCmd.replace("cmd(","this.api.cmd_no_hazardous_check("),eval(this.lastCmd),this.displaySendHazardous=!1},cancelHazardousCmd(){this.displaySendHazardous=!1},runScript(e,t=!0,n={}){let i=[];for(const s in n)i.push({key:s,value:n[s],readonly:!1});_services_api__WEBPACK_IMPORTED_MODULE_3__.A.post(`/script-api/scripts/${e}/run`,{data:{environment:i}}).then((e=>{t&&window.open(`/tools/scriptrunner/${e.data}`,"_blank")}))}}}},1148:(e,t,n)=>{var i=n(1972);i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[e.id,i,""]]),i.locals&&(e.exports=i.locals);var s=n(4825).A;s("7a4525c2",i,!0,{sourceMap:!1,shadowMode:!1})},5731:(e,t,n)=>{var i=n(8331);i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[e.id,i,""]]),i.locals&&(e.exports=i.locals);var s=n(4825).A;s("47244d2a",i,!0,{sourceMap:!1,shadowMode:!1})},8367:(e,t,n)=>{var i=n(5367);i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[e.id,i,""]]),i.locals&&(e.exports=i.locals);var s=n(4825).A;s("6c207977",i,!0,{sourceMap:!1,shadowMode:!1})},1727:(e,t,n)=>{var i=n(3076);i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[e.id,i,""]]),i.locals&&(e.exports=i.locals);var s=n(4825).A;s("2d4e5d43",i,!0,{sourceMap:!1,shadowMode:!1})},2605:(e,t,n)=>{var i=n(7589);i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[e.id,i,""]]),i.locals&&(e.exports=i.locals);var s=n(4825).A;s("28ee4c72",i,!0,{sourceMap:!1,shadowMode:!1})},7613:(e,t,n)=>{var i=n(1365);i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[e.id,i,""]]),i.locals&&(e.exports=i.locals);var s=n(4825).A;s("4d90f07e",i,!0,{sourceMap:!1,shadowMode:!1})},6738:(e,t,n)=>{var i=n(8730);i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[e.id,i,""]]),i.locals&&(e.exports=i.locals);var s=n(4825).A;s("16d623ca",i,!0,{sourceMap:!1,shadowMode:!1})},7346:(e,t,n)=>{var i=n(9530);i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[e.id,i,""]]),i.locals&&(e.exports=i.locals);var s=n(4825).A;s("1f8d080f",i,!0,{sourceMap:!1,shadowMode:!1})},308:(e,t,n)=>{var i=n(1340);i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[e.id,i,""]]),i.locals&&(e.exports=i.locals);var s=n(4825).A;s("277cddc3",i,!0,{sourceMap:!1,shadowMode:!1})},1e3:(e,t,n)=>{var i=n(9808);i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[e.id,i,""]]),i.locals&&(e.exports=i.locals);var s=n(4825).A;s("7de62207",i,!0,{sourceMap:!1,shadowMode:!1})},8644:(e,t,n)=>{var i=n(2604);i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[e.id,i,""]]),i.locals&&(e.exports=i.locals);var s=n(4825).A;s("509098ba",i,!0,{sourceMap:!1,shadowMode:!1})},8827:(e,t,n)=>{var i=n(1651);i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[e.id,i,""]]),i.locals&&(e.exports=i.locals);var s=n(4825).A;s("9c784b84",i,!0,{sourceMap:!1,shadowMode:!1})},6395:(e,t,n)=>{var i=n(8784);i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[e.id,i,""]]),i.locals&&(e.exports=i.locals);var s=n(4825).A;s("0e86fc54",i,!0,{sourceMap:!1,shadowMode:!1})},6074:(e,t,n)=>{var i=n(2498);i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[e.id,i,""]]),i.locals&&(e.exports=i.locals);var s=n(4825).A;s("24c3e658",i,!0,{sourceMap:!1,shadowMode:!1})},4572:(e,t,n)=>{var i=n(9316);i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[e.id,i,""]]),i.locals&&(e.exports=i.locals);var s=n(4825).A;s("588b24c7",i,!0,{sourceMap:!1,shadowMode:!1})},8490:(e,t,n)=>{var i=n(9058);i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[e.id,i,""]]),i.locals&&(e.exports=i.locals);var s=n(4825).A;s("8aaadfb6",i,!0,{sourceMap:!1,shadowMode:!1})},1552:(e,t,n)=>{var i=n(6552);i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[e.id,i,""]]),i.locals&&(e.exports=i.locals);var s=n(4825).A;s("560bdaf4",i,!0,{sourceMap:!1,shadowMode:!1})},1241:(e,t,n)=>{var i=n(3425);i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[e.id,i,""]]),i.locals&&(e.exports=i.locals);var s=n(4825).A;s("6529934c",i,!0,{sourceMap:!1,shadowMode:!1})},1497:(e,t,n)=>{var i=n(3224);i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[e.id,i,""]]),i.locals&&(e.exports=i.locals);var s=n(4825).A;s("0138eb9a",i,!0,{sourceMap:!1,shadowMode:!1})},6619:(e,t,n)=>{var i=n(8452);i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[e.id,i,""]]),i.locals&&(e.exports=i.locals);var s=n(4825).A;s("1dc714dc",i,!0,{sourceMap:!1,shadowMode:!1})},2846:(e,t,n)=>{var i=n(5895);i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[e.id,i,""]]),i.locals&&(e.exports=i.locals);var s=n(4825).A;s("18e03660",i,!0,{sourceMap:!1,shadowMode:!1})},3519:(e,t,n)=>{var i=n(3160);i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[e.id,i,""]]),i.locals&&(e.exports=i.locals);var s=n(4825).A;s("2af1c7e9",i,!0,{sourceMap:!1,shadowMode:!1})},519:(e,t,n)=>{var i=n(2574);i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[e.id,i,""]]),i.locals&&(e.exports=i.locals);var s=n(4825).A;s("df7a598a",i,!0,{sourceMap:!1,shadowMode:!1})},8087:(e,t,n)=>{var i=n(3200);i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[e.id,i,""]]),i.locals&&(e.exports=i.locals);var s=n(4825).A;s("01cd6850",i,!0,{sourceMap:!1,shadowMode:!1})}}]);
2
+ //# sourceMappingURL=552.js.map