openc3-cosmos-tool-packetviewer 5.19.0 → 5.20.0

Sign up to get free protection for your applications and to get access to all the features.
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: openc3-cosmos-tool-packetviewer
3
3
  version: !ruby/object:Gem::Version
4
- version: 5.19.0
4
+ version: 5.20.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ryan Melton
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2024-10-01 00:00:00.000000000 Z
12
+ date: 2024-10-30 00:00:00.000000000 Z
13
13
  dependencies: []
14
14
  description: " This plugin adds the OpenC3 COSMOS Packet Viewer tool\n"
15
15
  email:
@@ -24,12 +24,12 @@ files:
24
24
  - Rakefile
25
25
  - plugin.txt
26
26
  - tools/packetviewer/index.html
27
- - tools/packetviewer/js/166.js
28
- - tools/packetviewer/js/166.js.map
27
+ - tools/packetviewer/js/153.js
28
+ - tools/packetviewer/js/153.js.map
29
29
  - tools/packetviewer/js/272.js
30
30
  - tools/packetviewer/js/272.js.map
31
- - tools/packetviewer/js/768.js
32
- - tools/packetviewer/js/768.js.map
31
+ - tools/packetviewer/js/735.js
32
+ - tools/packetviewer/js/735.js.map
33
33
  - tools/packetviewer/js/app.js
34
34
  - tools/packetviewer/js/app.js.map
35
35
  homepage: https://github.com/OpenC3/cosmos
