openc3-cosmos-tool-packetviewer 5.11.3 → 5.12.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/tools/packetviewer/js/114.js +2 -0
- data/tools/packetviewer/js/114.js.map +1 -0
- data/tools/packetviewer/js/197.js +2 -0
- data/tools/packetviewer/js/197.js.map +1 -0
- data/tools/packetviewer/js/540.js +2 -0
- data/tools/packetviewer/js/{388.js.map → 540.js.map} +1 -1
- data/tools/packetviewer/js/app.js +1 -1
- data/tools/packetviewer/js/app.js.map +1 -1
- metadata +8 -8
- data/tools/packetviewer/js/259.js +0 -2
- data/tools/packetviewer/js/259.js.map +0 -1
- data/tools/packetviewer/js/388.js +0 -2
- data/tools/packetviewer/js/769.js +0 -4
- data/tools/packetviewer/js/769.js.map +0 -1
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: openc3-cosmos-tool-packetviewer
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 5.
|
4
|
+
version: 5.12.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ryan Melton
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2023-10
|
12
|
+
date: 2023-11-10 00:00:00.000000000 Z
|
13
13
|
dependencies: []
|
14
14
|
description: " This plugin adds the OpenC3 COSMOS Packet Viewer tool\n"
|
15
15
|
email:
|
@@ -24,12 +24,12 @@ files:
|
|
24
24
|
- Rakefile
|
25
25
|
- plugin.txt
|
26
26
|
- tools/packetviewer/index.html
|
27
|
-
- tools/packetviewer/js/
|
28
|
-
- tools/packetviewer/js/
|
29
|
-
- tools/packetviewer/js/
|
30
|
-
- tools/packetviewer/js/
|
31
|
-
- tools/packetviewer/js/
|
32
|
-
- tools/packetviewer/js/
|
27
|
+
- tools/packetviewer/js/114.js
|
28
|
+
- tools/packetviewer/js/114.js.map
|
29
|
+
- tools/packetviewer/js/197.js
|
30
|
+
- tools/packetviewer/js/197.js.map
|
31
|
+
- tools/packetviewer/js/540.js
|
32
|
+
- tools/packetviewer/js/540.js.map
|
33
33
|
- tools/packetviewer/js/app.js
|
34
34
|
- tools/packetviewer/js/app.js.map
|
35
35
|
homepage: https://github.com/OpenC3/openc3
|
@@ -1,2 +0,0 @@
|
|
1
|
-
(self["webpackChunk_openc3_cosmos_tool_packetviewer"]=self["webpackChunk_openc3_cosmos_tool_packetviewer"]||[]).push([[259],{259:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return Q}});n(7950),n(4908),n(4083),n(3450),n(8995);function a(){var e="/openc3/plugins/packages/openc3-cosmos-tool-packetviewer/src/tools/PacketViewer/PacketViewer.vue",t="8a55503284d1fd8b318efbb202504adb517b458a",n=new Function("return this")(),l="__coverage__",i={path:"/openc3/plugins/packages/openc3-cosmos-tool-packetviewer/src/tools/PacketViewer/PacketViewer.vue",statementMap:{0:{start:{line:1,column:13},end:{line:13,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:12,column:1699}},4:{start:{line:1,column:362},end:{line:1,column:394}},5:{start:{line:1,column:683},end:{line:1,column:697}},6:{start:{line:8,column:103},end:{line:8,column:128}},7:{start:{line:8,column:191},end:{line:12,column:51}},8:{start:{line:10,column:16},end:{line:10,column:29}},9:{start:{line:12,column:93},end:{line:12,column:190}},10:{start:{line:12,column:233},end:{line:12,column:432}},11:{start:{line:12,column:471},end:{line:12,column:628}},12:{start:{line:12,column:734},end:{line:12,column:838}},13:{start:{line:12,column:826},end:{line:12,column:838}},14:{start:{line:12,column:838},end:{line:12,column:863}},15:{start:{line:12,column:924},end:{line:12,column:945}},16:{start:{line:12,column:1360},end:{line:12,column:1388}},17:{start:{line:12,column:1644},end:{line:12,column:1677}},18:{start:{line:14,column:22},end:{line:14,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:13,column:1}},line:1},1:{name:"(anonymous_1)",decl:{start:{line:1,column:345},end:{line:1,column:346}},loc:{start:{line:1,column:361},end:{line:1,column:395}},line:1},2:{name:"(anonymous_2)",decl:{start:{line:1,column:667},end:{line:1,column:668}},loc:{start:{line:1,column:682},end:{line:1,column:698}},line:1},3:{name:"(anonymous_3)",decl:{start:{line:8,column:86},end:{line:8,column:87}},loc:{start:{line:8,column:102},end:{line:8,column:129}},line:8},4:{name:"(anonymous_4)",decl:{start:{line:8,column:172},end:{line:8,column:173}},loc:{start:{line:8,column:190},end:{line:12,column:52}},line:8},5:{name:"(anonymous_5)",decl:{start:{line:9,column:19},end:{line:9,column:20}},loc:{start:{line:9,column:32},end:{line:11,column:15}},line:9},6:{name:"(anonymous_6)",decl:{start:{line:12,column:74},end:{line:12,column:75}},loc:{start:{line:12,column:92},end:{line:12,column:191}},line:12},7:{name:"(anonymous_7)",decl:{start:{line:12,column:214},end:{line:12,column:215}},loc:{start:{line:12,column:232},end:{line:12,column:433}},line:12},8:{name:"(anonymous_8)",decl:{start:{line:12,column:460},end:{line:12,column:461}},loc:{start:{line:12,column:470},end:{line:12,column:629}},line:12},9:{name:"(anonymous_9)",decl:{start:{line:12,column:717},end:{line:12,column:718}},loc:{start:{line:12,column:733},end:{line:12,column:864}},line:12},10:{name:"(anonymous_10)",decl:{start:{line:12,column:908},end:{line:12,column:909}},loc:{start:{line:12,column:923},end:{line:12,column:946}},line:12},11:{name:"(anonymous_11)",decl:{start:{line:12,column:1343},end:{line:12,column:1344}},loc:{start:{line:12,column:1359},end:{line:12,column:1389}},line:12},12:{name:"(anonymous_12)",decl:{start:{line:12,column:1627},end:{line:12,column:1628}},loc:{start:{line:12,column:1643},end:{line:12,column:1678}},line:12}},branchMap:{0:{loc:{start:{line:12,column:140},end:{line:12,column:189}},type:"cond-expr",locations:[{start:{line:12,column:155},end:{line:12,column:180}},{start:{line:12,column:181},end:{line:12,column:189}}],line:12},1:{loc:{start:{line:12,column:734},end:{line:12,column:838}},type:"if",locations:[{start:{line:12,column:734},end:{line:12,column:838}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:12},2:{loc:{start:{line:12,column:737},end:{line:12,column:825}},type:"binary-expr",locations:[{start:{line:12,column:737},end:{line:12,column:764}},{start:{line:12,column:766},end:{line:12,column:825}}],line:12}},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},b:{0:[0,0],1:[0,0],2:[0,0]},_coverageSchema:"1a1c01bbd47fc00a2c39e90264f33305004495a9",hash:"8a55503284d1fd8b318efbb202504adb517b458a"},s=n[l]||(n[l]={});s[e]&&s[e].hash===t||(s[e]=i);var r=s[e];return a=function(){return r},r}a(),a().s[0]++;var l=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:{menus:e.menus,title:e.title}}),e._v(" "),t("v-card",{staticStyle:{padding:"10px"}},[t("target-packet-item-chooser",{attrs:{"initial-target-name":this.$route.params.target,"initial-packet-name":this.$route.params.packet},on:{"on-set":function(t){return a().f[1]++,a().s[4]++,e.packetChanged(t)}}}),e._v(" "),t("v-card-title",{staticStyle:{"padding-top":"0px"}},[e._v("\n Items\n "),t("v-spacer"),e._v(" "),t("v-text-field",{attrs:{"append-icon":"mdi-magnify",label:"Search","single-line":"","hide-details":""},model:{value:e.search,callback:function(t){a().f[2]++,a().s[5]++,e.search=t},expression:"search"}})],1),e._v(" "),t("v-data-table",{attrs:{headers:e.headers,items:e.rows,search:e.search,"items-per-page":e.itemsPerPage,"footer-props":{itemsPerPageOptions:[10,20,50,100,500,1e3],showFirstLastPage:!0,firstIcon:"mdi-page-first",lastIcon:"mdi-page-last",prevIcon:"mdi-chevron-left",nextIcon:"mdi-chevron-right"},"calculate-widths":"","multi-sort":"",dense:""},on:{"update:items-per-page":function(t){a().f[3]++,a().s[6]++,e.itemsPerPage=t}},scopedSlots:e._u([{key:"item.index",fn:function(n){var l=n.item;return a().f[4]++,a().s[7]++,[t("span",[e._v("\n "+e._s(e.rows.map((function(e){return a().f[5]++,a().s[8]++,e.name})).indexOf(l.name))+"\n ")])]}},{key:"item.name",fn:function(n){var l=n.item;return a().f[6]++,a().s[9]++,[e._v("\n "+e._s(l.name)),l.derived?(a().b[0][0]++,t("span",[e._v(" *")])):(a().b[0][1]++,e._e())]}},{key:"item.value",fn:function(n){var l=n.item;return a().f[7]++,a().s[10]++,[t("value-widget",{attrs:{value:l.value,"limits-state":l.limitsState,counter:l.counter,parameters:[e.targetName,e.packetName,l.name],settings:[["WIDTH","100%"]]}})]}},{key:"footer.prepend",fn:function(){return a().f[8]++,a().s[11]++,[e._v("* indicates a \n "),t("a",{attrs:{href:"https://openc3.com/docs/v5/telemetry#derived-items"}},[e._v("DERIVED")]),e._v(" item")]},proxy:!0}])})],1),e._v(" "),t("v-dialog",{attrs:{"max-width":"300"},on:{keydown:function(t){if(a().f[9]++,a().s[12]++,a().b[2][0]++,!t.type.indexOf("key")&&(a().b[2][1]++,e._k(t.keyCode,"esc",27,t.key,["Esc","Escape"])))return a().b[1][0]++,a().s[13]++,null;a().b[1][1]++,a().s[14]++,e.optionsDialog=!1}},model:{value:e.optionsDialog,callback:function(t){a().f[10]++,a().s[15]++,e.optionsDialog=t},expression:"optionsDialog"}},[t("v-card",[t("v-system-bar",[t("v-spacer"),e._v(" "),t("span",[e._v("Options")]),e._v(" "),t("v-spacer")],1),e._v(" "),t("v-card-text",[t("div",{staticClass:"pa-3"},[t("v-text-field",{attrs:{min:"0",max:"10000",step:"100",type:"number",label:"Refresh Interval (ms)",value:e.refreshInterval,"data-test":"refresh-interval"},on:{change:function(t){a().f[11]++,a().s[16]++,e.refreshInterval=t}}})],1),e._v(" "),t("div",{staticClass:"pa-3"},[t("v-text-field",{attrs:{min:"1",max:"10000",step:"1",type:"number",label:"Time at which to mark data Stale (s)",value:e.staleLimit,"data-test":"stale-limit"},on:{change:function(t){a().f[12]++,a().s[17]++,e.staleLimit=parseInt(t)}}})],1)])],1)],1)],1)},i=(a().s[18]++,[]),s=(n(6728),n(8188),n(1939),n(9529),n(1235),n(8178),n(6259)),r=n(5789),o=n(6964),c=n(9502),u=n(426),d=n(7871),m=n(2261),v=(n(1372),n(1245),n(3675),n(4898),n(5825),n(7170),n(8857),n(8329),n(6279),n(427),n(171),n(7093),n(1159),n(2516),n(4349),n(5273),n(6729),n(1801),n(574),n(5787),n(9271),n(3160),n(5688),n(3157),n(3333),n(315),n(556),n(2529),n(6943),n(9224),n(1157),n(7233),n(8673),n(5734),n(8233),n(9644)),p=n.n(v),h=n(4091),_=new h["default"],A=p().create({baseURL:location.origin,timeout:6e4,params:{}});A.interceptors.response.use((function(e){return e}),(function(e){if(e.response){var t,n,a,l,i;if(401===e.response.status&&OpenC3Auth.updateToken(OpenC3Auth.defaultMinValidity,!0).then((function(e){e&&OpenC3Auth.setTokens()})),e.response.headers["ignore-errors"]&&e.response.headers["ignore-errors"].includes(e.response.status.toString()))return Promise.reject(e);var s="HTTP ".concat(e.response.status," - ");if(null!==(t=e.response)&&void 0!==t&&t.statusText&&(s+="".concat(e.response.statusText," ")),null!==(n=e.response)&&void 0!==n&&null!==(n=n.config)&&void 0!==n&&n.data&&(s+="".concat(e.response.config.data," ")),null!==(a=e.response)&&void 0!==a&&null!==(a=a.data)&&void 0!==a&&a.message)s+="".concat(e.response.data.message);else if(null!==(l=e.response)&&void 0!==l&&null!==(l=l.data)&&void 0!==l&&l.exception)s+="".concat(e.response.data.exception);else if(null!==(i=e.response)&&void 0!==i&&null!==(i=i.data)&&void 0!==i&&null!==(i=i.error)&&void 0!==i&&i.message)e.response.data.error.class&&(s+="".concat(e.response.data.error.class," ")),s+="".concat(e.response.data.error.message);else{var r;s+="".concat(null===(r=e.response)||void 0===r?void 0:r.data)}throw _.$notify&&_.$notify.serious({title:"Network error",body:s}),e}throw e}));var f=A,g=function(){function e(){(0,u.Z)(this,e),(0,m.Z)(this,"id",1)}return(0,d.Z)(e,[{key:"exec",value:function(){var e=(0,c.Z)((0,r.Z)().mark((function e(t,n){var a,l,i,s,c,u,d=arguments;return(0,r.Z)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return a=d.length>2&&void 0!==d[2]?d[2]:{},l=d.length>3&&void 0!==d[3]?d[3]:{},i=d.length>4&&void 0!==d[4]?d[4]:6e4,e.prev=3,e.next=6,OpenC3Auth.updateToken(OpenC3Auth.defaultMinValidity);case 6:s=e.sent,s&&OpenC3Auth.setTokens(),e.next=13;break;case 10:e.prev=10,e.t0=e["catch"](3),OpenC3Auth.login();case 13:return this.id=this.id+1,e.prev=14,a["scope"]=window.openc3Scope,e.next=18,f.post("/openc3-api/api",{jsonrpc:"2.0",method:t,params:n,id:this.id,keyword_params:a},{headers:(0,o.Z)({Authorization:localStorage.openc3Token,"Content-Type":"application/json-rpc"},l),timeout:i});case 18:return c=e.sent,e.abrupt("return",c.data.result);case 22:throw e.prev=22,e.t1=e["catch"](14),u=new Error,e.t1.response?(u.name=e.t1.response.data.error.data.class,u.message=e.t1.response.data.error.data.message):e.t1.request?(u.name="Request error",u.message="Request error, no response received"):u.name="Unknown error",u;case 27:case"end":return e.stop()}}),e,this,[[3,10],[14,22]])})));function t(t,n){return e.apply(this,arguments)}return t}()},{key:"decode_openc3_type",value:function(e){if(null!==e&&"object"===(0,s.Z)(e)&&"Float"==e.json_class&&e.raw){if("NaN"==e.raw)return NaN;if("Infinity"==e.raw)return 1/0;if("-Infinity"==e.raw)return-1/0}return null}},{key:"encode_openc3_type",value:function(e){return Number.isNaN(e)?{json_class:"Float",raw:"NaN"}:e==Number.POSITIVE_INFINITY?{json_class:"Float",raw:"Infinity"}:e==Number.NEGATIVE_INFINITY?{json_class:"Float",raw:"-Infinity"}:null}},{key:"ensure_offline_access",value:function(){var e=this;this.offline_access_needed().then((function(t){t&&(localStorage.openc3OfflineToken?e.set_offline_access(localStorage.openc3OfflineToken).then((function(){delete localStorage.openc3OfflineToken})):OpenC3Auth.getOfflineAccess())}))}},{key:"offline_access_needed",value:function(){return this.exec("offline_access_needed",[])}},{key:"set_offline_access",value:function(e){return this.exec("set_offline_access",[e])}},{key:"get_all_interface_info",value:function(){return this.exec("get_all_interface_info",[])}},{key:"map_target_to_interface",value:function(e,t){return this.exec("map_target_to_interface",[e,t])}},{key:"connect_interface",value:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),a=1;a<t;a++)n[a-1]=arguments[a];return n.length>0?this.exec("connect_interface",[e].concat(n)):this.exec("connect_interface",[e])}},{key:"disconnect_interface",value:function(e){return this.exec("disconnect_interface",[e])}},{key:"get_all_router_info",value:function(){return this.exec("get_all_router_info",[])}},{key:"connect_router",value:function(e){return this.exec("connect_router",[e])}},{key:"disconnect_router",value:function(e){return this.exec("disconnect_router",[e])}},{key:"get_target_interfaces",value:function(){return this.exec("get_target_interfaces",[])}},{key:"get_all_target_info",value:function(){return this.exec("get_all_target_info",[])}},{key:"get_tlm_cnts",value:function(e){return this.exec("get_tlm_cnts",[e])}},{key:"get_item",value:function(e,t,n){return this.exec("get_item",[e,t,n])}},{key:"get_parameter",value:function(e,t,n){return this.exec("get_parameter",[e,t,n])}},{key:"get_all_packet_logger_info",value:function(){return this.exec("get_all_packet_logger_info",[])}},{key:"start_logging",value:function(){return this.exec("start_logging",[])}},{key:"stop_logging",value:function(){return this.exec("stop_logging",[])}},{key:"start_cmd_log",value:function(e){return this.exec("start_cmd_log",[e])}},{key:"start_tlm_log",value:function(e){return this.exec("start_tlm_log",[e])}},{key:"stop_cmd_log",value:function(e){return this.exec("stop_cmd_log",[e])}},{key:"stop_tlm_log",value:function(e){return this.exec("stop_tlm_log",[e])}},{key:"get_server_status",value:function(){return this.exec("get_server_status",[])}},{key:"get_limits_sets",value:function(){return this.exec("get_limits_sets",[])}},{key:"get_limits_set",value:function(){return this.exec("get_limits_set",[])}},{key:"set_limits_set",value:function(e){return this.exec("set_limits_set",[e])}},{key:"get_background_tasks",value:function(){return this.exec("get_background_tasks",[])}},{key:"start_background_task",value:function(e){return this.exec("start_background_task",[e])}},{key:"stop_background_task",value:function(e){return this.exec("stop_background_task",[e])}},{key:"get_target",value:function(e){return this.exec("get_target",[e])}},{key:"get_target_list",value:function(){return this.exec("get_target_list",[])}},{key:"get_target_names",value:function(){return this.exec("get_target_names",[])}},{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,c.Z)((0,r.Z)().mark((function e(t,n,a){var l,i,s,o,c,u=arguments;return(0,r.Z)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return l=u.length>3&&void 0!==u[3]?u[3]:30,e.next=3,this.exec("get_tlm_packet",[t,n],{type:a,stale_time:l});case 3:if(i=e.sent,null!=i)for(s=i.length,o=null,c=0;c<s;c++)o=this.decode_openc3_type(i[c][1]),null!==o&&(i[c][1]=o);return e.abrupt("return",i);case 6:case"end":return e.stop()}}),e,this)})));function t(t,n,a){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,c.Z)((0,r.Z)().mark((function e(t){var n,a,l,i,s,o=arguments;return(0,r.Z)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return n=o.length>1&&void 0!==o[1]?o[1]:30,e.next=3,this.exec("get_tlm_values",[t],{stale_time:n},{},1e4);case 3:for(a=e.sent,l=a[0].length,i=null,s=0;s<l;s++)i=this.decode_openc3_type(a[0][s]),null!==i&&(a[0][s]=i);return e.abrupt("return",a);case 8:case"end":return e.stop()}}),e,this)})));function t(t){return e.apply(this,arguments)}return t}()},{key:"get_limits",value:function(e,t,n){return this.exec("get_limits",[e,t,n])}},{key:"tlm",value:function(){var e=(0,c.Z)((0,r.Z)().mark((function e(t,n,a){var l,i,s,o,c=arguments;return(0,r.Z)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(l=c.length>3&&void 0!==c[3]?c[3]:"CONVERTED",i=null,void 0!==n){e.next=8;break}return e.next=5,this.exec("tlm",[t]);case 5:i=e.sent,e.next=24;break;case 8:if(void 0!==a){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:i=e.sent,e.next=19;break;case 15:throw s=new Error,s.name="TypeError",s.message="Invalid data type ".concat(n,". Valid options are RAW, CONVERTED, FORMATTED, and WITH_UNITS."),s;case 19:e.next=24;break;case 21:return e.next=23,this.exec("tlm",[t,n,a],{type:l});case 23:i=e.sent;case 24:return o=this.decode_openc3_type(i),null!==o&&(i=o),e.abrupt("return",i);case 27:case"end":return e.stop()}}),e,this)})));function t(t,n,a){return e.apply(this,arguments)}return t}()},{key:"inject_tlm",value:function(){var e=(0,c.Z)((0,r.Z)().mark((function e(t,n){var a,l,i=arguments;return(0,r.Z)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return a=i.length>2&&void 0!==i[2]?i[2]:null,l=i.length>3&&void 0!==i[3]?i[3]:"CONVERTED",e.next=4,this.exec("inject_tlm",[t,n,a],{type:l});case 4:data=e.sent;case 5:case"end":return e.stop()}}),e,this)})));function t(t,n){return e.apply(this,arguments)}return t}()},{key:"set_tlm",value:function(e,t,n,a){return this.exec("set_tlm",[e,t,n],{type:a})}},{key:"override_tlm",value:function(e,t,n,a){return this.exec("override_tlm",[e,t,n],{type:a})}},{key:"get_overrides",value:function(){return this.exec("get_overrides")}},{key:"normalize_tlm",value:function(e,t,n,a){return this.exec("normalize_tlm",[e,t,n],{type:a})}},{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 a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"CONVERTED";return this.exec("get_cmd_value",[e,t,n,a])}},{key:"get_cmd_buffer",value:function(e,t){return this.exec("get_cmd_buffer",[e,t])}},{key:"_cmd",value:function(e,t,n,a,l){var i=null;for(var s in a)Object.prototype.hasOwnProperty.call(a,s)&&(i=this.encode_openc3_type(a[s]),null!==i&&(a[s]=i));return this.exec(e,[t,n,a],{},l)}},{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 a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return void 0===t?this.exec("cmd",e,{},a):this._cmd("cmd",e,t,n,a)}},{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:"build_command",value:function(e,t,n){return void 0===t?this.exec("build_command",e):this._cmd("build_command",e,t,n)}},{key:"get_interface_names",value:function(){return this.exec("get_interface_names",[])}},{key:"send_raw",value:function(e,t){return this.exec("send_raw",[e,t])}},{key:"list_configs",value:function(e){return this.exec("list_configs",[e])}},{key:"load_config",value:function(e,t){return this.exec("load_config",[e,t])}},{key:"save_config",value:function(e,t,n){return this.exec("save_config",[e,t,n])}},{key:"delete_config",value:function(e,t){return this.exec("delete_config",[e,t])}},{key:"enable_limits",value:function(e,t,n){return this.exec("enable_limits",[e,t,n])}},{key:"disable_limits",value:function(e,t,n){return this.exec("disable_limits",[e,t,n])}},{key:"get_out_of_limits",value:function(){return this.exec("get_out_of_limits",[])}},{key:"get_overall_limits_state",value:function(e){return this.exec("get_overall_limits_state",[e])}},{key:"list_settings",value:function(){return this.exec("list_settings",[])}},{key:"get_all_settings",value:function(){return this.exec("get_all_settings",[])}},{key:"get_setting",value:function(e){return this.exec("get_setting",[e])}},{key:"get_settings",value:function(e){return this.exec("get_settings",e)}},{key:"save_setting",value:function(e,t){return this.exec("save_setting",[e,t])}},{key:"get_metrics",value:function(){return this.exec("get_metrics",[])}},{key:"hashString",value:function(){var e=(0,c.Z)((0,r.Z)().mark((function e(t){var n,a,l;return(0,r.Z)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(!window.isSecureContext){e.next=7;break}return n=(new TextEncoder).encode(t),e.next=4,crypto.subtle.digest("SHA-256",n);case 4:return a=e.sent,l=new Uint8Array(a),e.abrupt("return",Array.from(l).map((function(e){return e.toString(16).padStart(2,"0")})).join(""));case 7:case"end":return e.stop()}}),e)})));function t(t){return e.apply(this,arguments)}return t}()}]),e}(),k=function(){var e=this,t=e._self._c;return t("div",{staticClass:"value-widget-container",style:[e.computedStyle,e.aging]},[t("v-tooltip",{attrs:{bottom:""},scopedSlots:e._u([{key:"activator",fn:function(n){var a=n.on,l=n.attrs;return[t("v-text-field",e._g(e._b({class:e.valueClass,attrs:{solo:"",dense:"",readonly:"","single-line":"","hide-no-data":"","hide-details":"",placeholder:"Value",value:e._value,"data-test":"value"},on:{contextmenu:e.showContextMenu}},"v-text-field",l,!1),a))]}}])},[e._v(" "),t("span",[e._v(e._s(e.fullName))])]),e._v(" "),t("v-menu",{attrs:{"position-x":e.x,"position-y":e.y,absolute:"","offset-y":""},model:{value:e.contextMenuShown,callback:function(t){e.contextMenuShown=t},expression:"contextMenuShown"}},[t("v-list",e._l(e.contextMenuOptions,(function(n,a){return t("v-list-item",{key:a,on:{click:function(e){return e.stopPropagation(),n.action.apply(null,arguments)}}},[t("v-list-item-title",[e._v(e._s(n.title))])],1)})),1)],1),e._v(" "),t("details-dialog",{attrs:{"target-name":e.parameters[0],"packet-name":e.parameters[1],"item-name":e.parameters[2]},model:{value:e.viewDetails,callback:function(t){e.viewDetails=t},expression:"viewDetails"}})],1)},y=[],C=(n(6708),n(2501),n(9228),n(1951),n(5940),n(5794),(0,d.Z)((function e(t,n){var a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",l=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"";(0,u.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=a,this.url=l}))),b={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}},data:function(){return{screen:null}},computed:{computedStyle:function(){var e=this,t={};return this.settings.forEach((function(n){var a=parseInt(n[0]);if(null!==e.widgetIndex){if(e.widgetIndex!==a)return;n=n.slice(1)}e.applySetting(t,n)})),void 0===t["width"]&&(t["flex"]="0 10 100%"),t}},created:function(){var e=this;this.settings.forEach((function(t){"__SCREEN__"===t[0]&&(e.screen=t[1])}))},methods:{applySetting:function(e,t){switch(t[0]){case"TEXTALIGN":e["text-align"]=t[1].toLowerCase()+" !important",e["--text-align"]=t[1].toLowerCase();break;case"PADDING":isNaN(Number(t[1]))||(t[1]+="px"),e["padding"]=t[1]+" !important";break;case"MARGIN":isNaN(Number(t[1]))||(t[1]+="px"),e["margin"]=t[1]+" !important";break;case"BACKCOLOR":e["background-color"]=this.getColor(t.slice(1))+" !important";break;case"TEXTCOLOR":e["color"]=this.getColor(t.slice(1))+" !important";break;case"BORDERCOLOR":e["border-width"]="1px!important",e["border-style"]="solid!important",e["border-color"]=this.getColor(t.slice(1))+" !important";break;case"WIDTH":isNaN(Number(t[1]))||(t[1]+="px"),e["width"]=t[1]+" !important";break;case"HEIGHT":isNaN(Number(t[1]))||(t[1]+="px"),e["height"]=t[1]+" !important";break;case"RAW":e[t[1].toLowerCase()]=t[2]+" !important";break}},verifyNumParams:function(e,t,n){for(var a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"",l={line:this.line,lineNumber:this.lineNumber,keyword:e,parameters:this.parameters},i=1;i<=t;i++)if(void 0===this.parameters[i-1])throw new C(l,"Not enough parameters for ".concat(e,"."),a,"https://openc3.com/docs/v5");if(n&&void 0!==this.parameters[n])throw new C(l,"Too many parameters for ".concat(e,"."),a,"https://openc3.com/docs/v5")},setWidth:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"px",a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"120",l=null;if(l=null!==this.widgetIndex?this.settings.find((function(e){return parseInt(e[0])===t.widgetIndex&&"WIDTH"===e[1]})):this.settings.find((function(e){return"WIDTH"===e[0]})),l)return l["WIDTH"];if(e){var i=["WIDTH","".concat(e).concat(n)];return null!==this.widgetIndex&&i.unshift(this.widgetIndex),this.settings.push(i),parseInt(e)}var s=["WIDTH","".concat(a).concat(n)];return null!==this.widgetIndex&&s.unshift(this.widgetIndex),this.settings.push(s),parseInt(a)},setHeight:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"px",a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"20",l=null;if(l=null!==this.widgetIndex?this.settings.find((function(e){return parseInt(e[0])===t.widgetIndex&&"HEIGHT"===e[1]})):this.settings.find((function(e){return"HEIGHT"===e[0]})),l)return l["HEIGHT"];if(e){var i=["HEIGHT","".concat(e).concat(n)];return null!==this.widgetIndex&&i.unshift(this.widgetIndex),this.settings.push(i),parseInt(e)}var s=["HEIGHT","".concat(a).concat(n)];return null!==this.widgetIndex&&s.unshift(this.widgetIndex),this.settings.push(s),parseInt(a)},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],")")}}}},N=(n(131),{mixins:[b],props:{value:{default:null},limitsState:{type:String,default:null},counter:{default:null},formatString:null},data:function(){var e=this;return{curValue:null,prevValue:null,grayLevel:80,grayRate:5,valueId:null,colorBlind:!1,viewDetails:!1,contextMenuShown:!1,x:0,y:0,contextMenuOptions:[{title:"Details",action:function(){e.contextMenuShown=!1,e.viewDetails=!0}},{title:"Graph",action:function(){window.open("/tools/tlmgrapher/"+e.parameters[0]+"/"+e.parameters[1]+"/"+e.parameters[2],"_blank")}}]}},watch:{_counter:function(e,t){this.curValue!==this.prevValue?this.grayLevel=80:(this.grayLevel-=this.grayRate,this.grayLevel<30&&(this.grayLevel=30)),this.prevValue=this.curValue}},computed:{_value:function(){return this.curValue=this.value,null===this.curValue&&(this.screen?this.screen.screenValues[this.valueId]&&(this.curValue=this.screen.screenValues[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&&(this.screen?this.screen.screenValues[this.valueId]&&(e=this.screen.screenValues[this.valueId][2]):e=null),e},valueClass:function(){return"value shrink pa-1 openc3-"+this.limitsColor},limitsColor:function(){var e=this.limitsState;if(null===e&&(this.screen?this.screen.screenValues[this.valueId]&&(e=this.screen.screenValues[this.valueId][1]):e=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&&(this.screen?this.screen.screenValues[this.valueId]&&(e=this.screen.screenValues[this.valueId][1]):e=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.screen&&this.screen.addItem(this.valueId))},destroyed:function(){null!==this.value&&null!==this.limitsState||this.screen&&this.screen.deleteItem(this.valueId)},methods:{getType:function(){var e="WITH_UNITS";return this.parameters[3]&&(e=this.parameters[3]),e},formatValue:function(e){if(e&&"String"===e["json_class"]&&void 0!==e["raw"]){var t=Array.from(e["raw"].slice(0,32),(function(e){return("0"+(255&e).toString(16)).slice(-2)})).join(" ").toUpperCase();return e["raw"].length>32&&(t+="..."),t}if("Array"===Object.prototype.toString.call(e).slice(8,-1)){for(var n="[",a=0;a<e.length;a++)"String"===Object.prototype.toString.call(e[a]).slice(8,-1)?n+='"'+e[a]+'"':n+=e[a],a!=e.length-1&&(n+=", ");return n+="]",n}return"Object"===Object.prototype.toString.call(e).slice(8,-1)?"":this.formatString&&e?sprintf(this.formatString,e):""+e},showContextMenu:function(e){var t=this;e.preventDefault(),this.contextMenuShown=!1,this.x=e.clientX,this.y=e.clientY,this.$nextTick((function(){t.contextMenuShown=!0}))}}}),w=(n(4115),n(634),function(){var e=this,t=e._self._c;return t("v-dialog",{attrs:{width:"600"},model:{value:e.show,callback:function(t){e.show=t},expression:"show"}},[t("v-card",[t("v-system-bar",[t("v-spacer"),e._v(" "),t("span",[e._v(" Details ")]),e._v(" "),t("v-spacer")],1),e._v(" "),t("v-card-title",[e._v("\n "+e._s(e.targetName)+" "+e._s(e.packetName)+" "+e._s(e.itemName)+"\n ")]),e._v(" "),t("v-card-subtitle",[e._v(e._s(e.details.description))]),e._v(" "),t("v-card-text",[t("v-container",{attrs:{fluid:""}},["tlm"===e.type?t("v-row",{attrs:{"no-gutters":""}},[t("v-col",{staticClass:"label",attrs:{cols:"3"}},[e._v("Item Values")]),e._v(" "),t("v-col"),e._v(" "),t("v-container",{staticClass:"ml-5 pa-0",attrs:{fluid:""}},[t("v-row",{attrs:{"no-gutters":""}},[t("v-col",{staticClass:"label",attrs:{cols:"4"}},[e._v("Raw Value")]),e._v(" "),t("v-col",[e._v(e._s(e.rawValue))])],1),e._v(" "),t("v-row",{attrs:{"no-gutters":""}},[t("v-col",{staticClass:"label",attrs:{cols:"4"}},[e._v("Converted Value")]),e._v(" "),t("v-col",[e._v(e._s(e.convertedValue))])],1),e._v(" "),t("v-row",{attrs:{"no-gutters":""}},[t("v-col",{staticClass:"label",attrs:{cols:"4"}},[e._v("Formatted Value")]),e._v(" "),t("v-col",[e._v(e._s(e.formattedValue))])],1),e._v(" "),t("v-row",{attrs:{"no-gutters":""}},[t("v-col",{staticClass:"label",attrs:{cols:"4"}},[e._v("With Units Value")]),e._v(" "),t("v-col",[e._v(e._s(e.unitsValue))])],1)],1)],1):e._e(),e._v(" "),t("v-row",{attrs:{"no-gutters":""}},[t("v-col",{staticClass:"label",attrs:{cols:"3"}},[e._v("Bit Offset")]),e._v(" "),t("v-col",[e._v(e._s(e.details.bit_offset))])],1),e._v(" "),t("v-row",{attrs:{"no-gutters":""}},[t("v-col",{staticClass:"label",attrs:{cols:"3"}},[e._v("Bit Size")]),e._v(" "),t("v-col",[e._v(e._s(e.details.bit_size))])],1),e._v(" "),e.details.array_size?t("v-row",{attrs:{"no-gutters":""}},[t("v-col",{staticClass:"label",attrs:{cols:"3"}},[e._v("Array Size")]),e._v(" "),t("v-col",[e._v(e._s(e.details.array_size))])],1):e._e(),e._v(" "),t("v-row",{attrs:{"no-gutters":""}},[t("v-col",{staticClass:"label",attrs:{cols:"3"}},[e._v("Data Type")]),e._v(" "),t("v-col",[e._v(e._s(e.details.data_type))])],1),e._v(" "),"cmd"===e.type?t("v-row",{attrs:{"no-gutters":""}},[t("v-col",{staticClass:"label",attrs:{cols:"3"}},[e._v("Minimum")]),e._v(" "),t("v-col",[e._v(e._s(e.details.minimum))])],1):e._e(),e._v(" "),"cmd"===e.type?t("v-row",{attrs:{"no-gutters":""}},[t("v-col",{staticClass:"label",attrs:{cols:"3"}},[e._v("Maximum")]),e._v(" "),t("v-col",[e._v(e._s(e.details.maximum))])],1):e._e(),e._v(" "),"cmd"===e.type?t("v-row",{attrs:{"no-gutters":""}},[t("v-col",{staticClass:"label",attrs:{cols:"3"}},[e._v("Default")]),e._v(" "),t("v-col",[e._v(e._s(e.details.default))])],1):e._e(),e._v(" "),t("v-row",{attrs:{"no-gutters":""}},[t("v-col",{staticClass:"label",attrs:{cols:"3"}},[e._v("Format String")]),e._v(" "),t("v-col",[e._v(e._s(e.details.format_string))])],1),e._v(" "),t("v-row",{attrs:{"no-gutters":""}},[t("v-col",{staticClass:"label",attrs:{cols:"3"}},[e._v("Read Conversion")]),e._v(" "),e.details.read_conversion?t("v-col",[e._v("\n Class: "+e._s(e.details.read_conversion.class)+"\n "),t("br"),e._v("\n Params:\n "+e._s(e.details.read_conversion.params)+"\n ")]):t("v-col")],1),e._v(" "),t("v-row",{attrs:{"no-gutters":""}},[t("v-col",{staticClass:"label",attrs:{cols:"3"}},[e._v("Write Conversion")]),e._v(" "),e.details.write_conversion?t("v-col",[e._v("\n Class: "+e._s(e.details.write_conversion.class)+"\n "),t("br"),e._v("\n Params:\n "+e._s(e.details.write_conversion.params)+"\n ")]):t("v-col")],1),e._v(" "),t("v-row",{attrs:{"no-gutters":""}},[t("v-col",{staticClass:"label",attrs:{cols:"3"}},[e._v("Id Value")]),e._v(" "),t("v-col",[e._v(e._s(e.details.id_value))])],1),e._v(" "),t("v-row",{attrs:{"no-gutters":""}},[t("v-col",{staticClass:"label",attrs:{cols:"3"}},[e._v("Units Full")]),e._v(" "),t("v-col",[e._v(e._s(e.details.units_full))])],1),e._v(" "),t("v-row",{attrs:{"no-gutters":""}},[t("v-col",{staticClass:"label",attrs:{cols:"3"}},[e._v("Units Abbr")]),e._v(" "),t("v-col",[e._v(e._s(e.details.units))])],1),e._v(" "),t("v-row",{attrs:{"no-gutters":""}},[t("v-col",{staticClass:"label",attrs:{cols:"3"}},[e._v("Endianness")]),e._v(" "),t("v-col",[e._v(e._s(e.details.endianness))])],1),e._v(" "),e.details.states?t("v-row",{attrs:{"no-gutters":""}},[t("v-col",{staticClass:"label",attrs:{cols:"3"}},[e._v("States")]),e._v(" "),t("v-col"),e._v(" "),t("v-container",{staticClass:"ml-5 pa-0",attrs:{fluid:""}},e._l(e.details.states,(function(n,a){return t("v-row",{key:a,attrs:{"no-gutters":""}},[t("v-col",{staticClass:"label",attrs:{cols:"4"}},[e._v(e._s(a))]),e._v(" "),t("v-col",[e._v(e._s(n.value))])],1)})),1)],1):t("v-row",{attrs:{"no-gutters":""}},[t("v-col",{staticClass:"label",attrs:{cols:"3"}},[e._v("States")]),e._v(" "),t("v-col",[e._v("None")])],1),e._v(" "),e.details.limits?t("v-row",{attrs:{"no-gutters":""}},[t("v-col",{staticClass:"label",attrs:{cols:"3"}},[e._v("Limits")]),e._v(" "),t("v-col"),e._v(" "),t("v-container",{staticClass:"ml-5 pa-0",attrs:{fluid:""}},e._l(e.details.limits,(function(n,a){return t("v-row",{key:a,attrs:{"no-gutters":""}},["enabled"===a?t("v-col",{staticClass:"label",attrs:{cols:"4"}},[e._v("Enabled")]):e._e(),e._v(" "),"enabled"===a?t("v-switch",{attrs:{dense:"","hide-details":""},on:{change:e.changeLimitsEnabled},model:{value:e.details.limits.enabled,callback:function(t){e.$set(e.details.limits,"enabled",t)},expression:"details.limits.enabled"}}):e._e(),e._v(" "),"enabled"!==a?t("v-col",{staticClass:"label",attrs:{cols:"4"}},[e._v(e._s(a))]):e._e(),e._v(" "),"enabled"!==a?t("div",[e._v(e._s(e.formatLimit(n)))]):e._e(),e._v(" "),t("v-col")],1)})),1)],1):t("v-row",{attrs:{"no-gutters":""}},[t("v-col",{staticClass:"label",attrs:{cols:"3"}},[e._v("Limits")]),e._v(" "),t("v-col",[e._v("None")])],1),e._v(" "),e.details.meta?t("v-row",{attrs:{"no-gutters":""}},[t("v-col",{staticClass:"label",attrs:{cols:"3"}},[e._v("Meta")]),e._v(" "),t("v-col"),e._v(" "),t("v-container",{staticClass:"ml-5 pa-0",attrs:{fluid:""}},e._l(e.details.meta,(function(n,a){return t("v-row",{key:a,attrs:{"no-gutters":""}},[t("v-col",{staticClass:"label",attrs:{cols:"4"}},[e._v(e._s(a))]),e._v(" "),t("v-col",[e._v(e._s(n))])],1)})),1)],1):t("v-row",{attrs:{"no-gutters":""}},[t("v-col",{staticClass:"label",attrs:{cols:"3"}},[e._v("Meta")]),e._v(" "),t("v-col",[e._v("None")])],1)],1)],1)],1)],1)}),x=[],I={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 g},beforeDestroy:function(){clearInterval(this.updater),this.updater=null},watch:{value:function(e,t){var n=this;e?(this.requestDetails(),"tlm"===this.type&&(this.updater=setInterval((function(){n.api.get_tlm_values(["".concat(n.targetName,"__").concat(n.packetName,"__").concat(n.itemName,"__RAW"),"".concat(n.targetName,"__").concat(n.packetName,"__").concat(n.itemName,"__CONVERTED"),"".concat(n.targetName,"__").concat(n.packetName,"__").concat(n.itemName,"__FORMATTED"),"".concat(n.targetName,"__").concat(n.packetName,"__").concat(n.itemName,"__WITH_UNITS")]).then((function(e){for(var t=0;t<e.length;t++){var a=null;if("String"===e[t][0]["json_class"]&&void 0!==e[t][0]["raw"]?a=e[t][0]["raw"]:"BLOCK"===n.details.data_type&&(a=e[t][0]),null!==a){a=a.slice(0,parseInt(n.details.bit_size)/8);var l=!1;a.length>64&&(l=!0),e[t][0]=Array.from(a.slice(0,64),(function(e){return("0"+(255&e).toString(16)).slice(-2)})).join(" ").toUpperCase(),l&&(e[t][0]+="...")}}n.details.data_type.includes("INT")&&!n.details.array_size?n.rawValue="".concat(e[0][0]," (0x").concat(e[0][0].toString(16).toUpperCase(),")"):n.rawValue=e[0][0],n.convertedValue=e[1][0],n.formattedValue=e[2][0],n.unitsValue=e[3][0]}))}),1e3))):(clearInterval(this.updater),this.updater=null)}},methods:{requestDetails:function(){var e=this;return(0,c.Z)((0,r.Z)().mark((function t(){return(0,r.Z)().wrap((function(t){while(1)switch(t.prev=t.next){case 0:if("tlm"!==e.type){t.next=5;break}return t.next=3,e.api.get_item(e.targetName,e.packetName,e.itemName).then((function(t){if(e.details=t,t.limits){var n=!1;t.limits.enabled&&(n=!0,delete t.limits.enabled),e.details.limits=(0,o.Z)({enabled:n},t.limits)}}));case 3:t.next=7;break;case 5:return t.next=7,e.api.get_parameter(e.targetName,e.packetName,e.itemName).then((function(t){e.details=t}));case 7:case"end":return t.stop()}}),t)})))()},changeLimitsEnabled:function(){var e=this;return(0,c.Z)((0,r.Z)().mark((function t(){return(0,r.Z)().wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(!e.details.limits.enabled){t.next=5;break}return t.next=3,e.api.enable_limits(e.targetName,e.packetName,e.itemName);case 3:t.next=7;break;case 5:return t.next=7,e.api.disable_limits(e.targetName,e.packetName,e.itemName);case 7:case"end":return t.stop()}}),t)})))()},formatLimit:function(e){return e.green_low?"RL/"+e.red_low+" YL/"+e.yellow_low+" YH/"+e.yellow_high+" RH/"+e.red_high+" GL/"+e.green_low+" GH/"+e.green_high:e.red_low?"RL/"+e.red_low+" YL/"+e.yellow_low+" YH/"+e.yellow_high+" RH/"+e.red_high:e}}},T=I,S=(n(8011),n(3483)),E=(0,S.Z)(T,w,x,!1,null,"9697eed8",null),D=E.exports,V=4,L={components:{DetailsDialog:D},mixins:[N],data:function(){return{width:12+V}},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,5,"VALUE <TARGET> <PACKET> <ITEM> <TYPE> <WIDTH>"),this.setWidth(parseInt(this.parameters[4])+V,"ch",this.width)}},P=L,R=(n(68),(0,S.Z)(P,k,y,!1,null,"c9da8e24",null)),O=R.exports,U=function(){var e=this,t=e._self._c;return t("v-container",{staticClass:"c-chooser px-0"},[t("v-row",[t("v-col",{attrs:{cols:e.colSize,"data-test":"select-target"}},[t("v-autocomplete",{attrs:{label:"Select Target","hide-details":"",dense:"",items:e.targetNames,"item-text":"label","item-value":"value"},on:{change:e.targetNameChanged},model:{value:e.selectedTargetName,callback:function(t){e.selectedTargetName=t},expression:"selectedTargetName"}})],1),e._v(" "),t("v-col",{attrs:{cols:e.colSize,"data-test":"select-packet"}},[t("v-autocomplete",{attrs:{label:"Select Packet","hide-details":"",dense:"",disabled:e.packetsDisabled||e.buttonDisabled,items:e.packetNames,"item-text":"label","item-value":"value"},on:{change:e.packetNameChanged},model:{value:e.selectedPacketName,callback:function(t){e.selectedPacketName=t},expression:"selectedPacketName"}})],1),e._v(" "),e.chooseItem&&!e.buttonDisabled?t("v-col",{attrs:{cols:e.colSize,"data-test":"select-item"}},[t("v-autocomplete",{attrs:{label:"Select Item","hide-details":"",dense:"",disabled:e.itemsDisabled||e.buttonDisabled,items:e.itemNames,"item-text":"label","item-value":"value"},on:{change:function(t){return e.itemNameChanged(t)}},model:{value:e.selectedItemName,callback:function(t){e.selectedItemName=t},expression:"selectedItemName"}})],1):e._e(),e._v(" "),e.buttonText?t("v-col",{attrs:{cols:e.colSize}},[t("v-btn",{attrs:{disabled:e.buttonDisabled,block:"",color:"primary","data-test":"select-send"},on:{click:e.buttonPressed}},[e._v("\n "+e._s(e.actualButtonText)+"\n ")])],1):e._e()],1),e._v(" "),e.selectTypes?t("v-row",[t("v-col",{attrs:{cols:e.colSize,"data-test":"data-type"}},[t("v-autocomplete",{attrs:{label:"Value Type","hide-details":"",dense:"",items:e.valueTypes},model:{value:e.selectedValueType,callback:function(t){e.selectedValueType=t},expression:"selectedValueType"}})],1),e._v(" "),t("v-col",{attrs:{cols:e.colSize,"data-test":"reduced"}},[t("v-autocomplete",{attrs:{label:"Reduced","hide-details":"",dense:"",items:e.reductionModes},model:{value:e.selectedReduced,callback:function(t){e.selectedReduced=t},expression:"selectedReduced"}})],1),e._v(" "),t("v-col",{attrs:{cols:e.colSize,"data-test":"reduced-type"}},[t("v-autocomplete",{attrs:{label:"Reduced Type","hide-details":"",dense:"",disabled:"DECOM"===e.selectedReduced,items:e.reducedTypes},model:{value:e.selectedReducedType,callback:function(t){e.selectedReducedType=t},expression:"selectedReducedType"}})],1),e._v(" "),t("v-col",{attrs:{cols:e.colSize}})],1):e._e(),e._v(" "),t("v-row",{staticClass:"pt-1",attrs:{"no-gutters":""}},[e.hazardous?t("v-col",{staticClass:"openc3-yellow",staticStyle:{"white-space":"pre"},attrs:{cols:e.colSize}},[e._v("Description: "+e._s(e.description)+" (HAZARDOUS)")]):t("v-col",{staticStyle:{"white-space":"pre"},attrs:{cols:e.colSize}},[e._v("Description: "+e._s(e.description)+"\n ")])],1)],1)},M=[],W=(n(4870),n(3985),n(3108),{props:{allowAll:{type:Boolean,default:!1},allowAllTargets:{type:Boolean,default:!1},buttonText:{type:String,default:null},chooseItem:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},initialTargetName:{type:String,default:""},initialPacketName:{type:String,default:""},initialItemName:{type:String,default:""},selectTypes:{type:Boolean,default:!1},mode:{type:String,default:"tlm",validator:function(e){return["cmd","tlm"].includes(e)}},unknown:{type:Boolean,default:!1},vertical:{type:Boolean,default:!1}},data:function(){var e,t,n;return{targetNames:[],selectedTargetName:null===(e=this.initialTargetName)||void 0===e?void 0:e.toUpperCase(),packetNames:[],selectedPacketName:null===(t=this.initialPacketName)||void 0===t?void 0:t.toUpperCase(),itemNames:[],selectedItemName:null===(n=this.initialItemName)||void 0===n?void 0:n.toUpperCase(),valueTypes:["CONVERTED","RAW"],selectedValueType:"CONVERTED",reductionModes:[{text:"NONE",value:"DECOM"},{text:"REDUCED_MINUTE",value:"REDUCED_MINUTE"},{text:"REDUCED_HOUR",value:"REDUCED_HOUR"},{text:"REDUCED_DAY",value:"REDUCED_DAY"}],selectedReduced:"DECOM",reducedTypes:["MIN","MAX","AVG","STDDEV"],selectedReducedType:"AVG",description:"",hazardous:!1,internalDisabled:!1,packetsDisabled:!1,itemsDisabled:!1,api:null,ALL:{label:"[ ALL ]",value:"ALL",description:"ALL"},UNKNOWN:{label:"[ UNKNOWN ]",value:"UNKNOWN",description:"UNKNOWN"}}},created:function(){var e=this;this.internalDisabled=!0,this.api=new g,this.api.get_target_names().then((function(t){e.targetNames=t.flatMap((function(e){return"UNKNOWN"==e?[]:{label:e,value:e}})),e.allowAllTargets&&e.targetNames.unshift(e.ALL),e.selectedTargetName||(e.selectedTargetName=e.targetNames[0].value,e.targetNameChanged(e.selectedTargetName)),e.updatePackets(),e.unknown&&e.targetNames.push(e.UNKNOWN)}))},computed:{actualButtonText:function(){return"ALL"===this.selectedPacketName?"Add Target":"ALL"===this.selectedItemName?"Add Packet":this.buttonText},buttonDisabled:function(){return this.disabled||this.internalDisabled},targetChooserStyle:function(){return this.chooseItem||this.buttonText?{width:"25%",float:"left","margin-right":"5px"}:{width:"49%",float:"left"}},packetChooserStyle:function(){return this.chooseItem||this.buttonText?{width:"25%",float:"left","margin-right":"5px"}:{width:"50%",float:"right"}},colSize:function(){return!!this.vertical&&12}},watch:{mode:function(e,t){this.selectedPacketName=null,this.selectedItemName=null,this.updatePackets()}},methods:{updatePackets:function(){var e=this;if("UNKNOWN"===this.selectedTargetName)return this.packetNames=[this.UNKNOWN],this.selectedPacketName=this.packetNames[0].value,this.packetNameChanged(this.UNKNOWN.value),void(this.description="UNKNOWN");if("ALL"===this.selectedTargetName)return this.packetNames=[this.ALL],this.selectedPacketName=this.packetNames[0].value,this.packetNameChanged(this.ALL.value),void(this.description="ALL");this.internalDisabled=!0;var t="tlm"===this.mode?"get_all_telemetry_names":"get_all_command_names";this.api[t](this.selectedTargetName).then((function(t){e.packetNames=t.map((function(e){return{label:e,value:e}})),e.allowAll&&e.packetNames.unshift(e.ALL),e.selectedPacketName||(e.selectedPacketName=e.packetNames[0].value),e.packetNameChanged(e.selectedPacketName);e.packetNames.find((function(t){return t.value===e.selectedPacketName}));e.chooseItem&&e.updateItems(),e.internalDisabled=!1}))},updateItems:function(){var e=this;if("ALL"!==this.selectedPacketName){this.internalDisabled=!0;var t="tlm"===this.mode?"get_telemetry":"get_command";this.api[t](this.selectedTargetName,this.selectedPacketName).then((function(t){e.itemNames=t.items.map((function(e){return[{label:e.name,value:e.name,description:e.description}]})).reduce((function(e,t){return e.concat(t)}),[]),e.allowAll&&e.itemNames.unshift(e.ALL),e.selectedItemName||(e.selectedItemName=e.itemNames[0].value),e.description=e.itemNames[0].description,e.internalDisabled=!1,e.$emit("on-set",{targetName:e.selectedTargetName,packetName:e.selectedPacketName,itemName:e.selectedItemName,valueType:e.selectedValueType,reduced:e.selectedReduced,reducedType:e.selectedReducedType})}))}},targetNameChanged:function(e){this.selectedTargetName=e,this.selectedPacketName="",this.selectedItemName="",this.updatePackets()},packetNameChanged:function(e){var t=this;if("ALL"===e)this.itemsDisabled=!0,this.internalDisabled=!1;else{this.itemsDisabled=!1;var n=this.packetNames.find((function(t){return e===t.value}));this.selectedPacketName=n.value;var a="tlm"===this.mode?"get_telemetry":"get_command";this.api[a](this.selectedTargetName,this.selectedPacketName).then((function(e){t.description=e.description,t.hazardous=e.hazardous}))}this.chooseItem?this.updateItems():this.$emit("on-set",{targetName:this.selectedTargetName,packetName:this.selectedPacketName,itemName:this.selectedItemName,valueType:this.selectedValueType,reduced:this.selectedReduced,reducedType:this.selectedReducedType})},itemNameChanged:function(e){var t=this.itemNames.find((function(t){return e===t.value}));this.selectedItemName=t.value,this.description=t.description,this.$emit("on-set",{targetName:this.selectedTargetName,packetName:this.selectedPacketName,itemName:this.selectedItemName,valueType:this.selectedValueType,reduced:this.selectedReduced,reducedType:this.selectedReducedType})},buttonPressed:function(){"ALL"===this.selectedPacketName?this.allTargetPacketItems():"ALL"===this.selectedItemName?this.allPacketItems():this.chooseItem?this.$emit("click",{targetName:this.selectedTargetName,packetName:this.selectedPacketName,itemName:this.selectedItemName,valueType:this.selectedValueType,reduced:this.selectedReduced,reducedType:this.selectedReducedType}):this.$emit("click",{targetName:this.selectedTargetName,packetName:this.selectedPacketName,valueType:this.selectedValueType,reduced:this.selectedReduced,reducedType:this.selectedReducedType})},allTargetPacketItems:function(){var e=this;this.packetNames.forEach((function(t){if(t!==e.ALL){var n="tlm"===e.mode?"get_telemetry":"get_command";e.api[n](e.selectedTargetName,t.value).then((function(n){n.items.forEach((function(n){e.$emit("click",{targetName:e.selectedTargetName,packetName:t.value,itemName:n["name"],valueType:e.selectedValueType,reduced:e.selectedReduced,reducedType:e.selectedReducedType})}))}))}}))},allPacketItems:function(){var e=this;this.itemNames.forEach((function(t){t!==e.ALL&&e.$emit("click",{targetName:e.selectedTargetName,packetName:e.selectedPacketName,itemName:t.value,valueType:e.selectedValueType,reduced:e.selectedReduced,reducedType:e.selectedReducedType})}))}}}),H=W,Z=(n(9841),(0,S.Z)(H,U,M,!1,null,null,null)),z=Z.exports,$=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,a){return t("v-menu",{key:a,attrs:{"offset-y":""},scopedSlots:e._u([{key:"activator",fn:function(a){var l=a.on,i=a.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",i,!1),l),[t("span",{domProps:{textContent:e._s(n.label)}}),e._v(" "),t("v-icon",{attrs:{right:""}},[e._v(" mdi-menu-down ")])],1)]}}],null,!0)},[e._v(" "),t("v-list",[t("v-radio-group",{staticClass:"ma-0 pa-0",attrs:{value:n.radioGroup,"hide-details":"",dense:""}},[e._l(n.items,(function(a,l){return[a.divider?t("v-divider"):t("v-list-item",{key:l,attrs:{disabled:a.disabled,"data-test":e.formatDT("".concat(e.title," ").concat(n.label," ").concat(a.label))},on:{click:function(e){return a.command(a)}}},[a.radio?t("v-list-item-action",[t("v-radio",{attrs:{color:"secondary",label:a.label,value:a.label}})],1):e._e(),e._v(" "),a.checkbox?t("v-list-item-action",[t("v-checkbox",{attrs:{color:"secondary",label:a.label},model:{value:a.checked,callback:function(t){e.$set(a,"checked",t)},expression:"option.checked"}})],1):e._e(),e._v(" "),a.icon?t("v-list-item-icon",[t("v-icon",{attrs:{disabled:a.disabled}},[e._v(e._s(a.icon))])],1):e._e(),e._v(" "),a.radio||a.checkbox?e._e():t("v-list-item-title",{style:"cursor: pointer;"+(a.disabled?"opacity: 0.2":"")},[e._v(e._s(a.label))])],1)]}))],2)],1)],1)})),e._v(" "),t("v-spacer"),e._v(" "),t("v-toolbar-title",[e._v(e._s(e.title))]),e._v(" "),t("v-spacer")],2)])},F=[],G=(n(1639),{props:{menus:{type:Array,default:function(){return[]}},title:{type:String,default:""}},methods:{formatDT:function(e){return e.replaceAll(" ","-").toLowerCase()}},mounted:function(){"COSMOS "===this.title.substring(0,7)?document.title=this.title.substring(7):document.title=this.title}}),B=G,j=(n(4888),(0,S.Z)(B,$,F,!1,null,"2eb37f67",null)),Y=j.exports;function K(){var e="/openc3/plugins/packages/openc3-cosmos-tool-packetviewer/src/tools/PacketViewer/PacketViewer.vue",t="44664833add23cb252d82100956cca8292c2e7d2",n=new Function("return this")(),a="__coverage__",l={path:"/openc3/plugins/packages/openc3-cosmos-tool-packetviewer/src/tools/PacketViewer/PacketViewer.vue",statementMap:{0:{start:{line:14,column:4},end:{line:105,column:5}},1:{start:{line:35,column:16},end:{line:35,column:41}},2:{start:{line:49,column:16},end:{line:49,column:47}},3:{start:{line:57,column:16},end:{line:57,column:47}},4:{start:{line:67,column:16},end:{line:67,column:45}},5:{start:{line:74,column:16},end:{line:74,column:44}},6:{start:{line:81,column:16},end:{line:81,column:44}},7:{start:{line:88,column:16},end:{line:88,column:38}},8:{start:{line:110,column:6},end:{line:110,column:31}},9:{start:{line:113,column:6},end:{line:113,column:62}},10:{start:{line:117,column:4},end:{line:117,column:30}},11:{start:{line:119,column:4},end:{line:124,column:5}},12:{start:{line:120,column:6},end:{line:123,column:8}},13:{start:{line:125,column:16},end:{line:125,column:71}},14:{start:{line:126,column:4},end:{line:130,column:5}},15:{start:{line:127,column:6},end:{line:127,column:31}},16:{start:{line:129,column:6},end:{line:129,column:28}},17:{start:{line:133,column:4},end:{line:136,column:5}},18:{start:{line:134,column:6},end:{line:134,column:33}},19:{start:{line:135,column:6},end:{line:135,column:25}},20:{start:{line:140,column:6},end:{line:145,column:7}},21:{start:{line:144,column:8},end:{line:144,column:14}},22:{start:{line:146,column:6},end:{line:148,column:8}},23:{start:{line:147,column:8},end:{line:147,column:48}},24:{start:{line:149,column:6},end:{line:153,column:10}},25:{start:{line:152,column:10},end:{line:152,column:37}},26:{start:{line:155,column:6},end:{line:155,column:40}},27:{start:{line:156,column:6},end:{line:156,column:40}},28:{start:{line:157,column:6},end:{line:168,column:7}},29:{start:{line:161,column:8},end:{line:167,column:10}},30:{start:{line:169,column:6},end:{line:169,column:30}},31:{start:{line:173,column:6},end:{line:176,column:7}},32:{start:{line:174,column:8},end:{line:174,column:35}},33:{start:{line:175,column:8},end:{line:175,column:27}},34:{start:{line:178,column:6},end:{line:180,column:7}},35:{start:{line:179,column:8},end:{line:179,column:22}},36:{start:{line:182,column:6},end:{line:225,column:30}},37:{start:{line:183,column:8},end:{line:224,column:12}},38:{start:{line:192,column:12},end:{line:223,column:13}},39:{start:{line:193,column:14},end:{line:193,column:31}},40:{start:{line:194,column:28},end:{line:194,column:30}},41:{start:{line:195,column:26},end:{line:195,column:28}},42:{start:{line:196,column:14},end:{line:217,column:16}},43:{start:{line:197,column:16},end:{line:199,column:17}},44:{start:{line:198,column:18},end:{line:198,column:24}},45:{start:{line:200,column:16},end:{line:216,column:17}},46:{start:{line:201,column:18},end:{line:207,column:20}},47:{start:{line:209,column:18},end:{line:215,column:20}},48:{start:{line:218,column:14},end:{line:222,column:15}},49:{start:{line:219,column:16},end:{line:219,column:49}},50:{start:{line:221,column:16},end:{line:221,column:49}}},fnMap:{0:{name:"(anonymous_0)",decl:{start:{line:13,column:2},end:{line:13,column:3}},loc:{start:{line:13,column:9},end:{line:106,column:3}},line:13},1:{name:"(anonymous_1)",decl:{start:{line:34,column:23},end:{line:34,column:24}},loc:{start:{line:34,column:29},end:{line:36,column:15}},line:34},2:{name:"(anonymous_2)",decl:{start:{line:48,column:23},end:{line:48,column:24}},loc:{start:{line:48,column:33},end:{line:50,column:15}},line:48},3:{name:"(anonymous_3)",decl:{start:{line:56,column:23},end:{line:56,column:24}},loc:{start:{line:56,column:33},end:{line:58,column:15}},line:56},4:{name:"(anonymous_4)",decl:{start:{line:66,column:23},end:{line:66,column:24}},loc:{start:{line:66,column:29},end:{line:68,column:15}},line:66},5:{name:"(anonymous_5)",decl:{start:{line:73,column:23},end:{line:73,column:24}},loc:{start:{line:73,column:29},end:{line:75,column:15}},line:73},6:{name:"(anonymous_6)",decl:{start:{line:80,column:23},end:{line:80,column:24}},loc:{start:{line:80,column:29},end:{line:82,column:15}},line:80},7:{name:"(anonymous_7)",decl:{start:{line:87,column:23},end:{line:87,column:24}},loc:{start:{line:87,column:29},end:{line:89,column:15}},line:87},8:{name:"(anonymous_8)",decl:{start:{line:109,column:21},end:{line:109,column:22}},loc:{start:{line:109,column:51},end:{line:111,column:5}},line:109},9:{name:"(anonymous_9)",decl:{start:{line:112,column:18},end:{line:112,column:19}},loc:{start:{line:112,column:48},end:{line:114,column:5}},line:112},10:{name:"(anonymous_10)",decl:{start:{line:116,column:2},end:{line:116,column:3}},loc:{start:{line:116,column:12},end:{line:131,column:3}},line:116},11:{name:"(anonymous_11)",decl:{start:{line:132,column:2},end:{line:132,column:3}},loc:{start:{line:132,column:18},end:{line:137,column:3}},line:132},12:{name:"(anonymous_12)",decl:{start:{line:139,column:4},end:{line:139,column:5}},loc:{start:{line:139,column:25},end:{line:170,column:5}},line:139},13:{name:"(anonymous_13)",decl:{start:{line:146,column:49},end:{line:146,column:50}},loc:{start:{line:146,column:61},end:{line:148,column:7}},line:146},14:{name:"(anonymous_14)",decl:{start:{line:151,column:14},end:{line:151,column:15}},loc:{start:{line:151,column:27},end:{line:153,column:9}},line:151},15:{name:"(anonymous_15)",decl:{start:{line:172,column:4},end:{line:172,column:5}},loc:{start:{line:172,column:33},end:{line:226,column:5}},line:172},16:{name:"(anonymous_16)",decl:{start:{line:182,column:33},end:{line:182,column:34}},loc:{start:{line:182,column:39},end:{line:225,column:7}},line:182},17:{name:"(anonymous_17)",decl:{start:{line:190,column:16},end:{line:190,column:17}},loc:{start:{line:190,column:26},end:{line:224,column:11}},line:190},18:{name:"(anonymous_18)",decl:{start:{line:196,column:27},end:{line:196,column:28}},loc:{start:{line:196,column:38},end:{line:217,column:15}},line:196}},branchMap:{0:{loc:{start:{line:119,column:4},end:{line:124,column:5}},type:"if",locations:[{start:{line:119,column:4},end:{line:124,column:5}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:119},1:{loc:{start:{line:119,column:8},end:{line:119,column:62}},type:"binary-expr",locations:[{start:{line:119,column:8},end:{line:119,column:33}},{start:{line:119,column:37},end:{line:119,column:62}}],line:119},2:{loc:{start:{line:126,column:4},end:{line:130,column:5}},type:"if",locations:[{start:{line:126,column:4},end:{line:130,column:5}},{start:{line:128,column:11},end:{line:130,column:5}}],line:126},3:{loc:{start:{line:133,column:4},end:{line:136,column:5}},type:"if",locations:[{start:{line:133,column:4},end:{line:136,column:5}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:133},4:{loc:{start:{line:140,column:6},end:{line:145,column:7}},type:"if",locations:[{start:{line:140,column:6},end:{line:145,column:7}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:140},5:{loc:{start:{line:141,column:8},end:{line:142,column:44}},type:"binary-expr",locations:[{start:{line:141,column:8},end:{line:141,column:44}},{start:{line:142,column:8},end:{line:142,column:44}}],line:141},6:{loc:{start:{line:157,column:6},end:{line:168,column:7}},type:"if",locations:[{start:{line:157,column:6},end:{line:168,column:7}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:157},7:{loc:{start:{line:158,column:8},end:{line:159,column:54}},type:"binary-expr",locations:[{start:{line:158,column:8},end:{line:158,column:54}},{start:{line:159,column:8},end:{line:159,column:54}}],line:158},8:{loc:{start:{line:173,column:6},end:{line:176,column:7}},type:"if",locations:[{start:{line:173,column:6},end:{line:176,column:7}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:173},9:{loc:{start:{line:178,column:6},end:{line:180,column:7}},type:"if",locations:[{start:{line:178,column:6},end:{line:180,column:7}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:178},10:{loc:{start:{line:192,column:12},end:{line:223,column:13}},type:"if",locations:[{start:{line:192,column:12},end:{line:223,column:13}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:192},11:{loc:{start:{line:197,column:16},end:{line:199,column:17}},type:"if",locations:[{start:{line:197,column:16},end:{line:199,column:17}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:197},12:{loc:{start:{line:197,column:20},end:{line:197,column:77}},type:"binary-expr",locations:[{start:{line:197,column:20},end:{line:197,column:37}},{start:{line:197,column:41},end:{line:197,column:77}}],line:197},13:{loc:{start:{line:200,column:16},end:{line:216,column:17}},type:"if",locations:[{start:{line:200,column:16},end:{line:216,column:17}},{start:{line:208,column:23},end:{line:216,column:17}}],line:200},14:{loc:{start:{line:218,column:14},end:{line:222,column:15}},type:"if",locations:[{start:{line:218,column:14},end:{line:222,column:15}},{start:{line:220,column:21},end:{line:222,column:15}}],line:218}},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},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},b:{0:[0,0],1:[0,0],2:[0,0],3:[0,0],4:[0,0],5:[0,0],6:[0,0],7:[0,0],8:[0,0],9:[0,0],10:[0,0],11:[0,0],12:[0,0],13:[0,0],14:[0,0]},inputSourceMap:{version:3,sources:["PacketViewer.vue"],names:[],mappings:";AAsIA;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;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;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",file:"PacketViewer.vue",sourceRoot:"src/tools/PacketViewer",sourcesContent:['\x3c!--\n# Copyright 2022 Ball Aerospace & Technologies Corp.\n# All Rights Reserved.\n#\n# This program is free software; you can modify and/or redistribute it\n# under the terms of the GNU Affero General Public License\n# as published by the Free Software Foundation; version 3 with\n# attribution addendums as found in the LICENSE.txt\n#\n# This program is distributed in the hope that it will be useful,\n# but WITHOUT ANY WARRANTY; without even the implied warranty of\n# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n# GNU Affero General Public License for more details.\n\n# Modified by OpenC3, Inc.\n# All changes Copyright 2022, OpenC3, Inc.\n# All Rights Reserved\n#\n# This file may also be used under the terms of a commercial license\n# if purchased from OpenC3, Inc.\n--\x3e\n\n<template>\n <div>\n <top-bar :menus="menus" :title="title" />\n <v-card style="padding: 10px">\n <target-packet-item-chooser\n :initial-target-name="this.$route.params.target"\n :initial-packet-name="this.$route.params.packet"\n @on-set="packetChanged($event)"\n />\n <v-card-title style="padding-top: 0px">\n Items\n <v-spacer />\n <v-text-field\n v-model="search"\n append-icon="mdi-magnify"\n label="Search"\n single-line\n hide-details\n />\n </v-card-title>\n <v-data-table\n :headers="headers"\n :items="rows"\n :search="search"\n :items-per-page="itemsPerPage"\n @update:items-per-page="itemsPerPage = $event"\n :footer-props="{\n itemsPerPageOptions: [10, 20, 50, 100, 500, 1000],\n showFirstLastPage: true,\n firstIcon: \'mdi-page-first\',\n lastIcon: \'mdi-page-last\',\n prevIcon: \'mdi-chevron-left\',\n nextIcon: \'mdi-chevron-right\',\n }"\n calculate-widths\n multi-sort\n dense\n >\n <template v-slot:item.index="{ item }">\n <span>\n {{\n rows\n .map(function (x) {\n return x.name\n })\n .indexOf(item.name)\n }}\n </span>\n </template>\n <template v-slot:item.name="{ item }">\n {{ item.name }}<span v-if="item.derived"> *</span>\n </template>\n <template v-slot:item.value="{ item }">\n <value-widget\n :value="item.value"\n :limits-state="item.limitsState"\n :counter="item.counter"\n :parameters="[targetName, packetName, item.name]"\n :settings="[[\'WIDTH\', \'100%\']]"\n />\n </template>\n <template v-slot:footer.prepend\n >* indicates a \n <a href="https://openc3.com/docs/v5/telemetry#derived-items"\n >DERIVED</a\n > item</template\n >\n </v-data-table>\n </v-card>\n <v-dialog\n v-model="optionsDialog"\n @keydown.esc="optionsDialog = false"\n max-width="300"\n >\n <v-card>\n <v-system-bar>\n <v-spacer />\n <span>Options</span>\n <v-spacer />\n </v-system-bar>\n <v-card-text>\n <div class="pa-3">\n <v-text-field\n min="0"\n max="10000"\n step="100"\n type="number"\n label="Refresh Interval (ms)"\n :value="refreshInterval"\n @change="refreshInterval = $event"\n data-test="refresh-interval"\n />\n </div>\n <div class="pa-3">\n <v-text-field\n min="1"\n max="10000"\n step="1"\n type="number"\n label="Time at which to mark data Stale (s)"\n :value="staleLimit"\n @change="staleLimit = parseInt($event)"\n data-test="stale-limit"\n />\n </div>\n </v-card-text>\n </v-card>\n </v-dialog>\n </div>\n</template>\n\n<script>\nimport { OpenC3Api } from \'@openc3/tool-common/src/services/openc3-api\'\nimport ValueWidget from \'@openc3/tool-common/src/components/widgets/ValueWidget\'\nimport TargetPacketItemChooser from \'@openc3/tool-common/src/components/TargetPacketItemChooser\'\nimport TopBar from \'@openc3/tool-common/src/components/TopBar\'\n\nexport default {\n components: {\n TargetPacketItemChooser,\n ValueWidget,\n TopBar,\n },\n data() {\n return {\n title: \'COSMOS Packet Viewer\',\n search: \'\',\n data: [],\n headers: [\n { text: \'Index\', value: \'index\' },\n { text: \'Name\', value: \'name\' },\n { text: \'Value\', value: \'value\' },\n ],\n optionsDialog: false,\n showIgnored: false,\n derivedLast: false,\n ignoredItems: [],\n derivedItems: [],\n menus: [\n {\n label: \'File\',\n items: [\n {\n label: \'Options\',\n command: () => {\n this.optionsDialog = true\n },\n },\n ],\n },\n {\n label: \'View\',\n radioGroup: \'Formatted Items with Units\', // Default radio selected\n items: [\n {\n label: \'Show Ignored Items\',\n checkbox: true,\n checked: false,\n command: (item) => {\n this.showIgnored = item.checked\n },\n },\n {\n label: \'Display DERIVED Last\',\n checkbox: true,\n checked: false,\n command: (item) => {\n this.derivedLast = item.checked\n },\n },\n {\n divider: true,\n },\n {\n label: \'Formatted Items with Units\',\n radio: true,\n command: () => {\n this.valueType = \'WITH_UNITS\'\n },\n },\n {\n label: \'Formatted Items\',\n radio: true,\n command: () => {\n this.valueType = \'FORMATTED\'\n },\n },\n {\n label: \'Converted Items\',\n radio: true,\n command: () => {\n this.valueType = \'CONVERTED\'\n },\n },\n {\n label: \'Raw Items\',\n radio: true,\n command: () => {\n this.valueType = \'RAW\'\n },\n },\n ],\n },\n ],\n updater: null,\n counter: 0,\n targetName: \'\',\n packetName: \'\',\n valueType: \'WITH_UNITS\',\n refreshInterval: 1000,\n staleLimit: 30,\n rows: [],\n menuItems: [],\n itemsPerPage: 20,\n api: null,\n }\n },\n watch: {\n // Create a watcher on refreshInterval so we can change the updater\n refreshInterval: function (newValue, oldValue) {\n this.changeUpdater(false)\n },\n itemsPerPage: function (newValue, oldValue) {\n localStorage[\'packet_viewer__items_per_page\'] = newValue\n },\n },\n created() {\n this.api = new OpenC3Api()\n // If we\'re passed in the route then manually call packetChanged to update\n if (this.$route.params.target && this.$route.params.packet) {\n this.packetChanged({\n targetName: this.$route.params.target.toUpperCase(),\n packetName: this.$route.params.packet.toUpperCase(),\n })\n }\n let local = parseInt(localStorage[\'packet_viewer__items_per_page\'])\n if (local) {\n this.itemsPerPage = local\n } else {\n this.itemsPerPage = 20\n }\n },\n beforeDestroy() {\n if (this.updater != null) {\n clearInterval(this.updater)\n this.updater = null\n }\n },\n methods: {\n packetChanged(event) {\n if (\n this.targetName === event.targetName &&\n this.packetName === event.packetName\n ) {\n return\n }\n this.api.get_target(event.targetName).then((target) => {\n this.ignoredItems = target.ignored_items\n })\n this.api\n .get_packet_derived_items(event.targetName, event.packetName)\n .then((derived) => {\n this.derivedItems = derived\n })\n\n this.targetName = event.targetName\n this.packetName = event.packetName\n if (\n this.$route.params.target !== event.targetName ||\n this.$route.params.packet !== event.packetName\n ) {\n this.$router.push({\n name: \'PackerViewer\',\n params: {\n target: this.targetName,\n packet: this.packetName,\n },\n })\n }\n this.changeUpdater(true)\n },\n\n changeUpdater(clearExisting) {\n if (this.updater != null) {\n clearInterval(this.updater)\n this.updater = null\n }\n\n if (clearExisting) {\n this.rows = []\n }\n\n this.updater = setInterval(() => {\n this.api\n .get_tlm_packet(\n this.targetName,\n this.packetName,\n this.valueType,\n this.staleLimit,\n )\n .then((data) => {\n // Make sure data isn\'t null or undefined. Note this is the only valid use of == or !=\n if (data != null) {\n this.counter += 1\n let derived = []\n let other = []\n data.forEach((value) => {\n if (!this.showIgnored && this.ignoredItems.includes(value[0])) {\n return\n }\n if (this.derivedItems.includes(value[0])) {\n derived.push({\n name: value[0],\n value: value[1],\n limitsState: value[2],\n derived: true,\n counter: this.counter,\n })\n } else {\n other.push({\n name: value[0],\n value: value[1],\n limitsState: value[2],\n derived: false,\n counter: this.counter,\n })\n }\n })\n if (this.derivedLast) {\n this.rows = other.concat(derived)\n } else {\n this.rows = derived.concat(other)\n }\n }\n })\n }, this.refreshInterval)\n },\n },\n}\n<\/script>\n']},_coverageSchema:"1a1c01bbd47fc00a2c39e90264f33305004495a9",hash:"44664833add23cb252d82100956cca8292c2e7d2"},i=n[a]||(n[a]={});i[e]&&i[e].hash===t||(i[e]=l);var s=i[e];return K=function(){return s},s}K();var q={components:{TargetPacketItemChooser:z,ValueWidget:O,TopBar:Y},data:function(){var e=this;return K().f[0]++,K().s[0]++,{title:"COSMOS Packet Viewer",search:"",data:[],headers:[{text:"Index",value:"index"},{text:"Name",value:"name"},{text:"Value",value:"value"}],optionsDialog:!1,showIgnored:!1,derivedLast:!1,ignoredItems:[],derivedItems:[],menus:[{label:"File",items:[{label:"Options",command:function(){K().f[1]++,K().s[1]++,e.optionsDialog=!0}}]},{label:"View",radioGroup:"Formatted Items with Units",items:[{label:"Show Ignored Items",checkbox:!0,checked:!1,command:function(t){K().f[2]++,K().s[2]++,e.showIgnored=t.checked}},{label:"Display DERIVED Last",checkbox:!0,checked:!1,command:function(t){K().f[3]++,K().s[3]++,e.derivedLast=t.checked}},{divider:!0},{label:"Formatted Items with Units",radio:!0,command:function(){K().f[4]++,K().s[4]++,e.valueType="WITH_UNITS"}},{label:"Formatted Items",radio:!0,command:function(){K().f[5]++,K().s[5]++,e.valueType="FORMATTED"}},{label:"Converted Items",radio:!0,command:function(){K().f[6]++,K().s[6]++,e.valueType="CONVERTED"}},{label:"Raw Items",radio:!0,command:function(){K().f[7]++,K().s[7]++,e.valueType="RAW"}}]}],updater:null,counter:0,targetName:"",packetName:"",valueType:"WITH_UNITS",refreshInterval:1e3,staleLimit:30,rows:[],menuItems:[],itemsPerPage:20,api:null}},watch:{refreshInterval:function(e,t){K().f[8]++,K().s[8]++,this.changeUpdater(!1)},itemsPerPage:function(e,t){K().f[9]++,K().s[9]++,localStorage["packet_viewer__items_per_page"]=e}},created:function(){K().f[10]++,K().s[10]++,this.api=new g,K().s[11]++,K().b[1][0]++,this.$route.params.target&&(K().b[1][1]++,this.$route.params.packet)?(K().b[0][0]++,K().s[12]++,this.packetChanged({targetName:this.$route.params.target.toUpperCase(),packetName:this.$route.params.packet.toUpperCase()})):K().b[0][1]++;var e=(K().s[13]++,parseInt(localStorage["packet_viewer__items_per_page"]));K().s[14]++,e?(K().b[2][0]++,K().s[15]++,this.itemsPerPage=e):(K().b[2][1]++,K().s[16]++,this.itemsPerPage=20)},beforeDestroy:function(){K().f[11]++,K().s[17]++,null!=this.updater?(K().b[3][0]++,K().s[18]++,clearInterval(this.updater),K().s[19]++,this.updater=null):K().b[3][1]++},methods:{packetChanged:function(e){var t=this;if(K().f[12]++,K().s[20]++,K().b[5][0]++,this.targetName===e.targetName&&(K().b[5][1]++,this.packetName===e.packetName))return K().b[4][0]++,void K().s[21]++;K().b[4][1]++,K().s[22]++,this.api.get_target(e.targetName).then((function(e){K().f[13]++,K().s[23]++,t.ignoredItems=e.ignored_items})),K().s[24]++,this.api.get_packet_derived_items(e.targetName,e.packetName).then((function(e){K().f[14]++,K().s[25]++,t.derivedItems=e})),K().s[26]++,this.targetName=e.targetName,K().s[27]++,this.packetName=e.packetName,K().s[28]++,K().b[7][0]++,this.$route.params.target!==e.targetName||(K().b[7][1]++,this.$route.params.packet!==e.packetName)?(K().b[6][0]++,K().s[29]++,this.$router.push({name:"PackerViewer",params:{target:this.targetName,packet:this.packetName}})):K().b[6][1]++,K().s[30]++,this.changeUpdater(!0)},changeUpdater:function(e){var t=this;K().f[15]++,K().s[31]++,null!=this.updater?(K().b[8][0]++,K().s[32]++,clearInterval(this.updater),K().s[33]++,this.updater=null):K().b[8][1]++,K().s[34]++,e?(K().b[9][0]++,K().s[35]++,this.rows=[]):K().b[9][1]++,K().s[36]++,this.updater=setInterval((function(){K().f[16]++,K().s[37]++,t.api.get_tlm_packet(t.targetName,t.packetName,t.valueType,t.staleLimit).then((function(e){if(K().f[17]++,K().s[38]++,null!=e){K().b[10][0]++,K().s[39]++,t.counter+=1;var n=(K().s[40]++,[]),a=(K().s[41]++,[]);K().s[42]++,e.forEach((function(e){if(K().f[18]++,K().s[43]++,K().b[12][0]++,!t.showIgnored&&(K().b[12][1]++,t.ignoredItems.includes(e[0])))return K().b[11][0]++,void K().s[44]++;K().b[11][1]++,K().s[45]++,t.derivedItems.includes(e[0])?(K().b[13][0]++,K().s[46]++,n.push({name:e[0],value:e[1],limitsState:e[2],derived:!0,counter:t.counter})):(K().b[13][1]++,K().s[47]++,a.push({name:e[0],value:e[1],limitsState:e[2],derived:!1,counter:t.counter}))})),K().s[48]++,t.derivedLast?(K().b[14][0]++,K().s[49]++,t.rows=a.concat(n)):(K().b[14][1]++,K().s[50]++,t.rows=n.concat(a))}else K().b[10][1]++}))}),this.refreshInterval)}}},X=q,J=(0,S.Z)(X,l,i,!1,null,null,null),Q=J.exports},518:function(e,t,n){"use strict";n.r(t);var a=n(9601),l=n.n(a),i=n(2609),s=n.n(i),r=s()(l());r.push([e.id,".label[data-v-9697eed8]{font-weight:700;text-transform:capitalize}[data-v-9697eed8] .v-input--selection-controls{padding:0;margin:0}",""]),t["default"]=r},4882:function(e,t,n){"use strict";n.r(t);var a=n(9601),l=n.n(a),i=n(2609),s=n.n(i),r=s()(l());r.push([e.id,".row+.row{margin-top:0}",""]),t["default"]=r},6294:function(e,t,n){"use strict";n.r(t);var a=n(9601),l=n.n(a),i=n(2609),s=n.n(i),r=s()(l());r.push([e.id,".v-list[data-v-2eb37f67] .v-label{margin-left:5px}.v-list-item__icon[data-v-2eb37f67]{margin-right:15px!important}.v-list-item__title[data-v-2eb37f67]{color:#fff}",""]),t["default"]=r},8817:function(e,t,n){"use strict";n.r(t);var a=n(9601),l=n.n(a),i=n(2609),s=n.n(i),r=s()(l());r.push([e.id,".value-widget-container[data-v-c9da8e24]{min-height:34px}.value-widget-container[data-v-c9da8e24] .v-input__slot{background:rgba(var(--aging),var(--aging),var(--aging),1)!important}.value-widget-container[data-v-c9da8e24] input{text-align:var(--text-align)!important}.value[data-v-c9da8e24] div{min-height:24px!important;display:flex!important;align-items:center!important}.openc3-green[data-v-c9da8e24] input{color:#00c800}.openc3-yellow[data-v-c9da8e24] input{color:#ffdc00}.openc3-red[data-v-c9da8e24] input{color:#ff2d2d}.openc3-blue[data-v-c9da8e24] input{color:#09f}.openc3-purple[data-v-c9da8e24] input{color:#c800c8}.openc3-black[data-v-c9da8e24] input{color:#000}.openc3-white[data-v-c9da8e24] input{color:#fff}",""]),t["default"]=r},8011:function(e,t,n){var a=n(518);a.__esModule&&(a=a.default),"string"===typeof a&&(a=[[e.id,a,""]]),a.locals&&(e.exports=a.locals);var l=n(3514).Z;l("5fb99d80",a,!0,{sourceMap:!1,shadowMode:!1})},9841:function(e,t,n){var a=n(4882);a.__esModule&&(a=a.default),"string"===typeof a&&(a=[[e.id,a,""]]),a.locals&&(e.exports=a.locals);var l=n(3514).Z;l("4a9152b5",a,!0,{sourceMap:!1,shadowMode:!1})},4888:function(e,t,n){var a=n(6294);a.__esModule&&(a=a.default),"string"===typeof a&&(a=[[e.id,a,""]]),a.locals&&(e.exports=a.locals);var l=n(3514).Z;l("706a3f6d",a,!0,{sourceMap:!1,shadowMode:!1})},68:function(e,t,n){var a=n(8817);a.__esModule&&(a=a.default),"string"===typeof a&&(a=[[e.id,a,""]]),a.locals&&(e.exports=a.locals);var l=n(3514).Z;l("54f6d44b",a,!0,{sourceMap:!1,shadowMode:!1})}}]);
|
2
|
-
//# sourceMappingURL=259.js.map
|