openc3-cosmos-tool-packetviewer 5.16.2 → 5.17.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/134.js +1 -1
- data/tools/packetviewer/js/134.js.map +1 -1
- data/tools/packetviewer/js/36.js +2 -0
- data/tools/packetviewer/js/36.js.map +1 -0
- data/tools/packetviewer/js/app.js +1 -1
- data/tools/packetviewer/js/app.js.map +1 -1
- metadata +4 -4
- data/tools/packetviewer/js/181.js +0 -2
- data/tools/packetviewer/js/181.js.map +0 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: bdd52cd1c0b5f29e3882d37691d73a2a4d4a3d83fa9186b0cb9eb7729319194c
|
4
|
+
data.tar.gz: fabe7a271d59c22564ffd4fb861b5148f778a24974b0a187fe975bc2345060f8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9dd236fb6f930442bfa0196adaec80a613b4a6d7a4aa84e755348423f15b7188c7740522027be3efc111172819029813f7469b3bc38031cb0a0dea1c3f7a58e2
|
7
|
+
data.tar.gz: 361cdf92f501199576ad4398e352b810e7b3f8779003714a835951eebfb048031d4c9a1b5a2d47122a4a23523412c9345fd0700c1a7ccd1915ac2e06abbcf58f
|
@@ -1,2 +1,2 @@
|
|
1
|
-
(self["webpackChunk_openc3_cosmos_tool_packetviewer"]=self["webpackChunk_openc3_cosmos_tool_packetviewer"]||[]).push([[134],{1134:(e,t,n)=>{"use strict";function i(){var e="/openc3/plugins/packages/openc3-cosmos-tool-packetviewer/src/tools/PacketViewer/PacketViewer.vue",t="ee778a810c08a2155896da8e333d61232782dea6",n=new Function("return this")(),l="__coverage__",a={path:"/openc3/plugins/packages/openc3-cosmos-tool-packetviewer/src/tools/PacketViewer/PacketViewer.vue",statementMap:{0:{start:{line:1,column:13},end:{line:9,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:8,column:2315}},4:{start:{line:1,column:372},end:{line:1,column:404}},5:{start:{line:1,column:729},end:{line:1,column:743}},6:{start:{line:8,column:81},end:{line:8,column:106}},7:{start:{line:8,column:168},end:{line:8,column:265}},8:{start:{line:8,column:308},end:{line:8,column:507}},9:{start:{line:8,column:546},end:{line:8,column:734}},10:{start:{line:8,column:840},end:{line:8,column:944}},11:{start:{line:8,column:932},end:{line:8,column:944}},12:{start:{line:8,column:944},end:{line:8,column:969}},13:{start:{line:8,column:1030},end:{line:8,column:1051}},14:{start:{line:8,column:1466},end:{line:8,column:1494}},15:{start:{line:8,column:1756},end:{line:8,column:1789}},16:{start:{line:8,column:1996},end:{line:8,column:2018}},17:{start:{line:8,column:2248},end:{line:8,column:2270}},18:{start:{line:10,column:22},end:{line:10,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:9,column:1}},line:1},1:{name:"(anonymous_1)",decl:{start:{line:1,column:355},end:{line:1,column:356}},loc:{start:{line:1,column:371},end:{line:1,column:405}},line:1},2:{name:"(anonymous_2)",decl:{start:{line:1,column:713},end:{line:1,column:714}},loc:{start:{line:1,column:728},end:{line:1,column:744}},line:1},3:{name:"(anonymous_3)",decl:{start:{line:8,column:64},end:{line:8,column:65}},loc:{start:{line:8,column:80},end:{line:8,column:107}},line:8},4:{name:"(anonymous_4)",decl:{start:{line:8,column:149},end:{line:8,column:150}},loc:{start:{line:8,column:167},end:{line:8,column:266}},line:8},5:{name:"(anonymous_5)",decl:{start:{line:8,column:289},end:{line:8,column:290}},loc:{start:{line:8,column:307},end:{line:8,column:508}},line:8},6:{name:"(anonymous_6)",decl:{start:{line:8,column:535},end:{line:8,column:536}},loc:{start:{line:8,column:545},end:{line:8,column:735}},line:8},7:{name:"(anonymous_7)",decl:{start:{line:8,column:823},end:{line:8,column:824}},loc:{start:{line:8,column:839},end:{line:8,column:970}},line:8},8:{name:"(anonymous_8)",decl:{start:{line:8,column:1014},end:{line:8,column:1015}},loc:{start:{line:8,column:1029},end:{line:8,column:1052}},line:8},9:{name:"(anonymous_9)",decl:{start:{line:8,column:1449},end:{line:8,column:1450}},loc:{start:{line:8,column:1465},end:{line:8,column:1495}},line:8},10:{name:"(anonymous_10)",decl:{start:{line:8,column:1739},end:{line:8,column:1740}},loc:{start:{line:8,column:1755},end:{line:8,column:1790}},line:8},11:{name:"(anonymous_11)",decl:{start:{line:8,column:1980},end:{line:8,column:1981}},loc:{start:{line:8,column:1995},end:{line:8,column:2019}},line:8},12:{name:"(anonymous_12)",decl:{start:{line:8,column:2232},end:{line:8,column:2233}},loc:{start:{line:8,column:2247},end:{line:8,column:2271}},line:8}},branchMap:{0:{loc:{start:{line:8,column:215},end:{line:8,column:264}},type:"cond-expr",locations:[{start:{line:8,column:230},end:{line:8,column:255}},{start:{line:8,column:256},end:{line:8,column:264}}],line:8},1:{loc:{start:{line:8,column:840},end:{line:8,column:944}},type:"if",locations:[{start:{line:8,column:840},end:{line:8,column:944}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:8},2:{loc:{start:{line:8,column:843},end:{line:8,column:931}},type:"binary-expr",locations:[{start:{line:8,column:843},end:{line:8,column:870}},{start:{line:8,column:872},end:{line:8,column:931}}],line:8},3:{loc:{start:{line:8,column:1820},end:{line:8,column:2059}},type:"cond-expr",locations:[{start:{line:8,column:1841},end:{line:8,column:2050}},{start:{line:8,column:2051},end:{line:8,column:2059}}],line:8},4:{loc:{start:{line:8,column:2072},end:{line:8,column:2311}},type:"cond-expr",locations:[{start:{line:8,column:2093},end:{line:8,column:2302}},{start:{line:8,column:2303},end:{line:8,column:2311}}],line:8}},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],3:[0,0],4:[0,0]},_coverageSchema:"1a1c01bbd47fc00a2c39e90264f33305004495a9",hash:"ee778a810c08a2155896da8e333d61232782dea6"},s=n[l]||(n[l]={});s[e]&&s[e].hash===t||(s[e]=a);var o=s[e];return i=function(){return o},o}n.r(t),n.d(t,{default:()=>se}),i(),i().s[0]++;var l=function(){i().f[0]++;var e=(i().s[1]++,this),t=(i().s[2]++,e._self._c);return i().s[3]++,t("div",[t("top-bar",{attrs:{menus:e.menus,title:e.title}}),e._v(" "),t("v-card",[t("div",{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 i().f[1]++,i().s[4]++,e.packetChanged(t)}}})],1),e._v(" "),t("v-card-title",[e._v("\n Items\n "),t("v-spacer"),e._v(" "),t("v-text-field",{staticClass:"search",attrs:{label:"Search","prepend-inner-icon":"mdi-magnify",clearable:"",outlined:"",dense:"","single-line":"","hide-details":""},model:{value:e.search,callback:function(t){i().f[2]++,i().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"},"multi-sort":"",dense:""},on:{"update:items-per-page":function(t){i().f[3]++,i().s[6]++,e.itemsPerPage=t}},scopedSlots:e._u([{key:"item.name",fn:function({item:n}){return i().f[4]++,i().s[7]++,[e._v("\n "+e._s(n.name)),n.derived?(i().b[0][0]++,t("span",[e._v(" *")])):(i().b[0][1]++,e._e())]}},{key:"item.value",fn:function({item:n}){return i().f[5]++,i().s[8]++,[t("value-widget",{attrs:{value:n.value,"limits-state":n.limitsState,counter:n.counter,parameters:[e.targetName,e.packetName,n.name],settings:[["WIDTH","100%"]]}})]}},{key:"footer.prepend",fn:function(){return i().f[6]++,i().s[9]++,[e._v("* indicates a \n "),t("a",{attrs:{href:"http://localhost:2900/tools/staticdocs/docs/configuration/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(i().f[7]++,i().s[10]++,i().b[2][0]++,!t.type.indexOf("key")&&(i().b[2][1]++,e._k(t.keyCode,"esc",27,t.key,["Esc","Escape"])))return i().b[1][0]++,i().s[11]++,null;i().b[1][1]++,i().s[12]++,e.optionsDialog=!1}},model:{value:e.optionsDialog,callback:function(t){i().f[8]++,i().s[13]++,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){i().f[9]++,i().s[14]++,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 (seconds)",value:e.staleLimit,"data-test":"stale-limit"},on:{change:function(t){i().f[10]++,i().s[15]++,e.staleLimit=parseInt(t)}}})],1)])],1)],1),e._v(" "),e.showOpenConfig?(i().b[3][0]++,t("open-config-dialog",{attrs:{configKey:e.configKey},on:{success:e.openConfiguration},model:{value:e.showOpenConfig,callback:function(t){i().f[11]++,i().s[16]++,e.showOpenConfig=t},expression:"showOpenConfig"}})):(i().b[3][1]++,e._e()),e._v(" "),e.showSaveConfig?(i().b[4][0]++,t("save-config-dialog",{attrs:{configKey:e.configKey},on:{success:e.saveConfiguration},model:{value:e.showSaveConfig,callback:function(t){i().f[12]++,i().s[17]++,e.showSaveConfig=t},expression:"showSaveConfig"}})):(i().b[4][1]++,e._e())],1)},a=(i().s[18]++,[]),s=(n(9375),n(814)),o=(n(7107),n(2482),n(7067),n(4147),n(2682),n(785),n(8357),n(6196),n(821),n(6554),n(8472),n(7404),n(5803),n(3912),n(7010),n(4625)),r=n(1649);const c=new r["default"],u=o.A.create({baseURL:location.origin,timeout:6e4,params:{}});u.interceptors.response.use((e=>e),(e=>{if(e.response){var t,n,i,l,a;if(401===e.response.status&&OpenC3Auth.updateToken(OpenC3Auth.defaultMinValidity,!0).then((function(e){e&&OpenC3Auth.setTokens()})),e.response.config.headers["Ignore-Errors"]&&e.response.config.headers["Ignore-Errors"].includes(e.response.status.toString()))return Promise.reject(e);let o=`HTTP ${e.response.status} - `;if(null!==(t=e.response)&&void 0!==t&&t.statusText&&(o+=`${e.response.statusText} `),null!==(n=e.response)&&void 0!==n&&null!==(n=n.config)&&void 0!==n&&n.data&&(o+=`${e.response.config.data} `),null!==(i=e.response)&&void 0!==i&&null!==(i=i.data)&&void 0!==i&&i.message)o+=`${e.response.data.message}`;else if(null!==(l=e.response)&&void 0!==l&&null!==(l=l.data)&&void 0!==l&&l.exception)o+=`${e.response.data.exception}`;else if(null!==(a=e.response)&&void 0!==a&&null!==(a=a.data)&&void 0!==a&&null!==(a=a.error)&&void 0!==a&&a.message)e.response.data.error.class&&(o+=`${e.response.data.error.class} `),o+=`${e.response.data.error.message}`;else{var s;o+=`${null===(s=e.response)||void 0===s?void 0:s.data}`}throw c.$notify&&c.$notify.serious({title:"Network error",body:o}),e}throw e}));const d=u;class m{constructor(){(0,s.A)(this,"id",1)}async exec(e,t,n={},i={},l=6e4){try{let e=await OpenC3Auth.updateToken(OpenC3Auth.defaultMinValidity);e&&OpenC3Auth.setTokens()}catch(s){OpenC3Auth.login()}this.id=this.id+1;try{n["scope"]=window.openc3Scope;const a=await d.post("/openc3-api/api",{jsonrpc:"2.0",method:e,params:t,id:this.id,keyword_params:n},{headers:{Authorization:localStorage.openc3Token,"Content-Type":"application/json-rpc",...i},timeout:l});return a.data.result}catch(s){var a=new Error;throw s.response?(a.name=s.response.data.error.data.class,a.message=s.response.data.error.data.message):s.request?(a.name="Request error",a.message="Request error, no response received"):a.name="Unknown error",a}}decode_openc3_type(e){if(null!==e&&"object"===typeof e&&"Float"==e.json_class&&e.raw){if("NaN"==e.raw)return NaN;if("Infinity"==e.raw)return 1/0;if("-Infinity"==e.raw)return-1/0}return null}encode_openc3_type(e){return Number.isNaN(e)?{json_class:"Float",raw:"NaN"}:e==Number.POSITIVE_INFINITY?{json_class:"Float",raw:"Infinity"}:e==Number.NEGATIVE_INFINITY?{json_class:"Float",raw:"-Infinity"}:null}ensure_offline_access(){this.offline_access_needed().then((e=>{e&&(localStorage.openc3OfflineToken?this.set_offline_access(localStorage.openc3OfflineToken).then((()=>{delete localStorage.openc3OfflineToken})):OpenC3Auth.getOfflineAccess())}))}offline_access_needed(){return this.exec("offline_access_needed",[])}set_offline_access(e){return this.exec("set_offline_access",[e])}get_all_interface_info(){return this.exec("get_all_interface_info",[])}map_target_to_interface(e,t){return this.exec("map_target_to_interface",[e,t])}connect_interface(e,...t){return t.length>0?this.exec("connect_interface",[e,...t]):this.exec("connect_interface",[e])}disconnect_interface(e){return this.exec("disconnect_interface",[e])}interface_cmd(e,t,...n){return this.exec("interface_cmd",[e,t,...n])}get_all_router_info(){return this.exec("get_all_router_info",[])}connect_router(e){return this.exec("connect_router",[e])}disconnect_router(e){return this.exec("disconnect_router",[e])}get_target_interfaces(){return this.exec("get_target_interfaces",[])}get_all_target_info(){return this.exec("get_all_target_info",[])}get_tlm_cnts(e){return this.exec("get_tlm_cnts",[e])}get_item(e,t,n){return this.exec("get_item",[e,t,n])}get_param(e,t,n){return this.exec("get_param",[e,t,n])}get_parameter(e,t,n){return this.exec("get_parameter",[e,t,n])}get_limits_sets(){return this.exec("get_limits_sets",[])}get_limits_set(){return this.exec("get_limits_set",[])}set_limits_set(e){return this.exec("set_limits_set",[e])}get_target(e){return this.exec("get_target",[e])}get_target_names(){return this.exec("get_target_names",[])}get_target_list(){return this.exec("get_target_list",[])}get_tlm(e,t){return this.exec("get_tlm",[e,t])}get_telemetry(e,t){return this.exec("get_telemetry",[e,t])}get_all_tlm(e){return this.exec("get_all_tlm",[e])}get_all_telemetry(e){return this.exec("get_all_telemetry",[e])}get_all_tlm_names(e){return this.exec("get_all_tlm_names",[e])}get_all_telemetry_names(e){return this.exec("get_all_telemetry_names",[e])}async get_tlm_packet(e,t,n,i=30){const l=await this.exec("get_tlm_packet",[e,t],{type:n,stale_time:i});if(null!=l)for(var a=l.length,s=null,o=0;o<a;o++)s=this.decode_openc3_type(l[o][1]),null!==s&&(l[o][1]=s);return l}get_packet_derived_items(e,t){return this.exec("get_packet_derived_items",[e,t])}get_tlm_buffer(e,t){return this.exec("get_tlm_buffer",[e,t])}async get_tlm_values(e,t=30,n=null){let i={stale_time:t};null!==n&&(i["cache_timeout"]=n);const l=await this.exec("get_tlm_values",[e],i,{},1e4);for(var a=l[0].length,s=null,o=0;o<a;o++)s=this.decode_openc3_type(l[0][o]),null!==s&&(l[0][o]=s);return l}get_limits(e,t,n){return this.exec("get_limits",[e,t,n])}async tlm(e,t,n,i="CONVERTED"){let l=null;if(void 0===t)l=await this.exec("tlm",[e]);else if(void 0===n){if(!["RAW","CONVERTED","FORMATTED","WITH_UNITS"].includes(t)){var a=new Error;throw a.name="TypeError",a.message=`Invalid data type ${t}. Valid options are RAW, CONVERTED, FORMATTED, and WITH_UNITS.`,a}l=await this.exec("tlm",[e],{type:t})}else l=await this.exec("tlm",[e,t,n],{type:i});var s=this.decode_openc3_type(l);return null!==s&&(l=s),l}async inject_tlm(e,t,n=null,i="CONVERTED"){data=await this.exec("inject_tlm",[e,t,n],{type:i})}set_tlm(e,t,n,i){return this.exec("set_tlm",[e,t,n],{type:i})}override_tlm(e,t,n,i){return this.exec("override_tlm",[e,t,n],{type:i})}get_overrides(){return this.exec("get_overrides")}normalize_tlm(e,t,n,i){return this.exec("normalize_tlm",[e,t,n],{type:i})}get_all_cmds(e){return this.exec("get_all_cmds",[e])}get_all_commands(e){return this.exec("get_all_commands",[e])}get_all_cmd_names(e){return this.exec("get_all_cmd_names",[e])}get_all_command_names(e){return this.exec("get_all_command_names",[e])}get_cmd(e,t){return this.exec("get_cmd",[e,t])}get_command(e,t){return this.exec("get_command",[e,t])}get_cmd_cnts(e){return this.exec("get_cmd_cnts",[e])}get_cmd_value(e,t,n,i="CONVERTED"){return this.exec("get_cmd_value",[e,t,n,i])}get_cmd_buffer(e,t){return this.exec("get_cmd_buffer",[e,t])}_cmd(e,t,n,i,l){var a=null;for(var s in i)Object.prototype.hasOwnProperty.call(i,s)&&(a=this.encode_openc3_type(i[s]),null!==a&&(i[s]=a));return this.exec(e,[t,n,i],{},l)}get_cmd_hazardous(e,t,n){return void 0===t?this.exec("get_cmd_hazardous",e):this._cmd("get_cmd_hazardous",e,t,n)}cmd(e,t,n,i={}){return void 0===t?this.exec("cmd",e,{},i):this._cmd("cmd",e,t,n,i)}cmd_no_range_check(e,t,n){return void 0===t?this.exec("cmd_no_range_check",e):this._cmd("cmd_no_range_check",e,t,n)}cmd_raw(e,t,n){return void 0===t?this.exec("cmd_raw",e):this._cmd("cmd_raw",e,t,n)}cmd_raw_no_range_check(e,t,n){return void 0===t?this.exec("cmd_raw_no_range_check",e):this._cmd("cmd_raw_no_range_check",e,t,n)}cmd_no_hazardous_check(e,t,n){return void 0===t?this.exec("cmd_no_hazardous_check",e):this._cmd("cmd_no_hazardous_check",e,t,n)}cmd_no_checks(e,t,n){return void 0===t?this.exec("cmd_no_checks",e):this._cmd("cmd_no_checks",e,t,n)}cmd_raw_no_hazardous_check(e,t,n){return void 0===t?this.exec("cmd_raw_no_hazardous_check",e):this._cmd("cmd_raw_no_hazardous_check",e,t,n)}cmd_raw_no_checks(e,t,n){return void 0===t?this.exec("cmd_raw_no_checks",e):this._cmd("cmd_raw_no_checks",e,t,n)}build_cmd(e,t,n){return void 0===t?this.exec("build_cmd",e):this._cmd("build_cmd",e,t,n)}build_command(e,t,n){return void 0===t?this.exec("build_command",e):this._cmd("build_command",e,t,n)}get_interface_names(){return this.exec("get_interface_names",[])}send_raw(e,t){return this.exec("send_raw",[e,t])}list_configs(e){return this.exec("list_configs",[e])}load_config(e,t){return this.exec("load_config",[e,t])}save_config(e,t,n){return this.exec("save_config",[e,t,n])}delete_config(e,t){return this.exec("delete_config",[e,t])}enable_limits(e,t,n){return this.exec("enable_limits",[e,t,n])}disable_limits(e,t,n){return this.exec("disable_limits",[e,t,n])}get_out_of_limits(){return this.exec("get_out_of_limits",[])}get_overall_limits_state(e){return this.exec("get_overall_limits_state",[e])}list_settings(){return this.exec("list_settings",[])}get_all_settings(){return this.exec("get_all_settings",[])}get_setting(e){return this.exec("get_setting",[e])}get_settings(e){return this.exec("get_settings",e)}set_setting(e,t){return this.exec("set_setting",[e,t])}save_setting(e,t){return this.exec("save_setting",[e,t])}get_metrics(){return this.exec("get_metrics",[])}async hashString(e){if(window.isSecureContext){const t=(new TextEncoder).encode(e),n=await crypto.subtle.digest("SHA-256",t),i=new Uint8Array(n);return Array.from(i).map((e=>e.toString(16).padStart(2,"0"))).join("")}}}var h=function(){var e=this,t=e._self._c;return t("div",{staticClass:"value-widget-container",style:[e.computedStyle,e.aging]},[t("v-tooltip",{attrs:{bottom:""},scopedSlots:e._u([{key:"activator",fn:function({on:n,attrs:i}){return[t("v-text-field",e._g(e._b({class:e.valueClass,attrs:{solo:"",dense:"",readonly:"","single-line":"","hide-no-data":"","hide-details":"",placeholder:"Value",value:e._value,"prepend-inner-icon":e.astroIcon,"data-test":"value"},on:{contextmenu:e.showContextMenu}},"v-text-field",i,!1),n))]}}])},[e._v(" "),t("span",[e._v(e._s(e.fullName))])]),e._v(" "),t("v-menu",{staticStyle:{"z-index":"10"},attrs:{"position-x":e.x,"position-y":e.y,absolute:"","offset-y":""},model:{value:e.contextMenuShown,callback:function(t){e.contextMenuShown=t},expression:"contextMenuShown"}},[t("v-list",e._l(e.contextMenuOptions,(function(n,i){return t("v-list-item",{key:i,on:{click:function(e){return e.stopPropagation(),n.action.apply(null,arguments)}}},[t("v-list-item-title",[e._v(e._s(n.title))])],1)})),1)],1),e._v(" "),t("details-dialog",{attrs:{"target-name":e.parameters[0],"packet-name":e.parameters[1],"item-name":e.parameters[2]},model:{value:e.viewDetails,callback:function(t){e.viewDetails=t},expression:"viewDetails"}})],1)},A=[];n(7534),n(4293);class p{constructor(e,t,n="",i=""){this.keyword=e.keyword,this.parameters=e.parameters,this.filename=e.filename,this.line=e.line,this.lineNumber=e.lineNumber,this.message=t,this.usage=n,this.url=i}}const v={props:{widgetIndex:{type:Number,default:null},parameters:{type:Array,default:()=>[]},settings:{type:Array,default:()=>[]},line:{type:String,default:""},lineNumber:{type:Number,default:0}},data(){return{screen:null}},computed:{computedStyle(){let e={};return this.settings.forEach((t=>{const n=parseInt(t[0]);if(null!==this.widgetIndex){if(this.widgetIndex!==n)return;t=t.slice(1)}this.applySetting(e,t)})),void 0===e["width"]&&(e["flex"]="0 10 100%"),e}},created(){this.settings.forEach((e=>{"__SCREEN__"===e[0]&&(this.screen=e[1])}))},methods:{applySetting(e,t){switch(t[0]){case"TEXTALIGN":e["text-align"]=t[1].toLowerCase()+" !important",e["--text-align"]=t[1].toLowerCase();break;case"PADDING":isNaN(Number(t[1]))||(t[1]+="px"),e["padding"]=t[1]+" !important";break;case"MARGIN":isNaN(Number(t[1]))||(t[1]+="px"),e["margin"]=t[1]+" !important";break;case"BACKCOLOR":e["background-color"]=this.getColor(t.slice(1))+" !important";break;case"TEXTCOLOR":e["color"]=this.getColor(t.slice(1))+" !important";break;case"BORDERCOLOR":e["border-width"]="1px!important",e["border-style"]="solid!important",e["border-color"]=this.getColor(t.slice(1))+" !important";break;case"WIDTH":isNaN(Number(t[1]))||(t[1]+="px"),e["width"]=t[1]+" !important";break;case"HEIGHT":isNaN(Number(t[1]))||(t[1]+="px"),e["height"]=t[1]+" !important";break;case"RAW":e[t[1].toLowerCase()]=t[2]+" !important";break}},verifyNumParams(e,t,n,i=""){let l={line:this.line,lineNumber:this.lineNumber,keyword:e,parameters:this.parameters};for(var a=1;a<=t;a++)if(void 0===this.parameters[a-1])throw new p(l,`Not enough parameters for ${e}.`,i,"https://docs.openc3.com/docs/configuration");if(null!==n&&this.parameters.length>n)throw new p(l,`Too many parameters for ${e}.`,i,"https://docs.openc3.com/docs/configuration")},setWidth(e,t="px",n="120"){let i=null;if(i=null!==this.widgetIndex?this.settings.find((e=>parseInt(e[0])===this.widgetIndex&&"WIDTH"===e[1])):this.settings.find((e=>"WIDTH"===e[0])),i)return i["WIDTH"];if(e){let n=["WIDTH",`${e}${t}`];return null!==this.widgetIndex&&n.unshift(this.widgetIndex),this.settings.push(n),parseInt(e)}{let e=["WIDTH",`${n}${t}`];return null!==this.widgetIndex&&e.unshift(this.widgetIndex),this.settings.push(e),parseInt(n)}},setHeight(e,t="px",n="20"){let i=null;if(i=null!==this.widgetIndex?this.settings.find((e=>parseInt(e[0])===this.widgetIndex&&"HEIGHT"===e[1])):this.settings.find((e=>"HEIGHT"===e[0])),i)return i["HEIGHT"];if(e){let n=["HEIGHT",`${e}${t}`];return null!==this.widgetIndex&&n.unshift(this.widgetIndex),this.settings.push(n),parseInt(e)}{let e=["HEIGHT",`${n}${t}`];return null!==this.widgetIndex&&e.unshift(this.widgetIndex),this.settings.push(e),parseInt(n)}},getColor(e){switch(e.length){case 1:return e[0].toLowerCase();case 3:return`rgb(${e[0]},${e[1]},${e[2]})`}}}};n(9471);const g={mixins:[v],props:{value:{default:null},limitsState:{type:String,default:null},counter:{default:null},formatString:null},data(){return{curValue:null,prevValue:null,grayLevel:80,grayRate:5,valueId:null,viewDetails:!1,contextMenuShown:!1,x:0,y:0,contextMenuOptions:[{title:"Details",action:()=>{this.contextMenuShown=!1,this.viewDetails=!0}},{title:"Graph",action:()=>{window.open("/tools/tlmgrapher/"+this.parameters[0]+"/"+this.parameters[1]+"/"+this.parameters[2],"_blank")}}]}},watch:{_counter:function(e,t){this.curValue!==this.prevValue?this.grayLevel=80:(this.grayLevel-=this.grayRate,this.grayLevel<30&&(this.grayLevel=30)),this.prevValue=this.curValue}},computed:{_value:function(){return this.curValue=this.value,null===this.curValue&&(this.screen?this.screen.screenValues[this.valueId]&&(this.curValue=this.screen.screenValues[this.valueId][0]):this.curValue=null),this.curValue=this.formatValue(this.curValue),this.curValue},_limitsState:function(){let e=this.limitsState;return null===e&&(this.screen?this.screen.screenValues[this.valueId]&&(e=this.screen.screenValues[this.valueId][1]):e=null),e},_counter:function(){let e=this.counter;return null===e&&(this.screen?this.screen.screenValues[this.valueId]&&(e=this.screen.screenValues[this.valueId][2]):e=null),e},valueClass:function(){return"value shrink pa-1 openc3-"+this.limitsColor},astroIcon(){switch(this.limitsColor){case"green":return"$vuetify.icons.astro-status-normal";case"yellow":return"$vuetify.icons.astro-status-caution";case"red":return"$vuetify.icons.astro-status-critical";case"blue":return"$vuetify.icons.astro-status-standby";default:return null}},limitsColor(){let e=this._limitsState;if(null!=e)switch(e){case"GREEN":case"GREEN_HIGH":case"GREEN_LOW":return"green";case"YELLOW":case"YELLOW_HIGH":case"YELLOW_LOW":return"yellow";case"RED":case"RED_HIGH":case"RED_LOW":return"red";case"BLUE":return"blue";case"STALE":return"purple";default:return"white"}return""},limitsLetter(){let e=this._limitsState;if(null!=e){let t=e.charAt(0);return e.endsWith("_LOW")&&(t=t.toLowerCase()),t}return""}},created(){null!==this.value&&null!==this.limitsState||(this.valueId=`${this.parameters[0]}__${this.parameters[1]}__${this.parameters[2]}__${this.getType()}`,this.screen&&this.screen.addItem(this.valueId))},destroyed(){null!==this.value&&null!==this.limitsState||this.screen&&this.screen.deleteItem(this.valueId)},methods:{getType(){var e="WITH_UNITS";return this.parameters[3]&&(e=this.parameters[3]),e},formatValue(e){if(e&&"String"===e["json_class"]&&void 0!==e["raw"]){let t=Array.from(e["raw"].slice(0,32),(function(e){return("0"+(255&e).toString(16)).slice(-2)})).join(" ").toUpperCase();return e["raw"].length>32&&(t+="..."),t}if("Array"===Object.prototype.toString.call(e).slice(8,-1)){let t="[";for(let n=0;n<e.length;n++)"String"===Object.prototype.toString.call(e[n]).slice(8,-1)?t+='"'+e[n]+'"':t+=e[n],n!=e.length-1&&(t+=", ");return t+="]",t}return"Object"===Object.prototype.toString.call(e).slice(8,-1)?"":this.formatString&&e?sprintf(this.formatString,e):""+e},showContextMenu(e){e.preventDefault(),this.contextMenuShown=!1,this.x=e.clientX,this.y=e.clientY,this.$nextTick((()=>{this.contextMenuShown=!0}))}}};var f=function(){var e=this,t=e._self._c;return t("v-dialog",{attrs:{width:"600"},model:{value:e.show,callback:function(t){e.show=t},expression:"show"}},[t("v-card",[t("v-system-bar",[t("v-spacer"),e._v(" "),t("span",[e._v(" Details ")]),e._v(" "),t("v-spacer")],1),e._v(" "),t("v-card-title",[e._v("\n "+e._s(e.targetName)+" "+e._s(e.packetName)+" "+e._s(e.itemName)+"\n ")]),e._v(" "),t("v-card-subtitle",[e._v(e._s(e.details.description))]),e._v(" "),t("v-card-text",[t("v-container",{attrs:{fluid:""}},["tlm"===e.type?t("v-row",{attrs:{"no-gutters":""}},[t("v-col",{staticClass:"label",attrs:{cols:"3"}},[e._v("Item Values")]),e._v(" "),t("v-col"),e._v(" "),t("v-container",{staticClass:"ml-5 pa-0",attrs:{fluid:""}},[t("v-row",{attrs:{"no-gutters":""}},[t("v-col",{staticClass:"label",attrs:{cols:"4"}},[e._v("Raw Value")]),e._v(" "),t("v-col",[e._v(e._s(e.rawValue))])],1),e._v(" "),t("v-row",{attrs:{"no-gutters":""}},[t("v-col",{staticClass:"label",attrs:{cols:"4"}},[e._v("Converted Value")]),e._v(" "),t("v-col",[e._v(e._s(e.convertedValue))])],1),e._v(" "),t("v-row",{attrs:{"no-gutters":""}},[t("v-col",{staticClass:"label",attrs:{cols:"4"}},[e._v("Formatted Value")]),e._v(" "),t("v-col",[e._v(e._s(e.formattedValue))])],1),e._v(" "),t("v-row",{attrs:{"no-gutters":""}},[t("v-col",{staticClass:"label",attrs:{cols:"4"}},[e._v("With Units Value")]),e._v(" "),t("v-col",[e._v(e._s(e.unitsValue))])],1)],1)],1):e._e(),e._v(" "),t("v-row",{attrs:{"no-gutters":""}},[t("v-col",{staticClass:"label",attrs:{cols:"3"}},[e._v("Bit Offset")]),e._v(" "),t("v-col",[e._v(e._s(e.details.bit_offset))])],1),e._v(" "),t("v-row",{attrs:{"no-gutters":""}},[t("v-col",{staticClass:"label",attrs:{cols:"3"}},[e._v("Bit Size")]),e._v(" "),t("v-col",[e._v(e._s(e.details.bit_size))])],1),e._v(" "),e.details.array_size?t("v-row",{attrs:{"no-gutters":""}},[t("v-col",{staticClass:"label",attrs:{cols:"3"}},[e._v("Array Size")]),e._v(" "),t("v-col",[e._v(e._s(e.details.array_size))])],1):e._e(),e._v(" "),t("v-row",{attrs:{"no-gutters":""}},[t("v-col",{staticClass:"label",attrs:{cols:"3"}},[e._v("Data Type")]),e._v(" "),t("v-col",[e._v(e._s(e.details.data_type))])],1),e._v(" "),"cmd"===e.type?t("v-row",{attrs:{"no-gutters":""}},[t("v-col",{staticClass:"label",attrs:{cols:"3"}},[e._v("Minimum")]),e._v(" "),t("v-col",[e._v(e._s(e.details.minimum))])],1):e._e(),e._v(" "),"cmd"===e.type?t("v-row",{attrs:{"no-gutters":""}},[t("v-col",{staticClass:"label",attrs:{cols:"3"}},[e._v("Maximum")]),e._v(" "),t("v-col",[e._v(e._s(e.details.maximum))])],1):e._e(),e._v(" "),"cmd"===e.type?t("v-row",{attrs:{"no-gutters":""}},[t("v-col",{staticClass:"label",attrs:{cols:"3"}},[e._v("Default")]),e._v(" "),t("v-col",[e._v(e._s(e.details.default))])],1):e._e(),e._v(" "),t("v-row",{attrs:{"no-gutters":""}},[t("v-col",{staticClass:"label",attrs:{cols:"3"}},[e._v("Format String")]),e._v(" "),t("v-col",[e._v(e._s(e.details.format_string))])],1),e._v(" "),t("v-row",{attrs:{"no-gutters":""}},[t("v-col",{staticClass:"label",attrs:{cols:"3"}},[e._v("Read Conversion")]),e._v(" "),e.details.read_conversion?t("v-col",[e._v("\n Class: "+e._s(e.details.read_conversion.class)+"\n "),t("br"),e._v("\n Params:\n "+e._s(e.details.read_conversion.params)+"\n ")]):t("v-col")],1),e._v(" "),t("v-row",{attrs:{"no-gutters":""}},[t("v-col",{staticClass:"label",attrs:{cols:"3"}},[e._v("Write Conversion")]),e._v(" "),e.details.write_conversion?t("v-col",[e._v("\n Class: "+e._s(e.details.write_conversion.class)+"\n "),t("br"),e._v("\n Params:\n "+e._s(e.details.write_conversion.params)+"\n ")]):t("v-col")],1),e._v(" "),t("v-row",{attrs:{"no-gutters":""}},[t("v-col",{staticClass:"label",attrs:{cols:"3"}},[e._v("Id Value")]),e._v(" "),t("v-col",[e._v(e._s(e.details.id_value))])],1),e._v(" "),t("v-row",{attrs:{"no-gutters":""}},[t("v-col",{staticClass:"label",attrs:{cols:"3"}},[e._v("Units Full")]),e._v(" "),t("v-col",[e._v(e._s(e.details.units_full))])],1),e._v(" "),t("v-row",{attrs:{"no-gutters":""}},[t("v-col",{staticClass:"label",attrs:{cols:"3"}},[e._v("Units Abbr")]),e._v(" "),t("v-col",[e._v(e._s(e.details.units))])],1),e._v(" "),t("v-row",{attrs:{"no-gutters":""}},[t("v-col",{staticClass:"label",attrs:{cols:"3"}},[e._v("Endianness")]),e._v(" "),t("v-col",[e._v(e._s(e.details.endianness))])],1),e._v(" "),e.details.states?t("v-row",{attrs:{"no-gutters":""}},[t("v-col",{staticClass:"label",attrs:{cols:"3"}},[e._v("States")]),e._v(" "),t("v-col"),e._v(" "),t("v-container",{staticClass:"ml-5 pa-0",attrs:{fluid:""}},e._l(e.details.states,(function(n,i){return t("v-row",{key:i,attrs:{"no-gutters":""}},[t("v-col",{staticClass:"label",attrs:{cols:"4"}},[e._v(e._s(i))]),e._v(" "),t("v-col",[e._v(e._s(n.value))])],1)})),1)],1):t("v-row",{attrs:{"no-gutters":""}},[t("v-col",{staticClass:"label",attrs:{cols:"3"}},[e._v("States")]),e._v(" "),t("v-col",[e._v("None")])],1),e._v(" "),e.details.limits?t("v-row",{attrs:{"no-gutters":""}},[t("v-col",{staticClass:"label",attrs:{cols:"3"}},[e._v("Limits")]),e._v(" "),t("v-col"),e._v(" "),t("v-container",{staticClass:"ml-5 pa-0",attrs:{fluid:""}},e._l(e.details.limits,(function(n,i){return t("v-row",{key:i,attrs:{"no-gutters":""}},["enabled"===i?t("v-col",{staticClass:"label",attrs:{cols:"4"}},[e._v("Enabled")]):e._e(),e._v(" "),"enabled"===i?t("v-switch",{attrs:{dense:"","hide-details":""},on:{change:e.changeLimitsEnabled},model:{value:e.details.limits.enabled,callback:function(t){e.$set(e.details.limits,"enabled",t)},expression:"details.limits.enabled"}}):e._e(),e._v(" "),"enabled"!==i?t("v-col",{staticClass:"label",attrs:{cols:"4"}},[e._v(e._s(i))]):e._e(),e._v(" "),"enabled"!==i?t("div",[e._v(e._s(e.formatLimit(n)))]):e._e(),e._v(" "),t("v-col")],1)})),1)],1):t("v-row",{attrs:{"no-gutters":""}},[t("v-col",{staticClass:"label",attrs:{cols:"3"}},[e._v("Limits")]),e._v(" "),t("v-col",[e._v("None")])],1),e._v(" "),e.details.meta?t("v-row",{attrs:{"no-gutters":""}},[t("v-col",{staticClass:"label",attrs:{cols:"3"}},[e._v("Meta")]),e._v(" "),t("v-col"),e._v(" "),t("v-container",{staticClass:"ml-5 pa-0",attrs:{fluid:""}},e._l(e.details.meta,(function(n,i){return t("v-row",{key:i,attrs:{"no-gutters":""}},[t("v-col",{staticClass:"label",attrs:{cols:"4"}},[e._v(e._s(i))]),e._v(" "),t("v-col",[e._v(e._s(n))])],1)})),1)],1):t("v-row",{attrs:{"no-gutters":""}},[t("v-col",{staticClass:"label",attrs:{cols:"3"}},[e._v("Meta")]),e._v(" "),t("v-col",[e._v("None")])],1)],1)],1)],1)],1)},_=[];const C={props:{type:{default:"tlm",validator:function(e){return-1!==["cmd","tlm"].indexOf(e)}},targetName:String,packetName:String,itemName:String,value:Boolean},data(){return{details:Object,updater:null,rawValue:null,convertedValue:null,formattedValue:null,unitsValue:null}},computed:{show:{get(){return this.value},set(e){this.$emit("input",e)}}},created(){this.api=new m},beforeDestroy(){clearInterval(this.updater),this.updater=null},watch:{value:function(e,t){e?(this.requestDetails(),"tlm"===this.type&&(this.updater=setInterval((()=>{this.api.get_tlm_values([`${this.targetName}__${this.packetName}__${this.itemName}__RAW`,`${this.targetName}__${this.packetName}__${this.itemName}__CONVERTED`,`${this.targetName}__${this.packetName}__${this.itemName}__FORMATTED`,`${this.targetName}__${this.packetName}__${this.itemName}__WITH_UNITS`]).then((e=>{for(var t=0;t<e.length;t++){let n=null;if("String"===e[t][0]["json_class"]&&void 0!==e[t][0]["raw"]?n=e[t][0]["raw"]:"BLOCK"===this.details.data_type&&(n=e[t][0]),null!==n){n=n.slice(0,parseInt(this.details.bit_size)/8);let i=!1;n.length>64&&(i=!0),e[t][0]=Array.from(n.slice(0,64),(function(e){return" "===e?"20":("0"+(255&e).toString(16)).slice(-2)})).join(" ").toUpperCase(),i&&(e[t][0]+="...")}}this.details.data_type.includes("INT")&&!this.details.array_size?this.rawValue=`${e[0][0]} (0x${e[0][0].toString(16).toUpperCase()})`:this.rawValue=e[0][0],this.convertedValue=e[1][0],this.formattedValue=e[2][0],this.unitsValue=e[3][0]}))}),1e3))):(clearInterval(this.updater),this.updater=null)}},methods:{async requestDetails(){"tlm"===this.type?await this.api.get_item(this.targetName,this.packetName,this.itemName).then((e=>{if(this.details=e,0===Object.keys(e.limits).length)this.details.limits=null;else{let t=!1;e.limits.enabled&&(t=!0,delete e.limits.enabled),this.details.limits={enabled:t,...e.limits}}})):await this.api.get_parameter(this.targetName,this.packetName,this.itemName).then((e=>{this.details=e}))},async changeLimitsEnabled(){this.details.limits.enabled?await this.api.enable_limits(this.targetName,this.packetName,this.itemName):await this.api.disable_limits(this.targetName,this.packetName,this.itemName)},formatLimit(e){return e.hasOwnProperty("green_low")?"RL/"+e.red_low+" YL/"+e.yellow_low+" YH/"+e.yellow_high+" RH/"+e.red_high+" GL/"+e.green_low+" GH/"+e.green_high:e.hasOwnProperty("red_low")?"RL/"+e.red_low+" YL/"+e.yellow_low+" YH/"+e.yellow_high+" RH/"+e.red_high:e}}},y=C;n(1727);var b=n(2401),w=(0,b.A)(y,f,_,!1,null,"6659f972",null);const N=w.exports,k=4,x={components:{DetailsDialog:N},mixins:[g],data:function(){return{width:12+k}},computed:{fullName(){return this.parameters[0]+" "+this.parameters[1]+" "+this.parameters[2]},aging(){return{"--aging":this.grayLevel}}},created(){this.verifyNumParams("VALUE",3,5,"VALUE <TARGET> <PACKET> <ITEM> <TYPE> <WIDTH>"),this.setWidth(parseInt(this.parameters[4])+k,"ch",this.width)}},I=x;n(8087);var T=(0,b.A)(I,h,A,!1,null,"f6adf1e0",null);const D=T.exports;var S=function(){var e=this,t=e._self._c;return t("div",{staticClass:"pt-4 tgt-pkt-item-chooser"},[t("v-row",[t("v-col",{staticClass:"select",attrs:{cols:e.colSize,"data-test":"select-target"}},[t("v-autocomplete",{attrs:{label:"Select Target","hide-details":"",dense:"",outlined:"",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",{staticClass:"select",attrs:{cols:e.colSize,"data-test":"select-packet"}},[t("v-autocomplete",{attrs:{label:"Select Packet","hide-details":"",dense:"",outlined:"",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",{staticClass:"select",attrs:{cols:e.colSize,"data-test":"select-item"}},[t("v-autocomplete",{attrs:{label:"Select Item","hide-details":"",dense:"",outlined:"",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.itemIsArray()?t("v-col",{staticClass:"select",attrs:{cols:e.colSize,"data-test":"array-index"}},[t("v-combobox",{attrs:{label:"Array Index","hide-details":"",dense:"",outlined:"",disabled:e.itemsDisabled||e.buttonDisabled,items:e.arrayIndexes(),"item-text":"label","item-value":"value"},on:{change:function(t){return e.indexChanged(t)}},model:{value:e.selectedArrayIndex,callback:function(t){e.selectedArrayIndex=t},expression:"selectedArrayIndex"}})],1):e._e(),e._v(" "),e.buttonText?t("v-col",{staticStyle:{"max-width":"0px"},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",{staticClass:"select",attrs:{cols:e.colSize,"data-test":"data-type"}},[t("v-autocomplete",{attrs:{label:"Value Type","hide-details":"",dense:"",outlined:"",items:e.valueTypes},model:{value:e.selectedValueType,callback:function(t){e.selectedValueType=t},expression:"selectedValueType"}})],1),e._v(" "),t("v-col",{staticClass:"select",attrs:{cols:e.colSize,"data-test":"reduced"}},[t("v-autocomplete",{attrs:{label:"Reduced","hide-details":"",dense:"",outlined:"",items:e.reductionModes},model:{value:e.selectedReduced,callback:function(t){e.selectedReduced=t},expression:"selectedReduced"}})],1),e._v(" "),t("v-col",{staticClass:"select",attrs:{cols:e.colSize,"data-test":"reduced-type"}},[t("v-autocomplete",{attrs:{label:"Reduced Type","hide-details":"",dense:"",outlined:"",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",{staticStyle:{"max-width":"0px"},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",attrs:{cols:e.colSize}},[e._v("Description: "+e._s(e.description)+" (HAZARDOUS)")]):t("v-col",{attrs:{cols:e.colSize}},[e._v("Description: "+e._s(e.description)+" ")])],1)],1)},$=[];n(8605),n(8752);const E={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:e=>["cmd","tlm"].includes(e)},unknown:{type:Boolean,default:!1},vertical:{type:Boolean,default:!1}},data(){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"}],selectedArrayIndex:null,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(){this.internalDisabled=!0,this.api=new m,this.api.get_target_names().then((e=>{this.targetNames=e.flatMap((e=>"UNKNOWN"==e?[]:{label:e,value:e})),this.allowAllTargets&&this.targetNames.unshift(this.ALL),this.selectedTargetName||(this.selectedTargetName=this.targetNames[0].value,this.targetNameChanged(this.selectedTargetName)),this.updatePackets(),this.unknown&&this.targetNames.push(this.UNKNOWN)}))},computed:{actualButtonText:function(){return"ALL"===this.selectedPacketName?"Add Target":"ALL"===this.selectedItemName?"Add Packet":this.buttonText},buttonDisabled:function(){return this.disabled||this.internalDisabled},colSize:function(){return!!this.vertical&&12},selectedItemNameWIndex:function(){return null!==this.selectedArrayIndex&&this.selectedArrayIndex!==this.ALL.label?`${this.selectedItemName}[${this.selectedArrayIndex}]`:this.selectedItemName}},watch:{mode:function(e,t){this.selectedPacketName=null,this.selectedItemName=null,this.updatePackets()}},methods:{updatePackets:function(){if("UNKNOWN"===this.selectedTargetName)return this.packetNames=[this.UNKNOWN],this.selectedPacketName=this.packetNames[0].value,this.updatePacketDetails(this.UNKNOWN.value),void(this.description="UNKNOWN");if("ALL"===this.selectedTargetName)return this.packetNames=[this.ALL],this.selectedPacketName=this.packetNames[0].value,this.updatePacketDetails(this.ALL.value),void(this.description="ALL");this.internalDisabled=!0;const e="tlm"===this.mode?"get_all_tlm_names":"get_all_cmd_names";this.api[e](this.selectedTargetName).then((e=>{this.packetNames=e.map((e=>({label:e,value:e}))),this.allowAll&&this.packetNames.unshift(this.ALL),this.selectedPacketName||(this.selectedPacketName=this.packetNames[0].value),this.updatePacketDetails(this.selectedPacketName);const t=this.packetNames.find((e=>e.value===this.selectedPacketName));t&&this.chooseItem&&this.updateItems(),this.internalDisabled=!1}))},updateItems:function(){if("ALL"===this.selectedPacketName)return;this.internalDisabled=!0;const e="tlm"===this.mode?"get_tlm":"get_cmd";this.api[e](this.selectedTargetName,this.selectedPacketName).then((e=>{this.itemNames=e.items.map((e=>{let t=e.name;return"DERIVED"==e.data_type&&(t+=" *"),[{label:t,value:e.name,description:e.description,array:e.array_size/e.bit_size}]})).reduce(((e,t)=>e.concat(t)),[]),this.itemNames.sort(((e,t)=>e.label>t.label?1:-1)),this.allowAll&&this.itemNames.unshift(this.ALL),this.selectedItemName||(this.selectedItemName=this.itemNames[0].value),this.description=this.itemNames[0].description,this.itemIsArray(),this.$emit("on-set",{targetName:this.selectedTargetName,packetName:this.selectedPacketName,itemName:this.selectedItemNameWIndex,valueType:this.selectedValueType,reduced:this.selectedReduced,reducedType:this.selectedReducedType}),this.internalDisabled=!1}))},itemIsArray:function(){let e=this.itemNames.findIndex((e=>e.value===this.selectedItemName));return-1===e||isNaN(this.itemNames[e].array)?(this.selectedArrayIndex=null,!1):(null===this.selectedArrayIndex&&(this.selectedArrayIndex=0),!0)},arrayIndexes:function(){let e=this.itemNames.findIndex((e=>e.value===this.selectedItemName)),t=[...Array(this.itemNames[e].array).keys()];return this.allowAll&&t.unshift(this.ALL.label),t},targetNameChanged:function(e){this.selectedTargetName=e,this.selectedPacketName="",this.selectedItemName="",this.updatePackets()},packetNameChanged:function(e){this.selectedItemName="",this.updatePacketDetails(e)},updatePacketDetails:function(e){if("ALL"===e)this.itemsDisabled=!0,this.internalDisabled=!1;else{this.itemsDisabled=!1;const t=this.packetNames.find((t=>e===t.value));if(t){this.selectedPacketName=t.value;const e="tlm"===this.mode?"get_tlm":"get_cmd";this.api[e](this.selectedTargetName,this.selectedPacketName).then((e=>{this.description=e.description,this.hazardous=e.hazardous}))}}this.chooseItem?this.updateItems():this.$emit("on-set",{targetName:this.selectedTargetName,packetName:this.selectedPacketName,itemName:this.selectedItemNameWIndex,valueType:this.selectedValueType,reduced:this.selectedReduced,reducedType:this.selectedReducedType})},itemNameChanged:function(e){const t=this.itemNames.find((t=>e===t.value));t&&(this.itemIsArray(),this.selectedItemName=t.value,this.description=t.description,this.$emit("on-set",{targetName:this.selectedTargetName,packetName:this.selectedPacketName,itemName:this.selectedItemNameWIndex,valueType:this.selectedValueType,reduced:this.selectedReduced,reducedType:this.selectedReducedType}))},indexChanged:function(e){this.$emit("on-set",{targetName:this.selectedTargetName,packetName:this.selectedPacketName,itemName:this.selectedItemNameWIndex,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.selectedItemNameWIndex,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(){this.packetNames.forEach((e=>{if(e===this.ALL)return;const t="tlm"===this.mode?"get_tlm":"get_cmd";this.api[t](this.selectedTargetName,e.value).then((t=>{t.items.forEach((t=>{this.$emit("click",{targetName:this.selectedTargetName,packetName:e.value,itemName:t["name"],valueType:this.selectedValueType,reduced:this.selectedReduced,reducedType:this.selectedReducedType})}))}))}))},allPacketItems:function(){this.itemNames.forEach((e=>{e!==this.ALL&&this.$emit("click",{targetName:this.selectedTargetName,packetName:this.selectedPacketName,itemName:e.value,valueType:this.selectedValueType,reduced:this.selectedReduced,reducedType:this.selectedReducedType})}))}}},L=E;n(6769);var P=(0,b.A)(L,S,$,!1,null,"36062eb2",null);const R=P.exports;var O=function(){var e=this,t=e._self._c;return t("mounting-portal",{attrs:{"mount-to":"#openc3-menu",append:""}},[t("v-row",{attrs:{"no-gutters":""}},[t("v-col",{attrs:{"align-self":"end"}},[t("span",{staticClass:"app-title mr-2"},[e._v(e._s(e.title))])])],1),e._v(" "),t("v-row",{staticClass:"flex-nowrap",attrs:{dense:""}},e._l(e.menus,(function(n,i){return t("v-menu",{key:i,ref:"topmenu",refInFor:!0,attrs:{"offset-y":""},scopedSlots:e._u([{key:"activator",fn:function({on:i,attrs:l}){return[t("v-btn",e._g(e._b({staticClass:"mx-1 menu-button",attrs:{outlined:"","data-test":e.formatDT(`${e.title} ${n.label}`)}},"v-btn",l,!1),i),[t("span",{domProps:{textContent:e._s(n.label)}}),e._v(" "),t("v-icon",{staticClass:"myicon",attrs:{right:""}},[e._v(" mdi-menu-down ")])],1)]}}],null,!0)},[e._v(" "),t("v-list",[t("v-radio-group",{staticClass:"ma-0 pa-0",attrs:{value:n.radioGroup,"hide-details":"",dense:""}},[e._l(n.items,(function(i,l){return[i.divider?t("v-divider",{key:l}):i.subMenu&&i.subMenu.length>0?t("div",{key:l},[t("v-menu",{key:e.k,attrs:{"open-on-hover":"","offset-x":"",bottom:""},scopedSlots:e._u([{key:"activator",fn:function({on:n,attrs:a}){return[t("v-list-item",e._g(e._b({key:l,attrs:{disabled:i.disabled}},"v-list-item",a,!1),n),[i.icon?t("v-list-item-icon",[t("v-icon",{attrs:{disabled:i.disabled}},[e._v(e._s(i.icon))])],1):e._e(),e._v(" "),i.radio||i.checkbox?e._e():t("v-list-item-title",{style:"cursor: pointer;"+(i.disabled?"opacity: 0.2":"")},[e._v(e._s(i.label)+"\n ")]),e._v(" "),t("v-icon",[e._v(" mdi-chevron-right ")])],1)]}}],null,!0)},[e._v(" "),t("v-list",e._l(i.subMenu,(function(n,i){return t("v-list-item",{key:i,on:{click:function(t){return e.subMenuClick(n)}}},[n.icon?t("v-list-item-icon",[t("v-icon",[e._v(e._s(n.icon))])],1):e._e(),e._v(" "),t("v-list-item-title",[e._v(e._s(n.label))])],1)})),1)],1)],1):t("v-list-item",{key:l,attrs:{disabled:i.disabled,"data-test":e.formatDT(`${e.title} ${n.label} ${i.label}`)},on:{click:function(e){return i.command(i)}}},[i.radio?t("v-list-item-action",[t("v-radio",{attrs:{color:"secondary",label:i.label,value:i.label}})],1):e._e(),e._v(" "),i.checkbox?t("v-list-item-action",[t("v-checkbox",{attrs:{color:"secondary",label:i.label},model:{value:i.checked,callback:function(t){e.$set(i,"checked",t)},expression:"option.checked"}})],1):e._e(),e._v(" "),i.icon?t("v-list-item-icon",[t("v-icon",{attrs:{disabled:i.disabled}},[e._v(e._s(i.icon))])],1):e._e(),e._v(" "),i.radio||i.checkbox?e._e():t("v-list-item-title",{style:"cursor: pointer;"+(i.disabled?"opacity: 0.2":"")},[e._v(e._s(i.label))])],1)]}))],2)],1)],1)})),1)],1)},V=[];n(8715);const U={props:{menus:{type:Array,default:function(){return[]}},title:{type:String,default:""}},methods:{formatDT:function(e){return e.replaceAll(" ","-").toLowerCase()},subMenuClick(e){e.command(e),this.$refs.topmenu[0].isActive=!1}},mounted(){document.title=this.title}},W=U;n(1e3);var M=(0,b.A)(W,O,V,!1,null,"57d4fdd2",null);const H=M.exports,z={data:{configKey:"",dontSaveDefaultConfig:!1},methods:{loadDefaultConfig:function(){return localStorage[`${this.configKey}__default`]?JSON.parse(localStorage[`${this.configKey}__default`]):{}},saveDefaultConfig:function(e){!0!==this.dontSaveDefaultConfig&&(localStorage[`${this.configKey}__default`]=JSON.stringify(e))},openConfigBase:function(e,t=!1,n=null){(new m).load_config(this.configKey,e).then((i=>{i?(this.$notify.normal({title:"Loading configuration",body:e}),n&&n(JSON.parse(i)),t||this.$router.currentRoute.fullPath.includes(e)||this.$router.push({query:{config:e}})):this.$notify.caution({title:"Unknown configuration",body:e})})).catch((t=>{t&&this.$notify.serious({title:`Error opening configuration: ${e}`,body:t})}))},saveConfigBase:function(e,t){(new m).save_config(this.configKey,e,JSON.stringify(t)).then((()=>{this.$notify.normal({title:"Saved configuration",body:e})})).catch((t=>{t&&this.$notify.serious({title:`Error saving configuration: ${e}`,body:t})}))},resetConfigBase:function(){localStorage.removeItem(`${this.configKey}__default`),"/"!==this.$router.currentRoute.fullPath&&(this.$router.replace(this.$router.currentRoute.path),this.$router.go())}}};var F=function(){var e=this,t=e._self._c;return t("v-dialog",{attrs:{width:"600"},on:{keydown:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"esc",27,t.key,["Esc","Escape"])?null:e.cancel.apply(null,arguments)}},model:{value:e.show,callback:function(t){e.show=t},expression:"show"}},[t("v-card",[t("form",{on:{submit:function(t){return t.preventDefault(),e.success.apply(null,arguments)}}},[t("v-system-bar",[t("v-spacer"),e._v(" "),t("span",[e._v("Open Configuration")]),e._v(" "),t("v-spacer")],1),e._v(" "),t("v-card-text",[t("div",{staticClass:"pa-3"},[t("v-row",{attrs:{dense:""}},[t("v-text-field",{attrs:{label:"search",type:"text","prepend-inner-icon":"mdi-magnify",clearable:"",outlined:"",dense:"","clear-icon":"mdi-close-circle-outline",clearable:"",autofocus:"","single-line":"","hide-details":"","data-test":"search"},model:{value:e.search,callback:function(t){e.search=t},expression:"search"}})],1),e._v(" "),t("v-data-table",{attrs:{"show-select":"","single-select":"","item-key":"configId",search:e.search,headers:e.headers,items:e.configs,"items-per-page":5,"footer-props":{"items-per-page-options":[5]}},on:{"item-selected":e.itemSelected,"click:row":(e,t)=>t.select(e)},scopedSlots:e._u([{key:"item.actions",fn:function({item:n}){return[t("v-btn",{staticClass:"mt-1",attrs:{"data-test":"item-delete",icon:""},on:{click:function(t){return e.deleteConfig(n)}}},[t("v-icon",[e._v("mdi-delete")])],1)]}}])}),e._v(" "),t("v-row",{attrs:{dense:""}},[t("span",{directives:[{name:"show",rawName:"v-show",value:e.error,expression:"error"}],staticClass:"ma-2 red--text",domProps:{textContent:e._s(e.error)}})])],1)]),e._v(" "),t("v-card-actions",[t("v-spacer"),e._v(" "),t("v-btn",{staticClass:"mx-2",attrs:{outlined:"","data-test":"open-config-cancel-btn"},on:{click:e.cancel}},[e._v("\n Cancel\n ")]),e._v(" "),t("v-btn",{staticClass:"mx-2",attrs:{type:"submit",color:"primary","data-test":"open-config-submit-btn",disabled:!!e.error},on:{click:function(t){return t.preventDefault(),e.success.apply(null,arguments)}}},[e._v("\n Ok\n ")])],1)],1)])],1)},G=[];const K={props:{configKey:String,value:Boolean},data(){return{configs:[],headers:[{text:"Configuration",value:"config"},{text:"Actions",value:"actions",align:"end",sortable:!1}],search:null,selectedItem:null}},computed:{error:function(){return""===this.selectedItem||null===this.selectedItem?"Must select a config":null},show:{get(){return this.value},set(e){this.$emit("input",e)}}},mounted(){let e=-1;(new m).list_configs(this.configKey).then((t=>{this.configs=t.map((t=>(e+=1,{configId:e,config:t})))})).catch((e=>{this.$emit("warning",`Failed to connect to OpenC3. ${e}`)}))},methods:{itemSelected:function(e){e.value?this.selectedItem=e.item:this.selectedItem=null},success:function(){this.$emit("success",this.selectedItem.config),this.show=!1,this.search=null,this.selectedItem=null},cancel:function(){this.show=!1,this.search=null,this.selectedItem=null},deleteConfig:function(e){this.$dialog.confirm(`Are you sure you want to delete: ${e.config}`,{okText:"Delete",cancelText:"Cancel"}).then((t=>{this.selectedItem.config===e.config&&(this.selectedItem=null),this.configs.splice(this.configs.indexOf(e),1),(new m).delete_config(this.configKey,e.config)})).catch((t=>{t&&this.$emit("warning",`Failed to delete config ${e.config} Error: ${t}`)}))}}},B=K;var j=(0,b.A)(B,F,G,!1,null,null,null);const q=j.exports;var Y=function(){var e=this,t=e._self._c;return t("v-dialog",{attrs:{width:"600"},on:{keydown:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"esc",27,t.key,["Esc","Escape"])?null:e.cancel.apply(null,arguments)}},model:{value:e.show,callback:function(t){e.show=t},expression:"show"}},[t("v-card",[t("form",{on:{submit:function(t){return t.preventDefault(),e.success.apply(null,arguments)}}},[t("v-system-bar",[t("v-spacer"),e._v(" "),t("span",[e._v("Save Configuration")]),e._v(" "),t("v-spacer")],1),e._v(" "),t("v-card-text",[t("div",{staticClass:"pa-3"},[t("v-row",{attrs:{dense:""}},[t("v-text-field",{attrs:{label:"search",type:"text","prepend-inner-icon":"mdi-magnify",clearable:"",outlined:"",dense:"","clear-icon":"mdi-close-circle-outline",clearable:"","single-line":"","hide-details":"","data-test":"search"},model:{value:e.search,callback:function(t){e.search=t},expression:"search"}})],1),e._v(" "),t("v-data-table",{attrs:{"show-select":"","single-select":"","item-key":"configId",search:e.search,headers:e.headers,items:e.configs,"items-per-page":5,"footer-props":{"items-per-page-options":[5]}},on:{"item-selected":e.itemSelected,"click:row":(e,t)=>t.select(e)},scopedSlots:e._u([{key:"item.actions",fn:function({item:n}){return[t("v-btn",{staticClass:"mt-1",attrs:{icon:"","data-test":"item-delete"},on:{click:function(t){return e.deleteConfig(n)}}},[t("v-icon",[e._v("mdi-delete")])],1)]}}])}),e._v(" "),t("v-row",{attrs:{dense:""}},[t("v-text-field",{attrs:{"hide-details":"",autofocus:"",disabled:!!e.selectedItem,label:"Configuration Name","data-test":"name-input-save-config-dialog"},model:{value:e.configName,callback:function(t){e.configName=t},expression:"configName"}})],1),e._v(" "),t("v-row",{attrs:{dense:""}},[t("span",{directives:[{name:"show",rawName:"v-show",value:e.error,expression:"error"}],staticClass:"ma-2 red--text",domProps:{textContent:e._s(e.error)}})])],1)]),e._v(" "),t("v-card-actions",[t("v-spacer"),e._v(" "),t("v-btn",{staticClass:"mx-2",attrs:{outlined:""},on:{click:e.cancel}},[e._v(" Cancel ")]),e._v(" "),t("v-btn",{staticClass:"mx-2",attrs:{type:"submit",color:"primary","data-test":"save-config-submit-btn",disabled:!!e.error},on:{click:function(t){return t.preventDefault(),e.success.apply(null,arguments)}}},[e._v("\n Ok\n ")])],1)],1)])],1)},J=[];const X={props:{configKey:String,value:Boolean},data(){return{configName:"",configs:[],headers:[{text:"Configuration",value:"config"},{text:"Actions",value:"actions",align:"end",sortable:!1}],search:null,selectedItem:null}},computed:{error:function(){return""===this.configName?"Config must have a name":null},show:{get(){return this.value},set(e){this.$emit("input",e)}}},mounted(){let e=-1;(new m).list_configs(this.configKey).then((t=>{this.configs=t.map((t=>(e+=1,{configId:e,config:t})))})).catch((e=>{this.$emit("warning",`Failed to connect to OpenC3. ${e}`)}))},methods:{itemSelected:function(e){e.value?(this.selectedItem=e.item,this.configName=e.item.config):(this.selectedItem=null,this.configName="")},success:function(){this.$emit("success",this.configName),this.show=!1,this.search=null,this.selectedItem=null,this.configName=""},cancel:function(){this.show=!1,this.search=null,this.selectedItem=null,this.configName=""},deleteConfig:function(e){this.$dialog.confirm(`Are you sure you want to delete: ${e.config}`,{okText:"Delete",cancelText:"Cancel"}).then((t=>{this.configName===e.config&&(this.selectedItem=null,this.configName=""),this.configs.splice(this.configs.indexOf(e.config),1),(new m).delete_config(this.configKey,e.config)})).catch((t=>{t&&this.$emit("warning",`Failed to delete config ${e.config} Error: ${t}`)}))}}},Z=X;var Q=(0,b.A)(Z,Y,J,!1,null,null,null);const ee=Q.exports;function te(){var e="/openc3/plugins/packages/openc3-cosmos-tool-packetviewer/src/tools/PacketViewer/PacketViewer.vue",t="223b8bc6bfbaa45463798d41381b71403b545db7",n=new Function("return this")(),i="__coverage__",l={path:"/openc3/plugins/packages/openc3-cosmos-tool-packetviewer/src/tools/PacketViewer/PacketViewer.vue",statementMap:{0:{start:{line:11,column:30},end:{line:16,column:1}},1:{start:{line:28,column:4},end:{line:147,column:5}},2:{start:{line:52,column:16},end:{line:52,column:41}},3:{start:{line:62,column:16},end:{line:62,column:42}},4:{start:{line:69,column:16},end:{line:69,column:42}},5:{start:{line:76,column:16},end:{line:76,column:34}},6:{start:{line:77,column:16},end:{line:77,column:38}},7:{start:{line:91,column:16},end:{line:91,column:47}},8:{start:{line:99,column:16},end:{line:99,column:47}},9:{start:{line:109,column:16},end:{line:109,column:45}},10:{start:{line:116,column:16},end:{line:116,column:44}},11:{start:{line:123,column:16},end:{line:123,column:44}},12:{start:{line:130,column:16},end:{line:130,column:38}},13:{start:{line:151,column:6},end:{line:151,column:48}},14:{start:{line:154,column:6},end:{line:154,column:48}},15:{start:{line:157,column:6},end:{line:157,column:48}},16:{start:{line:161,column:6},end:{line:161,column:31}},17:{start:{line:162,column:6},end:{line:162,column:48}},18:{start:{line:165,column:6},end:{line:165,column:48}},19:{start:{line:168,column:6},end:{line:168,column:48}},20:{start:{line:173,column:6},end:{line:182,column:7}},21:{start:{line:186,column:4},end:{line:186,column:30}},22:{start:{line:189,column:4},end:{line:217,column:5}},23:{start:{line:190,column:6},end:{line:190,column:60}},24:{start:{line:191,column:6},end:{line:191,column:30}},25:{start:{line:194,column:19},end:{line:194,column:73}},26:{start:{line:195,column:6},end:{line:195,column:30}},27:{start:{line:197,column:6},end:{line:215,column:7}},28:{start:{line:199,column:8},end:{line:202,column:10}},29:{start:{line:204,column:8},end:{line:214,column:9}},30:{start:{line:206,column:10},end:{line:212,column:12}},31:{start:{line:213,column:10},end:{line:213,column:27}},32:{start:{line:216,column:6},end:{line:216,column:30}},33:{start:{line:220,column:4},end:{line:223,column:5}},34:{start:{line:221,column:6},end:{line:221,column:33}},35:{start:{line:222,column:6},end:{line:222,column:25}},36:{start:{line:227,column:6},end:{line:229,column:8}},37:{start:{line:228,column:8},end:{line:228,column:48}},38:{start:{line:230,column:6},end:{line:234,column:10}},39:{start:{line:233,column:10},end:{line:233,column:37}},40:{start:{line:236,column:6},end:{line:236,column:40}},41:{start:{line:237,column:6},end:{line:237,column:40}},42:{start:{line:238,column:6},end:{line:250,column:7}},43:{start:{line:242,column:8},end:{line:242,column:50}},44:{start:{line:243,column:8},end:{line:249,column:10}},45:{start:{line:251,column:6},end:{line:251,column:30}},46:{start:{line:254,column:6},end:{line:257,column:7}},47:{start:{line:255,column:8},end:{line:255,column:35}},48:{start:{line:256,column:8},end:{line:256,column:27}},49:{start:{line:258,column:6},end:{line:260,column:7}},50:{start:{line:259,column:8},end:{line:259,column:22}},51:{start:{line:261,column:6},end:{line:311,column:30}},52:{start:{line:262,column:8},end:{line:310,column:12}},53:{start:{line:271,column:12},end:{line:302,column:13}},54:{start:{line:272,column:14},end:{line:272,column:31}},55:{start:{line:273,column:28},end:{line:273,column:30}},56:{start:{line:274,column:26},end:{line:274,column:28}},57:{start:{line:275,column:14},end:{line:296,column:16}},58:{start:{line:276,column:16},end:{line:278,column:17}},59:{start:{line:277,column:18},end:{line:277,column:24}},60:{start:{line:279,column:16},end:{line:295,column:17}},61:{start:{line:280,column:18},end:{line:286,column:20}},62:{start:{line:288,column:18},end:{line:294,column:20}},63:{start:{line:297,column:14},end:{line:301,column:15}},64:{start:{line:298,column:16},end:{line:298,column:49}},65:{start:{line:300,column:16},end:{line:300,column:49}},66:{start:{line:309,column:12},end:{line:309,column:30}},67:{start:{line:314,column:6},end:{line:314,column:26}},68:{start:{line:315,column:6},end:{line:315,column:26}},69:{start:{line:316,column:6},end:{line:316,column:33}},70:{start:{line:317,column:6},end:{line:317,column:26}},71:{start:{line:318,column:6},end:{line:318,column:30}},72:{start:{line:319,column:6},end:{line:319,column:30}},73:{start:{line:320,column:6},end:{line:320,column:35}},74:{start:{line:321,column:6},end:{line:321,column:28}},75:{start:{line:324,column:6},end:{line:324,column:37}},76:{start:{line:325,column:6},end:{line:325,column:37}},77:{start:{line:326,column:6},end:{line:326,column:59}},78:{start:{line:327,column:6},end:{line:327,column:47}},79:{start:{line:328,column:6},end:{line:328,column:52}},80:{start:{line:329,column:6},end:{line:329,column:55}},81:{start:{line:330,column:6},end:{line:330,column:52}},82:{start:{line:331,column:6},end:{line:331,column:55}},83:{start:{line:332,column:6},end:{line:332,column:55}},84:{start:{line:333,column:6},end:{line:333,column:70}},85:{start:{line:334,column:6},end:{line:334,column:51}},86:{start:{line:337,column:6},end:{line:358,column:8}},87:{start:{line:338,column:8},end:{line:338,column:32}},88:{start:{line:339,column:8},end:{line:339,column:38}},89:{start:{line:340,column:8},end:{line:357,column:9}},90:{start:{line:346,column:10},end:{line:355,column:12}},91:{start:{line:356,column:10},end:{line:356,column:27}},92:{start:{line:361,column:6},end:{line:361,column:51}}},fnMap:{0:{name:"(anonymous_0)",decl:{start:{line:27,column:2},end:{line:27,column:3}},loc:{start:{line:27,column:9},end:{line:148,column:3}},line:27},1:{name:"(anonymous_1)",decl:{start:{line:51,column:23},end:{line:51,column:24}},loc:{start:{line:51,column:29},end:{line:53,column:15}},line:51},2:{name:"(anonymous_2)",decl:{start:{line:61,column:23},end:{line:61,column:24}},loc:{start:{line:61,column:29},end:{line:63,column:15}},line:61},3:{name:"(anonymous_3)",decl:{start:{line:68,column:23},end:{line:68,column:24}},loc:{start:{line:68,column:29},end:{line:70,column:15}},line:68},4:{name:"(anonymous_4)",decl:{start:{line:75,column:23},end:{line:75,column:24}},loc:{start:{line:75,column:29},end:{line:78,column:15}},line:75},5:{name:"(anonymous_5)",decl:{start:{line:90,column:23},end:{line:90,column:24}},loc:{start:{line:90,column:33},end:{line:92,column:15}},line:90},6:{name:"(anonymous_6)",decl:{start:{line:98,column:23},end:{line:98,column:24}},loc:{start:{line:98,column:33},end:{line:100,column:15}},line:98},7:{name:"(anonymous_7)",decl:{start:{line:108,column:23},end:{line:108,column:24}},loc:{start:{line:108,column:29},end:{line:110,column:15}},line:108},8:{name:"(anonymous_8)",decl:{start:{line:115,column:23},end:{line:115,column:24}},loc:{start:{line:115,column:29},end:{line:117,column:15}},line:115},9:{name:"(anonymous_9)",decl:{start:{line:122,column:23},end:{line:122,column:24}},loc:{start:{line:122,column:29},end:{line:124,column:15}},line:122},10:{name:"(anonymous_10)",decl:{start:{line:129,column:23},end:{line:129,column:24}},loc:{start:{line:129,column:29},end:{line:131,column:15}},line:129},11:{name:"(anonymous_11)",decl:{start:{line:150,column:17},end:{line:150,column:18}},loc:{start:{line:150,column:29},end:{line:152,column:5}},line:150},12:{name:"(anonymous_12)",decl:{start:{line:153,column:17},end:{line:153,column:18}},loc:{start:{line:153,column:29},end:{line:155,column:5}},line:153},13:{name:"(anonymous_13)",decl:{start:{line:156,column:15},end:{line:156,column:16}},loc:{start:{line:156,column:27},end:{line:158,column:5}},line:156},14:{name:"(anonymous_14)",decl:{start:{line:160,column:21},end:{line:160,column:22}},loc:{start:{line:160,column:33},end:{line:163,column:5}},line:160},15:{name:"(anonymous_15)",decl:{start:{line:164,column:16},end:{line:164,column:17}},loc:{start:{line:164,column:28},end:{line:166,column:5}},line:164},16:{name:"(anonymous_16)",decl:{start:{line:167,column:18},end:{line:167,column:19}},loc:{start:{line:167,column:30},end:{line:169,column:5}},line:167},17:{name:"(anonymous_17)",decl:{start:{line:172,column:19},end:{line:172,column:20}},loc:{start:{line:172,column:31},end:{line:183,column:5}},line:172},18:{name:"(anonymous_18)",decl:{start:{line:185,column:2},end:{line:185,column:3}},loc:{start:{line:185,column:12},end:{line:218,column:3}},line:185},19:{name:"(anonymous_19)",decl:{start:{line:219,column:2},end:{line:219,column:3}},loc:{start:{line:219,column:18},end:{line:224,column:3}},line:219},20:{name:"(anonymous_20)",decl:{start:{line:226,column:4},end:{line:226,column:5}},loc:{start:{line:226,column:25},end:{line:252,column:5}},line:226},21:{name:"(anonymous_21)",decl:{start:{line:227,column:49},end:{line:227,column:50}},loc:{start:{line:227,column:61},end:{line:229,column:7}},line:227},22:{name:"(anonymous_22)",decl:{start:{line:232,column:14},end:{line:232,column:15}},loc:{start:{line:232,column:27},end:{line:234,column:9}},line:232},23:{name:"(anonymous_23)",decl:{start:{line:253,column:4},end:{line:253,column:5}},loc:{start:{line:253,column:33},end:{line:312,column:5}},line:253},24:{name:"(anonymous_24)",decl:{start:{line:261,column:33},end:{line:261,column:34}},loc:{start:{line:261,column:39},end:{line:311,column:7}},line:261},25:{name:"(anonymous_25)",decl:{start:{line:269,column:16},end:{line:269,column:17}},loc:{start:{line:269,column:26},end:{line:303,column:11}},line:269},26:{name:"(anonymous_26)",decl:{start:{line:275,column:27},end:{line:275,column:28}},loc:{start:{line:275,column:38},end:{line:296,column:15}},line:275},27:{name:"(anonymous_27)",decl:{start:{line:307,column:17},end:{line:307,column:18}},loc:{start:{line:307,column:28},end:{line:310,column:11}},line:307},28:{name:"(anonymous_28)",decl:{start:{line:313,column:17},end:{line:313,column:18}},loc:{start:{line:313,column:29},end:{line:322,column:5}},line:313},29:{name:"(anonymous_29)",decl:{start:{line:323,column:17},end:{line:323,column:18}},loc:{start:{line:323,column:35},end:{line:335,column:5}},line:323},30:{name:"(anonymous_30)",decl:{start:{line:336,column:23},end:{line:336,column:24}},loc:{start:{line:336,column:55},end:{line:359,column:5}},line:336},31:{name:"(anonymous_31)",decl:{start:{line:337,column:40},end:{line:337,column:41}},loc:{start:{line:337,column:58},end:{line:358,column:7}},line:337},32:{name:"(anonymous_32)",decl:{start:{line:360,column:23},end:{line:360,column:24}},loc:{start:{line:360,column:39},end:{line:362,column:5}},line:360}},branchMap:{0:{loc:{start:{line:189,column:4},end:{line:217,column:5}},type:"if",locations:[{start:{line:189,column:4},end:{line:217,column:5}},{start:{line:192,column:11},end:{line:217,column:5}}],line:189},1:{loc:{start:{line:189,column:8},end:{line:189,column:53}},type:"binary-expr",locations:[{start:{line:189,column:8},end:{line:189,column:25}},{start:{line:189,column:29},end:{line:189,column:53}}],line:189},2:{loc:{start:{line:197,column:6},end:{line:215,column:7}},type:"if",locations:[{start:{line:197,column:6},end:{line:215,column:7}},{start:{line:203,column:13},end:{line:215,column:7}}],line:197},3:{loc:{start:{line:197,column:10},end:{line:197,column:64}},type:"binary-expr",locations:[{start:{line:197,column:10},end:{line:197,column:35}},{start:{line:197,column:39},end:{line:197,column:64}}],line:197},4:{loc:{start:{line:204,column:8},end:{line:214,column:9}},type:"if",locations:[{start:{line:204,column:8},end:{line:214,column:9}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:204},5:{loc:{start:{line:204,column:12},end:{line:204,column:42}},type:"binary-expr",locations:[{start:{line:204,column:12},end:{line:204,column:25}},{start:{line:204,column:29},end:{line:204,column:42}}],line:204},6:{loc:{start:{line:220,column:4},end:{line:223,column:5}},type:"if",locations:[{start:{line:220,column:4},end:{line:223,column:5}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:220},7:{loc:{start:{line:238,column:6},end:{line:250,column:7}},type:"if",locations:[{start:{line:238,column:6},end:{line:250,column:7}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:238},8:{loc:{start:{line:239,column:8},end:{line:240,column:54}},type:"binary-expr",locations:[{start:{line:239,column:8},end:{line:239,column:54}},{start:{line:240,column:8},end:{line:240,column:54}}],line:239},9:{loc:{start:{line:254,column:6},end:{line:257,column:7}},type:"if",locations:[{start:{line:254,column:6},end:{line:257,column:7}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:254},10:{loc:{start:{line:258,column:6},end:{line:260,column:7}},type:"if",locations:[{start:{line:258,column:6},end:{line:260,column:7}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:258},11:{loc:{start:{line:271,column:12},end:{line:302,column:13}},type:"if",locations:[{start:{line:271,column:12},end:{line:302,column:13}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:271},12:{loc:{start:{line:276,column:16},end:{line:278,column:17}},type:"if",locations:[{start:{line:276,column:16},end:{line:278,column:17}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:276},13:{loc:{start:{line:276,column:20},end:{line:276,column:77}},type:"binary-expr",locations:[{start:{line:276,column:20},end:{line:276,column:37}},{start:{line:276,column:41},end:{line:276,column:77}}],line:276},14:{loc:{start:{line:279,column:16},end:{line:295,column:17}},type:"if",locations:[{start:{line:279,column:16},end:{line:295,column:17}},{start:{line:287,column:23},end:{line:295,column:17}}],line:279},15:{loc:{start:{line:297,column:14},end:{line:301,column:15}},type:"if",locations:[{start:{line:297,column:14},end:{line:301,column:15}},{start:{line:299,column:21},end:{line:301,column:15}}],line:297},16:{loc:{start:{line:326,column:29},end:{line:326,column:59}},type:"binary-expr",locations:[{start:{line:326,column:29},end:{line:326,column:51}},{start:{line:326,column:55},end:{line:326,column:59}}],line:326},17:{loc:{start:{line:327,column:24},end:{line:327,column:47}},type:"binary-expr",locations:[{start:{line:327,column:24},end:{line:327,column:41}},{start:{line:327,column:45},end:{line:327,column:47}}],line:327},18:{loc:{start:{line:328,column:25},end:{line:328,column:52}},type:"binary-expr",locations:[{start:{line:328,column:25},end:{line:328,column:43}},{start:{line:328,column:47},end:{line:328,column:52}}],line:328},19:{loc:{start:{line:330,column:25},end:{line:330,column:52}},type:"binary-expr",locations:[{start:{line:330,column:25},end:{line:330,column:43}},{start:{line:330,column:47},end:{line:330,column:52}}],line:330},20:{loc:{start:{line:332,column:23},end:{line:332,column:55}},type:"binary-expr",locations:[{start:{line:332,column:23},end:{line:332,column:39}},{start:{line:332,column:43},end:{line:332,column:55}}],line:332},21:{loc:{start:{line:334,column:26},end:{line:334,column:51}},type:"binary-expr",locations:[{start:{line:334,column:26},end:{line:334,column:45}},{start:{line:334,column:49},end:{line:334,column:51}}],line:334},22:{loc:{start:{line:336,column:39},end:{line:336,column:53}},type:"default-arg",locations:[{start:{line:336,column:48},end:{line:336,column:53}}],line:336},23:{loc:{start:{line:340,column:8},end:{line:357,column:9}},type:"if",locations:[{start:{line:340,column:8},end:{line:357,column:9}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:340},24:{loc:{start:{line:341,column:10},end:{line:343,column:43}},type:"binary-expr",locations:[{start:{line:341,column:10},end:{line:341,column:53}},{start:{line:342,column:10},end:{line:342,column:53}},{start:{line:343,column:10},end:{line:343,column:43}}],line:341}},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},f:{0:0,1:0,2:0,3:0,4:0,5:0,6:0,7:0,8:0,9:0,10:0,11:0,12:0,13:0,14:0,15:0,16:0,17:0,18:0,19:0,20:0,21:0,22:0,23:0,24:0,25:0,26:0,27:0,28:0,29:0,30:0,31:0,32:0},b:{0:[0,0],1:[0,0],2:[0,0],3:[0,0],4:[0,0],5:[0,0],6:[0,0],7:[0,0],8:[0,0],9:[0,0],10:[0,0],11:[0,0],12:[0,0],13:[0,0],14:[0,0],15:[0,0],16:[0,0],17:[0,0],18:[0,0],19:[0,0],20:[0,0],21:[0,0],22:[0],23:[0,0],24:[0,0,0]},inputSourceMap:{version:3,sources:["PacketViewer.vue"],names:[],mappings:";AA+IA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;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;;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;;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",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 2023, 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>\n <div 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 </div>\n <v-card-title>\n Items\n <v-spacer />\n <v-text-field\n v-model=\"search\"\n label=\"Search\"\n prepend-inner-icon=\"mdi-magnify\"\n clearable\n outlined\n dense\n single-line\n hide-details\n class=\"search\"\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 multi-sort\n dense\n >\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\n href=\"http://localhost:2900/tools/staticdocs/docs/configuration/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 (seconds)\"\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 \x3c!-- Note we're using v-if here so it gets re-created each time and refreshes the list --\x3e\n <open-config-dialog\n v-if=\"showOpenConfig\"\n v-model=\"showOpenConfig\"\n :configKey=\"configKey\"\n @success=\"openConfiguration\"\n />\n \x3c!-- Note we're using v-if here so it gets re-created each time and refreshes the list --\x3e\n <save-config-dialog\n v-if=\"showSaveConfig\"\n v-model=\"showSaveConfig\"\n :configKey=\"configKey\"\n @success=\"saveConfiguration\"\n />\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'\nimport Config from '@openc3/tool-common/src/components/config/Config'\nimport OpenConfigDialog from '@openc3/tool-common/src/components/config/OpenConfigDialog'\nimport SaveConfigDialog from '@openc3/tool-common/src/components/config/SaveConfigDialog'\n\n// Used in the menu and openConfiguration lookup\nconst valueTypeToRadioGroup = {\n WITH_UNITS: 'Formatted Items with Units',\n FORMATTED: 'Formatted Items',\n CONVERTED: 'Converted Items',\n RAW: 'Raw Items',\n}\n\nexport default {\n components: {\n TargetPacketItemChooser,\n ValueWidget,\n TopBar,\n OpenConfigDialog,\n SaveConfigDialog,\n },\n mixins: [Config],\n data() {\n return {\n title: 'Packet Viewer',\n configKey: 'packet_viewer',\n showOpenConfig: false,\n showSaveConfig: false,\n search: '',\n data: [],\n headers: [\n { text: 'Name', value: 'name', align: 'end' },\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 icon: 'mdi-cog',\n command: () => {\n this.optionsDialog = true\n },\n },\n {\n divider: true,\n },\n {\n label: 'Open Configuration',\n icon: 'mdi-folder-open',\n command: () => {\n this.showOpenConfig = true\n },\n },\n {\n label: 'Save Configuration',\n icon: 'mdi-content-save',\n command: () => {\n this.showSaveConfig = true\n },\n },\n {\n label: 'Reset Configuration',\n icon: 'mdi-monitor-shimmer',\n command: () => {\n this.resetConfig()\n this.resetConfigBase()\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: valueTypeToRadioGroup['WITH_UNITS'],\n radio: true,\n command: () => {\n this.valueType = 'WITH_UNITS'\n },\n },\n {\n label: valueTypeToRadioGroup['FORMATTED'],\n radio: true,\n command: () => {\n this.valueType = 'FORMATTED'\n },\n },\n {\n label: valueTypeToRadioGroup['CONVERTED'],\n radio: true,\n command: () => {\n this.valueType = 'CONVERTED'\n },\n },\n {\n label: valueTypeToRadioGroup['RAW'],\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 showIgnored: function () {\n this.saveDefaultConfig(this.currentConfig)\n },\n derivedLast: function () {\n this.saveDefaultConfig(this.currentConfig)\n },\n valueType: function () {\n this.saveDefaultConfig(this.currentConfig)\n },\n // Create a watcher on refreshInterval so we can change the updater\n refreshInterval: function () {\n this.changeUpdater(false)\n this.saveDefaultConfig(this.currentConfig)\n },\n staleLimit: function () {\n this.saveDefaultConfig(this.currentConfig)\n },\n itemsPerPage: function () {\n this.saveDefaultConfig(this.currentConfig)\n },\n },\n computed: {\n currentConfig: function () {\n return {\n target: this.targetName,\n packet: this.packetName,\n refreshInterval: this.refreshInterval,\n staleLimit: this.staleLimit,\n showIgnored: this.showIgnored,\n derivedLast: this.derivedLast,\n valueType: this.valueType,\n itemsPerPage: this.itemsPerPage,\n }\n },\n },\n created() {\n this.api = new OpenC3Api()\n\n // Called like /tools/packetviewer?config=temps\n if (this.$route.query && this.$route.query.config) {\n this.openConfiguration(this.$route.query.config, true) // routed\n this.changeUpdater(true)\n } else {\n // Merge default config into the currentConfig in case default isn't yet defined\n let config = { ...this.currentConfig, ...this.loadDefaultConfig() }\n this.applyConfig(config)\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 // Initial position of chooser should be correct so call packetChanged for it\n this.packetChanged({\n targetName: this.$route.params.target.toUpperCase(),\n packetName: this.$route.params.packet.toUpperCase(),\n })\n } else {\n if (config.target && config.packet) {\n // Chooser probably won't be at the right packet so need to refresh\n this.$router.push({\n name: 'PackerViewer',\n params: {\n target: config.target,\n packet: config.packet,\n },\n })\n this.$router.go()\n }\n }\n this.changeUpdater(true)\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 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.saveDefaultConfig(this.currentConfig)\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 changeUpdater(clearExisting) {\n if (this.updater != null) {\n clearInterval(this.updater)\n this.updater = null\n }\n if (clearExisting) {\n this.rows = []\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 // Catch errors but just log to the console\n // We don't clear the updater because errors can happen on upgrade\n // and we want to continue updating once the new plugin comes online\n .catch((error) => {\n // eslint-disable-next-line\n console.log(error)\n })\n }, this.refreshInterval)\n },\n resetConfig: function () {\n this.targetName = ''\n this.packetName = ''\n this.refreshInterval = 1000\n this.staleLimit = 30\n this.showIgnored = false\n this.derivedLast = false\n this.valueType = 'WITH_UNITS'\n this.itemsPerPage = 20\n },\n applyConfig: function (config) {\n this.targetName = config.target\n this.packetName = config.packet\n this.refreshInterval = config.refreshInterval || 1000\n this.staleLimit = config.staleLimit || 30\n this.showIgnored = config.showIgnored || false\n this.menus[1].items[0].checked = this.showIgnored\n this.derivedLast = config.derivedLast || false\n this.menus[1].items[1].checked = this.derivedLast\n this.valueType = config.valueType || 'WITH_UNITS'\n this.menus[1].radioGroup = valueTypeToRadioGroup[this.valueType]\n this.itemsPerPage = config.itemsPerPage || 20\n },\n openConfiguration: function (name, routed = false) {\n this.openConfigBase(name, routed, async (config) => {\n this.applyConfig(config)\n this.saveDefaultConfig(config)\n if (\n this.$route.params.target !== config.target ||\n this.$route.params.packet !== config.packet ||\n this.$route.query.config !== name\n ) {\n // Need full refresh since chooser won't be on the right packet\n this.$router.push({\n name: 'PackerViewer',\n params: {\n target: config.target,\n packet: config.packet,\n },\n query: {\n config: name,\n },\n })\n this.$router.go()\n }\n })\n },\n saveConfiguration: function (name) {\n this.saveConfigBase(name, this.currentConfig)\n },\n },\n}\n<\/script>\n"]},_coverageSchema:"1a1c01bbd47fc00a2c39e90264f33305004495a9",hash:"223b8bc6bfbaa45463798d41381b71403b545db7"},a=n[i]||(n[i]={});a[e]&&a[e].hash===t||(a[e]=l);var s=a[e];return te=function(){return s},s}te();const ne=(te().s[0]++,{WITH_UNITS:"Formatted Items with Units",FORMATTED:"Formatted Items",CONVERTED:"Converted Items",RAW:"Raw Items"}),ie={components:{TargetPacketItemChooser:R,ValueWidget:D,TopBar:H,OpenConfigDialog:q,SaveConfigDialog:ee},mixins:[z],data(){return te().f[0]++,te().s[1]++,{title:"Packet Viewer",configKey:"packet_viewer",showOpenConfig:!1,showSaveConfig:!1,search:"",data:[],headers:[{text:"Name",value:"name",align:"end"},{text:"Value",value:"value"}],optionsDialog:!1,showIgnored:!1,derivedLast:!1,ignoredItems:[],derivedItems:[],menus:[{label:"File",items:[{label:"Options",icon:"mdi-cog",command:()=>{te().f[1]++,te().s[2]++,this.optionsDialog=!0}},{divider:!0},{label:"Open Configuration",icon:"mdi-folder-open",command:()=>{te().f[2]++,te().s[3]++,this.showOpenConfig=!0}},{label:"Save Configuration",icon:"mdi-content-save",command:()=>{te().f[3]++,te().s[4]++,this.showSaveConfig=!0}},{label:"Reset Configuration",icon:"mdi-monitor-shimmer",command:()=>{te().f[4]++,te().s[5]++,this.resetConfig(),te().s[6]++,this.resetConfigBase()}}]},{label:"View",radioGroup:"Formatted Items with Units",items:[{label:"Show Ignored Items",checkbox:!0,checked:!1,command:e=>{te().f[5]++,te().s[7]++,this.showIgnored=e.checked}},{label:"Display DERIVED Last",checkbox:!0,checked:!1,command:e=>{te().f[6]++,te().s[8]++,this.derivedLast=e.checked}},{divider:!0},{label:ne["WITH_UNITS"],radio:!0,command:()=>{te().f[7]++,te().s[9]++,this.valueType="WITH_UNITS"}},{label:ne["FORMATTED"],radio:!0,command:()=>{te().f[8]++,te().s[10]++,this.valueType="FORMATTED"}},{label:ne["CONVERTED"],radio:!0,command:()=>{te().f[9]++,te().s[11]++,this.valueType="CONVERTED"}},{label:ne["RAW"],radio:!0,command:()=>{te().f[10]++,te().s[12]++,this.valueType="RAW"}}]}],updater:null,counter:0,targetName:"",packetName:"",valueType:"WITH_UNITS",refreshInterval:1e3,staleLimit:30,rows:[],menuItems:[],itemsPerPage:20,api:null}},watch:{showIgnored:function(){te().f[11]++,te().s[13]++,this.saveDefaultConfig(this.currentConfig)},derivedLast:function(){te().f[12]++,te().s[14]++,this.saveDefaultConfig(this.currentConfig)},valueType:function(){te().f[13]++,te().s[15]++,this.saveDefaultConfig(this.currentConfig)},refreshInterval:function(){te().f[14]++,te().s[16]++,this.changeUpdater(!1),te().s[17]++,this.saveDefaultConfig(this.currentConfig)},staleLimit:function(){te().f[15]++,te().s[18]++,this.saveDefaultConfig(this.currentConfig)},itemsPerPage:function(){te().f[16]++,te().s[19]++,this.saveDefaultConfig(this.currentConfig)}},computed:{currentConfig:function(){return te().f[17]++,te().s[20]++,{target:this.targetName,packet:this.packetName,refreshInterval:this.refreshInterval,staleLimit:this.staleLimit,showIgnored:this.showIgnored,derivedLast:this.derivedLast,valueType:this.valueType,itemsPerPage:this.itemsPerPage}}},created(){if(te().f[18]++,te().s[21]++,this.api=new m,te().s[22]++,te().b[1][0]++,this.$route.query&&(te().b[1][1]++,this.$route.query.config))te().b[0][0]++,te().s[23]++,this.openConfiguration(this.$route.query.config,!0),te().s[24]++,this.changeUpdater(!0);else{te().b[0][1]++;let e=(te().s[25]++,{...this.currentConfig,...this.loadDefaultConfig()});te().s[26]++,this.applyConfig(e),te().s[27]++,te().b[3][0]++,this.$route.params.target&&(te().b[3][1]++,this.$route.params.packet)?(te().b[2][0]++,te().s[28]++,this.packetChanged({targetName:this.$route.params.target.toUpperCase(),packetName:this.$route.params.packet.toUpperCase()})):(te().b[2][1]++,te().s[29]++,te().b[5][0]++,e.target&&(te().b[5][1]++,e.packet)?(te().b[4][0]++,te().s[30]++,this.$router.push({name:"PackerViewer",params:{target:e.target,packet:e.packet}}),te().s[31]++,this.$router.go()):te().b[4][1]++),te().s[32]++,this.changeUpdater(!0)}},beforeDestroy(){te().f[19]++,te().s[33]++,null!=this.updater?(te().b[6][0]++,te().s[34]++,clearInterval(this.updater),te().s[35]++,this.updater=null):te().b[6][1]++},methods:{packetChanged(e){te().f[20]++,te().s[36]++,this.api.get_target(e.targetName).then((e=>{te().f[21]++,te().s[37]++,this.ignoredItems=e.ignored_items})),te().s[38]++,this.api.get_packet_derived_items(e.targetName,e.packetName).then((e=>{te().f[22]++,te().s[39]++,this.derivedItems=e})),te().s[40]++,this.targetName=e.targetName,te().s[41]++,this.packetName=e.packetName,te().s[42]++,te().b[8][0]++,this.$route.params.target!==e.targetName||(te().b[8][1]++,this.$route.params.packet!==e.packetName)?(te().b[7][0]++,te().s[43]++,this.saveDefaultConfig(this.currentConfig),te().s[44]++,this.$router.push({name:"PackerViewer",params:{target:this.targetName,packet:this.packetName}})):te().b[7][1]++,te().s[45]++,this.changeUpdater(!0)},changeUpdater(e){te().f[23]++,te().s[46]++,null!=this.updater?(te().b[9][0]++,te().s[47]++,clearInterval(this.updater),te().s[48]++,this.updater=null):te().b[9][1]++,te().s[49]++,e?(te().b[10][0]++,te().s[50]++,this.rows=[]):te().b[10][1]++,te().s[51]++,this.updater=setInterval((()=>{te().f[24]++,te().s[52]++,this.api.get_tlm_packet(this.targetName,this.packetName,this.valueType,this.staleLimit).then((e=>{if(te().f[25]++,te().s[53]++,null!=e){te().b[11][0]++,te().s[54]++,this.counter+=1;let t=(te().s[55]++,[]),n=(te().s[56]++,[]);te().s[57]++,e.forEach((e=>{if(te().f[26]++,te().s[58]++,te().b[13][0]++,!this.showIgnored&&(te().b[13][1]++,this.ignoredItems.includes(e[0])))return te().b[12][0]++,void te().s[59]++;te().b[12][1]++,te().s[60]++,this.derivedItems.includes(e[0])?(te().b[14][0]++,te().s[61]++,t.push({name:e[0],value:e[1],limitsState:e[2],derived:!0,counter:this.counter})):(te().b[14][1]++,te().s[62]++,n.push({name:e[0],value:e[1],limitsState:e[2],derived:!1,counter:this.counter}))})),te().s[63]++,this.derivedLast?(te().b[15][0]++,te().s[64]++,this.rows=n.concat(t)):(te().b[15][1]++,te().s[65]++,this.rows=t.concat(n))}else te().b[11][1]++})).catch((e=>{te().f[27]++,te().s[66]++,console.log(e)}))}),this.refreshInterval)},resetConfig:function(){te().f[28]++,te().s[67]++,this.targetName="",te().s[68]++,this.packetName="",te().s[69]++,this.refreshInterval=1e3,te().s[70]++,this.staleLimit=30,te().s[71]++,this.showIgnored=!1,te().s[72]++,this.derivedLast=!1,te().s[73]++,this.valueType="WITH_UNITS",te().s[74]++,this.itemsPerPage=20},applyConfig:function(e){te().f[29]++,te().s[75]++,this.targetName=e.target,te().s[76]++,this.packetName=e.packet,te().s[77]++,this.refreshInterval=(te().b[16][0]++,e.refreshInterval||(te().b[16][1]++,1e3)),te().s[78]++,this.staleLimit=(te().b[17][0]++,e.staleLimit||(te().b[17][1]++,30)),te().s[79]++,this.showIgnored=(te().b[18][0]++,e.showIgnored||(te().b[18][1]++,!1)),te().s[80]++,this.menus[1].items[0].checked=this.showIgnored,te().s[81]++,this.derivedLast=(te().b[19][0]++,e.derivedLast||(te().b[19][1]++,!1)),te().s[82]++,this.menus[1].items[1].checked=this.derivedLast,te().s[83]++,this.valueType=(te().b[20][0]++,e.valueType||(te().b[20][1]++,"WITH_UNITS")),te().s[84]++,this.menus[1].radioGroup=ne[this.valueType],te().s[85]++,this.itemsPerPage=(te().b[21][0]++,e.itemsPerPage||(te().b[21][1]++,20))},openConfiguration:function(e,t=(te().b[22][0]++,!1)){te().f[30]++,te().s[86]++,this.openConfigBase(e,t,(async t=>{te().f[31]++,te().s[87]++,this.applyConfig(t),te().s[88]++,this.saveDefaultConfig(t),te().s[89]++,te().b[24][0]++,this.$route.params.target!==t.target||(te().b[24][1]++,this.$route.params.packet!==t.packet)||(te().b[24][2]++,this.$route.query.config!==e)?(te().b[23][0]++,te().s[90]++,this.$router.push({name:"PackerViewer",params:{target:t.target,packet:t.packet},query:{config:e}}),te().s[91]++,this.$router.go()):te().b[23][1]++}))},saveConfiguration:function(e){te().f[32]++,te().s[92]++,this.saveConfigBase(e,this.currentConfig)}}},le=ie;var ae=(0,b.A)(le,l,a,!1,null,null,null);const se=ae.exports},3076:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r});var i=n(6758),l=n.n(i),a=n(935),s=n.n(a),o=s()(l());o.push([e.id,".label[data-v-6659f972]{font-weight:700;text-transform:capitalize}[data-v-6659f972] .v-input--selection-controls{padding:0;margin:0}",""]);const r=o},9433:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r});var i=n(6758),l=n.n(i),a=n(935),s=n.n(a),o=s()(l());o.push([e.id,".button[data-v-36062eb2]{padding:4px}.select[data-v-36062eb2]{max-width:300px}.row+.row[data-v-36062eb2]{margin-top:0}",""]);const r=o},9808:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r});var i=n(6758),l=n.n(i),a=n(935),s=n.n(a),o=s()(l());o.push([e.id,".app-title[data-v-57d4fdd2]{font-size:2rem}.menu-button[data-v-57d4fdd2]{border-color:var(--color-border-interactive-muted)!important;background-color:var(--color-background-base-default)!important;padding-right:3px!important}span.v-btn__content span[data-v-57d4fdd2]{padding-right:5px}.myicon[data-v-57d4fdd2]{background-color:var(--color-background-surface-selected);border:1px solid currentColor;border-radius:3px;height:36px!important;width:36px!important}.v-list[data-v-57d4fdd2] .v-label{margin-left:5px}.v-list-item__icon[data-v-57d4fdd2]{margin-right:15px!important}.v-list-item__title[data-v-57d4fdd2]{color:#fff}",""]);const r=o},3200:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r});var i=n(6758),l=n.n(i),a=n(935),s=n.n(a),o=s()(l());o.push([e.id,".value-widget-container[data-v-f6adf1e0]{min-height:34px}.value-widget-container[data-v-f6adf1e0] .v-input__slot{background:rgba(var(--aging),var(--aging),var(--aging),1)!important}.value-widget-container[data-v-f6adf1e0] input{text-align:var(--text-align)!important}[data-v-f6adf1e0] .v-input__slot:has(.v-icon){padding-left:2px!important}.value-widget-container[data-v-f6adf1e0] .v-icon{margin-top:9px}.value[data-v-f6adf1e0] div{min-height:24px!important;display:flex!important;align-items:center!important}.openc3-green[data-v-f6adf1e0] input{color:#00c800}.openc3-yellow[data-v-f6adf1e0] input{color:#ffdc00}.openc3-red[data-v-f6adf1e0] input{color:#ff2d2d}.openc3-blue[data-v-f6adf1e0] input{color:#09f}.openc3-purple[data-v-f6adf1e0] input{color:#c800c8}.openc3-black[data-v-f6adf1e0] input{color:#000}.openc3-white[data-v-f6adf1e0] input{color:#fff}",""]);const r=o},1727:(e,t,n)=>{var i=n(3076);i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[e.id,i,""]]),i.locals&&(e.exports=i.locals);var l=n(4825).A;l("2d4e5d43",i,!0,{sourceMap:!1,shadowMode:!1})},6769:(e,t,n)=>{var i=n(9433);i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[e.id,i,""]]),i.locals&&(e.exports=i.locals);var l=n(4825).A;l("78fb16f3",i,!0,{sourceMap:!1,shadowMode:!1})},1e3:(e,t,n)=>{var i=n(9808);i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[e.id,i,""]]),i.locals&&(e.exports=i.locals);var l=n(4825).A;l("7de62207",i,!0,{sourceMap:!1,shadowMode:!1})},8087:(e,t,n)=>{var i=n(3200);i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[e.id,i,""]]),i.locals&&(e.exports=i.locals);var l=n(4825).A;l("01cd6850",i,!0,{sourceMap:!1,shadowMode:!1})}}]);
|
1
|
+
(self["webpackChunk_openc3_cosmos_tool_packetviewer"]=self["webpackChunk_openc3_cosmos_tool_packetviewer"]||[]).push([[134],{1134:(e,t,n)=>{"use strict";function i(){var e="/openc3/plugins/packages/openc3-cosmos-tool-packetviewer/src/tools/PacketViewer/PacketViewer.vue",t="ee778a810c08a2155896da8e333d61232782dea6",n=new Function("return this")(),a="__coverage__",s={path:"/openc3/plugins/packages/openc3-cosmos-tool-packetviewer/src/tools/PacketViewer/PacketViewer.vue",statementMap:{0:{start:{line:1,column:13},end:{line:9,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:8,column:2315}},4:{start:{line:1,column:372},end:{line:1,column:404}},5:{start:{line:1,column:729},end:{line:1,column:743}},6:{start:{line:8,column:81},end:{line:8,column:106}},7:{start:{line:8,column:168},end:{line:8,column:265}},8:{start:{line:8,column:308},end:{line:8,column:507}},9:{start:{line:8,column:546},end:{line:8,column:734}},10:{start:{line:8,column:840},end:{line:8,column:944}},11:{start:{line:8,column:932},end:{line:8,column:944}},12:{start:{line:8,column:944},end:{line:8,column:969}},13:{start:{line:8,column:1030},end:{line:8,column:1051}},14:{start:{line:8,column:1466},end:{line:8,column:1494}},15:{start:{line:8,column:1756},end:{line:8,column:1789}},16:{start:{line:8,column:1996},end:{line:8,column:2018}},17:{start:{line:8,column:2248},end:{line:8,column:2270}},18:{start:{line:10,column:22},end:{line:10,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:9,column:1}},line:1},1:{name:"(anonymous_1)",decl:{start:{line:1,column:355},end:{line:1,column:356}},loc:{start:{line:1,column:371},end:{line:1,column:405}},line:1},2:{name:"(anonymous_2)",decl:{start:{line:1,column:713},end:{line:1,column:714}},loc:{start:{line:1,column:728},end:{line:1,column:744}},line:1},3:{name:"(anonymous_3)",decl:{start:{line:8,column:64},end:{line:8,column:65}},loc:{start:{line:8,column:80},end:{line:8,column:107}},line:8},4:{name:"(anonymous_4)",decl:{start:{line:8,column:149},end:{line:8,column:150}},loc:{start:{line:8,column:167},end:{line:8,column:266}},line:8},5:{name:"(anonymous_5)",decl:{start:{line:8,column:289},end:{line:8,column:290}},loc:{start:{line:8,column:307},end:{line:8,column:508}},line:8},6:{name:"(anonymous_6)",decl:{start:{line:8,column:535},end:{line:8,column:536}},loc:{start:{line:8,column:545},end:{line:8,column:735}},line:8},7:{name:"(anonymous_7)",decl:{start:{line:8,column:823},end:{line:8,column:824}},loc:{start:{line:8,column:839},end:{line:8,column:970}},line:8},8:{name:"(anonymous_8)",decl:{start:{line:8,column:1014},end:{line:8,column:1015}},loc:{start:{line:8,column:1029},end:{line:8,column:1052}},line:8},9:{name:"(anonymous_9)",decl:{start:{line:8,column:1449},end:{line:8,column:1450}},loc:{start:{line:8,column:1465},end:{line:8,column:1495}},line:8},10:{name:"(anonymous_10)",decl:{start:{line:8,column:1739},end:{line:8,column:1740}},loc:{start:{line:8,column:1755},end:{line:8,column:1790}},line:8},11:{name:"(anonymous_11)",decl:{start:{line:8,column:1980},end:{line:8,column:1981}},loc:{start:{line:8,column:1995},end:{line:8,column:2019}},line:8},12:{name:"(anonymous_12)",decl:{start:{line:8,column:2232},end:{line:8,column:2233}},loc:{start:{line:8,column:2247},end:{line:8,column:2271}},line:8}},branchMap:{0:{loc:{start:{line:8,column:215},end:{line:8,column:264}},type:"cond-expr",locations:[{start:{line:8,column:230},end:{line:8,column:255}},{start:{line:8,column:256},end:{line:8,column:264}}],line:8},1:{loc:{start:{line:8,column:840},end:{line:8,column:944}},type:"if",locations:[{start:{line:8,column:840},end:{line:8,column:944}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:8},2:{loc:{start:{line:8,column:843},end:{line:8,column:931}},type:"binary-expr",locations:[{start:{line:8,column:843},end:{line:8,column:870}},{start:{line:8,column:872},end:{line:8,column:931}}],line:8},3:{loc:{start:{line:8,column:1820},end:{line:8,column:2059}},type:"cond-expr",locations:[{start:{line:8,column:1841},end:{line:8,column:2050}},{start:{line:8,column:2051},end:{line:8,column:2059}}],line:8},4:{loc:{start:{line:8,column:2072},end:{line:8,column:2311}},type:"cond-expr",locations:[{start:{line:8,column:2093},end:{line:8,column:2302}},{start:{line:8,column:2303},end:{line:8,column:2311}}],line:8}},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],3:[0,0],4:[0,0]},_coverageSchema:"1a1c01bbd47fc00a2c39e90264f33305004495a9",hash:"ee778a810c08a2155896da8e333d61232782dea6"},l=n[a]||(n[a]={});l[e]&&l[e].hash===t||(l[e]=s);var o=l[e];return i=function(){return o},o}n.r(t),n.d(t,{default:()=>le}),i(),i().s[0]++;var a=function(){i().f[0]++;var e=(i().s[1]++,this),t=(i().s[2]++,e._self._c);return i().s[3]++,t("div",[t("top-bar",{attrs:{menus:e.menus,title:e.title}}),e._v(" "),t("v-card",[t("div",{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 i().f[1]++,i().s[4]++,e.packetChanged(t)}}})],1),e._v(" "),t("v-card-title",[e._v("\n Items\n "),t("v-spacer"),e._v(" "),t("v-text-field",{staticClass:"search",attrs:{label:"Search","prepend-inner-icon":"mdi-magnify",clearable:"",outlined:"",dense:"","single-line":"","hide-details":""},model:{value:e.search,callback:function(t){i().f[2]++,i().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"},"multi-sort":"",dense:""},on:{"update:items-per-page":function(t){i().f[3]++,i().s[6]++,e.itemsPerPage=t}},scopedSlots:e._u([{key:"item.name",fn:function({item:n}){return i().f[4]++,i().s[7]++,[e._v("\n "+e._s(n.name)),n.derived?(i().b[0][0]++,t("span",[e._v(" *")])):(i().b[0][1]++,e._e())]}},{key:"item.value",fn:function({item:n}){return i().f[5]++,i().s[8]++,[t("value-widget",{attrs:{value:n.value,"limits-state":n.limitsState,counter:n.counter,parameters:[e.targetName,e.packetName,n.name],settings:[["WIDTH","100%"]]}})]}},{key:"footer.prepend",fn:function(){return i().f[6]++,i().s[9]++,[e._v("* indicates a \n "),t("a",{attrs:{href:"http://localhost:2900/tools/staticdocs/docs/configuration/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(i().f[7]++,i().s[10]++,i().b[2][0]++,!t.type.indexOf("key")&&(i().b[2][1]++,e._k(t.keyCode,"esc",27,t.key,["Esc","Escape"])))return i().b[1][0]++,i().s[11]++,null;i().b[1][1]++,i().s[12]++,e.optionsDialog=!1}},model:{value:e.optionsDialog,callback:function(t){i().f[8]++,i().s[13]++,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){i().f[9]++,i().s[14]++,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 (seconds)",value:e.staleLimit,"data-test":"stale-limit"},on:{change:function(t){i().f[10]++,i().s[15]++,e.staleLimit=parseInt(t)}}})],1)])],1)],1),e._v(" "),e.showOpenConfig?(i().b[3][0]++,t("open-config-dialog",{attrs:{configKey:e.configKey},on:{success:e.openConfiguration},model:{value:e.showOpenConfig,callback:function(t){i().f[11]++,i().s[16]++,e.showOpenConfig=t},expression:"showOpenConfig"}})):(i().b[3][1]++,e._e()),e._v(" "),e.showSaveConfig?(i().b[4][0]++,t("save-config-dialog",{attrs:{configKey:e.configKey},on:{success:e.saveConfiguration},model:{value:e.showSaveConfig,callback:function(t){i().f[12]++,i().s[17]++,e.showSaveConfig=t},expression:"showSaveConfig"}})):(i().b[4][1]++,e._e())],1)},s=(i().s[18]++,[]),l=(n(9375),n(814)),o=(n(7107),n(2482),n(7067),n(4147),n(2682),n(785),n(8357),n(6196),n(821),n(6554),n(8472),n(7404),n(5803),n(3912),n(7010),n(3816)),r=n(1649);const c=new r["default"],u=o.A.create({baseURL:location.origin,timeout:6e4,params:{}});u.interceptors.response.use((e=>e),(e=>{if(e.response){var t,n,i,a,s;if(401===e.response.status&&OpenC3Auth.updateToken(OpenC3Auth.defaultMinValidity,!0).then((function(e){e&&OpenC3Auth.setTokens()})),e.response.config.headers["Ignore-Errors"]&&e.response.config.headers["Ignore-Errors"].includes(e.response.status.toString()))return Promise.reject(e);let o=`HTTP ${e.response.status} - `;if(null!==(t=e.response)&&void 0!==t&&t.statusText&&(o+=`${e.response.statusText} `),null!==(n=e.response)&&void 0!==n&&null!==(n=n.config)&&void 0!==n&&n.data&&(o+=`${e.response.config.data} `),null!==(i=e.response)&&void 0!==i&&null!==(i=i.data)&&void 0!==i&&i.message)o+=`${e.response.data.message}`;else if(null!==(a=e.response)&&void 0!==a&&null!==(a=a.data)&&void 0!==a&&a.exception)o+=`${e.response.data.exception}`;else if(null!==(s=e.response)&&void 0!==s&&null!==(s=s.data)&&void 0!==s&&null!==(s=s.error)&&void 0!==s&&s.message)e.response.data.error.class&&(o+=`${e.response.data.error.class} `),o+=`${e.response.data.error.message}`;else{var l;o+=`${null===(l=e.response)||void 0===l?void 0:l.data}`}throw c.$notify&&c.$notify.serious({title:"Network error",body:o}),e}throw e}));const d=u;class m{constructor(){(0,l.A)(this,"id",1)}async exec(e,t,n={},i={},a=6e4){try{let e=await OpenC3Auth.updateToken(OpenC3Auth.defaultMinValidity);e&&OpenC3Auth.setTokens()}catch(l){OpenC3Auth.login()}this.id=this.id+1;try{n["scope"]=window.openc3Scope;const s=await d.post("/openc3-api/api",{jsonrpc:"2.0",method:e,params:t,id:this.id,keyword_params:n},{headers:{Authorization:localStorage.openc3Token,"Content-Type":"application/json-rpc",...i},timeout:a});return s.data.result}catch(l){var s=new Error;throw l.response?(s.name=l.response.data.error.data.class,s.message=l.response.data.error.data.message):l.request?(s.name="Request error",s.message="Request error, no response received"):s.name="Unknown error",s}}decode_openc3_type(e){if(null!==e&&"object"===typeof e&&"Float"==e.json_class&&e.raw){if("NaN"==e.raw)return NaN;if("Infinity"==e.raw)return 1/0;if("-Infinity"==e.raw)return-1/0}return null}encode_openc3_type(e){return Number.isNaN(e)?{json_class:"Float",raw:"NaN"}:e==Number.POSITIVE_INFINITY?{json_class:"Float",raw:"Infinity"}:e==Number.NEGATIVE_INFINITY?{json_class:"Float",raw:"-Infinity"}:null}ensure_offline_access(){this.offline_access_needed().then((e=>{e&&(localStorage.openc3OfflineToken?this.set_offline_access(localStorage.openc3OfflineToken).then((()=>{delete localStorage.openc3OfflineToken})):OpenC3Auth.getOfflineAccess())}))}offline_access_needed(){return this.exec("offline_access_needed",[])}set_offline_access(e){return this.exec("set_offline_access",[e])}get_all_interface_info(){return this.exec("get_all_interface_info",[])}map_target_to_interface(e,t){return this.exec("map_target_to_interface",[e,t])}connect_interface(e,...t){return t.length>0?this.exec("connect_interface",[e,...t]):this.exec("connect_interface",[e])}disconnect_interface(e){return this.exec("disconnect_interface",[e])}interface_cmd(e,t,...n){return this.exec("interface_cmd",[e,t,...n])}get_all_router_info(){return this.exec("get_all_router_info",[])}connect_router(e){return this.exec("connect_router",[e])}disconnect_router(e){return this.exec("disconnect_router",[e])}get_target_interfaces(){return this.exec("get_target_interfaces",[])}get_all_target_info(){return this.exec("get_all_target_info",[])}get_tlm_cnts(e){return this.exec("get_tlm_cnts",[e])}get_item(e,t,n){return this.exec("get_item",[e,t,n])}get_param(e,t,n){return this.exec("get_param",[e,t,n])}get_parameter(e,t,n){return this.exec("get_parameter",[e,t,n])}get_limits_sets(){return this.exec("get_limits_sets",[])}get_limits_set(){return this.exec("get_limits_set",[])}set_limits_set(e){return this.exec("set_limits_set",[e])}get_target(e){return this.exec("get_target",[e])}get_target_names(){return this.exec("get_target_names",[])}get_target_list(){return this.exec("get_target_list",[])}get_tlm(e,t){return this.exec("get_tlm",[e,t])}get_telemetry(e,t){return this.exec("get_telemetry",[e,t])}get_all_tlm(e){return this.exec("get_all_tlm",[e])}get_all_telemetry(e){return this.exec("get_all_telemetry",[e])}get_all_tlm_names(e){return this.exec("get_all_tlm_names",[e])}get_all_telemetry_names(e){return this.exec("get_all_telemetry_names",[e])}async get_tlm_packet(e,t,n,i=30){const a=await this.exec("get_tlm_packet",[e,t],{type:n,stale_time:i});if(null!=a)for(var s=a.length,l=null,o=0;o<s;o++)l=this.decode_openc3_type(a[o][1]),null!==l&&(a[o][1]=l);return a}get_packet_derived_items(e,t){return this.exec("get_packet_derived_items",[e,t])}get_tlm_buffer(e,t){return this.exec("get_tlm_buffer",[e,t])}async get_tlm_values(e,t=30,n=null){let i={stale_time:t};null!==n&&(i["cache_timeout"]=n);const a=await this.exec("get_tlm_values",[e],i,{},1e4);for(var s=a[0].length,l=null,o=0;o<s;o++)l=this.decode_openc3_type(a[0][o]),null!==l&&(a[0][o]=l);return a}get_limits(e,t,n){return this.exec("get_limits",[e,t,n])}async tlm(e,t,n,i="CONVERTED"){let a=null;if(void 0===t)a=await this.exec("tlm",[e]);else if(void 0===n){if(!["RAW","CONVERTED","FORMATTED","WITH_UNITS"].includes(t)){var s=new Error;throw s.name="TypeError",s.message=`Invalid data type ${t}. Valid options are RAW, CONVERTED, FORMATTED, and WITH_UNITS.`,s}a=await this.exec("tlm",[e],{type:t})}else a=await this.exec("tlm",[e,t,n],{type:i});var l=this.decode_openc3_type(a);return null!==l&&(a=l),a}async inject_tlm(e,t,n=null,i="CONVERTED"){data=await this.exec("inject_tlm",[e,t,n],{type:i})}set_tlm(e,t,n,i){return this.exec("set_tlm",[e,t,n],{type:i})}override_tlm(e,t,n,i){return this.exec("override_tlm",[e,t,n],{type:i})}get_overrides(){return this.exec("get_overrides")}normalize_tlm(e,t,n,i){return this.exec("normalize_tlm",[e,t,n],{type:i})}get_all_cmds(e){return this.exec("get_all_cmds",[e])}get_all_commands(e){return this.exec("get_all_commands",[e])}get_all_cmd_names(e){return this.exec("get_all_cmd_names",[e])}get_all_command_names(e){return this.exec("get_all_command_names",[e])}get_cmd(e,t){return this.exec("get_cmd",[e,t])}get_command(e,t){return this.exec("get_command",[e,t])}get_cmd_cnts(e){return this.exec("get_cmd_cnts",[e])}get_cmd_value(e,t,n,i="CONVERTED"){return this.exec("get_cmd_value",[e,t,n,i])}get_cmd_buffer(e,t){return this.exec("get_cmd_buffer",[e,t])}_cmd(e,t,n,i,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)}get_cmd_hazardous(e,t,n){return void 0===t?this.exec("get_cmd_hazardous",e):this._cmd("get_cmd_hazardous",e,t,n)}cmd(e,t,n,i={}){return void 0===t?this.exec("cmd",e,{},i):this._cmd("cmd",e,t,n,i)}cmd_no_range_check(e,t,n){return void 0===t?this.exec("cmd_no_range_check",e):this._cmd("cmd_no_range_check",e,t,n)}cmd_raw(e,t,n){return void 0===t?this.exec("cmd_raw",e):this._cmd("cmd_raw",e,t,n)}cmd_raw_no_range_check(e,t,n){return void 0===t?this.exec("cmd_raw_no_range_check",e):this._cmd("cmd_raw_no_range_check",e,t,n)}cmd_no_hazardous_check(e,t,n){return void 0===t?this.exec("cmd_no_hazardous_check",e):this._cmd("cmd_no_hazardous_check",e,t,n)}cmd_no_checks(e,t,n){return void 0===t?this.exec("cmd_no_checks",e):this._cmd("cmd_no_checks",e,t,n)}cmd_raw_no_hazardous_check(e,t,n){return void 0===t?this.exec("cmd_raw_no_hazardous_check",e):this._cmd("cmd_raw_no_hazardous_check",e,t,n)}cmd_raw_no_checks(e,t,n){return void 0===t?this.exec("cmd_raw_no_checks",e):this._cmd("cmd_raw_no_checks",e,t,n)}build_cmd(e,t,n){return void 0===t?this.exec("build_cmd",e):this._cmd("build_cmd",e,t,n)}build_command(e,t,n){return void 0===t?this.exec("build_command",e):this._cmd("build_command",e,t,n)}get_interface_names(){return this.exec("get_interface_names",[])}send_raw(e,t){return this.exec("send_raw",[e,t])}list_configs(e){return this.exec("list_configs",[e])}load_config(e,t){return this.exec("load_config",[e,t])}save_config(e,t,n){return this.exec("save_config",[e,t,n])}delete_config(e,t){return this.exec("delete_config",[e,t])}enable_limits(e,t,n){return this.exec("enable_limits",[e,t,n])}disable_limits(e,t,n){return this.exec("disable_limits",[e,t,n])}get_out_of_limits(){return this.exec("get_out_of_limits",[])}get_overall_limits_state(e){return this.exec("get_overall_limits_state",[e])}list_settings(){return this.exec("list_settings",[])}get_all_settings(){return this.exec("get_all_settings",[])}get_setting(e){return this.exec("get_setting",[e])}get_settings(e){return this.exec("get_settings",e)}set_setting(e,t){return this.exec("set_setting",[e,t])}save_setting(e,t){return this.exec("save_setting",[e,t])}get_metrics(){return this.exec("get_metrics",[])}async hashString(e){if(window.isSecureContext){const t=(new TextEncoder).encode(e),n=await crypto.subtle.digest("SHA-256",t),i=new Uint8Array(n);return Array.from(i).map((e=>e.toString(16).padStart(2,"0"))).join("")}}}var h=function(){var e=this,t=e._self._c;return t("div",{staticClass:"value-widget-container",style:[e.computedStyle,e.aging]},[t("v-tooltip",{attrs:{bottom:""},scopedSlots:e._u([{key:"activator",fn:function({on:n,attrs:i}){return[t("v-text-field",e._g(e._b({class:e.valueClass,attrs:{solo:"",dense:"",readonly:"","single-line":"","hide-no-data":"","hide-details":"",placeholder:"Value",value:e._value,"prepend-inner-icon":e.astroIcon,"data-test":"value"},on:{contextmenu:e.showContextMenu}},"v-text-field",i,!1),n))]}}])},[e._v(" "),t("span",[e._v(e._s(e.fullName))])]),e._v(" "),t("v-menu",{staticStyle:{"z-index":"10"},attrs:{"position-x":e.x,"position-y":e.y,absolute:"","offset-y":""},model:{value:e.contextMenuShown,callback:function(t){e.contextMenuShown=t},expression:"contextMenuShown"}},[t("v-list",e._l(e.contextMenuOptions,(function(n,i){return t("v-list-item",{key:i,on:{click:function(e){return e.stopPropagation(),n.action.apply(null,arguments)}}},[t("v-list-item-title",[e._v(e._s(n.title))])],1)})),1)],1),e._v(" "),t("details-dialog",{attrs:{"target-name":e.parameters[0],"packet-name":e.parameters[1],"item-name":e.parameters[2]},model:{value:e.viewDetails,callback:function(t){e.viewDetails=t},expression:"viewDetails"}})],1)},A=[];n(4293),n(7534);class p{constructor(e,t,n="",i=""){this.keyword=e.keyword,this.parameters=e.parameters,this.filename=e.filename,this.line=e.line,this.lineNumber=e.lineNumber,this.message=t,this.usage=n,this.url=i}}const v={props:{widgetIndex:{type:Number,default:null},parameters:{type:Array,default:()=>[]},settings:{type:Array,default:()=>[]},line:{type:String,default:""},lineNumber:{type:Number,default:0}},data(){return{screen:null}},computed:{computedStyle(){let e={};return this.settings.forEach((t=>{const n=parseInt(t[0]);if(null!==this.widgetIndex){if(this.widgetIndex!==n)return;t=t.slice(1)}this.applySetting(e,t)})),void 0===e["width"]&&(e["flex"]="0 10 100%"),e}},created(){this.settings.forEach((e=>{"__SCREEN__"===e[0]&&(this.screen=e[1])}))},methods:{applySetting(e,t){switch(t[0]){case"TEXTALIGN":e["text-align"]=t[1].toLowerCase()+" !important",e["--text-align"]=t[1].toLowerCase();break;case"PADDING":isNaN(Number(t[1]))||(t[1]+="px"),e["padding"]=t[1]+" !important";break;case"MARGIN":isNaN(Number(t[1]))||(t[1]+="px"),e["margin"]=t[1]+" !important";break;case"BACKCOLOR":e["background-color"]=this.getColor(t.slice(1))+" !important";break;case"TEXTCOLOR":e["color"]=this.getColor(t.slice(1))+" !important";break;case"BORDERCOLOR":e["border-width"]="1px!important",e["border-style"]="solid!important",e["border-color"]=this.getColor(t.slice(1))+" !important";break;case"WIDTH":isNaN(Number(t[1]))||(t[1]+="px"),e["width"]=t[1]+" !important";break;case"HEIGHT":isNaN(Number(t[1]))||(t[1]+="px"),e["height"]=t[1]+" !important";break;case"RAW":e[t[1].toLowerCase()]=t[2]+" !important";break}},verifyNumParams(e,t,n,i=""){let a={line:this.line,lineNumber:this.lineNumber,keyword:e,parameters:this.parameters};for(var s=1;s<=t;s++)if(void 0===this.parameters[s-1])throw new p(a,`Not enough parameters for ${e}.`,i,"https://docs.openc3.com/docs/configuration");if(null!==n&&this.parameters.length>n)throw new p(a,`Too many parameters for ${e}.`,i,"https://docs.openc3.com/docs/configuration")},setWidth(e,t="px",n="120"){let i=null;if(i=null!==this.widgetIndex?this.settings.find((e=>parseInt(e[0])===this.widgetIndex&&"WIDTH"===e[1])):this.settings.find((e=>"WIDTH"===e[0])),i)return i["WIDTH"];if(e){let n=["WIDTH",`${e}${t}`];return null!==this.widgetIndex&&n.unshift(this.widgetIndex),this.settings.push(n),parseInt(e)}{let e=["WIDTH",`${n}${t}`];return null!==this.widgetIndex&&e.unshift(this.widgetIndex),this.settings.push(e),parseInt(n)}},setHeight(e,t="px",n="20"){let i=null;if(i=null!==this.widgetIndex?this.settings.find((e=>parseInt(e[0])===this.widgetIndex&&"HEIGHT"===e[1])):this.settings.find((e=>"HEIGHT"===e[0])),i)return i["HEIGHT"];if(e){let n=["HEIGHT",`${e}${t}`];return null!==this.widgetIndex&&n.unshift(this.widgetIndex),this.settings.push(n),parseInt(e)}{let e=["HEIGHT",`${n}${t}`];return null!==this.widgetIndex&&e.unshift(this.widgetIndex),this.settings.push(e),parseInt(n)}},getColor(e){switch(e.length){case 1:return e[0].toLowerCase();case 3:return`rgb(${e[0]},${e[1]},${e[2]})`}}}};n(9471);const g={mixins:[v],props:{value:{default:null},limitsState:{type:String,default:null},counter:{default:null},formatString:null},data(){return{curValue:null,prevValue:null,grayLevel:80,grayRate:5,valueId:null,arrayIndex:null,viewDetails:!1,contextMenuShown:!1,x:0,y:0,contextMenuOptions:[{title:"Details",action:()=>{this.contextMenuShown=!1,this.viewDetails=!0}},{title:"Graph",action:()=>{window.open("/tools/tlmgrapher/"+this.parameters[0]+"/"+this.parameters[1]+"/"+this.parameters[2],"_blank")}}]}},watch:{_counter:function(e,t){this.curValue!==this.prevValue?this.grayLevel=80:(this.grayLevel-=this.grayRate,this.grayLevel<30&&(this.grayLevel=30)),this.prevValue=this.curValue}},computed:{_value:function(){return this.curValue=this.value,null===this.curValue&&(this.screen?this.screen.screenValues[this.valueId]&&(null!==this.arrayIndex&&this.screen.screenValues[this.valueId][0]?this.curValue=this.screen.screenValues[this.valueId][0][this.arrayIndex]:this.curValue=this.screen.screenValues[this.valueId][0]):this.curValue=null),this.curValue=this.formatValue(this.curValue),this.curValue},_limitsState:function(){let e=this.limitsState;return null===e&&(this.screen?this.screen.screenValues[this.valueId]&&(e=this.screen.screenValues[this.valueId][1]):e=null),e},_counter:function(){let e=this.counter;return null===e&&(this.screen?this.screen.screenValues[this.valueId]&&(e=this.screen.screenValues[this.valueId][2]):e=null),e},valueClass:function(){return"value shrink pa-1 openc3-"+this.limitsColor},astroIcon(){switch(this.limitsColor){case"green":return"$vuetify.icons.astro-status-normal";case"yellow":return"$vuetify.icons.astro-status-caution";case"red":return"$vuetify.icons.astro-status-critical";case"blue":return"$vuetify.icons.astro-status-standby";default:return null}},limitsColor(){let e=this._limitsState;if(null!=e)switch(e){case"GREEN":case"GREEN_HIGH":case"GREEN_LOW":return"green";case"YELLOW":case"YELLOW_HIGH":case"YELLOW_LOW":return"yellow";case"RED":case"RED_HIGH":case"RED_LOW":return"red";case"BLUE":return"blue";case"STALE":return"purple";default:return"white"}return""},limitsLetter(){let e=this._limitsState;if(null!=e){let t=e.charAt(0);return e.endsWith("_LOW")&&(t=t.toLowerCase()),t}return""}},created(){if(null===this.value||null===this.limitsState){if(this.parameters[2].includes("[["))this.parameters[2]=this.parameters[2].replace("[[","[").replace("]]","]");else if(this.parameters[2].includes("[")){let e=this.parameters[2].match(/\[(\d+)\]/);this.arrayIndex=parseInt(e[1]),this.parameters[2]=this.parameters[2].replace(e[0],"")}this.valueId=`${this.parameters[0]}__${this.parameters[1]}__${this.parameters[2]}__${this.getType()}`,this.screen&&this.screen.addItem(this.valueId)}},destroyed(){null!==this.value&&null!==this.limitsState||this.screen&&this.screen.deleteItem(this.valueId)},methods:{getType(){var e="WITH_UNITS";return this.parameters[3]&&(e=this.parameters[3]),e},formatValue(e){if(e&&"String"===e["json_class"]&&void 0!==e["raw"]){let t=Array.from(e["raw"].slice(0,32),(function(e){return("0"+(255&e).toString(16)).slice(-2)})).join(" ").toUpperCase();return e["raw"].length>32&&(t+="..."),t}if("Array"===Object.prototype.toString.call(e).slice(8,-1)){let t="[";for(let n=0;n<e.length;n++)"String"===Object.prototype.toString.call(e[n]).slice(8,-1)?t+='"'+e[n]+'"':t+=e[n],n!=e.length-1&&(t+=", ");return t+="]",t}return"Object"===Object.prototype.toString.call(e).slice(8,-1)?"":this.formatString&&e?sprintf(this.formatString,e):""+e},showContextMenu(e){e.preventDefault(),this.contextMenuShown=!1,this.x=e.clientX,this.y=e.clientY,this.$nextTick((()=>{this.contextMenuShown=!0}))}}};var f=function(){var e=this,t=e._self._c;return t("v-dialog",{attrs:{width:"600"},model:{value:e.show,callback:function(t){e.show=t},expression:"show"}},[t("v-card",[t("v-system-bar",[t("v-spacer"),e._v(" "),t("span",[e._v(" Details ")]),e._v(" "),t("v-spacer")],1),e._v(" "),t("v-card-title",[e._v("\n "+e._s(e.targetName)+" "+e._s(e.packetName)+" "+e._s(e.itemName)+"\n ")]),e._v(" "),t("v-card-subtitle",[e._v(e._s(e.details.description))]),e._v(" "),t("v-card-text",[t("v-container",{attrs:{fluid:""}},["tlm"===e.type?t("v-row",{attrs:{"no-gutters":""}},[t("v-col",{staticClass:"label",attrs:{cols:"3"}},[e._v("Item Values")]),e._v(" "),t("v-col"),e._v(" "),t("v-container",{staticClass:"ml-5 pa-0",attrs:{fluid:""}},[t("v-row",{attrs:{"no-gutters":""}},[t("v-col",{staticClass:"label",attrs:{cols:"4"}},[e._v("Raw Value")]),e._v(" "),t("v-col",[e._v(e._s(e.rawValue))])],1),e._v(" "),t("v-row",{attrs:{"no-gutters":""}},[t("v-col",{staticClass:"label",attrs:{cols:"4"}},[e._v("Converted Value")]),e._v(" "),t("v-col",[e._v(e._s(e.convertedValue))])],1),e._v(" "),t("v-row",{attrs:{"no-gutters":""}},[t("v-col",{staticClass:"label",attrs:{cols:"4"}},[e._v("Formatted Value")]),e._v(" "),t("v-col",[e._v(e._s(e.formattedValue))])],1),e._v(" "),t("v-row",{attrs:{"no-gutters":""}},[t("v-col",{staticClass:"label",attrs:{cols:"4"}},[e._v("With Units Value")]),e._v(" "),t("v-col",[e._v(e._s(e.unitsValue))])],1)],1)],1):e._e(),e._v(" "),t("v-row",{attrs:{"no-gutters":""}},[t("v-col",{staticClass:"label",attrs:{cols:"3"}},[e._v("Bit Offset")]),e._v(" "),t("v-col",[e._v(e._s(e.details.bit_offset))])],1),e._v(" "),t("v-row",{attrs:{"no-gutters":""}},[t("v-col",{staticClass:"label",attrs:{cols:"3"}},[e._v("Bit Size")]),e._v(" "),t("v-col",[e._v(e._s(e.details.bit_size))])],1),e._v(" "),e.details.array_size?t("v-row",{attrs:{"no-gutters":""}},[t("v-col",{staticClass:"label",attrs:{cols:"3"}},[e._v("Array Size")]),e._v(" "),t("v-col",[e._v(e._s(e.details.array_size))])],1):e._e(),e._v(" "),t("v-row",{attrs:{"no-gutters":""}},[t("v-col",{staticClass:"label",attrs:{cols:"3"}},[e._v("Data Type")]),e._v(" "),t("v-col",[e._v(e._s(e.details.data_type))])],1),e._v(" "),"cmd"===e.type?t("v-row",{attrs:{"no-gutters":""}},[t("v-col",{staticClass:"label",attrs:{cols:"3"}},[e._v("Minimum")]),e._v(" "),t("v-col",[e._v(e._s(e.details.minimum))])],1):e._e(),e._v(" "),"cmd"===e.type?t("v-row",{attrs:{"no-gutters":""}},[t("v-col",{staticClass:"label",attrs:{cols:"3"}},[e._v("Maximum")]),e._v(" "),t("v-col",[e._v(e._s(e.details.maximum))])],1):e._e(),e._v(" "),"cmd"===e.type?t("v-row",{attrs:{"no-gutters":""}},[t("v-col",{staticClass:"label",attrs:{cols:"3"}},[e._v("Default")]),e._v(" "),t("v-col",[e._v(e._s(e.details.default))])],1):e._e(),e._v(" "),t("v-row",{attrs:{"no-gutters":""}},[t("v-col",{staticClass:"label",attrs:{cols:"3"}},[e._v("Format String")]),e._v(" "),t("v-col",[e._v(e._s(e.details.format_string))])],1),e._v(" "),t("v-row",{attrs:{"no-gutters":""}},[t("v-col",{staticClass:"label",attrs:{cols:"3"}},[e._v("Read Conversion")]),e._v(" "),e.details.read_conversion?t("v-col",[e._v("\n Class: "+e._s(e.details.read_conversion.class)+"\n "),t("br"),e._v("\n Params:\n "+e._s(e.details.read_conversion.params)+"\n ")]):t("v-col")],1),e._v(" "),t("v-row",{attrs:{"no-gutters":""}},[t("v-col",{staticClass:"label",attrs:{cols:"3"}},[e._v("Write Conversion")]),e._v(" "),e.details.write_conversion?t("v-col",[e._v("\n Class: "+e._s(e.details.write_conversion.class)+"\n "),t("br"),e._v("\n Params:\n "+e._s(e.details.write_conversion.params)+"\n ")]):t("v-col")],1),e._v(" "),t("v-row",{attrs:{"no-gutters":""}},[t("v-col",{staticClass:"label",attrs:{cols:"3"}},[e._v("Id Value")]),e._v(" "),t("v-col",[e._v(e._s(e.details.id_value))])],1),e._v(" "),t("v-row",{attrs:{"no-gutters":""}},[t("v-col",{staticClass:"label",attrs:{cols:"3"}},[e._v("Units Full")]),e._v(" "),t("v-col",[e._v(e._s(e.details.units_full))])],1),e._v(" "),t("v-row",{attrs:{"no-gutters":""}},[t("v-col",{staticClass:"label",attrs:{cols:"3"}},[e._v("Units Abbr")]),e._v(" "),t("v-col",[e._v(e._s(e.details.units))])],1),e._v(" "),t("v-row",{attrs:{"no-gutters":""}},[t("v-col",{staticClass:"label",attrs:{cols:"3"}},[e._v("Endianness")]),e._v(" "),t("v-col",[e._v(e._s(e.details.endianness))])],1),e._v(" "),e.details.states?t("v-row",{attrs:{"no-gutters":""}},[t("v-col",{staticClass:"label",attrs:{cols:"3"}},[e._v("States")]),e._v(" "),t("v-col"),e._v(" "),t("v-container",{staticClass:"ml-5 pa-0",attrs:{fluid:""}},e._l(e.details.states,(function(n,i){return t("v-row",{key:i,attrs:{"no-gutters":""}},[t("v-col",{staticClass:"label",attrs:{cols:"4"}},[e._v(e._s(i))]),e._v(" "),t("v-col",[e._v(e._s(n.value))])],1)})),1)],1):t("v-row",{attrs:{"no-gutters":""}},[t("v-col",{staticClass:"label",attrs:{cols:"3"}},[e._v("States")]),e._v(" "),t("v-col",[e._v("None")])],1),e._v(" "),e.details.limits?t("v-row",{attrs:{"no-gutters":""}},[t("v-col",{staticClass:"label",attrs:{cols:"3"}},[e._v("Limits")]),e._v(" "),t("v-col"),e._v(" "),t("v-container",{staticClass:"ml-5 pa-0",attrs:{fluid:""}},e._l(e.details.limits,(function(n,i){return t("v-row",{key:i,attrs:{"no-gutters":""}},["enabled"===i?t("v-col",{staticClass:"label",attrs:{cols:"4"}},[e._v("Enabled")]):e._e(),e._v(" "),"enabled"===i?t("v-switch",{attrs:{dense:"","hide-details":""},on:{change:e.changeLimitsEnabled},model:{value:e.details.limits.enabled,callback:function(t){e.$set(e.details.limits,"enabled",t)},expression:"details.limits.enabled"}}):e._e(),e._v(" "),"enabled"!==i?t("v-col",{staticClass:"label",attrs:{cols:"4"}},[e._v(e._s(i))]):e._e(),e._v(" "),"enabled"!==i?t("div",[e._v(e._s(e.formatLimit(n)))]):e._e(),e._v(" "),t("v-col")],1)})),1)],1):t("v-row",{attrs:{"no-gutters":""}},[t("v-col",{staticClass:"label",attrs:{cols:"3"}},[e._v("Limits")]),e._v(" "),t("v-col",[e._v("None")])],1),e._v(" "),e.details.meta?t("v-row",{attrs:{"no-gutters":""}},[t("v-col",{staticClass:"label",attrs:{cols:"3"}},[e._v("Meta")]),e._v(" "),t("v-col"),e._v(" "),t("v-container",{staticClass:"ml-5 pa-0",attrs:{fluid:""}},e._l(e.details.meta,(function(n,i){return t("v-row",{key:i,attrs:{"no-gutters":""}},[t("v-col",{staticClass:"label",attrs:{cols:"4"}},[e._v(e._s(i))]),e._v(" "),t("v-col",[e._v(e._s(n))])],1)})),1)],1):t("v-row",{attrs:{"no-gutters":""}},[t("v-col",{staticClass:"label",attrs:{cols:"3"}},[e._v("Meta")]),e._v(" "),t("v-col",[e._v("None")])],1)],1)],1)],1)],1)},_=[];const C={props:{type:{default:"tlm",validator:function(e){return-1!==["cmd","tlm"].indexOf(e)}},targetName:String,packetName:String,itemName:String,value:Boolean},data(){return{details:Object,updater:null,rawValue:null,convertedValue:null,formattedValue:null,unitsValue:null}},computed:{show:{get(){return this.value},set(e){this.$emit("input",e)}}},created(){this.api=new m},beforeDestroy(){clearInterval(this.updater),this.updater=null},watch:{value:function(e,t){e?(this.requestDetails(),"tlm"===this.type&&(this.updater=setInterval((()=>{this.api.get_tlm_values([`${this.targetName}__${this.packetName}__${this.itemName}__RAW`,`${this.targetName}__${this.packetName}__${this.itemName}__CONVERTED`,`${this.targetName}__${this.packetName}__${this.itemName}__FORMATTED`,`${this.targetName}__${this.packetName}__${this.itemName}__WITH_UNITS`]).then((e=>{for(var t=0;t<e.length;t++){let n=null;if("String"===e[t][0]["json_class"]&&void 0!==e[t][0]["raw"]?n=e[t][0]["raw"]:"BLOCK"===this.details.data_type&&(n=e[t][0]),null!==n){n=n.slice(0,parseInt(this.details.bit_size)/8);let i=!1;n.length>64&&(i=!0),e[t][0]=Array.from(n.slice(0,64),(function(e){return" "===e?"20":("0"+(255&e).toString(16)).slice(-2)})).join(" ").toUpperCase(),i&&(e[t][0]+="...")}}this.details.data_type.includes("INT")&&!this.details.array_size?this.rawValue=`${e[0][0]} (0x${e[0][0].toString(16).toUpperCase()})`:this.rawValue=e[0][0],this.convertedValue=e[1][0],this.formattedValue=e[2][0],this.unitsValue=e[3][0]}))}),1e3))):(clearInterval(this.updater),this.updater=null)}},methods:{async requestDetails(){"tlm"===this.type?await this.api.get_item(this.targetName,this.packetName,this.itemName).then((e=>{if(this.details=e,0===Object.keys(e.limits).length)this.details.limits=null;else{let t=!1;e.limits.enabled&&(t=!0,delete e.limits.enabled),this.details.limits={enabled:t,...e.limits}}})):await this.api.get_parameter(this.targetName,this.packetName,this.itemName).then((e=>{this.details=e}))},async changeLimitsEnabled(){this.details.limits.enabled?await this.api.enable_limits(this.targetName,this.packetName,this.itemName):await this.api.disable_limits(this.targetName,this.packetName,this.itemName)},formatLimit(e){return e.hasOwnProperty("green_low")?"RL/"+e.red_low+" YL/"+e.yellow_low+" YH/"+e.yellow_high+" RH/"+e.red_high+" GL/"+e.green_low+" GH/"+e.green_high:e.hasOwnProperty("red_low")?"RL/"+e.red_low+" YL/"+e.yellow_low+" YH/"+e.yellow_high+" RH/"+e.red_high:e}}},y=C;n(1727);var b=n(2401),w=(0,b.A)(y,f,_,!1,null,"6659f972",null);const N=w.exports,k=4,x={components:{DetailsDialog:N},mixins:[g],data:function(){return{width:12+k}},computed:{fullName(){return this.parameters[0]+" "+this.parameters[1]+" "+this.parameters[2]},aging(){return{"--aging":this.grayLevel}}},created(){this.verifyNumParams("VALUE",3,5,"VALUE <TARGET> <PACKET> <ITEM> <TYPE> <WIDTH>"),this.setWidth(parseInt(this.parameters[4])+k,"ch",this.width)}},I=x;n(8087);var T=(0,b.A)(I,h,A,!1,null,"f6adf1e0",null);const D=T.exports;var S=function(){var e=this,t=e._self._c;return t("div",{staticClass:"pt-4 tgt-pkt-item-chooser"},[t("v-row",[t("v-col",{staticClass:"select",attrs:{cols:e.colSize,"data-test":"select-target"}},[t("v-autocomplete",{attrs:{label:"Select Target","hide-details":"",dense:"",outlined:"",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",{staticClass:"select",attrs:{cols:e.colSize,"data-test":"select-packet"}},[t("v-autocomplete",{attrs:{label:"Select Packet","hide-details":"",dense:"",outlined:"",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",{staticClass:"select",attrs:{cols:e.colSize,"data-test":"select-item"}},[t("v-autocomplete",{attrs:{label:"Select Item","hide-details":"",dense:"",outlined:"",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.itemIsArray()?t("v-col",{staticClass:"select",attrs:{cols:e.colSize,"data-test":"array-index"}},[t("v-combobox",{attrs:{label:"Array Index","hide-details":"",dense:"",outlined:"",disabled:e.itemsDisabled||e.buttonDisabled,items:e.arrayIndexes(),"item-text":"label","item-value":"value"},on:{change:function(t){return e.indexChanged(t)}},model:{value:e.selectedArrayIndex,callback:function(t){e.selectedArrayIndex=t},expression:"selectedArrayIndex"}})],1):e._e(),e._v(" "),e.buttonText?t("v-col",{staticStyle:{"max-width":"0px"},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",{staticClass:"select",attrs:{cols:e.colSize,"data-test":"data-type"}},[t("v-autocomplete",{attrs:{label:"Value Type","hide-details":"",dense:"",outlined:"",items:e.valueTypes},model:{value:e.selectedValueType,callback:function(t){e.selectedValueType=t},expression:"selectedValueType"}})],1),e._v(" "),t("v-col",{staticClass:"select",attrs:{cols:e.colSize,"data-test":"reduced"}},[t("v-autocomplete",{attrs:{label:"Reduced","hide-details":"",dense:"",outlined:"",items:e.reductionModes},model:{value:e.selectedReduced,callback:function(t){e.selectedReduced=t},expression:"selectedReduced"}})],1),e._v(" "),t("v-col",{staticClass:"select",attrs:{cols:e.colSize,"data-test":"reduced-type"}},[t("v-autocomplete",{attrs:{label:"Reduced Type","hide-details":"",dense:"",outlined:"",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",{staticStyle:{"max-width":"0px"},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",attrs:{cols:e.colSize}},[e._v("Description: "+e._s(e.description)+" (HAZARDOUS)")]):t("v-col",{attrs:{cols:e.colSize}},[e._v("Description: "+e._s(e.description)+" ")])],1)],1)},$=[];n(8605),n(8752);const E={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:e=>["cmd","tlm"].includes(e)},unknown:{type:Boolean,default:!1},vertical:{type:Boolean,default:!1}},data(){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"}],selectedArrayIndex:null,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(){this.internalDisabled=!0,this.api=new m,this.api.get_target_names().then((e=>{this.targetNames=e.flatMap((e=>"UNKNOWN"==e?[]:{label:e,value:e})),this.allowAllTargets&&this.targetNames.unshift(this.ALL),this.selectedTargetName||(this.selectedTargetName=this.targetNames[0].value,this.targetNameChanged(this.selectedTargetName)),this.updatePackets(),this.unknown&&this.targetNames.push(this.UNKNOWN)}))},computed:{actualButtonText:function(){return"ALL"===this.selectedPacketName?"Add Target":"ALL"===this.selectedItemName?"Add Packet":this.buttonText},buttonDisabled:function(){return this.disabled||this.internalDisabled},colSize:function(){return!!this.vertical&&12},selectedItemNameWIndex:function(){return null!==this.selectedArrayIndex&&this.selectedArrayIndex!==this.ALL.label?`${this.selectedItemName}[${this.selectedArrayIndex}]`:this.selectedItemName}},watch:{mode:function(e,t){this.selectedPacketName=null,this.selectedItemName=null,this.updatePackets()}},methods:{updatePackets:function(){if("UNKNOWN"===this.selectedTargetName)return this.packetNames=[this.UNKNOWN],this.selectedPacketName=this.packetNames[0].value,this.updatePacketDetails(this.UNKNOWN.value),void(this.description="UNKNOWN");if("ALL"===this.selectedTargetName)return this.packetNames=[this.ALL],this.selectedPacketName=this.packetNames[0].value,this.updatePacketDetails(this.ALL.value),void(this.description="ALL");this.internalDisabled=!0;const e="tlm"===this.mode?"get_all_tlm_names":"get_all_cmd_names";this.api[e](this.selectedTargetName).then((e=>{this.packetNames=e.map((e=>({label:e,value:e}))),this.allowAll&&this.packetNames.unshift(this.ALL),this.selectedPacketName||(this.selectedPacketName=this.packetNames[0].value),this.updatePacketDetails(this.selectedPacketName);const t=this.packetNames.find((e=>e.value===this.selectedPacketName));t&&this.chooseItem&&this.updateItems(),this.internalDisabled=!1}))},updateItems:function(){if("ALL"===this.selectedPacketName)return;this.internalDisabled=!0;const e="tlm"===this.mode?"get_tlm":"get_cmd";this.api[e](this.selectedTargetName,this.selectedPacketName).then((e=>{this.itemNames=e.items.map((e=>{let t=e.name;return"DERIVED"==e.data_type&&(t+=" *"),[{label:t,value:e.name,description:e.description,array:e.array_size/e.bit_size}]})).reduce(((e,t)=>e.concat(t)),[]),this.itemNames.sort(((e,t)=>e.label>t.label?1:-1)),this.allowAll&&this.itemNames.unshift(this.ALL),this.selectedItemName||(this.selectedItemName=this.itemNames[0].value),this.description=this.itemNames[0].description,this.itemIsArray(),this.$emit("on-set",{targetName:this.selectedTargetName,packetName:this.selectedPacketName,itemName:this.selectedItemNameWIndex,valueType:this.selectedValueType,reduced:this.selectedReduced,reducedType:this.selectedReducedType}),this.internalDisabled=!1}))},itemIsArray:function(){let e=this.itemNames.findIndex((e=>e.value===this.selectedItemName));return-1===e||isNaN(this.itemNames[e].array)?(this.selectedArrayIndex=null,!1):(null===this.selectedArrayIndex&&(this.selectedArrayIndex=0),!0)},arrayIndexes:function(){let e=this.itemNames.findIndex((e=>e.value===this.selectedItemName)),t=[...Array(this.itemNames[e].array).keys()];return this.allowAll&&t.unshift(this.ALL.label),t},targetNameChanged:function(e){this.selectedTargetName=e,this.selectedPacketName="",this.selectedItemName="",this.updatePackets()},packetNameChanged:function(e){this.selectedItemName="",this.updatePacketDetails(e)},updatePacketDetails:function(e){if("ALL"===e)this.itemsDisabled=!0,this.internalDisabled=!1;else{this.itemsDisabled=!1;const t=this.packetNames.find((t=>e===t.value));if(t){this.selectedPacketName=t.value;const e="tlm"===this.mode?"get_tlm":"get_cmd";this.api[e](this.selectedTargetName,this.selectedPacketName).then((e=>{this.description=e.description,this.hazardous=e.hazardous}))}}this.chooseItem?this.updateItems():this.$emit("on-set",{targetName:this.selectedTargetName,packetName:this.selectedPacketName,itemName:this.selectedItemNameWIndex,valueType:this.selectedValueType,reduced:this.selectedReduced,reducedType:this.selectedReducedType})},itemNameChanged:function(e){const t=this.itemNames.find((t=>e===t.value));t&&(this.itemIsArray(),this.selectedItemName=t.value,this.description=t.description,this.$emit("on-set",{targetName:this.selectedTargetName,packetName:this.selectedPacketName,itemName:this.selectedItemNameWIndex,valueType:this.selectedValueType,reduced:this.selectedReduced,reducedType:this.selectedReducedType}))},indexChanged:function(e){this.$emit("on-set",{targetName:this.selectedTargetName,packetName:this.selectedPacketName,itemName:this.selectedItemNameWIndex,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.selectedItemNameWIndex,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(){this.packetNames.forEach((e=>{if(e===this.ALL)return;const t="tlm"===this.mode?"get_tlm":"get_cmd";this.api[t](this.selectedTargetName,e.value).then((t=>{t.items.forEach((t=>{this.$emit("click",{targetName:this.selectedTargetName,packetName:e.value,itemName:t["name"],valueType:this.selectedValueType,reduced:this.selectedReduced,reducedType:this.selectedReducedType})}))}))}))},allPacketItems:function(){this.itemNames.forEach((e=>{e!==this.ALL&&this.$emit("click",{targetName:this.selectedTargetName,packetName:this.selectedPacketName,itemName:e.value,valueType:this.selectedValueType,reduced:this.selectedReduced,reducedType:this.selectedReducedType})}))}}},L=E;n(6769);var P=(0,b.A)(L,S,$,!1,null,"36062eb2",null);const R=P.exports;var O=function(){var e=this,t=e._self._c;return t("mounting-portal",{attrs:{"mount-to":"#openc3-menu",append:""}},[t("v-row",{attrs:{"no-gutters":""}},[t("v-col",{attrs:{"align-self":"end"}},[t("span",{staticClass:"app-title mr-2"},[e._v(e._s(e.title))])])],1),e._v(" "),t("v-row",{staticClass:"flex-nowrap",attrs:{dense:""}},e._l(e.menus,(function(n,i){return t("v-menu",{key:i,ref:"topmenu",refInFor:!0,attrs:{"offset-y":""},scopedSlots:e._u([{key:"activator",fn:function({on:i,attrs:a}){return[t("v-btn",e._g(e._b({staticClass:"mx-1 menu-button",attrs:{outlined:"","data-test":e.formatDT(`${e.title} ${n.label}`)}},"v-btn",a,!1),i),[t("span",{domProps:{textContent:e._s(n.label)}}),e._v(" "),t("v-icon",{staticClass:"myicon",attrs:{right:""}},[e._v(" mdi-menu-down ")])],1)]}}],null,!0)},[e._v(" "),t("v-list",[t("v-radio-group",{staticClass:"ma-0 pa-0",attrs:{value:n.radioGroup,"hide-details":"",dense:""}},[e._l(n.items,(function(i,a){return[i.divider?t("v-divider",{key:a}):i.subMenu&&i.subMenu.length>0?t("div",{key:a},[t("v-menu",{key:e.k,attrs:{"open-on-hover":"","offset-x":"",bottom:""},scopedSlots:e._u([{key:"activator",fn:function({on:n,attrs:s}){return[t("v-list-item",e._g(e._b({key:a,attrs:{disabled:i.disabled}},"v-list-item",s,!1),n),[i.icon?t("v-list-item-icon",[t("v-icon",{attrs:{disabled:i.disabled}},[e._v(e._s(i.icon))])],1):e._e(),e._v(" "),i.radio||i.checkbox?e._e():t("v-list-item-title",{style:"cursor: pointer;"+(i.disabled?"opacity: 0.2":"")},[e._v(e._s(i.label)+"\n ")]),e._v(" "),t("v-icon",[e._v(" mdi-chevron-right ")])],1)]}}],null,!0)},[e._v(" "),t("v-list",e._l(i.subMenu,(function(n,i){return t("v-list-item",{key:i,on:{click:function(t){return e.subMenuClick(n)}}},[n.icon?t("v-list-item-icon",[t("v-icon",[e._v(e._s(n.icon))])],1):e._e(),e._v(" "),t("v-list-item-title",[e._v(e._s(n.label))])],1)})),1)],1)],1):t("v-list-item",{key:a,attrs:{disabled:i.disabled,"data-test":e.formatDT(`${e.title} ${n.label} ${i.label}`)},on:{click:function(e){return i.command(i)}}},[i.radio?t("v-list-item-action",[t("v-radio",{attrs:{color:"secondary",label:i.label,value:i.label}})],1):e._e(),e._v(" "),i.checkbox?t("v-list-item-action",[t("v-checkbox",{attrs:{color:"secondary",label:i.label},model:{value:i.checked,callback:function(t){e.$set(i,"checked",t)},expression:"option.checked"}})],1):e._e(),e._v(" "),i.icon?t("v-list-item-icon",[t("v-icon",{attrs:{disabled:i.disabled}},[e._v(e._s(i.icon))])],1):e._e(),e._v(" "),i.radio||i.checkbox?e._e():t("v-list-item-title",{style:"cursor: pointer;"+(i.disabled?"opacity: 0.2":"")},[e._v(e._s(i.label))])],1)]}))],2)],1)],1)})),1)],1)},V=[];n(8715);const U={props:{menus:{type:Array,default:function(){return[]}},title:{type:String,default:""}},methods:{formatDT:function(e){return e.replaceAll(" ","-").toLowerCase()},subMenuClick(e){e.command(e),this.$refs.topmenu[0].isActive=!1}},mounted(){document.title=this.title}},W=U;n(1e3);var M=(0,b.A)(W,O,V,!1,null,"57d4fdd2",null);const H=M.exports,z={data:{configKey:"",dontSaveDefaultConfig:!1},methods:{loadDefaultConfig:function(){return localStorage[`${this.configKey}__default`]?JSON.parse(localStorage[`${this.configKey}__default`]):{}},saveDefaultConfig:function(e){!0!==this.dontSaveDefaultConfig&&(localStorage[`${this.configKey}__default`]=JSON.stringify(e))},openConfigBase:function(e,t=!1,n=null){(new m).load_config(this.configKey,e).then((i=>{i?(this.$notify.normal({title:"Loading configuration",body:e}),n&&n(JSON.parse(i)),t||this.$router.currentRoute.fullPath.includes(e)||this.$router.push({query:{config:e}})):this.$notify.caution({title:"Unknown configuration",body:e})})).catch((t=>{t&&this.$notify.serious({title:`Error opening configuration: ${e}`,body:t})}))},saveConfigBase:function(e,t){(new m).save_config(this.configKey,e,JSON.stringify(t)).then((()=>{this.$notify.normal({title:"Saved configuration",body:e})})).catch((t=>{t&&this.$notify.serious({title:`Error saving configuration: ${e}`,body:t})}))},resetConfigBase:function(){localStorage.removeItem(`${this.configKey}__default`),"/"!==this.$router.currentRoute.fullPath&&(this.$router.replace(this.$router.currentRoute.path),this.$router.go())}}};var F=function(){var e=this,t=e._self._c;return t("v-dialog",{attrs:{width:"600"},on:{keydown:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"esc",27,t.key,["Esc","Escape"])?null:e.cancel.apply(null,arguments)}},model:{value:e.show,callback:function(t){e.show=t},expression:"show"}},[t("v-card",[t("form",{on:{submit:function(t){return t.preventDefault(),e.success.apply(null,arguments)}}},[t("v-system-bar",[t("v-spacer"),e._v(" "),t("span",[e._v("Open Configuration")]),e._v(" "),t("v-spacer")],1),e._v(" "),t("v-card-text",[t("div",{staticClass:"pa-3"},[t("v-row",{attrs:{dense:""}},[t("v-text-field",{attrs:{label:"search",type:"text","prepend-inner-icon":"mdi-magnify",clearable:"",outlined:"",dense:"","clear-icon":"mdi-close-circle-outline",clearable:"",autofocus:"","single-line":"","hide-details":"","data-test":"search"},model:{value:e.search,callback:function(t){e.search=t},expression:"search"}})],1),e._v(" "),t("v-data-table",{attrs:{"show-select":"","single-select":"","item-key":"configId",search:e.search,headers:e.headers,items:e.configs,"items-per-page":5,"footer-props":{"items-per-page-options":[5]}},on:{"item-selected":e.itemSelected,"click:row":(e,t)=>t.select(e)},scopedSlots:e._u([{key:"item.actions",fn:function({item:n}){return[t("v-btn",{staticClass:"mt-1",attrs:{"data-test":"item-delete",icon:""},on:{click:function(t){return e.deleteConfig(n)}}},[t("v-icon",[e._v("mdi-delete")])],1)]}}])}),e._v(" "),t("v-row",{attrs:{dense:""}},[t("span",{directives:[{name:"show",rawName:"v-show",value:e.error,expression:"error"}],staticClass:"ma-2 red--text",domProps:{textContent:e._s(e.error)}})])],1)]),e._v(" "),t("v-card-actions",[t("v-spacer"),e._v(" "),t("v-btn",{staticClass:"mx-2",attrs:{outlined:"","data-test":"open-config-cancel-btn"},on:{click:e.cancel}},[e._v("\n Cancel\n ")]),e._v(" "),t("v-btn",{staticClass:"mx-2",attrs:{type:"submit",color:"primary","data-test":"open-config-submit-btn",disabled:!!e.error},on:{click:function(t){return t.preventDefault(),e.success.apply(null,arguments)}}},[e._v("\n Ok\n ")])],1)],1)])],1)},G=[];const K={props:{configKey:String,value:Boolean},data(){return{configs:[],headers:[{text:"Configuration",value:"config"},{text:"Actions",value:"actions",align:"end",sortable:!1}],search:null,selectedItem:null}},computed:{error:function(){return""===this.selectedItem||null===this.selectedItem?"Must select a config":null},show:{get(){return this.value},set(e){this.$emit("input",e)}}},mounted(){let e=-1;(new m).list_configs(this.configKey).then((t=>{this.configs=t.map((t=>(e+=1,{configId:e,config:t})))})).catch((e=>{this.$emit("warning",`Failed to connect to OpenC3. ${e}`)}))},methods:{itemSelected:function(e){e.value?this.selectedItem=e.item:this.selectedItem=null},success:function(){this.$emit("success",this.selectedItem.config),this.show=!1,this.search=null,this.selectedItem=null},cancel:function(){this.show=!1,this.search=null,this.selectedItem=null},deleteConfig:function(e){this.$dialog.confirm(`Are you sure you want to delete: ${e.config}`,{okText:"Delete",cancelText:"Cancel"}).then((t=>{this.selectedItem.config===e.config&&(this.selectedItem=null),this.configs.splice(this.configs.indexOf(e),1),(new m).delete_config(this.configKey,e.config)})).catch((t=>{t&&this.$emit("warning",`Failed to delete config ${e.config} Error: ${t}`)}))}}},B=K;var j=(0,b.A)(B,F,G,!1,null,null,null);const q=j.exports;var Y=function(){var e=this,t=e._self._c;return t("v-dialog",{attrs:{width:"600"},on:{keydown:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"esc",27,t.key,["Esc","Escape"])?null:e.cancel.apply(null,arguments)}},model:{value:e.show,callback:function(t){e.show=t},expression:"show"}},[t("v-card",[t("form",{on:{submit:function(t){return t.preventDefault(),e.success.apply(null,arguments)}}},[t("v-system-bar",[t("v-spacer"),e._v(" "),t("span",[e._v("Save Configuration")]),e._v(" "),t("v-spacer")],1),e._v(" "),t("v-card-text",[t("div",{staticClass:"pa-3"},[t("v-row",{attrs:{dense:""}},[t("v-text-field",{attrs:{label:"search",type:"text","prepend-inner-icon":"mdi-magnify",clearable:"",outlined:"",dense:"","clear-icon":"mdi-close-circle-outline",clearable:"","single-line":"","hide-details":"","data-test":"search"},model:{value:e.search,callback:function(t){e.search=t},expression:"search"}})],1),e._v(" "),t("v-data-table",{attrs:{"show-select":"","single-select":"","item-key":"configId",search:e.search,headers:e.headers,items:e.configs,"items-per-page":5,"footer-props":{"items-per-page-options":[5]}},on:{"item-selected":e.itemSelected,"click:row":(e,t)=>t.select(e)},scopedSlots:e._u([{key:"item.actions",fn:function({item:n}){return[t("v-btn",{staticClass:"mt-1",attrs:{icon:"","data-test":"item-delete"},on:{click:function(t){return e.deleteConfig(n)}}},[t("v-icon",[e._v("mdi-delete")])],1)]}}])}),e._v(" "),t("v-row",{attrs:{dense:""}},[t("v-text-field",{attrs:{"hide-details":"",autofocus:"",disabled:!!e.selectedItem,label:"Configuration Name","data-test":"name-input-save-config-dialog"},model:{value:e.configName,callback:function(t){e.configName=t},expression:"configName"}})],1),e._v(" "),t("v-row",{attrs:{dense:""}},[t("span",{directives:[{name:"show",rawName:"v-show",value:e.error,expression:"error"}],staticClass:"ma-2 red--text",domProps:{textContent:e._s(e.error)}})])],1)]),e._v(" "),t("v-card-actions",[t("v-spacer"),e._v(" "),t("v-btn",{staticClass:"mx-2",attrs:{outlined:""},on:{click:e.cancel}},[e._v(" Cancel ")]),e._v(" "),t("v-btn",{staticClass:"mx-2",attrs:{type:"submit",color:"primary","data-test":"save-config-submit-btn",disabled:!!e.error},on:{click:function(t){return t.preventDefault(),e.success.apply(null,arguments)}}},[e._v("\n Ok\n ")])],1)],1)])],1)},J=[];const X={props:{configKey:String,value:Boolean},data(){return{configName:"",configs:[],headers:[{text:"Configuration",value:"config"},{text:"Actions",value:"actions",align:"end",sortable:!1}],search:null,selectedItem:null}},computed:{error:function(){return""===this.configName?"Config must have a name":null},show:{get(){return this.value},set(e){this.$emit("input",e)}}},mounted(){let e=-1;(new m).list_configs(this.configKey).then((t=>{this.configs=t.map((t=>(e+=1,{configId:e,config:t})))})).catch((e=>{this.$emit("warning",`Failed to connect to OpenC3. ${e}`)}))},methods:{itemSelected:function(e){e.value?(this.selectedItem=e.item,this.configName=e.item.config):(this.selectedItem=null,this.configName="")},success:function(){this.$emit("success",this.configName),this.show=!1,this.search=null,this.selectedItem=null,this.configName=""},cancel:function(){this.show=!1,this.search=null,this.selectedItem=null,this.configName=""},deleteConfig:function(e){this.$dialog.confirm(`Are you sure you want to delete: ${e.config}`,{okText:"Delete",cancelText:"Cancel"}).then((t=>{this.configName===e.config&&(this.selectedItem=null,this.configName=""),this.configs.splice(this.configs.indexOf(e.config),1),(new m).delete_config(this.configKey,e.config)})).catch((t=>{t&&this.$emit("warning",`Failed to delete config ${e.config} Error: ${t}`)}))}}},Z=X;var Q=(0,b.A)(Z,Y,J,!1,null,null,null);const ee=Q.exports;function te(){var e="/openc3/plugins/packages/openc3-cosmos-tool-packetviewer/src/tools/PacketViewer/PacketViewer.vue",t="223b8bc6bfbaa45463798d41381b71403b545db7",n=new Function("return this")(),i="__coverage__",a={path:"/openc3/plugins/packages/openc3-cosmos-tool-packetviewer/src/tools/PacketViewer/PacketViewer.vue",statementMap:{0:{start:{line:11,column:30},end:{line:16,column:1}},1:{start:{line:28,column:4},end:{line:147,column:5}},2:{start:{line:52,column:16},end:{line:52,column:41}},3:{start:{line:62,column:16},end:{line:62,column:42}},4:{start:{line:69,column:16},end:{line:69,column:42}},5:{start:{line:76,column:16},end:{line:76,column:34}},6:{start:{line:77,column:16},end:{line:77,column:38}},7:{start:{line:91,column:16},end:{line:91,column:47}},8:{start:{line:99,column:16},end:{line:99,column:47}},9:{start:{line:109,column:16},end:{line:109,column:45}},10:{start:{line:116,column:16},end:{line:116,column:44}},11:{start:{line:123,column:16},end:{line:123,column:44}},12:{start:{line:130,column:16},end:{line:130,column:38}},13:{start:{line:151,column:6},end:{line:151,column:48}},14:{start:{line:154,column:6},end:{line:154,column:48}},15:{start:{line:157,column:6},end:{line:157,column:48}},16:{start:{line:161,column:6},end:{line:161,column:31}},17:{start:{line:162,column:6},end:{line:162,column:48}},18:{start:{line:165,column:6},end:{line:165,column:48}},19:{start:{line:168,column:6},end:{line:168,column:48}},20:{start:{line:173,column:6},end:{line:182,column:7}},21:{start:{line:186,column:4},end:{line:186,column:30}},22:{start:{line:189,column:4},end:{line:217,column:5}},23:{start:{line:190,column:6},end:{line:190,column:60}},24:{start:{line:191,column:6},end:{line:191,column:30}},25:{start:{line:194,column:19},end:{line:194,column:73}},26:{start:{line:195,column:6},end:{line:195,column:30}},27:{start:{line:197,column:6},end:{line:215,column:7}},28:{start:{line:199,column:8},end:{line:202,column:10}},29:{start:{line:204,column:8},end:{line:214,column:9}},30:{start:{line:206,column:10},end:{line:212,column:12}},31:{start:{line:213,column:10},end:{line:213,column:27}},32:{start:{line:216,column:6},end:{line:216,column:30}},33:{start:{line:220,column:4},end:{line:223,column:5}},34:{start:{line:221,column:6},end:{line:221,column:33}},35:{start:{line:222,column:6},end:{line:222,column:25}},36:{start:{line:227,column:6},end:{line:229,column:8}},37:{start:{line:228,column:8},end:{line:228,column:48}},38:{start:{line:230,column:6},end:{line:234,column:10}},39:{start:{line:233,column:10},end:{line:233,column:37}},40:{start:{line:236,column:6},end:{line:236,column:40}},41:{start:{line:237,column:6},end:{line:237,column:40}},42:{start:{line:238,column:6},end:{line:250,column:7}},43:{start:{line:242,column:8},end:{line:242,column:50}},44:{start:{line:243,column:8},end:{line:249,column:10}},45:{start:{line:251,column:6},end:{line:251,column:30}},46:{start:{line:254,column:6},end:{line:257,column:7}},47:{start:{line:255,column:8},end:{line:255,column:35}},48:{start:{line:256,column:8},end:{line:256,column:27}},49:{start:{line:258,column:6},end:{line:260,column:7}},50:{start:{line:259,column:8},end:{line:259,column:22}},51:{start:{line:261,column:6},end:{line:311,column:30}},52:{start:{line:262,column:8},end:{line:310,column:12}},53:{start:{line:271,column:12},end:{line:302,column:13}},54:{start:{line:272,column:14},end:{line:272,column:31}},55:{start:{line:273,column:28},end:{line:273,column:30}},56:{start:{line:274,column:26},end:{line:274,column:28}},57:{start:{line:275,column:14},end:{line:296,column:16}},58:{start:{line:276,column:16},end:{line:278,column:17}},59:{start:{line:277,column:18},end:{line:277,column:24}},60:{start:{line:279,column:16},end:{line:295,column:17}},61:{start:{line:280,column:18},end:{line:286,column:20}},62:{start:{line:288,column:18},end:{line:294,column:20}},63:{start:{line:297,column:14},end:{line:301,column:15}},64:{start:{line:298,column:16},end:{line:298,column:49}},65:{start:{line:300,column:16},end:{line:300,column:49}},66:{start:{line:309,column:12},end:{line:309,column:30}},67:{start:{line:314,column:6},end:{line:314,column:26}},68:{start:{line:315,column:6},end:{line:315,column:26}},69:{start:{line:316,column:6},end:{line:316,column:33}},70:{start:{line:317,column:6},end:{line:317,column:26}},71:{start:{line:318,column:6},end:{line:318,column:30}},72:{start:{line:319,column:6},end:{line:319,column:30}},73:{start:{line:320,column:6},end:{line:320,column:35}},74:{start:{line:321,column:6},end:{line:321,column:28}},75:{start:{line:324,column:6},end:{line:324,column:37}},76:{start:{line:325,column:6},end:{line:325,column:37}},77:{start:{line:326,column:6},end:{line:326,column:59}},78:{start:{line:327,column:6},end:{line:327,column:47}},79:{start:{line:328,column:6},end:{line:328,column:52}},80:{start:{line:329,column:6},end:{line:329,column:55}},81:{start:{line:330,column:6},end:{line:330,column:52}},82:{start:{line:331,column:6},end:{line:331,column:55}},83:{start:{line:332,column:6},end:{line:332,column:55}},84:{start:{line:333,column:6},end:{line:333,column:70}},85:{start:{line:334,column:6},end:{line:334,column:51}},86:{start:{line:337,column:6},end:{line:358,column:8}},87:{start:{line:338,column:8},end:{line:338,column:32}},88:{start:{line:339,column:8},end:{line:339,column:38}},89:{start:{line:340,column:8},end:{line:357,column:9}},90:{start:{line:346,column:10},end:{line:355,column:12}},91:{start:{line:356,column:10},end:{line:356,column:27}},92:{start:{line:361,column:6},end:{line:361,column:51}}},fnMap:{0:{name:"(anonymous_0)",decl:{start:{line:27,column:2},end:{line:27,column:3}},loc:{start:{line:27,column:9},end:{line:148,column:3}},line:27},1:{name:"(anonymous_1)",decl:{start:{line:51,column:23},end:{line:51,column:24}},loc:{start:{line:51,column:29},end:{line:53,column:15}},line:51},2:{name:"(anonymous_2)",decl:{start:{line:61,column:23},end:{line:61,column:24}},loc:{start:{line:61,column:29},end:{line:63,column:15}},line:61},3:{name:"(anonymous_3)",decl:{start:{line:68,column:23},end:{line:68,column:24}},loc:{start:{line:68,column:29},end:{line:70,column:15}},line:68},4:{name:"(anonymous_4)",decl:{start:{line:75,column:23},end:{line:75,column:24}},loc:{start:{line:75,column:29},end:{line:78,column:15}},line:75},5:{name:"(anonymous_5)",decl:{start:{line:90,column:23},end:{line:90,column:24}},loc:{start:{line:90,column:33},end:{line:92,column:15}},line:90},6:{name:"(anonymous_6)",decl:{start:{line:98,column:23},end:{line:98,column:24}},loc:{start:{line:98,column:33},end:{line:100,column:15}},line:98},7:{name:"(anonymous_7)",decl:{start:{line:108,column:23},end:{line:108,column:24}},loc:{start:{line:108,column:29},end:{line:110,column:15}},line:108},8:{name:"(anonymous_8)",decl:{start:{line:115,column:23},end:{line:115,column:24}},loc:{start:{line:115,column:29},end:{line:117,column:15}},line:115},9:{name:"(anonymous_9)",decl:{start:{line:122,column:23},end:{line:122,column:24}},loc:{start:{line:122,column:29},end:{line:124,column:15}},line:122},10:{name:"(anonymous_10)",decl:{start:{line:129,column:23},end:{line:129,column:24}},loc:{start:{line:129,column:29},end:{line:131,column:15}},line:129},11:{name:"(anonymous_11)",decl:{start:{line:150,column:17},end:{line:150,column:18}},loc:{start:{line:150,column:29},end:{line:152,column:5}},line:150},12:{name:"(anonymous_12)",decl:{start:{line:153,column:17},end:{line:153,column:18}},loc:{start:{line:153,column:29},end:{line:155,column:5}},line:153},13:{name:"(anonymous_13)",decl:{start:{line:156,column:15},end:{line:156,column:16}},loc:{start:{line:156,column:27},end:{line:158,column:5}},line:156},14:{name:"(anonymous_14)",decl:{start:{line:160,column:21},end:{line:160,column:22}},loc:{start:{line:160,column:33},end:{line:163,column:5}},line:160},15:{name:"(anonymous_15)",decl:{start:{line:164,column:16},end:{line:164,column:17}},loc:{start:{line:164,column:28},end:{line:166,column:5}},line:164},16:{name:"(anonymous_16)",decl:{start:{line:167,column:18},end:{line:167,column:19}},loc:{start:{line:167,column:30},end:{line:169,column:5}},line:167},17:{name:"(anonymous_17)",decl:{start:{line:172,column:19},end:{line:172,column:20}},loc:{start:{line:172,column:31},end:{line:183,column:5}},line:172},18:{name:"(anonymous_18)",decl:{start:{line:185,column:2},end:{line:185,column:3}},loc:{start:{line:185,column:12},end:{line:218,column:3}},line:185},19:{name:"(anonymous_19)",decl:{start:{line:219,column:2},end:{line:219,column:3}},loc:{start:{line:219,column:18},end:{line:224,column:3}},line:219},20:{name:"(anonymous_20)",decl:{start:{line:226,column:4},end:{line:226,column:5}},loc:{start:{line:226,column:25},end:{line:252,column:5}},line:226},21:{name:"(anonymous_21)",decl:{start:{line:227,column:49},end:{line:227,column:50}},loc:{start:{line:227,column:61},end:{line:229,column:7}},line:227},22:{name:"(anonymous_22)",decl:{start:{line:232,column:14},end:{line:232,column:15}},loc:{start:{line:232,column:27},end:{line:234,column:9}},line:232},23:{name:"(anonymous_23)",decl:{start:{line:253,column:4},end:{line:253,column:5}},loc:{start:{line:253,column:33},end:{line:312,column:5}},line:253},24:{name:"(anonymous_24)",decl:{start:{line:261,column:33},end:{line:261,column:34}},loc:{start:{line:261,column:39},end:{line:311,column:7}},line:261},25:{name:"(anonymous_25)",decl:{start:{line:269,column:16},end:{line:269,column:17}},loc:{start:{line:269,column:26},end:{line:303,column:11}},line:269},26:{name:"(anonymous_26)",decl:{start:{line:275,column:27},end:{line:275,column:28}},loc:{start:{line:275,column:38},end:{line:296,column:15}},line:275},27:{name:"(anonymous_27)",decl:{start:{line:307,column:17},end:{line:307,column:18}},loc:{start:{line:307,column:28},end:{line:310,column:11}},line:307},28:{name:"(anonymous_28)",decl:{start:{line:313,column:17},end:{line:313,column:18}},loc:{start:{line:313,column:29},end:{line:322,column:5}},line:313},29:{name:"(anonymous_29)",decl:{start:{line:323,column:17},end:{line:323,column:18}},loc:{start:{line:323,column:35},end:{line:335,column:5}},line:323},30:{name:"(anonymous_30)",decl:{start:{line:336,column:23},end:{line:336,column:24}},loc:{start:{line:336,column:55},end:{line:359,column:5}},line:336},31:{name:"(anonymous_31)",decl:{start:{line:337,column:40},end:{line:337,column:41}},loc:{start:{line:337,column:58},end:{line:358,column:7}},line:337},32:{name:"(anonymous_32)",decl:{start:{line:360,column:23},end:{line:360,column:24}},loc:{start:{line:360,column:39},end:{line:362,column:5}},line:360}},branchMap:{0:{loc:{start:{line:189,column:4},end:{line:217,column:5}},type:"if",locations:[{start:{line:189,column:4},end:{line:217,column:5}},{start:{line:192,column:11},end:{line:217,column:5}}],line:189},1:{loc:{start:{line:189,column:8},end:{line:189,column:53}},type:"binary-expr",locations:[{start:{line:189,column:8},end:{line:189,column:25}},{start:{line:189,column:29},end:{line:189,column:53}}],line:189},2:{loc:{start:{line:197,column:6},end:{line:215,column:7}},type:"if",locations:[{start:{line:197,column:6},end:{line:215,column:7}},{start:{line:203,column:13},end:{line:215,column:7}}],line:197},3:{loc:{start:{line:197,column:10},end:{line:197,column:64}},type:"binary-expr",locations:[{start:{line:197,column:10},end:{line:197,column:35}},{start:{line:197,column:39},end:{line:197,column:64}}],line:197},4:{loc:{start:{line:204,column:8},end:{line:214,column:9}},type:"if",locations:[{start:{line:204,column:8},end:{line:214,column:9}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:204},5:{loc:{start:{line:204,column:12},end:{line:204,column:42}},type:"binary-expr",locations:[{start:{line:204,column:12},end:{line:204,column:25}},{start:{line:204,column:29},end:{line:204,column:42}}],line:204},6:{loc:{start:{line:220,column:4},end:{line:223,column:5}},type:"if",locations:[{start:{line:220,column:4},end:{line:223,column:5}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:220},7:{loc:{start:{line:238,column:6},end:{line:250,column:7}},type:"if",locations:[{start:{line:238,column:6},end:{line:250,column:7}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:238},8:{loc:{start:{line:239,column:8},end:{line:240,column:54}},type:"binary-expr",locations:[{start:{line:239,column:8},end:{line:239,column:54}},{start:{line:240,column:8},end:{line:240,column:54}}],line:239},9:{loc:{start:{line:254,column:6},end:{line:257,column:7}},type:"if",locations:[{start:{line:254,column:6},end:{line:257,column:7}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:254},10:{loc:{start:{line:258,column:6},end:{line:260,column:7}},type:"if",locations:[{start:{line:258,column:6},end:{line:260,column:7}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:258},11:{loc:{start:{line:271,column:12},end:{line:302,column:13}},type:"if",locations:[{start:{line:271,column:12},end:{line:302,column:13}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:271},12:{loc:{start:{line:276,column:16},end:{line:278,column:17}},type:"if",locations:[{start:{line:276,column:16},end:{line:278,column:17}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:276},13:{loc:{start:{line:276,column:20},end:{line:276,column:77}},type:"binary-expr",locations:[{start:{line:276,column:20},end:{line:276,column:37}},{start:{line:276,column:41},end:{line:276,column:77}}],line:276},14:{loc:{start:{line:279,column:16},end:{line:295,column:17}},type:"if",locations:[{start:{line:279,column:16},end:{line:295,column:17}},{start:{line:287,column:23},end:{line:295,column:17}}],line:279},15:{loc:{start:{line:297,column:14},end:{line:301,column:15}},type:"if",locations:[{start:{line:297,column:14},end:{line:301,column:15}},{start:{line:299,column:21},end:{line:301,column:15}}],line:297},16:{loc:{start:{line:326,column:29},end:{line:326,column:59}},type:"binary-expr",locations:[{start:{line:326,column:29},end:{line:326,column:51}},{start:{line:326,column:55},end:{line:326,column:59}}],line:326},17:{loc:{start:{line:327,column:24},end:{line:327,column:47}},type:"binary-expr",locations:[{start:{line:327,column:24},end:{line:327,column:41}},{start:{line:327,column:45},end:{line:327,column:47}}],line:327},18:{loc:{start:{line:328,column:25},end:{line:328,column:52}},type:"binary-expr",locations:[{start:{line:328,column:25},end:{line:328,column:43}},{start:{line:328,column:47},end:{line:328,column:52}}],line:328},19:{loc:{start:{line:330,column:25},end:{line:330,column:52}},type:"binary-expr",locations:[{start:{line:330,column:25},end:{line:330,column:43}},{start:{line:330,column:47},end:{line:330,column:52}}],line:330},20:{loc:{start:{line:332,column:23},end:{line:332,column:55}},type:"binary-expr",locations:[{start:{line:332,column:23},end:{line:332,column:39}},{start:{line:332,column:43},end:{line:332,column:55}}],line:332},21:{loc:{start:{line:334,column:26},end:{line:334,column:51}},type:"binary-expr",locations:[{start:{line:334,column:26},end:{line:334,column:45}},{start:{line:334,column:49},end:{line:334,column:51}}],line:334},22:{loc:{start:{line:336,column:39},end:{line:336,column:53}},type:"default-arg",locations:[{start:{line:336,column:48},end:{line:336,column:53}}],line:336},23:{loc:{start:{line:340,column:8},end:{line:357,column:9}},type:"if",locations:[{start:{line:340,column:8},end:{line:357,column:9}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:340},24:{loc:{start:{line:341,column:10},end:{line:343,column:43}},type:"binary-expr",locations:[{start:{line:341,column:10},end:{line:341,column:53}},{start:{line:342,column:10},end:{line:342,column:53}},{start:{line:343,column:10},end:{line:343,column:43}}],line:341}},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},f:{0:0,1:0,2:0,3:0,4:0,5:0,6:0,7:0,8:0,9:0,10:0,11:0,12:0,13:0,14:0,15:0,16:0,17:0,18:0,19:0,20:0,21:0,22:0,23:0,24:0,25:0,26:0,27:0,28:0,29:0,30:0,31:0,32:0},b:{0:[0,0],1:[0,0],2:[0,0],3:[0,0],4:[0,0],5:[0,0],6:[0,0],7:[0,0],8:[0,0],9:[0,0],10:[0,0],11:[0,0],12:[0,0],13:[0,0],14:[0,0],15:[0,0],16:[0,0],17:[0,0],18:[0,0],19:[0,0],20:[0,0],21:[0,0],22:[0],23:[0,0],24:[0,0,0]},inputSourceMap:{version:3,sources:["PacketViewer.vue"],names:[],mappings:";AA+IA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;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;;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;;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",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 2023, 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>\n <div 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 </div>\n <v-card-title>\n Items\n <v-spacer />\n <v-text-field\n v-model=\"search\"\n label=\"Search\"\n prepend-inner-icon=\"mdi-magnify\"\n clearable\n outlined\n dense\n single-line\n hide-details\n class=\"search\"\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 multi-sort\n dense\n >\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\n href=\"http://localhost:2900/tools/staticdocs/docs/configuration/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 (seconds)\"\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 \x3c!-- Note we're using v-if here so it gets re-created each time and refreshes the list --\x3e\n <open-config-dialog\n v-if=\"showOpenConfig\"\n v-model=\"showOpenConfig\"\n :configKey=\"configKey\"\n @success=\"openConfiguration\"\n />\n \x3c!-- Note we're using v-if here so it gets re-created each time and refreshes the list --\x3e\n <save-config-dialog\n v-if=\"showSaveConfig\"\n v-model=\"showSaveConfig\"\n :configKey=\"configKey\"\n @success=\"saveConfiguration\"\n />\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'\nimport Config from '@openc3/tool-common/src/components/config/Config'\nimport OpenConfigDialog from '@openc3/tool-common/src/components/config/OpenConfigDialog'\nimport SaveConfigDialog from '@openc3/tool-common/src/components/config/SaveConfigDialog'\n\n// Used in the menu and openConfiguration lookup\nconst valueTypeToRadioGroup = {\n WITH_UNITS: 'Formatted Items with Units',\n FORMATTED: 'Formatted Items',\n CONVERTED: 'Converted Items',\n RAW: 'Raw Items',\n}\n\nexport default {\n components: {\n TargetPacketItemChooser,\n ValueWidget,\n TopBar,\n OpenConfigDialog,\n SaveConfigDialog,\n },\n mixins: [Config],\n data() {\n return {\n title: 'Packet Viewer',\n configKey: 'packet_viewer',\n showOpenConfig: false,\n showSaveConfig: false,\n search: '',\n data: [],\n headers: [\n { text: 'Name', value: 'name', align: 'end' },\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 icon: 'mdi-cog',\n command: () => {\n this.optionsDialog = true\n },\n },\n {\n divider: true,\n },\n {\n label: 'Open Configuration',\n icon: 'mdi-folder-open',\n command: () => {\n this.showOpenConfig = true\n },\n },\n {\n label: 'Save Configuration',\n icon: 'mdi-content-save',\n command: () => {\n this.showSaveConfig = true\n },\n },\n {\n label: 'Reset Configuration',\n icon: 'mdi-monitor-shimmer',\n command: () => {\n this.resetConfig()\n this.resetConfigBase()\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: valueTypeToRadioGroup['WITH_UNITS'],\n radio: true,\n command: () => {\n this.valueType = 'WITH_UNITS'\n },\n },\n {\n label: valueTypeToRadioGroup['FORMATTED'],\n radio: true,\n command: () => {\n this.valueType = 'FORMATTED'\n },\n },\n {\n label: valueTypeToRadioGroup['CONVERTED'],\n radio: true,\n command: () => {\n this.valueType = 'CONVERTED'\n },\n },\n {\n label: valueTypeToRadioGroup['RAW'],\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 showIgnored: function () {\n this.saveDefaultConfig(this.currentConfig)\n },\n derivedLast: function () {\n this.saveDefaultConfig(this.currentConfig)\n },\n valueType: function () {\n this.saveDefaultConfig(this.currentConfig)\n },\n // Create a watcher on refreshInterval so we can change the updater\n refreshInterval: function () {\n this.changeUpdater(false)\n this.saveDefaultConfig(this.currentConfig)\n },\n staleLimit: function () {\n this.saveDefaultConfig(this.currentConfig)\n },\n itemsPerPage: function () {\n this.saveDefaultConfig(this.currentConfig)\n },\n },\n computed: {\n currentConfig: function () {\n return {\n target: this.targetName,\n packet: this.packetName,\n refreshInterval: this.refreshInterval,\n staleLimit: this.staleLimit,\n showIgnored: this.showIgnored,\n derivedLast: this.derivedLast,\n valueType: this.valueType,\n itemsPerPage: this.itemsPerPage,\n }\n },\n },\n created() {\n this.api = new OpenC3Api()\n\n // Called like /tools/packetviewer?config=temps\n if (this.$route.query && this.$route.query.config) {\n this.openConfiguration(this.$route.query.config, true) // routed\n this.changeUpdater(true)\n } else {\n // Merge default config into the currentConfig in case default isn't yet defined\n let config = { ...this.currentConfig, ...this.loadDefaultConfig() }\n this.applyConfig(config)\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 // Initial position of chooser should be correct so call packetChanged for it\n this.packetChanged({\n targetName: this.$route.params.target.toUpperCase(),\n packetName: this.$route.params.packet.toUpperCase(),\n })\n } else {\n if (config.target && config.packet) {\n // Chooser probably won't be at the right packet so need to refresh\n this.$router.push({\n name: 'PackerViewer',\n params: {\n target: config.target,\n packet: config.packet,\n },\n })\n this.$router.go()\n }\n }\n this.changeUpdater(true)\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 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.saveDefaultConfig(this.currentConfig)\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 changeUpdater(clearExisting) {\n if (this.updater != null) {\n clearInterval(this.updater)\n this.updater = null\n }\n if (clearExisting) {\n this.rows = []\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 // Catch errors but just log to the console\n // We don't clear the updater because errors can happen on upgrade\n // and we want to continue updating once the new plugin comes online\n .catch((error) => {\n // eslint-disable-next-line\n console.log(error)\n })\n }, this.refreshInterval)\n },\n resetConfig: function () {\n this.targetName = ''\n this.packetName = ''\n this.refreshInterval = 1000\n this.staleLimit = 30\n this.showIgnored = false\n this.derivedLast = false\n this.valueType = 'WITH_UNITS'\n this.itemsPerPage = 20\n },\n applyConfig: function (config) {\n this.targetName = config.target\n this.packetName = config.packet\n this.refreshInterval = config.refreshInterval || 1000\n this.staleLimit = config.staleLimit || 30\n this.showIgnored = config.showIgnored || false\n this.menus[1].items[0].checked = this.showIgnored\n this.derivedLast = config.derivedLast || false\n this.menus[1].items[1].checked = this.derivedLast\n this.valueType = config.valueType || 'WITH_UNITS'\n this.menus[1].radioGroup = valueTypeToRadioGroup[this.valueType]\n this.itemsPerPage = config.itemsPerPage || 20\n },\n openConfiguration: function (name, routed = false) {\n this.openConfigBase(name, routed, async (config) => {\n this.applyConfig(config)\n this.saveDefaultConfig(config)\n if (\n this.$route.params.target !== config.target ||\n this.$route.params.packet !== config.packet ||\n this.$route.query.config !== name\n ) {\n // Need full refresh since chooser won't be on the right packet\n this.$router.push({\n name: 'PackerViewer',\n params: {\n target: config.target,\n packet: config.packet,\n },\n query: {\n config: name,\n },\n })\n this.$router.go()\n }\n })\n },\n saveConfiguration: function (name) {\n this.saveConfigBase(name, this.currentConfig)\n },\n },\n}\n<\/script>\n"]},_coverageSchema:"1a1c01bbd47fc00a2c39e90264f33305004495a9",hash:"223b8bc6bfbaa45463798d41381b71403b545db7"},s=n[i]||(n[i]={});s[e]&&s[e].hash===t||(s[e]=a);var l=s[e];return te=function(){return l},l}te();const ne=(te().s[0]++,{WITH_UNITS:"Formatted Items with Units",FORMATTED:"Formatted Items",CONVERTED:"Converted Items",RAW:"Raw Items"}),ie={components:{TargetPacketItemChooser:R,ValueWidget:D,TopBar:H,OpenConfigDialog:q,SaveConfigDialog:ee},mixins:[z],data(){return te().f[0]++,te().s[1]++,{title:"Packet Viewer",configKey:"packet_viewer",showOpenConfig:!1,showSaveConfig:!1,search:"",data:[],headers:[{text:"Name",value:"name",align:"end"},{text:"Value",value:"value"}],optionsDialog:!1,showIgnored:!1,derivedLast:!1,ignoredItems:[],derivedItems:[],menus:[{label:"File",items:[{label:"Options",icon:"mdi-cog",command:()=>{te().f[1]++,te().s[2]++,this.optionsDialog=!0}},{divider:!0},{label:"Open Configuration",icon:"mdi-folder-open",command:()=>{te().f[2]++,te().s[3]++,this.showOpenConfig=!0}},{label:"Save Configuration",icon:"mdi-content-save",command:()=>{te().f[3]++,te().s[4]++,this.showSaveConfig=!0}},{label:"Reset Configuration",icon:"mdi-monitor-shimmer",command:()=>{te().f[4]++,te().s[5]++,this.resetConfig(),te().s[6]++,this.resetConfigBase()}}]},{label:"View",radioGroup:"Formatted Items with Units",items:[{label:"Show Ignored Items",checkbox:!0,checked:!1,command:e=>{te().f[5]++,te().s[7]++,this.showIgnored=e.checked}},{label:"Display DERIVED Last",checkbox:!0,checked:!1,command:e=>{te().f[6]++,te().s[8]++,this.derivedLast=e.checked}},{divider:!0},{label:ne["WITH_UNITS"],radio:!0,command:()=>{te().f[7]++,te().s[9]++,this.valueType="WITH_UNITS"}},{label:ne["FORMATTED"],radio:!0,command:()=>{te().f[8]++,te().s[10]++,this.valueType="FORMATTED"}},{label:ne["CONVERTED"],radio:!0,command:()=>{te().f[9]++,te().s[11]++,this.valueType="CONVERTED"}},{label:ne["RAW"],radio:!0,command:()=>{te().f[10]++,te().s[12]++,this.valueType="RAW"}}]}],updater:null,counter:0,targetName:"",packetName:"",valueType:"WITH_UNITS",refreshInterval:1e3,staleLimit:30,rows:[],menuItems:[],itemsPerPage:20,api:null}},watch:{showIgnored:function(){te().f[11]++,te().s[13]++,this.saveDefaultConfig(this.currentConfig)},derivedLast:function(){te().f[12]++,te().s[14]++,this.saveDefaultConfig(this.currentConfig)},valueType:function(){te().f[13]++,te().s[15]++,this.saveDefaultConfig(this.currentConfig)},refreshInterval:function(){te().f[14]++,te().s[16]++,this.changeUpdater(!1),te().s[17]++,this.saveDefaultConfig(this.currentConfig)},staleLimit:function(){te().f[15]++,te().s[18]++,this.saveDefaultConfig(this.currentConfig)},itemsPerPage:function(){te().f[16]++,te().s[19]++,this.saveDefaultConfig(this.currentConfig)}},computed:{currentConfig:function(){return te().f[17]++,te().s[20]++,{target:this.targetName,packet:this.packetName,refreshInterval:this.refreshInterval,staleLimit:this.staleLimit,showIgnored:this.showIgnored,derivedLast:this.derivedLast,valueType:this.valueType,itemsPerPage:this.itemsPerPage}}},created(){if(te().f[18]++,te().s[21]++,this.api=new m,te().s[22]++,te().b[1][0]++,this.$route.query&&(te().b[1][1]++,this.$route.query.config))te().b[0][0]++,te().s[23]++,this.openConfiguration(this.$route.query.config,!0),te().s[24]++,this.changeUpdater(!0);else{te().b[0][1]++;let e=(te().s[25]++,{...this.currentConfig,...this.loadDefaultConfig()});te().s[26]++,this.applyConfig(e),te().s[27]++,te().b[3][0]++,this.$route.params.target&&(te().b[3][1]++,this.$route.params.packet)?(te().b[2][0]++,te().s[28]++,this.packetChanged({targetName:this.$route.params.target.toUpperCase(),packetName:this.$route.params.packet.toUpperCase()})):(te().b[2][1]++,te().s[29]++,te().b[5][0]++,e.target&&(te().b[5][1]++,e.packet)?(te().b[4][0]++,te().s[30]++,this.$router.push({name:"PackerViewer",params:{target:e.target,packet:e.packet}}),te().s[31]++,this.$router.go()):te().b[4][1]++),te().s[32]++,this.changeUpdater(!0)}},beforeDestroy(){te().f[19]++,te().s[33]++,null!=this.updater?(te().b[6][0]++,te().s[34]++,clearInterval(this.updater),te().s[35]++,this.updater=null):te().b[6][1]++},methods:{packetChanged(e){te().f[20]++,te().s[36]++,this.api.get_target(e.targetName).then((e=>{te().f[21]++,te().s[37]++,this.ignoredItems=e.ignored_items})),te().s[38]++,this.api.get_packet_derived_items(e.targetName,e.packetName).then((e=>{te().f[22]++,te().s[39]++,this.derivedItems=e})),te().s[40]++,this.targetName=e.targetName,te().s[41]++,this.packetName=e.packetName,te().s[42]++,te().b[8][0]++,this.$route.params.target!==e.targetName||(te().b[8][1]++,this.$route.params.packet!==e.packetName)?(te().b[7][0]++,te().s[43]++,this.saveDefaultConfig(this.currentConfig),te().s[44]++,this.$router.push({name:"PackerViewer",params:{target:this.targetName,packet:this.packetName}})):te().b[7][1]++,te().s[45]++,this.changeUpdater(!0)},changeUpdater(e){te().f[23]++,te().s[46]++,null!=this.updater?(te().b[9][0]++,te().s[47]++,clearInterval(this.updater),te().s[48]++,this.updater=null):te().b[9][1]++,te().s[49]++,e?(te().b[10][0]++,te().s[50]++,this.rows=[]):te().b[10][1]++,te().s[51]++,this.updater=setInterval((()=>{te().f[24]++,te().s[52]++,this.api.get_tlm_packet(this.targetName,this.packetName,this.valueType,this.staleLimit).then((e=>{if(te().f[25]++,te().s[53]++,null!=e){te().b[11][0]++,te().s[54]++,this.counter+=1;let t=(te().s[55]++,[]),n=(te().s[56]++,[]);te().s[57]++,e.forEach((e=>{if(te().f[26]++,te().s[58]++,te().b[13][0]++,!this.showIgnored&&(te().b[13][1]++,this.ignoredItems.includes(e[0])))return te().b[12][0]++,void te().s[59]++;te().b[12][1]++,te().s[60]++,this.derivedItems.includes(e[0])?(te().b[14][0]++,te().s[61]++,t.push({name:e[0],value:e[1],limitsState:e[2],derived:!0,counter:this.counter})):(te().b[14][1]++,te().s[62]++,n.push({name:e[0],value:e[1],limitsState:e[2],derived:!1,counter:this.counter}))})),te().s[63]++,this.derivedLast?(te().b[15][0]++,te().s[64]++,this.rows=n.concat(t)):(te().b[15][1]++,te().s[65]++,this.rows=t.concat(n))}else te().b[11][1]++})).catch((e=>{te().f[27]++,te().s[66]++,console.log(e)}))}),this.refreshInterval)},resetConfig:function(){te().f[28]++,te().s[67]++,this.targetName="",te().s[68]++,this.packetName="",te().s[69]++,this.refreshInterval=1e3,te().s[70]++,this.staleLimit=30,te().s[71]++,this.showIgnored=!1,te().s[72]++,this.derivedLast=!1,te().s[73]++,this.valueType="WITH_UNITS",te().s[74]++,this.itemsPerPage=20},applyConfig:function(e){te().f[29]++,te().s[75]++,this.targetName=e.target,te().s[76]++,this.packetName=e.packet,te().s[77]++,this.refreshInterval=(te().b[16][0]++,e.refreshInterval||(te().b[16][1]++,1e3)),te().s[78]++,this.staleLimit=(te().b[17][0]++,e.staleLimit||(te().b[17][1]++,30)),te().s[79]++,this.showIgnored=(te().b[18][0]++,e.showIgnored||(te().b[18][1]++,!1)),te().s[80]++,this.menus[1].items[0].checked=this.showIgnored,te().s[81]++,this.derivedLast=(te().b[19][0]++,e.derivedLast||(te().b[19][1]++,!1)),te().s[82]++,this.menus[1].items[1].checked=this.derivedLast,te().s[83]++,this.valueType=(te().b[20][0]++,e.valueType||(te().b[20][1]++,"WITH_UNITS")),te().s[84]++,this.menus[1].radioGroup=ne[this.valueType],te().s[85]++,this.itemsPerPage=(te().b[21][0]++,e.itemsPerPage||(te().b[21][1]++,20))},openConfiguration:function(e,t=(te().b[22][0]++,!1)){te().f[30]++,te().s[86]++,this.openConfigBase(e,t,(async t=>{te().f[31]++,te().s[87]++,this.applyConfig(t),te().s[88]++,this.saveDefaultConfig(t),te().s[89]++,te().b[24][0]++,this.$route.params.target!==t.target||(te().b[24][1]++,this.$route.params.packet!==t.packet)||(te().b[24][2]++,this.$route.query.config!==e)?(te().b[23][0]++,te().s[90]++,this.$router.push({name:"PackerViewer",params:{target:t.target,packet:t.packet},query:{config:e}}),te().s[91]++,this.$router.go()):te().b[23][1]++}))},saveConfiguration:function(e){te().f[32]++,te().s[92]++,this.saveConfigBase(e,this.currentConfig)}}},ae=ie;var se=(0,b.A)(ae,a,s,!1,null,null,null);const le=se.exports},3076:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r});var i=n(6758),a=n.n(i),s=n(935),l=n.n(s),o=l()(a());o.push([e.id,".label[data-v-6659f972]{font-weight:700;text-transform:capitalize}[data-v-6659f972] .v-input--selection-controls{padding:0;margin:0}",""]);const r=o},9433:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r});var i=n(6758),a=n.n(i),s=n(935),l=n.n(s),o=l()(a());o.push([e.id,".button[data-v-36062eb2]{padding:4px}.select[data-v-36062eb2]{max-width:300px}.row+.row[data-v-36062eb2]{margin-top:0}",""]);const r=o},9808:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r});var i=n(6758),a=n.n(i),s=n(935),l=n.n(s),o=l()(a());o.push([e.id,".app-title[data-v-57d4fdd2]{font-size:2rem}.menu-button[data-v-57d4fdd2]{border-color:var(--color-border-interactive-muted)!important;background-color:var(--color-background-base-default)!important;padding-right:3px!important}span.v-btn__content span[data-v-57d4fdd2]{padding-right:5px}.myicon[data-v-57d4fdd2]{background-color:var(--color-background-surface-selected);border:1px solid currentColor;border-radius:3px;height:36px!important;width:36px!important}.v-list[data-v-57d4fdd2] .v-label{margin-left:5px}.v-list-item__icon[data-v-57d4fdd2]{margin-right:15px!important}.v-list-item__title[data-v-57d4fdd2]{color:#fff}",""]);const r=o},3200:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r});var i=n(6758),a=n.n(i),s=n(935),l=n.n(s),o=l()(a());o.push([e.id,".value-widget-container[data-v-f6adf1e0]{min-height:34px}.value-widget-container[data-v-f6adf1e0] .v-input__slot{background:rgba(var(--aging),var(--aging),var(--aging),1)!important}.value-widget-container[data-v-f6adf1e0] input{text-align:var(--text-align)!important}[data-v-f6adf1e0] .v-input__slot:has(.v-icon){padding-left:2px!important}.value-widget-container[data-v-f6adf1e0] .v-icon{margin-top:9px}.value[data-v-f6adf1e0] div{min-height:24px!important;display:flex!important;align-items:center!important}.openc3-green[data-v-f6adf1e0] input{color:#00c800}.openc3-yellow[data-v-f6adf1e0] input{color:#ffdc00}.openc3-red[data-v-f6adf1e0] input{color:#ff2d2d}.openc3-blue[data-v-f6adf1e0] input{color:#09f}.openc3-purple[data-v-f6adf1e0] input{color:#c800c8}.openc3-black[data-v-f6adf1e0] input{color:#000}.openc3-white[data-v-f6adf1e0] input{color:#fff}",""]);const r=o},1727:(e,t,n)=>{var i=n(3076);i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[e.id,i,""]]),i.locals&&(e.exports=i.locals);var a=n(4825).A;a("2d4e5d43",i,!0,{sourceMap:!1,shadowMode:!1})},6769:(e,t,n)=>{var i=n(9433);i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[e.id,i,""]]),i.locals&&(e.exports=i.locals);var a=n(4825).A;a("78fb16f3",i,!0,{sourceMap:!1,shadowMode:!1})},1e3:(e,t,n)=>{var i=n(9808);i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[e.id,i,""]]),i.locals&&(e.exports=i.locals);var a=n(4825).A;a("7de62207",i,!0,{sourceMap:!1,shadowMode:!1})},8087:(e,t,n)=>{var i=n(3200);i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[e.id,i,""]]),i.locals&&(e.exports=i.locals);var a=n(4825).A;a("01cd6850",i,!0,{sourceMap:!1,shadowMode:!1})}}]);
|
2
2
|
//# sourceMappingURL=134.js.map
|