@@ -1,2 +0,0 @@
1
- (self["webpackChunk_openc3_cosmos_tool_packetviewer"]=self["webpackChunk_openc3_cosmos_tool_packetviewer"]||[]).push([[166],{8166:(e,t,n)=>{"use strict";function i(){var e="/openc3/plugins/packages/openc3-cosmos-tool-packetviewer/src/tools/PacketViewer/PacketViewer.vue",t="11f4afff95af24f9d39ea59c3ededd6520ce229d",n=new Function("return this")(),s="__coverage__",l={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:2319}},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:532}},9:{start:{line:8,column:571},end:{line:8,column:738}},10:{start:{line:8,column:844},end:{line:8,column:948}},11:{start:{line:8,column:936},end:{line:8,column:948}},12:{start:{line:8,column:948},end:{line:8,column:973}},13:{start:{line:8,column:1034},end:{line:8,column:1055}},14:{start:{line:8,column:1470},end:{line:8,column:1498}},15:{start:{line:8,column:1760},end:{line:8,column:1793}},16:{start:{line:8,column:2e3},end:{line:8,column:2022}},17:{start:{line:8,column:2252},end:{line:8,column:2274}},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:533}},line:8},6:{name:"(anonymous_6)",decl:{start:{line:8,column:560},end:{line:8,column:561}},loc:{start:{line:8,column:570},end:{line:8,column:739}},line:8},7:{name:"(anonymous_7)",decl:{start:{line:8,column:827},end:{line:8,column:828}},loc:{start:{line:8,column:843},end:{line:8,column:974}},line:8},8:{name:"(anonymous_8)",decl:{start:{line:8,column:1018},end:{line:8,column:1019}},loc:{start:{line:8,column:1033},end:{line:8,column:1056}},line:8},9:{name:"(anonymous_9)",decl:{start:{line:8,column:1453},end:{line:8,column:1454}},loc:{start:{line:8,column:1469},end:{line:8,column:1499}},line:8},10:{name:"(anonymous_10)",decl:{start:{line:8,column:1743},end:{line:8,column:1744}},loc:{start:{line:8,column:1759},end:{line:8,column:1794}},line:8},11:{name:"(anonymous_11)",decl:{start:{line:8,column:1984},end:{line:8,column:1985}},loc:{start:{line:8,column:1999},end:{line:8,column:2023}},line:8},12:{name:"(anonymous_12)",decl:{start:{line:8,column:2236},end:{line:8,column:2237}},loc:{start:{line:8,column:2251},end:{line:8,column:2275}},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:844},end:{line:8,column:948}},type:"if",locations:[{start:{line:8,column:844},end:{line:8,column:948}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:8},2:{loc:{start:{line:8,column:847},end:{line:8,column:935}},type:"binary-expr",locations:[{start:{line:8,column:847},end:{line:8,column:874}},{start:{line:8,column:876},end:{line:8,column:935}}],line:8},3:{loc:{start:{line:8,column:1824},end:{line:8,column:2063}},type:"cond-expr",locations:[{start:{line:8,column:1845},end:{line:8,column:2054}},{start:{line:8,column:2055},end:{line:8,column:2063}}],line:8},4:{loc:{start:{line:8,column:2076},end:{line:8,column:2315}},type:"cond-expr",locations:[{start:{line:8,column:2097},end:{line:8,column:2306}},{start:{line:8,column:2307},end:{line:8,column:2315}}],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:"11f4afff95af24f9d39ea59c3ededd6520ce229d"},a=n[s]||(n[s]={});a[e]&&a[e].hash===t||(a[e]=l);var o=a[e];return i=function(){return o},o}n.r(t),n.d(t,{default:()=>pe}),i(),i().s[0]++;var s=function(){i().f[0]++;var e=(i().s[1]++,this),t=(i().s[2]++,e._self._c);return i().s[3]++,t("div",[t("top-bar",{attrs:{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%"]],"time-zone":e.timeZone}})]}},{key:"footer.prepend",fn:function(){return i().f[6]++,i().s[9]++,[e._v("* indicates a \n "),t("a",{attrs:{href:"/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)},l=(i().s[18]++,[]),a=(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(3816)),c=n(1649);const r=new c["default"],u=o.A.create({baseURL:location.origin,timeout:6e4,params:{}});u.interceptors.response.use((e=>e),(e=>{if(e.response){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 t=`HTTP ${e.response.status} - `;throw e.response?.statusText&&(t+=`${e.response.statusText} `),e.response?.config?.data&&(t+=`${e.response.config.data} `),e.response?.data?.message?t+=`${e.response.data.message}`:e.response?.data?.exception?t+=`${e.response.data.exception}`:e.response?.data?.error?.message?(e.response.data.error.class&&(t+=`${e.response.data.error.class} `),t+=`${e.response.data.error.message}`):t+=`${e.response?.data}`,r.$notify&&r.$notify.serious({title:"Network error",body:t}),e}throw e}));const m=u;class d{constructor(){(0,a.A)(this,"id",1)}async exec(e,t,n={},i={},s=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,i["manual"]=!0;const l=await m.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:s});return l.data.result}catch(l){let e=new Error;throw l.response?(e.name=l.response.data.error.data.class,e.message=l.response.data.error.data.message):l.request?(e.name="Request error",e.message="Request error, no response received"):e.name="Unknown error",e}}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,t=!1){return this.exec("get_all_tlm_names",[e],{hidden:t})}get_all_telemetry_names(e){return this.exec("get_all_telemetry_names",[e])}async get_tlm_packet(e,t,n,i=30){const s=await this.exec("get_tlm_packet",[e,t],{type:n,stale_time:i});if(null!=s){let e=s.length,t=null;for(let n=0;n<e;n++)t=this.decode_openc3_type(s[n][1]),null!==t&&(s[n][1]=t)}return s}get_packet_derived_items(e,t){return this.exec("get_packet_derived_items",[e,t])}get_tlm_buffer(e,t){return this.exec("get_tlm_buffer",[e,t])}async get_tlm_values(e,t=30,n=null){let i={stale_time:t};null!==n&&(i["cache_timeout"]=n);const s=await this.exec("get_tlm_values",[e],i,{},1e4);let l=s[0].length,a=null;for(let o=0;o<l;o++)a=this.decode_openc3_type(s[0][o]),null!==a&&(s[0][o]=a);return s}get_limits(e,t,n){return this.exec("get_limits",[e,t,n])}async tlm(e,t,n,i="CONVERTED"){let s=null;if(void 0===t)s=await this.exec("tlm",[e]);else if(void 0===n){if(!["RAW","CONVERTED","FORMATTED","WITH_UNITS"].includes(t)){let e=new Error;throw e.name="TypeError",e.message=`Invalid data type ${t}. Valid options are RAW, CONVERTED, FORMATTED, and WITH_UNITS.`,e}s=await this.exec("tlm",[e],{type:t})}else s=await this.exec("tlm",[e,t,n],{type:i});let l=this.decode_openc3_type(s);return null!==l&&(s=l),s}async inject_tlm(e,t,n=null,i="CONVERTED"){data=await this.exec("inject_tlm",[e,t,n],{type:i})}set_tlm(e,t,n,i){return this.exec("set_tlm",[e,t,n],{type:i})}override_tlm(e,t,n,i){return this.exec("override_tlm",[e,t,n],{type:i})}get_overrides(){return this.exec("get_overrides")}normalize_tlm(e,t,n,i){return this.exec("normalize_tlm",[e,t,n],{type:i})}get_all_cmds(e){return this.exec("get_all_cmds",[e])}get_all_commands(e){return this.exec("get_all_commands",[e])}get_all_cmd_names(e,t=!1){return this.exec("get_all_cmd_names",[e],{hidden:t})}get_all_command_names(e){return this.exec("get_all_command_names",[e])}get_cmd(e,t){return this.exec("get_cmd",[e,t])}get_command(e,t){return this.exec("get_command",[e,t])}get_cmd_cnts(e){return this.exec("get_cmd_cnts",[e])}get_cmd_value(e,t,n,i="CONVERTED"){return this.exec("get_cmd_value",[e,t,n,i])}get_cmd_buffer(e,t){return this.exec("get_cmd_buffer",[e,t])}_cmd(e,t,n,i,s){let l=null;for(let a in i)Object.prototype.hasOwnProperty.call(i,a)&&(l=this.encode_openc3_type(i[a]),null!==l&&(i[a]=l));return this.exec(e,[t,n,i],{},s)}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":"",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=[],p=(n(4293),n(8715),n(524)),v=n(5475),f=n(5179),g=n(2378);const _="yyyy-MM-dd",C="HH:mm:ss.SSS",y="HH:mm:ss",b=`${_} ${C}`,w={methods:{formatUtcToLocal(e,t){return t&&"local"!==t?(0,p.GP)(e,b):(0,p.GP)((0,v.Y)(e,e.getTimezoneOffset()),b)},formatDateTime(e,t){return t&&"local"!==t?(0,g.qD)(e,t,b):(0,p.GP)(e,b)},formatDate:function(e,t){return t&&"local"!==t?(0,g.qD)(e,this.timeZone,_):(0,p.GP)(e,_)},formatTime:function(e,t,n=C){return t&&"local"!==t?(0,g.qD)(e,this.timeZone,n):(0,p.GP)(e,n)},formatTimeHMS:function(e,t){return this.formatTime(e,t,y)},formatTimestamp(e,t){return this.formatDateTime((0,f.H)(e),t)},formatSeconds(e,t){return this.formatDateTime(new Date(1e3*e),t)},formatNanoseconds(e,t){return this.formatDateTime(new Date(parseInt(e)/1e6),t)}}};n(7534);class N{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 k={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,style:{}}},computed:{computedStyle(){return this.settings.forEach((e=>{const t=parseInt(e[0]);if(null!==this.widgetIndex){if(this.widgetIndex!==t)return;e=e.slice(1)}this.applySetting(this.style,e)})),void 0===this.style["width"]&&(this.style["flex"]="0 10 100%"),this.style}},created(){this.settings.forEach((e=>{"__SCREEN__"===e[0]&&(this.screen=e[1])})),this.settings=this.settings.map((e=>{const t=parseInt(e[0]);return isNaN(t)||null===this.widgetIndex?e:this.widgetIndex===t?e.slice(1):void 0})).filter((e=>void 0!==e))},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 s={line:this.line,lineNumber:this.lineNumber,keyword:e,parameters:this.parameters};for(let l=1;l<=t;l++)if(void 0===this.parameters[l-1])throw new N(s,`Not enough parameters for ${e}.`,i,"https://docs.openc3.com/docs/configuration");if(null!==n&&this.parameters.length>n)throw new N(s,`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 x={mixins:[k,w],props:{value:{default:null},limitsState:{type:String,default:null},counter:{default:null},formatString:null,timeZone:{type:String,default:"local"}},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),this.timeZone=this.screen.timeZone)}},destroyed(){null!==this.value&&null!==this.limitsState||this.screen&&this.screen.deleteItem(this.valueId)},methods:{getType(){let e="WITH_UNITS";return this.parameters[3]&&(e=this.parameters[3]),e},formatValue(e){if(e&&this.valueId&&(this.valueId.includes("PACKET_TIMEFORMATTED")||this.valueId.includes("RECEIVED_TIMEFORMATTED")))return e=e.replaceAll("/","-"),this.formatUtcToLocal(new Date(e),this.timeZone);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 I=function(){var e=this,t=e._self._c;return t("v-dialog",{attrs:{width:"600"},model:{value:e.show,callback:function(t){e.show=t},expression:"show"}},[t("v-card",[t("v-system-bar",[t("v-spacer"),e._v(" "),t("span",[e._v(" Details ")]),e._v(" "),t("v-spacer")],1),e._v(" "),t("v-card-title",[e._v("\n "+e._s(e.targetName)+" "+e._s(e.packetName)+" "+e._s(e.itemName)+"\n ")]),e._v(" "),t("v-card-subtitle",[e._v(e._s(e.details.description))]),e._v(" "),t("v-card-text",[t("v-container",{attrs:{fluid:""}},["tlm"===e.type?t("v-row",{attrs:{"no-gutters":""}},[t("v-col",{staticClass:"label",attrs:{cols:"3"}},[e._v("Item Values")]),e._v(" "),t("v-col"),e._v(" "),t("v-container",{staticClass:"ml-5 pa-0",attrs:{fluid:""}},[t("v-row",{attrs:{"no-gutters":""}},[t("v-col",{staticClass:"label",attrs:{cols:"4"}},[e._v("Raw Value")]),e._v(" "),t("v-col",[e._v(e._s(e.rawValue))])],1),e._v(" "),t("v-row",{attrs:{"no-gutters":""}},[t("v-col",{staticClass:"label",attrs:{cols:"4"}},[e._v("Converted Value")]),e._v(" "),t("v-col",[e._v(e._s(e.convertedValue))])],1),e._v(" "),t("v-row",{attrs:{"no-gutters":""}},[t("v-col",{staticClass:"label",attrs:{cols:"4"}},[e._v("Formatted Value")]),e._v(" "),t("v-col",[e._v(e._s(e.formattedValue))])],1),e._v(" "),t("v-row",{attrs:{"no-gutters":""}},[t("v-col",{staticClass:"label",attrs:{cols:"4"}},[e._v("With Units Value")]),e._v(" "),t("v-col",[e._v(e._s(e.unitsValue))])],1)],1)],1):e._e(),e._v(" "),t("v-row",{attrs:{"no-gutters":""}},[t("v-col",{staticClass:"label",attrs:{cols:"3"}},[e._v("Bit Offset")]),e._v(" "),t("v-col",[e._v(e._s(e.details.bit_offset))])],1),e._v(" "),t("v-row",{attrs:{"no-gutters":""}},[t("v-col",{staticClass:"label",attrs:{cols:"3"}},[e._v("Bit Size")]),e._v(" "),t("v-col",[e._v(e._s(e.details.bit_size))])],1),e._v(" "),e.details.array_size?t("v-row",{attrs:{"no-gutters":""}},[t("v-col",{staticClass:"label",attrs:{cols:"3"}},[e._v("Array Size")]),e._v(" "),t("v-col",[e._v(e._s(e.details.array_size))])],1):e._e(),e._v(" "),t("v-row",{attrs:{"no-gutters":""}},[t("v-col",{staticClass:"label",attrs:{cols:"3"}},[e._v("Data Type")]),e._v(" "),t("v-col",[e._v(e._s(e.details.data_type))])],1),e._v(" "),"cmd"===e.type?t("v-row",{attrs:{"no-gutters":""}},[t("v-col",{staticClass:"label",attrs:{cols:"3"}},[e._v("Minimum")]),e._v(" "),t("v-col",[e._v(e._s(e.details.minimum))])],1):e._e(),e._v(" "),"cmd"===e.type?t("v-row",{attrs:{"no-gutters":""}},[t("v-col",{staticClass:"label",attrs:{cols:"3"}},[e._v("Maximum")]),e._v(" "),t("v-col",[e._v(e._s(e.details.maximum))])],1):e._e(),e._v(" "),"cmd"===e.type?t("v-row",{attrs:{"no-gutters":""}},[t("v-col",{staticClass:"label",attrs:{cols:"3"}},[e._v("Default")]),e._v(" "),t("v-col",[e._v(e._s(e.details.default))])],1):e._e(),e._v(" "),t("v-row",{attrs:{"no-gutters":""}},[t("v-col",{staticClass:"label",attrs:{cols:"3"}},[e._v("Format String")]),e._v(" "),t("v-col",[e._v(e._s(e.details.format_string))])],1),e._v(" "),t("v-row",{attrs:{"no-gutters":""}},[t("v-col",{staticClass:"label",attrs:{cols:"3"}},[e._v("Read Conversion")]),e._v(" "),e.details.read_conversion?t("v-col",[e._v("\n Class: "+e._s(e.details.read_conversion.class)+"\n "),t("br"),e._v("\n Params:\n "+e._s(e.details.read_conversion.params)+"\n ")]):t("v-col")],1),e._v(" "),t("v-row",{attrs:{"no-gutters":""}},[t("v-col",{staticClass:"label",attrs:{cols:"3"}},[e._v("Write Conversion")]),e._v(" "),e.details.write_conversion?t("v-col",[e._v("\n Class: "+e._s(e.details.write_conversion.class)+"\n "),t("br"),e._v("\n Params:\n "+e._s(e.details.write_conversion.params)+"\n ")]):t("v-col")],1),e._v(" "),t("v-row",{attrs:{"no-gutters":""}},[t("v-col",{staticClass:"label",attrs:{cols:"3"}},[e._v("Id Value")]),e._v(" "),t("v-col",[e._v(e._s(e.details.id_value))])],1),e._v(" "),t("v-row",{attrs:{"no-gutters":""}},[t("v-col",{staticClass:"label",attrs:{cols:"3"}},[e._v("Units Full")]),e._v(" "),t("v-col",[e._v(e._s(e.details.units_full))])],1),e._v(" "),t("v-row",{attrs:{"no-gutters":""}},[t("v-col",{staticClass:"label",attrs:{cols:"3"}},[e._v("Units Abbr")]),e._v(" "),t("v-col",[e._v(e._s(e.details.units))])],1),e._v(" "),t("v-row",{attrs:{"no-gutters":""}},[t("v-col",{staticClass:"label",attrs:{cols:"3"}},[e._v("Endianness")]),e._v(" "),t("v-col",[e._v(e._s(e.details.endianness))])],1),e._v(" "),e.details.states?t("v-row",{attrs:{"no-gutters":""}},[t("v-col",{staticClass:"label",attrs:{cols:"3"}},[e._v("States")]),e._v(" "),t("v-col"),e._v(" "),t("v-container",{staticClass:"ml-5 pa-0",attrs:{fluid:""}},e._l(e.details.states,(function(n,i){return t("v-row",{key:i,attrs:{"no-gutters":""}},[t("v-col",{staticClass:"label",attrs:{cols:"4"}},[e._v(e._s(i))]),e._v(" "),t("v-col",[e._v(e._s(n.value))])],1)})),1)],1):t("v-row",{attrs:{"no-gutters":""}},[t("v-col",{staticClass:"label",attrs:{cols:"3"}},[e._v("States")]),e._v(" "),t("v-col",[e._v("None")])],1),e._v(" "),e.details.limits?t("v-row",{attrs:{"no-gutters":""}},[t("v-col",{staticClass:"label",attrs:{cols:"3"}},[e._v("Limits")]),e._v(" "),t("v-col"),e._v(" "),t("v-container",{staticClass:"ml-5 pa-0",attrs:{fluid:""}},e._l(e.details.limits,(function(n,i){return t("v-row",{key:i,attrs:{"no-gutters":""}},["enabled"===i?t("v-col",{staticClass:"label",attrs:{cols:"4"}},[e._v("Enabled")]):e._e(),e._v(" "),"enabled"===i?t("v-switch",{attrs:{dense:"","hide-details":""},on:{change:e.changeLimitsEnabled},model:{value:e.details.limits.enabled,callback:function(t){e.$set(e.details.limits,"enabled",t)},expression:"details.limits.enabled"}}):e._e(),e._v(" "),"enabled"!==i?t("v-col",{staticClass:"label",attrs:{cols:"4"}},[e._v(e._s(i))]):e._e(),e._v(" "),"enabled"!==i?t("div",[e._v(e._s(e.formatLimit(n)))]):e._e(),e._v(" "),t("v-col")],1)})),1)],1):t("v-row",{attrs:{"no-gutters":""}},[t("v-col",{staticClass:"label",attrs:{cols:"3"}},[e._v("Limits")]),e._v(" "),t("v-col",[e._v("None")])],1),e._v(" "),e.details.meta?t("v-row",{attrs:{"no-gutters":""}},[t("v-col",{staticClass:"label",attrs:{cols:"3"}},[e._v("Meta")]),e._v(" "),t("v-col"),e._v(" "),t("v-container",{staticClass:"ml-5 pa-0",attrs:{fluid:""}},e._l(e.details.meta,(function(n,i){return t("v-row",{key:i,attrs:{"no-gutters":""}},[t("v-col",{staticClass:"label",attrs:{cols:"4"}},[e._v(e._s(i))]),e._v(" "),t("v-col",[e._v(e._s(n))])],1)})),1)],1):t("v-row",{attrs:{"no-gutters":""}},[t("v-col",{staticClass:"label",attrs:{cols:"3"}},[e._v("Meta")]),e._v(" "),t("v-col",[e._v("None")])],1)],1)],1)],1)],1)},T=[];const D={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 d},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}}},S=D;n(4849);var E=n(2401),$=(0,E.A)(S,I,T,!1,null,"18fc7350",null);const P=$.exports,L=4,R={components:{DetailsDialog:P},mixins:[x],data:function(){return{width:12+L}},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])+L,"ch",this.width)}},O=R;n(8299);var V=(0,E.A)(O,h,A,!1,null,"21febbc3",null);const U=V.exports;var M=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.autocompleteDisabled,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?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.autocompleteDisabled,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:"1","data-test":"array-index"}},[t("v-combobox",{attrs:{label:"Index","hide-details":"",dense:"",outlined:"",disabled:e.itemsDisabled||e.autocompleteDisabled,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":"140px"},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":"140px"},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)},W=[];n(8605);const H={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},hidden:{type:Boolean,default:!1}},data(){return{targetNames:[],selectedTargetName:this.initialTargetName?.toUpperCase(),packetNames:[],selectedPacketName:this.initialPacketName?.toUpperCase(),itemNames:[],selectedItemName:this.initialItemName?.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 d,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},autocompleteDisabled:function(){return this.disabled||this.internalDisabled},buttonDisabled:function(){return this.disabled||this.internalDisabled||null===this.selectedTargetName||null===this.selectedPacketName||null===this.selectedItemNameWIndex},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,this.hidden).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="",null!==e&&this.updatePackets()},packetNameChanged:function(e){this.selectedItemName="",null!==e&&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})}))}}},z=H;n(1335);var G=(0,E.A)(z,M,W,!1,null,"3e1063ee",null);const F=G.exports;var K=function(){var e=this,t=e._self._c;return t("mounting-portal",{attrs:{"mount-to":"#openc3-menu",append:""}},[t("v-row",{attrs:{"no-gutters":""}},[t("v-col",{attrs:{"align-self":"end"}},[t("span",{staticClass:"app-title mr-2"},[e._v(e._s(e.title))])])],1),e._v(" "),t("v-row",{staticClass:"flex-nowrap",attrs:{dense:""}},e._l(e.menus,(function(n,i){return t("v-menu",{key:i,ref:"topmenu",refInFor:!0,attrs:{"offset-y":""},scopedSlots:e._u([{key:"activator",fn:function({on:i,attrs:s}){return[t("v-btn",e._g(e._b({staticClass:"mx-1 menu-button",attrs:{outlined:"","data-test":e.formatDT(`${e.title} ${n.label}`)}},"v-btn",s,!1),i),[t("span",{domProps:{textContent:e._s(n.label)}}),e._v(" "),t("v-icon",{staticClass:"myicon",attrs:{right:""}},[e._v(" mdi-menu-down ")])],1)]}}],null,!0)},[e._v(" "),t("v-list",[t("v-radio-group",{staticClass:"ma-0 pa-0",attrs:{value:n.radioGroup,"hide-details":"",dense:""}},[e._l(n.items,(function(i,s){return[i.divider?t("v-divider",{key:s}):i.subMenu&&i.subMenu.length>0?t("div",{key:s},[t("v-menu",{key:e.k,attrs:{"open-on-hover":"","offset-x":"",bottom:""},scopedSlots:e._u([{key:"activator",fn:function({on:n,attrs:l}){return[t("v-list-item",e._g(e._b({key:s,attrs:{disabled:i.disabled}},"v-list-item",l,!1),n),[i.icon?t("v-list-item-icon",[t("v-icon",{attrs:{disabled:i.disabled}},[e._v(e._s(i.icon))])],1):e._e(),e._v(" "),i.radio||i.checkbox?e._e():t("v-list-item-title",{style:"cursor: pointer;"+(i.disabled?"opacity: 0.2":"")},[e._v(e._s(i.label)+"\n ")]),e._v(" "),t("v-icon",[e._v(" mdi-chevron-right ")])],1)]}}],null,!0)},[e._v(" "),t("v-list",e._l(i.subMenu,(function(n,i){return t("v-list-item",{key:i,on:{click:function(t){return e.subMenuClick(n)}}},[n.icon?t("v-list-item-icon",[t("v-icon",[e._v(e._s(n.icon))])],1):e._e(),e._v(" "),t("v-list-item-title",[e._v(e._s(n.label))])],1)})),1)],1)],1):t("v-list-item",{key:s,attrs:{disabled:i.disabled,"data-test":e.formatDT(`${e.title} ${n.label} ${i.label}`)},on:{click:function(e){return i.command(i)}}},[i.radio?t("v-list-item-action",{staticClass:"list-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",{staticClass:"list-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)},B=[];const j={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}},q=j;n(5699);var Y=(0,E.A)(q,K,B,!1,null,"0af23388",null);const Z=Y.exports,J={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 d).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 d).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 X=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)},Q=[];const ee={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 d).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 d).delete_config(this.configKey,e.config)})).catch((t=>{!0!==t&&this.$emit("warning",`Failed to delete config ${e.config} Error: ${t}`)}))}}},te=ee;var ne=(0,E.A)(te,X,Q,!1,null,null,null);const ie=ne.exports;var se=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)},le=[];const ae={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 d).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 d).delete_config(this.configKey,e.config)})).catch((t=>{!0!==t&&this.$emit("warning",`Failed to delete config ${e.config} Error: ${t}`)}))}}},oe=ae;var ce=(0,E.A)(oe,se,le,!1,null,null,null);const re=ce.exports;function ue(){var e="/openc3/plugins/packages/openc3-cosmos-tool-packetviewer/src/tools/PacketViewer/PacketViewer.vue",t="57e1b7aa799d2baf849e4828d78bfae8e4f93077",n=new Function("return this")(),i="__coverage__",s={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:148,column:5}},2:{start:{line:53,column:16},end:{line:53,column:41}},3:{start:{line:63,column:16},end:{line:63,column:42}},4:{start:{line:70,column:16},end:{line:70,column:42}},5:{start:{line:77,column:16},end:{line:77,column:34}},6:{start:{line:78,column:16},end:{line:78,column:38}},7:{start:{line:92,column:16},end:{line:92,column:47}},8:{start:{line:100,column:16},end:{line:100,column:47}},9:{start:{line:110,column:16},end:{line:110,column:45}},10:{start:{line:117,column:16},end:{line:117,column:44}},11:{start:{line:124,column:16},end:{line:124,column:44}},12:{start:{line:131,column:16},end:{line:131,column:38}},13:{start:{line:152,column:6},end:{line:152,column:48}},14:{start:{line:155,column:6},end:{line:155,column:48}},15:{start:{line:158,column:6},end:{line:158,column:48}},16:{start:{line:162,column:6},end:{line:162,column:31}},17:{start:{line:163,column:6},end:{line:163,column:48}},18:{start:{line:166,column:6},end:{line:166,column:48}},19:{start:{line:169,column:6},end:{line:169,column:48}},20:{start:{line:174,column:6},end:{line:183,column:7}},21:{start:{line:187,column:4},end:{line:187,column:30}},22:{start:{line:188,column:4},end:{line:197,column:8}},23:{start:{line:191,column:8},end:{line:193,column:9}},24:{start:{line:192,column:10},end:{line:192,column:34}},25:{start:{line:200,column:4},end:{line:228,column:5}},26:{start:{line:201,column:6},end:{line:201,column:60}},27:{start:{line:202,column:6},end:{line:202,column:30}},28:{start:{line:205,column:19},end:{line:205,column:73}},29:{start:{line:206,column:6},end:{line:206,column:30}},30:{start:{line:208,column:6},end:{line:226,column:7}},31:{start:{line:210,column:8},end:{line:213,column:10}},32:{start:{line:215,column:8},end:{line:225,column:9}},33:{start:{line:217,column:10},end:{line:223,column:12}},34:{start:{line:224,column:10},end:{line:224,column:27}},35:{start:{line:227,column:6},end:{line:227,column:30}},36:{start:{line:231,column:4},end:{line:234,column:5}},37:{start:{line:232,column:6},end:{line:232,column:33}},38:{start:{line:233,column:6},end:{line:233,column:25}},39:{start:{line:238,column:6},end:{line:240,column:8}},40:{start:{line:239,column:8},end:{line:239,column:48}},41:{start:{line:241,column:6},end:{line:245,column:10}},42:{start:{line:244,column:10},end:{line:244,column:37}},43:{start:{line:247,column:6},end:{line:247,column:40}},44:{start:{line:248,column:6},end:{line:248,column:40}},45:{start:{line:249,column:6},end:{line:261,column:7}},46:{start:{line:253,column:8},end:{line:253,column:50}},47:{start:{line:254,column:8},end:{line:260,column:10}},48:{start:{line:262,column:6},end:{line:262,column:30}},49:{start:{line:265,column:6},end:{line:268,column:7}},50:{start:{line:266,column:8},end:{line:266,column:35}},51:{start:{line:267,column:8},end:{line:267,column:27}},52:{start:{line:269,column:6},end:{line:271,column:7}},53:{start:{line:270,column:8},end:{line:270,column:22}},54:{start:{line:272,column:6},end:{line:322,column:30}},55:{start:{line:273,column:8},end:{line:321,column:12}},56:{start:{line:282,column:12},end:{line:313,column:13}},57:{start:{line:283,column:14},end:{line:283,column:31}},58:{start:{line:284,column:28},end:{line:284,column:30}},59:{start:{line:285,column:26},end:{line:285,column:28}},60:{start:{line:286,column:14},end:{line:307,column:16}},61:{start:{line:287,column:16},end:{line:289,column:17}},62:{start:{line:288,column:18},end:{line:288,column:24}},63:{start:{line:290,column:16},end:{line:306,column:17}},64:{start:{line:291,column:18},end:{line:297,column:20}},65:{start:{line:299,column:18},end:{line:305,column:20}},66:{start:{line:308,column:14},end:{line:312,column:15}},67:{start:{line:309,column:16},end:{line:309,column:49}},68:{start:{line:311,column:16},end:{line:311,column:49}},69:{start:{line:320,column:12},end:{line:320,column:30}},70:{start:{line:325,column:6},end:{line:325,column:26}},71:{start:{line:326,column:6},end:{line:326,column:26}},72:{start:{line:327,column:6},end:{line:327,column:33}},73:{start:{line:328,column:6},end:{line:328,column:26}},74:{start:{line:329,column:6},end:{line:329,column:30}},75:{start:{line:330,column:6},end:{line:330,column:30}},76:{start:{line:331,column:6},end:{line:331,column:35}},77:{start:{line:332,column:6},end:{line:332,column:28}},78:{start:{line:335,column:6},end:{line:335,column:37}},79:{start:{line:336,column:6},end:{line:336,column:37}},80:{start:{line:337,column:6},end:{line:337,column:59}},81:{start:{line:338,column:6},end:{line:338,column:47}},82:{start:{line:339,column:6},end:{line:339,column:52}},83:{start:{line:340,column:6},end:{line:340,column:55}},84:{start:{line:341,column:6},end:{line:341,column:52}},85:{start:{line:342,column:6},end:{line:342,column:55}},86:{start:{line:343,column:6},end:{line:343,column:55}},87:{start:{line:344,column:6},end:{line:344,column:70}},88:{start:{line:345,column:6},end:{line:345,column:51}},89:{start:{line:348,column:6},end:{line:369,column:8}},90:{start:{line:349,column:8},end:{line:349,column:32}},91:{start:{line:350,column:8},end:{line:350,column:38}},92:{start:{line:351,column:8},end:{line:368,column:9}},93:{start:{line:357,column:10},end:{line:366,column:12}},94:{start:{line:367,column:10},end:{line:367,column:27}},95:{start:{line:372,column:6},end:{line:372,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:149,column:3}},line:27},1:{name:"(anonymous_1)",decl:{start:{line:52,column:23},end:{line:52,column:24}},loc:{start:{line:52,column:29},end:{line:54,column:15}},line:52},2:{name:"(anonymous_2)",decl:{start:{line:62,column:23},end:{line:62,column:24}},loc:{start:{line:62,column:29},end:{line:64,column:15}},line:62},3:{name:"(anonymous_3)",decl:{start:{line:69,column:23},end:{line:69,column:24}},loc:{start:{line:69,column:29},end:{line:71,column:15}},line:69},4:{name:"(anonymous_4)",decl:{start:{line:76,column:23},end:{line:76,column:24}},loc:{start:{line:76,column:29},end:{line:79,column:15}},line:76},5:{name:"(anonymous_5)",decl:{start:{line:91,column:23},end:{line:91,column:24}},loc:{start:{line:91,column:33},end:{line:93,column:15}},line:91},6:{name:"(anonymous_6)",decl:{start:{line:99,column:23},end:{line:99,column:24}},loc:{start:{line:99,column:33},end:{line:101,column:15}},line:99},7:{name:"(anonymous_7)",decl:{start:{line:109,column:23},end:{line:109,column:24}},loc:{start:{line:109,column:29},end:{line:111,column:15}},line:109},8:{name:"(anonymous_8)",decl:{start:{line:116,column:23},end:{line:116,column:24}},loc:{start:{line:116,column:29},end:{line:118,column:15}},line:116},9:{name:"(anonymous_9)",decl:{start:{line:123,column:23},end:{line:123,column:24}},loc:{start:{line:123,column:29},end:{line:125,column:15}},line:123},10:{name:"(anonymous_10)",decl:{start:{line:130,column:23},end:{line:130,column:24}},loc:{start:{line:130,column:29},end:{line:132,column:15}},line:130},11:{name:"(anonymous_11)",decl:{start:{line:151,column:17},end:{line:151,column:18}},loc:{start:{line:151,column:29},end:{line:153,column:5}},line:151},12:{name:"(anonymous_12)",decl:{start:{line:154,column:17},end:{line:154,column:18}},loc:{start:{line:154,column:29},end:{line:156,column:5}},line:154},13:{name:"(anonymous_13)",decl:{start:{line:157,column:15},end:{line:157,column:16}},loc:{start:{line:157,column:27},end:{line:159,column:5}},line:157},14:{name:"(anonymous_14)",decl:{start:{line:161,column:21},end:{line:161,column:22}},loc:{start:{line:161,column:33},end:{line:164,column:5}},line:161},15:{name:"(anonymous_15)",decl:{start:{line:165,column:16},end:{line:165,column:17}},loc:{start:{line:165,column:28},end:{line:167,column:5}},line:165},16:{name:"(anonymous_16)",decl:{start:{line:168,column:18},end:{line:168,column:19}},loc:{start:{line:168,column:30},end:{line:170,column:5}},line:168},17:{name:"(anonymous_17)",decl:{start:{line:173,column:19},end:{line:173,column:20}},loc:{start:{line:173,column:31},end:{line:184,column:5}},line:173},18:{name:"(anonymous_18)",decl:{start:{line:186,column:2},end:{line:186,column:3}},loc:{start:{line:186,column:12},end:{line:229,column:3}},line:186},19:{name:"(anonymous_19)",decl:{start:{line:190,column:12},end:{line:190,column:13}},loc:{start:{line:190,column:26},end:{line:194,column:7}},line:190},20:{name:"(anonymous_20)",decl:{start:{line:195,column:13},end:{line:195,column:14}},loc:{start:{line:195,column:24},end:{line:197,column:7}},line:195},21:{name:"(anonymous_21)",decl:{start:{line:230,column:2},end:{line:230,column:3}},loc:{start:{line:230,column:18},end:{line:235,column:3}},line:230},22:{name:"(anonymous_22)",decl:{start:{line:237,column:4},end:{line:237,column:5}},loc:{start:{line:237,column:25},end:{line:263,column:5}},line:237},23:{name:"(anonymous_23)",decl:{start:{line:238,column:49},end:{line:238,column:50}},loc:{start:{line:238,column:61},end:{line:240,column:7}},line:238},24:{name:"(anonymous_24)",decl:{start:{line:243,column:14},end:{line:243,column:15}},loc:{start:{line:243,column:27},end:{line:245,column:9}},line:243},25:{name:"(anonymous_25)",decl:{start:{line:264,column:4},end:{line:264,column:5}},loc:{start:{line:264,column:33},end:{line:323,column:5}},line:264},26:{name:"(anonymous_26)",decl:{start:{line:272,column:33},end:{line:272,column:34}},loc:{start:{line:272,column:39},end:{line:322,column:7}},line:272},27:{name:"(anonymous_27)",decl:{start:{line:280,column:16},end:{line:280,column:17}},loc:{start:{line:280,column:26},end:{line:314,column:11}},line:280},28:{name:"(anonymous_28)",decl:{start:{line:286,column:27},end:{line:286,column:28}},loc:{start:{line:286,column:38},end:{line:307,column:15}},line:286},29:{name:"(anonymous_29)",decl:{start:{line:318,column:17},end:{line:318,column:18}},loc:{start:{line:318,column:28},end:{line:321,column:11}},line:318},30:{name:"(anonymous_30)",decl:{start:{line:324,column:17},end:{line:324,column:18}},loc:{start:{line:324,column:29},end:{line:333,column:5}},line:324},31:{name:"(anonymous_31)",decl:{start:{line:334,column:17},end:{line:334,column:18}},loc:{start:{line:334,column:35},end:{line:346,column:5}},line:334},32:{name:"(anonymous_32)",decl:{start:{line:347,column:23},end:{line:347,column:24}},loc:{start:{line:347,column:55},end:{line:370,column:5}},line:347},33:{name:"(anonymous_33)",decl:{start:{line:348,column:40},end:{line:348,column:41}},loc:{start:{line:348,column:58},end:{line:369,column:7}},line:348},34:{name:"(anonymous_34)",decl:{start:{line:371,column:23},end:{line:371,column:24}},loc:{start:{line:371,column:39},end:{line:373,column:5}},line:371}},branchMap:{0:{loc:{start:{line:191,column:8},end:{line:193,column:9}},type:"if",locations:[{start:{line:191,column:8},end:{line:193,column:9}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:191},1:{loc:{start:{line:200,column:4},end:{line:228,column:5}},type:"if",locations:[{start:{line:200,column:4},end:{line:228,column:5}},{start:{line:203,column:11},end:{line:228,column:5}}],line:200},2:{loc:{start:{line:200,column:8},end:{line:200,column:53}},type:"binary-expr",locations:[{start:{line:200,column:8},end:{line:200,column:25}},{start:{line:200,column:29},end:{line:200,column:53}}],line:200},3:{loc:{start:{line:208,column:6},end:{line:226,column:7}},type:"if",locations:[{start:{line:208,column:6},end:{line:226,column:7}},{start:{line:214,column:13},end:{line:226,column:7}}],line:208},4:{loc:{start:{line:208,column:10},end:{line:208,column:64}},type:"binary-expr",locations:[{start:{line:208,column:10},end:{line:208,column:35}},{start:{line:208,column:39},end:{line:208,column:64}}],line:208},5:{loc:{start:{line:215,column:8},end:{line:225,column:9}},type:"if",locations:[{start:{line:215,column:8},end:{line:225,column:9}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:215},6:{loc:{start:{line:215,column:12},end:{line:215,column:42}},type:"binary-expr",locations:[{start:{line:215,column:12},end:{line:215,column:25}},{start:{line:215,column:29},end:{line:215,column:42}}],line:215},7:{loc:{start:{line:231,column:4},end:{line:234,column:5}},type:"if",locations:[{start:{line:231,column:4},end:{line:234,column:5}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:231},8:{loc:{start:{line:249,column:6},end:{line:261,column:7}},type:"if",locations:[{start:{line:249,column:6},end:{line:261,column:7}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:249},9:{loc:{start:{line:250,column:8},end:{line:251,column:54}},type:"binary-expr",locations:[{start:{line:250,column:8},end:{line:250,column:54}},{start:{line:251,column:8},end:{line:251,column:54}}],line:250},10:{loc:{start:{line:265,column:6},end:{line:268,column:7}},type:"if",locations:[{start:{line:265,column:6},end:{line:268,column:7}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:265},11:{loc:{start:{line:269,column:6},end:{line:271,column:7}},type:"if",locations:[{start:{line:269,column:6},end:{line:271,column:7}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:269},12:{loc:{start:{line:282,column:12},end:{line:313,column:13}},type:"if",locations:[{start:{line:282,column:12},end:{line:313,column:13}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:282},13:{loc:{start:{line:287,column:16},end:{line:289,column:17}},type:"if",locations:[{start:{line:287,column:16},end:{line:289,column:17}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:287},14:{loc:{start:{line:287,column:20},end:{line:287,column:77}},type:"binary-expr",locations:[{start:{line:287,column:20},end:{line:287,column:37}},{start:{line:287,column:41},end:{line:287,column:77}}],line:287},15:{loc:{start:{line:290,column:16},end:{line:306,column:17}},type:"if",locations:[{start:{line:290,column:16},end:{line:306,column:17}},{start:{line:298,column:23},end:{line:306,column:17}}],line:290},16:{loc:{start:{line:308,column:14},end:{line:312,column:15}},type:"if",locations:[{start:{line:308,column:14},end:{line:312,column:15}},{start:{line:310,column:21},end:{line:312,column:15}}],line:308},17:{loc:{start:{line:337,column:29},end:{line:337,column:59}},type:"binary-expr",locations:[{start:{line:337,column:29},end:{line:337,column:51}},{start:{line:337,column:55},end:{line:337,column:59}}],line:337},18:{loc:{start:{line:338,column:24},end:{line:338,column:47}},type:"binary-expr",locations:[{start:{line:338,column:24},end:{line:338,column:41}},{start:{line:338,column:45},end:{line:338,column:47}}],line:338},19:{loc:{start:{line:339,column:25},end:{line:339,column:52}},type:"binary-expr",locations:[{start:{line:339,column:25},end:{line:339,column:43}},{start:{line:339,column:47},end:{line:339,column:52}}],line:339},20:{loc:{start:{line:341,column:25},end:{line:341,column:52}},type:"binary-expr",locations:[{start:{line:341,column:25},end:{line:341,column:43}},{start:{line:341,column:47},end:{line:341,column:52}}],line:341},21:{loc:{start:{line:343,column:23},end:{line:343,column:55}},type:"binary-expr",locations:[{start:{line:343,column:23},end:{line:343,column:39}},{start:{line:343,column:43},end:{line:343,column:55}}],line:343},22:{loc:{start:{line:345,column:26},end:{line:345,column:51}},type:"binary-expr",locations:[{start:{line:345,column:26},end:{line:345,column:45}},{start:{line:345,column:49},end:{line:345,column:51}}],line:345},23:{loc:{start:{line:347,column:39},end:{line:347,column:53}},type:"default-arg",locations:[{start:{line:347,column:48},end:{line:347,column:53}}],line:347},24:{loc:{start:{line:351,column:8},end:{line:368,column:9}},type:"if",locations:[{start:{line:351,column:8},end:{line:368,column:9}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:351},25:{loc:{start:{line:352,column:10},end:{line:354,column:43}},type:"binary-expr",locations:[{start:{line:352,column:10},end:{line:352,column:53}},{start:{line:353,column:10},end:{line:353,column:53}},{start:{line:354,column:10},end:{line:354,column:43}}],line:352}},s:{0:0,1:0,2:0,3:0,4:0,5:0,6:0,7:0,8:0,9:0,10:0,11:0,12:0,13:0,14:0,15:0,16:0,17:0,18:0,19:0,20:0,21:0,22:0,23:0,24:0,25:0,26:0,27:0,28:0,29:0,30:0,31:0,32:0,33:0,34:0,35:0,36:0,37:0,38:0,39:0,40:0,41:0,42:0,43:0,44:0,45:0,46:0,47:0,48:0,49:0,50:0,51:0,52:0,53:0,54:0,55:0,56:0,57:0,58:0,59:0,60:0,61:0,62:0,63:0,64:0,65:0,66:0,67:0,68:0,69:0,70:0,71:0,72:0,73:0,74:0,75:0,76:0,77:0,78:0,79:0,80:0,81:0,82:0,83:0,84:0,85:0,86:0,87:0,88:0,89:0,90:0,91:0,92:0,93:0,94:0,95:0},f:{0:0,1:0,2:0,3:0,4:0,5:0,6:0,7:0,8:0,9:0,10:0,11:0,12:0,13:0,14:0,15:0,16:0,17:0,18:0,19:0,20:0,21:0,22:0,23:0,24:0,25:0,26:0,27:0,28:0,29:0,30:0,31:0,32:0,33:0,34:0},b:{0:[0,0],1:[0,0],2:[0,0],3:[0,0],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,0],23:[0],24:[0,0],25:[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;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 2024, 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\">&nbsp;*</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 :time-zone=\"timeZone\"\n />\n </template>\n <template v-slot:footer.prepend\n >* indicates a&nbsp;\n <a href=\"/tools/staticdocs/docs/configuration/telemetry#derived-items\"\n >DERIVED</a\n >&nbsp;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 timeZone: 'local',\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 this.api\n .get_setting('time_zone')\n .then((response) => {\n if (response) {\n this.timeZone = response\n }\n })\n .catch((error) => {\n // Do nothing\n })\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:"57e1b7aa799d2baf849e4828d78bfae8e4f93077"},l=n[i]||(n[i]={});l[e]&&l[e].hash===t||(l[e]=s);var a=l[e];return ue=function(){return a},a}ue();const me=(ue().s[0]++,{WITH_UNITS:"Formatted Items with Units",FORMATTED:"Formatted Items",CONVERTED:"Converted Items",RAW:"Raw Items"}),de={components:{TargetPacketItemChooser:F,ValueWidget:U,TopBar:Z,OpenConfigDialog:ie,SaveConfigDialog:re},mixins:[J],data(){return ue().f[0]++,ue().s[1]++,{title:"Packet Viewer",configKey:"packet_viewer",showOpenConfig:!1,showSaveConfig:!1,timeZone:"local",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:()=>{ue().f[1]++,ue().s[2]++,this.optionsDialog=!0}},{divider:!0},{label:"Open Configuration",icon:"mdi-folder-open",command:()=>{ue().f[2]++,ue().s[3]++,this.showOpenConfig=!0}},{label:"Save Configuration",icon:"mdi-content-save",command:()=>{ue().f[3]++,ue().s[4]++,this.showSaveConfig=!0}},{label:"Reset Configuration",icon:"mdi-monitor-shimmer",command:()=>{ue().f[4]++,ue().s[5]++,this.resetConfig(),ue().s[6]++,this.resetConfigBase()}}]},{label:"View",radioGroup:"Formatted Items with Units",items:[{label:"Show Ignored Items",checkbox:!0,checked:!1,command:e=>{ue().f[5]++,ue().s[7]++,this.showIgnored=e.checked}},{label:"Display DERIVED Last",checkbox:!0,checked:!1,command:e=>{ue().f[6]++,ue().s[8]++,this.derivedLast=e.checked}},{divider:!0},{label:me["WITH_UNITS"],radio:!0,command:()=>{ue().f[7]++,ue().s[9]++,this.valueType="WITH_UNITS"}},{label:me["FORMATTED"],radio:!0,command:()=>{ue().f[8]++,ue().s[10]++,this.valueType="FORMATTED"}},{label:me["CONVERTED"],radio:!0,command:()=>{ue().f[9]++,ue().s[11]++,this.valueType="CONVERTED"}},{label:me["RAW"],radio:!0,command:()=>{ue().f[10]++,ue().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(){ue().f[11]++,ue().s[13]++,this.saveDefaultConfig(this.currentConfig)},derivedLast:function(){ue().f[12]++,ue().s[14]++,this.saveDefaultConfig(this.currentConfig)},valueType:function(){ue().f[13]++,ue().s[15]++,this.saveDefaultConfig(this.currentConfig)},refreshInterval:function(){ue().f[14]++,ue().s[16]++,this.changeUpdater(!1),ue().s[17]++,this.saveDefaultConfig(this.currentConfig)},staleLimit:function(){ue().f[15]++,ue().s[18]++,this.saveDefaultConfig(this.currentConfig)},itemsPerPage:function(){ue().f[16]++,ue().s[19]++,this.saveDefaultConfig(this.currentConfig)}},computed:{currentConfig:function(){return ue().f[17]++,ue().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(ue().f[18]++,ue().s[21]++,this.api=new d,ue().s[22]++,this.api.get_setting("time_zone").then((e=>{ue().f[19]++,ue().s[23]++,e?(ue().b[0][0]++,ue().s[24]++,this.timeZone=e):ue().b[0][1]++})).catch((e=>{ue().f[20]++})),ue().s[25]++,ue().b[2][0]++,this.$route.query&&(ue().b[2][1]++,this.$route.query.config))ue().b[1][0]++,ue().s[26]++,this.openConfiguration(this.$route.query.config,!0),ue().s[27]++,this.changeUpdater(!0);else{ue().b[1][1]++;let e=(ue().s[28]++,{...this.currentConfig,...this.loadDefaultConfig()});ue().s[29]++,this.applyConfig(e),ue().s[30]++,ue().b[4][0]++,this.$route.params.target&&(ue().b[4][1]++,this.$route.params.packet)?(ue().b[3][0]++,ue().s[31]++,this.packetChanged({targetName:this.$route.params.target.toUpperCase(),packetName:this.$route.params.packet.toUpperCase()})):(ue().b[3][1]++,ue().s[32]++,ue().b[6][0]++,e.target&&(ue().b[6][1]++,e.packet)?(ue().b[5][0]++,ue().s[33]++,this.$router.push({name:"PackerViewer",params:{target:e.target,packet:e.packet}}),ue().s[34]++,this.$router.go()):ue().b[5][1]++),ue().s[35]++,this.changeUpdater(!0)}},beforeDestroy(){ue().f[21]++,ue().s[36]++,null!=this.updater?(ue().b[7][0]++,ue().s[37]++,clearInterval(this.updater),ue().s[38]++,this.updater=null):ue().b[7][1]++},methods:{packetChanged(e){ue().f[22]++,ue().s[39]++,this.api.get_target(e.targetName).then((e=>{ue().f[23]++,ue().s[40]++,this.ignoredItems=e.ignored_items})),ue().s[41]++,this.api.get_packet_derived_items(e.targetName,e.packetName).then((e=>{ue().f[24]++,ue().s[42]++,this.derivedItems=e})),ue().s[43]++,this.targetName=e.targetName,ue().s[44]++,this.packetName=e.packetName,ue().s[45]++,ue().b[9][0]++,this.$route.params.target!==e.targetName||(ue().b[9][1]++,this.$route.params.packet!==e.packetName)?(ue().b[8][0]++,ue().s[46]++,this.saveDefaultConfig(this.currentConfig),ue().s[47]++,this.$router.push({name:"PackerViewer",params:{target:this.targetName,packet:this.packetName}})):ue().b[8][1]++,ue().s[48]++,this.changeUpdater(!0)},changeUpdater(e){ue().f[25]++,ue().s[49]++,null!=this.updater?(ue().b[10][0]++,ue().s[50]++,clearInterval(this.updater),ue().s[51]++,this.updater=null):ue().b[10][1]++,ue().s[52]++,e?(ue().b[11][0]++,ue().s[53]++,this.rows=[]):ue().b[11][1]++,ue().s[54]++,this.updater=setInterval((()=>{ue().f[26]++,ue().s[55]++,this.api.get_tlm_packet(this.targetName,this.packetName,this.valueType,this.staleLimit).then((e=>{if(ue().f[27]++,ue().s[56]++,null!=e){ue().b[12][0]++,ue().s[57]++,this.counter+=1;let t=(ue().s[58]++,[]),n=(ue().s[59]++,[]);ue().s[60]++,e.forEach((e=>{if(ue().f[28]++,ue().s[61]++,ue().b[14][0]++,!this.showIgnored&&(ue().b[14][1]++,this.ignoredItems.includes(e[0])))return ue().b[13][0]++,void ue().s[62]++;ue().b[13][1]++,ue().s[63]++,this.derivedItems.includes(e[0])?(ue().b[15][0]++,ue().s[64]++,t.push({name:e[0],value:e[1],limitsState:e[2],derived:!0,counter:this.counter})):(ue().b[15][1]++,ue().s[65]++,n.push({name:e[0],value:e[1],limitsState:e[2],derived:!1,counter:this.counter}))})),ue().s[66]++,this.derivedLast?(ue().b[16][0]++,ue().s[67]++,this.rows=n.concat(t)):(ue().b[16][1]++,ue().s[68]++,this.rows=t.concat(n))}else ue().b[12][1]++})).catch((e=>{ue().f[29]++,ue().s[69]++,console.log(e)}))}),this.refreshInterval)},resetConfig:function(){ue().f[30]++,ue().s[70]++,this.targetName="",ue().s[71]++,this.packetName="",ue().s[72]++,this.refreshInterval=1e3,ue().s[73]++,this.staleLimit=30,ue().s[74]++,this.showIgnored=!1,ue().s[75]++,this.derivedLast=!1,ue().s[76]++,this.valueType="WITH_UNITS",ue().s[77]++,this.itemsPerPage=20},applyConfig:function(e){ue().f[31]++,ue().s[78]++,this.targetName=e.target,ue().s[79]++,this.packetName=e.packet,ue().s[80]++,this.refreshInterval=(ue().b[17][0]++,e.refreshInterval||(ue().b[17][1]++,1e3)),ue().s[81]++,this.staleLimit=(ue().b[18][0]++,e.staleLimit||(ue().b[18][1]++,30)),ue().s[82]++,this.showIgnored=(ue().b[19][0]++,e.showIgnored||(ue().b[19][1]++,!1)),ue().s[83]++,this.menus[1].items[0].checked=this.showIgnored,ue().s[84]++,this.derivedLast=(ue().b[20][0]++,e.derivedLast||(ue().b[20][1]++,!1)),ue().s[85]++,this.menus[1].items[1].checked=this.derivedLast,ue().s[86]++,this.valueType=(ue().b[21][0]++,e.valueType||(ue().b[21][1]++,"WITH_UNITS")),ue().s[87]++,this.menus[1].radioGroup=me[this.valueType],ue().s[88]++,this.itemsPerPage=(ue().b[22][0]++,e.itemsPerPage||(ue().b[22][1]++,20))},openConfiguration:function(e,t=(ue().b[23][0]++,!1)){ue().f[32]++,ue().s[89]++,this.openConfigBase(e,t,(async t=>{ue().f[33]++,ue().s[90]++,this.applyConfig(t),ue().s[91]++,this.saveDefaultConfig(t),ue().s[92]++,ue().b[25][0]++,this.$route.params.target!==t.target||(ue().b[25][1]++,this.$route.params.packet!==t.packet)||(ue().b[25][2]++,this.$route.query.config!==e)?(ue().b[24][0]++,ue().s[93]++,this.$router.push({name:"PackerViewer",params:{target:t.target,packet:t.packet},query:{config:e}}),ue().s[94]++,this.$router.go()):ue().b[24][1]++}))},saveConfiguration:function(e){ue().f[34]++,ue().s[95]++,this.saveConfigBase(e,this.currentConfig)}}},he=de;var Ae=(0,E.A)(he,s,l,!1,null,null,null);const pe=Ae.exports},6857:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>c});var i=n(6758),s=n.n(i),l=n(935),a=n.n(l),o=a()(s());o.push([e.id,".label[data-v-18fc7350]{font-weight:700;text-transform:capitalize}[data-v-18fc7350] .v-input--selection-controls{padding:0;margin:0}",""]);const c=o},6271:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>c});var i=n(6758),s=n.n(i),l=n(935),a=n.n(l),o=a()(s());o.push([e.id,".button[data-v-3e1063ee]{padding:4px}.select[data-v-3e1063ee]{max-width:300px}.row+.row[data-v-3e1063ee]{margin-top:0}",""]);const c=o},4203:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>c});var i=n(6758),s=n.n(i),l=n(935),a=n.n(l),o=a()(s());o.push([e.id,".app-title[data-v-0af23388]{font-size:2rem}.menu-button[data-v-0af23388]{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-0af23388]{padding-right:5px}.list-action[data-v-0af23388] label{color:#fff;padding-left:10px}.myicon[data-v-0af23388]{background-color:var(--color-background-surface-selected);border:1px solid currentColor;border-radius:3px;height:36px!important;width:36px!important}.v-list[data-v-0af23388] .v-label{margin-left:5px}.v-list-item__icon[data-v-0af23388]{margin-right:15px!important}.v-list-item__title[data-v-0af23388]{color:#fff}",""]);const c=o},1923:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>c});var i=n(6758),s=n.n(i),l=n(935),a=n.n(l),o=a()(s());o.push([e.id,".value-widget-container[data-v-21febbc3]{min-height:34px}.value-widget-container[data-v-21febbc3] .v-input__slot{background:rgba(var(--aging),var(--aging),var(--aging),1)!important}.value-widget-container[data-v-21febbc3] input{text-align:var(--text-align)!important}[data-v-21febbc3] .v-input__slot:has(.v-icon){padding-left:2px!important}.value-widget-container[data-v-21febbc3] .v-icon{margin-top:9px}.value[data-v-21febbc3] div{min-height:24px!important;display:flex!important;align-items:center!important}.openc3-green[data-v-21febbc3] input{color:#00c800}.openc3-yellow[data-v-21febbc3] input{color:#ffdc00}.openc3-red[data-v-21febbc3] input{color:#ff2d2d}.openc3-blue[data-v-21febbc3] input{color:#09f}.openc3-purple[data-v-21febbc3] input{color:#c800c8}.openc3-black[data-v-21febbc3] input{color:#000}.openc3-white[data-v-21febbc3] input{color:#fff}",""]);const c=o},4849:(e,t,n)=>{var i=n(6857);i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[e.id,i,""]]),i.locals&&(e.exports=i.locals);var s=n(4825).A;s("7adc6a5a",i,!0,{sourceMap:!1,shadowMode:!1})},1335:(e,t,n)=>{var i=n(6271);i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[e.id,i,""]]),i.locals&&(e.exports=i.locals);var s=n(4825).A;s("7d1749d1",i,!0,{sourceMap:!1,shadowMode:!1})},5699:(e,t,n)=>{var i=n(4203);i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[e.id,i,""]]),i.locals&&(e.exports=i.locals);var s=n(4825).A;s("7f447726",i,!0,{sourceMap:!1,shadowMode:!1})},8299:(e,t,n)=>{var i=n(1923);i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[e.id,i,""]]),i.locals&&(e.exports=i.locals);var s=n(4825).A;s("dbafcec6",i,!0,{sourceMap:!1,shadowMode:!1})}}]);
2
- //# sourceMappingURL=166.js.map