openc3-tool-tlmviewer 5.0.8 → 5.0.10
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/tools/tlmviewer/js/409.js +2 -0
- data/tools/tlmviewer/js/409.js.map +1 -0
- data/tools/tlmviewer/js/73.js +71 -0
- data/tools/tlmviewer/js/73.js.map +1 -0
- data/tools/tlmviewer/js/app.js +1 -1
- data/tools/tlmviewer/js/app.js.map +1 -1
- metadata +6 -6
- data/tools/tlmviewer/js/678.js +0 -2
- data/tools/tlmviewer/js/678.js.map +0 -1
- data/tools/tlmviewer/js/978.js +0 -32
- data/tools/tlmviewer/js/978.js.map +0 -1
@@ -0,0 +1,2 @@
|
|
1
|
+
(self["webpackChunk_openc3_tool_tlmviewer"]=self["webpackChunk_openc3_tool_tlmviewer"]||[]).push([[409],{15507:function(e,t,n){var i={"./ArrayWidget.vue":1390,"./BlockWidget.vue":79664,"./ButtonWidget.vue":76516,"./CanvasWidget.vue":91460,"./CanvasdotWidget.vue":82897,"./CanvasimageWidget.vue":70435,"./CanvasimagevalueWidget.vue":77002,"./CanvaslabelWidget.vue":9747,"./CanvaslabelvalueWidget.vue":74856,"./CanvaslineWidget.vue":44943,"./CanvaslinevalueWidget.vue":79831,"./CheckbuttonWidget.vue":27968,"./ComboboxWidget.vue":97705,"./DynamicWidget.vue":7874,"./FormatvalueWidget.vue":42550,"./HorizontalWidget.vue":1282,"./HorizontalboxWidget.vue":12081,"./IframeWidget.vue":44031,"./ImageviewerWidget.vue":28901,"./LabelWidget.vue":60133,"./LabelledWidget.vue":38304,"./LabelprogressbarWidget.vue":81781,"./LabelsparklineWidget.vue":5357,"./LabelvalueWidget.vue":83183,"./LabelvaluedescWidget.vue":43758,"./LabelvaluelimitsbarWidget.vue":20674,"./LabelvaluelimitscolumnWidget.vue":51965,"./LabelvaluerangebarWidget.vue":65521,"./LedWidget.vue":25533,"./LimitsbarWidget.vue":25322,"./LimitscolorWidget.vue":42796,"./LimitscolumnWidget.vue":32334,"./LinegraphWidget.vue":109,"./MatrixbycolumnsWidget.vue":99711,"./ProgressbarWidget.vue":44584,"./RadiobuttonWidget.vue":95571,"./RadiogroupWidget.vue":78196,"./RangebarWidget.vue":17113,"./ScrollwindowWidget.vue":49970,"./SectionheaderWidget.vue":60528,"./SpacerWidget.vue":14239,"./SparklineWidget.vue":88807,"./TabbookWidget.vue":25822,"./TextboxWidget.vue":96671,"./TextfieldWidget.vue":33585,"./TitleWidget.vue":23724,"./ValueWidget.vue":83153,"./ValuelimitsbarWidget.vue":15015,"./ValuelimitscolumnWidget.vue":87485,"./ValuerangebarWidget.vue":97291,"./VerticalWidget.vue":33549,"./VerticalboxWidget.vue":70135};function a(e){var t=s(e);return n(t)}function s(e){if(!n.o(i,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return i[e]}a.keys=function(){return Object.keys(i)},a.resolve=s,e.exports=a,a.id=15507},23169:function(e,t,n){"use strict";n.d(t,{Z:function(){return u}});n(34115),n(634);var i=function(){var e=this,t=e._self._c;return t("v-dialog",{attrs:{width:"600"},model:{value:e.show,callback:function(t){e.show=t},expression:"show"}},[t("v-card",[t("v-system-bar",[t("v-spacer"),t("span",[e._v(" Details ")]),t("v-spacer")],1),t("v-card-title",[e._v(" "+e._s(e.targetName)+" "+e._s(e.packetName)+" "+e._s(e.itemName)+" ")]),t("v-card-subtitle",[e._v(e._s(e.details.description))]),t("v-card-text",[t("v-container",{attrs:{fluid:""}},["tlm"===e.type?t("v-row",{attrs:{"no-gutters":""}},[t("v-col",{staticClass:"label",attrs:{cols:"3"}},[e._v("Item Values")]),t("v-col"),t("v-container",{staticClass:"ml-5 pa-0",attrs:{fluid:""}},[t("v-row",{attrs:{"no-gutters":""}},[t("v-col",{staticClass:"label",attrs:{cols:"4"}},[e._v("Raw Value")]),t("v-col",[e._v(e._s(e.rawValue))])],1),t("v-row",{attrs:{"no-gutters":""}},[t("v-col",{staticClass:"label",attrs:{cols:"4"}},[e._v("Converted Value")]),t("v-col",[e._v(e._s(e.convertedValue))])],1),t("v-row",{attrs:{"no-gutters":""}},[t("v-col",{staticClass:"label",attrs:{cols:"4"}},[e._v("Formatted Value")]),t("v-col",[e._v(e._s(e.formattedValue))])],1),t("v-row",{attrs:{"no-gutters":""}},[t("v-col",{staticClass:"label",attrs:{cols:"4"}},[e._v("With Units Value")]),t("v-col",[e._v(e._s(e.unitsValue))])],1)],1)],1):e._e(),t("v-row",{attrs:{"no-gutters":""}},[t("v-col",{staticClass:"label",attrs:{cols:"3"}},[e._v("Bit Offset")]),t("v-col",[e._v(e._s(e.details.bit_offset))])],1),t("v-row",{attrs:{"no-gutters":""}},[t("v-col",{staticClass:"label",attrs:{cols:"3"}},[e._v("Bit Size")]),t("v-col",[e._v(e._s(e.details.bit_size))])],1),e.details.array_size?t("v-row",{attrs:{"no-gutters":""}},[t("v-col",{staticClass:"label",attrs:{cols:"3"}},[e._v("Array Size")]),t("v-col",[e._v(e._s(e.details.array_size))])],1):e._e(),t("v-row",{attrs:{"no-gutters":""}},[t("v-col",{staticClass:"label",attrs:{cols:"3"}},[e._v("Data Type")]),t("v-col",[e._v(e._s(e.details.data_type))])],1),"cmd"===e.type?t("v-row",{attrs:{"no-gutters":""}},[t("v-col",{staticClass:"label",attrs:{cols:"3"}},[e._v("Minimum")]),t("v-col",[e._v(e._s(e.details.minimum))])],1):e._e(),"cmd"===e.type?t("v-row",{attrs:{"no-gutters":""}},[t("v-col",{staticClass:"label",attrs:{cols:"3"}},[e._v("Maximum")]),t("v-col",[e._v(e._s(e.details.maximum))])],1):e._e(),"cmd"===e.type?t("v-row",{attrs:{"no-gutters":""}},[t("v-col",{staticClass:"label",attrs:{cols:"3"}},[e._v("Default")]),t("v-col",[e._v(e._s(e.details.default))])],1):e._e(),t("v-row",{attrs:{"no-gutters":""}},[t("v-col",{staticClass:"label",attrs:{cols:"3"}},[e._v("Format String")]),t("v-col",[e._v(e._s(e.details.format_string))])],1),t("v-row",{attrs:{"no-gutters":""}},[t("v-col",{staticClass:"label",attrs:{cols:"3"}},[e._v("Read Conversion")]),e.details.read_conversion?t("v-col",[e._v(" Class: "+e._s(e.details.read_conversion.class)+" "),t("br"),e._v(" Params: "+e._s(e.details.read_conversion.params)+" ")]):t("v-col")],1),t("v-row",{attrs:{"no-gutters":""}},[t("v-col",{staticClass:"label",attrs:{cols:"3"}},[e._v("Write Conversion")]),e.details.write_conversion?t("v-col",[e._v(" Class: "+e._s(e.details.write_conversion.class)+" "),t("br"),e._v(" Params: "+e._s(e.details.write_conversion.params)+" ")]):t("v-col")],1),t("v-row",{attrs:{"no-gutters":""}},[t("v-col",{staticClass:"label",attrs:{cols:"3"}},[e._v("Id Value")]),t("v-col",[e._v(e._s(e.details.id_value))])],1),t("v-row",{attrs:{"no-gutters":""}},[t("v-col",{staticClass:"label",attrs:{cols:"3"}},[e._v("Units Full")]),t("v-col",[e._v(e._s(e.details.units_full))])],1),t("v-row",{attrs:{"no-gutters":""}},[t("v-col",{staticClass:"label",attrs:{cols:"3"}},[e._v("Units Abbr")]),t("v-col",[e._v(e._s(e.details.units))])],1),t("v-row",{attrs:{"no-gutters":""}},[t("v-col",{staticClass:"label",attrs:{cols:"3"}},[e._v("Endianness")]),t("v-col",[e._v(e._s(e.details.endianness))])],1),e.details.states?t("v-row",{attrs:{"no-gutters":""}},[t("v-col",{staticClass:"label",attrs:{cols:"3"}},[e._v("States")]),t("v-col"),t("v-container",{staticClass:"ml-5 pa-0",attrs:{fluid:""}},e._l(e.details.states,(function(n,i){return t("v-row",{key:i,attrs:{"no-gutters":""}},[t("v-col",{staticClass:"label",attrs:{cols:"4"}},[e._v(e._s(i))]),t("v-col",[e._v(e._s(n.value))])],1)})),1)],1):t("v-row",{attrs:{"no-gutters":""}},[t("v-col",{staticClass:"label",attrs:{cols:"3"}},[e._v("States")]),t("v-col",[e._v("None")])],1),e.details.limits?t("v-row",{attrs:{"no-gutters":""}},[t("v-col",{staticClass:"label",attrs:{cols:"3"}},[e._v("Limits")]),t("v-col"),t("v-container",{staticClass:"ml-5 pa-0",attrs:{fluid:""}},e._l(e.details.limits,(function(n,i){return t("v-row",{key:i,attrs:{"no-gutters":""}},[t("v-col",{staticClass:"label",attrs:{cols:"4"}},[e._v(e._s(i))]),e._v(" "+e._s(e.formatLimit(n))+" "),t("v-col")],1)})),1)],1):t("v-row",{attrs:{"no-gutters":""}},[t("v-col",{staticClass:"label",attrs:{cols:"3"}},[e._v("Limits")]),t("v-col",[e._v("None")])],1),e.details.meta?t("v-row",{attrs:{"no-gutters":""}},[t("v-col",{staticClass:"label",attrs:{cols:"3"}},[e._v("Meta")]),t("v-col"),t("v-container",{staticClass:"ml-5 pa-0",attrs:{fluid:""}},e._l(e.details.meta,(function(n,i){return t("v-row",{key:i,attrs:{"no-gutters":""}},[t("v-col",{staticClass:"label",attrs:{cols:"4"}},[e._v(e._s(i))]),t("v-col",[e._v(e._s(n))])],1)})),1)],1):t("v-row",{attrs:{"no-gutters":""}},[t("v-col",{staticClass:"label",attrs:{cols:"3"}},[e._v("Meta")]),t("v-col",[e._v("None")])],1)],1)],1)],1)],1)},a=[],s=(n(74083),n(18178),n(94008)),l={props:{type:{default:"tlm",validator:function(e){return-1!==["cmd","tlm"].indexOf(e)}},targetName:String,packetName:String,itemName:String,value:Boolean},data:function(){return{details:Object,updater:null,rawValue:null,convertedValue:null,formattedValue:null,unitsValue:null}},computed:{show:{get:function(){return this.value},set:function(e){this.$emit("input",e)}}},created:function(){this.api=new s.k},beforeDestroy:function(){clearInterval(this.updater),this.updater=null},watch:{value:function(e,t){var n=this;e?(this.requestDetails(),"tlm"===this.type&&(this.updater=setInterval((function(){n.api.get_tlm_values(["".concat(n.targetName,"__").concat(n.packetName,"__").concat(n.itemName,"__RAW"),"".concat(n.targetName,"__").concat(n.packetName,"__").concat(n.itemName,"__CONVERTED"),"".concat(n.targetName,"__").concat(n.packetName,"__").concat(n.itemName,"__FORMATTED"),"".concat(n.targetName,"__").concat(n.packetName,"__").concat(n.itemName,"__WITH_UNITS")]).then((function(e){n.rawValue=e[0][0],n.convertedValue=e[1][0],n.formattedValue=e[2][0],n.unitsValue=e[3][0]}))}),1e3))):(clearInterval(this.updater),this.updater=null)}},methods:{requestDetails:function(){var e=this;"tlm"===this.type?this.api.get_item(this.targetName,this.packetName,this.itemName).then((function(t){e.details=t})):this.api.get_parameter(this.targetName,this.packetName,this.itemName).then((function(t){e.details=t}))},formatLimit:function(e){return e.green_low?"RL/"+e.red_low+" YL/"+e.yellow_low+" YH/"+e.yellow_high+" RH/"+e.red_high+" GL/"+e.green_low+" GH/"+e.green_high:e.red_low?"RL/"+e.red_low+" YL/"+e.yellow_low+" YH/"+e.yellow_high+" RH/"+e.red_high:e}}},r=l,o=(n(36649),n(93483)),c=(0,o.Z)(r,i,a,!1,null,"2d350830",null),u=c.exports},91474:function(e,t,n){"use strict";n.d(t,{Z:function(){return T}});n(74083);var i=function(){var e=this,t=e._self._c;return t("div",[t("v-card",{nativeOn:{click:function(t){return e.$emit("click")}}},[t("v-system-bar",{directives:[{name:"show",rawName:"v-show",value:!e.hideSystemBar,expression:"!hideSystemBar"}],class:e.selectedGraphId===e.id?"active":"inactive"},[t("div",{directives:[{name:"show",rawName:"v-show",value:0!==e.errors.length,expression:"errors.length !== 0"}],staticClass:"mx-2"},[t("v-tooltip",{attrs:{top:""},scopedSlots:e._u([{key:"activator",fn:function(n){var i=n.on,a=n.attrs;return[t("div",e._g(e._b({},"div",a,!1),i),[t("v-icon",{attrs:{"data-test":"error-graph-icon"},on:{click:function(t){e.errorDialog=!0}}},[e._v("mdi-alert")])],1)]}}])},[t("span",[e._v("Errors")])])],1),t("v-tooltip",{attrs:{top:""},scopedSlots:e._u([{key:"activator",fn:function(n){var i=n.on,a=n.attrs;return[t("div",e._g(e._b({},"div",a,!1),i),[t("v-icon",{attrs:{"data-test":"edit-graph-icon"},on:{click:function(t){e.editGraph=!0}}},[e._v(" mdi-pencil ")])],1)]}}])},[t("span",[e._v(" Edit ")])]),t("v-spacer"),t("span",[e._v(e._s(e.title))]),t("v-spacer"),t("div",{directives:[{name:"show",rawName:"v-show",value:e.expand,expression:"expand"}]},[t("v-tooltip",{attrs:{top:""},scopedSlots:e._u([{key:"activator",fn:function(n){var i=n.on,a=n.attrs;return[t("div",e._g(e._b({},"div",a,!1),i),[t("v-icon",{directives:[{name:"show",rawName:"v-show",value:e.calcFullSize,expression:"calcFullSize"}],attrs:{"data-test":"collapse-all"},on:{click:e.collapseAll}},[e._v(" mdi-arrow-collapse ")]),t("v-icon",{directives:[{name:"show",rawName:"v-show",value:!e.calcFullSize,expression:"!calcFullSize"}],attrs:{"data-test":"expand-all"},on:{click:e.expandAll}},[e._v(" mdi-arrow-expand ")])],1)]}}])},[t("span",{directives:[{name:"show",rawName:"v-show",value:e.calcFullSize,expression:"calcFullSize"}]},[e._v(" Collapse ")]),t("span",{directives:[{name:"show",rawName:"v-show",value:!e.calcFullSize,expression:"!calcFullSize"}]},[e._v(" Expand ")])])],1),t("div",{directives:[{name:"show",rawName:"v-show",value:e.expand,expression:"expand"}]},[t("v-tooltip",{attrs:{top:""},scopedSlots:e._u([{key:"activator",fn:function(n){var i=n.on,a=n.attrs;return[t("div",e._g(e._b({},"div",a,!1),i),[t("v-icon",{directives:[{name:"show",rawName:"v-show",value:e.fullWidth,expression:"fullWidth"}],attrs:{"data-test":"collapse-width"},on:{click:e.collapseWidth}},[e._v(" mdi-arrow-collapse-horizontal ")]),t("v-icon",{directives:[{name:"show",rawName:"v-show",value:!e.fullWidth,expression:"!fullWidth"}],attrs:{"data-test":"expand-width"},on:{click:e.expandWidth}},[e._v(" mdi-arrow-expand-horizontal ")])],1)]}}])},[t("span",{directives:[{name:"show",rawName:"v-show",value:e.fullWidth,expression:"fullWidth"}]},[e._v(" Collapse Width ")]),t("span",{directives:[{name:"show",rawName:"v-show",value:!e.fullWidth,expression:"!fullWidth"}]},[e._v(" Expand Width ")])])],1),t("div",{directives:[{name:"show",rawName:"v-show",value:e.expand,expression:"expand"}]},[t("v-tooltip",{attrs:{top:""},scopedSlots:e._u([{key:"activator",fn:function(n){var i=n.on,a=n.attrs;return[t("div",e._g(e._b({},"div",a,!1),i),[t("v-icon",{directives:[{name:"show",rawName:"v-show",value:e.fullHeight,expression:"fullHeight"}],attrs:{"data-test":"collapse-height"},on:{click:e.collapseHeight}},[e._v(" mdi-arrow-collapse-vertical ")]),t("v-icon",{directives:[{name:"show",rawName:"v-show",value:!e.fullHeight,expression:"!fullHeight"}],attrs:{"data-test":"expand-height"},on:{click:e.expandHeight}},[e._v(" mdi-arrow-expand-vertical ")])],1)]}}])},[t("span",{directives:[{name:"show",rawName:"v-show",value:e.fullHeight,expression:"fullHeight"}]},[e._v(" Collapse Height ")]),t("span",{directives:[{name:"show",rawName:"v-show",value:!e.fullHeight,expression:"!fullHeight"}]},[e._v(" Expand Height ")])])],1),t("v-tooltip",{attrs:{top:""},scopedSlots:e._u([{key:"activator",fn:function(n){var i=n.on,a=n.attrs;return[t("div",e._g(e._b({},"div",a,!1),i),[t("v-icon",{directives:[{name:"show",rawName:"v-show",value:e.expand,expression:"expand"}],attrs:{"data-test":"minimize-screen-icon"},on:{click:e.minMaxTransition}},[e._v(" mdi-window-minimize ")]),t("v-icon",{directives:[{name:"show",rawName:"v-show",value:!e.expand,expression:"!expand"}],attrs:{"data-test":"maximize-screen-icon"},on:{click:e.minMaxTransition}},[e._v(" mdi-window-maximize ")])],1)]}}])},[t("span",{directives:[{name:"show",rawName:"v-show",value:e.expand,expression:"expand"}]},[e._v(" Minimize ")]),t("span",{directives:[{name:"show",rawName:"v-show",value:!e.expand,expression:"!expand"}]},[e._v(" Maximize ")])]),t("v-tooltip",{attrs:{top:""},scopedSlots:e._u([{key:"activator",fn:function(n){var i=n.on,a=n.attrs;return[t("div",e._g(e._b({},"div",a,!1),i),[t("v-icon",{attrs:{"data-test":"close-graph-icon"},on:{click:function(t){return e.$emit("close-graph")}}},[e._v(" mdi-close-box ")])],1)]}}])},[t("span",[e._v(" Close ")])])],1),t("v-expand-transition",[t("div",{directives:[{name:"show",rawName:"v-show",value:e.expand,expression:"expand"}],ref:"chart",staticClass:"pa-1",attrs:{id:"chart"}},[t("div",{attrs:{id:"chart".concat(e.id)}}),t("div",{attrs:{id:"betweenCharts"}}),t("div",{directives:[{name:"show",rawName:"v-show",value:e.showOverview,expression:"showOverview"}],attrs:{id:"overview".concat(e.id)}})])])],1),t("v-dialog",{attrs:{"max-width":"600"},on:{keydown:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"esc",27,t.key,["Esc","Escape"])?null:e.$emit("input")},input:function(t){return e.editGraphClose()}},model:{value:e.editGraph,callback:function(t){e.editGraph=t},expression:"editGraph"}},[t("v-system-bar",[t("v-spacer"),t("span",[e._v("Edit Graph")]),t("v-spacer")],1),t("v-card",{staticClass:"pa-3"},[t("v-row",{attrs:{dense:""}},[t("v-text-field",{staticClass:"pb-2",attrs:{label:"Title","hide-details":"","data-test":"edit-graph-title"},model:{value:e.title,callback:function(t){e.title=t},expression:"title"}})],1),t("v-card-text",{staticClass:"pa-0"},[e._v(" Select a start date/time for the graph. Leave blank for start now. ")]),t("date-time-chooser",{attrs:{required:!1,"date-label":"Start Date","time-label":"Start Time"},on:{"date-time":function(t){e.graphStartDateTime=t}}}),t("v-card-text",{staticClass:"pa-0"},[e._v(" Select a end date/time for the graph. Leave blank for continuous real-time graphing. ")]),t("date-time-chooser",{attrs:{"date-label":"End Date","time-label":"End Time"},on:{"date-time":function(t){e.graphEndDateTime=t}}}),t("v-row",{attrs:{dense:""}},[t("v-select",{attrs:{label:"Legend Position",items:e.legendPositions,"data-test":"edit-legend-position"},model:{value:e.legendPosition,callback:function(t){e.legendPosition=t},expression:"legendPosition"}})],1),t("v-card-text",{staticClass:"pa-0"},[e._v(" Optional Y axis settings. ")]),t("v-row",{attrs:{dense:""}},[t("v-col",{staticClass:"px-2"},[t("v-text-field",{attrs:{"hide-details":"",label:"Min Y",type:"number","data-test":"graph-min-y"},model:{value:e.graphMinY,callback:function(t){e.graphMinY=t},expression:"graphMinY"}})],1),t("v-col",{staticClass:"px-2"},[t("v-text-field",{attrs:{"hide-details":"",label:"Max Y",type:"number","data-test":"graph-max-y"},model:{value:e.graphMaxY,callback:function(t){e.graphMaxY=t},expression:"graphMaxY"}})],1)],1),t("v-data-table",{staticClass:"elevation-1 my-2",attrs:{"item-key":"itemId",headers:e.itemHeaders,items:e.editItems,"items-per-page":5,"footer-props":{"items-per-page-options":[5]}},scopedSlots:e._u([{key:"item.actions",fn:function(n){var i=n.item;return[t("v-tooltip",{attrs:{top:""},scopedSlots:e._u([{key:"activator",fn:function(n){var a=n.on,s=n.attrs;return[t("div",e._g(e._b({},"div",s,!1),a),[t("v-btn",{attrs:{icon:"","data-test":"delete-item-icon".concat(i.itemId)},on:{click:function(){return e.removeItems([i])}}},[t("v-icon",[e._v("mdi-delete")])],1)],1)]}}],null,!0)},[t("span",[e._v("Remove")])])]}},{key:"no-data",fn:function(){return[t("span",[e._v("Currently no items on this graph")])]},proxy:!0}])}),t("v-card-actions",[t("v-btn",{attrs:{color:"primary"},on:{click:function(t){return e.editGraphClose()}}},[e._v(" Ok ")])],1)],1)],1),t("v-dialog",{attrs:{"max-width":"600"},model:{value:e.errorDialog,callback:function(t){e.errorDialog=t},expression:"errorDialog"}},[t("v-system-bar",[t("v-spacer"),t("span",[e._v("Errors")]),t("v-spacer")],1),t("v-card",{staticClass:"pa-3"},[t("v-row",{attrs:{dense:""}},[t("v-text-field",{staticClass:"pb-2",attrs:{readonly:"","hide-details":"",label:"Graph Title"},model:{value:e.title,callback:function(t){e.title=t},expression:"title"}})],1),t("v-row",{staticClass:"my-3"},[t("v-textarea",{attrs:{readonly:"",rows:"8",value:e.error}})],1),t("v-row",[t("v-btn",{attrs:{block:""},on:{click:e.clearErrors}},[e._v(" Clear ")])],1)],1)],1),e.editGraphMenu?t("v-menu",{attrs:{"position-x":e.editGraphMenuX,"position-y":e.editGraphMenuY,absolute:"","offset-y":""},model:{value:e.editGraphMenu,callback:function(t){e.editGraphMenu=t},expression:"editGraphMenu"}},[t("v-list",[t("v-list-item",{on:{click:function(t){e.editGraph=!0}}},[t("v-list-item-title",{staticStyle:{cursor:"pointer"}},[e._v(" Edit "+e._s(e.title)+" ")])],1)],1)],1):e._e(),e.editItem?t("v-dialog",{attrs:{"max-width":"600"},on:{keydown:function(t){if(!t.type.indexOf("key")&&e._k(t.keyCode,"esc",27,t.key,["Esc","Escape"]))return null;e.editItem=!1}},model:{value:e.editItem,callback:function(t){e.editItem=t},expression:"editItem"}},[t("v-card",{staticClass:"pa-3"},[t("v-card-title",{staticClass:"headline"},[e._v("Edit Item")]),t("v-select",{attrs:{outlined:"","hide-details":"",label:"Value Type",items:e.valueTypes},model:{value:e.currentType,callback:function(t){e.currentType=t},expression:"currentType"}}),t("v-card-actions",[t("v-btn",{attrs:{color:"primary"},on:{click:function(t){return e.closeEditItem()}}},[e._v("Ok")])],1)],1)],1):e._e(),e.itemMenu?t("v-menu",{attrs:{"position-x":e.itemMenuX,"position-y":e.itemMenuY,absolute:"","offset-y":""},model:{value:e.itemMenu,callback:function(t){e.itemMenu=t},expression:"itemMenu"}},[t("v-list",[t("v-list-item",{on:{click:function(t){return e.openEditItem()}}},[t("v-list-item-title",{staticStyle:{cursor:"pointer"}},[e._v(" Edit "+e._s(e.selectedItem.itemName)+" ")])],1),t("v-list-item",{on:{click:function(t){return e.removeItems([e.selectedItem])}}},[t("v-list-item-title",{staticStyle:{cursor:"pointer"}},[e._v(" Delete "+e._s(e.selectedItem.itemName)+" ")])],1)],1)],1):e._e(),e.legendMenu?t("v-menu",{attrs:{"position-x":e.legendMenuX,"position-y":e.legendMenuY,absolute:"","offset-y":""},model:{value:e.legendMenu,callback:function(t){e.legendMenu=t},expression:"legendMenu"}},[t("v-list",[t("v-list-item",{on:{click:function(t){return e.moveLegend("top")}}},[t("v-list-item-title",{staticStyle:{cursor:"pointer"}},[e._v("Legend Top")])],1),t("v-list-item",{on:{click:function(t){return e.moveLegend("bottom")}}},[t("v-list-item-title",{staticStyle:{cursor:"pointer"}},[e._v("Legend Bottom")])],1),t("v-list-item",{on:{click:function(t){return e.moveLegend("left")}}},[t("v-list-item-title",{staticStyle:{cursor:"pointer"}},[e._v("Legend Left")])],1),t("v-list-item",{on:{click:function(t){return e.moveLegend("right")}}},[t("v-list-item-title",{staticStyle:{cursor:"pointer"}},[e._v("Legend RIght")])],1)],1)],1):e._e()],1)},a=[],s=n(6041),l=n(68571),r=n(84282),o=n(34948),c=(n(71245),n(43450),n(6710),n(58188),n(6886),n(36728),n(43108),n(18178),n(32501),n(13489),n(99805),n(1951),n(35883),n(39529),n(31235),function(){var e=this,t=e._self._c;return t("div",[t("v-row",[t("v-col",[t("v-menu",{attrs:{"close-on-content-click":"",transition:"scale-transition","offset-y":"","max-width":"290px","min-width":"290px"},scopedSlots:e._u([{key:"activator",fn:function(n){var i=n.on;return[t("v-text-field",e._g({attrs:{label:e.dateLabel,name:"date".concat(Date.now()),rules:e.dateRules,type:"date","data-test":"date-chooser"},model:{value:e.date,callback:function(t){e.date=t},expression:"date"}},i))]}}])})],1),t("v-col",[t("v-text-field",{attrs:{label:e.timeLabel,name:"time".concat(Date.now()),rules:e.timeRules,type:"time",step:"1","data-test":"time-chooser"},on:{change:e.onChange},model:{value:e.time,callback:function(t){e.time=t},expression:"time"}})],1)],1)],1)}),u=[],d=n(31200),m=n(10247),h={props:{required:{type:Boolean,default:!0},initialDate:{type:Date,default:null},initialTime:{type:Date,default:null},dateLabel:{type:String,default:"Date"},timeLabel:{type:String,default:"Time"}},data:function(){return{date:null,time:null,rules:{required:function(e){return!!e||"Required"},date:function(e){if(!e)return!0;try{return(0,d.Z)((0,m.Z)(e,"yyyy-MM-dd",new Date))||"Invalid date (YYYY-MM-DD)"}catch(t){return"Invalid date (YYYY-MM-DD)"}},time:function(e){if(!e)return!0;try{return(0,d.Z)((0,m.Z)(e,"HH:mm:ss",new Date))||"Invalid time (HH:MM:SS)"}catch(t){return"Invalid time (HH:MM:SS)"}}}}},computed:{dateRules:function(){var e=[this.rules.date];return(this.time||this.required)&&e.push(this.rules.required),e},timeRules:function(){var e=[this.rules.time];return(this.date||this.required)&&e.push(this.rules.required),e}},methods:{onChange:function(){this.date&&this.time?this.$emit("date-time",this.date+" "+this.time):this.$emit("date-time",null)}}},p=h,A=n(93483),f=(0,A.Z)(p,c,u,!1,null,null,null),v=f.exports,g=n(16575),_=n(86522),w=n.n(_),C=n(73053),y=n(66700),b=n(32101);n(8514);var x={components:{DateTimeChooser:v},props:{id:{type:Number,required:!0},selectedGraphId:{type:Number},state:{type:String,required:!0},startTime:{type:Number},secondsGraphed:{type:Number,required:!0},pointsSaved:{type:Number,required:!0},pointsGraphed:{type:Number,required:!0},hideSystemBar:{type:Boolean,default:!1},hideOverview:{type:Boolean,default:!1},sparkline:{type:Boolean,default:!1},initialItems:{type:Array},height:{type:Number},width:{type:Number}},data:function(){return{itemHeaders:[{text:"Target Name",value:"targetName"},{text:"Packet Name",value:"packetName"},{text:"Item Name",value:"itemName"},{text:"Actions",value:"actions",sortable:!1}],valueTypes:["CONVERTED","RAW"],active:!0,expand:!0,fullWidth:!0,fullHeight:!0,graph:null,editGraph:!1,editGraphMenu:!1,editGraphMenuX:0,editGraphMenuY:0,editItem:!1,itemMenu:!1,itemMenuX:0,itemMenuY:0,legendMenu:!1,legendMenuX:0,legendMenuY:0,legendPosition:"bottom",legendPositions:["top","bottom","left","right"],selectedItem:null,showOverview:!this.hideOverview,currentType:null,title:"",overview:null,data:[[]],graphMinY:"",graphMaxY:"",graphStartDateTime:this.startTime,graphEndDateTime:null,indexes:{},items:this.initialItems||[],drawInterval:null,zoomChart:!1,zoomOverview:!1,cable:new b.Z,subscription:null,needToUpdate:!1,errorDialog:!1,errors:[],colors:["blue","red","green","darkorange","purple","cornflowerblue","lime","gold","hotpink","tan","cyan","peru","maroon","coral","navy","teal","brown","crimson","lightblue","black"]}},computed:{calcFullSize:function(){return this.fullWidth||this.fullHeight},editItems:function(){if(!this.items)return[];var e=0;return this.items.map((function(t){return e+=1,(0,o.Z)((0,o.Z)({},t),{},{itemId:e})}))},error:function(){return this.errorDialog&&this.errors.length>0?JSON.stringify(this.errors,null,4):null}},created:function(){this.title="Graph ".concat(this.id);var e,t=(0,r.Z)(this.items.entries());try{for(t.s();!(e=t.n()).done;){var n=(0,l.Z)(e.value,2),i=n[0],a=n[1];this.data.push([]),this.indexes[this.subscriptionKey(a)]=i+1}}catch(s){t.e(s)}finally{t.f()}},mounted:function(){var e=this,t=this.items.reduce((function(t,n){var i={spanGaps:!0,stroke:e.colors.shift()};return t.chartSeries.push((0,o.Z)((0,o.Z)({},i),{},{item:n,label:n.itemName,value:function(e,t){return"string"===typeof t||isNaN(t)?"NaN":null==t?"--":t.toFixed(2)}})),t.overviewSeries.push((0,o.Z)({},i)),t}),{chartSeries:[],overviewSeries:[]}),n=t.chartSeries,i=t.overviewSeries,a={};if(this.sparkline)this.hideSystemBar=!0,this.hideOverview=!0,this.showOverview=!1,a={width:this.width,height:this.height,pxAlign:!1,cursor:{show:!1},select:{show:!1},legend:{show:!1},scales:{x:{time:!1}},axes:[{show:!1},{show:!1}],series:[{},{stroke:"white"}]},this.graph=new g.Z(a,this.data,document.getElementById("chart".concat(this.id)));else{a=(0,o.Z)((0,o.Z)((0,o.Z)((0,o.Z)({},this.getSize("chart")),this.getScales()),this.getAxes("chart")),{},{series:[{label:"Time",value:function(e,t){return null==t?"--":(0,C.Z)((0,y.Z)(1e3*t),"yyyy-MM-dd HH:mm:ss")}}].concat((0,s.Z)(n)),cursor:{drag:{x:!0,y:!1},sync:{key:"openc3"}},hooks:{setScale:[function(t,n){if("x"==n&&!e.zoomOverview&&e.overview){e.zoomChart=!0;var i=Math.round(e.overview.valToPos(t.scales.x.min,"x")),a=Math.round(e.overview.valToPos(t.scales.x.max,"x"));e.overview.setSelect({left:i,width:a-i}),e.zoomChart=!1}}],ready:[function(t){var n=t.root.querySelector(".u-over");n.addEventListener("contextmenu",(function(t){t.preventDefault(),e.itemMenu=!1,e.legendMenu=!1,e.editGraphMenuX=t.clientX,e.editGraphMenuY=t.clientY,e.editGraphMenu=!0})),n.addEventListener("mouseenter",(function(t){e.$emit("resize")})),n.addEventListener("mouseleave",(function(t){e.$emit("resize")}));var i=t.root.querySelector(".u-legend");i.addEventListener("contextmenu",(function(n){n.preventDefault(),e.editGraphMenu=!1,e.legendMenu=!1,e.itemMenuX=n.clientX,e.itemMenuY=n.clientY;var a=n.target.closest(".u-series"),s=Array.prototype.slice.call(i.childNodes).indexOf(a),l=t.series[s];l.item?(e.selectedItem=l.item,e.itemMenu=!0):(e.itemMenu=!1,e.legendMenuX=n.clientX,e.legendMenuY=n.clientY,e.legendMenu=!0)}))}]}}),this.graph=new g.Z(a,this.data,document.getElementById("chart".concat(this.id)));var l=(0,o.Z)((0,o.Z)((0,o.Z)((0,o.Z)({},this.getSize("overview")),this.getScales()),this.getAxes("overview")),{},{series:(0,s.Z)(i),cursor:{y:!1,points:{show:!1},drag:{setScale:!1,x:!0,y:!1}},legend:{show:!1},hooks:{setSelect:[function(t){if(!e.zoomChart){e.zoomOverview=!0;var n=t.posToVal(t.select.left,"x"),i=t.posToVal(t.select.left+t.select.width,"x");e.graph.setScale("x",{min:n,max:i}),e.zoomOverview=!1}}]}});this.overview=new g.Z(l,this.data,document.getElementById("overview".concat(this.id))),this.moveLegend(this.legendPosition),window.addEventListener("resize",this.handleResize)}"stop"!==this.state&&this.subscribe()},beforeDestroy:function(){this.subscription&&this.subscription.unsubscribe(),this.cable.disconnect(),window.removeEventListener("resize",this.handleResize)},watch:{state:function(e,t){switch(e){case"start":"stop"===t&&this.subscribe();break;case"stop":this.subscription.unsubscribe(),this.subscription=null;break}},data:function(e,t){if("pause"!==this.state){this.graph.setData(e),this.overview&&this.overview.setData(e);var n=e[0][e[0].length-1],i=e[0][e[0].length-this.pointsGraphed],a=e[0][0];a<n-this.secondsGraphed&&(a=n-this.secondsGraphed),i>a&&(a=i),this.graph.setScale("x",{min:a,max:n})}},graphMinY:function(e,t){var n=parseFloat(e);isNaN(n)||(this.graphMinY=n),this.setGraphRange()},graphMaxY:function(e,t){var n=parseFloat(e);isNaN(n)||(this.graphMaxY=n),this.setGraphRange()},graphStartDateTime:function(e){this.needToUpdate=!0,e&&"string"===typeof e&&(this.graphStartDateTime=1e6*new Date(this.graphStartDateTime).getTime())},graphEndDateTime:function(e){this.needToUpdate=!0,e&&"string"===typeof e&&(this.graphEndDateTime=1e6*new Date(this.graphEndDateTime).getTime())}},methods:{moveLegend:function(e){switch(e){case"bottom":this.graph.root.classList.remove("side-legend"),this.graph.root.classList.remove("left-legend"),this.graph.root.classList.remove("top-legend");break;case"top":this.graph.root.classList.remove("side-legend"),this.graph.root.classList.remove("left-legend"),this.graph.root.classList.add("top-legend");break;case"left":this.graph.root.classList.remove("top-legend"),this.graph.root.classList.add("side-legend"),this.graph.root.classList.add("left-legend");break;case"right":this.graph.root.classList.remove("top-legend"),this.graph.root.classList.remove("left-legend"),this.graph.root.classList.add("side-legend");break}this.legendPosition=e,this.resize()},clearErrors:function(){this.errors=[]},editGraphClose:function(){this.editGraph=!1,this.needToUpdate&&(this.removeItemsFromSubscription(),this.addItemsToSubscription(),this.needToUpdate=!1),this.moveLegend(this.legendPosition)},handleResize:function(){this.graph.setSize(this.getSize("chart")),this.overview&&this.overview.setSize(this.getSize("overview"))},resize:function(){this.graph.setSize(this.getSize("chart")),this.overview&&this.overview.setSize(this.getSize("overview")),this.$emit("resize",this.id)},expandAll:function(){this.fullWidth=!0,this.fullHeight=!0,this.resize()},collapseAll:function(){this.fullWidth=!1,this.fullHeight=!1,this.resize()},expandWidth:function(){this.fullWidth=!0,this.resize()},collapseWidth:function(){this.fullWidth=!1,this.resize()},expandHeight:function(){this.fullHeight=!0,this.resize()},collapseHeight:function(){this.fullHeight=!1,this.resize()},minMaxTransition:function(){this.expand=!this.expand,this.$emit("min-max-graph",this.id)},setGraphRange:function(){var e=this,t=.1;(this.graphMinY||0===this.graphMinY||this.graphMaxY||0===this.graphMaxY)&&(t=0),this.graph.scales.y.range=function(n,i,a){var s=i;(e.graphMinY||0===e.graphMinY)&&(s=e.graphMinY);var l=a;return(e.graphMaxY||0===e.graphMaxY)&&(l=e.graphMaxY),g.Z.rangeNum(s,l,t,!0)}},subscribe:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;this.cable.createSubscription("StreamingChannel",window.openc3Scope,{received:function(t){return e.received(t)},connected:function(){e.addItemsToSubscription(e.items,t)},disconnected:function(){e.errors.push({type:"disconnected",message:"OpenC3 backend connection disconnected",time:(new Date).getTime()})},rejected:function(){e.errors.push({type:"rejected",message:"OpenC3 backend connection rejected",time:(new Date).getTime()})}}).then((function(t){e.subscription=t}))},getSize:function(e){var t=document.getElementById("openc3-nav-drawer"),n=t.classList.contains("v-navigation-drawer--open")?t.clientWidth:0,i=0;if("right"===this.legendPosition||"left"===this.legendPosition){var a=document.getElementsByClassName("u-legend")[0];i=a.clientWidth}var s=Math.max(document.documentElement.clientWidth,window.innerWidth||0)-n-i,l=Math.max(document.documentElement.clientHeight,window.innerHeight||0),r=document.getElementsByClassName("c-chooser")[0],o=100;"overview"===e?this.fullHeight&&!this.hideOverview&&(this.showOverview=!0):r&&(o=l-r.clientHeight-o-190,this.fullHeight||(o=o/2+10));var c=s-60;return this.fullWidth||(c=c/2-10),{width:this.width||c,height:this.height||o}},getScales:function(){return{scales:{x:{range:function(e,t,n){return null==t?[1566453600,1566497660]:[t,n]}},y:{range:function(e,t,n){return null==t?[-100,100]:g.Z.rangeNum(t,n,.1,!0)}}}}},getAxes:function(e){var t="rgba(0, 0, 0, .1)",n="black";return this.$vuetify.theme.dark&&(t="rgba(255, 255, 255, .1)",n="white"),{axes:[{stroke:n,grid:{show:!0,stroke:t,width:2}},{size:70,stroke:n,grid:{show:"overview"!==e,stroke:t,width:2}}]}},openEditItem:function(){this.currentType=this.selectedItem.valueType,this.editItem=!0},closeEditItem:function(){this.editItem=!1,this.selectedItem.valueType!==this.currentType&&this.changeType()},changeType:function(){this.removeItems([this.selectedItem]),this.selectedItem.valueType=this.currentType,this.addItems([this.selectedItem])},addItems:function(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"CONVERTED",i=(0,r.Z)(e);try{for(i.s();!(t=i.n()).done;){var a=t.value;a.valueType||(a.valueType=n),this.items.push(a);var s=this.data.length,l=this.colors.shift();this.graph.addSeries({spanGaps:!0,item:a,label:a.itemName,stroke:l,value:function(e,t){return"string"===typeof t||isNaN(t)?"NaN":null===t?"--":t.toFixed(2)}},s),this.overview&&this.overview.addSeries({spanGaps:!0,stroke:l},s);var o=Array(this.data[0].length);this.data.splice(s,0,o),this.indexes[this.subscriptionKey(a)]=s}}catch(c){i.e(c)}finally{i.f()}this.addItemsToSubscription(e)},addItemsToSubscription:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.items,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.graphEndDateTime;this.subscription&&OpenC3Auth.updateToken(OpenC3Auth.defaultMinValidity).then((function(){e.subscription.perform("add",{scope:window.openc3Scope,mode:"DECOM",token:localStorage.openc3Token,items:t.map(e.subscriptionKey),start_time:e.graphStartDateTime,end_time:n})}))},removeItems:function(e){this.removeItemsFromSubscription(e);var t,n=(0,r.Z)(e.map(this.subscriptionKey));try{for(n.s();!(t=n.n()).done;){var i=t.value,a=this.reorderIndexes(i);this.colors.unshift(this.graph.series[a].stroke),this.items.splice(a-1,1),this.data.splice(a,1),this.graph.delSeries(a),this.graph.setData(this.data),this.overview&&(this.overview.delSeries(a),this.overview.setData(this.data))}}catch(s){n.e(s)}finally{n.f()}},removeItemsFromSubscription:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.items;this.subscription&&this.subscription.perform("remove",{scope:window.openc3Scope,items:e.map(this.subscriptionKey)})},reorderIndexes:function(e){var t=this.indexes[e];for(var n in delete this.indexes[e],this.indexes)this.indexes[n]>t&&(this.indexes[n]-=1);return t},received:function(e){for(var t=JSON.parse(e),n=0;n<t.length;n++){var i=t[n].time/1e9,a=t[0].length;if(0==a||i>t[0][a-1]){for(var s=0;s<this.data.length;s++)this.data[s].push(null);this.set_data_at_index(this.data[0].length-1,i,t[n])}else{var l=w()(this.data[0],i,this.bs_comparator);if(l>=0)this.set_data_at_index(l,i,t[n]);else{for(var r=-l-1,o=0;o<this.data.length;o++)this.data[o].splice(r,0,null);this.set_data_at_index(r,i,t[n])}}}null===this.startTime&&(this.graphStartDateTime=1e9*this.data[0][0],this.$emit("started",this.graphStartDateTime))},bs_comparator:function(e,t){return e-t},set_data_at_index:function(e,t,n){this.data[0][e]=t;for(var i=0,a=Object.entries(n);i<a.length;i++){var s=(0,l.Z)(a[i],2),o=s[0],c=s[1];if("time"!=o){var u=this.indexes[o];if(u){var d=this.data[u];if(c.raw)d[e]=null;else if("string"===typeof c){if(d[e]=null,!o.includes("__RAW")){var m,h=(0,r.Z)(this.items);try{for(h.s();!(m=h.n()).done;){var p=m.value;if(this.subscriptionKey(p)===o){this.selectedItem=p;break}}}catch(A){h.e(A)}finally{h.f()}this.currentType="RAW",this.changeType()}}else d[e]=c}}}},subscriptionKey:function(e){return"TLM__".concat(e.targetName,"__").concat(e.packetName,"__").concat(e.itemName,"__").concat(e.valueType)}}},k=x,S=(n(76180),n(97828),(0,A.Z)(k,i,a,!1,null,"3157fc8b",null)),T=S.exports},1390:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return h}});var i=function(){var e=this,t=e._self._c;return t("div",{staticClass:"array-widget-container"},[t("v-textarea",{class:e.valueClass,style:[e.computedStyle,e.aging],attrs:{solo:"",dense:"",readonly:"","hide-details":"",placeholder:"Value",height:e.height,value:e._value,"data-test":"array-widget"},on:{contextmenu:e.showContextMenu}}),t("v-menu",{attrs:{"position-x":e.x,"position-y":e.y,absolute:"","offset-y":""},model:{value:e.contextMenuShown,callback:function(t){e.contextMenuShown=t},expression:"contextMenuShown"}},[t("v-list",e._l(e.contextMenuOptions,(function(n,i){return t("v-list-item",{key:i,on:{click:function(e){return e.stopPropagation(),n.action.apply(null,arguments)}}},[t("v-list-item-title",[e._v(e._s(n.title))])],1)})),1)],1),t("details-dialog",{attrs:{"target-name":e.parameters[0],"packet-name":e.parameters[1],"item-name":e.parameters[2]},model:{value:e.viewDetails,callback:function(t){e.viewDetails=t},expression:"viewDetails"}})],1)},a=[],s=n(84282),l=(n(68995),n(45794),n(59031)),r=n(38330),o=n(23169),c=(n(80131),{components:{DetailsDialog:o.Z},data:function(){return{height:100,itemsPerRow:4,formatter:null}},mixins:[l.Z,r.Z],computed:{aging:function(){return{"--aging":this.grayLevel}}},created:function(){this.parameters[3]&&(this.width=parseInt(this.parameters[3])),this.parameters[4]&&(this.height=parseInt(this.parameters[4])),this.parameters[5]&&(this.formatter=this.parameters[5]),this.parameters[6]&&(this.itemsPerRow=parseInt(this.parameters[6]))},methods:{getType:function(){var e="CONVERTED";return this.parameters[7]&&(e=this.parameters[7]),e},formatValue:function(e){var t="",n=" ",i="\n",a=0;if(Array.isArray(e)){var l,r=(0,s.Z)(e);try{for(r.s();!(l=r.n()).done;){var o,c=l.value;"nil"!==(null===(o=this.formatter)||void 0===o?void 0:o.toLowerCase())?t+=sprintf(this.formatter,c):t+=c,a+=1,a%this.itemsPerRow===0?(a=0,t+=i):t+=n}}catch(u){r.e(u)}finally{r.f()}return t.trim()}return e}}}),u=c,d=(n(76224),n(93483)),m=(0,d.Z)(u,i,a,!1,null,"5f1a52fc",null),h=m.exports},79664:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return h}});var i=function(){var e=this,t=e._self._c;return t("div",{staticClass:"block-widget-container"},[t("v-textarea",{class:e.valueClass,style:[e.computedStyle,e.aging],attrs:{solo:"",dense:"",readonly:"","hide-details":"",placeholder:"Value",height:e.height,value:e._value,"data-test":"valueText"},on:{contextmenu:e.showContextMenu}}),t("v-menu",{attrs:{"position-x":e.x,"position-y":e.y,absolute:"","offset-y":""},model:{value:e.contextMenuShown,callback:function(t){e.contextMenuShown=t},expression:"contextMenuShown"}},[t("v-list",e._l(e.contextMenuOptions,(function(n,i){return t("v-list-item",{key:i,on:{click:function(e){return e.stopPropagation(),n.action.apply(null,arguments)}}},[t("v-list-item-title",[e._v(e._s(n.title))])],1)})),1)],1),t("details-dialog",{attrs:{"target-name":e.parameters[0],"packet-name":e.parameters[1],"item-name":e.parameters[2]},model:{value:e.viewDetails,callback:function(t){e.viewDetails=t},expression:"viewDetails"}})],1)},a=[],s=n(84282),l=(n(68995),n(59031)),r=n(38330),o=n(23169),c=(n(80131),{components:{DetailsDialog:o.Z},data:function(){return{width:400,height:600,bytesPerWord:4,wordsPerRow:4,addrFormat:null,formatter:"%02X"}},mixins:[l.Z,r.Z],computed:{aging:function(){return{"--aging":this.grayLevel}}},created:function(){this.parameters[3]&&(this.width=parseInt(this.parameters[3])),this.parameters[4]&&(this.height=parseInt(this.parameters[4])),this.parameters[5]&&(this.formatter=this.parameters[5]),this.parameters[6]&&(this.bytesPerWord=parseInt(this.parameters[6])),this.parameters[7]&&(this.wordsPerRow=parseInt(this.parameters[7])),this.parameters[8]&&(this.addrFormat=parseInt(this.parameters[8]))},methods:{getType:function(){var e="RAW";return this.parameters[9]&&(e=this.parameters[9]),e},formatValue:function(e){var t="";if(e&&e.raw){var n,i=" ",a="\n",l=0,r=0,o=this.bytesPerWord*this.wordsPerRow,c=(0,s.Z)(e.raw);try{for(c.s();!(n=c.n()).done;){var u=n.value;this.addrFormat&&0===l&&(t+=sprintf(this.addrFormat,r),r+=o),t+=sprintf(this.formatter,u),l+=1,l%o===0?(l=0,t+=a):l%this.bytesPerWord===0&&(t+=i)}}catch(d){c.e(d)}finally{c.f()}}return t}}}),u=c,d=(n(27826),n(93483)),m=(0,d.Z)(u,i,a,!1,null,"38c85192",null),h=m.exports},76516:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return c}});var i=function(){var e=this,t=e._self._c;return t("div",[t("v-btn",{staticClass:"ma-1",style:e.computedStyle,attrs:{color:"primary"},on:{click:e.onClick}},[e._v(" "+e._s(e.buttonText)+" ")]),t("v-dialog",{attrs:{"max-width":"300"},model:{value:e.displaySendHazardous,callback:function(t){e.displaySendHazardous=t},expression:"displaySendHazardous"}},[t("v-card",{staticClass:"pa-3"},[t("v-card-title",{staticClass:"headline"},[e._v("Hazardous")]),t("v-card-text",[e._v(" Warning: Command is Hazardous. Send? ")]),t("v-btn",{staticClass:"primary mr-4",on:{click:e.sendHazardousCmd}},[e._v("Yes")]),t("v-btn",{staticClass:"primary",on:{click:e.cancelHazardousCmd}},[e._v("No")])],1)],1)],1)},a=[],s=n(25478),l=s.Z,r=n(93483),o=(0,r.Z)(l,i,a,!1,null,null,null),c=o.exports},91460:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return u}});var i=function(){var e=this,t=e._self._c;return t("svg",{attrs:{id:"canvas",width:e.width,height:e.height}},e._l(e.widgets,(function(n,i){return t(n.type,e._g({key:i,tag:"component",attrs:{target:n.target,parameters:n.parameters,settings:n.settings,widgets:n.widgets,name:n.name,line:n.line,lineNumber:n.lineNumber}},e.$listeners))})),1)},a=[],s=n(71398),l={mixins:[s.Z],computed:{width:function(){return this.parameters[0]+"px"},height:function(){return this.parameters[1]+"px"}}},r=l,o=(n(87164),n(93483)),c=(0,o.Z)(r,i,a,!1,null,"44b6a4ed",null),u=c.exports},82897:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return u}});var i=function(){var e=this,t=e._self._c;return t("circle",{attrs:{cx:e.parameters[0],cy:e.parameters[1],r:e.parameters[3],fill:e.parameters[2]}})},a=[],s=n(3498),l={mixins:[s.Z]},r=l,o=n(93483),c=(0,o.Z)(r,i,a,!1,null,null,null),u=c.exports},70435:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return d}});var i=function(){var e=this,t=e._self._c;return e.imageUrl?t("image",{attrs:{href:e.imageUrl,x:e.parameters[1],y:e.parameters[2],width:e.width,height:e.height}}):e._e()},a=[],s=(n(44112),n(3498)),l=n(59138),r={mixins:[s.Z,l.Z],data:function(){return{imageUrl:null}},computed:{width:function(){return this.parameters[3]?"".concat(this.parameters[3],"px"):"100%"},height:function(){return this.parameters[4]?"".concat(this.parameters[4],"px"):"100%"}},created:function(){var e=this;this.parameters[0].startsWith("http")?this.imageUrl=this.parameters[0]:this.getPresignedUrl(this.parameters[0]).then((function(t){e.imageUrl=t}))}},o=r,c=n(93483),u=(0,c.Z)(o,i,a,!1,null,null,null),d=u.exports},77002:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return p}});var i=function(){var e=this,t=e._self._c;return t("g",[e._l(e.images,(function(n){return t("image",{directives:[{name:"show",rawName:"v-show",value:n.value==e.selectedValue,expression:"image.value == selectedValue"}],key:n.value,attrs:{href:n.url,x:n.x,y:n.y,width:n.width,height:n.height}})})),e.defaultImage?t("image",{directives:[{name:"show",rawName:"v-show",value:e.showDefault,expression:"showDefault"}],attrs:{href:e.defaultImage.url,x:e.defaultImage.x,y:e.defaultImage.y,width:e.defaultImage.width,height:e.defaultImage.height}}):e._e()],2)},a=[],s=n(34948),l=n(70021),r=n(56706),o=(n(18178),n(58188),n(43450),n(95342),n(44112),n(28673),n(6886),n(3498)),c=n(59138),u={mixins:[o.Z,c.Z],data:function(){return{images:[],defaultImage:null}},computed:{valueId:function(){return"".concat(this.parameters[0],"__").concat(this.parameters[1],"__").concat(this.parameters[2],"__").concat(this.parameters[3]||"RAW")},selectedValue:function(){return this.$store.state.tlmViewerValues[this.valueId][0]},showDefault:function(){var e=this;return!this.images.some((function(t){return t.value==e.selectedValue}))}},watch:{valueId:{immediate:!0,handler:function(e){this.$store.commit("tlmViewerAddItem",e)}}},created:function(){var e=this,t=this.settings.filter((function(e){return"IMAGE"===e[0]})).map(function(){var t=(0,r.Z)((0,l.Z)().mark((function t(n){var i;return(0,l.Z)().wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(i=n[2],i.startsWith("http")){t.next=5;break}return t.next=4,e.getPresignedUrl(i);case 4:i=t.sent;case 5:return t.abrupt("return",{url:i,value:n[1],x:n[3],y:n[4],width:n[5],height:n[6]});case 6:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}());if(Promise.all(t).then((function(t){e.images=t})),this.parameters[4]){var n={x:this.parameters[5],y:this.parameters[6],width:this.parameters[7]?"".concat(this.parameters[7],"px"):"100%",height:this.parameters[8]?"".concat(this.parameters[8],"px"):"100%"},i=this.parameters[4];i.startsWith("http")?this.defaultImage=(0,s.Z)((0,s.Z)({},n),{},{url:i}):this.getPresignedUrl(i).then((function(t){e.defaultImage=(0,s.Z)((0,s.Z)({},n),{},{url:t})}))}},destroyed:function(){this.$store.commit("tlmViewerDeleteItem",this.valueId)}},d=u,m=n(93483),h=(0,m.Z)(d,i,a,!1,null,null,null),p=h.exports},9747:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return u}});var i=function(){var e=this,t=e._self._c;return t("text",{attrs:{x:e.parameters[0],y:e.parameters[1],fill:e.fillColor}},[e._v(" "+e._s(e.parameters[2])+" ")])},a=[],s=n(3498),l={mixins:[s.Z],computed:{fillColor:function(){return this.parameters[3]?this.parameters[3]:"black"}}},r=l,o=n(93483),c=(0,o.Z)(r,i,a,!1,null,null,null),u=c.exports},74856:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return u}});var i=function(){var e=this,t=e._self._c;return t("text",{attrs:{x:e.parameters[3],y:e.parameters[4],"font-size":e.fontSize,fill:e.fillColor}},[e._v(" "+e._s(e._value)+" ")])},a=[],s=(n(18178),n(3498)),l={mixins:[s.Z],data:function(){return{valueId:null}},computed:{_value:function(){return this.$store.state.tlmViewerValues[this.valueId][0]},fontSize:function(){return this.parameters[5]?this.parameters[5]+"px":"14px"},fillColor:function(){return this.parameters[6]?this.parameters[6]:"black"}},created:function(){this.valueId="".concat(this.parameters[0],"__").concat(this.parameters[1],"__").concat(this.parameters[2],"__CONVERTED"),this.$store.commit("tlmViewerAddItem",this.valueId)},destroyed:function(){this.$store.commit("tlmViewerDeleteItem",this.valueId)}},r=l,o=n(93483),c=(0,o.Z)(r,i,a,!1,null,null,null),u=c.exports},44943:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return u}});var i=function(){var e=this,t=e._self._c;return t("line",{style:e.calcStyle,attrs:{x1:e.parameters[0],y1:e.parameters[1],x2:e.parameters[2],y2:e.parameters[3]}})},a=[],s=n(3498),l={mixins:[s.Z],computed:{calcStyle:function(){var e="black";this.parameters[4]&&(e=this.parameters[4]);var t=1;return this.parameters[5]&&(t=this.parameters[5]),"stroke:"+e+";stroke-width:"+t}}},r=l,o=n(93483),c=(0,o.Z)(r,i,a,!1,null,null,null),u=c.exports},79831:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return u}});var i=function(){var e=this,t=e._self._c;return t("line",{style:e.calcStyle,attrs:{x1:e.parameters[3],y1:e.parameters[4],x2:e.parameters[5],y2:e.parameters[6]}})},a=[],s=(n(68995),n(18178),n(3498)),l={mixins:[s.Z],data:function(){return{valueId:0}},computed:{calcStyle:function(){var e=this.parameters[8];1===parseInt(this.$store.state.tlmViewerValues[this.valueId][0])&&(e=this.parameters[7]);var t=1;return this.parameters[9]&&(t=this.parameters[9]),"stroke:"+e+";stroke-width:"+t}},created:function(){this.valueId="".concat(this.parameters[0],"__").concat(this.parameters[1],"__").concat(this.parameters[2],"__RAW"),this.$store.commit("tlmViewerAddItem",this.valueId)},destroyed:function(){this.$store.commit("tlmViewerDeleteItem",this.valueId)}},r=l,o=n(93483),c=(0,o.Z)(r,i,a,!1,null,null,null),u=c.exports},27968:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return u}});var i=function(){var e=this,t=e._self._c;return t("v-checkbox",{style:e.computedStyle,attrs:{"hide-details":"",dense:"",label:e.label},model:{value:e.value,callback:function(t){e.value=t},expression:"value"}})},a=[],s=(n(58188),n(1939),n(3498)),l={mixins:[s.Z],data:function(){return{items:[],label:"Checkbox",value:!1}},created:function(){var e=this;this.settings.forEach((function(t){"NAMED_WIDGET"===t[0]&&t[2].setNamedWidget(t[1],e)})),this.label=this.parameters[0]},methods:{checked:function(){return this.value}}},r=l,o=n(93483),c=(0,o.Z)(r,i,a,!1,null,null,null),u=c.exports},97705:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return u}});var i=function(){var e=this,t=e._self._c;return t("v-select",{style:e.computedStyle,attrs:{"hide-details":"",dense:"",items:e.items},model:{value:e.value,callback:function(t){e.value=t},expression:"value"}})},a=[],s=(n(58188),n(1939),n(3498)),l={mixins:[s.Z],data:function(){return{items:[],value:null}},created:function(){var e=this;this.settings.forEach((function(t){"NAMED_WIDGET"===t[0]&&t[2].setNamedWidget(t[1],e)})),this.items=this.parameters},methods:{text:function(){return this.value}}},r=l,o=n(93483),c=(0,o.Z)(r,i,a,!1,null,null,null),u=c.exports},7874:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return m}});var i=n(34948),a=function(){var e=this,t=e._self._c;return t(e.widgetType,e._b({tag:"component"},"component",(0,i.Z)((0,i.Z)({},e.$props),e.$attrs),!1))},s=[],l=n(70021),r=n(56706),o=(n(18178),n(71372),{data:function(){return{widgetType:null}},props:{name:{default:null}},computed:{url:function(){return"".concat(window.location.origin,"/tools/widgets/").concat(this.name,"/").concat(this.name,".umd.min.js")}},mounted:function(){var e=this;return(0,r.Z)((0,l.Z)().mark((function t(){return(0,l.Z)().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,System.import(e.url);case 3:e.widgetType=t.sent,t.next=9;break;case 6:throw t.prev=6,t.t0=t["catch"](0),new Error("Unknown widget: ".concat(e.name));case 9:case"end":return t.stop()}}),t,null,[[0,6]])})))()}}),c=o,u=n(93483),d=(0,u.Z)(c,a,s,!1,null,null,null),m=d.exports},42550:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return d}});var i=function(){var e=this,t=e._self._c;return t("div",{ref:"container",staticClass:"d-flex flex-row",style:e.computedStyle},[t("value-widget",{attrs:{parameters:e.getParameters,settings:e.settings,"format-string":e.parameters[3]}})],1)},a=[],s=n(3498),l=n(83153),r={mixins:[s.Z],components:{ValueWidget:l["default"]},computed:{getParameters:function(){return[this.parameters[0],this.parameters[1],this.parameters[2],this.parameters[4]]}}},o=r,c=n(93483),u=(0,c.Z)(o,i,a,!1,null,null,null),d=u.exports},1282:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return u}});var i=function(){var e=this,t=e._self._c;return t("div",{ref:"container",staticClass:"d-flex flex-row"},e._l(e.widgets,(function(n,i){return t(n.type,e._g({key:i,tag:"component",attrs:{target:n.target,parameters:n.parameters,settings:n.settings,widgets:n.widgets,name:n.name,line:n.line,lineNumber:n.lineNumber}},e.$listeners))})),1)},a=[],s=n(71398),l={mixins:[s.Z]},r=l,o=n(93483),c=(0,o.Z)(r,i,a,!1,null,null,null),u=c.exports},12081:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return d}});var i=function(){var e=this,t=e._self._c;return t("div",[t("v-banner",{attrs:{"single-line":""}},[e._v(e._s(e.parameters.join(" ")))]),t("horizontal-widget",e._g({attrs:{parameters:e.parameters,settings:e.settings,widgets:e.widgets}},e.$listeners))],1)},a=[],s=n(1282),l=n(71398),r={mixins:[l.Z],components:{HorizontalWidget:s["default"]}},o=r,c=(n(17359),n(93483)),u=(0,c.Z)(o,i,a,!1,null,"3cd534da",null),d=u.exports},44031:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return u}});var i=function(){var e=this,t=e._self._c;return t("iframe",{attrs:{src:e.src,width:e.width,height:e.height}})},a=[],s=n(3498),l={mixins:[s.Z],computed:{src:function(){return this.parameters[0]},width:function(){return this.parameters[1]+"px"},height:function(){return this.parameters[2]+"px"}}},r=l,o=n(93483),c=(0,o.Z)(r,i,a,!1,null,null,null),u=c.exports},28901:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return m}});var i=function(){var e=this,t=e._self._c;return t("img",{attrs:{src:e.src,alt:e.itemFullName,width:e.parameters[4],height:e.parameters[5]}})},a=[],s=(n(18178),n(58188),n(49228),n(94008)),l=n(3498),r=n(32101),o={mixins:[l.Z],data:function(){return{api:new s.k,cable:new r.Z,subscription:null,imageData:""}},computed:{src:function(){return"data:image/".concat(this.parameters[3],";base64, ").concat(this.imageData)},itemFullName:function(){return"TLM__".concat(this.targetName,"__").concat(this.packetName,"__").concat(this.itemName,"__").concat(this.valueType)},targetName:function(){return this.parameters[0]},packetName:function(){return this.parameters[1]},itemName:function(){return this.parameters[2]},valueType:function(){return"CONVERTED"}},created:function(){var e=this;this.api.get_tlm_packet(this.targetName,this.packetName,this.valueType).then((function(t){var n=null===t||void 0===t?void 0:t.find((function(t){return t[0]===e.itemName}));n&&(e.imageData=n[1])})).finally((function(){e.subscribe()}))},destroyed:function(){this.subscription&&this.subscription.unsubscribe(),this.cable.disconnect()},methods:{received:function(e){if(e["error"])this.$notify.serious({body:e["error"]});else{var t=JSON.parse(e);if(t.length){var n=t[t.length-1];this.imageData=n[this.itemFullName]}}},subscribe:function(){var e=this;this.cable.createSubscription("StreamingChannel",window.openc3Scope,{received:function(t){return e.received(t)},connected:function(){e.subscription.perform("add",{scope:window.openc3Scope,mode:"DECOM",token:localStorage.openc3Token,items:[e.itemFullName]})},disconnected:function(){e.$notify.caution({body:"OpenC3 backend connection disconnected."})},rejected:function(){e.$notify.caution({body:"OpenC3 backend connection rejected."})}}).then((function(t){e.subscription=t}))}}},c=o,u=n(93483),d=(0,u.Z)(c,i,a,!1,null,null,null),m=d.exports},60133:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return u}});var i=function(){var e=this,t=e._self._c;return t("span",{staticClass:"pa-1 mt-1 label",style:[e.cssProps,e.computedStyle],attrs:{"data-test":"label"}},[e._v(" "+e._s(e.labelText)+" ")])},a=[],s=n(3498),l={mixins:[s.Z],data:function(){return{fontFamily:null,fontSize:null,fontWeight:"normal",fontStyle:"normal"}},computed:{labelText:function(){return this.parameters[0]},cssProps:function(){var e=null;return this.fontSize&&(e=this.fontSize+"px"),{"--font-family":this.fontFamily,"--font-size":e,"--font-weight":this.fontWeight,"--font-style":this.fontStyle}}},created:function(){this.verifyNumParams("LABEL",1,5,"LABEL <Text> <Font Family> <Font Size> <Font Weight> <Font Style>"),this.parameters[1]&&(this.fontFamily=this.parameters[1]),this.parameters[2]&&(this.fontSize=this.parameters[2]),this.parameters[3]&&(this.fontWeight=this.parameters[3]),this.parameters[4]&&(this.fontStyle=this.parameters[4])}},r=l,o=(n(81557),n(93483)),c=(0,o.Z)(r,i,a,!1,null,"c4066fac",null),u=c.exports},38304:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return m}});var i=function(){var e=this,t=e._self._c;return t("div",{ref:"container",staticClass:"d-flex flex-row",style:e.computedStyle},[t("label-widget",{attrs:{parameters:e.labelName,settings:e.settings}}),t("led-widget",{attrs:{parameters:e.parameters,settings:e.settings}})],1)},a=[],s=n(3498),l=n(60133),r=n(25533),o={mixins:[s.Z],components:{LabelWidget:l["default"],LedWidget:r["default"]},computed:{labelName:function(){return[this.parameters[2]+":"]}}},c=o,u=n(93483),d=(0,u.Z)(c,i,a,!1,null,null,null),m=d.exports},81781:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return m}});var i=function(){var e=this,t=e._self._c;return t("div",{ref:"container",staticClass:"d-flex flex-row"},[t("label-widget",{style:e.computedStyle,attrs:{parameters:e.labelName,settings:e.settings,"widget-index":0}}),t("progressbar-widget",{style:e.computedStyle,attrs:{parameters:e.parameters,settings:e.settings,"widget-index":1}})],1)},a=[],s=n(3498),l=n(60133),r=n(44584),o={mixins:[s.Z],components:{LabelWidget:l["default"],ProgressbarWidget:r["default"]},computed:{labelName:function(){return[this.parameters[2]+":"]}}},c=o,u=n(93483),d=(0,u.Z)(c,i,a,!1,null,null,null),m=d.exports},5357:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return m}});var i=function(){var e=this,t=e._self._c;return t("div",{ref:"container",staticClass:"d-flex flex-row"},[t("label-widget",{style:e.computedStyle,attrs:{parameters:e.labelName,settings:e.settings,line:e.line,lineNumber:e.lineNumber,"widget-index":0}}),t("sparkline-widget",{style:e.computedStyle,attrs:{parameters:e.parameters,settings:e.settings,"widget-index":1}})],1)},a=[],s=n(3498),l=n(60133),r=n(88807),o={mixins:[s.Z],components:{LabelWidget:l["default"],SparklineWidget:r["default"]},computed:{labelName:function(){return[this.parameters[2]+":"]}}},c=o,u=n(93483),d=(0,u.Z)(c,i,a,!1,null,null,null),m=d.exports},83183:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return m}});var i=function(){var e=this,t=e._self._c;return t("div",{ref:"container",staticClass:"d-flex flex-row"},[t("label-widget",{style:e.computedStyle,attrs:{parameters:e.labelName,settings:e.settings,line:e.line,lineNumber:e.lineNumber,"widget-index":0}}),t("value-widget",{style:e.computedStyle,attrs:{parameters:e.parameters,settings:e.settings,line:e.line,lineNumber:e.lineNumber,"widget-index":1}})],1)},a=[],s=n(3498),l=n(60133),r=n(83153),o={mixins:[s.Z],components:{LabelWidget:l["default"],ValueWidget:r["default"]},computed:{labelName:function(){return[this.parameters[2]+":"]}}},c=o,u=n(93483),d=(0,u.Z)(c,i,a,!1,null,null,null),m=d.exports},43758:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return h}});n(32501);var i=function(){var e=this,t=e._self._c;return t("div",{ref:"container",staticClass:"d-flex flex-row"},[t("label-widget",{style:e.computedStyle,attrs:{parameters:e.labelName,settings:e.settings,"widget-index":0}}),t("value-widget",{style:e.computedStyle,attrs:{parameters:e.parameters.slice(0,3),settings:e.settings,"widget-index":1}})],1)},a=[],s=(n(34115),n(634),n(3498)),l=n(60133),r=n(83153),o=n(94008),c={mixins:[s.Z],data:function(){return{description:""}},components:{LabelWidget:l["default"],ValueWidget:r["default"]},computed:{labelName:function(){return[this.description]}},created:function(){var e=this;this.parameters.length>3?this.description=this.parameters[3]:(this.api=new o.k,this.api.get_item(this.parameters[0],this.parameters[1],this.parameters[2]).then((function(t){e.description=t["description"]})))}},u=c,d=n(93483),m=(0,d.Z)(u,i,a,!1,null,null,null),h=m.exports},20674:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return m}});n(43450),n(95342),n(58188),n(32501);var i=function(){var e=this,t=e._self._c;return t("div",{ref:"container",staticClass:"d-flex flex-row",style:[e.defaultStyle,e.computedStyle]},[t("labelvalue-widget",{attrs:{parameters:e.parameters,settings:e.settings}}),t("limitsbar-widget",{attrs:{parameters:e.limitsBarParameters,settings:e.settings.filter((function(e){return 1==e[0]})).map((function(e){return e.slice(1)})),"widget-index":3}})],1)},a=[],s=(n(1939),n(68995),n(83183)),l=n(25322),r=n(3498),o={mixins:[r.Z],components:{LabelvalueWidget:s["default"],LimitsbarWidget:l["default"]},data:function(){return{overallWidth:"300px"}},created:function(){var e=0;this.settings.forEach((function(t){"WIDTH"===t[1]&&(e+=parseInt(t[2]))})),0!=e&&(this.overallWidth=e+"px")},computed:{limitsBarParameters:function(){return[this.parameters[0],this.parameters[1],this.parameters[2],"CONVERTED"]},defaultStyle:function(){return{width:this.overallWidth}}}},c=o,u=n(93483),d=(0,u.Z)(c,i,a,!1,null,null,null),m=d.exports},51965:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return h}});var i=function(){var e=this,t=e._self._c;return t("div",{ref:"container",staticClass:"d-flex flex-column",style:e.computedStyle},[t("label-widget",{attrs:{parameters:[e.parameters[2]],settings:e.settings,"widget-index":0}}),t("limitscolumn-widget",{attrs:{parameters:e.limitsColumnParameters,settings:e.settings,"widget-index":1}}),t("value-widget",{attrs:{parameters:e.parameters,settings:e.settings,"widget-index":2}})],1)},a=[],s=(n(36728),n(60133)),l=n(83153),r=n(32334),o=n(3498),c={mixins:[o.Z],components:{LabelWidget:s["default"],ValueWidget:l["default"],LimitscolumnWidget:r["default"]},created:function(){this.settings.push(["WIDTH","100"])},computed:{limitsColumnParameters:function(){return[this.parameters[0],this.parameters[1],this.parameters[2],"CONVERTED"]}}},u=c,d=n(93483),m=(0,d.Z)(u,i,a,!1,null,null,null),h=m.exports},65521:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return m}});var i=function(){var e=this,t=e._self._c;return t("div",{ref:"container",staticClass:"d-flex flex-row",style:[e.defaultStyle,e.computedStyle]},[t("labelvalue-widget",{attrs:{parameters:e.labelValueParameters}}),t("rangebar-widget",{attrs:{parameters:e.parameters}})],1)},a=[],s=n(83183),l=n(17113),r=n(3498),o={mixins:[r.Z],components:{LabelvalueWidget:s["default"],RangebarWidget:l["default"]},computed:{labelValueParameters:function(){return[this.parameters[0],this.parameters[1],this.parameters[2],"WITH_UNITS"]},defaultStyle:function(){return{width:"300px"}}}},c=o,u=n(93483),d=(0,u.Z)(c,i,a,!1,null,null,null),m=d.exports},25533:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return u}});var i=function(){var e=this,t=e._self._c;return t("div",{staticClass:"led mt-2",style:[e.cssProps,e.computedStyle]})},a=[],s=(n(68995),n(58188),n(1939),n(18178),n(3498)),l={mixins:[s.Z],data:function(){return{valueId:null,colors:{TRUE:"openc3-green",FALSE:"openc3-red"}}},computed:{width:function(){return this.parameters[4]?parseInt(this.parameters[4]):20},height:function(){return this.parameters[5]?parseInt(this.parameters[5]):20},cssProps:function(){var e=this.$store.state.tlmViewerValues[this.valueId][0],t=this.colors[e];return t||(t=this.colors.ANY),t||(t="openc3-black"),{"--height":this.height+"px","--width":this.width+"px","--color":t}}},created:function(){var e=this;this.settings.forEach((function(t){switch(t[0]){case"LED_COLOR":e.colors[t[1]]=t[2];break}})),this.parameters[3]||(this.parameters[3]="CONVERTED"),this.valueId="".concat(this.parameters[0],"__").concat(this.parameters[1],"__").concat(this.parameters[2],"__").concat(this.parameters[3]),this.$store.commit("tlmViewerAddItem",this.valueId)},destroyed:function(){this.$store.commit("tlmViewerDeleteItem",this.valueId)}},r=l,o=(n(97503),n(93483)),c=(0,o.Z)(r,i,a,!1,null,"7c72e522",null),u=c.exports},25322:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return m}});var i=function(){var e=this,t=e._self._c;return t("div",{staticClass:"limitsbar",style:[e.cssProps,e.computedStyle]},[e._m(0)])},a=[function(){var e=this,t=e._self._c;return t("div",{staticClass:"limitsbar__container"},[t("div",{staticClass:"limitsbar__redlow"}),t("div",{staticClass:"limitsbar__redhigh"}),t("div",{staticClass:"limitsbar__yellowlow"}),t("div",{staticClass:"limitsbar__yellowhigh"}),t("div",{staticClass:"limitsbar__greenlow"}),t("div",{staticClass:"limitsbar__greenhigh"}),t("div",{staticClass:"limitsbar__blue"}),t("div",{staticClass:"limitsbar__line"}),t("div",{staticClass:"limitsbar__arrow"})])}],s=(n(58188),n(1939),n(68995),n(18178),n(3498)),l=n(94008),r="DEFAULT",o={mixins:[s.Z],data:function(){return{width:"100%",height:20,minValue:null,maxValue:null,scale:0,redLow:0,yellowLow:0,greenLow:0,greenHigh:0,yellowHigh:0,redHigh:0,blue:0,api:null,limitsSettings:{DEFAULT:[]},currentLimitsSet:r,currentSetRefreshInterval:null}},computed:{cssProps:function(){var e=this.$store.state.tlmViewerValues[this.valueId][0],t=this.modifyLimits(this.limitsSettings[this.selectedLimitsSet]);return this.calcLimits(t),{"--height":this.height+"px","--width":this.width,"--container-height":this.height-5+"px","--position":this.calcPosition(e,t)+"%","--redlow-width":this.redLow+"%","--redhigh-width":this.redHigh+"%","--yellowlow-width":this.yellowLow+"%","--yellowhigh-width":this.yellowHigh+"%","--greenlow-width":this.greenLow+"%","--greenhigh-width":this.greenHigh+"%","--blue-width":this.blue+"%"}},selectedLimitsSet:function(){return this.limitsSettings.hasOwnProperty(this.currentLimitsSet)?this.currentLimitsSet:r}},created:function(){var e=this;this.api=new l.k,this.api.get_limits(this.parameters[0],this.parameters[1],this.parameters[2]).then((function(t){e.limitsSettings=t})),this.getCurrentLimitsSet(),this.currentSetRefreshInterval=setInterval(this.getCurrentLimitsSet,6e4),this.settings.forEach((function(t){"MIN_VALUE"===t[0]&&(e.minValue=parseInt(t[1])),"MAX_VALUE"===t[0]&&(e.maxValue=parseInt(t[1]))}));var t="CONVERTED";this.parameters[3]&&(t=this.parameters[3]),this.valueId="".concat(this.parameters[0],"__").concat(this.parameters[1],"__").concat(this.parameters[2],"__").concat(t),this.$store.commit("tlmViewerAddItem",this.valueId)},destroyed:function(){this.$store.commit("tlmViewerDeleteItem",this.valueId),clearInterval(this.currentSetRefreshInterval)},methods:{modifyLimits:function(e){this.redLow=10,this.redHigh=10,this.minValue&&(e[0]<=this.minValue&&(e[0]=this.minValue,this.redLow=0),e[1]<=this.minValue&&(e[1]=this.minValue),e[2]<=this.minValue&&(e[2]=this.minValue),e[3]<=this.minValue&&(e[3]=this.minValue),e.length>4&&e[4]<=this.minValue&&(e[4]=this.minValue),e.length>4&&e[5]<=this.minValue&&(e[5]=this.minValue)),this.maxValue&&(e[0]>=this.maxValue&&(e[0]=this.maxValue),e[1]>=this.maxValue&&(e[1]=this.maxValue),e[2]>=this.maxValue&&(e[2]=this.maxValue),e[3]>=this.maxValue&&(e[3]=this.maxValue,this.redHigh=0),e.length>4&&e[4]>=this.maxValue&&(e[4]=this.maxValue),e.length>4&&e[5]>=this.maxValue&&(e[5]=this.maxValue)),e[0]==e[1]&&(this.redLow=0),e[2]==e[3]&&(this.redHigh=0);var t=80;return 0==this.redLow&&(t+=10),0==this.redHigh&&(t+=10),this.scale=(e[3]-e[0])/t,e},calcPosition:function(e,t){if(e&&t){var n=t[0]-10*this.scale;this.minValue&&this.minValue==t[0]&&(n=t[0]);t[3],this.scale;if(this.maxValue&&this.maxValue==t[3]&&t[3],e.raw)return"-Infinity"===e.raw?0:100;if(e<this.min)return 0;if(e>this.max)return 100;var i=parseInt((e-n)/this.scale);return i>100?100:i<0?0:i}},calcLimits:function(e){e&&(this.yellowLow=Math.round((e[1]-e[0])/this.scale),this.yellowHigh=Math.round((e[3]-e[2])/this.scale),e.length>4?(this.greenLow=Math.round((e[4]-e[1])/this.scale),this.greenHigh=Math.round((e[2]-e[5])/this.scale),this.blue=Math.round(100-this.redLow-this.yellowLow-this.greenLow-this.greenHigh-this.yellowHigh-this.redHigh)):(this.greenLow=Math.round(100-this.redLow-this.yellowLow-this.yellowHigh-this.redHigh),this.greenHigh=0,this.blue=0))},getCurrentLimitsSet:function(){var e=this;this.api.get_limits_set().then((function(t){e.currentLimitsSet=t}))}}},c=o,u=(n(61061),n(93483)),d=(0,u.Z)(c,i,a,!1,null,"3198e0fa",null),m=d.exports},42796:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return u}});var i=function(){var e=this,t=e._self._c;return t("div",{ref:"container",staticClass:"d-flex flex-row"},[t("div",{staticClass:"led align-self-center",style:[e.cssProps,e.computedStyle]}),t("label-widget",{style:e.computedStyle,attrs:{parameters:e.labelName,settings:e.settings,"widget-index":1}})],1)},a=[],s=(n(68995),n(59031)),l={mixins:[s.Z],data:function(){return{radius:15,fullLabelDisplay:!1}},created:function(){this.parameters[4]&&(this.radius=parseInt(this.parameters[4])),this.parameters[5]&&"true"===this.parameters[5].toLowerCase()&&(this.fullLabelDisplay=!0)},computed:{labelName:function(){return this.fullLabelDisplay?[this.parameters[0]+" "+this.parameters[1]+" "+this.parameters[2]]:[this.parameters[2]]},cssProps:function(){this.$store.state.tlmViewerValues[this.valueId][0];return{"--height":this.radius+"px","--width":this.radius+"px","--color":this.limitsColor}}},methods:{getType:function(){var e="CONVERTED";return this.parameters[3]&&(e=this.parameters[3]),e}}},r=l,o=(n(81418),n(93483)),c=(0,o.Z)(r,i,a,!1,null,"71a68fe2",null),u=c.exports},32334:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return m}});var i=function(){var e=this,t=e._self._c;return t("div",{staticClass:"limitsbar",style:[e.cssProps,e.computedStyle]},[e._m(0)])},a=[function(){var e=this,t=e._self._c;return t("div",{staticClass:"limitsbar__container"},[t("div",{staticClass:"limitsbar__redlow"}),t("div",{staticClass:"limitsbar__redhigh"}),t("div",{staticClass:"limitsbar__yellowlow"}),t("div",{staticClass:"limitsbar__yellowhigh"}),t("div",{staticClass:"limitsbar__greenlow"}),t("div",{staticClass:"limitsbar__greenhigh"}),t("div",{staticClass:"limitsbar__blue"}),t("div",{staticClass:"limitsbar__line"}),t("div",{staticClass:"limitsbar__arrow"})])}],s=(n(18178),n(68995),n(3498)),l=n(94008),r="DEFAULT",o={mixins:[s.Z],data:function(){return{width:20,height:100,redLow:0,yellowLow:0,greenLow:0,greenHigh:0,yellowHigh:0,redHigh:0,blue:0,api:null,limitsSettings:{DEFAULT:[]},currentLimitsSet:r,currentSetRefreshInterval:null}},computed:{cssProps:function(){var e=this.$store.state.tlmViewerValues[this.valueId][0];return this.calcLimits(this.limitsSettings[this.selectedLimitsSet]),{"--height":this.height+"px","--width":this.width+"px","--container-width":this.width-5+"px","--position":this.calcPosition(e,this.limitsSettings[this.selectedLimitsSet])+"%","--redlow-height":this.redLow+"%","--redhigh-height":this.redHigh+"%","--yellowlow-height":this.yellowLow+"%","--yellowhigh-height":this.yellowHigh+"%","--greenlow-height":this.greenLow+"%","--greenhigh-height":this.greenHigh+"%","--blue-height":this.blue+"%"}},selectedLimitsSet:function(){return this.limitsSettings.hasOwnProperty(this.currentLimitsSet)?this.currentLimitsSet:r}},created:function(){var e=this;this.api=new l.k,this.api.get_limits(this.parameters[0],this.parameters[1],this.parameters[2]).then((function(t){e.limitsSettings=t})),this.getCurrentLimitsSet(),this.currentSetRefreshInterval=setInterval(this.getCurrentLimitsSet,6e4);var t="CONVERTED";this.parameters[3]&&(t=this.parameters[3]),this.valueId="".concat(this.parameters[0],"__").concat(this.parameters[1],"__").concat(this.parameters[2],"__").concat(t),this.$store.commit("tlmViewerAddItem",this.valueId)},destroyed:function(){this.$store.commit("tlmViewerDeleteItem",this.valueId),clearInterval(this.currentSetRefreshInterval)},methods:{calcPosition:function(e,t){if(e&&t){var n=.8;t[0]===t[1]&&(n+=.1),t[2]===t[3]&&(n+=.1);var i=(t[3]-t[0])/n,a=t[0]-.1*i;t[3];if(e.raw)return"-Infinity"===e.raw?0:100;if(e<this.min)return 0;if(e>this.max)return 100;var s=parseInt((e-a)/i*100);return s>100?100:s<0?0:s}},calcLimits:function(e){if(e){var t=80;e[0]===e[1]?(this.redLow=0,t+=10):this.redLow=10,e[2]===e[3]?(this.redHigh=0,t+=10):this.redHigh=10;var n=1*(e[3]-e[0]);this.yellowLow=Math.round((e[1]-e[0])/n*t),this.yellowHigh=Math.round((e[3]-e[2])/n*t),e.length>4?(this.greenLow=Math.round((e[4]-e[1])/n*t),this.greenHigh=Math.round((e[2]-e[5])/n*t),this.blue=Math.round(100-this.redLow-this.yellowLow-this.greenLow-this.greenHigh-this.yellowHigh-this.redHigh)):(this.greenLow=Math.round(100-this.redLow-this.yellowLow-this.yellowHigh-this.redHigh),this.greenHigh=0,this.blue=0)}},getCurrentLimitsSet:function(){var e=this;this.api.get_limits_set().then((function(t){e.currentLimitsSet=t}))}}},c=o,u=(n(75500),n(93483)),d=(0,u.Z)(c,i,a,!1,null,"14a7f9e1",null),m=d.exports},109:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return m}});var i=function(){var e=this,t=e._self._c;return t("graph",{ref:"graph"+e.id,attrs:{id:e.id,state:e.state,"selected-graph-id":e.id,"seconds-graphed":e.secondsGraphed,"points-saved":e.pointsSaved,"points-graphed":e.pointsGraphed,"initial-items":e.items,height:e.size.height,width:e.size.width,"hide-system-bar":"","hide-overview":""}})},a=[],s=(n(58188),n(1939),n(36728),n(68995),n(3498)),l=n(91474),r="CONVERTED",o={components:{Graph:l.Z},mixins:[s.Z],data:function(){return{id:Math.floor(1e11*Math.random()),state:"start",items:[{targetName:this.parameters[0],packetName:this.parameters[1],itemName:this.parameters[2],valueType:r}],secondsGraphed:1e3,pointsSaved:1e6,pointsGraphed:1e3,size:{height:300,width:400}}},created:function(){var e=this;this.settings.forEach((function(t){switch(t[0]){case"ITEM":e.items.push({targetName:t[1],packetName:t[2],itemName:t[3],valueType:r});case"SECONDSGRAPHED":e.secondsGraphed=parseInt(t[1]);break;case"POINTSSAVED":e.pointsSaved=parseInt(t[1]);break;case"POINTSGRAPHED":e.pointsGraphed=parseInt(t[1]);break;case"SIZE":e.size.width=parseInt(t[1]),e.size.height=parseInt(t[2]);break}}))}},c=o,u=n(93483),d=(0,u.Z)(c,i,a,!1,null,null,null),m=d.exports},99711:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return m}});var i=function(){var e=this,t=e._self._c;return t("v-container",{staticClass:"pa-0"},e._l(e.widgetChunks,(function(n,i){return t("v-row",{key:"r"+i,attrs:{"no-gutters":""}},e._l(n,(function(n,i){return t("v-col",{key:"c"+i},[t(n.type,e._g({tag:"component",attrs:{target:n.target,parameters:n.parameters,settings:n.settings,widgets:n.widgets,name:n.name,line:n.line,lineNumber:n.lineNumber}},e.$listeners))],1)})),1)})),1)},a=[],s=(n(68995),n(71398)),l=n(76635),r=n.n(l),o={mixins:[s.Z],computed:{columns:function(){return parseInt(this.parameters[0])},widgetChunks:function(){return r().chunk(this.widgets,this.columns)}}},c=o,u=n(93483),d=(0,u.Z)(c,i,a,!1,null,null,null),m=d.exports},44584:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return d}});var i=function(){var e=this,t=e._self._c;return t("v-progress-linear",{style:e.computedStyle,attrs:{height:"25",value:e._value}},[t("strong",[e._v(e._s(Math.ceil(e._value))+"%")])])},a=[],s=(n(68995),n(13489),n(18178),n(3498)),l=n(38330),r={mixins:[s.Z,l.Z],props:{value:{default:null}},data:function(){return{valueId:null,scaleFactor:1,width:80}},computed:{_value:function(){var e=this.value;return null===e&&(e=this.$store.state.tlmViewerValues[this.valueId][0]),parseInt(parseFloat(e)*this.scaleFactor)}},created:function(){if(this.parameters[3]&&(this.scaleFactor=parseFloat(this.parameters[3])),this.parameters[4]&&(this.width=parseInt(this.parameters[4])),null===this.value){var e="CONVERTED";this.parameters[5]&&(e=this.parameters[5]),this.valueId="".concat(this.parameters[0],"__").concat(this.parameters[1],"__").concat(this.parameters[2],"__").concat(e),this.$store.commit("tlmViewerAddItem",this.valueId)}},destroyed:function(){this.$store.commit("tlmViewerDeleteItem",this.valueId)}},o=r,c=n(93483),u=(0,c.Z)(o,i,a,!1,null,null,null),d=u.exports},95571:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return u}});var i=function(){var e=this,t=e._self._c;return t("v-radio",{style:e.computedStyle,attrs:{"hide-details":"",dense:"",label:e.label,value:e.value}})},a=[],s=(n(71245),n(3498)),l={props:{value:{type:Number}},mixins:[s.Z],data:function(){return{label:"Radio"}},created:function(){this.label=this.parameters[0]}},r=l,o=n(93483),c=(0,o.Z)(r,i,a,!1,null,null,null),u=c.exports},78196:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return u}});var i=function(){var e=this,t=e._self._c;return t("v-radio-group",{style:e.computedStyle,attrs:{"hide-details":"",dense:""},model:{value:e.selectedIndex,callback:function(t){e.selectedIndex=t},expression:"selectedIndex"}},e._l(e.widgets,(function(n,i){return t(n.type,e._g({key:i,tag:"component",attrs:{value:i,target:n.target,parameters:n.parameters,settings:n.settings,name:n.name}},e.$listeners))})),1)},a=[],s=(n(58188),n(1939),n(68995),n(71398)),l={mixins:[s.Z],data:function(){return{selectedIndex:0}},created:function(){var e=this;this.settings.forEach((function(t){"NAMED_WIDGET"===t[0]&&t[2].setNamedWidget(t[1],e)})),this.parameters[0]&&(this.selectedIndex=parseInt(this.parameters[0]))},methods:{selected:function(){return this.selectedIndex}}},r=l,o=n(93483),c=(0,o.Z)(r,i,a,!1,null,null,null),u=c.exports},17113:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return u}});var i=function(){var e=this,t=e._self._c;return t("div",{staticClass:"rangebar",style:[e.cssProps,e.computedStyle]},[e._m(0)])},a=[function(){var e=this,t=e._self._c;return t("div",{staticClass:"rangebar__container"},[t("div",{staticClass:"rangebar__line"}),t("div",{staticClass:"rangebar__arrow"})])}],s=(n(68995),n(18178),n(3498)),l={mixins:[s.Z],data:function(){return{width:"100%",height:20}},computed:{cssProps:function(){return{"--height":this.height+"px","--width":this.width,"--container-height":this.height-5+"px","--position":this.calcPosition()+"%"}},min:function(){return parseInt(this.parameters[3])},max:function(){return parseInt(this.parameters[4])},range:function(){return this.max-this.min}},created:function(){var e=this.parameters[5]?this.parameters[5]:"CONVERTED";this.valueId="".concat(this.parameters[0],"__").concat(this.parameters[1],"__").concat(this.parameters[2],"__").concat(e),this.$store.commit("tlmViewerAddItem",this.valueId),this.parameters[6]&&(this.width=parseInt(this.parameters[6])+"px"),this.parameters[7]&&(this.height=parseInt(this.parameters[7]))},destroyed:function(){this.$store.commit("tlmViewerDeleteItem",this.valueId)},methods:{calcPosition:function(){var e=this.$store.state.tlmViewerValues[this.valueId][0];if(!e)return 0;if(e.raw)return"-Infinity"===e.raw?0:100;var t=(e-this.min)/this.range*100;return t>100?100:t<0?0:t}}},r=l,o=(n(97946),n(93483)),c=(0,o.Z)(r,i,a,!1,null,"687f0825",null),u=c.exports},49970:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return d}});var i=function(){var e=this,t=e._self._c;return t("verticalbox-widget",e._g({attrs:{parameters:e.parameters,settings:e.settings,widgets:e.widgets,"content-style":e.scrollwindowStyle}},e.$listeners))},a=[],s=(n(71245),n(49228),n(58188),n(30724),n(6406),n(71398)),l=n(70135),r={mixins:[s.Z],components:{VerticalboxWidget:l["default"]},computed:{maxHeight:function(){var e,t;return Number(null!==(e=null===(t=this.settings.find((function(e){return"HEIGHT"===e[0]})))||void 0===t?void 0:t.at(1))&&void 0!==e?e:180)},scrollwindowStyle:function(){return"\n max-height: ".concat(this.maxHeight,"px;\n overflow-y: scroll;\n ")}}},o=r,c=n(93483),u=(0,c.Z)(o,i,a,!1,null,null,null),d=u.exports},60528:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return u}});var i=function(){var e=this,t=e._self._c;return t("v-banner",{attrs:{"single-line":""}},[e._v(e._s(e.labelText))])},a=[],s=n(3498),l={mixins:[s.Z],computed:{labelText:function(){return this.parameters[0]}}},r=l,o=n(93483),c=(0,o.Z)(r,i,a,!1,null,null,null),u=c.exports},14239:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return u}});var i=function(){var e=this,t=e._self._c;return t("div",{style:e.style})},a=[],s=n(3498),l={mixins:[s.Z],computed:{style:function(){return["width: ".concat(this.parameters[0],"px;"),"height: ".concat(this.parameters[1],"px;")].join("")}}},r=l,o=n(93483),c=(0,o.Z)(r,i,a,!1,null,null,null),u=c.exports},88807:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return m}});var i=function(){var e=this,t=e._self._c;return t("graph",{ref:"graph"+e.id,attrs:{id:e.id,state:e.state,"selected-graph-id":e.id,"seconds-graphed":e.secondsGraphed,"points-saved":e.pointsSaved,"points-graphed":e.pointsGraphed,"initial-items":e.items,height:e.size.height,width:e.size.width,sparkline:""}})},a=[],s=(n(58188),n(1939),n(36728),n(68995),n(3498)),l=n(91474),r="CONVERTED",o={components:{Graph:l.Z},mixins:[s.Z],data:function(){return{id:Math.floor(1e11*Math.random()),state:"start",items:[{targetName:this.parameters[0],packetName:this.parameters[1],itemName:this.parameters[2],valueType:r}],secondsGraphed:300,pointsSaved:300,pointsGraphed:300,size:{height:30,width:130}}},created:function(){var e=this;this.settings.forEach((function(t){switch(t[0]){case"ITEM":e.items.push({targetName:t[1],packetName:t[2],itemName:t[3],valueType:r});case"SECONDSGRAPHED":e.secondsGraphed=parseInt(t[1]);break;case"POINTSSAVED":e.pointsSaved=parseInt(t[1]);break;case"POINTSGRAPHED":e.pointsGraphed=parseInt(t[1]);break;case"SIZE":e.size.width=parseInt(t[1]),e.size.height=parseInt(t[2]);break}}))}},c=o,u=n(93483),d=(0,u.Z)(c,i,a,!1,null,null,null),m=d.exports},25822:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return u}});n(18178);var i=function(){var e=this,t=e._self._c;return t("div",[t("v-tabs",{model:{value:e.curTab,callback:function(t){e.curTab=t},expression:"curTab"}},e._l(e.widgets,(function(n,i){return t("v-tab",{key:i},[e._v(" "+e._s(n.parameters[0])+" ")])})),1),t("v-tabs-items",{model:{value:e.curTab,callback:function(t){e.curTab=t},expression:"curTab"}},e._l(e.widgets,(function(n,i){return t("v-tab-item",{key:i},e._l(n.widgets,(function(n,a){return t(n.type,e._g({key:"".concat(i,"-").concat(a),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)},a=[],s=n(71398),l={mixins:[s.Z],data:function(){return{curTab:null}},watch:{curTab:function(){this.$emit("min-max-screen")}}},r=l,o=n(93483),c=(0,o.Z)(r,i,a,!1,null,null,null),u=c.exports},96671:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return m}});var i=function(){var e=this,t=e._self._c;return t("div",{staticClass:"textbox-widget-container"},[t("v-textarea",{class:e.valueClass,style:[e.computedStyle,e.aging],attrs:{solo:"",dense:"",readonly:"","hide-details":"",placeholder:"Value",height:e.height,value:e._value,"data-test":"valueText"},on:{contextmenu:e.showContextMenu}}),t("v-menu",{attrs:{"position-x":e.x,"position-y":e.y,absolute:"","offset-y":""},model:{value:e.contextMenuShown,callback:function(t){e.contextMenuShown=t},expression:"contextMenuShown"}},[t("v-list",e._l(e.contextMenuOptions,(function(n,i){return t("v-list-item",{key:i,on:{click:function(e){return e.stopPropagation(),n.action.apply(null,arguments)}}},[t("v-list-item-title",[e._v(e._s(n.title))])],1)})),1)],1),t("details-dialog",{attrs:{"target-name":e.parameters[0],"packet-name":e.parameters[1],"item-name":e.parameters[2]},model:{value:e.viewDetails,callback:function(t){e.viewDetails=t},expression:"viewDetails"}})],1)},a=[],s=(n(68995),n(59031)),l=n(38330),r=n(23169),o=(n(80131),{components:{DetailsDialog:r.Z},data:function(){return{height:100}},mixins:[s.Z,l.Z],computed:{aging:function(){return{"--aging":this.grayLevel}}},created:function(){this.parameters[3]&&(this.width=parseInt(this.parameters[3])),this.parameters[4]&&(this.height=parseInt(this.parameters[4]))},methods:{getType:function(){var e="CONVERTED";return this.parameters[5]&&(e=this.parameters[5]),e}}}),c=o,u=(n(81271),n(93483)),d=(0,u.Z)(c,i,a,!1,null,"288dec50",null),m=d.exports},33585:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return u}});var i=function(){var e=this,t=e._self._c;return t("v-text-field",{style:e.computedStyle,attrs:{solo:"",dense:"","single-line":"","hide-no-data":"","hide-details":""},model:{value:e.value,callback:function(t){e.value=t},expression:"value"}})},a=[],s=(n(58188),n(1939),n(36728),n(68995),n(3498)),l={mixins:[s.Z],data:function(){return{value:null}},created:function(){var e=this;this.settings.forEach((function(t){"NAMED_WIDGET"===t[0]&&t[2].setNamedWidget(t[1],e)})),this.parameters[0]&&this.settings.push(["WIDTH",parseInt(this.parameters[0])]),this.parameters[1]&&(this.value=this.parameters[1])},methods:{text:function(){return this.value}}},r=l,o=n(93483),c=(0,o.Z)(r,i,a,!1,null,null,null),u=c.exports},23724:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return u}});var i=function(){var e=this,t=e._self._c;return t("span",{staticClass:"text-h5 text-center pa-1 mt-1 label",style:e.computedStyle},[e._v(" "+e._s(e.labelText)+" ")])},a=[],s=(n(71372),n(3498)),l={mixins:[s.Z],computed:{labelText:function(){return this.parameters[0]}},created:function(){if(this.parameters.length<1)throw new Error("Not enough parameters for TITLE.")}},r=l,o=n(93483),c=(0,o.Z)(r,i,a,!1,null,null,null),u=c.exports},83153:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return d}});var i=function(){var e=this,t=e._self._c;return t("div",{staticClass:"value-widget-container"},[t("v-tooltip",{attrs:{bottom:""},scopedSlots:e._u([{key:"activator",fn:function(n){var i=n.on,a=n.attrs;return[t("v-text-field",e._g(e._b({class:e.valueClass,style:[e.computedStyle,e.aging],attrs:{solo:"",dense:"",readonly:"","single-line":"","hide-no-data":"","hide-details":"",placeholder:"Value",value:e._value,"data-test":"value"},on:{contextmenu:e.showContextMenu}},"v-text-field",a,!1),i))]}}])},[t("span",[e._v(e._s(e.fullName))])]),t("v-menu",{attrs:{"position-x":e.x,"position-y":e.y,absolute:"","offset-y":""},model:{value:e.contextMenuShown,callback:function(t){e.contextMenuShown=t},expression:"contextMenuShown"}},[t("v-list",e._l(e.contextMenuOptions,(function(n,i){return t("v-list-item",{key:i,on:{click:function(e){return e.stopPropagation(),n.action.apply(null,arguments)}}},[t("v-list-item-title",[e._v(e._s(n.title))])],1)})),1)],1),t("details-dialog",{attrs:{"target-name":e.parameters[0],"packet-name":e.parameters[1],"item-name":e.parameters[2]},model:{value:e.viewDetails,callback:function(t){e.viewDetails=t},expression:"viewDetails"}})],1)},a=[],s=n(59031),l=n(23169),r={components:{DetailsDialog:l.Z},mixins:[s.Z],computed:{fullName:function(){return this.parameters[0]+" "+this.parameters[1]+" "+this.parameters[2]},aging:function(){return{"--aging":this.grayLevel}}},created:function(){this.verifyNumParams("VALUE",3,3,"VALUE <TARGET> <PACKET> <ITEM>")}},o=r,c=(n(51645),n(93483)),u=(0,c.Z)(o,i,a,!1,null,"e7a2e8b4",null),d=u.exports},15015:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return m}});n(43450),n(95342),n(58188),n(32501);var i=function(){var e=this,t=e._self._c;return t("div",{ref:"container",staticClass:"d-flex flex-row",style:[e.defaultStyle,e.computedStyle]},[t("value-widget",{attrs:{parameters:e.parameters,settings:e.settings}}),t("limitsbar-widget",{attrs:{parameters:e.limitsBarParameters,settings:e.settings.filter((function(e){return 1==e[0]})).map((function(e){return e.slice(1)}))}})],1)},a=[],s=n(83153),l=n(25322),r=n(3498),o={mixins:[r.Z],components:{ValueWidget:s["default"],LimitsbarWidget:l["default"]},computed:{limitsBarParameters:function(){return[this.parameters[0],this.parameters[1],this.parameters[2],"CONVERTED"]},defaultStyle:function(){return{width:"300px"}}}},c=o,u=n(93483),d=(0,u.Z)(c,i,a,!1,null,null,null),m=d.exports},87485:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return m}});var i=function(){var e=this,t=e._self._c;return t("div",{ref:"container",staticClass:"d-flex flex-column",style:e.computedStyle},[t("limitscolumn-widget",{attrs:{parameters:e.limitsColumnParameters,settings:e.settings,"widget-index":0}}),t("value-widget",{attrs:{parameters:e.parameters,settings:e.settings,"widget-index":1}})],1)},a=[],s=(n(36728),n(83153)),l=n(32334),r=n(3498),o={mixins:[r.Z],components:{ValueWidget:s["default"],LimitscolumnWidget:l["default"]},created:function(){this.settings.push(["WIDTH","100"])},computed:{limitsColumnParameters:function(){return[this.parameters[0],this.parameters[1],this.parameters[2],"CONVERTED"]}}},c=o,u=n(93483),d=(0,u.Z)(c,i,a,!1,null,null,null),m=d.exports},97291:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return m}});var i=function(){var e=this,t=e._self._c;return t("div",{ref:"container",staticClass:"d-flex flex-row",style:[e.defaultStyle,e.computedStyle]},[t("value-widget",{attrs:{parameters:e.valueParameters}}),t("rangebar-widget",{attrs:{parameters:e.parameters}})],1)},a=[],s=n(83153),l=n(17113),r=n(3498),o={mixins:[r.Z],components:{ValueWidget:s["default"],RangebarWidget:l["default"]},computed:{valueParameters:function(){return[this.parameters[0],this.parameters[1],this.parameters[2],"WITH_UNITS"]},defaultStyle:function(){return{width:"300px"}}}},c=o,u=n(93483),d=(0,u.Z)(c,i,a,!1,null,null,null),m=d.exports},33549:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return u}});var i=function(){var e=this,t=e._self._c;return t("div",{ref:"container",staticClass:"d-flex flex-column"},e._l(e.widgets,(function(n,i){return t(n.type,e._g({key:i,tag:"component",attrs:{target:n.target,parameters:n.parameters,settings:n.settings,widgets:n.widgets,name:n.name,line:n.line,lineNumber:n.lineNumber}},e.$listeners))})),1)},a=[],s=n(71398),l={mixins:[s.Z]},r=l,o=n(93483),c=(0,o.Z)(r,i,a,!1,null,null,null),u=c.exports},70135:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return d}});var i=function(){var e=this,t=e._self._c;return t("div",[t("v-banner",{attrs:{"single-line":""}},[e._v(e._s(e.parameters.join(" ")))]),t("vertical-widget",e._g({style:e.contentStyle,attrs:{parameters:e.parameters,settings:e.settings,widgets:e.widgets}},e.$listeners))],1)},a=[],s=n(33549),l=n(71398),r={mixins:[l.Z],components:{VerticalWidget:s["default"]},props:{contentStyle:{type:String}}},o=r,c=(n(75556),n(93483)),u=(0,c.Z)(o,i,a,!1,null,"770ce0a3",null),d=u.exports},25409:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return we}});var i=n(6041);function a(){var e="/openc3/plugins/packages/openc3-tool-tlmviewer/src/tools/TlmViewer/TlmViewer.vue",t="4e47787d41595206b664db061de2a73de5b625c0",n=new Function("return this")(),i="__coverage__",s={path:"/openc3/plugins/packages/openc3-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:2448}},4:{start:{line:1,column:410},end:{line:1,column:432}},5:{start:{line:1,column:646},end:{line:1,column:668}},6:{start:{line:1,column:823},end:{line:1,column:877}},7:{start:{line:1,column:985},end:{line:1,column:1018}},8:{start:{line:1,column:1166},end:{line:1,column:1669}},9:{start:{line:1,column:1473},end:{line:1,column:1503}},10:{start:{line:1,column:1569},end:{line:1,column:1594}},11:{start:{line:1,column:1628},end:{line:1,column:1659}},12:{start:{line:1,column:1776},end:{line:1,column:1812}},13:{start:{line:1,column:1870},end:{line:1,column:1888}},14:{start:{line:1,column:2027},end:{line:1,column:2063}},15:{start:{line:1,column:2121},end:{line:1,column:2139}},16:{start:{line:1,column:2284},end:{line:1,column:2316}},17:{start:{line:1,column:2379},end:{line:1,column:2402}},18:{start:{line:3,column:22},end:{line:3,column:24}}},fnMap:{0:{name:"render",decl:{start:{line:1,column:22},end:{line:1,column:28}},loc:{start:{line:1,column:30},end:{line:2,column:1}},line:1},1:{name:"(anonymous_1)",decl:{start:{line:1,column:394},end:{line:1,column:395}},loc:{start:{line:1,column:409},end:{line:1,column:433}},line:1},2:{name:"(anonymous_2)",decl:{start:{line:1,column:630},end:{line:1,column:631}},loc:{start:{line:1,column:645},end:{line:1,column:669}},line:1},3:{name:"(anonymous_3)",decl:{start:{line:1,column:817},end:{line:1,column:818}},loc:{start:{line:1,column:823},end:{line:1,column:877}},line:1},4:{name:"(anonymous_4)",decl:{start:{line:1,column:979},end:{line:1,column:980}},loc:{start:{line:1,column:985},end:{line:1,column:1018}},line:1},5:{name:"(anonymous_5)",decl:{start:{line:1,column:1152},end:{line:1,column:1153}},loc:{start:{line:1,column:1165},end:{line:1,column:1670}},line:1},6:{name:"(anonymous_6)",decl:{start:{line:1,column:1456},end:{line:1,column:1457}},loc:{start:{line:1,column:1472},end:{line:1,column:1504}},line:1},7:{name:"(anonymous_7)",decl:{start:{line:1,column:1557},end:{line:1,column:1558}},loc:{start:{line:1,column:1569},end:{line:1,column:1594}},line:1},8:{name:"(anonymous_8)",decl:{start:{line:1,column:1611},end:{line:1,column:1612}},loc:{start:{line:1,column:1627},end:{line:1,column:1660}},line:1},9:{name:"(anonymous_9)",decl:{start:{line:1,column:1759},end:{line:1,column:1760}},loc:{start:{line:1,column:1775},end:{line:1,column:1813}},line:1},10:{name:"(anonymous_10)",decl:{start:{line:1,column:1854},end:{line:1,column:1855}},loc:{start:{line:1,column:1869},end:{line:1,column:1889}},line:1},11:{name:"(anonymous_11)",decl:{start:{line:1,column:2010},end:{line:1,column:2011}},loc:{start:{line:1,column:2026},end:{line:1,column:2064}},line:1},12:{name:"(anonymous_12)",decl:{start:{line:1,column:2105},end:{line:1,column:2106}},loc:{start:{line:1,column:2120},end:{line:1,column:2140}},line:1},13:{name:"(anonymous_13)",decl:{start:{line:1,column:2267},end:{line:1,column:2268}},loc:{start:{line:1,column:2283},end:{line:1,column:2317}},line:1},14:{name:"(anonymous_14)",decl:{start:{line:1,column:2363},end:{line:1,column:2364}},loc:{start:{line:1,column:2378},end:{line:1,column:2403}},line:1}},branchMap:{0:{loc:{start:{line:1,column:1675},end:{line:1,column:1925}},type:"cond-expr",locations:[{start:{line:1,column:1692},end:{line:1,column:1916}},{start:{line:1,column:1917},end:{line:1,column:1925}}],line:1},1:{loc:{start:{line:1,column:1926},end:{line:1,column:2176}},type:"cond-expr",locations:[{start:{line:1,column:1943},end:{line:1,column:2167}},{start:{line:1,column:2168},end:{line:1,column:2176}}],line:1},2:{loc:{start:{line:1,column:2177},end:{line:1,column:2444}},type:"cond-expr",locations:[{start:{line:1,column:2199},end:{line:1,column:2435}},{start:{line:1,column:2436},end:{line:1,column:2444}}],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},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},b:{0:[0,0],1:[0,0],2:[0,0]},_coverageSchema:"1a1c01bbd47fc00a2c39e90264f33305004495a9",hash:"4e47787d41595206b664db061de2a73de5b625c0"},l=n[i]||(n[i]={});l[e]&&l[e].hash===t||(l[e]=s);var r=l[e];return a=function(){return r},r}a(),a().s[0]++;var s=function(){a().f[0]++;var e=(a().s[1]++,this),t=(a().s[2]++,e._self._c);return a().s[3]++,t("div",[t("top-bar",{attrs:{title:e.title,menus:e.menus}}),t("v-container",[t("v-row",{staticClass:"pt-1"},[t("v-select",{staticClass:"pa-0 mr-2",attrs:{label:"Select Target",items:e.targets,"item-text":"label","item-value":"value"},on:{change:e.targetSelect},model:{value:e.selectedTarget,callback:function(t){a().f[1]++,a().s[4]++,e.selectedTarget=t},expression:"selectedTarget"}}),t("v-select",{staticClass:"pa-0 mr-3",attrs:{label:"Select Screen",items:e.screens},on:{change:e.screenSelect},model:{value:e.selectedScreen,callback:function(t){a().f[2]++,a().s[5]++,e.selectedScreen=t},expression:"selectedScreen"}}),t("v-btn",{staticClass:"primary mr-2",attrs:{disabled:!e.selectedScreen,"data-test":"show-screen"},on:{click:function(){return a().f[3]++,a().s[6]++,e.showScreen(e.selectedTarget,e.selectedScreen)}}},[e._v(" Show ")]),t("v-btn",{staticClass:"primary",attrs:{"data-test":"new-screen"},on:{click:function(){return a().f[4]++,a().s[7]++,e.newScreen(e.selectedTarget)}}},[e._v(" New Screen "),t("v-icon",[e._v(" mdi-file-plus")])],1)],1)],1),t("div",{staticClass:"grid"},e._l(e.definitions,(function(n){return a().f[5]++,a().s[8]++,t("div",{key:n.id,ref:"gridItem",refInFor:!0,staticClass:"item",attrs:{id:e.screenId(n.id)}},[t("div",{staticClass:"item-content"},[t("openc3-screen",{attrs:{target:n.target,screen:n.screen,definition:n.definition,keywords:e.keywords},on:{"close-screen":function(t){return a().f[6]++,a().s[9]++,e.closeScreen(n.id)},"min-max-screen":e.refreshLayout,"add-new-screen":function(t){return a().f[7]++,a().s[10]++,e.showScreen.apply(e,(0,i.Z)(t))},"delete-screen":function(t){return a().f[8]++,a().s[11]++,e.deleteScreen(n.id)}}})],1)])})),0),e.openConfig?(a().b[0][0]++,t("open-config-dialog",{attrs:{tool:e.toolName},on:{success:function(t){return a().f[9]++,a().s[12]++,e.openConfiguration(t)}},model:{value:e.openConfig,callback:function(t){a().f[10]++,a().s[13]++,e.openConfig=t},expression:"openConfig"}})):(a().b[0][1]++,e._e()),e.saveConfig?(a().b[1][0]++,t("save-config-dialog",{attrs:{tool:e.toolName},on:{success:function(t){return a().f[11]++,a().s[14]++,e.saveConfiguration(t)}},model:{value:e.saveConfig,callback:function(t){a().f[12]++,a().s[15]++,e.saveConfig=t},expression:"saveConfig"}})):(a().b[1][1]++,e._e()),e.newScreenDialog?(a().b[2][0]++,t("new-screen-dialog",{attrs:{screens:e.screens},on:{success:function(t){return a().f[13]++,a().s[16]++,e.saveNewScreen(t)}},model:{value:e.newScreenDialog,callback:function(t){a().f[14]++,a().s[17]++,e.newScreenDialog=t},expression:"newScreenDialog"}})):(a().b[2][1]++,e._e())],1)},l=(a().s[18]++,[]),r=n(70021),o=n(56706),c=n(84282),u=(n(36728),n(95342),n(58188),n(43450),n(28673),n(6886),n(1939),n(43430),n(74083),n(6710),n(66291)),d=n(94008),m=(n(18178),function(){var e=this,t=e._self._c;return t("mounting-portal",{attrs:{"mount-to":"#openc3-menu",append:""}},[t("div",{staticClass:"v-toolbar__content"},[e._l(e.menus,(function(n,i){return t("v-menu",{key:i,attrs:{"offset-y":""},scopedSlots:e._u([{key:"activator",fn:function(i){var a=i.on,s=i.attrs;return[t("v-btn",e._g(e._b({staticClass:"mx-1",attrs:{outlined:"","data-test":e.formatDT("".concat(e.title," ").concat(n.label))}},"v-btn",s,!1),a),[t("span",{domProps:{textContent:e._s(n.label)}}),t("v-icon",{attrs:{right:""}},[e._v(" mdi-menu-down ")])],1)]}}],null,!0)},[t("v-list",[t("v-radio-group",{staticClass:"ma-0 pa-0",attrs:{value:n.radioGroup,"hide-details":"",dense:""}},[e._l(n.items,(function(i,a){return[i.divider?t("v-divider"):t("v-list-item",{key:a,attrs:{disabled:i.disabled,"data-test":e.formatDT("".concat(e.title," ").concat(n.label," ").concat(i.label))},on:{click:i.command}},[i.radio?t("v-list-item-action",[t("v-radio",{attrs:{color:"secondary",label:i.label,value:i.label}})],1):e._e(),i.checkbox?t("v-list-item-action",[t("v-checkbox",{attrs:{color:"secondary",label:i.label,value:i.label},model:{value:e.checked,callback:function(t){e.checked=t},expression:"checked"}})],1):e._e(),i.icon?t("v-list-item-icon",[t("v-icon",{attrs:{disabled:i.disabled}},[e._v(e._s(i.icon))])],1):e._e(),i.radio||i.checkbox?e._e():t("v-list-item-title",{style:"cursor: pointer;"+(i.disabled?"opacity: 0.2":"")},[e._v(e._s(i.label))])],1)]}))],2)],1)],1)})),t("v-spacer"),t("v-toolbar-title",[e._v(e._s(e.title))]),t("v-spacer")],2)])}),h=[],p=(n(77950),n(85940),n(71639),{props:{menus:{type:Array,default:function(){return[]}},title:{type:String,default:""}},methods:{formatDT:function(e){return e.replaceAll(" ","-").toLowerCase()}},mounted:function(){document.title=this.title}}),A=p,f=(n(49824),n(93483)),v=(0,f.Z)(A,m,h,!1,null,"5fb8d7fb",null),g=v.exports;function _(){var e="/openc3/plugins/packages/openc3-tool-tlmviewer/src/tools/TlmViewer/Openc3Screen.vue",t="7a2704fd96a9fd7aae1f33c22d6c5c58b552c691",n=new Function("return this")(),i="__coverage__",a={path:"/openc3/plugins/packages/openc3-tool-tlmviewer/src/tools/TlmViewer/Openc3Screen.vue",statementMap:{0:{start:{line:1,column:13},end:{line:2,column:1}},1:{start:{line:1,column:39},end:{line:1,column:43}},2:{start:{line:1,column:47},end:{line:1,column:59}},3:{start:{line:1,column:60},end:{line:1,column:3419}},4:{start:{line:1,column:327},end:{line:1,column:521}},5:{start:{line:1,column:466},end:{line:1,column:488}},6:{start:{line:1,column:756},end:{line:1,column:923}},7:{start:{line:1,column:1066},end:{line:1,column:1548}},8:{start:{line:1,column:1908},end:{line:1,column:2117}},9:{start:{line:1,column:2048},end:{line:1,column:2080}},10:{start:{line:1,column:2638},end:{line:1,column:2665}},11:{start:{line:1,column:2693},end:{line:1,column:2716}},12:{start:{line:1,column:2744},end:{line:1,column:2769}},13:{start:{line:1,column:2827},end:{line:1,column:2845}},14:{start:{line:1,column:2980},end:{line:1,column:2999}},15:{start:{line:3,column:22},end:{line:3,column:24}}},fnMap:{0:{name:"render",decl:{start:{line:1,column:22},end:{line:1,column:28}},loc:{start:{line:1,column:30},end:{line:2,column:1}},line:1},1:{name:"(anonymous_1)",decl:{start:{line:1,column:303},end:{line:1,column:304}},loc:{start:{line:1,column:326},end:{line:1,column:522}},line:1},2:{name:"(anonymous_2)",decl:{start:{line:1,column:449},end:{line:1,column:450}},loc:{start:{line:1,column:465},end:{line:1,column:489}},line:1},3:{name:"(anonymous_3)",decl:{start:{line:1,column:732},end:{line:1,column:733}},loc:{start:{line:1,column:755},end:{line:1,column:924}},line:1},4:{name:"(anonymous_4)",decl:{start:{line:1,column:1042},end:{line:1,column:1043}},loc:{start:{line:1,column:1065},end:{line:1,column:1549}},line:1},5:{name:"(anonymous_5)",decl:{start:{line:1,column:1884},end:{line:1,column:1885}},loc:{start:{line:1,column:1907},end:{line:1,column:2118}},line:1},6:{name:"(anonymous_6)",decl:{start:{line:1,column:2031},end:{line:1,column:2032}},loc:{start:{line:1,column:2047},end:{line:1,column:2081}},line:1},7:{name:"(anonymous_7)",decl:{start:{line:1,column:2621},end:{line:1,column:2622}},loc:{start:{line:1,column:2637},end:{line:1,column:2666}},line:1},8:{name:"(anonymous_8)",decl:{start:{line:1,column:2676},end:{line:1,column:2677}},loc:{start:{line:1,column:2692},end:{line:1,column:2717}},line:1},9:{name:"(anonymous_9)",decl:{start:{line:1,column:2727},end:{line:1,column:2728}},loc:{start:{line:1,column:2743},end:{line:1,column:2770}},line:1},10:{name:"(anonymous_10)",decl:{start:{line:1,column:2811},end:{line:1,column:2812}},loc:{start:{line:1,column:2826},end:{line:1,column:2846}},line:1},11:{name:"(anonymous_11)",decl:{start:{line:1,column:2964},end:{line:1,column:2965}},loc:{start:{line:1,column:2979},end:{line:1,column:3e3}},line:1}},branchMap:{0:{loc:{start:{line:1,column:2441},end:{line:1,column:2882}},type:"cond-expr",locations:[{start:{line:1,column:2458},end:{line:1,column:2873}},{start:{line:1,column:2874},end:{line:1,column:2882}}],line:1}},s:{0:0,1:0,2:0,3:0,4:0,5:0,6:0,7:0,8:0,9:0,10:0,11:0,12:0,13:0,14:0,15:0},f:{0:0,1:0,2:0,3:0,4:0,5:0,6:0,7:0,8:0,9:0,10:0,11:0},b:{0:[0,0]},_coverageSchema:"1a1c01bbd47fc00a2c39e90264f33305004495a9",hash:"7a2704fd96a9fd7aae1f33c22d6c5c58b552c691"},s=n[i]||(n[i]={});s[e]&&s[e].hash===t||(s[e]=a);var l=s[e];return _=function(){return l},l}_(),_().s[0]++;var w=function(){_().f[0]++;var e=(_().s[1]++,this),t=(_().s[2]++,e._self._c);return _().s[3]++,t("div",[t("v-card",[t("v-system-bar",[t("div",{directives:[{name:"show",rawName:"v-show",value:0!==e.errors.length,expression:"errors.length !== 0"}]},[t("v-tooltip",{attrs:{top:""},scopedSlots:e._u([{key:"activator",fn:function(n){var i=n.on,a=n.attrs;return _().f[1]++,_().s[4]++,[t("div",e._g(e._b({},"div",a,!1),i),[t("v-icon",{attrs:{"data-test":"error-graph-icon"},on:{click:function(t){_().f[2]++,_().s[5]++,e.errorDialog=!0}}},[e._v(" mdi-alert ")])],1)]}}])},[t("span",[e._v(" Errors ")])])],1),t("v-spacer"),t("span",[e._v(e._s(e.target)+" "+e._s(e.screen))]),t("v-spacer"),t("v-tooltip",{attrs:{top:""},scopedSlots:e._u([{key:"activator",fn:function(n){var i=n.on,a=n.attrs;return _().f[3]++,_().s[6]++,[t("div",e._g(e._b({},"div",a,!1),i),[t("v-icon",{attrs:{"data-test":"edit-screen-icon"},on:{click:e.openEdit}},[e._v(" mdi-pencil ")])],1)]}}])},[t("span",[e._v(" Edit Screen ")])]),t("v-tooltip",{attrs:{top:""},scopedSlots:e._u([{key:"activator",fn:function(n){var i=n.on,a=n.attrs;return _().f[4]++,_().s[7]++,[t("div",e._g(e._b({},"div",a,!1),i),[t("v-icon",{directives:[{name:"show",rawName:"v-show",value:e.expand,expression:"expand"}],attrs:{"data-test":"minimize-screen-icon"},on:{click:e.minMaxTransition}},[e._v(" mdi-window-minimize ")]),t("v-icon",{directives:[{name:"show",rawName:"v-show",value:!e.expand,expression:"!expand"}],attrs:{"data-test":"maximize-screen-icon"},on:{click:e.minMaxTransition}},[e._v(" mdi-window-maximize ")])],1)]}}])},[t("span",{directives:[{name:"show",rawName:"v-show",value:e.expand,expression:"expand"}]},[e._v(" Minimize Screen ")]),t("span",{directives:[{name:"show",rawName:"v-show",value:!e.expand,expression:"!expand"}]},[e._v(" Maximize Screen ")])]),t("v-tooltip",{attrs:{top:""},scopedSlots:e._u([{key:"activator",fn:function(n){var i=n.on,a=n.attrs;return _().f[5]++,_().s[8]++,[t("div",e._g(e._b({},"div",a,!1),i),[t("v-icon",{attrs:{"data-test":"close-screen-icon"},on:{click:function(t){return _().f[6]++,_().s[9]++,e.$emit("close-screen")}}},[e._v(" mdi-close-box ")])],1)]}}])},[t("span",[e._v(" Close Screen ")])])],1),t("v-expand-transition",[t("div",{directives:[{name:"show",rawName:"v-show",value:e.expand,expression:"expand"}],ref:"screen",staticClass:"pa-1"},[t("vertical-widget",e._g({key:e.screenKey,attrs:{widgets:e.layoutStack[0].widgets}},e.$listeners))],1)])],1),e.editDialog?(_().b[0][0]++,t("edit-screen-dialog",{attrs:{target:e.target,screen:e.screen,definition:e.currentDefinition,keywords:e.keywords,errors:e.errors},on:{save:function(t){return _().f[7]++,_().s[10]++,e.saveEdit(t)},cancel:function(t){return _().f[8]++,_().s[11]++,e.cancelEdit()},delete:function(t){return _().f[9]++,_().s[12]++,e.deleteScreen()}},model:{value:e.editDialog,callback:function(t){_().f[10]++,_().s[13]++,e.editDialog=t},expression:"editDialog"}})):(_().b[0][1]++,e._e()),t("v-dialog",{attrs:{"max-width":"600"},model:{value:e.errorDialog,callback:function(t){_().f[11]++,_().s[14]++,e.errorDialog=t},expression:"errorDialog"}},[t("v-system-bar",[t("v-spacer"),t("span",[e._v(" Screen: "+e._s(e.target)+" "+e._s(e.screen)+" Errors ")]),t("v-spacer")],1),t("v-card",{staticClass:"pa-3"},[t("v-row",{staticClass:"my-3"},[t("v-textarea",{attrs:{readonly:"",rows:"13",value:e.error}})],1),t("v-row",[t("v-btn",{attrs:{block:""},on:{click:e.clearErrors}},[e._v(" Clear ")])],1)],1)],1)],1)},C=(_().s[15]++,[]),y=(n(93244),n(68995),n(13489),n(67789),n(32501),n(39529),n(31235),n(49585)),b=n(44091),x=n(23779),k=n.n(x),S=n(96009),T=n.n(S);function I(){var e="/openc3/plugins/packages/openc3-tool-tlmviewer/src/tools/TlmViewer/EditScreenDialog.vue",t="d3f8c54f293d64211b7ed3ecbc828654957ddcd7",n=new Function("return this")(),i="__coverage__",a={path:"/openc3/plugins/packages/openc3-tool-tlmviewer/src/tools/TlmViewer/EditScreenDialog.vue",statementMap:{0:{start:{line:1,column:13},end:{line:2,column:1}},1:{start:{line:1,column:39},end:{line:1,column:43}},2:{start:{line:1,column:47},end:{line:1,column:59}},3:{start:{line:1,column:60},end:{line:1,column:2295}},4:{start:{line:1,column:154},end:{line:1,column:166}},5:{start:{line:1,column:349},end:{line:1,column:522}},6:{start:{line:1,column:816},end:{line:1,column:995}},7:{start:{line:1,column:1510},end:{line:1,column:1522}},8:{start:{line:1,column:1718},end:{line:1,column:1845}},9:{start:{line:1,column:2047},end:{line:1,column:2073}},10:{start:{line:1,column:2216},end:{line:1,column:2256}},11:{start:{line:3,column:22},end:{line:3,column:24}}},fnMap:{0:{name:"render",decl:{start:{line:1,column:22},end:{line:1,column:28}},loc:{start:{line:1,column:30},end:{line:2,column:1}},line:1},1:{name:"(anonymous_1)",decl:{start:{line:1,column:138},end:{line:1,column:139}},loc:{start:{line:1,column:153},end:{line:1,column:167}},line:1},2:{name:"(anonymous_2)",decl:{start:{line:1,column:325},end:{line:1,column:326}},loc:{start:{line:1,column:348},end:{line:1,column:523}},line:1},3:{name:"(anonymous_3)",decl:{start:{line:1,column:792},end:{line:1,column:793}},loc:{start:{line:1,column:815},end:{line:1,column:996}},line:1},4:{name:"(anonymous_4)",decl:{start:{line:1,column:1494},end:{line:1,column:1495}},loc:{start:{line:1,column:1509},end:{line:1,column:1523}},line:1},5:{name:"(anonymous_5)",decl:{start:{line:1,column:1696},end:{line:1,column:1697}},loc:{start:{line:1,column:1717},end:{line:1,column:1846}},line:1},6:{name:"(anonymous_6)",decl:{start:{line:1,column:2030},end:{line:1,column:2031}},loc:{start:{line:1,column:2046},end:{line:1,column:2074}},line:1},7:{name:"(anonymous_7)",decl:{start:{line:1,column:2199},end:{line:1,column:2200}},loc:{start:{line:1,column:2215},end:{line:1,column:2257}},line:1}},branchMap:{},s:{0:0,1:0,2:0,3:0,4:0,5:0,6:0,7:0,8:0,9:0,10:0,11:0},f:{0:0,1:0,2:0,3:0,4:0,5:0,6:0,7:0},b:{},_coverageSchema:"1a1c01bbd47fc00a2c39e90264f33305004495a9",hash:"d3f8c54f293d64211b7ed3ecbc828654957ddcd7"},s=n[i]||(n[i]={});s[e]&&s[e].hash===t||(s[e]=a);var l=s[e];return I=function(){return l},l}I(),I().s[0]++;var E=function(){I().f[0]++;var e=(I().s[1]++,this),t=(I().s[2]++,e._self._c);return I().s[3]++,t("v-dialog",{attrs:{width:"75vw"},model:{value:e.show,callback:function(t){I().f[1]++,I().s[4]++,e.show=t},expression:"show"}},[t("v-card",[t("v-system-bar",[t("div",{staticClass:"mx-2"},[t("v-tooltip",{attrs:{top:""},scopedSlots:e._u([{key:"activator",fn:function(n){var i=n.on,a=n.attrs;return I().f[2]++,I().s[5]++,[t("div",e._g(e._b({},"div",a,!1),i),[t("v-icon",{attrs:{"data-test":"delete-screen-icon"},on:{click:e.deleteScreen}},[e._v(" mdi-delete ")])],1)]}}])},[t("span",[e._v(" Delete Screen ")])])],1),t("v-spacer"),t("span",[e._v(" Edit Screen: "+e._s(e.target)+" "+e._s(e.screen)+" ")]),t("v-spacer"),t("div",{staticClass:"mx-2"},[t("v-tooltip",{attrs:{top:""},scopedSlots:e._u([{key:"activator",fn:function(n){var i=n.on,a=n.attrs;return I().f[3]++,I().s[6]++,[t("div",e._g(e._b({},"div",a,!1),i),[t("v-icon",{attrs:{"data-test":"download-screen-icon"},on:{click:e.downloadScreen}},[e._v(" mdi-download ")])],1)]}}])},[t("span",[e._v(" Download Screen ")])])],1)],1),t("v-card-text",[t("v-row",{staticClass:"mt-3"},[e._v(" Upload a screen file. ")]),t("v-row",{attrs:{"no-gutters":"",align:"center"}},[t("v-btn",{staticClass:"mr-3",attrs:{disabled:!e.file,color:"primary","data-test":"edit-screen-load"},on:{click:e.loadFile}},[e._v(" Load ")]),t("v-file-input",{attrs:{"truncate-length":"15",accept:".txt",label:"Click to select .txt screen file."},model:{value:e.file,callback:function(t){I().f[4]++,I().s[7]++,e.file=t},expression:"file"}})],1),t("v-row",[e._v(" Edit the screen definition. ")]),t("v-row",{staticClass:"mb-2"},[t("pre",{attrs:{id:"editor"}})]),e._l(e.editErrors,(function(n,i){return I().f[5]++,I().s[8]++,t("v-row",{key:i,staticClass:"my-3"},[t("span",{staticClass:"red--text",domProps:{textContent:e._s(n)}})])})),t("v-row",[t("span",[e._v("Ctrl-space brings up autocomplete")]),t("v-spacer"),t("v-btn",{staticClass:"mx-2",attrs:{outlined:"","data-test":"edit-screen-cancel"},on:{click:function(t){return I().f[6]++,I().s[9]++,e.$emit("cancel")}}},[e._v(" Cancel ")]),t("v-btn",{staticClass:"mx-2",attrs:{color:"primary","data-test":"edit-screen-save"},on:{click:function(t){I().f[7]++,I().s[10]++,e.$emit("save",e.editor.getValue())}}},[e._v(" Save ")])],1)],2)],1)],1)},N=(I().s[11]++,[]),M=(n(17368),n(24471),n(51172),n(88233),n(14121),n(60523),n(95095)),D=(n(71747),n(40419),n(83923),n(72375),n(16812)),L=n(14567),O=n(26274);function Z(){var e="/openc3/plugins/packages/openc3-tool-tlmviewer/src/tools/TlmViewer/autocomplete/screenCompleter.js",t="a8f1042529052558d5381094e03a56f257297e57",n=new Function("return this")(),i="__coverage__",a={path:"/openc3/plugins/packages/openc3-tool-tlmviewer/src/tools/TlmViewer/autocomplete/screenCompleter.js",statementMap:{0:{start:{line:24,column:4},end:{line:26,column:5}},1:{start:{line:25,column:21},end:{line:25,column:58}},2:{start:{line:28,column:19},end:{line:30,column:3}},3:{start:{line:29,column:4},end:{line:29,column:46}}},fnMap:{0:{name:"(anonymous_0)",decl:{start:{line:23,column:2},end:{line:23,column:3}},loc:{start:{line:23,column:16},end:{line:27,column:3}},line:23},1:{name:"(anonymous_1)",decl:{start:{line:25,column:6},end:{line:25,column:7}},loc:{start:{line:25,column:21},end:{line:25,column:58}},line:25},2:{name:"(anonymous_2)",decl:{start:{line:28,column:19},end:{line:28,column:20}},loc:{start:{line:28,column:74},end:{line:30,column:3}},line:28}},branchMap:{},s:{0:0,1:0,2:0,3:0},f:{0:0,1:0,2:0},b:{},_coverageSchema:"1a1c01bbd47fc00a2c39e90264f33305004495a9",hash:"a8f1042529052558d5381094e03a56f257297e57"},s=n[i]||(n[i]={});s[e]&&s[e].hash===t||(s[e]=a);var l=s[e];return Z=function(){return l},l}Z();var W=(0,D.Z)((function e(){var t=this;(0,L.Z)(this,e),(0,O.Z)(this,"getCompletions",(Z().s[2]++,function(e,t,n,a,s){Z().f[2]++,Z().s[3]++,s(null,(0,i.Z)(this.autocompleteData))})),Z().f[0]++,Z().s[0]++,u.Z.get("/openc3-api/autocomplete/data/screen").then((function(e){return Z().f[1]++,Z().s[1]++,t.autocompleteData=e.data}))}));function V(){var e="/openc3/plugins/packages/openc3-tool-tlmviewer/src/tools/TlmViewer/autocomplete/index.js",t="b4e8a2f8a5ebfed456c84887f4e1eb738da81700",n=new Function("return this")(),i="__coverage__",a={path:"/openc3/plugins/packages/openc3-tool-tlmviewer/src/tools/TlmViewer/autocomplete/index.js",statementMap:{},fnMap:{},branchMap:{},s:{},f:{},b:{},_coverageSchema:"1a1c01bbd47fc00a2c39e90264f33305004495a9",hash:"b4e8a2f8a5ebfed456c84887f4e1eb738da81700"},s=n[i]||(n[i]={});s[e]&&s[e].hash===t||(s[e]=a);var l=s[e];return V=function(){return l},l}function R(){var e="/openc3/plugins/packages/openc3-tool-tlmviewer/src/tools/TlmViewer/EditScreenDialog.vue",t="96ee9046f907adea8883da7f6f38841624505d04",n=new Function("return this")(),i="__coverage__",a={path:"/openc3/plugins/packages/openc3-tool-tlmviewer/src/tools/TlmViewer/EditScreenDialog.vue",statementMap:{0:{start:{line:26,column:21},end:{line:26,column:23}},1:{start:{line:30,column:21},end:{line:30,column:23}},2:{start:{line:34,column:4},end:{line:36,column:5}},3:{start:{line:40,column:6},end:{line:42,column:7}},4:{start:{line:41,column:8},end:{line:41,column:42}},5:{start:{line:43,column:6},end:{line:58,column:7}},6:{start:{line:44,column:23},end:{line:44,column:32}},7:{start:{line:45,column:21},end:{line:45,column:23}},8:{start:{line:46,column:8},end:{line:56,column:9}},9:{start:{line:47,column:10},end:{line:49,column:11}},10:{start:{line:48,column:12},end:{line:48,column:20}},11:{start:{line:50,column:20},end:{line:50,column:79}},12:{start:{line:51,column:10},end:{line:53,column:11}},13:{start:{line:52,column:12},end:{line:52,column:43}},14:{start:{line:54,column:10},end:{line:54,column:26}},15:{start:{line:55,column:10},end:{line:55,column:37}},16:{start:{line:57,column:8},end:{line:57,column:21}},17:{start:{line:59,column:6},end:{line:59,column:15}},18:{start:{line:63,column:8},end:{line:63,column:25}},19:{start:{line:66,column:8},end:{line:66,column:34}},20:{start:{line:71,column:4},end:{line:71,column:36}},21:{start:{line:72,column:4},end:{line:72,column:46}},22:{start:{line:73,column:23},end:{line:73,column:45}},23:{start:{line:74,column:4},end:{line:74,column:49}},24:{start:{line:75,column:4},end:{line:75,column:37}},25:{start:{line:76,column:4},end:{line:76,column:44}},26:{start:{line:77,column:4},end:{line:77,column:42}},27:{start:{line:78,column:4},end:{line:78,column:60}},28:{start:{line:79,column:4},end:{line:79,column:59}},29:{start:{line:80,column:4},end:{line:80,column:52}},30:{start:{line:81,column:4},end:{line:81,column:45}},31:{start:{line:82,column:4},end:{line:82,column:41}},32:{start:{line:83,column:4},end:{line:83,column:32}},33:{start:{line:84,column:4},end:{line:84,column:23}},34:{start:{line:87,column:4},end:{line:87,column:25}},35:{start:{line:88,column:4},end:{line:88,column:34}},36:{start:{line:92,column:16},end:{line:92,column:42}},37:{start:{line:93,column:31},end:{line:95,column:26}},38:{start:{line:97,column:17},end:{line:97,column:40}},39:{start:{line:98,column:33},end:{line:124,column:7}},40:{start:{line:99,column:8},end:{line:122,column:9}},41:{start:{line:123,column:8},end:{line:123,column:29}},42:{start:{line:125,column:6},end:{line:125,column:60}},43:{start:{line:126,column:17},end:{line:128,column:7}},44:{start:{line:127,column:8},end:{line:127,column:50}},45:{start:{line:129,column:21},end:{line:129,column:54}},46:{start:{line:130,column:6},end:{line:131,column:7}},47:{start:{line:131,column:7},end:{line:133,column:29}},48:{start:{line:132,column:8},end:{line:132,column:36}},49:{start:{line:134,column:6},end:{line:134,column:17}},50:{start:{line:137,column:19},end:{line:139,column:8}},51:{start:{line:141,column:19},end:{line:141,column:46}},52:{start:{line:142,column:6},end:{line:142,column:43}},53:{start:{line:143,column:6},end:{line:143,column:72}},54:{start:{line:144,column:6},end:{line:144,column:18}},55:{start:{line:147,column:25},end:{line:147,column:41}},56:{start:{line:148,column:6},end:{line:148,column:38}},57:{start:{line:149,column:19},end:{line:149,column:23}},58:{start:{line:150,column:6},end:{line:153,column:7}},59:{start:{line:151,column:8},end:{line:151,column:47}},60:{start:{line:152,column:8},end:{line:152,column:24}},61:{start:{line:156,column:6},end:{line:163,column:10}},62:{start:{line:162,column:10},end:{line:162,column:30}}},fnMap:{0:{name:"(anonymous_0)",decl:{start:{line:26,column:15},end:{line:26,column:16}},loc:{start:{line:26,column:21},end:{line:26,column:23}},line:26},1:{name:"(anonymous_1)",decl:{start:{line:30,column:15},end:{line:30,column:16}},loc:{start:{line:30,column:21},end:{line:30,column:23}},line:30},2:{name:"(anonymous_2)",decl:{start:{line:33,column:2},end:{line:33,column:3}},loc:{start:{line:33,column:9},end:{line:37,column:3}},line:33},3:{name:"(anonymous_3)",decl:{start:{line:39,column:16},end:{line:39,column:17}},loc:{start:{line:39,column:28},end:{line:60,column:5}},line:39},4:{name:"(anonymous_4)",decl:{start:{line:62,column:6},end:{line:62,column:7}},loc:{start:{line:62,column:12},end:{line:64,column:7}},line:62},5:{name:"(anonymous_5)",decl:{start:{line:65,column:6},end:{line:65,column:7}},loc:{start:{line:65,column:17},end:{line:67,column:7}},line:65},6:{name:"(anonymous_6)",decl:{start:{line:70,column:11},end:{line:70,column:12}},loc:{start:{line:70,column:23},end:{line:85,column:3}},line:70},7:{name:"(anonymous_7)",decl:{start:{line:86,column:2},end:{line:86,column:3}},loc:{start:{line:86,column:18},end:{line:89,column:3}},line:86},8:{name:"(anonymous_8)",decl:{start:{line:91,column:4},end:{line:91,column:5}},loc:{start:{line:91,column:22},end:{line:135,column:5}},line:91},9:{name:"(anonymous_9)",decl:{start:{line:98,column:33},end:{line:98,column:34}},loc:{start:{line:98,column:45},end:{line:124,column:7}},line:98},10:{name:"(anonymous_10)",decl:{start:{line:126,column:17},end:{line:126,column:18}},loc:{start:{line:126,column:29},end:{line:128,column:7}},line:126},11:{name:"(anonymous_11)",decl:{start:{line:131,column:8},end:{line:131,column:9}},loc:{start:{line:131,column:20},end:{line:133,column:7}},line:131},12:{name:"(anonymous_12)",decl:{start:{line:136,column:20},end:{line:136,column:21}},loc:{start:{line:136,column:32},end:{line:145,column:5}},line:136},13:{name:"(anonymous_13)",decl:{start:{line:146,column:14},end:{line:146,column:15}},loc:{start:{line:146,column:26},end:{line:154,column:5}},line:146},14:{name:"(anonymous_14)",decl:{start:{line:150,column:26},end:{line:150,column:27}},loc:{start:{line:150,column:38},end:{line:153,column:7}},line:150},15:{name:"(anonymous_15)",decl:{start:{line:155,column:18},end:{line:155,column:19}},loc:{start:{line:155,column:30},end:{line:164,column:5}},line:155},16:{name:"(anonymous_16)",decl:{start:{line:161,column:14},end:{line:161,column:15}},loc:{start:{line:161,column:26},end:{line:163,column:9}},line:161}},branchMap:{0:{loc:{start:{line:40,column:6},end:{line:42,column:7}},type:"if",locations:[{start:{line:40,column:6},end:{line:42,column:7}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:40},1:{loc:{start:{line:40,column:10},end:{line:40,column:46}},type:"binary-expr",locations:[{start:{line:40,column:10},end:{line:40,column:32}},{start:{line:40,column:36},end:{line:40,column:46}}],line:40},2:{loc:{start:{line:43,column:6},end:{line:58,column:7}},type:"if",locations:[{start:{line:43,column:6},end:{line:58,column:7}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:43},3:{loc:{start:{line:47,column:10},end:{line:49,column:11}},type:"if",locations:[{start:{line:47,column:10},end:{line:49,column:11}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:47},4:{loc:{start:{line:51,column:10},end:{line:53,column:11}},type:"if",locations:[{start:{line:51,column:10},end:{line:53,column:11}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:51}},s:{0:0,1:0,2:0,3:0,4:0,5:0,6:0,7:0,8:0,9:0,10:0,11:0,12:0,13:0,14:0,15:0,16:0,17:0,18:0,19:0,20:0,21:0,22:0,23:0,24:0,25:0,26:0,27:0,28:0,29:0,30:0,31:0,32:0,33:0,34:0,35:0,36:0,37:0,38:0,39:0,40:0,41:0,42:0,43:0,44:0,45:0,46:0,47:0,48:0,49:0,50:0,51:0,52:0,53:0,54:0,55:0,56:0,57:0,58:0,59:0,60:0,61:0,62:0},f:{0:0,1:0,2:0,3:0,4:0,5:0,6:0,7:0,8:0,9:0,10:0,11:0,12:0,13:0,14:0,15:0,16:0},b:{0:[0,0],1:[0,0],2:[0,0],3:[0,0],4:[0,0]},inputSourceMap:{version:3,sources:["EditScreenDialog.vue"],names:[],mappings:";AAuGA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA",file:"EditScreenDialog.vue",sourceRoot:"src/tools/TlmViewer",sourcesContent:['\x3c!--\n# Copyright 2022 OpenC3, Inc.\n# All Rights Reserved.\n#\n# This program is free software; you can modify and/or redistribute it\n# under the terms of the GNU Affero General Public License\n# as published by the Free Software Foundation; version 3 with\n# attribution addendums as found in the LICENSE.txt\n#\n# This program is distributed in the hope that it will be useful,\n# but WITHOUT ANY WARRANTY; without even the implied warranty of\n# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n# GNU Affero General Public License for more details.\n--\x3e\n\n<template>\n \x3c!-- Edit dialog --\x3e\n <v-dialog v-model="show" width="75vw">\n <v-card>\n <v-system-bar>\n <div class="mx-2">\n <v-tooltip top>\n <template v-slot:activator="{ on, attrs }">\n <div v-on="on" v-bind="attrs">\n <v-icon data-test="delete-screen-icon" @click="deleteScreen">\n mdi-delete\n </v-icon>\n </div>\n </template>\n <span> Delete Screen </span>\n </v-tooltip>\n </div>\n <v-spacer />\n <span> Edit Screen: {{ target }} {{ screen }} </span>\n <v-spacer />\n <div class="mx-2">\n <v-tooltip top>\n <template v-slot:activator="{ on, attrs }">\n <div v-on="on" v-bind="attrs">\n <v-icon\n data-test="download-screen-icon"\n @click="downloadScreen"\n >\n mdi-download\n </v-icon>\n </div>\n </template>\n <span> Download Screen </span>\n </v-tooltip>\n </div>\n </v-system-bar>\n <v-card-text>\n <v-row class="mt-3"> Upload a screen file. </v-row>\n <v-row no-gutters align="center">\n <v-btn\n @click="loadFile"\n :disabled="!file"\n color="primary"\n class="mr-3"\n data-test="edit-screen-load"\n >\n Load\n </v-btn>\n <v-file-input\n v-model="file"\n truncate-length="15"\n accept=".txt"\n label="Click to select .txt screen file."\n />\n </v-row>\n <v-row> Edit the screen definition. </v-row>\n <v-row class="mb-2">\n <pre id="editor"></pre>\n </v-row>\n <v-row v-for="(error, index) in editErrors" :key="index" class="my-3">\n <span class="red--text" v-text="error"></span>\n </v-row>\n <v-row>\n <span>Ctrl-space brings up autocomplete</span>\n <v-spacer />\n <v-btn\n @click="$emit(\'cancel\')"\n class="mx-2"\n outlined\n data-test="edit-screen-cancel"\n >\n Cancel\n </v-btn>\n <v-btn\n @click="$emit(\'save\', editor.getValue())"\n class="mx-2"\n color="primary"\n data-test="edit-screen-save"\n >\n Save\n </v-btn>\n </v-row>\n </v-card-text>\n </v-card>\n </v-dialog>\n</template>\n\n<script>\nimport * as ace from \'ace-builds\'\nimport \'ace-builds/src-min-noconflict/mode-text\'\nimport \'ace-builds/src-min-noconflict/theme-twilight\'\nimport \'ace-builds/src-min-noconflict/ext-language_tools\'\nimport \'ace-builds/src-min-noconflict/ext-searchbox\'\nimport { ScreenCompleter } from \'@/tools/TlmViewer/autocomplete\'\n\nexport default {\n props: {\n value: Boolean, // value is the default prop when using v-model\n target: {\n type: String,\n default: \'\',\n },\n screen: {\n type: String,\n default: \'\',\n },\n definition: {\n type: String,\n default: \'\',\n },\n keywords: {\n type: Array,\n default: () => [],\n },\n errors: {\n type: Array,\n default: () => [],\n },\n },\n data() {\n return {\n file: null,\n }\n },\n computed: {\n editErrors: function () {\n if (this.definition === \'\' && !this.file) {\n return [\'Input can not be blank.\']\n }\n if (this.errors.length !== 0) {\n let messages = new Set()\n let result = []\n for (const error of this.errors) {\n if (messages.has(error.message)) {\n continue\n }\n let msg = `At ${error.lineNumber}: (${error.line}) ${error.message}.`\n if (error.usage) {\n msg += ` Usage: ${error.usage}`\n }\n result.push(msg)\n messages.add(error.message)\n }\n return result\n }\n return []\n },\n show: {\n get() {\n return this.value\n },\n set(value) {\n this.$emit(\'input\', value) // input is the default event when using v-model\n },\n },\n },\n mounted: function () {\n this.editor = ace.edit(\'editor\')\n this.editor.setTheme(\'ace/theme/twilight\')\n const screenMode = this.buildScreenMode()\n this.editor.session.setMode(new screenMode())\n this.editor.session.setTabSize(2)\n this.editor.session.setUseWrapMode(true)\n this.editor.$blockScrolling = Infinity\n this.editor.setOption(\'enableBasicAutocompletion\', true)\n this.editor.setOption(\'enableLiveAutocompletion\', true)\n this.editor.completers = [new ScreenCompleter()]\n this.editor.setHighlightActiveLine(false)\n this.editor.setValue(this.definition)\n this.editor.clearSelection()\n this.editor.focus()\n },\n beforeDestroy() {\n this.editor.destroy()\n this.editor.container.remove()\n },\n methods: {\n buildScreenMode() {\n var oop = ace.require(\'ace/lib/oop\')\n var TextHighlightRules = ace.require(\n \'ace/mode/text_highlight_rules\'\n ).TextHighlightRules\n\n let list = this.keywords.join(\'|\')\n var OpenC3HighlightRules = function () {\n this.$rules = {\n start: [\n {\n token: \'comment\',\n regex: \'#.*$\',\n },\n {\n token: \'string\',\n regex: \'".*?"\',\n },\n {\n token: \'string\',\n regex: "\'.*?\'",\n },\n {\n token: \'constant.numeric\',\n regex: \'\\\\b\\\\d+(?:\\\\.\\\\d+)?\\\\b\',\n },\n {\n token: \'keyword\',\n regex: new RegExp(`^\\\\s*(${list})\\\\b`),\n },\n ],\n }\n this.normalizeRules()\n }\n oop.inherits(OpenC3HighlightRules, TextHighlightRules)\n var Mode = function () {\n this.HighlightRules = OpenC3HighlightRules\n }\n var TextMode = ace.require(\'ace/mode/text\').Mode\n oop.inherits(Mode, TextMode)\n ;(function () {\n this.$id = \'ace/mode/openc3\'\n }.call(Mode.prototype))\n return Mode\n },\n downloadScreen: function () {\n const blob = new Blob([this.editor.getValue()], {\n type: \'text/plain\',\n })\n // Make a link and then \'click\' on it to start the download\n const link = document.createElement(\'a\')\n link.href = URL.createObjectURL(blob)\n link.setAttribute(\'download\', `${this.target}_${this.screen}.txt`)\n link.click()\n },\n loadFile: function () {\n const fileReader = new FileReader()\n fileReader.readAsText(this.file)\n const that = this\n fileReader.onload = function () {\n that.editor.setValue(fileReader.result)\n that.file = null\n }\n },\n deleteScreen: function () {\n this.$dialog\n .confirm(`Are you sure you want to delete this screen?!`, {\n okText: \'Delete\',\n cancelText: \'Cancel\',\n })\n .then((dialog) => {\n this.$emit(\'delete\')\n })\n },\n },\n}\n<\/script>\n\n<style>\n.ace_autocomplete {\n width: 60vw !important;\n}\n</style>\n<style scoped>\n#editor {\n height: 50vh;\n width: 75vw;\n font-size: 16px;\n}\n.v-card {\n background-color: var(--v-tertiary-darken2);\n}\n.v-textarea :deep(textarea) {\n padding: 5px;\n background-color: var(--v-tertiary-darken1) !important;\n}\n</style>\n']},_coverageSchema:"1a1c01bbd47fc00a2c39e90264f33305004495a9",hash:"96ee9046f907adea8883da7f6f38841624505d04"},s=n[i]||(n[i]={});s[e]&&s[e].hash===t||(s[e]=a);var l=s[e];return R=function(){return l},l}V(),R();var P={props:{value:Boolean,target:{type:String,default:""},screen:{type:String,default:""},definition:{type:String,default:""},keywords:{type:Array,default:function(){return R().f[0]++,R().s[0]++,[]}},errors:{type:Array,default:function(){return R().f[1]++,R().s[1]++,[]}}},data:function(){return R().f[2]++,R().s[2]++,{file:null}},computed:{editErrors:function(){if(R().f[3]++,R().s[3]++,R().b[1][0]++,""===this.definition&&(R().b[1][1]++,!this.file))return R().b[0][0]++,R().s[4]++,["Input can not be blank."];if(R().b[0][1]++,R().s[5]++,0!==this.errors.length){R().b[2][0]++;var e=(R().s[6]++,new Set),t=(R().s[7]++,[]);R().s[8]++;var n,i=(0,c.Z)(this.errors);try{for(i.s();!(n=i.n()).done;){var a=n.value;if(R().s[9]++,e.has(a.message))R().b[3][0]++,R().s[10]++;else{R().b[3][1]++;var s=(R().s[11]++,"At ".concat(a.lineNumber,": (").concat(a.line,") ").concat(a.message,"."));R().s[12]++,a.usage?(R().b[4][0]++,R().s[13]++,s+=" Usage: ".concat(a.usage)):R().b[4][1]++,R().s[14]++,t.push(s),R().s[15]++,e.add(a.message)}}}catch(l){i.e(l)}finally{i.f()}return R().s[16]++,t}return R().b[2][1]++,R().s[17]++,[]},show:{get:function(){return R().f[4]++,R().s[18]++,this.value},set:function(e){R().f[5]++,R().s[19]++,this.$emit("input",e)}}},mounted:function(){R().f[6]++,R().s[20]++,this.editor=M.edit("editor"),R().s[21]++,this.editor.setTheme("ace/theme/twilight");var e=(R().s[22]++,this.buildScreenMode());R().s[23]++,this.editor.session.setMode(new e),R().s[24]++,this.editor.session.setTabSize(2),R().s[25]++,this.editor.session.setUseWrapMode(!0),R().s[26]++,this.editor.$blockScrolling=1/0,R().s[27]++,this.editor.setOption("enableBasicAutocompletion",!0),R().s[28]++,this.editor.setOption("enableLiveAutocompletion",!0),R().s[29]++,this.editor.completers=[new W],R().s[30]++,this.editor.setHighlightActiveLine(!1),R().s[31]++,this.editor.setValue(this.definition),R().s[32]++,this.editor.clearSelection(),R().s[33]++,this.editor.focus()},beforeDestroy:function(){R().f[7]++,R().s[34]++,this.editor.destroy(),R().s[35]++,this.editor.container.remove()},methods:{buildScreenMode:function(){R().f[8]++;var e=(R().s[36]++,M.require("ace/lib/oop")),t=(R().s[37]++,M.require("ace/mode/text_highlight_rules").TextHighlightRules),n=(R().s[38]++,this.keywords.join("|"));R().s[39]++;var i=function(){R().f[9]++,R().s[40]++,this.$rules={start:[{token:"comment",regex:"#.*$"},{token:"string",regex:'".*?"'},{token:"string",regex:"'.*?'"},{token:"constant.numeric",regex:"\\b\\d+(?:\\.\\d+)?\\b"},{token:"keyword",regex:new RegExp("^\\s*(".concat(n,")\\b"))}]},R().s[41]++,this.normalizeRules()};R().s[42]++,e.inherits(i,t),R().s[43]++;var a=function(){R().f[10]++,R().s[44]++,this.HighlightRules=i},s=(R().s[45]++,M.require("ace/mode/text").Mode);return R().s[46]++,e.inherits(a,s),R().s[47]++,function(){R().f[11]++,R().s[48]++,this.$id="ace/mode/openc3"}.call(a.prototype),R().s[49]++,a},downloadScreen:function(){R().f[12]++;var e=(R().s[50]++,new Blob([this.editor.getValue()],{type:"text/plain"})),t=(R().s[51]++,document.createElement("a"));R().s[52]++,t.href=URL.createObjectURL(e),R().s[53]++,t.setAttribute("download","".concat(this.target,"_").concat(this.screen,".txt")),R().s[54]++,t.click()},loadFile:function(){R().f[13]++;var e=(R().s[55]++,new FileReader);R().s[56]++,e.readAsText(this.file);var t=(R().s[57]++,this);R().s[58]++,e.onload=function(){R().f[14]++,R().s[59]++,t.editor.setValue(e.result),R().s[60]++,t.file=null}},deleteScreen:function(){var e=this;R().f[15]++,R().s[61]++,this.$dialog.confirm("Are you sure you want to delete this screen?!",{okText:"Delete",cancelText:"Cancel"}).then((function(t){R().f[16]++,R().s[62]++,e.$emit("delete")}))}}},H=P,$=(n(33622),n(3651),(0,f.Z)(H,E,N,!1,null,"71483854",null)),z=$.exports;function U(){var e="/openc3/plugins/packages/openc3-tool-tlmviewer/src/tools/TlmViewer/Openc3Screen.vue",t="e9950ea410296cdbbbbfa0ed91a518afba91d04b",n=new Function("return this")(),i="__coverage__",a={path:"/openc3/plugins/packages/openc3-tool-tlmviewer/src/tools/TlmViewer/Openc3Screen.vue",statementMap:{0:{start:{line:11,column:25},end:{line:18,column:1}},1:{start:{line:20,column:0},end:{line:41,column:2}},2:{start:{line:22,column:26},end:{line:22,column:52}},3:{start:{line:24,column:24},end:{line:32,column:3}},4:{start:{line:34,column:2},end:{line:40,column:3}},5:{start:{line:62,column:21},end:{line:62,column:23}},6:{start:{line:66,column:4},end:{line:89,column:5}},7:{start:{line:93,column:6},end:{line:105,column:7}},8:{start:{line:94,column:23},end:{line:94,column:32}},9:{start:{line:95,column:21},end:{line:95,column:23}},10:{start:{line:96,column:8},end:{line:103,column:9}},11:{start:{line:97,column:10},end:{line:99,column:11}},12:{start:{line:98,column:12},end:{line:98,column:20}},13:{start:{line:100,column:20},end:{line:100,column:71}},14:{start:{line:101,column:10},end:{line:101,column:23}},15:{start:{line:102,column:10},end:{line:102,column:37}},16:{start:{line:104,column:8},end:{line:104,column:21}},17:{start:{line:106,column:6},end:{line:106,column:17}},18:{start:{line:113,column:4},end:{line:128,column:5}},19:{start:{line:114,column:6},end:{line:121,column:8}},20:{start:{line:123,column:6},end:{line:127,column:8}},21:{start:{line:129,column:4},end:{line:129,column:16}},22:{start:{line:132,column:4},end:{line:132,column:30}},23:{start:{line:133,column:4},end:{line:133,column:49}},24:{start:{line:134,column:4},end:{line:134,column:26}},25:{start:{line:135,column:4},end:{line:135,column:56}},26:{start:{line:138,column:26},end:{line:138,column:51}},27:{start:{line:139,column:4},end:{line:141,column:23}},28:{start:{line:140,column:6},end:{line:140,column:19}},29:{start:{line:144,column:4},end:{line:147,column:5}},30:{start:{line:145,column:6},end:{line:145,column:33}},31:{start:{line:146,column:6},end:{line:146,column:25}},32:{start:{line:151,column:6},end:{line:151,column:22}},33:{start:{line:155,column:6},end:{line:155,column:22}},34:{start:{line:156,column:6},end:{line:156,column:28}},35:{start:{line:157,column:6},end:{line:157,column:27}},36:{start:{line:158,column:6},end:{line:158,column:30}},37:{start:{line:160,column:6},end:{line:164,column:8}},38:{start:{line:165,column:6},end:{line:165,column:72}},39:{start:{line:167,column:6},end:{line:216,column:7}},40:{start:{line:173,column:10},end:{line:214,column:11}},41:{start:{line:174,column:12},end:{line:213,column:13}},42:{start:{line:176,column:16},end:{line:180,column:17}},43:{start:{line:181,column:16},end:{line:181,column:52}},44:{start:{line:182,column:16},end:{line:182,column:53}},45:{start:{line:183,column:16},end:{line:183,column:62}},46:{start:{line:184,column:16},end:{line:188,column:17}},47:{start:{line:185,column:18},end:{line:185,column:35}},48:{start:{line:187,column:18},end:{line:187,column:36}},49:{start:{line:189,column:16},end:{line:189,column:21}},50:{start:{line:191,column:16},end:{line:191,column:75}},51:{start:{line:192,column:16},end:{line:192,column:38}},52:{start:{line:193,column:16},end:{line:194,column:63}},53:{start:{line:195,column:16},end:{line:195,column:21}},54:{start:{line:199,column:18},end:{line:201,column:41}},55:{start:{line:202,column:16},end:{line:202,column:48}},56:{start:{line:203,column:16},end:{line:203,column:21}},57:{start:{line:205,column:16},end:{line:205,column:52}},58:{start:{line:206,column:16},end:{line:206,column:21}},59:{start:{line:208,column:16},end:{line:208,column:55}},60:{start:{line:209,column:16},end:{line:209,column:21}},61:{start:{line:211,column:16},end:{line:211,column:73}},62:{start:{line:212,column:16},end:{line:212,column:21}},63:{start:{line:218,column:6},end:{line:241,column:7}},64:{start:{line:219,column:20},end:{line:219,column:22}},65:{start:{line:220,column:20},end:{line:220,column:22}},66:{start:{line:221,column:8},end:{line:224,column:9}},67:{start:{line:222,column:10},end:{line:222,column:33}},68:{start:{line:223,column:10},end:{line:223,column:39}},69:{start:{line:226,column:8},end:{line:231,column:10}},70:{start:{line:234,column:8},end:{line:238,column:9}},71:{start:{line:240,column:8},end:{line:240,column:61}},72:{start:{line:246,column:6},end:{line:246,column:36}},73:{start:{line:250,column:6},end:{line:250,column:38}},74:{start:{line:253,column:6},end:{line:269,column:7}},75:{start:{line:257,column:8},end:{line:268,column:12}},76:{start:{line:260,column:12},end:{line:260,column:61}},77:{start:{line:263,column:12},end:{line:267,column:14}},78:{start:{line:273,column:6},end:{line:273,column:52}},79:{start:{line:274,column:6},end:{line:274,column:28}},80:{start:{line:277,column:6},end:{line:277,column:22}},81:{start:{line:278,column:6},end:{line:278,column:29}},82:{start:{line:280,column:6},end:{line:280,column:42}},83:{start:{line:281,column:6},end:{line:281,column:28}},84:{start:{line:283,column:6},end:{line:283,column:58}},85:{start:{line:285,column:6},end:{line:287,column:8}},86:{start:{line:286,column:8},end:{line:286,column:26}},87:{start:{line:290,column:6},end:{line:290,column:41}},88:{start:{line:291,column:6},end:{line:291,column:28}},89:{start:{line:293,column:6},end:{line:293,column:58}},90:{start:{line:295,column:6},end:{line:305,column:8}},91:{start:{line:296,column:8},end:{line:303,column:10}},92:{start:{line:304,column:8},end:{line:304,column:31}},93:{start:{line:308,column:6},end:{line:308,column:29}},94:{start:{line:309,column:6},end:{line:313,column:7}},95:{start:{line:311,column:10},end:{line:311,column:37}},96:{start:{line:316,column:6},end:{line:316,column:32}},97:{start:{line:317,column:6},end:{line:317,column:34}},98:{start:{line:320,column:23},end:{line:320,column:27}},99:{start:{line:321,column:6},end:{line:330,column:7}},100:{start:{line:322,column:8},end:{line:326,column:9}},101:{start:{line:327,column:8},end:{line:327,column:48}},102:{start:{line:328,column:8},end:{line:328,column:45}},103:{start:{line:329,column:8},end:{line:329,column:59}},104:{start:{line:332,column:8},end:{line:334,column:16}},105:{start:{line:335,column:21},end:{line:335,column:23}},106:{start:{line:336,column:6},end:{line:341,column:7}},107:{start:{line:340,column:8},end:{line:340,column:57}},108:{start:{line:343,column:6},end:{line:389,column:7}},109:{start:{line:353,column:23},end:{line:358,column:9}},110:{start:{line:359,column:8},end:{line:359,column:37}},111:{start:{line:360,column:8},end:{line:360,column:47}},112:{start:{line:361,column:8},end:{line:361,column:35}},113:{start:{line:364,column:8},end:{line:366,column:9}},114:{start:{line:365,column:10},end:{line:365,column:41}},115:{start:{line:367,column:8},end:{line:388,column:9}},116:{start:{line:368,column:10},end:{line:375,column:12}},117:{start:{line:377,column:23},end:{line:385,column:11}},118:{start:{line:386,column:10},end:{line:386,column:49}},119:{start:{line:387,column:10},end:{line:387,column:42}},120:{start:{line:392,column:6},end:{line:407,column:8}},121:{start:{line:393,column:8},end:{line:406,column:10}},122:{start:{line:396,column:10},end:{line:401,column:11}},123:{start:{line:400,column:12},end:{line:400,column:50}},124:{start:{line:403,column:10},end:{line:405,column:11}},125:{start:{line:404,column:12},end:{line:404,column:52}}},fnMap:{0:{name:"(anonymous_0)",decl:{start:{line:20,column:32},end:{line:20,column:33}},loc:{start:{line:20,column:46},end:{line:41,column:1}},line:20},1:{name:"(anonymous_1)",decl:{start:{line:62,column:15},end:{line:62,column:16}},loc:{start:{line:62,column:21},end:{line:62,column:23}},line:62},2:{name:"(anonymous_2)",decl:{start:{line:65,column:2},end:{line:65,column:3}},loc:{start:{line:65,column:9},end:{line:90,column:3}},line:65},3:{name:"(anonymous_3)",decl:{start:{line:92,column:11},end:{line:92,column:12}},loc:{start:{line:92,column:23},end:{line:107,column:5}},line:92},4:{name:"(anonymous_4)",decl:{start:{line:112,column:2},end:{line:112,column:3}},loc:{start:{line:112,column:31},end:{line:130,column:3}},line:112},5:{name:"(anonymous_5)",decl:{start:{line:131,column:2},end:{line:131,column:3}},loc:{start:{line:131,column:12},end:{line:136,column:3}},line:131},6:{name:"(anonymous_6)",decl:{start:{line:137,column:2},end:{line:137,column:3}},loc:{start:{line:137,column:12},end:{line:142,column:3}},line:137},7:{name:"(anonymous_7)",decl:{start:{line:139,column:31},end:{line:139,column:32}},loc:{start:{line:139,column:37},end:{line:141,column:5}},line:139},8:{name:"(anonymous_8)",decl:{start:{line:143,column:2},end:{line:143,column:3}},loc:{start:{line:143,column:14},end:{line:148,column:3}},line:143},9:{name:"(anonymous_9)",decl:{start:{line:150,column:17},end:{line:150,column:18}},loc:{start:{line:150,column:29},end:{line:152,column:5}},line:150},10:{name:"(anonymous_10)",decl:{start:{line:153,column:21},end:{line:153,column:22}},loc:{start:{line:153,column:33},end:{line:242,column:5}},line:153},11:{name:"(anonymous_11)",decl:{start:{line:172,column:8},end:{line:172,column:9}},loc:{start:{line:172,column:51},end:{line:215,column:9}},line:172},12:{name:"(anonymous_12)",decl:{start:{line:245,column:22},end:{line:245,column:23}},loc:{start:{line:245,column:38},end:{line:247,column:5}},line:245},13:{name:"(anonymous_13)",decl:{start:{line:249,column:20},end:{line:249,column:21}},loc:{start:{line:249,column:44},end:{line:251,column:5}},line:249},14:{name:"(anonymous_14)",decl:{start:{line:252,column:12},end:{line:252,column:13}},loc:{start:{line:252,column:24},end:{line:270,column:5}},line:252},15:{name:"(anonymous_15)",decl:{start:{line:259,column:16},end:{line:259,column:17}},loc:{start:{line:259,column:26},end:{line:261,column:11}},line:259},16:{name:"(anonymous_16)",decl:{start:{line:262,column:17},end:{line:262,column:18}},loc:{start:{line:262,column:28},end:{line:268,column:11}},line:262},17:{name:"(anonymous_17)",decl:{start:{line:271,column:14},end:{line:271,column:15}},loc:{start:{line:271,column:26},end:{line:275,column:5}},line:271},18:{name:"(anonymous_18)",decl:{start:{line:276,column:16},end:{line:276,column:17}},loc:{start:{line:276,column:28},end:{line:288,column:5}},line:276},19:{name:"(anonymous_19)",decl:{start:{line:285,column:21},end:{line:285,column:22}},loc:{start:{line:285,column:33},end:{line:287,column:7}},line:285},20:{name:"(anonymous_20)",decl:{start:{line:289,column:14},end:{line:289,column:15}},loc:{start:{line:289,column:36},end:{line:306,column:5}},line:289},21:{name:"(anonymous_21)",decl:{start:{line:295,column:21},end:{line:295,column:22}},loc:{start:{line:295,column:33},end:{line:305,column:7}},line:295},22:{name:"(anonymous_22)",decl:{start:{line:307,column:18},end:{line:307,column:19}},loc:{start:{line:307,column:30},end:{line:314,column:5}},line:307},23:{name:"(anonymous_23)",decl:{start:{line:310,column:8},end:{line:310,column:9}},loc:{start:{line:310,column:22},end:{line:312,column:9}},line:310},24:{name:"(anonymous_24)",decl:{start:{line:315,column:22},end:{line:315,column:23}},loc:{start:{line:315,column:34},end:{line:318,column:5}},line:315},25:{name:"(anonymous_25)",decl:{start:{line:319,column:19},end:{line:319,column:20}},loc:{start:{line:319,column:68},end:{line:390,column:5}},line:319},26:{name:"(anonymous_26)",decl:{start:{line:391,column:25},end:{line:391,column:26}},loc:{start:{line:391,column:44},end:{line:408,column:5}},line:391},27:{name:"(anonymous_27)",decl:{start:{line:392,column:34},end:{line:392,column:35}},loc:{start:{line:392,column:47},end:{line:407,column:7}},line:392},28:{name:"(anonymous_28)",decl:{start:{line:393,column:24},end:{line:393,column:25}},loc:{start:{line:393,column:36},end:{line:406,column:9}},line:393}},branchMap:{0:{loc:{start:{line:39,column:4},end:{line:39,column:46}},type:"binary-expr",locations:[{start:{line:39,column:4},end:{line:39,column:27}},{start:{line:39,column:31},end:{line:39,column:46}}],line:39},1:{loc:{start:{line:93,column:6},end:{line:105,column:7}},type:"if",locations:[{start:{line:93,column:6},end:{line:105,column:7}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:93},2:{loc:{start:{line:93,column:10},end:{line:93,column:52}},type:"binary-expr",locations:[{start:{line:93,column:10},end:{line:93,column:26}},{start:{line:93,column:30},end:{line:93,column:52}}],line:93},3:{loc:{start:{line:97,column:10},end:{line:99,column:11}},type:"if",locations:[{start:{line:97,column:10},end:{line:99,column:11}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:97},4:{loc:{start:{line:113,column:4},end:{line:128,column:5}},type:"if",locations:[{start:{line:113,column:4},end:{line:128,column:5}},{start:{line:122,column:11},end:{line:128,column:5}}],line:113},5:{loc:{start:{line:144,column:4},end:{line:147,column:5}},type:"if",locations:[{start:{line:144,column:4},end:{line:147,column:5}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:144},6:{loc:{start:{line:173,column:10},end:{line:214,column:11}},type:"if",locations:[{start:{line:173,column:10},end:{line:214,column:11}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:173},7:{loc:{start:{line:174,column:12},end:{line:213,column:13}},type:"switch",locations:[{start:{line:175,column:14},end:{line:189,column:21}},{start:{line:190,column:14},end:{line:195,column:21}},{start:{line:196,column:14},end:{line:196,column:29}},{start:{line:197,column:14},end:{line:203,column:21}},{start:{line:204,column:14},end:{line:206,column:21}},{start:{line:207,column:14},end:{line:209,column:21}},{start:{line:210,column:14},end:{line:212,column:21}}],line:174},8:{loc:{start:{line:184,column:16},end:{line:188,column:17}},type:"if",locations:[{start:{line:184,column:16},end:{line:188,column:17}},{start:{line:186,column:23},end:{line:188,column:17}}],line:184},9:{loc:{start:{line:199,column:18},end:{line:201,column:41}},type:"binary-expr",locations:[{start:{line:199,column:18},end:{line:201,column:19}},{start:{line:201,column:23},end:{line:201,column:41}}],line:199},10:{loc:{start:{line:218,column:6},end:{line:241,column:7}},type:"if",locations:[{start:{line:218,column:6},end:{line:241,column:7}},{start:{line:239,column:13},end:{line:241,column:7}}],line:218},11:{loc:{start:{line:253,column:6},end:{line:269,column:7}},type:"if",locations:[{start:{line:253,column:6},end:{line:269,column:7}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:253},12:{loc:{start:{line:254,column:8},end:{line:255,column:32}},type:"binary-expr",locations:[{start:{line:254,column:8},end:{line:254,column:53}},{start:{line:255,column:8},end:{line:255,column:32}}],line:254},13:{loc:{start:{line:321,column:6},end:{line:330,column:7}},type:"if",locations:[{start:{line:321,column:6},end:{line:330,column:7}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:321},14:{loc:{start:{line:336,column:6},end:{line:341,column:7}},type:"if",locations:[{start:{line:336,column:6},end:{line:341,column:7}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:336},15:{loc:{start:{line:343,column:6},end:{line:389,column:7}},type:"if",locations:[{start:{line:343,column:6},end:{line:389,column:7}},{start:{line:362,column:13},end:{line:389,column:7}}],line:343},16:{loc:{start:{line:344,column:8},end:{line:351,column:34}},type:"binary-expr",locations:[{start:{line:344,column:8},end:{line:344,column:36}},{start:{line:345,column:8},end:{line:345,column:38}},{start:{line:346,column:8},end:{line:346,column:37}},{start:{line:347,column:8},end:{line:347,column:29}},{start:{line:348,column:8},end:{line:348,column:29}},{start:{line:349,column:8},end:{line:349,column:28}},{start:{line:350,column:8},end:{line:350,column:32}},{start:{line:351,column:8},end:{line:351,column:34}}],line:344},17:{loc:{start:{line:364,column:8},end:{line:366,column:9}},type:"if",locations:[{start:{line:364,column:8},end:{line:366,column:9}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:364},18:{loc:{start:{line:367,column:8},end:{line:388,column:9}},type:"if",locations:[{start:{line:367,column:8},end:{line:388,column:9}},{start:{line:376,column:15},end:{line:388,column:9}}],line:367},19:{loc:{start:{line:396,column:10},end:{line:401,column:11}},type:"if",locations:[{start:{line:396,column:10},end:{line:401,column:11}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:396},20:{loc:{start:{line:403,column:10},end:{line:405,column:11}},type:"if",locations:[{start:{line:403,column:10},end:{line:405,column:11}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:403}},s:{0:0,1:0,2:0,3:0,4:0,5:0,6:0,7:0,8:0,9:0,10:0,11:0,12:0,13:0,14:0,15:0,16:0,17:0,18:0,19:0,20:0,21:0,22:0,23:0,24:0,25:0,26:0,27:0,28:0,29:0,30:0,31:0,32:0,33:0,34:0,35:0,36:0,37:0,38:0,39:0,40:0,41:0,42:0,43:0,44:0,45:0,46:0,47:0,48:0,49:0,50:0,51:0,52:0,53:0,54:0,55:0,56:0,57:0,58:0,59:0,60:0,61:0,62:0,63:0,64:0,65:0,66:0,67:0,68:0,69:0,70:0,71:0,72:0,73:0,74:0,75:0,76:0,77:0,78:0,79:0,80:0,81:0,82:0,83:0,84:0,85:0,86:0,87:0,88:0,89:0,90:0,91:0,92:0,93:0,94:0,95:0,96:0,97:0,98:0,99:0,100:0,101:0,102:0,103:0,104:0,105:0,106:0,107:0,108:0,109:0,110:0,111:0,112:0,113:0,114:0,115:0,116:0,117:0,118:0,119:0,120:0,121:0,122:0,123:0,124:0,125:0},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},b:{0:[0,0],1:[0,0],2:[0,0],3:[0,0],4:[0,0],5:[0,0],6:[0,0],7:[0,0,0,0,0,0,0],8:[0,0],9:[0,0],10:[0,0],11:[0,0],12:[0,0],13:[0,0],14:[0,0],15:[0,0],16:[0,0,0,0,0,0,0,0],17:[0,0],18:[0,0],19:[0,0],20:[0,0]},inputSourceMap:{version:3,sources:["Openc3Screen.vue"],names:[],mappings:";AAkIA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA",file:"Openc3Screen.vue",sourceRoot:"src/tools/TlmViewer",sourcesContent:["\x3c!--\n# Copyright 2022 Ball Aerospace & Technologies Corp.\n# All Rights Reserved.\n#\n# This program is free software; you can modify and/or redistribute it\n# under the terms of the GNU Affero General Public License\n# as published by the Free Software Foundation; version 3 with\n# attribution addendums as found in the LICENSE.txt\n#\n# This program is distributed in the hope that it will be useful,\n# but WITHOUT ANY WARRANTY; without even the implied warranty of\n# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n# GNU Affero General Public License for more details.\n\n# Modified by OpenC3, Inc.\n# All changes Copyright 2022, OpenC3, Inc.\n# All Rights Reserved\n--\x3e\n\n<template>\n <div>\n <v-card>\n <v-system-bar>\n <div v-show=\"errors.length !== 0\">\n <v-tooltip top>\n <template v-slot:activator=\"{ on, attrs }\">\n <div v-on=\"on\" v-bind=\"attrs\">\n <v-icon\n data-test=\"error-graph-icon\"\n @click=\"errorDialog = true\"\n >\n mdi-alert\n </v-icon>\n </div>\n </template>\n <span> Errors </span>\n </v-tooltip>\n </div>\n <v-spacer />\n <span>{{ target }} {{ screen }}</span>\n <v-spacer />\n <v-tooltip top>\n <template v-slot:activator=\"{ on, attrs }\">\n <div v-on=\"on\" v-bind=\"attrs\">\n <v-icon data-test=\"edit-screen-icon\" @click=\"openEdit\">\n mdi-pencil\n </v-icon>\n </div>\n </template>\n <span> Edit Screen </span>\n </v-tooltip>\n <v-tooltip top>\n <template v-slot:activator=\"{ on, attrs }\">\n <div v-on=\"on\" v-bind=\"attrs\">\n <v-icon\n data-test=\"minimize-screen-icon\"\n @click=\"minMaxTransition\"\n v-show=\"expand\"\n >\n mdi-window-minimize\n </v-icon>\n <v-icon\n data-test=\"maximize-screen-icon\"\n @click=\"minMaxTransition\"\n v-show=\"!expand\"\n >\n mdi-window-maximize\n </v-icon>\n </div>\n </template>\n <span v-show=\"expand\"> Minimize Screen </span>\n <span v-show=\"!expand\"> Maximize Screen </span>\n </v-tooltip>\n <v-tooltip top>\n <template v-slot:activator=\"{ on, attrs }\">\n <div v-on=\"on\" v-bind=\"attrs\">\n <v-icon\n data-test=\"close-screen-icon\"\n @click=\"$emit('close-screen')\"\n >\n mdi-close-box\n </v-icon>\n </div>\n </template>\n <span> Close Screen </span>\n </v-tooltip>\n </v-system-bar>\n <v-expand-transition>\n <div class=\"pa-1\" ref=\"screen\" v-show=\"expand\">\n <vertical-widget\n :key=\"screenKey\"\n :widgets=\"layoutStack[0].widgets\"\n v-on=\"$listeners\"\n />\n </div>\n </v-expand-transition>\n </v-card>\n <edit-screen-dialog\n v-if=\"editDialog\"\n v-model=\"editDialog\"\n :target=\"target\"\n :screen=\"screen\"\n :definition=\"currentDefinition\"\n :keywords=\"keywords\"\n :errors=\"errors\"\n @save=\"saveEdit($event)\"\n @cancel=\"cancelEdit()\"\n @delete=\"deleteScreen()\"\n />\n\n \x3c!-- Error dialog --\x3e\n <v-dialog v-model=\"errorDialog\" max-width=\"600\">\n <v-system-bar>\n <v-spacer />\n <span> Screen: {{ target }} {{ screen }} Errors </span>\n <v-spacer />\n </v-system-bar>\n <v-card class=\"pa-3\">\n <v-row class=\"my-3\">\n <v-textarea readonly rows=\"13\" :value=\"error\" />\n </v-row>\n <v-row>\n <v-btn block @click=\"clearErrors\"> Clear </v-btn>\n </v-row>\n </v-card>\n </v-dialog>\n </div>\n</template>\n\n<script>\nimport Api from '@openc3/tool-common/src/services/api'\nimport { ConfigParserService } from '@openc3/tool-common/src/services/config-parser'\nimport { OpenC3Api } from '@openc3/tool-common/src/services/openc3-api'\nimport Vue from 'vue'\nimport upperFirst from 'lodash/upperFirst'\nimport camelCase from 'lodash/camelCase'\nimport EditScreenDialog from '@/tools/TlmViewer/EditScreenDialog'\n\n// Globally register all XxxWidget.vue components\nconst requireComponent = require.context(\n // The relative path of the components folder\n '@openc3/tool-common/src/components/widgets',\n // Whether or not to look in subfolders\n false,\n // The regular expression used to match base component filenames\n /[A-Z]\\w+Widget\\.vue$/\n)\n\nrequireComponent.keys().forEach((filename) => {\n // Get component config\n const componentConfig = requireComponent(filename)\n // Get PascalCase name of component\n const componentName = upperFirst(\n camelCase(\n // Gets the filename regardless of folder depth\n filename\n .split('/')\n .pop()\n .replace(/\\.\\w+$/, '')\n )\n )\n // Register component globally\n Vue.component(\n componentName,\n // Look for the component options on `.default`, which will\n // exist if the component was exported with `export default`,\n // otherwise fall back to module's root.\n componentConfig.default || componentConfig\n )\n})\n\nexport default {\n components: {\n EditScreenDialog,\n },\n props: {\n target: {\n type: String,\n default: '',\n },\n screen: {\n type: String,\n default: '',\n },\n definition: {\n type: String,\n default: '',\n },\n keywords: {\n type: Array,\n default: () => [],\n },\n },\n data() {\n return {\n api: null,\n backup: '',\n currentDefinition: this.definition,\n editDialog: false,\n expand: true,\n configParser: null,\n currentLayout: null,\n layoutStack: [],\n namedWidgets: {},\n dynamicWidgets: [],\n width: null,\n height: null,\n fixed: null,\n globalSettings: [],\n globalSubsettings: [],\n substitute: false,\n original_target_name: null,\n force_substitute: false,\n pollingPeriod: 1,\n errors: [],\n errorDialog: false,\n screenKey: null,\n }\n },\n computed: {\n error: function () {\n if (this.errorDialog && this.errors.length > 0) {\n let messages = new Set()\n let result = ''\n for (const error of this.errors) {\n if (messages.has(error.message)) {\n continue\n }\n let msg = `${error.time}: (${error.type}) ${error.message}\\n`\n result += msg\n messages.add(error.message)\n }\n return result\n }\n return null\n },\n },\n // Called when an error from any descendent component is captured\n // We need this because an error can occur from any of the children\n // in the widget stack and are typically thrown on create()\n errorCaptured(err, vm, info) {\n if (err.usage) {\n this.errors.push({\n type: 'usage',\n message: err.message,\n usage: err.usage,\n line: err.line,\n lineNumber: err.lineNumber,\n time: new Date().getTime(),\n })\n } else {\n this.errors.push({\n type: 'error',\n message: `${err}`,\n time: new Date().getTime(),\n })\n }\n return false\n },\n created() {\n this.api = new OpenC3Api()\n this.configParser = new ConfigParserService()\n this.parseDefinition()\n this.screenKey = Math.floor(Math.random() * 1000000)\n },\n mounted() {\n let refreshInterval = this.pollingPeriod * 1000\n this.updater = setInterval(() => {\n this.update()\n }, refreshInterval)\n },\n destroyed() {\n if (this.updater != null) {\n clearInterval(this.updater)\n this.updater = null\n }\n },\n methods: {\n clearErrors: function () {\n this.errors = []\n },\n parseDefinition: function () {\n // Each time we start over and parse the screen definition\n this.errors = []\n this.namedWidgets = {}\n this.layoutStack = []\n this.dynamicWidgets = []\n // Every screen starts with a VerticalWidget\n this.layoutStack.push({\n type: 'VerticalWidget',\n parameters: [],\n widgets: [],\n })\n this.currentLayout = this.layoutStack[this.layoutStack.length - 1]\n\n this.configParser.parse_string(\n this.currentDefinition,\n '',\n false,\n true,\n (keyword, parameters, line, lineNumber) => {\n if (keyword) {\n switch (keyword) {\n case 'SCREEN':\n this.configParser.verify_num_parameters(\n 3,\n 4,\n `${keyword} <Width or AUTO> <Height or AUTO> <Polling Period> <FIXED>`\n )\n this.width = parseInt(parameters[0])\n this.height = parseInt(parameters[1])\n this.pollingPeriod = parseFloat(parameters[2])\n if (parameters.length === 4) {\n this.fixed = true\n } else {\n this.fixed = false\n }\n break\n case 'END':\n this.configParser.verify_num_parameters(0, 0, `${keyword}`)\n this.layoutStack.pop()\n this.currentLayout =\n this.layoutStack[this.layoutStack.length - 1]\n break\n case 'SETTING':\n case 'SUBSETTING':\n const widget =\n this.currentLayout.widgets[\n this.currentLayout.widgets.length - 1\n ] ?? this.currentLayout\n widget.settings.push(parameters)\n break\n case 'GLOBAL_SETTING':\n this.globalSettings.push(parameters)\n break\n case 'GLOBAL_SUBSETTING':\n this.globalSubsettings.push(parameters)\n break\n default:\n this.processWidget(keyword, parameters, line, lineNumber)\n break\n } // switch keyword\n } // if keyword\n }\n )\n // This can happen if there is a typo in a layout widget with a corresponding END\n if (typeof this.layoutStack[0] === 'undefined') {\n let names = []\n let lines = []\n for (const widget of this.dynamicWidgets) {\n names.push(widget.name)\n lines.push(widget.lineNumber)\n }\n // Warn about any of the Dynamic widgets we found .. they could be typos\n this.errors.push({\n type: 'usage',\n message: `Unknown widget! Are these widgets: ${names.join(',')}?`,\n lineNumber: lines.join(','),\n time: new Date().getTime(),\n })\n // Create a simple VerticalWidget to replace the bad widget so\n // the layout stack can successfully unwind\n this.layoutStack[0] = {\n type: 'VerticalWidget',\n parameters: [],\n widgets: [],\n }\n } else {\n this.applyGlobalSettings(this.layoutStack[0].widgets)\n }\n },\n // Called by button scripts to get named widgets\n // Underscores used to match OpenC3 API rather than Javascript convention\n get_named_widget: function (name) {\n return this.namedWidgets[name]\n },\n // Called by named widgets to register with the screen\n setNamedWidget: function (name, widget) {\n this.namedWidgets[name] = widget\n },\n update: function () {\n if (\n this.$store.state.tlmViewerItems.length !== 0 &&\n this.errors.length === 0\n ) {\n this.api\n .get_tlm_values(this.$store.state.tlmViewerItems)\n .then((data) => {\n this.$store.commit('tlmViewerUpdateValues', data)\n })\n .catch((error) => {\n this.errors.push({\n type: 'usage',\n message: error.message,\n time: new Date().getTime(),\n })\n })\n }\n },\n openEdit: function () {\n // Make a copy in case they edit and cancel\n this.backup = this.currentDefinition.repeat(1)\n this.editDialog = true\n },\n cancelEdit: function () {\n this.file = null\n this.editDialog = false\n // Restore the backup since we cancelled\n this.currentDefinition = this.backup\n this.parseDefinition()\n // Force re-render\n this.screenKey = Math.floor(Math.random() * 1000000)\n // After re-render clear any errors\n this.$nextTick(function () {\n this.clearErrors()\n })\n },\n saveEdit: function (definition) {\n this.currentDefinition = definition\n this.parseDefinition()\n // Force re-render\n this.screenKey = Math.floor(Math.random() * 1000000)\n // After re-render wait and see if there are errors before saving\n this.$nextTick(function () {\n Api.post('/openc3-api/screen/', {\n data: {\n scope: window.openc3Scope,\n target: this.target,\n screen: this.screen,\n text: this.currentDefinition,\n },\n })\n this.editDialog = false\n })\n },\n deleteScreen: function () {\n this.editDialog = false\n Api.delete(`/openc3-api/screen/${this.target}/${this.screen}`).then(\n (response) => {\n this.$emit('delete-screen')\n }\n )\n },\n minMaxTransition: function () {\n this.expand = !this.expand\n this.$emit('min-max-screen')\n },\n processWidget: function (keyword, parameters, line, lineNumber) {\n var widgetName = null\n if (keyword === 'NAMED_WIDGET') {\n this.configParser.verify_num_parameters(\n 2,\n null,\n `${keyword} <Widget Name> <Widget Type> <Widget Settings... (optional)>`\n )\n widgetName = parameters[0].toUpperCase()\n keyword = parameters[1].toUpperCase()\n parameters = parameters.slice(2, parameters.length)\n }\n const componentName =\n keyword.charAt(0).toUpperCase() +\n keyword.slice(1).toLowerCase() +\n 'Widget'\n let settings = []\n if (widgetName !== null) {\n // Push a reference to the screen so the layout can register when it is created\n // We do this because the widget isn't actually created until\n // the layout happens with <component :is='type'>\n settings.push(['NAMED_WIDGET', widgetName, this])\n }\n // If this is a layout widget we add it to the layoutStack and reset the currentLayout\n if (\n keyword.includes('VERTICAL') ||\n keyword.includes('HORIZONTAL') ||\n keyword === 'MATRIXBYCOLUMNS' ||\n keyword === 'TABBOOK' ||\n keyword === 'TABITEM' ||\n keyword === 'CANVAS' ||\n keyword === 'RADIOGROUP' ||\n keyword === 'SCROLLWINDOW'\n ) {\n const layout = {\n type: componentName,\n parameters: parameters,\n settings: settings,\n widgets: [],\n }\n this.layoutStack.push(layout)\n this.currentLayout.widgets.push(layout)\n this.currentLayout = layout\n } else {\n // Buttons require a reference to the screen to call get_named_widget\n if (keyword.includes('BUTTON')) {\n settings.push(['SCREEN', this])\n }\n if (Vue.options.components[componentName]) {\n this.currentLayout.widgets.push({\n type: componentName,\n target: this.target,\n parameters: parameters,\n settings: settings,\n line: line,\n lineNumber: lineNumber,\n })\n } else {\n let widget = {\n type: 'DynamicWidget',\n target: this.target,\n parameters: parameters,\n settings: settings,\n name: componentName,\n line: line,\n lineNumber: lineNumber,\n }\n this.currentLayout.widgets.push(widget)\n this.dynamicWidgets.push(widget)\n }\n }\n },\n applyGlobalSettings: function (widgets) {\n this.globalSettings.forEach((setting) => {\n widgets.forEach((widget) => {\n // widget.type is already the full camelcase widget name like LabelWidget\n // so we have to lower case both and tack on 'widget' to compare\n if (\n widget.type.toLowerCase() ===\n setting[0].toLowerCase() + 'widget'\n ) {\n widget.settings.push(setting.slice(1))\n }\n // Recursively apply to all widgets contained in layouts\n if (widget.widgets) {\n this.applyGlobalSettings(widget.widgets)\n }\n })\n })\n },\n },\n}\n<\/script>\n\n<style scoped>\n.v-card {\n background-color: var(--v-tertiary-darken2);\n}\n.v-textarea :deep(textarea) {\n padding: 5px;\n background-color: var(--v-tertiary-darken1) !important;\n}\n</style>\n"]},_coverageSchema:"1a1c01bbd47fc00a2c39e90264f33305004495a9",hash:"e9950ea410296cdbbbbfa0ed91a518afba91d04b"},s=n[i]||(n[i]={});s[e]&&s[e].hash===t||(s[e]=a);var l=s[e];return U=function(){return l},l}U();var G=(U().s[0]++,n(15507));U().s[1]++,G.keys().forEach((function(e){U().f[0]++;var t=(U().s[2]++,G(e)),n=(U().s[3]++,k()(T()(e.split("/").pop().replace(/\.\w+$/,""))));U().s[4]++,b["default"].component(n,(U().b[0][0]++,t.default||(U().b[0][1]++,t)))}));var B={components:{EditScreenDialog:z},props:{target:{type:String,default:""},screen:{type:String,default:""},definition:{type:String,default:""},keywords:{type:Array,default:function(){return U().f[1]++,U().s[5]++,[]}}},data:function(){return U().f[2]++,U().s[6]++,{api:null,backup:"",currentDefinition:this.definition,editDialog:!1,expand:!0,configParser:null,currentLayout:null,layoutStack:[],namedWidgets:{},dynamicWidgets:[],width:null,height:null,fixed:null,globalSettings:[],globalSubsettings:[],substitute:!1,original_target_name:null,force_substitute:!1,pollingPeriod:1,errors:[],errorDialog:!1,screenKey:null}},computed:{error:function(){if(U().f[3]++,U().s[7]++,U().b[2][0]++,this.errorDialog&&(U().b[2][1]++,this.errors.length>0)){U().b[1][0]++;var e=(U().s[8]++,new Set),t=(U().s[9]++,"");U().s[10]++;var n,i=(0,c.Z)(this.errors);try{for(i.s();!(n=i.n()).done;){var a=n.value;if(U().s[11]++,e.has(a.message))U().b[3][0]++,U().s[12]++;else{U().b[3][1]++;var s=(U().s[13]++,"".concat(a.time,": (").concat(a.type,") ").concat(a.message,"\n"));U().s[14]++,t+=s,U().s[15]++,e.add(a.message)}}}catch(l){i.e(l)}finally{i.f()}return U().s[16]++,t}return U().b[1][1]++,U().s[17]++,null}},errorCaptured:function(e,t,n){return U().f[4]++,U().s[18]++,e.usage?(U().b[4][0]++,U().s[19]++,this.errors.push({type:"usage",message:e.message,usage:e.usage,line:e.line,lineNumber:e.lineNumber,time:(new Date).getTime()})):(U().b[4][1]++,U().s[20]++,this.errors.push({type:"error",message:"".concat(e),time:(new Date).getTime()})),U().s[21]++,!1},created:function(){U().f[5]++,U().s[22]++,this.api=new d.k,U().s[23]++,this.configParser=new y.p,U().s[24]++,this.parseDefinition(),U().s[25]++,this.screenKey=Math.floor(1e6*Math.random())},mounted:function(){var e=this;U().f[6]++;var t=(U().s[26]++,1e3*this.pollingPeriod);U().s[27]++,this.updater=setInterval((function(){U().f[7]++,U().s[28]++,e.update()}),t)},destroyed:function(){U().f[8]++,U().s[29]++,null!=this.updater?(U().b[5][0]++,U().s[30]++,clearInterval(this.updater),U().s[31]++,this.updater=null):U().b[5][1]++},methods:{clearErrors:function(){U().f[9]++,U().s[32]++,this.errors=[]},parseDefinition:function(){var e=this;if(U().f[10]++,U().s[33]++,this.errors=[],U().s[34]++,this.namedWidgets={},U().s[35]++,this.layoutStack=[],U().s[36]++,this.dynamicWidgets=[],U().s[37]++,this.layoutStack.push({type:"VerticalWidget",parameters:[],widgets:[]}),U().s[38]++,this.currentLayout=this.layoutStack[this.layoutStack.length-1],U().s[39]++,this.configParser.parse_string(this.currentDefinition,"",!1,!0,(function(t,n,i,a){var s;if(U().f[11]++,U().s[40]++,t)switch(U().b[6][0]++,U().s[41]++,t){case"SCREEN":U().b[7][0]++,U().s[42]++,e.configParser.verify_num_parameters(3,4,"".concat(t," <Width or AUTO> <Height or AUTO> <Polling Period> <FIXED>")),U().s[43]++,e.width=parseInt(n[0]),U().s[44]++,e.height=parseInt(n[1]),U().s[45]++,e.pollingPeriod=parseFloat(n[2]),U().s[46]++,4===n.length?(U().b[8][0]++,U().s[47]++,e.fixed=!0):(U().b[8][1]++,U().s[48]++,e.fixed=!1),U().s[49]++;break;case"END":U().b[7][1]++,U().s[50]++,e.configParser.verify_num_parameters(0,0,"".concat(t)),U().s[51]++,e.layoutStack.pop(),U().s[52]++,e.currentLayout=e.layoutStack[e.layoutStack.length-1],U().s[53]++;break;case"SETTING":U().b[7][2]++;case"SUBSETTING":U().b[7][3]++;var l=(U().s[54]++,null!==(U().b[9][0]++,s=e.currentLayout.widgets[e.currentLayout.widgets.length-1])&&void 0!==s?s:(U().b[9][1]++,e.currentLayout));U().s[55]++,l.settings.push(n),U().s[56]++;break;case"GLOBAL_SETTING":U().b[7][4]++,U().s[57]++,e.globalSettings.push(n),U().s[58]++;break;case"GLOBAL_SUBSETTING":U().b[7][5]++,U().s[59]++,e.globalSubsettings.push(n),U().s[60]++;break;default:U().b[7][6]++,U().s[61]++,e.processWidget(t,n,i,a),U().s[62]++;break}else U().b[6][1]++})),U().s[63]++,"undefined"===typeof this.layoutStack[0]){U().b[10][0]++;var t=(U().s[64]++,[]),n=(U().s[65]++,[]);U().s[66]++;var i,a=(0,c.Z)(this.dynamicWidgets);try{for(a.s();!(i=a.n()).done;){var s=i.value;U().s[67]++,t.push(s.name),U().s[68]++,n.push(s.lineNumber)}}catch(l){a.e(l)}finally{a.f()}U().s[69]++,this.errors.push({type:"usage",message:"Unknown widget! Are these widgets: ".concat(t.join(","),"?"),lineNumber:n.join(","),time:(new Date).getTime()}),U().s[70]++,this.layoutStack[0]={type:"VerticalWidget",parameters:[],widgets:[]}}else U().b[10][1]++,U().s[71]++,this.applyGlobalSettings(this.layoutStack[0].widgets)},get_named_widget:function(e){return U().f[12]++,U().s[72]++,this.namedWidgets[e]},setNamedWidget:function(e,t){U().f[13]++,U().s[73]++,this.namedWidgets[e]=t},update:function(){var e=this;U().f[14]++,U().s[74]++,U().b[12][0]++,0!==this.$store.state.tlmViewerItems.length&&(U().b[12][1]++,0===this.errors.length)?(U().b[11][0]++,U().s[75]++,this.api.get_tlm_values(this.$store.state.tlmViewerItems).then((function(t){U().f[15]++,U().s[76]++,e.$store.commit("tlmViewerUpdateValues",t)})).catch((function(t){U().f[16]++,U().s[77]++,e.errors.push({type:"usage",message:t.message,time:(new Date).getTime()})}))):U().b[11][1]++},openEdit:function(){U().f[17]++,U().s[78]++,this.backup=this.currentDefinition.repeat(1),U().s[79]++,this.editDialog=!0},cancelEdit:function(){U().f[18]++,U().s[80]++,this.file=null,U().s[81]++,this.editDialog=!1,U().s[82]++,this.currentDefinition=this.backup,U().s[83]++,this.parseDefinition(),U().s[84]++,this.screenKey=Math.floor(1e6*Math.random()),U().s[85]++,this.$nextTick((function(){U().f[19]++,U().s[86]++,this.clearErrors()}))},saveEdit:function(e){U().f[20]++,U().s[87]++,this.currentDefinition=e,U().s[88]++,this.parseDefinition(),U().s[89]++,this.screenKey=Math.floor(1e6*Math.random()),U().s[90]++,this.$nextTick((function(){U().f[21]++,U().s[91]++,u.Z.post("/openc3-api/screen/",{data:{scope:window.openc3Scope,target:this.target,screen:this.screen,text:this.currentDefinition}}),U().s[92]++,this.editDialog=!1}))},deleteScreen:function(){var e=this;U().f[22]++,U().s[93]++,this.editDialog=!1,U().s[94]++,u.Z["delete"]("/openc3-api/screen/".concat(this.target,"/").concat(this.screen)).then((function(t){U().f[23]++,U().s[95]++,e.$emit("delete-screen")}))},minMaxTransition:function(){U().f[24]++,U().s[96]++,this.expand=!this.expand,U().s[97]++,this.$emit("min-max-screen")},processWidget:function(e,t,n,i){U().f[25]++;var a=(U().s[98]++,null);U().s[99]++,"NAMED_WIDGET"===e?(U().b[13][0]++,U().s[100]++,this.configParser.verify_num_parameters(2,null,"".concat(e," <Widget Name> <Widget Type> <Widget Settings... (optional)>")),U().s[101]++,a=t[0].toUpperCase(),U().s[102]++,e=t[1].toUpperCase(),U().s[103]++,t=t.slice(2,t.length)):U().b[13][1]++;var s=(U().s[104]++,e.charAt(0).toUpperCase()+e.slice(1).toLowerCase()+"Widget"),l=(U().s[105]++,[]);if(U().s[106]++,null!==a?(U().b[14][0]++,U().s[107]++,l.push(["NAMED_WIDGET",a,this])):U().b[14][1]++,U().s[108]++,U().b[16][0]++,e.includes("VERTICAL")||(U().b[16][1]++,e.includes("HORIZONTAL"))||(U().b[16][2]++,"MATRIXBYCOLUMNS"===e)||(U().b[16][3]++,"TABBOOK"===e)||(U().b[16][4]++,"TABITEM"===e)||(U().b[16][5]++,"CANVAS"===e)||(U().b[16][6]++,"RADIOGROUP"===e)||(U().b[16][7]++,"SCROLLWINDOW"===e)){U().b[15][0]++;var r=(U().s[109]++,{type:s,parameters:t,settings:l,widgets:[]});U().s[110]++,this.layoutStack.push(r),U().s[111]++,this.currentLayout.widgets.push(r),U().s[112]++,this.currentLayout=r}else if(U().b[15][1]++,U().s[113]++,e.includes("BUTTON")?(U().b[17][0]++,U().s[114]++,l.push(["SCREEN",this])):U().b[17][1]++,U().s[115]++,b["default"].options.components[s])U().b[18][0]++,U().s[116]++,this.currentLayout.widgets.push({type:s,target:this.target,parameters:t,settings:l,line:n,lineNumber:i});else{U().b[18][1]++;var o=(U().s[117]++,{type:"DynamicWidget",target:this.target,parameters:t,settings:l,name:s,line:n,lineNumber:i});U().s[118]++,this.currentLayout.widgets.push(o),U().s[119]++,this.dynamicWidgets.push(o)}},applyGlobalSettings:function(e){var t=this;U().f[26]++,U().s[120]++,this.globalSettings.forEach((function(n){U().f[27]++,U().s[121]++,e.forEach((function(e){U().f[28]++,U().s[122]++,e.type.toLowerCase()===n[0].toLowerCase()+"widget"?(U().b[19][0]++,U().s[123]++,e.settings.push(n.slice(1))):U().b[19][1]++,U().s[124]++,e.widgets?(U().b[20][0]++,U().s[125]++,t.applyGlobalSettings(e.widgets)):U().b[20][1]++}))}))}}},F=B,j=(n(57143),(0,f.Z)(F,w,C,!1,null,"551b42f2",null)),Y=j.exports;function K(){var e="/openc3/plugins/packages/openc3-tool-tlmviewer/src/tools/TlmViewer/NewScreenDialog.vue",t="33715215515d503d00ee674b45c3166d4ad458ce",n=new Function("return this")(),i="__coverage__",a={path:"/openc3/plugins/packages/openc3-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:1817}},4:{start:{line:1,column:153},end:{line:1,column:165}},5:{start:{line:1,column:388},end:{line:1,column:585}},6:{start:{line:1,column:532},end:{line:1,column:548}},7:{start:{line:1,column:806},end:{line:1,column:834}},8:{start:{line:1,column:1274},end:{line:1,column:1307}},9:{start:{line:1,column:1368},end:{line:1,column:1389}},10:{start:{line:1,column:1764},end:{line:1,column:1780}},11:{start:{line:3,column:22},end:{line:3,column:24}}},fnMap:{0:{name:"render",decl:{start:{line:1,column:22},end:{line:1,column:28}},loc:{start:{line:1,column:30},end:{line:2,column:1}},line:1},1:{name:"(anonymous_1)",decl:{start:{line:1,column:137},end:{line:1,column:138}},loc:{start:{line:1,column:152},end:{line:1,column:166}},line:1},2:{name:"(anonymous_2)",decl:{start:{line:1,column:364},end:{line:1,column:365}},loc:{start:{line:1,column:387},end:{line:1,column:586}},line:1},3:{name:"(anonymous_3)",decl:{start:{line:1,column:515},end:{line:1,column:516}},loc:{start:{line:1,column:531},end:{line:1,column:549}},line:1},4:{name:"(anonymous_4)",decl:{start:{line:1,column:790},end:{line:1,column:791}},loc:{start:{line:1,column:805},end:{line:1,column:835}},line:1},5:{name:"(anonymous_5)",decl:{start:{line:1,column:1257},end:{line:1,column:1258}},loc:{start:{line:1,column:1273},end:{line:1,column:1308}},line:1},6:{name:"(anonymous_6)",decl:{start:{line:1,column:1352},end:{line:1,column:1353}},loc:{start:{line:1,column:1367},end:{line:1,column:1390}},line:1},7:{name:"(anonymous_7)",decl:{start:{line:1,column:1747},end:{line:1,column:1748}},loc:{start:{line:1,column:1763},end:{line:1,column:1781}},line:1}},branchMap:{0:{loc:{start:{line:1,column:1421},end:{line:1,column:1559}},type:"cond-expr",locations:[{start:{line:1,column:1443},end:{line:1,column:1550}},{start:{line:1,column:1551},end:{line:1,column:1559}}],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},f:{0:0,1:0,2:0,3:0,4:0,5:0,6:0,7:0},b:{0:[0,0]},_coverageSchema:"1a1c01bbd47fc00a2c39e90264f33305004495a9",hash:"33715215515d503d00ee674b45c3166d4ad458ce"},s=n[i]||(n[i]={});s[e]&&s[e].hash===t||(s[e]=a);var l=s[e];return K=function(){return l},l}K(),K().s[0]++;var q=function(){K().f[0]++;var e=(K().s[1]++,this),t=(K().s[2]++,e._self._c);return K().s[3]++,t("v-dialog",{attrs:{width:"600"},model:{value:e.show,callback:function(t){K().f[1]++,K().s[4]++,e.show=t},expression:"show"}},[t("v-card",[t("v-system-bar",[t("v-spacer"),t("span",[e._v("Create New Screen")]),t("v-spacer"),t("v-tooltip",{attrs:{top:""},scopedSlots:e._u([{key:"activator",fn:function(n){var i=n.on,a=n.attrs;return K().f[2]++,K().s[5]++,[t("div",e._g(e._b({},"div",a,!1),i),[t("v-icon",{attrs:{"data-test":"new-screen-close-icon"},on:{click:function(t){K().f[3]++,K().s[6]++,e.show=!1}}},[e._v(" mdi-close-box ")])],1)]}}])},[t("span",[e._v("Close")])])],1),t("v-card-text",[t("div",{staticClass:"pa-3"},[t("v-alert",{attrs:{type:"error",dismissible:"",dense:""},model:{value:e.duplicateScreenAlert,callback:function(t){K().f[4]++,K().s[7]++,e.duplicateScreenAlert=t},expression:"duplicateScreenAlert"}},[e._v(" Screen "+e._s(e.newScreenName.toUpperCase())+" already exists! ")]),t("v-row",{staticClass:"pb-2"},[t("span",[e._v("Existing Screens: "+e._s(e.screens.join(", ")))])]),t("v-row",[t("v-text-field",{attrs:{flat:"",autofocus:"","solo-inverted":"","hide-details":"",clearable:"",label:"Screen Name (without .txt)","data-test":"new-screen-name"},on:{keyup:function(t){return K().f[5]++,K().s[8]++,e.newScreenKeyup(t)}},model:{value:e.newScreenName,callback:function(t){K().f[6]++,K().s[9]++,e.newScreenName=t},expression:"newScreenName"}}),e.newScreenSaving?(K().b[0][0]++,t("div",{staticClass:"pl-2"},[t("v-progress-circular",{attrs:{indeterminate:"",color:"primary"}})],1)):(K().b[0][1]++,e._e())],1)],1)]),t("v-divider"),t("v-card-actions",[t("v-btn",{attrs:{color:"primary",text:""},on:{click:e.saveNewScreen}},[e._v(" Ok ")]),t("v-btn",{attrs:{text:""},on:{click:function(t){K().f[7]++,K().s[10]++,e.show=!1}}},[e._v(" Cancel ")])],1)],1)],1)},X=(K().s[11]++,[]);function J(){var e="/openc3/plugins/packages/openc3-tool-tlmviewer/src/tools/TlmViewer/NewScreenDialog.vue",t="0bc7e492c8aab76554aba5890bcc5164934ac12c",n=new Function("return this")(),i="__coverage__",a={path:"/openc3/plugins/packages/openc3-tool-tlmviewer/src/tools/TlmViewer/NewScreenDialog.vue",statementMap:{0:{start:{line:7,column:21},end:{line:7,column:23}},1:{start:{line:11,column:4},end:{line:15,column:5}},2:{start:{line:18,column:4},end:{line:18,column:37}},3:{start:{line:19,column:4},end:{line:19,column:32}},4:{start:{line:24,column:8},end:{line:24,column:25}},5:{start:{line:27,column:8},end:{line:27,column:34}},6:{start:{line:33,column:6},end:{line:40,column:7}},7:{start:{line:34,column:8},end:{line:34,column:40}},8:{start:{line:36,column:8},end:{line:36,column:41}},9:{start:{line:37,column:8},end:{line:39,column:9}},10:{start:{line:38,column:10},end:{line:38,column:30}},11:{start:{line:43,column:6},end:{line:43,column:33}},12:{start:{line:44,column:6},end:{line:44,column:61}}},fnMap:{0:{name:"(anonymous_0)",decl:{start:{line:7,column:15},end:{line:7,column:16}},loc:{start:{line:7,column:21},end:{line:7,column:23}},line:7},1:{name:"(anonymous_1)",decl:{start:{line:10,column:2},end:{line:10,column:3}},loc:{start:{line:10,column:9},end:{line:16,column:3}},line:10},2:{name:"(anonymous_2)",decl:{start:{line:17,column:2},end:{line:17,column:3}},loc:{start:{line:17,column:12},end:{line:20,column:3}},line:17},3:{name:"(anonymous_3)",decl:{start:{line:23,column:6},end:{line:23,column:7}},loc:{start:{line:23,column:12},end:{line:25,column:7}},line:23},4:{name:"(anonymous_4)",decl:{start:{line:26,column:6},end:{line:26,column:7}},loc:{start:{line:26,column:17},end:{line:28,column:7}},line:26},5:{name:"(anonymous_5)",decl:{start:{line:32,column:4},end:{line:32,column:5}},loc:{start:{line:32,column:26},end:{line:41,column:5}},line:32},6:{name:"(anonymous_6)",decl:{start:{line:42,column:4},end:{line:42,column:5}},loc:{start:{line:42,column:20},end:{line:45,column:5}},line:42}},branchMap:{0:{loc:{start:{line:33,column:6},end:{line:40,column:7}},type:"if",locations:[{start:{line:33,column:6},end:{line:40,column:7}},{start:{line:35,column:13},end:{line:40,column:7}}],line:33},1:{loc:{start:{line:37,column:8},end:{line:39,column:9}},type:"if",locations:[{start:{line:37,column:8},end:{line:39,column:9}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:37}},s:{0:0,1:0,2:0,3:0,4:0,5:0,6:0,7:0,8:0,9:0,10:0,11:0,12:0},f:{0:0,1:0,2:0,3:0,4:0,5:0,6:0},b:{0:[0,0],1:[0,0]},inputSourceMap:{version:3,sources:["NewScreenDialog.vue"],names:[],mappings:";AA6EA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA",file:"NewScreenDialog.vue",sourceRoot:"src/tools/TlmViewer",sourcesContent:['\x3c!--\n# Copyright 2022 OpenC3, Inc.\n# All Rights Reserved.\n#\n# This program is free software; you can modify and/or redistribute it\n# under the terms of the GNU Affero General Public License\n# as published by the Free Software Foundation; version 3 with\n# attribution addendums as found in the LICENSE.txt\n#\n# This program is distributed in the hope that it will be useful,\n# but WITHOUT ANY WARRANTY; without even the implied warranty of\n# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n# GNU Affero General Public License for more details.\n--\x3e\n\n<template>\n \x3c!-- Dialog for creating new screen --\x3e\n <v-dialog v-model="show" width="600">\n <v-card>\n <v-system-bar>\n <v-spacer />\n <span>Create New Screen</span>\n <v-spacer />\n <v-tooltip top>\n <template v-slot:activator="{ on, attrs }">\n <div v-on="on" v-bind="attrs">\n <v-icon data-test="new-screen-close-icon" @click="show = false">\n mdi-close-box\n </v-icon>\n </div>\n </template>\n <span>Close</span>\n </v-tooltip>\n </v-system-bar>\n \x3c!-- <v-card-title> Create New Screen </v-card-title> --\x3e\n <v-card-text>\n <div class="pa-3">\n <v-alert\n v-model="duplicateScreenAlert"\n type="error"\n dismissible\n dense\n >\n Screen {{ newScreenName.toUpperCase() }} already exists!\n </v-alert>\n\n <v-row class="pb-2">\n <span>Existing Screens: {{ screens.join(\', \') }}</span>\n </v-row>\n <v-row>\n <v-text-field\n v-model="newScreenName"\n flat\n autofocus\n solo-inverted\n hide-details\n clearable\n label="Screen Name (without .txt)"\n data-test="new-screen-name"\n @keyup="newScreenKeyup($event)"\n />\n <div class="pl-2" v-if="newScreenSaving">\n <v-progress-circular indeterminate color="primary" />\n </div>\n </v-row>\n </div>\n </v-card-text>\n <v-divider />\n <v-card-actions>\n <v-btn color="primary" text @click="saveNewScreen"> Ok </v-btn>\n <v-btn text @click="show = false"> Cancel </v-btn>\n </v-card-actions>\n </v-card>\n </v-dialog>\n</template>\n\n<script>\nexport default {\n props: {\n value: Boolean, // value is the default prop when using v-model\n screens: {\n type: Array,\n default: () => [],\n },\n },\n data() {\n return {\n newScreenSaving: false,\n newScreenName: \'\',\n duplicateScreenAlert: false,\n }\n },\n created() {\n this.duplicateScreenAlert = false\n this.newScreenSaving = false\n },\n computed: {\n show: {\n get() {\n return this.value\n },\n set(value) {\n this.$emit(\'input\', value) // input is the default event when using v-model\n },\n },\n },\n methods: {\n newScreenKeyup(event) {\n if (this.screens.indexOf(this.newScreenName.toUpperCase()) !== -1) {\n this.duplicateScreenAlert = true\n } else {\n this.duplicateScreenAlert = false\n if (event.key === \'Enter\') {\n this.saveNewScreen()\n }\n }\n },\n saveNewScreen() {\n this.newScreenSaving = true\n this.$emit(\'success\', this.newScreenName.toUpperCase())\n },\n },\n}\n<\/script>\n']},_coverageSchema:"1a1c01bbd47fc00a2c39e90264f33305004495a9",hash:"0bc7e492c8aab76554aba5890bcc5164934ac12c"},s=n[i]||(n[i]={});s[e]&&s[e].hash===t||(s[e]=a);var l=s[e];return J=function(){return l},l}J();var Q={props:{value:Boolean,screens:{type:Array,default:function(){return J().f[0]++,J().s[0]++,[]}}},data:function(){return J().f[1]++,J().s[1]++,{newScreenSaving:!1,newScreenName:"",duplicateScreenAlert:!1}},created:function(){J().f[2]++,J().s[2]++,this.duplicateScreenAlert=!1,J().s[3]++,this.newScreenSaving=!1},computed:{show:{get:function(){return J().f[3]++,J().s[4]++,this.value},set:function(e){J().f[4]++,J().s[5]++,this.$emit("input",e)}}},methods:{newScreenKeyup:function(e){J().f[5]++,J().s[6]++,-1!==this.screens.indexOf(this.newScreenName.toUpperCase())?(J().b[0][0]++,J().s[7]++,this.duplicateScreenAlert=!0):(J().b[0][1]++,J().s[8]++,this.duplicateScreenAlert=!1,J().s[9]++,"Enter"===e.key?(J().b[1][0]++,J().s[10]++,this.saveNewScreen()):J().b[1][1]++)},saveNewScreen:function(){J().f[6]++,J().s[11]++,this.newScreenSaving=!0,J().s[12]++,this.$emit("success",this.newScreenName.toUpperCase())}}},ee=Q,te=(0,f.Z)(ee,q,X,!1,null,null,null),ne=te.exports,ie=(n(94908),function(){var e=this,t=e._self._c;return t("v-dialog",{attrs:{width:"600"},on:{keydown:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"esc",27,t.key,["Esc","Escape"])?null:e.cancel.apply(null,arguments)}},model:{value:e.show,callback:function(t){e.show=t},expression:"show"}},[t("v-card",[t("form",{on:{submit:function(t){return t.preventDefault(),e.success.apply(null,arguments)}}},[t("v-system-bar",[t("v-spacer"),t("span",[e._v("Open Configuration")]),t("v-spacer")],1),t("v-card-text",[t("div",{staticClass:"pa-3"},[t("v-row",{attrs:{dense:""}},[t("v-text-field",{attrs:{label:"search",type:"text","data-test":"search","prepend-icon":"mdi-magnify","clear-icon":"mdi-close-circle-outline",clearable:"",autofocus:"","single-line":"","hide-details":""},model:{value:e.search,callback:function(t){e.search=t},expression:"search"}})],1),t("v-data-table",{attrs:{"show-select":"","single-select":"","item-key":"configId",search:e.search,headers:e.headers,items:e.configs,"items-per-page":5,"footer-props":{"items-per-page-options":[5]}},on:{"item-selected":e.itemSelected,"click:row":function(e,t){return t.select(e)}},scopedSlots:e._u([{key:"item.actions",fn:function(n){var i=n.item;return[t("v-btn",{staticClass:"mt-1",attrs:{"data-test":"item-delete",icon:""},on:{click:function(t){return e.deleteConfig(i)}}},[t("v-icon",[e._v("mdi-delete")])],1)]}}])}),t("v-row",{attrs:{dense:""}},[t("span",{directives:[{name:"show",rawName:"v-show",value:e.error,expression:"error"}],staticClass:"ma-2 red--text",domProps:{textContent:e._s(e.error)}})]),t("v-row",[t("v-btn",{attrs:{type:"submit",color:"success","data-test":"open-config-submit-btn",disabled:!!e.error},on:{click:function(t){return t.preventDefault(),e.success.apply(null,arguments)}}},[e._v(" Ok ")]),t("v-spacer"),t("v-btn",{attrs:{color:"primary","data-test":"open-config-cancel-btn"},on:{click:e.cancel}},[e._v(" Cancel ")])],1)],1)])],1)])],1)}),ae=[],se=(n(99805),{props:{tool:String,value:Boolean},data:function(){return{configs:[],headers:[{text:"Configuration",value:"config"},{text:"Actions",value:"actions",align:"end",sortable:!1}],search:null,selectedItem:null}},computed:{error:function(){return""===this.selectedItem||null===this.selectedItem?"Must select a config":null},show:{get:function(){return this.value},set:function(e){this.$emit("input",e)}}},mounted:function(){var e=this,t=-1;(new d.k).list_configs(this.tool).then((function(n){e.configs=n.map((function(e){return t+=1,{configId:t,config:e}}))})).catch((function(t){e.$emit("warning","Failed to connect to OpenC3. ".concat(t))}))},methods:{itemSelected:function(e){e.value?this.selectedItem=e.item:this.selectedItem=null},success:function(){this.$emit("success",this.selectedItem.config),this.show=!1,this.search=null,this.selectedItem=null},cancel:function(){this.show=!1,this.search=null,this.selectedItem=null},deleteConfig:function(e){var t=this;this.$dialog.confirm("Are you sure you want to delete: ".concat(e.config),{okText:"Delete",cancelText:"Cancel"}).then((function(n){t.selectedItem.config===e.config&&(t.selectedItem=null),t.configs.splice(t.configs.indexOf(e),1),(new d.k).delete_config(t.tool,e.config)})).catch((function(n){n&&t.$emit("warning","Failed to delete config ".concat(e.config," Error: ").concat(n))}))}}}),le=se,re=(0,f.Z)(le,ie,ae,!1,null,"db42aa32",null),oe=re.exports,ce=function(){var e=this,t=e._self._c;return t("v-dialog",{attrs:{width:"600"},on:{keydown:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"esc",27,t.key,["Esc","Escape"])?null:e.cancel.apply(null,arguments)}},model:{value:e.show,callback:function(t){e.show=t},expression:"show"}},[t("v-card",[t("form",{on:{submit:function(t){return t.preventDefault(),e.success.apply(null,arguments)}}},[t("v-system-bar",[t("v-spacer"),t("span",[e._v("Save Configuration")]),t("v-spacer")],1),t("v-card-text",[t("div",{staticClass:"pa-3"},[t("v-row",{attrs:{dense:""}},[t("v-text-field",{attrs:{label:"search",type:"text","data-test":"search","prepend-icon":"mdi-magnify","clear-icon":"mdi-close-circle-outline",clearable:"","single-line":"","hide-details":""},model:{value:e.search,callback:function(t){e.search=t},expression:"search"}})],1),t("v-data-table",{attrs:{"show-select":"","single-select":"","item-key":"configId",search:e.search,headers:e.headers,items:e.configs,"items-per-page":5,"footer-props":{"items-per-page-options":[5]}},on:{"item-selected":e.itemSelected,"click:row":function(e,t){return t.select(e)}},scopedSlots:e._u([{key:"item.actions",fn:function(n){var i=n.item;return[t("v-btn",{staticClass:"mt-1",attrs:{icon:"","data-test":"item-delete"},on:{click:function(t){return e.deleteConfig(i)}}},[t("v-icon",[e._v("mdi-delete")])],1)]}}])}),t("v-row",{attrs:{dense:""}},[t("v-text-field",{attrs:{"hide-details":"",autofocus:"",disabled:!!e.selectedItem,label:"Configuration Name","data-test":"name-input-save-config-dialog"},model:{value:e.configName,callback:function(t){e.configName=t},expression:"configName"}})],1),t("v-row",{attrs:{dense:""}},[t("span",{directives:[{name:"show",rawName:"v-show",value:e.error,expression:"error"}],staticClass:"ma-2 red--text",domProps:{textContent:e._s(e.error)}})]),t("v-row",[t("v-spacer"),t("v-btn",{staticClass:"mx-2",attrs:{outlined:""},on:{click:e.cancel}},[e._v(" Cancel ")]),t("v-btn",{staticClass:"mx-2",attrs:{type:"submit",color:"primary","data-test":"save-config-submit-btn",disabled:!!e.error},on:{click:function(t){return t.preventDefault(),e.success.apply(null,arguments)}}},[e._v(" Ok ")])],1)],1)])],1)])],1)},ue=[],de={props:{tool:String,value:Boolean},data:function(){return{configName:"",configs:[],headers:[{text:"Configuration",value:"config"},{text:"Actions",value:"actions",align:"end",sortable:!1}],search:null,selectedItem:null}},computed:{error:function(){return""===this.configName?"Config must have a name":null},show:{get:function(){return this.value},set:function(e){this.$emit("input",e)}}},mounted:function(){var e=this,t=-1;(new d.k).list_configs(this.tool).then((function(n){e.configs=n.map((function(e){return t+=1,{configId:t,config:e}}))})).catch((function(t){e.$emit("warning","Failed to connect to OpenC3. ".concat(t))}))},methods:{itemSelected:function(e){e.value?(this.selectedItem=e.item,this.configName=e.item.config):(this.selectedItem=null,this.configName="")},success:function(){this.$emit("success",this.configName),this.show=!1,this.search=null,this.selectedItem=null,this.configName=""},cancel:function(){this.show=!1,this.search=null,this.selectedItem=null,this.configName=""},deleteConfig:function(e){var t=this;this.$dialog.confirm("Are you sure you want to delete: ".concat(e.config),{okText:"Delete",cancelText:"Cancel"}).then((function(n){t.configName===e.config&&(t.selectedItem=null,t.configName=""),t.configs.splice(t.configs.indexOf(e.config),1),(new d.k).delete_config(t.tool,e.config)})).catch((function(n){n&&t.$emit("warning","Failed to delete config ".concat(e.config," Error: ").concat(n))}))}}},me=de,he=(0,f.Z)(me,ce,ue,!1,null,null,null),pe=he.exports,Ae=n(87955);function fe(){var e="/openc3/plugins/packages/openc3-tool-tlmviewer/src/tools/TlmViewer/TlmViewer.vue",t="cab701647bd4e0e17a9a532ed646339aeda39bfe",n=new Function("return this")(),i="__coverage__",a={path:"/openc3/plugins/packages/openc3-tool-tlmviewer/src/tools/TlmViewer/TlmViewer.vue",statementMap:{0:{start:{line:20,column:4},end:{line:56,column:5}},1:{start:{line:40,column:16},end:{line:40,column:38}},2:{start:{line:47,column:16},end:{line:47,column:38}},3:{start:{line:59,column:4},end:{line:59,column:30}},4:{start:{line:60,column:4},end:{line:71,column:8}},5:{start:{line:63,column:26},end:{line:63,column:37}},6:{start:{line:64,column:8},end:{line:66,column:9}},7:{start:{line:64,column:21},end:{line:64,column:22}},8:{start:{line:65,column:10},end:{line:65,column:63}},9:{start:{line:67,column:8},end:{line:69,column:9}},10:{start:{line:68,column:10},end:{line:68,column:53}},11:{start:{line:70,column:8},end:{line:70,column:28}},12:{start:{line:72,column:4},end:{line:74,column:6}},13:{start:{line:73,column:6},end:{line:73,column:35}},14:{start:{line:77,column:4},end:{line:81,column:6}},15:{start:{line:82,column:4},end:{line:82,column:47}},16:{start:{line:83,column:27},end:{line:83,column:71}},17:{start:{line:84,column:4},end:{line:86,column:5}},18:{start:{line:85,column:6},end:{line:85,column:44}},19:{start:{line:90,column:6},end:{line:90,column:23}},20:{start:{line:91,column:6},end:{line:95,column:8}},21:{start:{line:92,column:8},end:{line:94,column:9}},22:{start:{line:93,column:10},end:{line:93,column:35}},23:{start:{line:98,column:6},end:{line:98,column:34}},24:{start:{line:99,column:6},end:{line:99,column:30}},25:{start:{line:100,column:6},end:{line:100,column:26}},26:{start:{line:103,column:6},end:{line:103,column:34}},27:{start:{line:104,column:6},end:{line:104,column:63}},28:{start:{line:107,column:6},end:{line:107,column:33}},29:{start:{line:110,column:6},end:{line:121,column:8}},30:{start:{line:118,column:8},end:{line:118,column:36}},31:{start:{line:119,column:8},end:{line:119,column:28}},32:{start:{line:120,column:8},end:{line:120,column:56}},33:{start:{line:124,column:6},end:{line:131,column:8}},34:{start:{line:125,column:8},end:{line:130,column:10}},35:{start:{line:134,column:6},end:{line:138,column:8}},36:{start:{line:141,column:6},end:{line:141,column:39}},37:{start:{line:142,column:6},end:{line:151,column:8}},38:{start:{line:143,column:20},end:{line:148,column:9}},39:{start:{line:149,column:8},end:{line:149,column:29}},40:{start:{line:150,column:8},end:{line:150,column:41}},41:{start:{line:154,column:18},end:{line:156,column:8}},42:{start:{line:157,column:6},end:{line:157,column:29}},43:{start:{line:158,column:6},end:{line:158,column:39}},44:{start:{line:159,column:6},end:{line:161,column:8}},45:{start:{line:160,column:8},end:{line:160,column:29}},46:{start:{line:164,column:6},end:{line:164,column:26}},47:{start:{line:165,column:6},end:{line:165,column:26}},48:{start:{line:168,column:6},end:{line:170,column:13}},49:{start:{line:169,column:8},end:{line:169,column:41}},50:{start:{line:173,column:6},end:{line:173,column:35}},51:{start:{line:176,column:6},end:{line:176,column:57}},52:{start:{line:177,column:6},end:{line:177,column:22}},53:{start:{line:178,column:6},end:{line:178,column:27}},54:{start:{line:179,column:27},end:{line:179,column:74}},55:{start:{line:180,column:6},end:{line:205,column:7}},56:{start:{line:181,column:23},end:{line:181,column:49}},57:{start:{line:183,column:35},end:{line:185,column:10}},58:{start:{line:184,column:10},end:{line:184,column:70}},59:{start:{line:187,column:8},end:{line:204,column:12}},60:{start:{line:190,column:12},end:{line:200,column:14}},61:{start:{line:191,column:31},end:{line:191,column:47}},62:{start:{line:192,column:14},end:{line:199,column:19}},63:{start:{line:193,column:16},end:{line:198,column:18}},64:{start:{line:203,column:12},end:{line:203,column:45}},65:{start:{line:208,column:6},end:{line:208,column:57}},66:{start:{line:209,column:24},end:{line:209,column:80}},67:{start:{line:209,column:59},end:{line:209,column:79}},68:{start:{line:210,column:21},end:{line:223,column:10}},69:{start:{line:213,column:10},end:{line:216,column:15}},70:{start:{line:219,column:10},end:{line:222,column:11}},71:{start:{line:224,column:6},end:{line:224,column:71}}},fnMap:{0:{name:"(anonymous_0)",decl:{start:{line:19,column:2},end:{line:19,column:3}},loc:{start:{line:19,column:9},end:{line:57,column:3}},line:19},1:{name:"(anonymous_1)",decl:{start:{line:39,column:23},end:{line:39,column:24}},loc:{start:{line:39,column:29},end:{line:41,column:15}},line:39},2:{name:"(anonymous_2)",decl:{start:{line:46,column:23},end:{line:46,column:24}},loc:{start:{line:46,column:29},end:{line:48,column:15}},line:46},3:{name:"(anonymous_3)",decl:{start:{line:58,column:2},end:{line:58,column:3}},loc:{start:{line:58,column:12},end:{line:75,column:3}},line:58},4:{name:"(anonymous_4)",decl:{start:{line:62,column:12},end:{line:62,column:13}},loc:{start:{line:62,column:22},end:{line:71,column:7}},line:62},5:{name:"(anonymous_5)",decl:{start:{line:72,column:61},end:{line:72,column:62}},loc:{start:{line:72,column:75},end:{line:74,column:5}},line:72},6:{name:"(anonymous_6)",decl:{start:{line:76,column:2},end:{line:76,column:3}},loc:{start:{line:76,column:12},end:{line:87,column:3}},line:76},7:{name:"(anonymous_7)",decl:{start:{line:89,column:4},end:{line:89,column:5}},loc:{start:{line:89,column:20},end:{line:96,column:5}},line:89},8:{name:"(anonymous_8)",decl:{start:{line:91,column:64},end:{line:91,column:65}},loc:{start:{line:91,column:78},end:{line:95,column:7}},line:91},9:{name:"(anonymous_9)",decl:{start:{line:97,column:4},end:{line:97,column:5}},loc:{start:{line:97,column:25},end:{line:101,column:5}},line:97},10:{name:"(anonymous_10)",decl:{start:{line:102,column:4},end:{line:102,column:5}},loc:{start:{line:102,column:25},end:{line:105,column:5}},line:102},11:{name:"(anonymous_11)",decl:{start:{line:106,column:4},end:{line:106,column:5}},loc:{start:{line:106,column:16},end:{line:108,column:5}},line:106},12:{name:"(anonymous_12)",decl:{start:{line:109,column:4},end:{line:109,column:5}},loc:{start:{line:109,column:30},end:{line:122,column:5}},line:109},13:{name:"(anonymous_13)",decl:{start:{line:117,column:14},end:{line:117,column:15}},loc:{start:{line:117,column:28},end:{line:121,column:7}},line:117},14:{name:"(anonymous_14)",decl:{start:{line:123,column:4},end:{line:123,column:5}},loc:{start:{line:123,column:31},end:{line:132,column:5}},line:123},15:{name:"(anonymous_15)",decl:{start:{line:124,column:43},end:{line:124,column:44}},loc:{start:{line:124,column:57},end:{line:131,column:7}},line:124},16:{name:"(anonymous_16)",decl:{start:{line:133,column:4},end:{line:133,column:5}},loc:{start:{line:133,column:31},end:{line:139,column:5}},line:133},17:{name:"(anonymous_17)",decl:{start:{line:140,column:4},end:{line:140,column:5}},loc:{start:{line:140,column:27},end:{line:152,column:5}},line:140},18:{name:"(anonymous_18)",decl:{start:{line:142,column:21},end:{line:142,column:22}},loc:{start:{line:142,column:33},end:{line:151,column:7}},line:142},19:{name:"(anonymous_19)",decl:{start:{line:153,column:4},end:{line:153,column:5}},loc:{start:{line:153,column:20},end:{line:162,column:5}},line:153},20:{name:"(anonymous_20)",decl:{start:{line:159,column:49},end:{line:159,column:50}},loc:{start:{line:159,column:72},end:{line:161,column:7}},line:159},21:{name:"(anonymous_21)",decl:{start:{line:163,column:4},end:{line:163,column:5}},loc:{start:{line:163,column:21},end:{line:166,column:5}},line:163},22:{name:"(anonymous_22)",decl:{start:{line:167,column:4},end:{line:167,column:5}},loc:{start:{line:167,column:20},end:{line:171,column:5}},line:167},23:{name:"(anonymous_23)",decl:{start:{line:168,column:17},end:{line:168,column:18}},loc:{start:{line:168,column:23},end:{line:170,column:7}},line:168},24:{name:"(anonymous_24)",decl:{start:{line:172,column:4},end:{line:172,column:5}},loc:{start:{line:172,column:17},end:{line:174,column:5}},line:172},25:{name:"(anonymous_25)",decl:{start:{line:175,column:23},end:{line:175,column:24}},loc:{start:{line:175,column:45},end:{line:206,column:5}},line:175},26:{name:"(anonymous_26)",decl:{start:{line:183,column:46},end:{line:183,column:47}},loc:{start:{line:183,column:62},end:{line:185,column:9}},line:183},27:{name:"(anonymous_27)",decl:{start:{line:188,column:16},end:{line:188,column:17}},loc:{start:{line:188,column:31},end:{line:201,column:11}},line:188},28:{name:"(anonymous_28)",decl:{start:{line:190,column:27},end:{line:190,column:28}},loc:{start:{line:190,column:50},end:{line:200,column:13}},line:190},29:{name:"(anonymous_29)",decl:{start:{line:192,column:25},end:{line:192,column:26}},loc:{start:{line:192,column:31},end:{line:199,column:15}},line:192},30:{name:"(anonymous_30)",decl:{start:{line:202,column:16},end:{line:202,column:17}},loc:{start:{line:202,column:22},end:{line:204,column:11}},line:202},31:{name:"(anonymous_31)",decl:{start:{line:207,column:23},end:{line:207,column:24}},loc:{start:{line:207,column:39},end:{line:225,column:5}},line:207},32:{name:"(anonymous_32)",decl:{start:{line:209,column:49},end:{line:209,column:50}},loc:{start:{line:209,column:59},end:{line:209,column:79}},line:209},33:{name:"(anonymous_33)",decl:{start:{line:211,column:14},end:{line:211,column:15}},loc:{start:{line:211,column:24},end:{line:217,column:9}},line:211},34:{name:"(anonymous_34)",decl:{start:{line:218,column:13},end:{line:218,column:14}},loc:{start:{line:218,column:22},end:{line:223,column:9}},line:218}},branchMap:{0:{loc:{start:{line:67,column:8},end:{line:69,column:9}},type:"if",locations:[{start:{line:67,column:8},end:{line:69,column:9}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:67},1:{loc:{start:{line:84,column:4},end:{line:86,column:5}},type:"if",locations:[{start:{line:84,column:4},end:{line:86,column:5}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:84},2:{loc:{start:{line:180,column:6},end:{line:205,column:7}},type:"if",locations:[{start:{line:180,column:6},end:{line:205,column:7}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:180},3:{loc:{start:{line:213,column:17},end:{line:216,column:15}},type:"cond-expr",locations:[{start:{line:215,column:14},end:{line:215,column:16}},{start:{line:216,column:14},end:{line:216,column:15}}],line:213}},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},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},b:{0:[0,0],1:[0,0],2:[0,0],3:[0,0]},inputSourceMap:{version:3,sources:["TlmViewer.vue"],names:[],mappings:";AAuGA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA",file:"TlmViewer.vue",sourceRoot:"src/tools/TlmViewer",sourcesContent:['\x3c!--\n# Copyright 2022 Ball Aerospace & Technologies Corp.\n# All Rights Reserved.\n#\n# This program is free software; you can modify and/or redistribute it\n# under the terms of the GNU Affero General Public License\n# as published by the Free Software Foundation; version 3 with\n# attribution addendums as found in the LICENSE.txt\n#\n# This program is distributed in the hope that it will be useful,\n# but WITHOUT ANY WARRANTY; without even the implied warranty of\n# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n# GNU Affero General Public License for more details.\n\n# Modified by OpenC3, Inc.\n# All changes Copyright 2022, OpenC3, Inc.\n# All Rights Reserved\n--\x3e\n\n<template>\n <div>\n <top-bar :title="title" :menus="menus" />\n <v-container>\n <v-row class="pt-1">\n <v-select\n class="pa-0 mr-2"\n label="Select Target"\n :items="targets"\n item-text="label"\n item-value="value"\n v-model="selectedTarget"\n @change="targetSelect"\n />\n <v-select\n class="pa-0 mr-3"\n label="Select Screen"\n :items="screens"\n v-model="selectedScreen"\n @change="screenSelect"\n />\n <v-btn\n class="primary mr-2"\n :disabled="!selectedScreen"\n @click="() => showScreen(selectedTarget, selectedScreen)"\n data-test="show-screen"\n >\n Show\n </v-btn>\n <v-btn\n class="primary"\n @click="() => newScreen(selectedTarget)"\n data-test="new-screen"\n >\n New Screen\n <v-icon> mdi-file-plus</v-icon>\n </v-btn>\n </v-row>\n </v-container>\n <div class="grid">\n <div\n class="item"\n v-for="def in definitions"\n :key="def.id"\n :id="screenId(def.id)"\n ref="gridItem"\n >\n <div class="item-content">\n <openc3-screen\n :target="def.target"\n :screen="def.screen"\n :definition="def.definition"\n :keywords="keywords"\n @close-screen="closeScreen(def.id)"\n @min-max-screen="refreshLayout"\n @add-new-screen="($event) => showScreen(...$event)"\n @delete-screen="deleteScreen(def.id)"\n />\n </div>\n </div>\n </div>\n \x3c!-- Dialogs for opening and saving configs --\x3e\n <open-config-dialog\n v-if="openConfig"\n v-model="openConfig"\n :tool="toolName"\n @success="openConfiguration($event)"\n />\n <save-config-dialog\n v-if="saveConfig"\n v-model="saveConfig"\n :tool="toolName"\n @success="saveConfiguration($event)"\n />\n <new-screen-dialog\n v-if="newScreenDialog"\n v-model="newScreenDialog"\n :screens="screens"\n @success="saveNewScreen($event)"\n />\n </div>\n</template>\n\n<script>\nimport Api from \'@openc3/tool-common/src/services/api\'\nimport { OpenC3Api } from \'@openc3/tool-common/src/services/openc3-api\'\nimport TopBar from \'@openc3/tool-common/src/components/TopBar\'\nimport Openc3Screen from \'./Openc3Screen\'\nimport NewScreenDialog from \'./NewScreenDialog\'\nimport OpenConfigDialog from \'@openc3/tool-common/src/components/OpenConfigDialog\'\nimport SaveConfigDialog from \'@openc3/tool-common/src/components/SaveConfigDialog\'\nimport Muuri from \'muuri\'\n\nexport default {\n components: {\n TopBar,\n Openc3Screen,\n NewScreenDialog,\n OpenConfigDialog,\n SaveConfigDialog,\n },\n data() {\n return {\n title: \'Telemetry Viewer\',\n counter: 0,\n definitions: [],\n targets: [],\n screens: [],\n selectedTarget: \'\',\n selectedScreen: \'\',\n newScreenDialog: false,\n grid: null,\n api: null,\n keywords: [],\n menus: [\n {\n label: \'File\',\n items: [\n {\n label: \'Open Configuration\',\n icon: \'mdi-folder-open\',\n command: () => {\n this.openConfig = true\n },\n },\n {\n label: \'Save Configuration\',\n icon: \'mdi-content-save\',\n command: () => {\n this.saveConfig = true\n },\n },\n ],\n },\n ],\n toolName: \'tlm-viewer\',\n openConfig: false,\n saveConfig: false,\n }\n },\n created() {\n this.api = new OpenC3Api()\n this.api\n .get_target_list({ params: { scope: window.openc3Scope } })\n .then((data) => {\n var arrayLength = data.length\n for (var i = 0; i < arrayLength; i++) {\n this.targets.push({ label: data[i], value: data[i] })\n }\n if (!this.selectedTarget) {\n this.selectedTarget = this.targets[0].value\n }\n this.updateScreens()\n })\n Api.get(\'/openc3-api/autocomplete/keywords/screen\').then((response) => {\n this.keywords = response.data\n })\n },\n mounted() {\n this.grid = new Muuri(\'.grid\', {\n dragEnabled: true,\n // Only allow drags starting from the v-system-bar title\n dragHandle: \'.v-system-bar\',\n })\n this.grid.on(\'dragEnd\', this.refreshLayout)\n const previousConfig = localStorage[\'lastconfig__telemetry_viewer\']\n if (previousConfig) {\n this.openConfiguration(previousConfig)\n }\n },\n methods: {\n updateScreens() {\n this.screens = []\n Api.get(\'/openc3-api/screen/\' + this.selectedTarget).then((response) => {\n for (let screen of response.data) {\n this.screens.push(screen)\n }\n })\n },\n targetSelect(target) {\n this.selectedTarget = target\n this.selectedScreen = \'\'\n this.updateScreens()\n },\n screenSelect(screen) {\n this.selectedScreen = screen\n this.showScreen(this.selectedTarget, this.selectedScreen)\n },\n newScreen() {\n this.newScreenDialog = true\n },\n saveNewScreen(screenName) {\n Api.post(\'/openc3-api/screen/\', {\n data: {\n scope: window.openc3Scope,\n target: this.selectedTarget,\n screen: screenName,\n text: \'SCREEN AUTO AUTO 1.0\\nLABEL NEW\',\n },\n }).then((response) => {\n this.newScreenDialog = false\n this.updateScreens()\n this.showScreen(this.selectedTarget, screenName)\n })\n },\n showScreen(target, screen) {\n this.loadScreen(target, screen).then((response) => {\n this.pushScreen({\n id: this.counter++,\n target: target,\n screen: screen,\n definition: response.data,\n })\n })\n },\n loadScreen(target, screen) {\n return Api.get(\'/openc3-api/screen/\' + target + \'/\' + screen, {\n headers: {\n Accept: \'text/plain\',\n },\n })\n },\n pushScreen(definition) {\n this.definitions.push(definition)\n this.$nextTick(function () {\n var items = this.grid.add(\n this.$refs.gridItem[this.$refs.gridItem.length - 1],\n {\n active: false,\n }\n )\n this.grid.show(items)\n this.grid.refreshItems().layout()\n })\n },\n closeScreen(id) {\n var items = this.grid.getItems([\n document.getElementById(this.screenId(id)),\n ])\n this.grid.remove(items)\n this.grid.refreshItems().layout()\n this.definitions = this.definitions.filter((value, index, arr) => {\n return value.id != id\n })\n },\n deleteScreen(id) {\n this.closeScreen(id)\n this.updateScreens()\n },\n refreshLayout() {\n setTimeout(() => {\n this.grid.refreshItems().layout()\n }, 600) // TODO: Is 600ms ok for all screens?\n },\n screenId(id) {\n return \'tlmViewerScreen\' + id\n },\n openConfiguration: async function (name) {\n localStorage[\'lastconfig__telemetry_viewer\'] = name\n this.counter = 0\n this.definitions = []\n let configResponse = await this.api.load_config(this.toolName, name)\n if (configResponse) {\n const config = JSON.parse(configResponse)\n // Load all the screen definitions from the API at once\n const loadScreenPromises = config.map((definition) => {\n return this.loadScreen(definition.target, definition.screen)\n })\n // Wait until they\'re all loaded\n Promise.all(loadScreenPromises)\n .then((responses) => {\n // Then add all the screens in order\n config.forEach((definition, index) => {\n const response = responses[index]\n setTimeout(() => {\n this.pushScreen({\n id: this.counter++,\n target: definition.target,\n screen: definition.screen,\n definition: response.data,\n })\n }, 0) // I don\'t even know... but Muuri complains if this isn\'t in a setTimeout\n })\n })\n .then(() => {\n setTimeout(this.refreshLayout, 0) // Muuri probably stacked some, so refresh that\n })\n }\n },\n saveConfiguration: function (name) {\n localStorage[\'lastconfig__telemetry_viewer\'] = name\n const gridItems = this.grid.getItems().map((item) => item.getElement().id) // TODO: this order isn\'t reliable for some reason\n const config = this.definitions\n .sort((a, b) => {\n // Sort by their current position on the page\n return gridItems.indexOf(this.screenId(a)) >\n gridItems.indexOf(this.screenId(b))\n ? -1\n : 1\n })\n .map((def) => {\n return {\n screen: def.screen,\n target: def.target,\n }\n })\n this.api.save_config(this.toolName, name, JSON.stringify(config))\n },\n },\n}\n<\/script>\n\n<style scoped>\n.grid {\n position: relative;\n}\n.item {\n position: absolute;\n display: block;\n margin: 5px;\n z-index: 1;\n}\n.item.muuri-item-dragging {\n z-index: 3;\n}\n.item.muuri-item-releasing {\n z-index: 2;\n}\n.item.muuri-item-hidden {\n z-index: 0;\n}\n.item-content {\n position: relative;\n cursor: pointer;\n border-radius: 6px;\n}\n</style>\n']},_coverageSchema:"1a1c01bbd47fc00a2c39e90264f33305004495a9",hash:"cab701647bd4e0e17a9a532ed646339aeda39bfe"},s=n[i]||(n[i]={});s[e]&&s[e].hash===t||(s[e]=a);var l=s[e];return fe=function(){return l},l}fe();var ve={components:{TopBar:g,Openc3Screen:Y,NewScreenDialog:ne,OpenConfigDialog:oe,SaveConfigDialog:pe},data:function(){var e=this;return fe().f[0]++,fe().s[0]++,{title:"Telemetry Viewer",counter:0,definitions:[],targets:[],screens:[],selectedTarget:"",selectedScreen:"",newScreenDialog:!1,grid:null,api:null,keywords:[],menus:[{label:"File",items:[{label:"Open Configuration",icon:"mdi-folder-open",command:function(){fe().f[1]++,fe().s[1]++,e.openConfig=!0}},{label:"Save Configuration",icon:"mdi-content-save",command:function(){fe().f[2]++,fe().s[2]++,e.saveConfig=!0}}]}],toolName:"tlm-viewer",openConfig:!1,saveConfig:!1}},created:function(){var e=this;fe().f[3]++,fe().s[3]++,this.api=new d.k,fe().s[4]++,this.api.get_target_list({params:{scope:window.openc3Scope}}).then((function(t){fe().f[4]++;var n=(fe().s[5]++,t.length);fe().s[6]++;for(var i=(fe().s[7]++,0);i<n;i++)fe().s[8]++,e.targets.push({label:t[i],value:t[i]});fe().s[9]++,e.selectedTarget?fe().b[0][1]++:(fe().b[0][0]++,fe().s[10]++,e.selectedTarget=e.targets[0].value),fe().s[11]++,e.updateScreens()})),fe().s[12]++,u.Z.get("/openc3-api/autocomplete/keywords/screen").then((function(t){fe().f[5]++,fe().s[13]++,e.keywords=t.data}))},mounted:function(){fe().f[6]++,fe().s[14]++,this.grid=new Ae.Z(".grid",{dragEnabled:!0,dragHandle:".v-system-bar"}),fe().s[15]++,this.grid.on("dragEnd",this.refreshLayout);var e=(fe().s[16]++,localStorage["lastconfig__telemetry_viewer"]);fe().s[17]++,e?(fe().b[1][0]++,fe().s[18]++,this.openConfiguration(e)):fe().b[1][1]++},methods:{updateScreens:function(){var e=this;fe().f[7]++,fe().s[19]++,this.screens=[],fe().s[20]++,u.Z.get("/openc3-api/screen/"+this.selectedTarget).then((function(t){fe().f[8]++,fe().s[21]++;var n,i=(0,c.Z)(t.data);try{for(i.s();!(n=i.n()).done;){var a=n.value;fe().s[22]++,e.screens.push(a)}}catch(s){i.e(s)}finally{i.f()}}))},targetSelect:function(e){fe().f[9]++,fe().s[23]++,this.selectedTarget=e,fe().s[24]++,this.selectedScreen="",fe().s[25]++,this.updateScreens()},screenSelect:function(e){fe().f[10]++,fe().s[26]++,this.selectedScreen=e,fe().s[27]++,this.showScreen(this.selectedTarget,this.selectedScreen)},newScreen:function(){fe().f[11]++,fe().s[28]++,this.newScreenDialog=!0},saveNewScreen:function(e){var t=this;fe().f[12]++,fe().s[29]++,u.Z.post("/openc3-api/screen/",{data:{scope:window.openc3Scope,target:this.selectedTarget,screen:e,text:"SCREEN AUTO AUTO 1.0\nLABEL NEW"}}).then((function(n){fe().f[13]++,fe().s[30]++,t.newScreenDialog=!1,fe().s[31]++,t.updateScreens(),fe().s[32]++,t.showScreen(t.selectedTarget,e)}))},showScreen:function(e,t){var n=this;fe().f[14]++,fe().s[33]++,this.loadScreen(e,t).then((function(i){fe().f[15]++,fe().s[34]++,n.pushScreen({id:n.counter++,target:e,screen:t,definition:i.data})}))},loadScreen:function(e,t){return fe().f[16]++,fe().s[35]++,u.Z.get("/openc3-api/screen/"+e+"/"+t,{headers:{Accept:"text/plain"}})},pushScreen:function(e){fe().f[17]++,fe().s[36]++,this.definitions.push(e),fe().s[37]++,this.$nextTick((function(){fe().f[18]++;var e=(fe().s[38]++,this.grid.add(this.$refs.gridItem[this.$refs.gridItem.length-1],{active:!1}));fe().s[39]++,this.grid.show(e),fe().s[40]++,this.grid.refreshItems().layout()}))},closeScreen:function(e){fe().f[19]++;var t=(fe().s[41]++,this.grid.getItems([document.getElementById(this.screenId(e))]));fe().s[42]++,this.grid.remove(t),fe().s[43]++,this.grid.refreshItems().layout(),fe().s[44]++,this.definitions=this.definitions.filter((function(t,n,i){return fe().f[20]++,fe().s[45]++,t.id!=e}))},deleteScreen:function(e){fe().f[21]++,fe().s[46]++,this.closeScreen(e),fe().s[47]++,this.updateScreens()},refreshLayout:function(){var e=this;fe().f[22]++,fe().s[48]++,setTimeout((function(){fe().f[23]++,fe().s[49]++,e.grid.refreshItems().layout()}),600)},screenId:function(e){return fe().f[24]++,fe().s[50]++,"tlmViewerScreen"+e},openConfiguration:function(){var e=(0,o.Z)((0,r.Z)().mark((function e(t){var n,i,a,s=this;return(0,r.Z)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return fe().f[25]++,fe().s[51]++,localStorage["lastconfig__telemetry_viewer"]=t,fe().s[52]++,this.counter=0,fe().s[53]++,this.definitions=[],fe().s[54]++,e.next=10,this.api.load_config(this.toolName,t);case 10:n=e.sent,fe().s[55]++,n?(fe().b[2][0]++,fe().s[56]++,i=JSON.parse(n),fe().s[57]++,a=i.map((function(e){return fe().f[26]++,fe().s[58]++,s.loadScreen(e.target,e.screen)})),fe().s[59]++,Promise.all(a).then((function(e){fe().f[27]++,fe().s[60]++,i.forEach((function(t,n){fe().f[28]++;var i=(fe().s[61]++,e[n]);fe().s[62]++,setTimeout((function(){fe().f[29]++,fe().s[63]++,s.pushScreen({id:s.counter++,target:t.target,screen:t.screen,definition:i.data})}),0)}))})).then((function(){fe().f[30]++,fe().s[64]++,setTimeout(s.refreshLayout,0)}))):fe().b[2][1]++;case 13:case"end":return e.stop()}}),e,this)})));function t(t){return e.apply(this,arguments)}return t}(),saveConfiguration:function(e){var t=this;fe().f[31]++,fe().s[65]++,localStorage["lastconfig__telemetry_viewer"]=e;var n=(fe().s[66]++,this.grid.getItems().map((function(e){return fe().f[32]++,fe().s[67]++,e.getElement().id}))),i=(fe().s[68]++,this.definitions.sort((function(e,i){return fe().f[33]++,fe().s[69]++,n.indexOf(t.screenId(e))>n.indexOf(t.screenId(i))?(fe().b[3][0]++,-1):(fe().b[3][1]++,1)})).map((function(e){return fe().f[34]++,fe().s[70]++,{screen:e.screen,target:e.target}})));fe().s[71]++,this.api.save_config(this.toolName,e,JSON.stringify(i))}}},ge=ve,_e=(n(28648),(0,f.Z)(ge,s,l,!1,null,"d00fee0c",null)),we=_e.exports},24960:function(e,t,n){"use strict";n.r(t);var i=n(39601),a=n.n(i),s=n(82609),l=n.n(s),r=l()(a());r.push([e.id,".label[data-v-2d350830]{font-weight:700;text-transform:capitalize}",""]),t["default"]=r},73753:function(e,t,n){"use strict";n.r(t);var i=n(39601),a=n.n(i),s=n(82609),l=n.n(s),r=l()(a());r.push([e.id,".uplot.side-legend{display:flex;width:auto}.uplot.side-legend .u-wrap{flex:none}.uplot.side-legend .u-legend{text-align:left;margin-left:0;width:220px}.uplot.side-legend .u-legend,.uplot.side-legend .u-legend td,.uplot.side-legend .u-legend th,.uplot.side-legend .u-legend tr{display:revert}.uplot.left-legend .u-legend{order:-1}.uplot.top-legend{display:flex;flex-direction:column}.uplot.top-legend .u-legend{order:-1}",""]),t["default"]=r},44753:function(e,t,n){"use strict";n.r(t);var i=n(39601),a=n.n(i),s=n(82609),l=n.n(s),r=l()(a());r.push([e.id,"#chart[data-v-3157fc8b]{background-color:var(--v-tertiary-darken2)}#chart[data-v-3157fc8b] .u-select{background-color:hsla(0,0%,100%,.07)}",""]),t["default"]=r},20363:function(e,t,n){"use strict";n.r(t);var i=n(39601),a=n.n(i),s=n(82609),l=n.n(s),r=l()(a());r.push([e.id,".v-list[data-v-5fb8d7fb] .v-label{margin-left:5px}.v-list-item__icon[data-v-5fb8d7fb]{margin-right:15px!important}.v-list-item__title[data-v-5fb8d7fb]{color:#fff}",""]),t["default"]=r},63865:function(e,t,n){"use strict";n.r(t);var i=n(39601),a=n.n(i),s=n(82609),l=n.n(s),r=l()(a());r.push([e.id,".array-widget-container[data-v-5f1a52fc] .v-input__slot{background:rgba(var(--aging),var(--aging),var(--aging),1)!important}.value[data-v-5f1a52fc] div{min-height:24px!important;display:flex!important;align-items:center!important}.openc3-green[data-v-5f1a52fc] input{color:#00c800}.openc3-yellow[data-v-5f1a52fc] input{color:#ffdc00}.openc3-red[data-v-5f1a52fc] input{color:#ff2d2d}.openc3-blue[data-v-5f1a52fc] input{color:#09f}.openc3-purple[data-v-5f1a52fc] input{color:#c800c8}.openc3-black[data-v-5f1a52fc] input{color:#000}.openc3-white[data-v-5f1a52fc] input{color:#fff}",""]),t["default"]=r},1992:function(e,t,n){"use strict";n.r(t);var i=n(39601),a=n.n(i),s=n(82609),l=n.n(s),r=l()(a());r.push([e.id,".block-widget-container[data-v-38c85192] .v-input__slot{background:rgba(var(--aging),var(--aging),var(--aging),1)!important}.v-textarea[data-v-38c85192] textarea{font-family:Courier New,Courier,monospace}.value[data-v-38c85192] div{min-height:24px!important;display:flex!important;align-items:center!important}.openc3-green[data-v-38c85192] input{color:#00c800}.openc3-yellow[data-v-38c85192] input{color:#ffdc00}.openc3-red[data-v-38c85192] input{color:#ff2d2d}.openc3-blue[data-v-38c85192] input{color:#09f}.openc3-purple[data-v-38c85192] input{color:#c800c8}.openc3-black[data-v-38c85192] input{color:#000}.openc3-white[data-v-38c85192] input{color:#fff}",""]),t["default"]=r},70381:function(e,t,n){"use strict";n.r(t);var i=n(39601),a=n.n(i),s=n(82609),l=n.n(s),r=l()(a());r.push([e.id,".v-banner[data-v-3cd534da] div{background-color:var(--v-tertiary-darken2)!important}",""]),t["default"]=r},29085:function(e,t,n){"use strict";n.r(t);var i=n(39601),a=n.n(i),s=n(82609),l=n.n(s),r=l()(a());r.push([e.id,".label[data-v-c4066fac]{font-family:var(--font-family);font-size:var(--font-size);font-weight:var(--font-weight);font-style:var(--font-style)}",""]),t["default"]=r},87504:function(e,t,n){"use strict";n.r(t);var i=n(39601),a=n.n(i),s=n(82609),l=n.n(s),r=l()(a());r.push([e.id,".led[data-v-7c72e522]{height:var(--height);width:var(--width);background-color:var(--color);border-radius:50%}",""]),t["default"]=r},34763:function(e,t,n){"use strict";n.r(t);var i=n(39601),a=n.n(i),s=n(82609),l=n.n(s),r=l()(a());r.push([e.id,".led[data-v-71a68fe2]{height:var(--height);width:var(--width);background-color:var(--color);border-radius:50%}",""]),t["default"]=r},3472:function(e,t,n){"use strict";n.r(t);var i=n(39601),a=n.n(i),s=n(82609),l=n.n(s),r=l()(a());r.push([e.id,".textbox-widget-container[data-v-288dec50] .v-input__slot{background:rgba(var(--aging),var(--aging),var(--aging),1)!important}.value[data-v-288dec50] div{min-height:24px!important;display:flex!important;align-items:center!important}.openc3-green[data-v-288dec50] input{color:#00c800}.openc3-yellow[data-v-288dec50] input{color:#ffdc00}.openc3-red[data-v-288dec50] input{color:#ff2d2d}.openc3-blue[data-v-288dec50] input{color:#09f}.openc3-purple[data-v-288dec50] input{color:#c800c8}.openc3-black[data-v-288dec50] input{color:#000}.openc3-white[data-v-288dec50] input{color:#fff}",""]),t["default"]=r},96297:function(e,t,n){"use strict";n.r(t);var i=n(39601),a=n.n(i),s=n(82609),l=n.n(s),r=l()(a());r.push([e.id,".v-banner[data-v-770ce0a3] div{background-color:var(--v-tertiary-darken2)!important}",""]),t["default"]=r},11325:function(e,t,n){"use strict";n.r(t);var i=n(39601),a=n.n(i),s=n(82609),l=n.n(s),r=l()(a());r.push([e.id,".ace_autocomplete{width:60vw!important}",""]),t["default"]=r},93016:function(e,t,n){"use strict";n.r(t);var i=n(39601),a=n.n(i),s=n(82609),l=n.n(s),r=l()(a());r.push([e.id,"#editor[data-v-71483854]{height:50vh;width:75vw;font-size:16px}.v-card[data-v-71483854]{background-color:var(--v-tertiary-darken2)}.v-textarea[data-v-71483854] textarea{padding:5px;background-color:var(--v-tertiary-darken1)!important}",""]),t["default"]=r},67061:function(e,t,n){"use strict";n.r(t);var i=n(39601),a=n.n(i),s=n(82609),l=n.n(s),r=l()(a());r.push([e.id,".v-card[data-v-551b42f2]{background-color:var(--v-tertiary-darken2)}.v-textarea[data-v-551b42f2] textarea{padding:5px;background-color:var(--v-tertiary-darken1)!important}",""]),t["default"]=r},47001:function(e,t,n){"use strict";n.r(t);var i=n(39601),a=n.n(i),s=n(82609),l=n.n(s),r=l()(a());r.push([e.id,".grid[data-v-d00fee0c]{position:relative}.item[data-v-d00fee0c]{position:absolute;display:block;margin:5px;z-index:1}.item.muuri-item-dragging[data-v-d00fee0c]{z-index:3}.item.muuri-item-releasing[data-v-d00fee0c]{z-index:2}.item.muuri-item-hidden[data-v-d00fee0c]{z-index:0}.item-content[data-v-d00fee0c]{position:relative;cursor:pointer;border-radius:6px}",""]),t["default"]=r},98920:function(e,t,n){"use strict";n.r(t);var i=n(39601),a=n.n(i),s=n(82609),l=n.n(s),r=l()(a());r.push([e.id,"svg[data-v-44b6a4ed]{background-color:#fff}",""]),t["default"]=r},10704:function(e,t,n){"use strict";n.r(t);var i=n(39601),a=n.n(i),s=n(82609),l=n.n(s),r=l()(a());r.push([e.id,".limitsbar[data-v-3198e0fa]{cursor:default;display:flex;justify-content:center;align-items:center;padding:5px;width:var(--width)}.limitsbar__container[data-v-3198e0fa]{position:relative;flex:1;height:var(--container-height);border:1px solid #000;background-color:#fff}.limitsbar__redlow[data-v-3198e0fa]{left:0;width:var(--redlow-width)}.limitsbar__redhigh[data-v-3198e0fa],.limitsbar__redlow[data-v-3198e0fa]{position:absolute;top:-1px;height:var(--container-height);background-color:#ff2d2d}.limitsbar__redhigh[data-v-3198e0fa]{right:0;width:var(--redhigh-width)}.limitsbar__yellowlow[data-v-3198e0fa]{left:var(--redlow-width);width:var(--yellowlow-width)}.limitsbar__yellowhigh[data-v-3198e0fa],.limitsbar__yellowlow[data-v-3198e0fa]{position:absolute;top:-1px;height:var(--container-height);background-color:#ffdc00}.limitsbar__yellowhigh[data-v-3198e0fa]{right:var(--redhigh-width);width:var(--yellowhigh-width)}.limitsbar__greenlow[data-v-3198e0fa]{left:calc(var(--redlow-width) + var(--yellowlow-width));width:var(--greenlow-width)}.limitsbar__greenhigh[data-v-3198e0fa],.limitsbar__greenlow[data-v-3198e0fa]{position:absolute;top:-1px;height:var(--container-height);background-color:#00c800}.limitsbar__greenhigh[data-v-3198e0fa]{right:calc(var(--redhigh-width) + var(--yellowhigh-width));width:var(--greenhigh-width)}.limitsbar__blue[data-v-3198e0fa]{top:-1px;left:calc(var(--redlow-width) + var(--yellowlow-width) + var(--greenlow-width));width:var(--blue-width);background-color:#09f}.limitsbar__blue[data-v-3198e0fa],.limitsbar__line[data-v-3198e0fa]{position:absolute;height:var(--container-height)}.limitsbar__line[data-v-3198e0fa]{left:var(--position);width:1px;background-color:gray}.limitsbar__arrow[data-v-3198e0fa]{position:absolute;top:-5px;left:var(--position);width:0;height:0;-webkit-transform:translateX(-5px);transform:translateX(-5px);border-left:5px solid transparent;border-right:5px solid transparent;border-top:5px solid gray}",""]),t["default"]=r},59356:function(e,t,n){"use strict";n.r(t);var i=n(39601),a=n.n(i),s=n(82609),l=n.n(s),r=l()(a());r.push([e.id,".limitsbar[data-v-14a7f9e1]{cursor:default;display:flex;flex-direction:column;justify-content:center;align-items:center;padding:5px;height:var(--height)}.limitsbar__container[data-v-14a7f9e1]{position:relative;flex:1 1 100%;width:var(--container-width);border:1px solid #000;background-color:#fff}.limitsbar__redlow[data-v-14a7f9e1]{bottom:0;height:var(--redlow-height)}.limitsbar__redhigh[data-v-14a7f9e1],.limitsbar__redlow[data-v-14a7f9e1]{position:absolute;width:var(--container-width);background-color:#ff2d2d}.limitsbar__redhigh[data-v-14a7f9e1]{top:0;height:var(--redhigh-height)}.limitsbar__yellowlow[data-v-14a7f9e1]{bottom:var(--redlow-height);height:var(--yellowlow-height)}.limitsbar__yellowhigh[data-v-14a7f9e1],.limitsbar__yellowlow[data-v-14a7f9e1]{position:absolute;width:var(--container-width);background-color:#ffdc00}.limitsbar__yellowhigh[data-v-14a7f9e1]{top:var(--redhigh-height);height:var(--yellowhigh-height)}.limitsbar__greenlow[data-v-14a7f9e1]{bottom:calc(var(--redlow-height) + var(--yellowlow-height));height:var(--greenlow-height)}.limitsbar__greenhigh[data-v-14a7f9e1],.limitsbar__greenlow[data-v-14a7f9e1]{position:absolute;width:var(--container-width);background-color:#00c800}.limitsbar__greenhigh[data-v-14a7f9e1]{top:calc(var(--redhigh-height) + var(--yellowhigh-height));height:var(--greenhigh-height)}.limitsbar__blue[data-v-14a7f9e1]{bottom:calc(var(--redlow-height) + var(--yellowlow-height) + var(--greenlow-height));height:var(--blue-height);background-color:#09f}.limitsbar__blue[data-v-14a7f9e1],.limitsbar__line[data-v-14a7f9e1]{position:absolute;width:var(--container-width)}.limitsbar__line[data-v-14a7f9e1]{bottom:var(--position);height:1px;background-color:gray}.limitsbar__arrow[data-v-14a7f9e1]{position:absolute;bottom:var(--position);left:var(--container-width);width:0;height:0;-webkit-transform:translateY(5px);transform:translateY(5px);border-top:5px solid transparent;border-bottom:5px solid transparent;border-right:5px solid gray}",""]),t["default"]=r},8081:function(e,t,n){"use strict";n.r(t);var i=n(39601),a=n.n(i),s=n(82609),l=n.n(s),r=l()(a());r.push([e.id,".rangebar[data-v-687f0825]{cursor:default;display:flex;justify-content:center;align-items:center;padding:5px;width:var(--width)}.rangebar__container[data-v-687f0825]{position:relative;flex:1;height:var(--container-height);border:1px solid #000;background-color:#fff}.rangebar__line[data-v-687f0825]{width:1px;height:var(--container-height);background-color:gray}.rangebar__arrow[data-v-687f0825],.rangebar__line[data-v-687f0825]{position:absolute;left:var(--position)}.rangebar__arrow[data-v-687f0825]{top:-5px;width:0;height:0;-webkit-transform:translateX(-5px);transform:translateX(-5px);border-left:5px solid transparent;border-right:5px solid transparent;border-top:5px solid gray}",""]),t["default"]=r},45293:function(e,t,n){"use strict";n.r(t);var i=n(39601),a=n.n(i),s=n(82609),l=n.n(s),r=l()(a());r.push([e.id,".value-widget-container[data-v-e7a2e8b4]{min-height:34px}.value-widget-container[data-v-e7a2e8b4] .v-input__slot{background:rgba(var(--aging),var(--aging),var(--aging),1)!important}.value[data-v-e7a2e8b4] div{min-height:24px!important;display:flex!important;align-items:center!important}.openc3-green[data-v-e7a2e8b4] input{color:#00c800}.openc3-yellow[data-v-e7a2e8b4] input{color:#ffdc00}.openc3-red[data-v-e7a2e8b4] input{color:#ff2d2d}.openc3-blue[data-v-e7a2e8b4] input{color:#09f}.openc3-purple[data-v-e7a2e8b4] input{color:#c800c8}.openc3-black[data-v-e7a2e8b4] input{color:#000}.openc3-white[data-v-e7a2e8b4] input{color:#fff}",""]),t["default"]=r},25478:function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";var _openc3_plugins_node_modules_babel_runtime_helpers_esm_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(70021),_openc3_plugins_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(56706),core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(58188),core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_2___default=__webpack_require__.n(core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_2__),core_js_modules_web_dom_collections_for_each_js__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__(1939),core_js_modules_web_dom_collections_for_each_js__WEBPACK_IMPORTED_MODULE_3___default=__webpack_require__.n(core_js_modules_web_dom_collections_for_each_js__WEBPACK_IMPORTED_MODULE_3__),core_js_modules_es_string_trim_js__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__(45794),core_js_modules_es_string_trim_js__WEBPACK_IMPORTED_MODULE_4___default=__webpack_require__.n(core_js_modules_es_string_trim_js__WEBPACK_IMPORTED_MODULE_4__),core_js_modules_es_array_includes_js__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__(39529),core_js_modules_es_array_includes_js__WEBPACK_IMPORTED_MODULE_5___default=__webpack_require__.n(core_js_modules_es_array_includes_js__WEBPACK_IMPORTED_MODULE_5__),core_js_modules_es_string_includes_js__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__(31235),core_js_modules_es_string_includes_js__WEBPACK_IMPORTED_MODULE_6___default=__webpack_require__.n(core_js_modules_es_string_includes_js__WEBPACK_IMPORTED_MODULE_6__),core_js_modules_es_regexp_exec_js__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__(77950),core_js_modules_es_regexp_exec_js__WEBPACK_IMPORTED_MODULE_7___default=__webpack_require__.n(core_js_modules_es_regexp_exec_js__WEBPACK_IMPORTED_MODULE_7__),core_js_modules_es_string_replace_js__WEBPACK_IMPORTED_MODULE_8__=__webpack_require__(85940),core_js_modules_es_string_replace_js__WEBPACK_IMPORTED_MODULE_8___default=__webpack_require__.n(core_js_modules_es_string_replace_js__WEBPACK_IMPORTED_MODULE_8__),_services_openc3_api__WEBPACK_IMPORTED_MODULE_9__=__webpack_require__(94008),_services_api__WEBPACK_IMPORTED_MODULE_10__=__webpack_require__(66291),_Widget__WEBPACK_IMPORTED_MODULE_11__=__webpack_require__(3498);__webpack_exports__["Z"]={mixins:[_Widget__WEBPACK_IMPORTED_MODULE_11__.Z],data:function(){return{api:null,screen:null,displaySendHazardous:!1,lastCmd:""}},computed:{buttonText:function(){return this.parameters[0]},eval:function(){return this.parameters[1]}},created:function(){var e=this;this.api=new _services_openc3_api__WEBPACK_IMPORTED_MODULE_9__.k,this.settings.forEach((function(t){"SCREEN"===t[0]&&(e.screen=t[1])}))},methods:{onClick:function onClick(){var _this2=this;return(0,_openc3_plugins_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.Z)((0,_openc3_plugins_node_modules_babel_runtime_helpers_esm_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0__.Z)().mark((function _callee(){var lines,self,screen,api,run_script,i,result;return(0,_openc3_plugins_node_modules_babel_runtime_helpers_esm_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0__.Z)().wrap((function _callee$(_context){while(1)switch(_context.prev=_context.next){case 0:lines=_this2.eval.split(";;"),self=_this2,screen=_this2.screen,api=_this2.api,run_script=_this2.runScript,i=0;case 6:if(!(i<lines.length)){_context.next=27;break}if(result=eval(lines[i].trim()),!(result instanceof Promise)){_context.next=24;break}return _context.prev=9,_context.next=12,result;case 12:_context.next=24;break;case 14:if(_context.prev=14,_context.t0=_context["catch"](9),!_context.t0.message.includes("is Hazardous")){_context.next=24;break}_this2.lastCmd=_context.t0.message.split("\n").pop(),_this2.displaySendHazardous=!0;case 19:if(!_this2.displaySendHazardous){_context.next=24;break}return _context.next=22,new Promise((function(e){return setTimeout(e,500)}));case 22:_context.next=19;break;case 24:i++,_context.next=6;break;case 27:case"end":return _context.stop()}}),_callee,null,[[9,14]])})))()},sendHazardousCmd:function sendHazardousCmd(){this.lastCmd=this.lastCmd.replace("cmd(","this.api.cmd_no_hazardous_check("),eval(this.lastCmd),this.displaySendHazardous=!1},cancelHazardousCmd:function(){this.displaySendHazardous=!1},runScript:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];_services_api__WEBPACK_IMPORTED_MODULE_10__.Z.post("/script-api/scripts/".concat(e,"/run")).then((function(e){t&&window.open("/tools/scriptrunner/".concat(e.data),"_blank")}))}}}},59138:function(e,t,n){"use strict";var i=n(70021),a=n(56706),s=(n(18178),n(66291));t["Z"]={props:{target:{type:String,require:!0}},methods:{getPresignedUrl:function(){var e=(0,a.Z)((0,i.Z)().mark((function e(t){var n;return(0,i.Z)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,s.Z.get("/openc3-api/storage/download/".concat(encodeURIComponent("".concat(window.openc3Scope,"/targets/").concat(this.target,"/public/").concat(t)),"?bucket=config"));case 2:return n=e.sent,e.abrupt("return",n.data.url);case 4:case"end":return e.stop()}}),e,this)})));function t(t){return e.apply(this,arguments)}return t}()}}},71398:function(e,t,n){"use strict";var i=n(3498);t["Z"]={mixins:[i.Z],props:{widgets:{type:Array,default:function(){return[]}}}}},59031:function(e,t,n){"use strict";n(18178),n(96708),n(32501),n(58188);var i=n(3498);n(80131);t["Z"]={mixins:[i.Z],props:{value:{default:null},limitsState:{type:String,default:null},counter:{default:null},formatString:null},data:function(){var e=this;return{curValue:null,prevValue:null,grayLevel:30,grayRate:5,valueId:null,colorBlind:!1,viewDetails:!1,contextMenuShown:!1,x:0,y:0,contextMenuOptions:[{title:"Details",action:function(){e.contextMenuShown=!1,e.viewDetails=!0}},{title:"Graph",action:function(){window.open("/tools/tlmgrapher/"+e.parameters[0]+"/"+e.parameters[1]+"/"+e.parameters[2],"_blank")}}]}},watch:{_counter:function(e,t){this.curValue!==this.prevValue?this.grayLevel=80:(this.grayLevel-=this.grayRate,this.grayLevel<30&&(this.grayLevel=30)),this.prevValue=this.curValue}},computed:{_value:function(){return this.curValue=this.value,null===this.curValue&&(this.$store.state.tlmViewerValues[this.valueId]?this.curValue=this.$store.state.tlmViewerValues[this.valueId][0]:this.curValue=null),this.curValue=this.formatValue(this.curValue),"true"===localStorage.colorblindMode&&""!==this.limitsLetter?"".concat(this.curValue," (").concat(this.limitsLetter,")"):this.curValue},_counter:function(){var e=this.counter;return null===e&&(e=this.$store.state.tlmViewerValues[this.valueId]?this.$store.state.tlmViewerValues[this.valueId][2]:null),e},valueClass:function(){return"value shrink pa-1 openc3-"+this.limitsColor},limitsColor:function(){var e=this.limitsState;if(null===e&&(e=this.$store.state.tlmViewerValues[this.valueId]?this.$store.state.tlmViewerValues[this.valueId][1]:null),null!=e)switch(e){case"GREEN":case"GREEN_HIGH":case"GREEN_LOW":return"green";case"YELLOW":case"YELLOW_HIGH":case"YELLOW_LOW":return"yellow";case"RED":case"RED_HIGH":case"RED_LOW":return"red";case"BLUE":return"blue";case"STALE":return"purple";default:return"white"}return""},limitsLetter:function(){var e=this.limitsState;if(null===e&&(e=this.$store.state.tlmViewerValues[this.valueId]?this.$store.state.tlmViewerValues[this.valueId][1]:null),null!=e){var t=e.charAt(0);return e.endsWith("_LOW")&&(t=t.toLowerCase()),t}return""}},created:function(){null!==this.value&&null!==this.limitsState||(this.valueId="".concat(this.parameters[0],"__").concat(this.parameters[1],"__").concat(this.parameters[2],"__").concat(this.getType()),this.$store.commit("tlmViewerAddItem",this.valueId))},destroyed:function(){this.$store.commit("tlmViewerDeleteItem",this.valueId)},methods:{getType:function(){var e="WITH_UNITS";return this.parameters[3]&&(e=this.parameters[3]),e},formatValue:function(e){if("Array"===Object.prototype.toString.call(e).slice(8,-1)){for(var t="[",n=0;n<e.length;n++)"String"===Object.prototype.toString.call(e[n]).slice(8,-1)?t+='"'+e[n]+'"':t+=e[n],n!=e.length-1&&(t+=", ");return t+="]",t}return"Object"===Object.prototype.toString.call(e).slice(8,-1)?"":this.formatString&&e?sprintf(this.formatString,e):""+e},showContextMenu:function(e){var t=this;e.preventDefault(),this.contextMenuShown=!1,this.x=e.clientX,this.y=e.clientY,this.$nextTick((function(){t.contextMenuShown=!0}))}}}},3498:function(e,t,n){"use strict";n(71245),n(58188),n(1939),n(68995),n(32501),n(18178);var i=n(49585);t["Z"]={props:{widgetIndex:{type:Number,default:null},parameters:{type:Array,default:function(){return[]}},settings:{type:Array,default:function(){return[]}},line:{type:String,default:""},lineNumber:{type:Number,default:0}},computed:{computedStyle:function(){var e=this,t={};return this.settings.forEach((function(n){var i=parseInt(n[0]);if(null!==e.widgetIndex){if(e.widgetIndex!==i)return;n=n.slice(1)}switch(n[0]){case"TEXTALIGN":t["text-align"]=n[1].toLowerCase();break;case"PADDING":t["padding"]=n[1]+"px !important";break;case"MARGIN":t["margin"]=n[1]+"px !important";break;case"BACKCOLOR":t["background-color"]=e.getColor(n.slice(1));break;case"TEXTCOLOR":t["color"]=e.getColor(n.slice(1));break;case"BORDERCOLOR":t["border-width"]="1px",t["border-style"]="solid",t["border-color"]=e.getColor(n.slice(1));break;case"WIDTH":t["width"]=n[1]+"px !important";break;case"HEIGHT":t["height"]=n[1]+"px !important";break;case"RAW":t[n[1].toLowerCase()]=n[2];break}})),t}},methods:{verifyNumParams:function(e,t,n){for(var a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"",s={line:this.line,lineNumber:this.lineNumber,keyword:e,parameters:this.parameters},l=1;l<=t;l++)if(void 0===this.parameters[l-1])throw new i.y(s,"Not enough parameters for ".concat(e,"."),a,"https://openc3.com/docs/v5");if(n&&void 0===!this.parameters[n])throw new i.y(s,"Too many parameters for ".concat(e,"."),a,"https://openc3.com/docs/v5")},getColor:function(e){switch(e.length){case 1:return e[0].toLowerCase();case 3:return"rgb(".concat(e[0],",").concat(e[1],",").concat(e[2],")")}}}}},38330:function(e,t,n){"use strict";n(58188),n(1951);t["Z"]={data:function(){return{originalWidthSetting:null}},created:function(){this.originalWidthSetting=["WIDTH",this.width],this.resetWidth()},beforeUpdate:function(){this.resetWidth()},methods:{resetWidth:function(){this.settings.some((function(e){return"WIDTH"===e[0]}))||this.settings.unshift(this.originalWidthSetting)}}}},66291:function(e,t,n){"use strict";var i=n(34948),a=n(70021),s=n(56706),l=n(2256),r=function(){var e=(0,s.Z)((0,a.Z)().mark((function e(t,n){var i,s,r,o,c,u,d,m,h,p=arguments;return(0,a.Z)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(i=p.length>2&&void 0!==p[2]?p[2]:{},s=i.data,r=i.params,o=void 0===r?{}:r,c=i.headers,u=i.noAuth,d=void 0!==u&&u,m=i.noScope,h=void 0!==m&&m,d){e.next=11;break}return e.prev=2,e.next=5,OpenC3Auth.updateToken(OpenC3Auth.defaultMinValidity);case 5:e.next=10;break;case 7:e.prev=7,e.t0=e["catch"](2),OpenC3Auth.login();case 10:c["Authorization"]=localStorage.openc3Token;case 11:return h||o["scope"]||(o["scope"]=window.openc3Scope),e.abrupt("return",(0,l.Z)({method:t,url:n,data:s,params:o,headers:c}));case 13:case"end":return e.stop()}}),e,null,[[2,7]])})));return function(t,n){return e.apply(this,arguments)}}(),o={Accept:"application/json"},c=(0,i.Z)((0,i.Z)({},o),{},{"Content-Type":"application/json"});t["Z"]={get:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.params,i=t.headers,a=void 0===i?o:i,s=t.noScope,l=t.noAuth;return r("get",e,{params:n,headers:a,noScope:s,noAuth:l})},put:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.data,i=t.params,a=t.headers,s=void 0===a?c:a,l=t.noScope,o=t.noAuth;return r("put",e,{data:n,params:i,headers:s,noScope:l,noAuth:o})},post:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.data,i=t.params,a=t.headers,s=void 0===a?c:a,l=t.noScope,o=t.noAuth;return r("post",e,{data:n,params:i,headers:s,noScope:l,noAuth:o})},delete:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.params,i=t.headers,a=void 0===i?o:i,s=t.noScope,l=t.noAuth;return r("delete",e,{params:n,headers:a,noScope:s,noAuth:l})}}},2256:function(e,t,n){"use strict";n(39529),n(31235),n(58188),n(88233);var i=n(89644),a=n.n(i),s=n(44091),l=new s["default"],r=a().create({baseURL:location.origin,timeout:6e4,params:{}});r.interceptors.response.use((function(e){return e}),(function(e){if(e.response){var t,n,i,a,s,r,o,c,u,d;if(401===e.response.status&&OpenC3Auth.updateToken(OpenC3Auth.defaultMinValidity,!0),e.response.headers["ignore-errors"]&&e.response.headers["ignore-errors"].includes(e.response.status.toString()))return Promise.reject(e);var m="HTTP ".concat(e.response.status," - ");if(null!==(t=e.response)&&void 0!==t&&t.statusText&&(m+="".concat(e.response.statusText," ")),null!==(n=e.response)&&void 0!==n&&null!==(i=n.config)&&void 0!==i&&i.data&&(m+="".concat(e.response.config.data," ")),null!==(a=e.response)&&void 0!==a&&null!==(s=a.data)&&void 0!==s&&s.message)m+="".concat(e.response.data.message);else if(null!==(r=e.response)&&void 0!==r&&null!==(o=r.data)&&void 0!==o&&o.exception)m+="".concat(e.response.data.exception);else if(null!==(c=e.response)&&void 0!==c&&null!==(u=c.data)&&void 0!==u&&null!==(d=u.error)&&void 0!==d&&d.message)e.response.data.error.class&&(m+="".concat(e.response.data.error.class," ")),m+="".concat(e.response.data.error.message);else{var h;m+="".concat(null===(h=e.response)||void 0===h?void 0:h.data)}throw l.$notify.serious({title:"Network error",body:m}),e}throw e})),t["Z"]=r},32101:function(e,t,n){"use strict";n.d(t,{Z:function(){return r}});var i=n(34948),a=n(14567),s=n(16812),l=n(47146);l.ju.staleThreshold=60;var r=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"/openc3-api/cable";(0,a.Z)(this,e),this._cable=l.zD(t)}return(0,s.Z)(e,[{key:"disconnect",value:function(){this._cable.disconnect()}},{key:"createSubscription",value:function(e,t){var n=this,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return OpenC3Auth.updateToken(OpenC3Auth.defaultMinValidity).then((function(){return n._cable.subscriptions.create((0,i.Z)({channel:e,scope:t,token:localStorage.openc3Token},s),a)}))}}]),e}()},49585:function(e,t,n){"use strict";n.d(t,{p:function(){return r},y:function(){return l}});var i=n(26274),a=n(16812),s=n(14567),l=(n(77950),n(85940),n(36728),n(45794),(0,a.Z)((function e(t,n){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"";(0,s.Z)(this,e),this.keyword=t.keyword,this.parameters=t.parameters,this.filename=t.filename,this.line=t.line,this.lineNumber=t.lineNumber,this.message=n,this.usage=i,this.url=a}))),r=function(){function e(){(0,s.Z)(this,e),(0,i.Z)(this,"keyword",null),(0,i.Z)(this,"parameters",[]),(0,i.Z)(this,"filename",""),(0,i.Z)(this,"line",""),(0,i.Z)(this,"lineNumber",0),(0,i.Z)(this,"url","https://openc3.com/docs/v5")}return(0,a.Z)(e,[{key:"verify_num_parameters",value:function(e,t){for(var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",i=1;i<=e;i++)if(void 0===this.parameters[i-1])throw new l(this,"Not enough parameters for ".concat(this.keyword,"."),n,this.url);if(t&&void 0===!this.parameters[t])throw new l(this,"Too many parameters for ".concat(this.keyword,"."),n,this.url)}},{key:"remove_quotes",value:function(e){if(e.length<2)return e;var t=e.charAt(0);if('"'!==t&&"'"!==t)return e;var n=e.charAt(e.length-1);return t!==n?e:e.substring(1,e.length-1)}},{key:"scan_string",value:function(e,t){if(!t.global)throw"rx must have 'global' flag set";var n=[];return e.replace(t,(function(e){return n.push(e),e})),n}},{key:"parse_string",value:function(e,t,n,i,a){var s=!1;this.line="",this.keyword=null,this.parameters=[],this.filename=t;for(var l=e.split("\n"),r=l.length,o=0;o<r;o++){this.lineNumber=o+1;var c=l[o].trim(),u=/("([^\\"]|\\.)*")|('([^\\']|\\.)*')|\S+/g,d=this.scan_string(c,u),m="";if(d.length>0&&(m+=d[0]),s?this.line=this.line+c:(this.line=c,0===m.length||"#"===m.charAt(0)?this.keyword=null:this.keyword=m.toUpperCase(),this.parameters=[]),null!==this.keyword){s&&(i?this.parameters.push(this.remove_quotes(m)):this.parameters.push(m),s=!1);var h=d.length;if(h>1)for(var p=1;p<h;p++){var A=d[p];if(A.length>0&&"#"===A.charAt(0)&&!(A.length>1&&"{"===A.charAt(1)))break;1!==A.length||"&"!==A.charAt(0)||p!==h-1?(s=!1,i?this.parameters.push(this.remove_quotes(A)):this.parameters.push(A)):s=!0}s?this.line.length>=1?this.line=this.line.substring(0,this.line.length-1):this.line="":a(this.keyword,this.parameters,c,this.lineNumber)}else n&&!s&&a(this.keyword,this.parameters,c,this.lineNumber)}}}]),e}()},94008:function(e,t,n){"use strict";n.d(t,{k:function(){return d}});var i=n(56632),a=n(70021),s=n(34948),l=n(56706),r=n(14567),o=n(16812),c=n(26274),u=(n(71372),n(71245),n(77950),n(39529),n(58188),n(13675),n(94898),n(5825),n(67170),n(38857),n(58329),n(76279),n(427),n(40171),n(57093),n(11159),n(42516),n(64349),n(15273),n(16729),n(41801),n(50574),n(5787),n(39271),n(73160),n(65688),n(93157),n(33333),n(70315),n(50556),n(29224),n(43450),n(27233),n(28673),n(35734),n(88233),n(2256)),d=function(){function e(){(0,r.Z)(this,e),(0,c.Z)(this,"id",1)}return(0,o.Z)(e,[{key:"exec",value:function(){var e=(0,l.Z)((0,a.Z)().mark((function e(t,n){var i,l,r,o,c=arguments;return(0,a.Z)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return i=c.length>2&&void 0!==c[2]?c[2]:{},l=c.length>3&&void 0!==c[3]?c[3]:{},e.prev=2,e.next=5,OpenC3Auth.updateToken(OpenC3Auth.defaultMinValidity);case 5:e.next=10;break;case 7:e.prev=7,e.t0=e["catch"](2),OpenC3Auth.login();case 10:return this.id=this.id+1,e.prev=11,i["scope"]=window.openc3Scope,e.next=15,u.Z.post("/openc3-api/api",{jsonrpc:"2.0",method:t,params:n,id:this.id,keyword_params:i},{headers:(0,s.Z)({Authorization:localStorage.openc3Token,"Content-Type":"application/json-rpc"},l)});case 15:return r=e.sent,e.abrupt("return",r.data.result);case 19:throw e.prev=19,e.t1=e["catch"](11),o=new Error,e.t1.response?(o.name=e.t1.response.data.error.data.class,o.message=e.t1.response.data.error.data.message):e.t1.request?(o.name="Request error",o.message="Request error, no response received"):o.name="Unknown error",o;case 24:case"end":return e.stop()}}),e,this,[[2,7],[11,19]])})));function t(t,n){return e.apply(this,arguments)}return t}()},{key:"decode_openc3_type",value:function(e){if(null!==e&&"object"===(0,i.Z)(e)&&"Float"==e.json_class&&e.raw){if("NaN"==e.raw)return NaN;if("Infinity"==e.raw)return 1/0;if("-Infinity"==e.raw)return-1/0}return null}},{key:"encode_openc3_type",value:function(e){return Number.isNaN(e)?{json_class:"Float",raw:"NaN"}:e==Number.POSITIVE_INFINITY?{json_class:"Float",raw:"Infinity"}:e==Number.NEGATIVE_INFINITY?{json_class:"Float",raw:"-Infinity"}:null}},{key:"get_all_interface_info",value:function(){return this.exec("get_all_interface_info",[])}},{key:"connect_interface",value:function(e){return this.exec("connect_interface",[e])}},{key:"disconnect_interface",value:function(e){return this.exec("disconnect_interface",[e])}},{key:"get_all_router_info",value:function(){return this.exec("get_all_router_info",[])}},{key:"connect_router",value:function(e){return this.exec("connect_router",[e])}},{key:"disconnect_router",value:function(e){return this.exec("disconnect_router",[e])}},{key:"get_all_target_info",value:function(){return this.exec("get_all_target_info",[])}},{key:"get_tlm_cnts",value:function(e){return this.exec("get_tlm_cnts",[e])}},{key:"get_item",value:function(e,t,n){return this.exec("get_item",[e,t,n])}},{key:"get_parameter",value:function(e,t,n){return this.exec("get_parameter",[e,t,n])}},{key:"get_all_packet_logger_info",value:function(){return this.exec("get_all_packet_logger_info",[])}},{key:"start_logging",value:function(){return this.exec("start_logging",[])}},{key:"stop_logging",value:function(){return this.exec("stop_logging",[])}},{key:"start_cmd_log",value:function(e){return this.exec("start_cmd_log",[e])}},{key:"start_tlm_log",value:function(e){return this.exec("start_tlm_log",[e])}},{key:"stop_cmd_log",value:function(e){return this.exec("stop_cmd_log",[e])}},{key:"stop_tlm_log",value:function(e){return this.exec("stop_tlm_log",[e])}},{key:"get_server_status",value:function(){return this.exec("get_server_status",[])}},{key:"get_limits_sets",value:function(){return this.exec("get_limits_sets",[])}},{key:"get_limits_set",value:function(){return this.exec("get_limits_set",[])}},{key:"set_limits_set",value:function(e){return this.exec("set_limits_set",[e])}},{key:"get_background_tasks",value:function(){return this.exec("get_background_tasks",[])}},{key:"start_background_task",value:function(e){return this.exec("start_background_task",[e])}},{key:"stop_background_task",value:function(e){return this.exec("stop_background_task",[e])}},{key:"get_oldest_logfile",value:function(){return this.exec("get_oldest_logfile",[])}},{key:"get_target",value:function(e){return this.exec("get_target",[e])}},{key:"get_target_list",value:function(){return this.exec("get_target_list",[])}},{key:"get_telemetry",value:function(e,t){return this.exec("get_telemetry",[e,t])}},{key:"get_all_telemetry",value:function(e){return this.exec("get_all_telemetry",[e])}},{key:"get_all_telemetry_names",value:function(e){return this.exec("get_all_telemetry_names",[e])}},{key:"get_tlm_packet",value:function(){var e=(0,l.Z)((0,a.Z)().mark((function e(t,n,i){var s,l,r,o;return(0,a.Z)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,this.exec("get_tlm_packet",[t,n],{type:i});case 2:if(s=e.sent,null!=s)for(l=s.length,r=null,o=0;o<l;o++)r=this.decode_openc3_type(s[o][1]),null!==r&&(s[o][1]=r);return e.abrupt("return",s);case 5:case"end":return e.stop()}}),e,this)})));function t(t,n,i){return e.apply(this,arguments)}return t}()},{key:"get_packet_derived_items",value:function(e,t){return this.exec("get_packet_derived_items",[e,t])}},{key:"get_tlm_buffer",value:function(e,t){return this.exec("get_tlm_buffer",[e,t])}},{key:"get_tlm_values",value:function(){var e=(0,l.Z)((0,a.Z)().mark((function e(t){var n,i,s,l;return(0,a.Z)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,this.exec("get_tlm_values",[t]);case 2:for(n=e.sent,i=n[0].length,s=null,l=0;l<i;l++)s=this.decode_openc3_type(n[0][l]),null!==s&&(n[0][l]=s);return e.abrupt("return",n);case 7:case"end":return e.stop()}}),e,this)})));function t(t){return e.apply(this,arguments)}return t}()},{key:"get_limits",value:function(e,t,n){return this.exec("get_limits",[e,t,n])}},{key:"tlm",value:function(){var e=(0,l.Z)((0,a.Z)().mark((function e(t,n,i){var s,l,r,o,c=arguments;return(0,a.Z)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(s=c.length>3&&void 0!==c[3]?c[3]:"CONVERTED",l=null,void 0!==n){e.next=8;break}return e.next=5,this.exec("tlm",[t]);case 5:l=e.sent,e.next=24;break;case 8:if(void 0!==i){e.next=21;break}if(!["RAW","CONVERTED","FORMATTED","WITH_UNITS"].includes(n)){e.next=15;break}return e.next=12,this.exec("tlm",[t],{type:n});case 12:l=e.sent,e.next=19;break;case 15:throw r=new Error,r.name="TypeError",r.message="Invalid data type ".concat(n,". Valid options are RAW, CONVERTED, FORMATTED, and WITH_UNITS."),r;case 19:e.next=24;break;case 21:return e.next=23,this.exec("tlm",[t,n,i],{type:s});case 23:l=e.sent;case 24:return o=this.decode_openc3_type(l),null!==o&&(l=o),e.abrupt("return",l);case 27:case"end":return e.stop()}}),e,this)})));function t(t,n,i){return e.apply(this,arguments)}return t}()},{key:"get_all_commands",value:function(e){return this.exec("get_all_commands",[e])}},{key:"get_all_command_names",value:function(e){return this.exec("get_all_command_names",[e])}},{key:"get_command",value:function(e,t){return this.exec("get_command",[e,t])}},{key:"get_cmd_cnts",value:function(e){return this.exec("get_cmd_cnts",[e])}},{key:"get_cmd_value",value:function(e,t,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"CONVERTED";return this.exec("get_cmd_value",[e,t,n,i])}},{key:"get_cmd_buffer",value:function(e,t){return this.exec("get_cmd_buffer",[e,t])}},{key:"_cmd",value:function(e,t,n,i,a){var s=null;for(var l in i)Object.prototype.hasOwnProperty.call(i,l)&&(s=this.encode_openc3_type(i[l]),null!==s&&(i[l]=s));return this.exec(e,[t,n,i],{},a)}},{key:"get_cmd_hazardous",value:function(e,t,n){return void 0===t?this.exec("get_cmd_hazardous",e):this._cmd("get_cmd_hazardous",e,t,n)}},{key:"cmd",value:function(e,t,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return void 0===t?this.exec("cmd",e,{},i):this._cmd("cmd",e,t,n,i)}},{key:"cmd_no_range_check",value:function(e,t,n){return void 0===t?this.exec("cmd_no_range_check",e):this._cmd("cmd_no_range_check",e,t,n)}},{key:"cmd_raw",value:function(e,t,n){return void 0===t?this.exec("cmd_raw",e):this._cmd("cmd_raw",e,t,n)}},{key:"cmd_raw_no_range_check",value:function(e,t,n){return void 0===t?this.exec("cmd_raw_no_range_check",e):this._cmd("cmd_raw_no_range_check",e,t,n)}},{key:"cmd_no_hazardous_check",value:function(e,t,n){return void 0===t?this.exec("cmd_no_hazardous_check",e):this._cmd("cmd_no_hazardous_check",e,t,n)}},{key:"cmd_no_checks",value:function(e,t,n){return void 0===t?this.exec("cmd_no_checks",e):this._cmd("cmd_no_checks",e,t,n)}},{key:"cmd_raw_no_hazardous_check",value:function(e,t,n){return void 0===t?this.exec("cmd_raw_no_hazardous_check",e):this._cmd("cmd_raw_no_hazardous_check",e,t,n)}},{key:"cmd_raw_no_checks",value:function(e,t,n){return void 0===t?this.exec("cmd_raw_no_checks",e):this._cmd("cmd_raw_no_checks",e,t,n)}},{key:"get_interface_names",value:function(){return this.exec("get_interface_names",[])}},{key:"send_raw",value:function(e,t){return this.exec("send_raw",[e,t])}},{key:"list_configs",value:function(e){return this.exec("list_configs",[e])}},{key:"load_config",value:function(e,t){return this.exec("load_config",[e,t])}},{key:"save_config",value:function(e,t,n){return this.exec("save_config",[e,t,n])}},{key:"delete_config",value:function(e,t){return this.exec("delete_config",[e,t])}},{key:"get_out_of_limits",value:function(){return this.exec("get_out_of_limits",[])}},{key:"get_overall_limits_state",value:function(e){return this.exec("get_overall_limits_state",[e])}},{key:"list_settings",value:function(){return this.exec("list_settings",[])}},{key:"get_all_settings",value:function(){return this.exec("get_all_settings",[])}},{key:"get_setting",value:function(e){return this.exec("get_setting",[e])}},{key:"get_settings",value:function(e){return this.exec("get_settings",e)}},{key:"save_setting",value:function(e,t){return this.exec("save_setting",[e,t])}},{key:"hashString",value:function(){var e=(0,l.Z)((0,a.Z)().mark((function e(t){var n,i,s;return(0,a.Z)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(!window.isSecureContext){e.next=7;break}return n=(new TextEncoder).encode(t),e.next=4,crypto.subtle.digest("SHA-256",n);case 4:return i=e.sent,s=new Uint8Array(i),e.abrupt("return",Array.from(s).map((function(e){return e.toString(16).padStart(2,"0")})).join(""));case 7:case"end":return e.stop()}}),e)})));function t(t){return e.apply(this,arguments)}return t}()}]),e}()},36649:function(e,t,n){var i=n(24960);i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[e.id,i,""]]),i.locals&&(e.exports=i.locals);var a=n(3514).Z;a("7965124a",i,!0,{sourceMap:!1,shadowMode:!1})},76180:function(e,t,n){var i=n(73753);i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[e.id,i,""]]),i.locals&&(e.exports=i.locals);var a=n(3514).Z;a("14b15eed",i,!0,{sourceMap:!1,shadowMode:!1})},97828:function(e,t,n){var i=n(44753);i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[e.id,i,""]]),i.locals&&(e.exports=i.locals);var a=n(3514).Z;a("926ea70e",i,!0,{sourceMap:!1,shadowMode:!1})},49824:function(e,t,n){var i=n(20363);i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[e.id,i,""]]),i.locals&&(e.exports=i.locals);var a=n(3514).Z;a("7bc1978b",i,!0,{sourceMap:!1,shadowMode:!1})},76224:function(e,t,n){var i=n(63865);i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[e.id,i,""]]),i.locals&&(e.exports=i.locals);var a=n(3514).Z;a("6c1c75db",i,!0,{sourceMap:!1,shadowMode:!1})},27826:function(e,t,n){var i=n(1992);i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[e.id,i,""]]),i.locals&&(e.exports=i.locals);var a=n(3514).Z;a("bc804822",i,!0,{sourceMap:!1,shadowMode:!1})},17359:function(e,t,n){var i=n(70381);i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[e.id,i,""]]),i.locals&&(e.exports=i.locals);var a=n(3514).Z;a("59f27ac2",i,!0,{sourceMap:!1,shadowMode:!1})},81557:function(e,t,n){var i=n(29085);i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[e.id,i,""]]),i.locals&&(e.exports=i.locals);var a=n(3514).Z;a("971758ee",i,!0,{sourceMap:!1,shadowMode:!1})},97503:function(e,t,n){var i=n(87504);i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[e.id,i,""]]),i.locals&&(e.exports=i.locals);var a=n(3514).Z;a("ba10ac92",i,!0,{sourceMap:!1,shadowMode:!1})},81418:function(e,t,n){var i=n(34763);i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[e.id,i,""]]),i.locals&&(e.exports=i.locals);var a=n(3514).Z;a("51faeeca",i,!0,{sourceMap:!1,shadowMode:!1})},81271:function(e,t,n){var i=n(3472);i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[e.id,i,""]]),i.locals&&(e.exports=i.locals);var a=n(3514).Z;a("347c73ab",i,!0,{sourceMap:!1,shadowMode:!1})},75556:function(e,t,n){var i=n(96297);i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[e.id,i,""]]),i.locals&&(e.exports=i.locals);var a=n(3514).Z;a("53575060",i,!0,{sourceMap:!1,shadowMode:!1})},33622:function(e,t,n){var i=n(11325);i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[e.id,i,""]]),i.locals&&(e.exports=i.locals);var a=n(3514).Z;a("2f33f81e",i,!0,{sourceMap:!1,shadowMode:!1})},3651:function(e,t,n){var i=n(93016);i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[e.id,i,""]]),i.locals&&(e.exports=i.locals);var a=n(3514).Z;a("517a0fdc",i,!0,{sourceMap:!1,shadowMode:!1})},57143:function(e,t,n){var i=n(67061);i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[e.id,i,""]]),i.locals&&(e.exports=i.locals);var a=n(3514).Z;a("84bdd36c",i,!0,{sourceMap:!1,shadowMode:!1})},28648:function(e,t,n){var i=n(47001);i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[e.id,i,""]]),i.locals&&(e.exports=i.locals);var a=n(3514).Z;a("f828ae20",i,!0,{sourceMap:!1,shadowMode:!1})},87164:function(e,t,n){var i=n(98920);i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[e.id,i,""]]),i.locals&&(e.exports=i.locals);var a=n(3514).Z;a("7881f577",i,!0,{sourceMap:!1,shadowMode:!1})},61061:function(e,t,n){var i=n(10704);i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[e.id,i,""]]),i.locals&&(e.exports=i.locals);var a=n(3514).Z;a("76375e7e",i,!0,{sourceMap:!1,shadowMode:!1})},75500:function(e,t,n){var i=n(59356);i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[e.id,i,""]]),i.locals&&(e.exports=i.locals);var a=n(3514).Z;a("08dcc4a9",i,!0,{sourceMap:!1,shadowMode:!1})},97946:function(e,t,n){var i=n(8081);i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[e.id,i,""]]),i.locals&&(e.exports=i.locals);var a=n(3514).Z;a("6db31a2d",i,!0,{sourceMap:!1,shadowMode:!1})},51645:function(e,t,n){var i=n(45293);i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[e.id,i,""]]),i.locals&&(e.exports=i.locals);var a=n(3514).Z;a("9fdf8476",i,!0,{sourceMap:!1,shadowMode:!1})}}]);
|
2
|
+
//# sourceMappingURL=409.js.map
|