openc3-cosmos-tool-limitsmonitor 5.16.2 → 5.17.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/tools/limitsmonitor/js/582.js +2 -0
- data/tools/limitsmonitor/js/582.js.map +1 -0
- data/tools/limitsmonitor/js/95.js +2 -0
- data/tools/limitsmonitor/js/95.js.map +1 -0
- data/tools/limitsmonitor/js/app.js +1 -1
- data/tools/limitsmonitor/js/app.js.map +1 -1
- metadata +6 -6
- data/tools/limitsmonitor/js/424.js +0 -2
- data/tools/limitsmonitor/js/424.js.map +0 -1
- data/tools/limitsmonitor/js/902.js +0 -2
- data/tools/limitsmonitor/js/902.js.map +0 -1
@@ -1,2 +0,0 @@
|
|
1
|
-
(self["webpackChunk_openc3_cosmos_tool_limitsmonitor"]=self["webpackChunk_openc3_cosmos_tool_limitsmonitor"]||[]).push([[902],{2902:(e,n,t)=>{"use strict";function i(){var e="/openc3/plugins/packages/openc3-cosmos-tool-limitsmonitor/src/tools/LimitsMonitor/LimitsMonitor.vue",n="c0a397dd9161ac9e8dbf99e55f1916a6c6dc609c",t=new Function("return this")(),l="__coverage__",s={path:"/openc3/plugins/packages/openc3-cosmos-tool-limitsmonitor/src/tools/LimitsMonitor/LimitsMonitor.vue",statementMap:{0:{start:{line:1,column:13},end:{line:2,column:1}},1:{start:{line:1,column:39},end:{line:1,column:43}},2:{start:{line:1,column:47},end:{line:1,column:59}},3:{start:{line:1,column:60},end:{line:1,column:2177}},4:{start:{line:1,column:254},end:{line:1,column:269}},5:{start:{line:1,column:561},end:{line:1,column:579}},6:{start:{line:1,column:797},end:{line:1,column:815}},7:{start:{line:1,column:966},end:{line:1,column:989}},8:{start:{line:1,column:1785},end:{line:1,column:1809}},9:{start:{line:1,column:1990},end:{line:1,column:2017}},10:{start:{line:3,column:22},end:{line:3,column:24}}},fnMap:{0:{name:"render",decl:{start:{line:1,column:22},end:{line:1,column:28}},loc:{start:{line:1,column:30},end:{line:2,column:1}},line:1},1:{name:"(anonymous_1)",decl:{start:{line:1,column:238},end:{line:1,column:239}},loc:{start:{line:1,column:253},end:{line:1,column:270}},line:1},2:{name:"(anonymous_2)",decl:{start:{line:1,column:545},end:{line:1,column:546}},loc:{start:{line:1,column:560},end:{line:1,column:580}},line:1},3:{name:"(anonymous_3)",decl:{start:{line:1,column:781},end:{line:1,column:782}},loc:{start:{line:1,column:796},end:{line:1,column:816}},line:1},4:{name:"(anonymous_4)",decl:{start:{line:1,column:950},end:{line:1,column:951}},loc:{start:{line:1,column:965},end:{line:1,column:990}},line:1},5:{name:"(anonymous_5)",decl:{start:{line:1,column:1769},end:{line:1,column:1770}},loc:{start:{line:1,column:1784},end:{line:1,column:1810}},line:1},6:{name:"(anonymous_6)",decl:{start:{line:1,column:1973},end:{line:1,column:1974}},loc:{start:{line:1,column:1989},end:{line:1,column:2018}},line:1}},branchMap:{0:{loc:{start:{line:1,column:393},end:{line:1,column:616}},type:"cond-expr",locations:[{start:{line:1,column:410},end:{line:1,column:607}},{start:{line:1,column:608},end:{line:1,column:616}}],line:1},1:{loc:{start:{line:1,column:629},end:{line:1,column:852}},type:"cond-expr",locations:[{start:{line:1,column:646},end:{line:1,column:843}},{start:{line:1,column:844},end:{line:1,column:852}}],line:1}},s:{0:0,1:0,2:0,3:0,4:0,5:0,6:0,7:0,8:0,9:0,10:0},f:{0:0,1:0,2:0,3:0,4:0,5:0,6:0},b:{0:[0,0],1:[0,0]},_coverageSchema:"1a1c01bbd47fc00a2c39e90264f33305004495a9",hash:"c0a397dd9161ac9e8dbf99e55f1916a6c6dc609c"},o=t[l]||(t[l]={});o[e]&&o[e].hash===n||(o[e]=s);var a=o[e];return i=function(){return a},a}t.r(n),t.d(n,{default:()=>Be}),i(),i().s[0]++;var l=function(){i().f[0]++;var e=(i().s[1]++,this),n=(i().s[2]++,e._self._c);return i().s[3]++,n("div",[n("top-bar",{attrs:{menus:e.menus,title:e.title}}),e._v(" "),n("limits-control",{key:e.renderKey,ref:"control",model:{value:e.ignored,callback:function(n){i().f[1]++,i().s[4]++,e.ignored=n},expression:"ignored"}}),e._v(" "),n("div",{staticStyle:{height:"15px"}}),e._v(" "),n("limits-events"),e._v(" "),e.openConfig?(i().b[0][0]++,n("open-config-dialog",{attrs:{configKey:e.configKey},on:{success:e.openConfiguration},model:{value:e.openConfig,callback:function(n){i().f[2]++,i().s[5]++,e.openConfig=n},expression:"openConfig"}})):(i().b[0][1]++,e._e()),e._v(" "),e.saveConfig?(i().b[1][0]++,n("save-config-dialog",{attrs:{configKey:e.configKey},on:{success:e.saveConfiguration},model:{value:e.saveConfig,callback:function(n){i().f[3]++,i().s[6]++,e.saveConfig=n},expression:"saveConfig"}})):(i().b[1][1]++,e._e()),e._v(" "),n("v-dialog",{attrs:{"max-width":"650"},model:{value:e.limitsSetDialog,callback:function(n){i().f[4]++,i().s[7]++,e.limitsSetDialog=n},expression:"limitsSetDialog"}},[n("v-card",[n("v-system-bar",[n("v-spacer"),e._v(" "),n("span",[e._v("Change Limits Set")]),e._v(" "),n("v-spacer")],1),e._v(" "),n("v-card-text",{staticClass:"pt-1"},[n("span",{staticStyle:{display:"block"}},[e._v("The Limits Set is a global option which changes the Limits Set\n across all tools.")]),e._v(" "),n("span",{staticStyle:{display:"block"}},[e._v("NOTE: Changing this option clears the current list and recalculates\n based on the new set.")]),e._v(" "),n("v-select",{staticClass:"pt-3",staticStyle:{"max-width":"200px"},attrs:{label:"Limits Set",items:e.limitsSets,dense:"",outlined:"","data-test":"limits-set","hide-details":""},model:{value:e.currentLimitsSet,callback:function(n){i().f[5]++,i().s[8]++,e.currentLimitsSet=n},expression:"currentLimitsSet"}})],1),e._v(" "),n("v-card-actions",[n("v-spacer"),e._v(" "),n("v-btn",{staticClass:"mx-2",attrs:{outlined:""},on:{click:function(n){i().f[6]++,i().s[9]++,e.limitsSetDialog=!1}}},[e._v("\n Cancel\n ")]),e._v(" "),n("v-btn",{attrs:{color:"primary"},on:{click:e.setLimitsSet}},[e._v(" Ok ")])],1)],1)],1)],1)},s=(i().s[10]++,[]),o=t(814),a=(t(7107),t(2482),t(7067),t(4147),t(2682),t(785),t(8357),t(6196),t(821),t(6554),t(8472),t(7404),t(5803),t(3912),t(7010),t(4625)),r=t(1649);const c=new r["default"],m=a.A.create({baseURL:location.origin,timeout:6e4,params:{}});m.interceptors.response.use((e=>e),(e=>{if(e.response){var n,t,i,l,s;if(401===e.response.status&&OpenC3Auth.updateToken(OpenC3Auth.defaultMinValidity,!0).then((function(e){e&&OpenC3Auth.setTokens()})),e.response.config.headers["Ignore-Errors"]&&e.response.config.headers["Ignore-Errors"].includes(e.response.status.toString()))return Promise.reject(e);let a=`HTTP ${e.response.status} - `;if(null!==(n=e.response)&&void 0!==n&&n.statusText&&(a+=`${e.response.statusText} `),null!==(t=e.response)&&void 0!==t&&null!==(t=t.config)&&void 0!==t&&t.data&&(a+=`${e.response.config.data} `),null!==(i=e.response)&&void 0!==i&&null!==(i=i.data)&&void 0!==i&&i.message)a+=`${e.response.data.message}`;else if(null!==(l=e.response)&&void 0!==l&&null!==(l=l.data)&&void 0!==l&&l.exception)a+=`${e.response.data.exception}`;else if(null!==(s=e.response)&&void 0!==s&&null!==(s=s.data)&&void 0!==s&&null!==(s=s.error)&&void 0!==s&&s.message)e.response.data.error.class&&(a+=`${e.response.data.error.class} `),a+=`${e.response.data.error.message}`;else{var o;a+=`${null===(o=e.response)||void 0===o?void 0:o.data}`}throw c.$notify&&c.$notify.serious({title:"Network error",body:a}),e}throw e}));const u=m;class d{constructor(){(0,o.A)(this,"id",1)}async exec(e,n,t={},i={},l=6e4){try{let e=await OpenC3Auth.updateToken(OpenC3Auth.defaultMinValidity);e&&OpenC3Auth.setTokens()}catch(o){OpenC3Auth.login()}this.id=this.id+1;try{t["scope"]=window.openc3Scope;const s=await u.post("/openc3-api/api",{jsonrpc:"2.0",method:e,params:n,id:this.id,keyword_params:t},{headers:{Authorization:localStorage.openc3Token,"Content-Type":"application/json-rpc",...i},timeout:l});return s.data.result}catch(o){var s=new Error;throw o.response?(s.name=o.response.data.error.data.class,s.message=o.response.data.error.data.message):o.request?(s.name="Request error",s.message="Request error, no response received"):s.name="Unknown error",s}}decode_openc3_type(e){if(null!==e&&"object"===typeof e&&"Float"==e.json_class&&e.raw){if("NaN"==e.raw)return NaN;if("Infinity"==e.raw)return 1/0;if("-Infinity"==e.raw)return-1/0}return null}encode_openc3_type(e){return Number.isNaN(e)?{json_class:"Float",raw:"NaN"}:e==Number.POSITIVE_INFINITY?{json_class:"Float",raw:"Infinity"}:e==Number.NEGATIVE_INFINITY?{json_class:"Float",raw:"-Infinity"}:null}ensure_offline_access(){this.offline_access_needed().then((e=>{e&&(localStorage.openc3OfflineToken?this.set_offline_access(localStorage.openc3OfflineToken).then((()=>{delete localStorage.openc3OfflineToken})):OpenC3Auth.getOfflineAccess())}))}offline_access_needed(){return this.exec("offline_access_needed",[])}set_offline_access(e){return this.exec("set_offline_access",[e])}get_all_interface_info(){return this.exec("get_all_interface_info",[])}map_target_to_interface(e,n){return this.exec("map_target_to_interface",[e,n])}connect_interface(e,...n){return n.length>0?this.exec("connect_interface",[e,...n]):this.exec("connect_interface",[e])}disconnect_interface(e){return this.exec("disconnect_interface",[e])}interface_cmd(e,n,...t){return this.exec("interface_cmd",[e,n,...t])}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,n,t){return this.exec("get_item",[e,n,t])}get_param(e,n,t){return this.exec("get_param",[e,n,t])}get_parameter(e,n,t){return this.exec("get_parameter",[e,n,t])}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,n){return this.exec("get_tlm",[e,n])}get_telemetry(e,n){return this.exec("get_telemetry",[e,n])}get_all_tlm(e){return this.exec("get_all_tlm",[e])}get_all_telemetry(e){return this.exec("get_all_telemetry",[e])}get_all_tlm_names(e){return this.exec("get_all_tlm_names",[e])}get_all_telemetry_names(e){return this.exec("get_all_telemetry_names",[e])}async get_tlm_packet(e,n,t,i=30){const l=await this.exec("get_tlm_packet",[e,n],{type:t,stale_time:i});if(null!=l)for(var s=l.length,o=null,a=0;a<s;a++)o=this.decode_openc3_type(l[a][1]),null!==o&&(l[a][1]=o);return l}get_packet_derived_items(e,n){return this.exec("get_packet_derived_items",[e,n])}get_tlm_buffer(e,n){return this.exec("get_tlm_buffer",[e,n])}async get_tlm_values(e,n=30,t=null){let i={stale_time:n};null!==t&&(i["cache_timeout"]=t);const l=await this.exec("get_tlm_values",[e],i,{},1e4);for(var s=l[0].length,o=null,a=0;a<s;a++)o=this.decode_openc3_type(l[0][a]),null!==o&&(l[0][a]=o);return l}get_limits(e,n,t){return this.exec("get_limits",[e,n,t])}async tlm(e,n,t,i="CONVERTED"){let l=null;if(void 0===n)l=await this.exec("tlm",[e]);else if(void 0===t){if(!["RAW","CONVERTED","FORMATTED","WITH_UNITS"].includes(n)){var s=new Error;throw s.name="TypeError",s.message=`Invalid data type ${n}. Valid options are RAW, CONVERTED, FORMATTED, and WITH_UNITS.`,s}l=await this.exec("tlm",[e],{type:n})}else l=await this.exec("tlm",[e,n,t],{type:i});var o=this.decode_openc3_type(l);return null!==o&&(l=o),l}async inject_tlm(e,n,t=null,i="CONVERTED"){data=await this.exec("inject_tlm",[e,n,t],{type:i})}set_tlm(e,n,t,i){return this.exec("set_tlm",[e,n,t],{type:i})}override_tlm(e,n,t,i){return this.exec("override_tlm",[e,n,t],{type:i})}get_overrides(){return this.exec("get_overrides")}normalize_tlm(e,n,t,i){return this.exec("normalize_tlm",[e,n,t],{type:i})}get_all_cmds(e){return this.exec("get_all_cmds",[e])}get_all_commands(e){return this.exec("get_all_commands",[e])}get_all_cmd_names(e){return this.exec("get_all_cmd_names",[e])}get_all_command_names(e){return this.exec("get_all_command_names",[e])}get_cmd(e,n){return this.exec("get_cmd",[e,n])}get_command(e,n){return this.exec("get_command",[e,n])}get_cmd_cnts(e){return this.exec("get_cmd_cnts",[e])}get_cmd_value(e,n,t,i="CONVERTED"){return this.exec("get_cmd_value",[e,n,t,i])}get_cmd_buffer(e,n){return this.exec("get_cmd_buffer",[e,n])}_cmd(e,n,t,i,l){var s=null;for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(s=this.encode_openc3_type(i[o]),null!==s&&(i[o]=s));return this.exec(e,[n,t,i],{},l)}get_cmd_hazardous(e,n,t){return void 0===n?this.exec("get_cmd_hazardous",e):this._cmd("get_cmd_hazardous",e,n,t)}cmd(e,n,t,i={}){return void 0===n?this.exec("cmd",e,{},i):this._cmd("cmd",e,n,t,i)}cmd_no_range_check(e,n,t){return void 0===n?this.exec("cmd_no_range_check",e):this._cmd("cmd_no_range_check",e,n,t)}cmd_raw(e,n,t){return void 0===n?this.exec("cmd_raw",e):this._cmd("cmd_raw",e,n,t)}cmd_raw_no_range_check(e,n,t){return void 0===n?this.exec("cmd_raw_no_range_check",e):this._cmd("cmd_raw_no_range_check",e,n,t)}cmd_no_hazardous_check(e,n,t){return void 0===n?this.exec("cmd_no_hazardous_check",e):this._cmd("cmd_no_hazardous_check",e,n,t)}cmd_no_checks(e,n,t){return void 0===n?this.exec("cmd_no_checks",e):this._cmd("cmd_no_checks",e,n,t)}cmd_raw_no_hazardous_check(e,n,t){return void 0===n?this.exec("cmd_raw_no_hazardous_check",e):this._cmd("cmd_raw_no_hazardous_check",e,n,t)}cmd_raw_no_checks(e,n,t){return void 0===n?this.exec("cmd_raw_no_checks",e):this._cmd("cmd_raw_no_checks",e,n,t)}build_cmd(e,n,t){return void 0===n?this.exec("build_cmd",e):this._cmd("build_cmd",e,n,t)}build_command(e,n,t){return void 0===n?this.exec("build_command",e):this._cmd("build_command",e,n,t)}get_interface_names(){return this.exec("get_interface_names",[])}send_raw(e,n){return this.exec("send_raw",[e,n])}list_configs(e){return this.exec("list_configs",[e])}load_config(e,n){return this.exec("load_config",[e,n])}save_config(e,n,t){return this.exec("save_config",[e,n,t])}delete_config(e,n){return this.exec("delete_config",[e,n])}enable_limits(e,n,t){return this.exec("enable_limits",[e,n,t])}disable_limits(e,n,t){return this.exec("disable_limits",[e,n,t])}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,n){return this.exec("set_setting",[e,n])}save_setting(e,n){return this.exec("save_setting",[e,n])}get_metrics(){return this.exec("get_metrics",[])}async hashString(e){if(window.isSecureContext){const n=(new TextEncoder).encode(e),t=await crypto.subtle.digest("SHA-256",n),i=new Uint8Array(t);return Array.from(i).map((e=>e.toString(16).padStart(2,"0"))).join("")}}}function A(){var e="/openc3/plugins/packages/openc3-cosmos-tool-limitsmonitor/src/tools/LimitsMonitor/LimitsControl.vue",n="1ba414f3b720828f48307426463e24c3c6a387fd",t=new Function("return this")(),i="__coverage__",l={path:"/openc3/plugins/packages/openc3-cosmos-tool-limitsmonitor/src/tools/LimitsMonitor/LimitsControl.vue",statementMap:{0:{start:{line:1,column:13},end:{line:2,column:1}},1:{start:{line:1,column:39},end:{line:1,column:43}},2:{start:{line:1,column:47},end:{line:1,column:59}},3:{start:{line:1,column:60},end:{line:1,column:4612}},4:{start:{line:1,column:1309},end:{line:1,column:3049}},5:{start:{line:1,column:1888},end:{line:1,column:2108}},6:{start:{line:1,column:1988},end:{line:1,column:2021}},7:{start:{line:1,column:2295},end:{line:1,column:2504}},8:{start:{line:1,column:2395},end:{line:1,column:2426}},9:{start:{line:1,column:2682},end:{line:1,column:2886}},10:{start:{line:1,column:2782},end:{line:1,column:2813}},11:{start:{line:1,column:3336},end:{line:1,column:3362}},12:{start:{line:1,column:3726},end:{line:1,column:4184}},13:{start:{line:1,column:4010},end:{line:1,column:4039}},14:{start:{line:1,column:4525},end:{line:1,column:4555}},15:{start:{line:3,column:22},end:{line:3,column:24}}},fnMap:{0:{name:"render",decl:{start:{line:1,column:22},end:{line:1,column:28}},loc:{start:{line:1,column:30},end:{line:2,column:1}},line:1},1:{name:"(anonymous_1)",decl:{start:{line:1,column:1288},end:{line:1,column:1289}},loc:{start:{line:1,column:1308},end:{line:1,column:3050}},line:1},2:{name:"(anonymous_2)",decl:{start:{line:1,column:1864},end:{line:1,column:1865}},loc:{start:{line:1,column:1887},end:{line:1,column:2109}},line:1},3:{name:"(anonymous_3)",decl:{start:{line:1,column:1971},end:{line:1,column:1972}},loc:{start:{line:1,column:1987},end:{line:1,column:2022}},line:1},4:{name:"(anonymous_4)",decl:{start:{line:1,column:2271},end:{line:1,column:2272}},loc:{start:{line:1,column:2294},end:{line:1,column:2505}},line:1},5:{name:"(anonymous_5)",decl:{start:{line:1,column:2378},end:{line:1,column:2379}},loc:{start:{line:1,column:2394},end:{line:1,column:2427}},line:1},6:{name:"(anonymous_6)",decl:{start:{line:1,column:2658},end:{line:1,column:2659}},loc:{start:{line:1,column:2681},end:{line:1,column:2887}},line:1},7:{name:"(anonymous_7)",decl:{start:{line:1,column:2765},end:{line:1,column:2766}},loc:{start:{line:1,column:2781},end:{line:1,column:2814}},line:1},8:{name:"(anonymous_8)",decl:{start:{line:1,column:3320},end:{line:1,column:3321}},loc:{start:{line:1,column:3335},end:{line:1,column:3363}},line:1},9:{name:"(anonymous_9)",decl:{start:{line:1,column:3705},end:{line:1,column:3706}},loc:{start:{line:1,column:3725},end:{line:1,column:4185}},line:1},10:{name:"(anonymous_10)",decl:{start:{line:1,column:3993},end:{line:1,column:3994}},loc:{start:{line:1,column:4009},end:{line:1,column:4040}},line:1},11:{name:"(anonymous_11)",decl:{start:{line:1,column:4508},end:{line:1,column:4509}},loc:{start:{line:1,column:4524},end:{line:1,column:4556}},line:1}},branchMap:{0:{loc:{start:{line:1,column:1567},end:{line:1,column:1775}},type:"cond-expr",locations:[{start:{line:1,column:1581},end:{line:1,column:1682}},{start:{line:1,column:1683},end:{line:1,column:1775}}],line:1},1:{loc:{start:{line:1,column:2978},end:{line:1,column:3045}},type:"cond-expr",locations:[{start:{line:1,column:3009},end:{line:1,column:3036}},{start:{line:1,column:3037},end:{line:1,column:3045}}],line:1},2:{loc:{start:{line:1,column:3399},end:{line:1,column:3474}},type:"cond-expr",locations:[{start:{line:1,column:3434},end:{line:1,column:3465}},{start:{line:1,column:3466},end:{line:1,column:3474}}],line:1},3:{loc:{start:{line:1,column:4102},end:{line:1,column:4180}},type:"cond-expr",locations:[{start:{line:1,column:4144},end:{line:1,column:4171}},{start:{line:1,column:4172},end:{line:1,column:4180}}],line:1},4:{loc:{start:{line:1,column:4199},end:{line:1,column:4274}},type:"cond-expr",locations:[{start:{line:1,column:4234},end:{line:1,column:4265}},{start:{line:1,column:4266},end:{line:1,column:4274}}],line:1}},s:{0:0,1:0,2:0,3:0,4:0,5:0,6:0,7:0,8:0,9:0,10:0,11:0,12:0,13:0,14:0,15:0},f:{0:0,1:0,2:0,3:0,4:0,5:0,6:0,7:0,8:0,9:0,10:0,11:0},b:{0:[0,0],1:[0,0],2:[0,0],3:[0,0],4:[0,0]},_coverageSchema:"1a1c01bbd47fc00a2c39e90264f33305004495a9",hash:"1ba414f3b720828f48307426463e24c3c6a387fd"},s=t[i]||(t[i]={});s[e]&&s[e].hash===n||(s[e]=l);var o=s[e];return A=function(){return o},o}A(),A().s[0]++;var h=function(){A().f[0]++;var e=(A().s[1]++,this),n=(A().s[2]++,e._self._c);return A().s[3]++,n("div",[n("v-card",{staticClass:"pa-5"},[n("v-row",{staticClass:"ma-1"},[n("v-text-field",{class:e.textFieldClass,staticStyle:{"margin-right":"10px","max-width":"280px"},attrs:{dense:"",outlined:"",readonly:"","hide-details":"",label:"Overall Limits State","prepend-inner-icon":e.astroIcon,value:e.overallStateFormatted,"data-test":"overall-state"}}),e._v(" "),n("v-text-field",{staticStyle:{"max-width":"200px"},attrs:{dense:"",outlined:"",readonly:"","hide-details":"",label:"Current Limits Set",value:e.currentLimitsSet,"data-test":"limits-set"}})],1),e._v(" "),n("v-row",{staticClass:"my-0 ml-1 mr-1",attrs:{"data-test":"limits-row"}},[n("div",{staticClass:"pa-1 mt-1 mr-2 label",staticStyle:{width:"170px"}},[e._v("Timestamp")]),e._v(" "),n("div",{staticClass:"pa-1 mt-1 mr-2 label",staticStyle:{width:"200px"}},[e._v("Item Name")]),e._v(" "),n("div",{staticClass:"pa-1 mt-1 mr-2 label",staticStyle:{width:"200px"}},[e._v("Value")]),e._v(" "),n("div",{staticClass:"pa-1 mt-1 mr-2 label",staticStyle:{width:"180px"}},[e._v("Limits Bar")]),e._v(" "),n("div",{staticClass:"pa-1 mt-1 mr-2 label"},[e._v("Controls")])]),e._v(" "),e._l(e.items,(function(t,i){return A().f[1]++,A().s[4]++,n("div",{key:t.key},[n("v-row",{staticClass:"my-0 ml-1 mr-1",attrs:{"data-test":"limits-row"}},[n("div",{staticClass:"pa-1 mt-1 mr-2 label",staticStyle:{width:"170px"}},[e._v("\n "+e._s(t.timestamp)+"\n ")]),e._v(" "),t.limits?(A().b[0][0]++,n("labelvaluelimitsbar-widget",{attrs:{parameters:t.parameters,settings:e.widgetSettings}})):(A().b[0][1]++,n("labelvalue-widget",{attrs:{parameters:t.parameters,settings:e.widgetSettings}})),e._v(" "),n("v-tooltip",{attrs:{bottom:""},scopedSlots:e._u([{key:"activator",fn:function({on:i,attrs:l}){return A().f[2]++,A().s[5]++,[n("v-btn",e._g(e._b({staticClass:"mr-2",attrs:{icon:""},on:{click:function(n){return A().f[3]++,A().s[6]++,e.ignorePacket(t.key)}}},"v-btn",l,!1),i),[n("v-icon",[e._v(" mdi-close-circle-multiple ")])],1)]}}],null,!0)},[e._v(" "),n("span",[e._v("Ignore Entire Packet")])]),e._v(" "),n("v-tooltip",{attrs:{bottom:""},scopedSlots:e._u([{key:"activator",fn:function({on:i,attrs:l}){return A().f[4]++,A().s[7]++,[n("v-btn",e._g(e._b({staticClass:"mr-2",attrs:{icon:""},on:{click:function(n){return A().f[5]++,A().s[8]++,e.ignoreItem(t.key)}}},"v-btn",l,!1),i),[n("v-icon",[e._v(" mdi-close-circle ")])],1)]}}],null,!0)},[e._v(" "),n("span",[e._v("Ignore Item")])]),e._v(" "),n("v-tooltip",{attrs:{bottom:""},scopedSlots:e._u([{key:"activator",fn:function({on:i,attrs:l}){return A().f[6]++,A().s[9]++,[n("v-btn",e._g(e._b({staticClass:"mr-2",attrs:{icon:""},on:{click:function(n){return A().f[7]++,A().s[10]++,e.removeItem(t.key)}}},"v-btn",l,!1),i),[n("v-icon",[e._v(" mdi-eye-off ")])],1)]}}],null,!0)},[e._v(" "),n("span",[e._v("Temporarily Hide Item")])])],1),e._v(" "),i<e.items.length-1?(A().b[1][0]++,n("v-divider",{key:i})):(A().b[1][1]++,e._e())],1)})),e._v(" "),n("div",{staticClass:"footer"},[e._v('\n Note: Timestamp is "now" for items currently out of limits when the page\n is loaded.\n ')])],2),e._v(" "),n("v-dialog",{attrs:{"max-width":"600"},model:{value:e.ignoredItemsDialog,callback:function(n){A().f[8]++,A().s[11]++,e.ignoredItemsDialog=n},expression:"ignoredItemsDialog"}},[e.index<e.items.length-1?(A().b[2][0]++,n("v-divider",{key:e.index})):(A().b[2][1]++,e._e()),e._v(" "),n("v-card",[n("v-system-bar",[n("v-spacer"),e._v(" "),n("span",[e._v("Ignored Items")]),e._v(" "),n("v-spacer")],1),e._v(" "),n("v-card-text",[n("div",{staticClass:"my-2"},[e._l(e.ignoredFormatted,(function(t,i){return A().f[9]++,A().s[12]++,n("div",{key:i},[n("v-row",{staticClass:"ma-1"},[n("span",{staticClass:"font-weight-black"},[e._v(" "+e._s(t)+" ")]),e._v(" "),n("v-spacer"),e._v(" "),n("v-btn",{attrs:{small:"",icon:"","data-test":`remove-ignore-${i}`},on:{click:function(n){return A().f[10]++,A().s[13]++,e.restoreItem(i)}}},[n("v-icon",[e._v(" mdi-delete ")])],1)],1),e._v(" "),i<e.ignoredFormatted.length-1?(A().b[3][0]++,n("v-divider",{key:i})):(A().b[3][1]++,e._e())],1)})),e._v(" "),e.index<e.items.length-1?(A().b[4][0]++,n("v-divider",{key:e.index})):(A().b[4][1]++,e._e())],2)]),e._v(" "),n("v-card-actions",[n("v-btn",{attrs:{outlined:""},on:{click:e.clearAll}},[e._v(" Clear All ")]),e._v(" "),n("v-spacer"),e._v(" "),n("v-btn",{staticClass:"mx-2",attrs:{color:"primary"},on:{click:function(n){A().f[11]++,A().s[14]++,e.ignoredItemsDialog=!1}}},[e._v("\n Ok\n ")])],1)],1)],1)],1)},v=(A().s[15]++,[]),p=(t(9375),t(7752));p.D$.staleThreshold=10;class f{constructor(e="/openc3-api/cable"){this._cable=null,this._url=e}disconnect(){this._cable&&this._cable.disconnect()}createSubscription(e,n,t={},i={}){return OpenC3Auth.updateToken(OpenC3Auth.defaultMinValidity).then((n=>{if(n&&OpenC3Auth.setTokens(),null==this._cable){let e=this._url+"?scope="+encodeURIComponent(window.openc3Scope)+"&authorization="+encodeURIComponent(localStorage.openc3Token);this._cable=p.Be(e)}return this._cable.subscriptions.create({channel:e,...i},t)}))}recordPing(){this._cable.connection.monitor.recordPing()}}var _=function(){var e=this,n=e._self._c;return n("div",{ref:"container",staticClass:"d-flex flex-row",style:e.computedStyle},[n("label-widget",{attrs:{parameters:e.labelName,settings:[...e.settings],line:e.line,lineNumber:e.lineNumber,"widget-index":0}}),e._v(" "),n("value-widget",{attrs:{parameters:e.valueParameters,settings:[...e.settings],line:e.line,lineNumber:e.lineNumber,"widget-index":1}})],1)},g=[];t(7534),t(4293);class C{constructor(e,n,t="",i=""){this.keyword=e.keyword,this.parameters=e.parameters,this.filename=e.filename,this.line=e.line,this.lineNumber=e.lineNumber,this.message=n,this.usage=t,this.url=i}}const b={props:{widgetIndex:{type:Number,default:null},parameters:{type:Array,default:()=>[]},settings:{type:Array,default:()=>[]},line:{type:String,default:""},lineNumber:{type:Number,default:0}},data(){return{screen:null}},computed:{computedStyle(){let e={};return this.settings.forEach((n=>{const t=parseInt(n[0]);if(null!==this.widgetIndex){if(this.widgetIndex!==t)return;n=n.slice(1)}this.applySetting(e,n)})),void 0===e["width"]&&(e["flex"]="0 10 100%"),e}},created(){this.settings.forEach((e=>{"__SCREEN__"===e[0]&&(this.screen=e[1])}))},methods:{applySetting(e,n){switch(n[0]){case"TEXTALIGN":e["text-align"]=n[1].toLowerCase()+" !important",e["--text-align"]=n[1].toLowerCase();break;case"PADDING":isNaN(Number(n[1]))||(n[1]+="px"),e["padding"]=n[1]+" !important";break;case"MARGIN":isNaN(Number(n[1]))||(n[1]+="px"),e["margin"]=n[1]+" !important";break;case"BACKCOLOR":e["background-color"]=this.getColor(n.slice(1))+" !important";break;case"TEXTCOLOR":e["color"]=this.getColor(n.slice(1))+" !important";break;case"BORDERCOLOR":e["border-width"]="1px!important",e["border-style"]="solid!important",e["border-color"]=this.getColor(n.slice(1))+" !important";break;case"WIDTH":isNaN(Number(n[1]))||(n[1]+="px"),e["width"]=n[1]+" !important";break;case"HEIGHT":isNaN(Number(n[1]))||(n[1]+="px"),e["height"]=n[1]+" !important";break;case"RAW":e[n[1].toLowerCase()]=n[2]+" !important";break}},verifyNumParams(e,n,t,i=""){let l={line:this.line,lineNumber:this.lineNumber,keyword:e,parameters:this.parameters};for(var s=1;s<=n;s++)if(void 0===this.parameters[s-1])throw new C(l,`Not enough parameters for ${e}.`,i,"https://docs.openc3.com/docs/configuration");if(null!==t&&this.parameters.length>t)throw new C(l,`Too many parameters for ${e}.`,i,"https://docs.openc3.com/docs/configuration")},setWidth(e,n="px",t="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 t=["WIDTH",`${e}${n}`];return null!==this.widgetIndex&&t.unshift(this.widgetIndex),this.settings.push(t),parseInt(e)}{let e=["WIDTH",`${t}${n}`];return null!==this.widgetIndex&&e.unshift(this.widgetIndex),this.settings.push(e),parseInt(t)}},setHeight(e,n="px",t="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 t=["HEIGHT",`${e}${n}`];return null!==this.widgetIndex&&t.unshift(this.widgetIndex),this.settings.push(t),parseInt(e)}{let e=["HEIGHT",`${t}${n}`];return null!==this.widgetIndex&&e.unshift(this.widgetIndex),this.settings.push(e),parseInt(t)}},getColor(e){switch(e.length){case 1:return e[0].toLowerCase();case 3:return`rgb(${e[0]},${e[1]},${e[2]})`}}}};var y=function(){var e=this,n=e._self._c;return n("div",{staticClass:"pa-1 mt-1 label",style:[e.cssProps,e.computedStyle],attrs:{"data-test":"label"}},[e._v("\n "+e._s(e.labelText)+"\n")])},w=[];const x={mixins:[b],data(){return{fontFamily:null,fontSize:null,fontWeight:"normal",fontStyle:"normal"}},computed:{labelText(){return this.parameters[0]},cssProps(){var e=null;return this.fontSize&&(e=this.fontSize+"px"),{"--font-family":this.fontFamily,"--font-size":e,"--font-weight":this.fontWeight,"--font-style":this.fontStyle}}},created(){this.verifyNumParams("LABEL",1,5,"LABEL <Text> <Font Family> <Font Size> <Font Weight> <Font Style>"),this.parameters[1]&&(this.fontFamily=this.parameters[1]),this.parameters[2]&&(this.fontSize=this.parameters[2]),this.parameters[3]&&(this.fontWeight=this.parameters[3]),this.parameters[4]&&(this.fontStyle=this.parameters[4])}},S=x;t(6074);var I=t(2401),L=(0,I.A)(S,y,w,!1,null,"19db816e",null);const k=L.exports;var E=function(){var e=this,n=e._self._c;return n("div",{staticClass:"value-widget-container",style:[e.computedStyle,e.aging]},[n("v-tooltip",{attrs:{bottom:""},scopedSlots:e._u([{key:"activator",fn:function({on:t,attrs:i}){return[n("v-text-field",e._g(e._b({class:e.valueClass,attrs:{solo:"",dense:"",readonly:"","single-line":"","hide-no-data":"","hide-details":"",placeholder:"Value",value:e._value,"prepend-inner-icon":e.astroIcon,"data-test":"value"},on:{contextmenu:e.showContextMenu}},"v-text-field",i,!1),t))]}}])},[e._v(" "),n("span",[e._v(e._s(e.fullName))])]),e._v(" "),n("v-menu",{staticStyle:{"z-index":"10"},attrs:{"position-x":e.x,"position-y":e.y,absolute:"","offset-y":""},model:{value:e.contextMenuShown,callback:function(n){e.contextMenuShown=n},expression:"contextMenuShown"}},[n("v-list",e._l(e.contextMenuOptions,(function(t,i){return n("v-list-item",{key:i,on:{click:function(e){return e.stopPropagation(),t.action.apply(null,arguments)}}},[n("v-list-item-title",[e._v(e._s(t.title))])],1)})),1)],1),e._v(" "),n("details-dialog",{attrs:{"target-name":e.parameters[0],"packet-name":e.parameters[1],"item-name":e.parameters[2]},model:{value:e.viewDetails,callback:function(n){e.viewDetails=n},expression:"viewDetails"}})],1)},N=[];t(9471);const O={mixins:[b],props:{value:{default:null},limitsState:{type:String,default:null},counter:{default:null},formatString:null},data(){return{curValue:null,prevValue:null,grayLevel:80,grayRate:5,valueId:null,viewDetails:!1,contextMenuShown:!1,x:0,y:0,contextMenuOptions:[{title:"Details",action:()=>{this.contextMenuShown=!1,this.viewDetails=!0}},{title:"Graph",action:()=>{window.open("/tools/tlmgrapher/"+this.parameters[0]+"/"+this.parameters[1]+"/"+this.parameters[2],"_blank")}}]}},watch:{_counter:function(e,n){this.curValue!==this.prevValue?this.grayLevel=80:(this.grayLevel-=this.grayRate,this.grayLevel<30&&(this.grayLevel=30)),this.prevValue=this.curValue}},computed:{_value:function(){return this.curValue=this.value,null===this.curValue&&(this.screen?this.screen.screenValues[this.valueId]&&(this.curValue=this.screen.screenValues[this.valueId][0]):this.curValue=null),this.curValue=this.formatValue(this.curValue),this.curValue},_limitsState:function(){let e=this.limitsState;return null===e&&(this.screen?this.screen.screenValues[this.valueId]&&(e=this.screen.screenValues[this.valueId][1]):e=null),e},_counter:function(){let e=this.counter;return null===e&&(this.screen?this.screen.screenValues[this.valueId]&&(e=this.screen.screenValues[this.valueId][2]):e=null),e},valueClass:function(){return"value shrink pa-1 openc3-"+this.limitsColor},astroIcon(){switch(this.limitsColor){case"green":return"$vuetify.icons.astro-status-normal";case"yellow":return"$vuetify.icons.astro-status-caution";case"red":return"$vuetify.icons.astro-status-critical";case"blue":return"$vuetify.icons.astro-status-standby";default:return null}},limitsColor(){let e=this._limitsState;if(null!=e)switch(e){case"GREEN":case"GREEN_HIGH":case"GREEN_LOW":return"green";case"YELLOW":case"YELLOW_HIGH":case"YELLOW_LOW":return"yellow";case"RED":case"RED_HIGH":case"RED_LOW":return"red";case"BLUE":return"blue";case"STALE":return"purple";default:return"white"}return""},limitsLetter(){let e=this._limitsState;if(null!=e){let n=e.charAt(0);return e.endsWith("_LOW")&&(n=n.toLowerCase()),n}return""}},created(){null!==this.value&&null!==this.limitsState||(this.valueId=`${this.parameters[0]}__${this.parameters[1]}__${this.parameters[2]}__${this.getType()}`,this.screen&&this.screen.addItem(this.valueId))},destroyed(){null!==this.value&&null!==this.limitsState||this.screen&&this.screen.deleteItem(this.valueId)},methods:{getType(){var e="WITH_UNITS";return this.parameters[3]&&(e=this.parameters[3]),e},formatValue(e){if(e&&"String"===e["json_class"]&&void 0!==e["raw"]){let n=Array.from(e["raw"].slice(0,32),(function(e){return("0"+(255&e).toString(16)).slice(-2)})).join(" ").toUpperCase();return e["raw"].length>32&&(n+="..."),n}if("Array"===Object.prototype.toString.call(e).slice(8,-1)){let n="[";for(let t=0;t<e.length;t++)"String"===Object.prototype.toString.call(e[t]).slice(8,-1)?n+='"'+e[t]+'"':n+=e[t],t!=e.length-1&&(n+=", ");return n+="]",n}return"Object"===Object.prototype.toString.call(e).slice(8,-1)?"":this.formatString&&e?sprintf(this.formatString,e):""+e},showContextMenu(e){e.preventDefault(),this.contextMenuShown=!1,this.x=e.clientX,this.y=e.clientY,this.$nextTick((()=>{this.contextMenuShown=!0}))}}};var T=function(){var e=this,n=e._self._c;return n("v-dialog",{attrs:{width:"600"},model:{value:e.show,callback:function(n){e.show=n},expression:"show"}},[n("v-card",[n("v-system-bar",[n("v-spacer"),e._v(" "),n("span",[e._v(" Details ")]),e._v(" "),n("v-spacer")],1),e._v(" "),n("v-card-title",[e._v("\n "+e._s(e.targetName)+" "+e._s(e.packetName)+" "+e._s(e.itemName)+"\n ")]),e._v(" "),n("v-card-subtitle",[e._v(e._s(e.details.description))]),e._v(" "),n("v-card-text",[n("v-container",{attrs:{fluid:""}},["tlm"===e.type?n("v-row",{attrs:{"no-gutters":""}},[n("v-col",{staticClass:"label",attrs:{cols:"3"}},[e._v("Item Values")]),e._v(" "),n("v-col"),e._v(" "),n("v-container",{staticClass:"ml-5 pa-0",attrs:{fluid:""}},[n("v-row",{attrs:{"no-gutters":""}},[n("v-col",{staticClass:"label",attrs:{cols:"4"}},[e._v("Raw Value")]),e._v(" "),n("v-col",[e._v(e._s(e.rawValue))])],1),e._v(" "),n("v-row",{attrs:{"no-gutters":""}},[n("v-col",{staticClass:"label",attrs:{cols:"4"}},[e._v("Converted Value")]),e._v(" "),n("v-col",[e._v(e._s(e.convertedValue))])],1),e._v(" "),n("v-row",{attrs:{"no-gutters":""}},[n("v-col",{staticClass:"label",attrs:{cols:"4"}},[e._v("Formatted Value")]),e._v(" "),n("v-col",[e._v(e._s(e.formattedValue))])],1),e._v(" "),n("v-row",{attrs:{"no-gutters":""}},[n("v-col",{staticClass:"label",attrs:{cols:"4"}},[e._v("With Units Value")]),e._v(" "),n("v-col",[e._v(e._s(e.unitsValue))])],1)],1)],1):e._e(),e._v(" "),n("v-row",{attrs:{"no-gutters":""}},[n("v-col",{staticClass:"label",attrs:{cols:"3"}},[e._v("Bit Offset")]),e._v(" "),n("v-col",[e._v(e._s(e.details.bit_offset))])],1),e._v(" "),n("v-row",{attrs:{"no-gutters":""}},[n("v-col",{staticClass:"label",attrs:{cols:"3"}},[e._v("Bit Size")]),e._v(" "),n("v-col",[e._v(e._s(e.details.bit_size))])],1),e._v(" "),e.details.array_size?n("v-row",{attrs:{"no-gutters":""}},[n("v-col",{staticClass:"label",attrs:{cols:"3"}},[e._v("Array Size")]),e._v(" "),n("v-col",[e._v(e._s(e.details.array_size))])],1):e._e(),e._v(" "),n("v-row",{attrs:{"no-gutters":""}},[n("v-col",{staticClass:"label",attrs:{cols:"3"}},[e._v("Data Type")]),e._v(" "),n("v-col",[e._v(e._s(e.details.data_type))])],1),e._v(" "),"cmd"===e.type?n("v-row",{attrs:{"no-gutters":""}},[n("v-col",{staticClass:"label",attrs:{cols:"3"}},[e._v("Minimum")]),e._v(" "),n("v-col",[e._v(e._s(e.details.minimum))])],1):e._e(),e._v(" "),"cmd"===e.type?n("v-row",{attrs:{"no-gutters":""}},[n("v-col",{staticClass:"label",attrs:{cols:"3"}},[e._v("Maximum")]),e._v(" "),n("v-col",[e._v(e._s(e.details.maximum))])],1):e._e(),e._v(" "),"cmd"===e.type?n("v-row",{attrs:{"no-gutters":""}},[n("v-col",{staticClass:"label",attrs:{cols:"3"}},[e._v("Default")]),e._v(" "),n("v-col",[e._v(e._s(e.details.default))])],1):e._e(),e._v(" "),n("v-row",{attrs:{"no-gutters":""}},[n("v-col",{staticClass:"label",attrs:{cols:"3"}},[e._v("Format String")]),e._v(" "),n("v-col",[e._v(e._s(e.details.format_string))])],1),e._v(" "),n("v-row",{attrs:{"no-gutters":""}},[n("v-col",{staticClass:"label",attrs:{cols:"3"}},[e._v("Read Conversion")]),e._v(" "),e.details.read_conversion?n("v-col",[e._v("\n Class: "+e._s(e.details.read_conversion.class)+"\n "),n("br"),e._v("\n Params:\n "+e._s(e.details.read_conversion.params)+"\n ")]):n("v-col")],1),e._v(" "),n("v-row",{attrs:{"no-gutters":""}},[n("v-col",{staticClass:"label",attrs:{cols:"3"}},[e._v("Write Conversion")]),e._v(" "),e.details.write_conversion?n("v-col",[e._v("\n Class: "+e._s(e.details.write_conversion.class)+"\n "),n("br"),e._v("\n Params:\n "+e._s(e.details.write_conversion.params)+"\n ")]):n("v-col")],1),e._v(" "),n("v-row",{attrs:{"no-gutters":""}},[n("v-col",{staticClass:"label",attrs:{cols:"3"}},[e._v("Id Value")]),e._v(" "),n("v-col",[e._v(e._s(e.details.id_value))])],1),e._v(" "),n("v-row",{attrs:{"no-gutters":""}},[n("v-col",{staticClass:"label",attrs:{cols:"3"}},[e._v("Units Full")]),e._v(" "),n("v-col",[e._v(e._s(e.details.units_full))])],1),e._v(" "),n("v-row",{attrs:{"no-gutters":""}},[n("v-col",{staticClass:"label",attrs:{cols:"3"}},[e._v("Units Abbr")]),e._v(" "),n("v-col",[e._v(e._s(e.details.units))])],1),e._v(" "),n("v-row",{attrs:{"no-gutters":""}},[n("v-col",{staticClass:"label",attrs:{cols:"3"}},[e._v("Endianness")]),e._v(" "),n("v-col",[e._v(e._s(e.details.endianness))])],1),e._v(" "),e.details.states?n("v-row",{attrs:{"no-gutters":""}},[n("v-col",{staticClass:"label",attrs:{cols:"3"}},[e._v("States")]),e._v(" "),n("v-col"),e._v(" "),n("v-container",{staticClass:"ml-5 pa-0",attrs:{fluid:""}},e._l(e.details.states,(function(t,i){return n("v-row",{key:i,attrs:{"no-gutters":""}},[n("v-col",{staticClass:"label",attrs:{cols:"4"}},[e._v(e._s(i))]),e._v(" "),n("v-col",[e._v(e._s(t.value))])],1)})),1)],1):n("v-row",{attrs:{"no-gutters":""}},[n("v-col",{staticClass:"label",attrs:{cols:"3"}},[e._v("States")]),e._v(" "),n("v-col",[e._v("None")])],1),e._v(" "),e.details.limits?n("v-row",{attrs:{"no-gutters":""}},[n("v-col",{staticClass:"label",attrs:{cols:"3"}},[e._v("Limits")]),e._v(" "),n("v-col"),e._v(" "),n("v-container",{staticClass:"ml-5 pa-0",attrs:{fluid:""}},e._l(e.details.limits,(function(t,i){return n("v-row",{key:i,attrs:{"no-gutters":""}},["enabled"===i?n("v-col",{staticClass:"label",attrs:{cols:"4"}},[e._v("Enabled")]):e._e(),e._v(" "),"enabled"===i?n("v-switch",{attrs:{dense:"","hide-details":""},on:{change:e.changeLimitsEnabled},model:{value:e.details.limits.enabled,callback:function(n){e.$set(e.details.limits,"enabled",n)},expression:"details.limits.enabled"}}):e._e(),e._v(" "),"enabled"!==i?n("v-col",{staticClass:"label",attrs:{cols:"4"}},[e._v(e._s(i))]):e._e(),e._v(" "),"enabled"!==i?n("div",[e._v(e._s(e.formatLimit(t)))]):e._e(),e._v(" "),n("v-col")],1)})),1)],1):n("v-row",{attrs:{"no-gutters":""}},[n("v-col",{staticClass:"label",attrs:{cols:"3"}},[e._v("Limits")]),e._v(" "),n("v-col",[e._v("None")])],1),e._v(" "),e.details.meta?n("v-row",{attrs:{"no-gutters":""}},[n("v-col",{staticClass:"label",attrs:{cols:"3"}},[e._v("Meta")]),e._v(" "),n("v-col"),e._v(" "),n("v-container",{staticClass:"ml-5 pa-0",attrs:{fluid:""}},e._l(e.details.meta,(function(t,i){return n("v-row",{key:i,attrs:{"no-gutters":""}},[n("v-col",{staticClass:"label",attrs:{cols:"4"}},[e._v(e._s(i))]),e._v(" "),n("v-col",[e._v(e._s(t))])],1)})),1)],1):n("v-row",{attrs:{"no-gutters":""}},[n("v-col",{staticClass:"label",attrs:{cols:"3"}},[e._v("Meta")]),e._v(" "),n("v-col",[e._v("None")])],1)],1)],1)],1)],1)},$=[];const M={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,n){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 n=0;n<e.length;n++){let t=null;if("String"===e[n][0]["json_class"]&&void 0!==e[n][0]["raw"]?t=e[n][0]["raw"]:"BLOCK"===this.details.data_type&&(t=e[n][0]),null!==t){t=t.slice(0,parseInt(this.details.bit_size)/8);let i=!1;t.length>64&&(i=!0),e[n][0]=Array.from(t.slice(0,64),(function(e){return" "===e?"20":("0"+(255&e).toString(16)).slice(-2)})).join(" ").toUpperCase(),i&&(e[n][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 n=!1;e.limits.enabled&&(n=!0,delete e.limits.enabled),this.details.limits={enabled:n,...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}}},D=M;t(1727);var R=(0,I.A)(D,T,$,!1,null,"6659f972",null);const V=R.exports,H=4,W={components:{DetailsDialog:V},mixins:[O],data:function(){return{width:12+H}},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])+H,"ch",this.width)}},P=W;t(8087);var F=(0,I.A)(P,E,N,!1,null,"f6adf1e0",null);const G=F.exports,U={mixins:[b],components:{LabelWidget:k,ValueWidget:G},computed:{labelName(){return[this.parameters[2]+":"]},valueParameters(){return[this.parameters[0],this.parameters[1],this.parameters[2],this.parameters[3],this.parameters[4]]}}},B=U;var K=(0,I.A)(B,_,g,!1,null,null,null);const Y=K.exports;var z=function(){var e=this,n=e._self._c;return n("div",{ref:"container",staticClass:"d-flex flex-row",style:e.computedStyle},[n("labelvalue-widget",{attrs:{parameters:e.parameters,settings:e.labelValueSettings}}),e._v(" "),n("limitsbar-widget",{attrs:{parameters:e.limitsBarParameters,settings:[...e.settings],"widget-index":2}})],1)},j=[],q=function(){var e=this,n=e._self._c;return n("div",{staticClass:"limitsbar",style:[e.cssProps,e.computedStyle]},[e._m(0)])},J=[function(){var e=this,n=e._self._c;return n("div",{staticClass:"limitsbar__container"},[n("div",{staticClass:"limitsbar__redlow"}),e._v(" "),n("div",{staticClass:"limitsbar__redhigh"}),e._v(" "),n("div",{staticClass:"limitsbar__yellowlow"}),e._v(" "),n("div",{staticClass:"limitsbar__yellowhigh"}),e._v(" "),n("div",{staticClass:"limitsbar__greenlow"}),e._v(" "),n("div",{staticClass:"limitsbar__greenhigh"}),e._v(" "),n("div",{staticClass:"limitsbar__blue"}),e._v(" "),n("div",{staticClass:"limitsbar__line"}),e._v(" "),n("div",{staticClass:"limitsbar__arrow"})])}];const X="DEFAULT",Q={mixins:[b],data(){return{width:160,height:22,minValue:null,maxValue:null,scale:0,redLow:0,yellowLow:0,greenLow:0,greenHigh:0,yellowHigh:0,redHigh:0,blue:0,api:null,limitsSettings:{DEFAULT:[]},currentLimitsSet:X,currentSetRefreshInterval:null}},computed:{cssProps:function(){let e=null;this.screen&&(e=this.screen.screenValues[this.valueId][0]);let n=this.modifyLimits(this.limitsSettings[this.selectedLimitsSet]);return this.calcLimits(n),{"--height":this.height+"px","--width":this.width+"px","--container-height":this.height-5+"px","--position":this.calcPosition(e,n)+"%","--redlow-width":this.redLow+"%","--redhigh-width":this.redHigh+"%","--yellowlow-width":this.yellowLow+"%","--yellowhigh-width":this.yellowHigh+"%","--greenlow-width":this.greenLow+"%","--greenhigh-width":this.greenHigh+"%","--blue-width":this.blue+"%"}},selectedLimitsSet:function(){return this.limitsSettings.hasOwnProperty(this.currentLimitsSet)?this.currentLimitsSet:X}},created(){this.api=new d,this.api.get_limits(this.parameters[0],this.parameters[1],this.parameters[2]).then((e=>{this.limitsSettings=e})),this.getCurrentLimitsSet(),this.currentSetRefreshInterval=setInterval(this.getCurrentLimitsSet,6e4),this.settings.forEach((e=>{"MIN_VALUE"===e[0]&&(this.minValue=parseInt(e[1])),"MAX_VALUE"===e[0]&&(this.maxValue=parseInt(e[1]))})),this.width=this.setWidth(this.parameters[4],"px",this.width),this.height=this.setHeight(this.parameters[5],"px",this.height);let e="CONVERTED";this.parameters[3]&&(e=this.parameters[3]),this.valueId=`${this.parameters[0]}__${this.parameters[1]}__${this.parameters[2]}__${e}`,this.screen&&this.screen.addItem(this.valueId)},destroyed(){this.screen&&this.screen.deleteItem(this.valueId),clearInterval(this.currentSetRefreshInterval)},methods:{modifyLimits(e){this.redLow=10,this.redHigh=10,this.minValue&&(e[0]<=this.minValue&&(e[0]=this.minValue,this.redLow=0),e[1]<=this.minValue&&(e[1]=this.minValue),e[2]<=this.minValue&&(e[2]=this.minValue),e[3]<=this.minValue&&(e[3]=this.minValue),e.length>4&&e[4]<=this.minValue&&(e[4]=this.minValue),e.length>4&&e[5]<=this.minValue&&(e[5]=this.minValue)),this.maxValue&&(e[0]>=this.maxValue&&(e[0]=this.maxValue),e[1]>=this.maxValue&&(e[1]=this.maxValue),e[2]>=this.maxValue&&(e[2]=this.maxValue),e[3]>=this.maxValue&&(e[3]=this.maxValue,this.redHigh=0),e.length>4&&e[4]>=this.maxValue&&(e[4]=this.maxValue),e.length>4&&e[5]>=this.maxValue&&(e[5]=this.maxValue)),e[0]==e[1]&&(this.yellowLow=0),e[2]==e[3]&&(this.yellowHigh=0);let n=80;return 0==this.redLow&&(n+=10),0==this.redHigh&&(n+=10),this.scale=(e[3]-e[0])/n,e},calcPosition(e,n){if(null==e||!n)return;let t=n[0]-10*this.scale;this.minValue&&this.minValue==n[0]&&(t=n[0]);let i=n[3]-10*this.scale;if(this.maxValue&&this.maxValue==n[3]&&(i=n[3]),e.raw)return"-Infinity"===e.raw?0:100;if(e<this.min)return 0;if(e>this.max)return 100;{const n=parseInt((e-t)/this.scale);return n>100?100:n<0?0:n}},calcLimits(e){e&&(this.yellowLow=Math.round((e[1]-e[0])/this.scale),this.yellowHigh=Math.round((e[3]-e[2])/this.scale),e.length>4?(this.greenLow=Math.round((e[4]-e[1])/this.scale),this.greenHigh=Math.round((e[2]-e[5])/this.scale),this.blue=Math.round(100-this.redLow-this.yellowLow-this.greenLow-this.greenHigh-this.yellowHigh-this.redHigh)):(this.greenLow=Math.round(100-this.redLow-this.yellowLow-this.yellowHigh-this.redHigh),this.greenHigh=0,this.blue=0))},getCurrentLimitsSet:function(){this.api.get_limits_set().then((e=>{this.currentLimitsSet=e}))}}},Z=Q;t(6619);var ee=(0,I.A)(Z,q,J,!1,null,"344f6330",null);const ne=ee.exports,te={mixins:[b],components:{LabelvalueWidget:Y,LimitsbarWidget:ne},computed:{labelValueSettings(){return[...this.settings.filter((e=>"__SCREEN__"===e[0])),...this.settings.filter((e=>0===parseInt(e[0])||1===parseInt(e[0])))]},limitsBarParameters(){return[this.parameters[0],this.parameters[1],this.parameters[2],"CONVERTED"]}}},ie=te;var le=(0,I.A)(ie,z,j,!1,null,null,null);const se=le.exports;var oe=t(584),ae=t(2509);function re(){var e="/openc3/plugins/packages/openc3-cosmos-tool-limitsmonitor/src/tools/LimitsMonitor/LimitsControl.vue",n="2107277a34a39a969f13d2c2c8065301015d18dc",t=new Function("return this")(),i="__coverage__",l={path:"/openc3/plugins/packages/openc3-cosmos-tool-limitsmonitor/src/tools/LimitsMonitor/LimitsControl.vue",statementMap:{0:{start:{line:17,column:21},end:{line:17,column:23}},1:{start:{line:21,column:4},end:{line:40,column:5}},2:{start:{line:44,column:6},end:{line:48,column:7}},3:{start:{line:45,column:8},end:{line:45,column:61}},4:{start:{line:47,column:8},end:{line:47,column:17}},5:{start:{line:51,column:6},end:{line:55,column:7}},6:{start:{line:52,column:8},end:{line:52,column:32}},7:{start:{line:54,column:8},end:{line:54,column:58}},8:{start:{line:58,column:6},end:{line:58,column:61}},9:{start:{line:58,column:37},end:{line:58,column:60}},10:{start:{line:61,column:6},end:{line:73,column:7}},11:{start:{line:63,column:10},end:{line:63,column:53}},12:{start:{line:65,column:10},end:{line:65,column:54}},13:{start:{line:67,column:10},end:{line:67,column:55}},14:{start:{line:70,column:10},end:{line:70,column:54}},15:{start:{line:72,column:10},end:{line:72,column:21}},16:{start:{line:77,column:4},end:{line:77,column:30}},17:{start:{line:79,column:4},end:{line:87,column:5}},18:{start:{line:80,column:6},end:{line:86,column:7}},19:{start:{line:82,column:8},end:{line:82,column:35}},20:{start:{line:85,column:8},end:{line:85,column:37}},21:{start:{line:88,column:4},end:{line:88,column:28}},22:{start:{line:89,column:4},end:{line:89,column:30}},23:{start:{line:90,column:4},end:{line:93,column:5}},24:{start:{line:95,column:4},end:{line:104,column:8}},25:{start:{line:98,column:10},end:{line:98,column:33}},26:{start:{line:99,column:10},end:{line:99,column:37}},27:{start:{line:103,column:8},end:{line:103,column:52}},28:{start:{line:105,column:4},end:{line:115,column:8}},29:{start:{line:108,column:10},end:{line:108,column:33}},30:{start:{line:109,column:25},end:{line:109,column:41}},31:{start:{line:110,column:10},end:{line:110,column:41}},32:{start:{line:114,column:8},end:{line:114,column:52}},33:{start:{line:118,column:4},end:{line:120,column:12}},34:{start:{line:119,column:6},end:{line:119,column:19}},35:{start:{line:123,column:4},end:{line:126,column:5}},36:{start:{line:124,column:6},end:{line:124,column:33}},37:{start:{line:125,column:6},end:{line:125,column:25}},38:{start:{line:127,column:4},end:{line:129,column:5}},39:{start:{line:128,column:6},end:{line:128,column:43}},40:{start:{line:130,column:4},end:{line:132,column:5}},41:{start:{line:131,column:6},end:{line:131,column:43}},42:{start:{line:133,column:4},end:{line:133,column:27}},43:{start:{line:137,column:6},end:{line:139,column:8}},44:{start:{line:138,column:8},end:{line:138,column:38}},45:{start:{line:142,column:6},end:{line:142,column:21}},46:{start:{line:143,column:6},end:{line:143,column:24}},47:{start:{line:145,column:6},end:{line:173,column:8}},48:{start:{line:146,column:8},end:{line:171,column:9}},49:{start:{line:147,column:25},end:{line:147,column:40}},50:{start:{line:149,column:10},end:{line:151,column:11}},51:{start:{line:149,column:45},end:{line:149,column:71}},52:{start:{line:150,column:12},end:{line:150,column:20}},53:{start:{line:153,column:10},end:{line:153,column:38}},54:{start:{line:154,column:25},end:{line:158,column:11}},55:{start:{line:159,column:10},end:{line:161,column:11}},56:{start:{line:160,column:12},end:{line:160,column:40}},57:{start:{line:162,column:10},end:{line:164,column:11}},58:{start:{line:163,column:12},end:{line:163,column:37}},59:{start:{line:165,column:10},end:{line:169,column:11}},60:{start:{line:166,column:12},end:{line:166,column:38}},61:{start:{line:168,column:12},end:{line:168,column:37}},62:{start:{line:170,column:10},end:{line:170,column:35}},63:{start:{line:172,column:8},end:{line:172,column:31}},64:{start:{line:176,column:20},end:{line:176,column:27}},65:{start:{line:177,column:6},end:{line:189,column:7}},66:{start:{line:178,column:8},end:{line:180,column:9}},67:{start:{line:178,column:43},end:{line:178,column:65}},68:{start:{line:179,column:10},end:{line:179,column:18}},69:{start:{line:182,column:8},end:{line:184,column:9}},70:{start:{line:183,column:10},end:{line:183,column:28}},71:{start:{line:185,column:8},end:{line:188,column:9}},72:{start:{line:186,column:10},end:{line:186,column:25}},73:{start:{line:187,column:10},end:{line:187,column:15}},74:{start:{line:190,column:6},end:{line:190,column:33}},75:{start:{line:193,column:50},end:{line:193,column:66}},76:{start:{line:194,column:23},end:{line:194,column:55}},77:{start:{line:195,column:6},end:{line:195,column:35}},78:{start:{line:196,column:6},end:{line:196,column:38}},79:{start:{line:198,column:6},end:{line:206,column:7}},80:{start:{line:199,column:20},end:{line:199,column:80}},81:{start:{line:199,column:54},end:{line:199,column:79}},82:{start:{line:200,column:8},end:{line:205,column:9}},83:{start:{line:201,column:10},end:{line:201,column:15}},84:{start:{line:203,column:27},end:{line:203,column:65}},85:{start:{line:204,column:10},end:{line:204,column:72}},86:{start:{line:207,column:6},end:{line:207,column:29}},87:{start:{line:210,column:6},end:{line:210,column:29}},88:{start:{line:211,column:6},end:{line:211,column:38}},89:{start:{line:212,column:6},end:{line:212,column:27}},90:{start:{line:213,column:6},end:{line:213,column:29}},91:{start:{line:216,column:6},end:{line:216,column:35}},92:{start:{line:217,column:6},end:{line:217,column:26}},93:{start:{line:218,column:6},end:{line:218,column:30}},94:{start:{line:221,column:20},end:{line:223,column:7}},95:{start:{line:222,column:8},end:{line:222,column:32}},96:{start:{line:224,column:6},end:{line:224,column:33}},97:{start:{line:225,column:6},end:{line:225,column:36}},98:{start:{line:228,column:6},end:{line:228,column:23}},99:{start:{line:229,column:6},end:{line:229,column:26}},100:{start:{line:230,column:6},end:{line:230,column:30}},101:{start:{line:233,column:6},end:{line:233,column:39}},102:{start:{line:236,column:6},end:{line:241,column:7}},103:{start:{line:238,column:8},end:{line:240,column:9}},104:{start:{line:239,column:10},end:{line:239,column:34}},105:{start:{line:244,column:6},end:{line:300,column:7}},106:{start:{line:245,column:8},end:{line:245,column:46}},107:{start:{line:249,column:8},end:{line:251,column:9}},108:{start:{line:250,column:10},end:{line:250,column:18}},109:{start:{line:253,column:23},end:{line:253,column:93}},110:{start:{line:254,column:22},end:{line:256,column:9}},111:{start:{line:255,column:10},end:{line:255,column:38}},112:{start:{line:258,column:8},end:{line:262,column:9}},113:{start:{line:259,column:10},end:{line:259,column:75}},114:{start:{line:260,column:10},end:{line:260,column:33}},115:{start:{line:261,column:10},end:{line:261,column:18}},116:{start:{line:264,column:8},end:{line:266,column:9}},117:{start:{line:264,column:43},end:{line:264,column:69}},118:{start:{line:265,column:10},end:{line:265,column:18}},119:{start:{line:268,column:8},end:{line:276,column:9}},120:{start:{line:275,column:10},end:{line:275,column:18}},121:{start:{line:277,column:23},end:{line:288,column:9}},122:{start:{line:289,column:8},end:{line:296,column:9}},123:{start:{line:293,column:10},end:{line:293,column:36}},124:{start:{line:295,column:10},end:{line:295,column:35}},125:{start:{line:297,column:8},end:{line:297,column:70}},126:{start:{line:298,column:8},end:{line:298,column:33}},127:{start:{line:299,column:8},end:{line:299,column:31}},128:{start:{line:303,column:6},end:{line:307,column:7}},129:{start:{line:304,column:8},end:{line:306,column:10}},130:{start:{line:305,column:10},end:{line:305,column:33}},131:{start:{line:310,column:6},end:{line:310,column:29}},132:{start:{line:311,column:6},end:{line:314,column:7}},133:{start:{line:311,column:19},end:{line:311,column:20}},134:{start:{line:312,column:8},end:{line:312,column:42}},135:{start:{line:313,column:8},end:{line:313,column:66}},136:{start:{line:317,column:6},end:{line:317,column:36}},137:{start:{line:318,column:6},end:{line:318,column:58}},138:{start:{line:321,column:18},end:{line:321,column:51}},139:{start:{line:322,column:6},end:{line:322,column:39}},140:{start:{line:327,column:6},end:{line:327,column:36}}},fnMap:{0:{name:"(anonymous_0)",decl:{start:{line:17,column:15},end:{line:17,column:16}},loc:{start:{line:17,column:21},end:{line:17,column:23}},line:17},1:{name:"(anonymous_1)",decl:{start:{line:20,column:2},end:{line:20,column:3}},loc:{start:{line:20,column:9},end:{line:41,column:3}},line:20},2:{name:"(anonymous_2)",decl:{start:{line:43,column:4},end:{line:43,column:5}},loc:{start:{line:43,column:21},end:{line:49,column:5}},line:43},3:{name:"(anonymous_3)",decl:{start:{line:50,column:4},end:{line:50,column:5}},loc:{start:{line:50,column:28},end:{line:56,column:5}},line:50},4:{name:"(anonymous_4)",decl:{start:{line:57,column:4},end:{line:57,column:5}},loc:{start:{line:57,column:23},end:{line:59,column:5}},line:57},5:{name:"(anonymous_5)",decl:{start:{line:58,column:30},end:{line:58,column:31}},loc:{start:{line:58,column:37},end:{line:58,column:60}},line:58},6:{name:"(anonymous_6)",decl:{start:{line:60,column:4},end:{line:60,column:5}},loc:{start:{line:60,column:16},end:{line:74,column:5}},line:60},7:{name:"(anonymous_7)",decl:{start:{line:76,column:2},end:{line:76,column:3}},loc:{start:{line:76,column:12},end:{line:116,column:3}},line:76},8:{name:"(anonymous_8)",decl:{start:{line:97,column:18},end:{line:97,column:19}},loc:{start:{line:97,column:30},end:{line:100,column:9}},line:97},9:{name:"(anonymous_9)",decl:{start:{line:102,column:12},end:{line:102,column:13}},loc:{start:{line:102,column:36},end:{line:104,column:7}},line:102},10:{name:"(anonymous_10)",decl:{start:{line:107,column:18},end:{line:107,column:19}},loc:{start:{line:107,column:28},end:{line:111,column:9}},line:107},11:{name:"(anonymous_11)",decl:{start:{line:113,column:12},end:{line:113,column:13}},loc:{start:{line:113,column:36},end:{line:115,column:7}},line:113},12:{name:"(anonymous_12)",decl:{start:{line:117,column:2},end:{line:117,column:3}},loc:{start:{line:117,column:12},end:{line:121,column:3}},line:117},13:{name:"(anonymous_13)",decl:{start:{line:118,column:31},end:{line:118,column:32}},loc:{start:{line:118,column:37},end:{line:120,column:5}},line:118},14:{name:"(anonymous_14)",decl:{start:{line:122,column:2},end:{line:122,column:3}},loc:{start:{line:122,column:14},end:{line:134,column:3}},line:122},15:{name:"(anonymous_15)",decl:{start:{line:136,column:25},end:{line:136,column:26}},loc:{start:{line:136,column:37},end:{line:140,column:5}},line:136},16:{name:"(anonymous_16)",decl:{start:{line:137,column:37},end:{line:137,column:38}},loc:{start:{line:137,column:49},end:{line:139,column:7}},line:137},17:{name:"(anonymous_17)",decl:{start:{line:141,column:4},end:{line:141,column:5}},loc:{start:{line:141,column:24},end:{line:174,column:5}},line:141},18:{name:"(anonymous_18)",decl:{start:{line:145,column:40},end:{line:145,column:41}},loc:{start:{line:145,column:51},end:{line:173,column:7}},line:145},19:{name:"(anonymous_19)",decl:{start:{line:149,column:32},end:{line:149,column:33}},loc:{start:{line:149,column:45},end:{line:149,column:71}},line:149},20:{name:"(anonymous_20)",decl:{start:{line:175,column:4},end:{line:175,column:5}},loc:{start:{line:175,column:23},end:{line:191,column:5}},line:175},21:{name:"(anonymous_21)",decl:{start:{line:178,column:30},end:{line:178,column:31}},loc:{start:{line:178,column:43},end:{line:178,column:65}},line:178},22:{name:"(anonymous_22)",decl:{start:{line:192,column:4},end:{line:192,column:5}},loc:{start:{line:192,column:33},end:{line:208,column:5}},line:192},23:{name:"(anonymous_23)",decl:{start:{line:199,column:44},end:{line:199,column:45}},loc:{start:{line:199,column:54},end:{line:199,column:79}},line:199},24:{name:"(anonymous_24)",decl:{start:{line:209,column:4},end:{line:209,column:5}},loc:{start:{line:209,column:31},end:{line:214,column:5}},line:209},25:{name:"(anonymous_25)",decl:{start:{line:215,column:4},end:{line:215,column:5}},loc:{start:{line:215,column:23},end:{line:219,column:5}},line:215},26:{name:"(anonymous_26)",decl:{start:{line:220,column:4},end:{line:220,column:5}},loc:{start:{line:220,column:21},end:{line:226,column:5}},line:220},27:{name:"(anonymous_27)",decl:{start:{line:221,column:44},end:{line:221,column:45}},loc:{start:{line:222,column:8},end:{line:222,column:32}},line:222},28:{name:"(anonymous_28)",decl:{start:{line:227,column:4},end:{line:227,column:5}},loc:{start:{line:227,column:15},end:{line:231,column:5}},line:227},29:{name:"(anonymous_29)",decl:{start:{line:232,column:4},end:{line:232,column:5}},loc:{start:{line:232,column:20},end:{line:234,column:5}},line:232},30:{name:"(anonymous_30)",decl:{start:{line:235,column:4},end:{line:235,column:5}},loc:{start:{line:235,column:31},end:{line:242,column:5}},line:235},31:{name:"(anonymous_31)",decl:{start:{line:243,column:4},end:{line:243,column:5}},loc:{start:{line:243,column:29},end:{line:301,column:5}},line:243},32:{name:"(anonymous_32)",decl:{start:{line:254,column:46},end:{line:254,column:47}},loc:{start:{line:255,column:10},end:{line:255,column:38}},line:255},33:{name:"(anonymous_33)",decl:{start:{line:264,column:30},end:{line:264,column:31}},loc:{start:{line:264,column:43},end:{line:264,column:69}},line:264},34:{name:"(anonymous_34)",decl:{start:{line:302,column:4},end:{line:302,column:5}},loc:{start:{line:302,column:13},end:{line:308,column:5}},line:302},35:{name:"(anonymous_35)",decl:{start:{line:304,column:55},end:{line:304,column:56}},loc:{start:{line:304,column:65},end:{line:306,column:9}},line:304},36:{name:"(anonymous_36)",decl:{start:{line:309,column:18},end:{line:309,column:19}},loc:{start:{line:309,column:36},end:{line:315,column:5}},line:309},37:{name:"(anonymous_37)",decl:{start:{line:316,column:13},end:{line:316,column:14}},loc:{start:{line:316,column:32},end:{line:319,column:5}},line:316},38:{name:"(anonymous_38)",decl:{start:{line:320,column:16},end:{line:320,column:17}},loc:{start:{line:320,column:35},end:{line:323,column:5}},line:320},39:{name:"(anonymous_39)",decl:{start:{line:326,column:4},end:{line:326,column:5}},loc:{start:{line:326,column:18},end:{line:328,column:5}},line:326}},branchMap:{0:{loc:{start:{line:44,column:6},end:{line:48,column:7}},type:"if",locations:[{start:{line:44,column:6},end:{line:48,column:7}},{start:{line:46,column:13},end:{line:48,column:7}}],line:44},1:{loc:{start:{line:51,column:6},end:{line:55,column:7}},type:"if",locations:[{start:{line:51,column:6},end:{line:55,column:7}},{start:{line:53,column:13},end:{line:55,column:7}}],line:51},2:{loc:{start:{line:61,column:6},end:{line:73,column:7}},type:"switch",locations:[{start:{line:62,column:8},end:{line:63,column:53}},{start:{line:64,column:8},end:{line:65,column:54}},{start:{line:66,column:8},end:{line:67,column:55}},{start:{line:68,column:8},end:{line:70,column:54}},{start:{line:71,column:8},end:{line:72,column:21}}],line:61},3:{loc:{start:{line:80,column:6},end:{line:86,column:7}},type:"if",locations:[{start:{line:80,column:6},end:{line:86,column:7}},{start:{line:83,column:13},end:{line:86,column:7}}],line:80},4:{loc:{start:{line:123,column:4},end:{line:126,column:5}},type:"if",locations:[{start:{line:123,column:4},end:{line:126,column:5}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:123},5:{loc:{start:{line:127,column:4},end:{line:129,column:5}},type:"if",locations:[{start:{line:127,column:4},end:{line:129,column:5}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:127},6:{loc:{start:{line:130,column:4},end:{line:132,column:5}},type:"if",locations:[{start:{line:130,column:4},end:{line:132,column:5}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:130},7:{loc:{start:{line:149,column:10},end:{line:151,column:11}},type:"if",locations:[{start:{line:149,column:10},end:{line:151,column:11}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:149},8:{loc:{start:{line:159,column:10},end:{line:161,column:11}},type:"if",locations:[{start:{line:159,column:10},end:{line:161,column:11}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:159},9:{loc:{start:{line:159,column:14},end:{line:159,column:71}},type:"binary-expr",locations:[{start:{line:159,column:14},end:{line:159,column:40}},{start:{line:159,column:44},end:{line:159,column:71}}],line:159},10:{loc:{start:{line:162,column:10},end:{line:164,column:11}},type:"if",locations:[{start:{line:162,column:10},end:{line:164,column:11}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:162},11:{loc:{start:{line:165,column:10},end:{line:169,column:11}},type:"if",locations:[{start:{line:165,column:10},end:{line:169,column:11}},{start:{line:167,column:17},end:{line:169,column:11}}],line:165},12:{loc:{start:{line:165,column:14},end:{line:165,column:53}},type:"binary-expr",locations:[{start:{line:165,column:14},end:{line:165,column:33}},{start:{line:165,column:37},end:{line:165,column:53}}],line:165},13:{loc:{start:{line:178,column:8},end:{line:180,column:9}},type:"if",locations:[{start:{line:178,column:8},end:{line:180,column:9}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:178},14:{loc:{start:{line:182,column:8},end:{line:184,column:9}},type:"if",locations:[{start:{line:182,column:8},end:{line:184,column:9}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:182},15:{loc:{start:{line:182,column:12},end:{line:182,column:56}},type:"binary-expr",locations:[{start:{line:182,column:12},end:{line:182,column:35}},{start:{line:182,column:39},end:{line:182,column:56}}],line:182},16:{loc:{start:{line:185,column:8},end:{line:188,column:9}},type:"if",locations:[{start:{line:185,column:8},end:{line:188,column:9}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:185},17:{loc:{start:{line:196,column:6},end:{line:196,column:38}},type:"binary-expr",locations:[{start:{line:196,column:6},end:{line:196,column:14}},{start:{line:196,column:18},end:{line:196,column:38}}],line:196},18:{loc:{start:{line:200,column:8},end:{line:205,column:9}},type:"if",locations:[{start:{line:200,column:8},end:{line:205,column:9}},{start:{line:202,column:15},end:{line:205,column:9}}],line:200},19:{loc:{start:{line:211,column:6},end:{line:211,column:38}},type:"binary-expr",locations:[{start:{line:211,column:6},end:{line:211,column:14}},{start:{line:211,column:18},end:{line:211,column:38}}],line:211},20:{loc:{start:{line:238,column:8},end:{line:240,column:9}},type:"if",locations:[{start:{line:238,column:8},end:{line:240,column:9}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:238},21:{loc:{start:{line:238,column:12},end:{line:238,column:69}},type:"binary-expr",locations:[{start:{line:238,column:12},end:{line:238,column:39}},{start:{line:238,column:43},end:{line:238,column:69}}],line:238},22:{loc:{start:{line:249,column:8},end:{line:251,column:9}},type:"if",locations:[{start:{line:249,column:8},end:{line:251,column:9}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:249},23:{loc:{start:{line:258,column:8},end:{line:262,column:9}},type:"if",locations:[{start:{line:258,column:8},end:{line:262,column:9}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:258},24:{loc:{start:{line:264,column:8},end:{line:266,column:9}},type:"if",locations:[{start:{line:264,column:8},end:{line:266,column:9}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:264},25:{loc:{start:{line:268,column:8},end:{line:276,column:9}},type:"if",locations:[{start:{line:268,column:8},end:{line:276,column:9}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:268},26:{loc:{start:{line:269,column:10},end:{line:273,column:11}},type:"binary-expr",locations:[{start:{line:269,column:10},end:{line:269,column:34}},{start:{line:270,column:10},end:{line:273,column:11}}],line:269},27:{loc:{start:{line:271,column:12},end:{line:272,column:52}},type:"binary-expr",locations:[{start:{line:271,column:12},end:{line:271,column:55}},{start:{line:272,column:12},end:{line:272,column:52}}],line:271},28:{loc:{start:{line:289,column:8},end:{line:296,column:9}},type:"if",locations:[{start:{line:289,column:8},end:{line:296,column:9}},{start:{line:294,column:15},end:{line:296,column:9}}],line:289},29:{loc:{start:{line:290,column:10},end:{line:291,column:43}},type:"binary-expr",locations:[{start:{line:290,column:10},end:{line:290,column:46}},{start:{line:291,column:10},end:{line:291,column:43}}],line:290},30:{loc:{start:{line:303,column:6},end:{line:307,column:7}},type:"if",locations:[{start:{line:303,column:6},end:{line:307,column:7}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:303}},s:{0:0,1:0,2:0,3:0,4:0,5:0,6:0,7:0,8:0,9:0,10:0,11:0,12:0,13:0,14:0,15:0,16:0,17:0,18:0,19:0,20:0,21:0,22:0,23:0,24:0,25:0,26:0,27:0,28:0,29:0,30:0,31:0,32:0,33:0,34:0,35:0,36:0,37:0,38:0,39:0,40:0,41:0,42:0,43:0,44:0,45:0,46:0,47:0,48:0,49:0,50:0,51:0,52:0,53:0,54:0,55:0,56:0,57:0,58:0,59:0,60:0,61:0,62:0,63:0,64:0,65:0,66:0,67:0,68:0,69:0,70:0,71:0,72:0,73:0,74:0,75:0,76:0,77:0,78:0,79:0,80:0,81:0,82:0,83:0,84:0,85:0,86:0,87:0,88:0,89:0,90:0,91:0,92:0,93:0,94:0,95:0,96:0,97:0,98:0,99:0,100:0,101:0,102:0,103:0,104:0,105:0,106:0,107:0,108:0,109:0,110:0,111:0,112:0,113:0,114:0,115:0,116:0,117:0,118:0,119:0,120:0,121:0,122:0,123:0,124:0,125:0,126:0,127:0,128:0,129:0,130:0,131:0,132:0,133:0,134:0,135:0,136:0,137:0,138:0,139:0,140:0},f:{0:0,1:0,2:0,3:0,4:0,5:0,6:0,7:0,8:0,9:0,10:0,11:0,12:0,13:0,14:0,15:0,16:0,17:0,18:0,19:0,20:0,21:0,22:0,23:0,24:0,25:0,26:0,27:0,28:0,29:0,30:0,31:0,32:0,33:0,34:0,35:0,36:0,37:0,38:0,39:0},b:{0:[0,0],1:[0,0],2:[0,0,0,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,0],24:[0,0],25:[0,0],26:[0,0],27:[0,0],28:[0,0],29:[0,0],30:[0,0]},inputSourceMap:{version:3,sources:["LimitsControl.vue"],names:[],mappings:";AA0KA;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;;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;;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;;AAEA;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;;AAEA;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;;AAEA;AACA;AACA;AACA;AACA;AACA",file:"LimitsControl.vue",sourceRoot:"src/tools/LimitsMonitor",sourcesContent:['\x3c!--\n# Copyright 2022 Ball Aerospace & Technologies Corp.\n# All Rights Reserved.\n#\n# This program is free software; you can modify and/or redistribute it\n# under the terms of the GNU Affero General Public License\n# as published by the Free Software Foundation; version 3 with\n# attribution addendums as found in the LICENSE.txt\n#\n# This program is distributed in the hope that it will be useful,\n# but WITHOUT ANY WARRANTY; without even the implied warranty of\n# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n# GNU Affero General Public License for more details.\n\n# Modified by OpenC3, Inc.\n# All changes Copyright 2023, OpenC3, Inc.\n# All Rights Reserved\n#\n# This file may also be used under the terms of a commercial license\n# if purchased from OpenC3, Inc.\n--\x3e\n\n<template>\n <div>\n <v-card class="pa-5">\n <v-row class="ma-1">\n <v-text-field\n dense\n outlined\n readonly\n hide-details\n label="Overall Limits State"\n :prepend-inner-icon="astroIcon"\n :value="overallStateFormatted"\n :class="textFieldClass"\n style="margin-right: 10px; max-width: 280px"\n data-test="overall-state"\n />\n <v-text-field\n dense\n outlined\n readonly\n hide-details\n label="Current Limits Set"\n :value="currentLimitsSet"\n style="max-width: 200px"\n data-test="limits-set"\n />\n </v-row>\n\n <v-row data-test="limits-row" class="my-0 ml-1 mr-1">\n <div class="pa-1 mt-1 mr-2 label" style="width: 170px">Timestamp</div>\n <div class="pa-1 mt-1 mr-2 label" style="width: 200px">Item Name</div>\n <div class="pa-1 mt-1 mr-2 label" style="width: 200px">Value</div>\n <div class="pa-1 mt-1 mr-2 label" style="width: 180px">Limits Bar</div>\n <div class="pa-1 mt-1 mr-2 label">Controls</div>\n </v-row>\n <div v-for="(item, index) in items" :key="item.key">\n <v-row data-test="limits-row" class="my-0 ml-1 mr-1">\n <div class="pa-1 mt-1 mr-2 label" style="width: 170px">\n {{ item.timestamp }}\n </div>\n <labelvaluelimitsbar-widget\n v-if="item.limits"\n :parameters="item.parameters"\n :settings="widgetSettings"\n />\n <labelvalue-widget\n v-else\n :parameters="item.parameters"\n :settings="widgetSettings"\n />\n <v-tooltip bottom>\n <template v-slot:activator="{ on, attrs }">\n <v-btn\n icon\n class="mr-2"\n @click="ignorePacket(item.key)"\n v-bind="attrs"\n v-on="on"\n >\n <v-icon> mdi-close-circle-multiple </v-icon>\n </v-btn>\n </template>\n <span>Ignore Entire Packet</span>\n </v-tooltip>\n <v-tooltip bottom>\n <template v-slot:activator="{ on, attrs }">\n <v-btn\n icon\n class="mr-2"\n @click="ignoreItem(item.key)"\n v-bind="attrs"\n v-on="on"\n >\n <v-icon> mdi-close-circle </v-icon>\n </v-btn>\n </template>\n <span>Ignore Item</span>\n </v-tooltip>\n <v-tooltip bottom>\n <template v-slot:activator="{ on, attrs }">\n <v-btn\n icon\n class="mr-2"\n @click="removeItem(item.key)"\n v-bind="attrs"\n v-on="on"\n >\n <v-icon> mdi-eye-off </v-icon>\n </v-btn>\n </template>\n <span>Temporarily Hide Item</span>\n </v-tooltip>\n </v-row>\n <v-divider v-if="index < items.length - 1" :key="index" />\n </div>\n <div class="footer">\n Note: Timestamp is "now" for items currently out of limits when the page\n is loaded.\n </div>\n </v-card>\n <v-dialog v-model="ignoredItemsDialog" max-width="600">\n <v-divider v-if="index < items.length - 1" :key="index" />\n <v-card>\n <v-system-bar>\n <v-spacer />\n <span>Ignored Items</span>\n <v-spacer />\n </v-system-bar>\n <v-card-text>\n <div class="my-2">\n <div v-for="(item, index) in ignoredFormatted" :key="index">\n <v-row class="ma-1">\n <span class="font-weight-black"> {{ item }} </span>\n <v-spacer />\n <v-btn\n @click="restoreItem(index)"\n small\n icon\n :data-test="`remove-ignore-${index}`"\n >\n <v-icon> mdi-delete </v-icon>\n </v-btn>\n </v-row>\n <v-divider\n v-if="index < ignoredFormatted.length - 1"\n :key="index"\n />\n </div>\n <v-divider v-if="index < items.length - 1" :key="index" />\n </div>\n </v-card-text>\n <v-card-actions>\n <v-btn outlined @click="clearAll"> Clear All </v-btn>\n <v-spacer />\n <v-btn\n @click="ignoredItemsDialog = false"\n class="mx-2"\n color="primary"\n >\n Ok\n </v-btn>\n </v-card-actions>\n </v-card>\n </v-dialog>\n </div>\n</template>\n\n<script>\nimport { OpenC3Api } from \'@openc3/tool-common/src/services/openc3-api\'\nimport Cable from \'@openc3/tool-common/src/services/cable.js\'\nimport LabelvalueWidget from \'@openc3/tool-common/src/components/widgets/LabelvalueWidget\'\nimport LabelvaluelimitsbarWidget from \'@openc3/tool-common/src/components/widgets/LabelvaluelimitsbarWidget\'\nimport Vue from \'vue\'\nimport { toDate, format } from \'date-fns\'\n\nexport default {\n components: {\n LabelvalueWidget,\n LabelvaluelimitsbarWidget,\n },\n props: {\n value: {\n type: Array,\n default: () => [],\n },\n },\n data() {\n return {\n api: null,\n cable: new Cable(),\n ignored: [],\n ignoredItemsDialog: false,\n overallState: \'GREEN\',\n currentLimitsSet: \'\',\n items: [],\n itemList: [],\n screenItems: [],\n screenValues: {},\n updateCounter: 0,\n widgetSettings: [\n [\'WIDTH\', \'580px\'], // Total of three subwidgets\n [\'0\', \'WIDTH\', \'200px\'],\n [\'1\', \'WIDTH\', \'200px\'],\n [\'2\', \'WIDTH\', \'180px\'],\n [\'__SCREEN__\', this],\n ],\n }\n },\n computed: {\n textFieldClass() {\n if (this.overallState) {\n return `textfield-${this.overallState.toLowerCase()}`\n } else {\n return \'\'\n }\n },\n overallStateFormatted() {\n if (this.ignored.length === 0) {\n return this.overallState\n } else {\n return `${this.overallState} (Some items ignored)`\n }\n },\n ignoredFormatted() {\n return this.ignored.map((x) => x.split(\'__\').join(\' \'))\n },\n astroIcon() {\n switch (this.overallState) {\n case \'GREEN\':\n return \'$vuetify.icons.astro-status-normal\'\n case \'YELLOW\':\n return \'$vuetify.icons.astro-status-caution\'\n case \'RED\':\n return \'$vuetify.icons.astro-status-critical\'\n case \'BLUE\':\n // This one is a little weird but it matches our color scheme\n return \'$vuetify.icons.astro-status-standby\'\n default:\n return null\n }\n },\n },\n created() {\n this.api = new OpenC3Api()\n // Value is passed in as the list of ignored items\n for (let item of this.value) {\n if (item.match(/.+__.+__.+/)) {\n // TARGET__PACKET__ITEM\n this.ignoreItem(item, true)\n } else {\n // TARGET__PACKET\n this.ignorePacket(item, true)\n }\n }\n this.updateOutOfLimits()\n this.getCurrentLimitsSet()\n this.currentSetRefreshInterval = setInterval(\n this.getCurrentLimitsSet,\n 10 * 1000,\n )\n\n this.cable\n .createSubscription(\'LimitsEventsChannel\', window.openc3Scope, {\n received: (parsed) => {\n this.cable.recordPing()\n this.handleMessages(parsed)\n },\n })\n .then((limitsSubscription) => {\n this.limitsSubscription = limitsSubscription\n })\n this.cable\n .createSubscription(\'ConfigEventsChannel\', window.openc3Scope, {\n received: (data) => {\n this.cable.recordPing()\n const parsed = JSON.parse(data)\n this.handleConfigEvents(parsed)\n },\n })\n .then((configSubscription) => {\n this.configSubscription = configSubscription\n })\n },\n mounted() {\n this.updater = setInterval(() => {\n this.update()\n }, 1000)\n },\n destroyed() {\n if (this.updater != null) {\n clearInterval(this.updater)\n this.updater = null\n }\n if (this.limitsSubscription) {\n this.limitsSubscription.unsubscribe()\n }\n if (this.configSubscription) {\n this.configSubscription.unsubscribe()\n }\n this.cable.disconnect()\n },\n methods: {\n getCurrentLimitsSet: function () {\n this.api.get_limits_set().then((result) => {\n this.currentLimitsSet = result\n })\n },\n updateOutOfLimits() {\n this.items = []\n this.itemList = []\n\n this.api.get_out_of_limits().then((items) => {\n for (const item of items) {\n let itemName = item.join(\'__\')\n // Skip ignored\n if (this.ignored.find((ignored) => itemName.includes(ignored))) {\n continue\n }\n\n this.itemList.push(itemName)\n let itemInfo = {\n key: item.slice(0, 3).join(\'__\'),\n parameters: item.slice(0, 3),\n timestamp: format(new Date(), \'yyyy-MM-dd HH:mm:ss.SSS\'),\n }\n if (item[3].includes(\'YELLOW\') && this.overallState !== \'RED\') {\n this.overallState = \'YELLOW\'\n }\n if (item[3].includes(\'RED\')) {\n this.overallState = \'RED\'\n }\n if (item[3] == \'YELLOW\' || item[3] == \'RED\') {\n itemInfo[\'limits\'] = false\n } else {\n itemInfo[\'limits\'] = true\n }\n this.items.push(itemInfo)\n }\n this.calcOverallState()\n })\n },\n calcOverallState() {\n let overall = \'GREEN\'\n for (let item of this.itemList) {\n if (this.ignored.find((ignored) => item.includes(ignored))) {\n continue\n }\n\n if (item.includes(\'YELLOW\') && overall !== \'RED\') {\n overall = \'YELLOW\'\n }\n if (item.includes(\'RED\')) {\n overall = \'RED\'\n break\n }\n }\n this.overallState = overall\n },\n ignorePacket(item, noUpdate) {\n let [target_name, packet_name, item_name] = item.split(\'__\')\n let newIgnored = `${target_name}__${packet_name}`\n this.ignored.push(newIgnored)\n noUpdate || this.updateIgnored()\n\n while (true) {\n let index = this.itemList.findIndex((item) => item.includes(newIgnored))\n if (index === -1) {\n break\n } else {\n let underIndex = this.itemList[index].lastIndexOf(\'__\')\n this.removeItem(this.itemList[index].substring(0, underIndex))\n }\n }\n this.calcOverallState()\n },\n ignoreItem(item, noUpdate) {\n this.ignored.push(item)\n noUpdate || this.updateIgnored()\n this.removeItem(item)\n this.calcOverallState()\n },\n restoreItem(index) {\n this.ignored.splice(index, 1)\n this.updateIgnored()\n this.updateOutOfLimits()\n },\n removeItem(item) {\n const index = this.itemList.findIndex((arrayItem) =>\n arrayItem.includes(item),\n )\n this.items.splice(index, 1)\n this.itemList.splice(index, 1)\n },\n clearAll() {\n this.ignored = []\n this.updateIgnored()\n this.updateOutOfLimits()\n },\n updateIgnored() {\n this.$emit(\'input\', this.ignored)\n },\n handleConfigEvents(config) {\n for (let event of config) {\n // When a target is deleted we refresh the list of items\n if (event[\'kind\'] === \'deleted\' && event[\'type\'] === \'target\') {\n this.updateOutOfLimits()\n }\n }\n },\n handleMessages(messages) {\n for (let message of messages) {\n message = JSON.parse(message[\'event\'])\n\n // We only want to handle LIMITS_CHANGE messages\n // NOTE: The channel also sends LIMITS_SETTINGS and LIMITS_SET messages\n if (message.type != \'LIMITS_CHANGE\') {\n continue\n }\n\n let itemName = `${message.target_name}__${message.packet_name}__${message.item_name}`\n const index = this.itemList.findIndex((arrayItem) =>\n arrayItem.includes(itemName),\n )\n // If we find an existing item we update the state and re-calc overall state\n if (index !== -1) {\n this.itemList[index] = `${itemName}__${message.new_limits_state}`\n this.calcOverallState()\n continue\n }\n // Skip ignored items\n if (this.ignored.find((ignored) => itemName.includes(ignored))) {\n continue\n }\n // Only process items who have gone out of limits\n if (\n message.new_limits_state &&\n !(\n message.new_limits_state.includes(\'YELLOW\') ||\n message.new_limits_state.includes(\'RED\')\n )\n ) {\n continue\n }\n let itemInfo = {\n key: itemName,\n timestamp: format(\n toDate(parseInt(message.time_nsec) / 1_000_000),\n \'yyyy-MM-dd HH:mm:ss.SSS\',\n ),\n parameters: [\n message.target_name,\n message.packet_name,\n message.item_name,\n ],\n }\n if (\n message.new_limits_state == \'YELLOW\' ||\n message.new_limits_state == \'RED\'\n ) {\n itemInfo[\'limits\'] = false\n } else {\n itemInfo[\'limits\'] = true\n }\n this.itemList.push(`${itemName}__${message.new_limits_state}`)\n this.items.push(itemInfo)\n this.calcOverallState()\n }\n },\n update() {\n if (this.screenItems.length !== 0) {\n this.api.get_tlm_values(this.screenItems).then((data) => {\n this.updateValues(data)\n })\n }\n },\n updateValues: function (values) {\n this.updateCounter += 1\n for (let i = 0; i < values.length; i++) {\n values[i].push(this.updateCounter)\n Vue.set(this.screenValues, this.screenItems[i], values[i])\n }\n },\n addItem: function (valueId) {\n this.screenItems.push(valueId)\n Vue.set(this.screenValues, valueId, [null, null, 0])\n },\n deleteItem: function (valueId) {\n let index = this.screenItems.indexOf(valueId)\n this.screenItems.splice(index, 1)\n },\n\n // Menu options\n showIgnored() {\n this.ignoredItemsDialog = true\n },\n },\n}\n<\/script>\n\n<style scoped>\n.footer {\n padding-top: 5px;\n}\n.v-input {\n background-color: var(--color-background-base-default);\n}\n/* TODO: Color the border */\n.textfield-green :deep(.v-text-field__slot) input,\n.textfield-green :deep(.v-text-field__slot) label {\n color: rgb(0, 200, 0);\n}\n\n.textfield-yellow :deep(.v-text-field__slot) input,\n.textfield-yellow :deep(.v-text-field__slot) label {\n color: rgb(255, 220, 0);\n}\n\n.textfield-red :deep(.v-text-field__slot) input,\n.textfield-red :deep(.v-text-field__slot) label {\n color: rgb(255, 45, 45);\n}\n</style>\n']},_coverageSchema:"1a1c01bbd47fc00a2c39e90264f33305004495a9",hash:"2107277a34a39a969f13d2c2c8065301015d18dc"},s=t[i]||(t[i]={});s[e]&&s[e].hash===n||(s[e]=l);var o=s[e];return re=function(){return o},o}re();const ce={components:{LabelvalueWidget:Y,LabelvaluelimitsbarWidget:se},props:{value:{type:Array,default:()=>(re().f[0]++,re().s[0]++,[])}},data(){return re().f[1]++,re().s[1]++,{api:null,cable:new f,ignored:[],ignoredItemsDialog:!1,overallState:"GREEN",currentLimitsSet:"",items:[],itemList:[],screenItems:[],screenValues:{},updateCounter:0,widgetSettings:[["WIDTH","580px"],["0","WIDTH","200px"],["1","WIDTH","200px"],["2","WIDTH","180px"],["__SCREEN__",this]]}},computed:{textFieldClass(){return re().f[2]++,re().s[2]++,this.overallState?(re().b[0][0]++,re().s[3]++,`textfield-${this.overallState.toLowerCase()}`):(re().b[0][1]++,re().s[4]++,"")},overallStateFormatted(){return re().f[3]++,re().s[5]++,0===this.ignored.length?(re().b[1][0]++,re().s[6]++,this.overallState):(re().b[1][1]++,re().s[7]++,`${this.overallState} (Some items ignored)`)},ignoredFormatted(){return re().f[4]++,re().s[8]++,this.ignored.map((e=>(re().f[5]++,re().s[9]++,e.split("__").join(" "))))},astroIcon(){switch(re().f[6]++,re().s[10]++,this.overallState){case"GREEN":return re().b[2][0]++,re().s[11]++,"$vuetify.icons.astro-status-normal";case"YELLOW":return re().b[2][1]++,re().s[12]++,"$vuetify.icons.astro-status-caution";case"RED":return re().b[2][2]++,re().s[13]++,"$vuetify.icons.astro-status-critical";case"BLUE":return re().b[2][3]++,re().s[14]++,"$vuetify.icons.astro-status-standby";default:return re().b[2][4]++,re().s[15]++,null}}},created(){re().f[7]++,re().s[16]++,this.api=new d,re().s[17]++;for(let e of this.value)re().s[18]++,e.match(/.+__.+__.+/)?(re().b[3][0]++,re().s[19]++,this.ignoreItem(e,!0)):(re().b[3][1]++,re().s[20]++,this.ignorePacket(e,!0));re().s[21]++,this.updateOutOfLimits(),re().s[22]++,this.getCurrentLimitsSet(),re().s[23]++,this.currentSetRefreshInterval=setInterval(this.getCurrentLimitsSet,1e4),re().s[24]++,this.cable.createSubscription("LimitsEventsChannel",window.openc3Scope,{received:e=>{re().f[8]++,re().s[25]++,this.cable.recordPing(),re().s[26]++,this.handleMessages(e)}}).then((e=>{re().f[9]++,re().s[27]++,this.limitsSubscription=e})),re().s[28]++,this.cable.createSubscription("ConfigEventsChannel",window.openc3Scope,{received:e=>{re().f[10]++,re().s[29]++,this.cable.recordPing();const n=(re().s[30]++,JSON.parse(e));re().s[31]++,this.handleConfigEvents(n)}}).then((e=>{re().f[11]++,re().s[32]++,this.configSubscription=e}))},mounted(){re().f[12]++,re().s[33]++,this.updater=setInterval((()=>{re().f[13]++,re().s[34]++,this.update()}),1e3)},destroyed(){re().f[14]++,re().s[35]++,null!=this.updater?(re().b[4][0]++,re().s[36]++,clearInterval(this.updater),re().s[37]++,this.updater=null):re().b[4][1]++,re().s[38]++,this.limitsSubscription?(re().b[5][0]++,re().s[39]++,this.limitsSubscription.unsubscribe()):re().b[5][1]++,re().s[40]++,this.configSubscription?(re().b[6][0]++,re().s[41]++,this.configSubscription.unsubscribe()):re().b[6][1]++,re().s[42]++,this.cable.disconnect()},methods:{getCurrentLimitsSet:function(){re().f[15]++,re().s[43]++,this.api.get_limits_set().then((e=>{re().f[16]++,re().s[44]++,this.currentLimitsSet=e}))},updateOutOfLimits(){re().f[17]++,re().s[45]++,this.items=[],re().s[46]++,this.itemList=[],re().s[47]++,this.api.get_out_of_limits().then((e=>{re().f[18]++,re().s[48]++;for(const n of e){let e=(re().s[49]++,n.join("__"));if(re().s[50]++,this.ignored.find((n=>(re().f[19]++,re().s[51]++,e.includes(n))))){re().b[7][0]++,re().s[52]++;continue}re().b[7][1]++,re().s[53]++,this.itemList.push(e);let t=(re().s[54]++,{key:n.slice(0,3).join("__"),parameters:n.slice(0,3),timestamp:(0,oe.GP)(new Date,"yyyy-MM-dd HH:mm:ss.SSS")});re().s[55]++,re().b[9][0]++,n[3].includes("YELLOW")&&(re().b[9][1]++,"RED"!==this.overallState)?(re().b[8][0]++,re().s[56]++,this.overallState="YELLOW"):re().b[8][1]++,re().s[57]++,n[3].includes("RED")?(re().b[10][0]++,re().s[58]++,this.overallState="RED"):re().b[10][1]++,re().s[59]++,re().b[12][0]++,"YELLOW"==n[3]||(re().b[12][1]++,"RED"==n[3])?(re().b[11][0]++,re().s[60]++,t["limits"]=!1):(re().b[11][1]++,re().s[61]++,t["limits"]=!0),re().s[62]++,this.items.push(t)}re().s[63]++,this.calcOverallState()}))},calcOverallState(){re().f[20]++;let e=(re().s[64]++,"GREEN");re().s[65]++;for(let n of this.itemList)if(re().s[66]++,this.ignored.find((e=>(re().f[21]++,re().s[67]++,n.includes(e)))))re().b[13][0]++,re().s[68]++;else{if(re().b[13][1]++,re().s[69]++,re().b[15][0]++,n.includes("YELLOW")&&(re().b[15][1]++,"RED"!==e)?(re().b[14][0]++,re().s[70]++,e="YELLOW"):re().b[14][1]++,re().s[71]++,n.includes("RED")){re().b[16][0]++,re().s[72]++,e="RED",re().s[73]++;break}re().b[16][1]++}re().s[74]++,this.overallState=e},ignorePacket(e,n){re().f[22]++;let[t,i,l]=(re().s[75]++,e.split("__")),s=(re().s[76]++,`${t}__${i}`);re().s[77]++,this.ignored.push(s),re().s[78]++,re().b[17][0]++,n||(re().b[17][1]++,this.updateIgnored()),re().s[79]++;while(1){let e=(re().s[80]++,this.itemList.findIndex((e=>(re().f[23]++,re().s[81]++,e.includes(s)))));if(re().s[82]++,-1===e){re().b[18][0]++,re().s[83]++;break}{re().b[18][1]++;let n=(re().s[84]++,this.itemList[e].lastIndexOf("__"));re().s[85]++,this.removeItem(this.itemList[e].substring(0,n))}}re().s[86]++,this.calcOverallState()},ignoreItem(e,n){re().f[24]++,re().s[87]++,this.ignored.push(e),re().s[88]++,re().b[19][0]++,n||(re().b[19][1]++,this.updateIgnored()),re().s[89]++,this.removeItem(e),re().s[90]++,this.calcOverallState()},restoreItem(e){re().f[25]++,re().s[91]++,this.ignored.splice(e,1),re().s[92]++,this.updateIgnored(),re().s[93]++,this.updateOutOfLimits()},removeItem(e){re().f[26]++;const n=(re().s[94]++,this.itemList.findIndex((n=>(re().f[27]++,re().s[95]++,n.includes(e)))));re().s[96]++,this.items.splice(n,1),re().s[97]++,this.itemList.splice(n,1)},clearAll(){re().f[28]++,re().s[98]++,this.ignored=[],re().s[99]++,this.updateIgnored(),re().s[100]++,this.updateOutOfLimits()},updateIgnored(){re().f[29]++,re().s[101]++,this.$emit("input",this.ignored)},handleConfigEvents(e){re().f[30]++,re().s[102]++;for(let n of e)re().s[103]++,re().b[21][0]++,"deleted"===n["kind"]&&(re().b[21][1]++,"target"===n["type"])?(re().b[20][0]++,re().s[104]++,this.updateOutOfLimits()):re().b[20][1]++},handleMessages(e){re().f[31]++,re().s[105]++;for(let n of e){if(re().s[106]++,n=JSON.parse(n["event"]),re().s[107]++,"LIMITS_CHANGE"!=n.type){re().b[22][0]++,re().s[108]++;continue}re().b[22][1]++;let e=(re().s[109]++,`${n.target_name}__${n.packet_name}__${n.item_name}`);const t=(re().s[110]++,this.itemList.findIndex((n=>(re().f[32]++,re().s[111]++,n.includes(e)))));if(re().s[112]++,-1!==t){re().b[23][0]++,re().s[113]++,this.itemList[t]=`${e}__${n.new_limits_state}`,re().s[114]++,this.calcOverallState(),re().s[115]++;continue}if(re().b[23][1]++,re().s[116]++,this.ignored.find((n=>(re().f[33]++,re().s[117]++,e.includes(n))))){re().b[24][0]++,re().s[118]++;continue}if(re().b[24][1]++,re().s[119]++,re().b[26][0]++,n.new_limits_state&&(re().b[26][1]++,re().b[27][0]++,!n.new_limits_state.includes("YELLOW")&&(re().b[27][1]++,!n.new_limits_state.includes("RED")))){re().b[25][0]++,re().s[120]++;continue}re().b[25][1]++;let i=(re().s[121]++,{key:e,timestamp:(0,oe.GP)((0,ae.a)(parseInt(n.time_nsec)/1e6),"yyyy-MM-dd HH:mm:ss.SSS"),parameters:[n.target_name,n.packet_name,n.item_name]});re().s[122]++,re().b[29][0]++,"YELLOW"==n.new_limits_state||(re().b[29][1]++,"RED"==n.new_limits_state)?(re().b[28][0]++,re().s[123]++,i["limits"]=!1):(re().b[28][1]++,re().s[124]++,i["limits"]=!0),re().s[125]++,this.itemList.push(`${e}__${n.new_limits_state}`),re().s[126]++,this.items.push(i),re().s[127]++,this.calcOverallState()}},update(){re().f[34]++,re().s[128]++,0!==this.screenItems.length?(re().b[30][0]++,re().s[129]++,this.api.get_tlm_values(this.screenItems).then((e=>{re().f[35]++,re().s[130]++,this.updateValues(e)}))):re().b[30][1]++},updateValues:function(e){re().f[36]++,re().s[131]++,this.updateCounter+=1,re().s[132]++;for(let n=(re().s[133]++,0);n<e.length;n++)re().s[134]++,e[n].push(this.updateCounter),re().s[135]++,r["default"].set(this.screenValues,this.screenItems[n],e[n])},addItem:function(e){re().f[37]++,re().s[136]++,this.screenItems.push(e),re().s[137]++,r["default"].set(this.screenValues,e,[null,null,0])},deleteItem:function(e){re().f[38]++;let n=(re().s[138]++,this.screenItems.indexOf(e));re().s[139]++,this.screenItems.splice(n,1)},showIgnored(){re().f[39]++,re().s[140]++,this.ignoredItemsDialog=!0}}},me=ce;t(8355);var ue=(0,I.A)(me,h,v,!1,null,"db62090e",null);const de=ue.exports;function Ae(){var e="/openc3/plugins/packages/openc3-cosmos-tool-limitsmonitor/src/tools/LimitsMonitor/LimitsEvents.vue",n="f705277cab2766b5ff31fc8557428a5216c43188",t=new Function("return this")(),i="__coverage__",l={path:"/openc3/plugins/packages/openc3-cosmos-tool-limitsmonitor/src/tools/LimitsMonitor/LimitsEvents.vue",statementMap:{0:{start:{line:1,column:13},end:{line:2,column:1}},1:{start:{line:1,column:39},end:{line:1,column:43}},2:{start:{line:1,column:47},end:{line:1,column:59}},3:{start:{line:1,column:60},end:{line:1,column:1106}},4:{start:{line:1,column:416},end:{line:1,column:430}},5:{start:{line:1,column:778},end:{line:1,column:846}},6:{start:{line:1,column:889},end:{line:1,column:961}},7:{start:{line:1,column:1006},end:{line:1,column:1096}},8:{start:{line:3,column:22},end:{line:3,column:24}}},fnMap:{0:{name:"render",decl:{start:{line:1,column:22},end:{line:1,column:28}},loc:{start:{line:1,column:30},end:{line:2,column:1}},line:1},1:{name:"(anonymous_1)",decl:{start:{line:1,column:400},end:{line:1,column:401}},loc:{start:{line:1,column:415},end:{line:1,column:431}},line:1},2:{name:"(anonymous_2)",decl:{start:{line:1,column:759},end:{line:1,column:760}},loc:{start:{line:1,column:777},end:{line:1,column:847}},line:1},3:{name:"(anonymous_3)",decl:{start:{line:1,column:870},end:{line:1,column:871}},loc:{start:{line:1,column:888},end:{line:1,column:962}},line:1},4:{name:"(anonymous_4)",decl:{start:{line:1,column:987},end:{line:1,column:988}},loc:{start:{line:1,column:1005},end:{line:1,column:1097}},line:1}},branchMap:{},s:{0:0,1:0,2:0,3:0,4:0,5:0,6:0,7:0,8:0},f:{0:0,1:0,2:0,3:0,4:0},b:{},_coverageSchema:"1a1c01bbd47fc00a2c39e90264f33305004495a9",hash:"f705277cab2766b5ff31fc8557428a5216c43188"},s=t[i]||(t[i]={});s[e]&&s[e].hash===n||(s[e]=l);var o=s[e];return Ae=function(){return o},o}Ae(),Ae().s[0]++;var he=function(){Ae().f[0]++;var e=(Ae().s[1]++,this),n=(Ae().s[2]++,e._self._c);return Ae().s[3]++,n("v-card",{staticClass:"card-height"},[n("v-card-title",[e._v("\n Limits Events\n "),n("v-spacer"),e._v(" "),n("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(n){Ae().f[1]++,Ae().s[4]++,e.search=n},expression:"search"}})],1),e._v(" "),n("v-data-table",{attrs:{headers:e.headers,items:e.data,search:e.search,"calculate-widths":"","disable-pagination":"","hide-default-footer":"","multi-sort":"",dense:"",height:e.calcTableHeight(),"data-test":"limits-events"},scopedSlots:e._u([{key:"item.time_nsec",fn:function({item:t}){return Ae().f[2]++,Ae().s[5]++,[n("span",[e._v(e._s(e.formatDate(t.time_nsec)))])]}},{key:"item.level",fn:function({item:t}){return Ae().f[3]++,Ae().s[6]++,[n("rux-status",{attrs:{status:e.getStatus(t.message)}})]}},{key:"item.message",fn:function({item:t}){return Ae().f[4]++,Ae().s[7]++,[n("span",{class:e.getColorClass(t.message)},[e._v(e._s(t.message))])]}}])})],1)},ve=(Ae().s[8]++,[]);function pe(){var e="/openc3/plugins/packages/openc3-cosmos-tool-limitsmonitor/src/tools/LimitsMonitor/LimitsEvents.vue",n="d6b04ef67c314a008e3a237e9efcd15cbbda5330",t=new Function("return this")(),i="__coverage__",l={path:"/openc3/plugins/packages/openc3-cosmos-tool-limitsmonitor/src/tools/LimitsMonitor/LimitsEvents.vue",statementMap:{0:{start:{line:13,column:4},end:{line:22,column:5}},1:{start:{line:25,column:4},end:{line:41,column:8}},2:{start:{line:31,column:12},end:{line:31,column:35}},3:{start:{line:32,column:12},end:{line:32,column:39}},4:{start:{line:40,column:8},end:{line:40,column:52}},5:{start:{line:44,column:4},end:{line:46,column:5}},6:{start:{line:45,column:6},end:{line:45,column:43}},7:{start:{line:47,column:4},end:{line:47,column:27}},8:{start:{line:51,column:6},end:{line:54,column:7}},9:{start:{line:51,column:19},end:{line:51,column:20}},10:{start:{line:52,column:20},end:{line:52,column:52}},11:{start:{line:53,column:8},end:{line:53,column:32}},12:{start:{line:55,column:6},end:{line:57,column:7}},13:{start:{line:56,column:8},end:{line:56,column:45}},14:{start:{line:60,column:6},end:{line:63,column:7}},15:{start:{line:66,column:6},end:{line:76,column:7}},16:{start:{line:67,column:8},end:{line:67,column:23}},17:{start:{line:68,column:13},end:{line:76,column:7}},18:{start:{line:69,column:8},end:{line:69,column:24}},19:{start:{line:70,column:13},end:{line:76,column:7}},20:{start:{line:71,column:8},end:{line:71,column:25}},21:{start:{line:72,column:13},end:{line:76,column:7}},22:{start:{line:73,column:8},end:{line:73,column:24}},23:{start:{line:75,column:8},end:{line:75,column:20}},24:{start:{line:79,column:6},end:{line:87,column:7}},25:{start:{line:80,column:8},end:{line:80,column:29}},26:{start:{line:81,column:13},end:{line:87,column:7}},27:{start:{line:82,column:8},end:{line:82,column:30}},28:{start:{line:83,column:13},end:{line:87,column:7}},29:{start:{line:84,column:8},end:{line:84,column:27}},30:{start:{line:85,column:13},end:{line:87,column:7}},31:{start:{line:86,column:8},end:{line:86,column:28}},32:{start:{line:88,column:6},end:{line:92,column:7}},33:{start:{line:89,column:8},end:{line:89,column:29}},34:{start:{line:91,column:8},end:{line:91,column:29}},35:{start:{line:96,column:6},end:{line:96,column:37}}},fnMap:{0:{name:"(anonymous_0)",decl:{start:{line:12,column:2},end:{line:12,column:3}},loc:{start:{line:12,column:9},end:{line:23,column:3}},line:12},1:{name:"(anonymous_1)",decl:{start:{line:24,column:2},end:{line:24,column:3}},loc:{start:{line:24,column:12},end:{line:42,column:3}},line:24},2:{name:"(anonymous_2)",decl:{start:{line:30,column:20},end:{line:30,column:21}},loc:{start:{line:30,column:32},end:{line:33,column:11}},line:30},3:{name:"(anonymous_3)",decl:{start:{line:39,column:12},end:{line:39,column:13}},loc:{start:{line:39,column:36},end:{line:41,column:7}},line:39},4:{name:"(anonymous_4)",decl:{start:{line:43,column:2},end:{line:43,column:3}},loc:{start:{line:43,column:14},end:{line:48,column:3}},line:43},5:{name:"(anonymous_5)",decl:{start:{line:50,column:4},end:{line:50,column:5}},loc:{start:{line:50,column:29},end:{line:58,column:5}},line:50},6:{name:"(anonymous_6)",decl:{start:{line:59,column:4},end:{line:59,column:5}},loc:{start:{line:59,column:25},end:{line:64,column:5}},line:59},7:{name:"(anonymous_7)",decl:{start:{line:65,column:4},end:{line:65,column:5}},loc:{start:{line:65,column:23},end:{line:77,column:5}},line:65},8:{name:"(anonymous_8)",decl:{start:{line:78,column:4},end:{line:78,column:5}},loc:{start:{line:78,column:27},end:{line:93,column:5}},line:78},9:{name:"(anonymous_9)",decl:{start:{line:94,column:4},end:{line:94,column:5}},loc:{start:{line:94,column:22},end:{line:97,column:5}},line:94}},branchMap:{0:{loc:{start:{line:44,column:4},end:{line:46,column:5}},type:"if",locations:[{start:{line:44,column:4},end:{line:46,column:5}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:44},1:{loc:{start:{line:55,column:6},end:{line:57,column:7}},type:"if",locations:[{start:{line:55,column:6},end:{line:57,column:7}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:55},2:{loc:{start:{line:66,column:6},end:{line:76,column:7}},type:"if",locations:[{start:{line:66,column:6},end:{line:76,column:7}},{start:{line:68,column:13},end:{line:76,column:7}}],line:66},3:{loc:{start:{line:68,column:13},end:{line:76,column:7}},type:"if",locations:[{start:{line:68,column:13},end:{line:76,column:7}},{start:{line:70,column:13},end:{line:76,column:7}}],line:68},4:{loc:{start:{line:70,column:13},end:{line:76,column:7}},type:"if",locations:[{start:{line:70,column:13},end:{line:76,column:7}},{start:{line:72,column:13},end:{line:76,column:7}}],line:70},5:{loc:{start:{line:72,column:13},end:{line:76,column:7}},type:"if",locations:[{start:{line:72,column:13},end:{line:76,column:7}},{start:{line:74,column:13},end:{line:76,column:7}}],line:72},6:{loc:{start:{line:79,column:6},end:{line:87,column:7}},type:"if",locations:[{start:{line:79,column:6},end:{line:87,column:7}},{start:{line:81,column:13},end:{line:87,column:7}}],line:79},7:{loc:{start:{line:81,column:13},end:{line:87,column:7}},type:"if",locations:[{start:{line:81,column:13},end:{line:87,column:7}},{start:{line:83,column:13},end:{line:87,column:7}}],line:81},8:{loc:{start:{line:83,column:13},end:{line:87,column:7}},type:"if",locations:[{start:{line:83,column:13},end:{line:87,column:7}},{start:{line:85,column:13},end:{line:87,column:7}}],line:83},9:{loc:{start:{line:85,column:13},end:{line:87,column:7}},type:"if",locations:[{start:{line:85,column:13},end:{line:87,column:7}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:85},10:{loc:{start:{line:88,column:6},end:{line:92,column:7}},type:"if",locations:[{start:{line:88,column:6},end:{line:92,column:7}},{start:{line:90,column:13},end:{line:92,column:7}}],line:88}},s:{0:0,1:0,2:0,3:0,4:0,5:0,6:0,7:0,8:0,9:0,10:0,11:0,12:0,13:0,14:0,15:0,16:0,17:0,18:0,19:0,20:0,21:0,22:0,23:0,24:0,25:0,26:0,27:0,28:0,29:0,30:0,31:0,32:0,33:0,34:0,35:0},f:{0:0,1:0,2:0,3:0,4:0,5:0,6:0,7:0,8:0,9:0},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]},inputSourceMap:{version:3,sources:["LimitsEvents.vue"],names:[],mappings:";AAiEA;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",file:"LimitsEvents.vue",sourceRoot:"src/tools/LimitsMonitor",sourcesContent:["\x3c!--\n# Copyright 2022 Ball Aerospace & Technologies Corp.\n# All Rights Reserved.\n#\n# This program is free software; you can modify and/or redistribute it\n# under the terms of the GNU Affero General Public License\n# as published by the Free Software Foundation; version 3 with\n# attribution addendums as found in the LICENSE.txt\n#\n# This program is distributed in the hope that it will be useful,\n# but WITHOUT ANY WARRANTY; without even the implied warranty of\n# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n# GNU Affero General Public License for more details.\n\n# Modified by OpenC3, Inc.\n# All changes Copyright 2023, OpenC3, Inc.\n# All Rights Reserved\n#\n# This file may also be used under the terms of a commercial license\n# if purchased from OpenC3, Inc.\n--\x3e\n\n<template>\n <v-card class=\"card-height\">\n <v-card-title>\n Limits Events\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=\"data\"\n :search=\"search\"\n calculate-widths\n disable-pagination\n hide-default-footer\n multi-sort\n dense\n :height=\"calcTableHeight()\"\n data-test=\"limits-events\"\n >\n <template v-slot:item.time_nsec=\"{ item }\">\n <span>{{ formatDate(item.time_nsec) }}</span>\n </template>\n <template v-slot:item.level=\"{ item }\">\n <rux-status :status=\"getStatus(item.message)\"></rux-status>\n </template>\n <template v-slot:item.message=\"{ item }\">\n <span :class=\"getColorClass(item.message)\">{{ item.message }}</span>\n </template>\n </v-data-table>\n </v-card>\n</template>\n\n<script>\nimport { toDate, format } from 'date-fns'\nimport Cable from '@openc3/tool-common/src/services/cable.js'\n\nexport default {\n props: {\n history_count: {\n type: Number,\n default: 1000,\n },\n },\n data() {\n return {\n data: [],\n cable: new Cable(),\n search: '',\n headers: [\n { text: 'Time', value: 'time_nsec', width: 250 },\n { text: 'Level', value: 'level', sortable: false },\n { text: 'Message', value: 'message' },\n ],\n }\n },\n created() {\n this.cable\n .createSubscription(\n 'LimitsEventsChannel',\n window.openc3Scope,\n {\n received: (parsed) => {\n this.cable.recordPing()\n this.handleMessages(parsed)\n },\n },\n {\n history_count: 1000,\n },\n )\n .then((limitsSubscription) => {\n this.limitsSubscription = limitsSubscription\n })\n },\n destroyed() {\n if (this.limitsSubscription) {\n this.limitsSubscription.unsubscribe()\n }\n this.cable.disconnect()\n },\n methods: {\n handleMessages(messages) {\n for (let i = 0; i < messages.length; i++) {\n let event = JSON.parse(messages[i]['event'])\n this.data.unshift(event)\n }\n if (this.data.length > this.history_count) {\n this.data.length = this.history_count\n }\n },\n formatDate(nanoSecs) {\n return format(\n toDate(parseInt(nanoSecs) / 1_000_000),\n 'yyyy-MM-dd HH:mm:ss.SSS',\n )\n },\n getStatus(message) {\n if (message.includes('GREEN')) {\n return 'normal'\n } else if (message.includes('YELLOW')) {\n return 'caution'\n } else if (message.includes('RED')) {\n return 'critical'\n } else if (message.includes('BLUE')) {\n return 'standby'\n } else {\n return 'off'\n }\n },\n getColorClass(message) {\n if (message.includes('GREEN')) {\n return 'openc3-green'\n } else if (message.includes('YELLOW')) {\n return 'openc3-yellow'\n } else if (message.includes('RED')) {\n return 'openc3-red'\n } else if (message.includes('BLUE')) {\n return 'openc3-blue'\n }\n if (this.$vuetify.theme.dark) {\n return 'openc3-white'\n } else {\n return 'openc3-black'\n }\n },\n calcTableHeight() {\n // TODO: 250 is a magic number but seems to work well\n return window.innerHeight - 250\n },\n },\n}\n<\/script>\n\n<style lang=\"scss\" scoped>\n.card-height {\n // TODO: 150 is a magic number but seems to work well\n // Can this be calculated by the size of the table search box?\n height: calc(100vh - 150px);\n}\n</style>\n"]},_coverageSchema:"1a1c01bbd47fc00a2c39e90264f33305004495a9",hash:"d6b04ef67c314a008e3a237e9efcd15cbbda5330"},s=t[i]||(t[i]={});s[e]&&s[e].hash===n||(s[e]=l);var o=s[e];return pe=function(){return o},o}pe();const fe={props:{history_count:{type:Number,default:1e3}},data(){return pe().f[0]++,pe().s[0]++,{data:[],cable:new f,search:"",headers:[{text:"Time",value:"time_nsec",width:250},{text:"Level",value:"level",sortable:!1},{text:"Message",value:"message"}]}},created(){pe().f[1]++,pe().s[1]++,this.cable.createSubscription("LimitsEventsChannel",window.openc3Scope,{received:e=>{pe().f[2]++,pe().s[2]++,this.cable.recordPing(),pe().s[3]++,this.handleMessages(e)}},{history_count:1e3}).then((e=>{pe().f[3]++,pe().s[4]++,this.limitsSubscription=e}))},destroyed(){pe().f[4]++,pe().s[5]++,this.limitsSubscription?(pe().b[0][0]++,pe().s[6]++,this.limitsSubscription.unsubscribe()):pe().b[0][1]++,pe().s[7]++,this.cable.disconnect()},methods:{handleMessages(e){pe().f[5]++,pe().s[8]++;for(let n=(pe().s[9]++,0);n<e.length;n++){let t=(pe().s[10]++,JSON.parse(e[n]["event"]));pe().s[11]++,this.data.unshift(t)}pe().s[12]++,this.data.length>this.history_count?(pe().b[1][0]++,pe().s[13]++,this.data.length=this.history_count):pe().b[1][1]++},formatDate(e){return pe().f[6]++,pe().s[14]++,(0,oe.GP)((0,ae.a)(parseInt(e)/1e6),"yyyy-MM-dd HH:mm:ss.SSS")},getStatus(e){return pe().f[7]++,pe().s[15]++,e.includes("GREEN")?(pe().b[2][0]++,pe().s[16]++,"normal"):(pe().b[2][1]++,pe().s[17]++,e.includes("YELLOW")?(pe().b[3][0]++,pe().s[18]++,"caution"):(pe().b[3][1]++,pe().s[19]++,e.includes("RED")?(pe().b[4][0]++,pe().s[20]++,"critical"):(pe().b[4][1]++,pe().s[21]++,e.includes("BLUE")?(pe().b[5][0]++,pe().s[22]++,"standby"):(pe().b[5][1]++,pe().s[23]++,"off"))))},getColorClass(e){return pe().f[8]++,pe().s[24]++,e.includes("GREEN")?(pe().b[6][0]++,pe().s[25]++,"openc3-green"):(pe().b[6][1]++,pe().s[26]++,e.includes("YELLOW")?(pe().b[7][0]++,pe().s[27]++,"openc3-yellow"):(pe().b[7][1]++,pe().s[28]++,e.includes("RED")?(pe().b[8][0]++,pe().s[29]++,"openc3-red"):(pe().b[8][1]++,pe().s[30]++,e.includes("BLUE")?(pe().b[9][0]++,pe().s[31]++,"openc3-blue"):(pe().b[9][1]++,pe().s[32]++,this.$vuetify.theme.dark?(pe().b[10][0]++,pe().s[33]++,"openc3-white"):(pe().b[10][1]++,pe().s[34]++,"openc3-black")))))},calcTableHeight(){return pe().f[9]++,pe().s[35]++,window.innerHeight-250}}},_e=fe;t(6897);var ge=(0,I.A)(_e,he,ve,!1,null,"3cfc692e",null);const Ce=ge.exports;var be=function(){var e=this,n=e._self._c;return n("mounting-portal",{attrs:{"mount-to":"#openc3-menu",append:""}},[n("v-row",{attrs:{"no-gutters":""}},[n("v-col",{attrs:{"align-self":"end"}},[n("span",{staticClass:"app-title mr-2"},[e._v(e._s(e.title))])])],1),e._v(" "),n("v-row",{staticClass:"flex-nowrap",attrs:{dense:""}},e._l(e.menus,(function(t,i){return n("v-menu",{key:i,ref:"topmenu",refInFor:!0,attrs:{"offset-y":""},scopedSlots:e._u([{key:"activator",fn:function({on:i,attrs:l}){return[n("v-btn",e._g(e._b({staticClass:"mx-1 menu-button",attrs:{outlined:"","data-test":e.formatDT(`${e.title} ${t.label}`)}},"v-btn",l,!1),i),[n("span",{domProps:{textContent:e._s(t.label)}}),e._v(" "),n("v-icon",{staticClass:"myicon",attrs:{right:""}},[e._v(" mdi-menu-down ")])],1)]}}],null,!0)},[e._v(" "),n("v-list",[n("v-radio-group",{staticClass:"ma-0 pa-0",attrs:{value:t.radioGroup,"hide-details":"",dense:""}},[e._l(t.items,(function(i,l){return[i.divider?n("v-divider",{key:l}):i.subMenu&&i.subMenu.length>0?n("div",{key:l},[n("v-menu",{key:e.k,attrs:{"open-on-hover":"","offset-x":"",bottom:""},scopedSlots:e._u([{key:"activator",fn:function({on:t,attrs:s}){return[n("v-list-item",e._g(e._b({key:l,attrs:{disabled:i.disabled}},"v-list-item",s,!1),t),[i.icon?n("v-list-item-icon",[n("v-icon",{attrs:{disabled:i.disabled}},[e._v(e._s(i.icon))])],1):e._e(),e._v(" "),i.radio||i.checkbox?e._e():n("v-list-item-title",{style:"cursor: pointer;"+(i.disabled?"opacity: 0.2":"")},[e._v(e._s(i.label)+"\n ")]),e._v(" "),n("v-icon",[e._v(" mdi-chevron-right ")])],1)]}}],null,!0)},[e._v(" "),n("v-list",e._l(i.subMenu,(function(t,i){return n("v-list-item",{key:i,on:{click:function(n){return e.subMenuClick(t)}}},[t.icon?n("v-list-item-icon",[n("v-icon",[e._v(e._s(t.icon))])],1):e._e(),e._v(" "),n("v-list-item-title",[e._v(e._s(t.label))])],1)})),1)],1)],1):n("v-list-item",{key:l,attrs:{disabled:i.disabled,"data-test":e.formatDT(`${e.title} ${t.label} ${i.label}`)},on:{click:function(e){return i.command(i)}}},[i.radio?n("v-list-item-action",[n("v-radio",{attrs:{color:"secondary",label:i.label,value:i.label}})],1):e._e(),e._v(" "),i.checkbox?n("v-list-item-action",[n("v-checkbox",{attrs:{color:"secondary",label:i.label},model:{value:i.checked,callback:function(n){e.$set(i,"checked",n)},expression:"option.checked"}})],1):e._e(),e._v(" "),i.icon?n("v-list-item-icon",[n("v-icon",{attrs:{disabled:i.disabled}},[e._v(e._s(i.icon))])],1):e._e(),e._v(" "),i.radio||i.checkbox?e._e():n("v-list-item-title",{style:"cursor: pointer;"+(i.disabled?"opacity: 0.2":"")},[e._v(e._s(i.label))])],1)]}))],2)],1)],1)})),1)],1)},ye=[];t(8715);const we={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}},xe=we;t(1e3);var Se=(0,I.A)(xe,be,ye,!1,null,"57d4fdd2",null);const Ie=Se.exports,Le={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,n=!1,t=null){(new d).load_config(this.configKey,e).then((i=>{i?(this.$notify.normal({title:"Loading configuration",body:e}),t&&t(JSON.parse(i)),n||this.$router.currentRoute.fullPath.includes(e)||this.$router.push({query:{config:e}})):this.$notify.caution({title:"Unknown configuration",body:e})})).catch((n=>{n&&this.$notify.serious({title:`Error opening configuration: ${e}`,body:n})}))},saveConfigBase:function(e,n){(new d).save_config(this.configKey,e,JSON.stringify(n)).then((()=>{this.$notify.normal({title:"Saved configuration",body:e})})).catch((n=>{n&&this.$notify.serious({title:`Error saving configuration: ${e}`,body:n})}))},resetConfigBase:function(){localStorage.removeItem(`${this.configKey}__default`),"/"!==this.$router.currentRoute.fullPath&&(this.$router.replace(this.$router.currentRoute.path),this.$router.go())}}};var ke=function(){var e=this,n=e._self._c;return n("v-dialog",{attrs:{width:"600"},on:{keydown:function(n){return!n.type.indexOf("key")&&e._k(n.keyCode,"esc",27,n.key,["Esc","Escape"])?null:e.cancel.apply(null,arguments)}},model:{value:e.show,callback:function(n){e.show=n},expression:"show"}},[n("v-card",[n("form",{on:{submit:function(n){return n.preventDefault(),e.success.apply(null,arguments)}}},[n("v-system-bar",[n("v-spacer"),e._v(" "),n("span",[e._v("Open Configuration")]),e._v(" "),n("v-spacer")],1),e._v(" "),n("v-card-text",[n("div",{staticClass:"pa-3"},[n("v-row",{attrs:{dense:""}},[n("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(n){e.search=n},expression:"search"}})],1),e._v(" "),n("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,n)=>n.select(e)},scopedSlots:e._u([{key:"item.actions",fn:function({item:t}){return[n("v-btn",{staticClass:"mt-1",attrs:{"data-test":"item-delete",icon:""},on:{click:function(n){return e.deleteConfig(t)}}},[n("v-icon",[e._v("mdi-delete")])],1)]}}])}),e._v(" "),n("v-row",{attrs:{dense:""}},[n("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(" "),n("v-card-actions",[n("v-spacer"),e._v(" "),n("v-btn",{staticClass:"mx-2",attrs:{outlined:"","data-test":"open-config-cancel-btn"},on:{click:e.cancel}},[e._v("\n Cancel\n ")]),e._v(" "),n("v-btn",{staticClass:"mx-2",attrs:{type:"submit",color:"primary","data-test":"open-config-submit-btn",disabled:!!e.error},on:{click:function(n){return n.preventDefault(),e.success.apply(null,arguments)}}},[e._v("\n Ok\n ")])],1)],1)])],1)},Ee=[];const Ne={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((n=>{this.configs=n.map((n=>(e+=1,{configId:e,config:n})))})).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((n=>{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((n=>{n&&this.$emit("warning",`Failed to delete config ${e.config} Error: ${n}`)}))}}},Oe=Ne;var Te=(0,I.A)(Oe,ke,Ee,!1,null,null,null);const $e=Te.exports;var Me=function(){var e=this,n=e._self._c;return n("v-dialog",{attrs:{width:"600"},on:{keydown:function(n){return!n.type.indexOf("key")&&e._k(n.keyCode,"esc",27,n.key,["Esc","Escape"])?null:e.cancel.apply(null,arguments)}},model:{value:e.show,callback:function(n){e.show=n},expression:"show"}},[n("v-card",[n("form",{on:{submit:function(n){return n.preventDefault(),e.success.apply(null,arguments)}}},[n("v-system-bar",[n("v-spacer"),e._v(" "),n("span",[e._v("Save Configuration")]),e._v(" "),n("v-spacer")],1),e._v(" "),n("v-card-text",[n("div",{staticClass:"pa-3"},[n("v-row",{attrs:{dense:""}},[n("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(n){e.search=n},expression:"search"}})],1),e._v(" "),n("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,n)=>n.select(e)},scopedSlots:e._u([{key:"item.actions",fn:function({item:t}){return[n("v-btn",{staticClass:"mt-1",attrs:{icon:"","data-test":"item-delete"},on:{click:function(n){return e.deleteConfig(t)}}},[n("v-icon",[e._v("mdi-delete")])],1)]}}])}),e._v(" "),n("v-row",{attrs:{dense:""}},[n("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(n){e.configName=n},expression:"configName"}})],1),e._v(" "),n("v-row",{attrs:{dense:""}},[n("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(" "),n("v-card-actions",[n("v-spacer"),e._v(" "),n("v-btn",{staticClass:"mx-2",attrs:{outlined:""},on:{click:e.cancel}},[e._v(" Cancel ")]),e._v(" "),n("v-btn",{staticClass:"mx-2",attrs:{type:"submit",color:"primary","data-test":"save-config-submit-btn",disabled:!!e.error},on:{click:function(n){return n.preventDefault(),e.success.apply(null,arguments)}}},[e._v("\n Ok\n ")])],1)],1)])],1)},De=[];const Re={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((n=>{this.configs=n.map((n=>(e+=1,{configId:e,config:n})))})).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((n=>{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((n=>{n&&this.$emit("warning",`Failed to delete config ${e.config} Error: ${n}`)}))}}},Ve=Re;var He=(0,I.A)(Ve,Me,De,!1,null,null,null);const We=He.exports;function Pe(){var e="/openc3/plugins/packages/openc3-cosmos-tool-limitsmonitor/src/tools/LimitsMonitor/LimitsMonitor.vue",n="1c559f0623d4395b438614b1601015641315e593",t=new Function("return this")(),i="__coverage__",l={path:"/openc3/plugins/packages/openc3-cosmos-tool-limitsmonitor/src/tools/LimitsMonitor/LimitsMonitor.vue",statementMap:{0:{start:{line:20,column:4},end:{line:79,column:5}},1:{start:{line:40,column:16},end:{line:40,column:48}},2:{start:{line:47,column:16},end:{line:47,column:43}},3:{start:{line:57,column:16},end:{line:57,column:38}},4:{start:{line:64,column:16},end:{line:64,column:38}},5:{start:{line:71,column:16},end:{line:71,column:33}},6:{start:{line:72,column:16},end:{line:72,column:38}},7:{start:{line:73,column:16},end:{line:73,column:32}},8:{start:{line:82,column:4},end:{line:84,column:6}},9:{start:{line:83,column:6},end:{line:83,column:28}},10:{start:{line:88,column:4},end:{line:97,column:5}},11:{start:{line:89,column:6},end:{line:89,column:60}},12:{start:{line:91,column:19},end:{line:91,column:43}},13:{start:{line:93,column:6},end:{line:96,column:7}},14:{start:{line:94,column:8},end:{line:94,column:29}},15:{start:{line:95,column:8},end:{line:95,column:24}},16:{start:{line:100,column:4},end:{line:100,column:49}},17:{start:{line:104,column:6},end:{line:104,column:52}},18:{start:{line:105,column:6},end:{line:105,column:34}},19:{start:{line:106,column:6},end:{line:106,column:22}},20:{start:{line:109,column:6},end:{line:112,column:8}},21:{start:{line:110,column:8},end:{line:110,column:29}},22:{start:{line:111,column:8},end:{line:111,column:24}},23:{start:{line:115,column:6},end:{line:115,column:45}}},fnMap:{0:{name:"(anonymous_0)",decl:{start:{line:19,column:2},end:{line:19,column:3}},loc:{start:{line:19,column:9},end:{line:80,column:3}},line:19},1:{name:"(anonymous_1)",decl:{start:{line:39,column:23},end:{line:39,column:24}},loc:{start:{line:39,column:29},end:{line:41,column:15}},line:39},2:{name:"(anonymous_2)",decl:{start:{line:46,column:23},end:{line:46,column:24}},loc:{start:{line:46,column:29},end:{line:48,column:15}},line:46},3:{name:"(anonymous_3)",decl:{start:{line:56,column:23},end:{line:56,column:24}},loc:{start:{line:56,column:29},end:{line:58,column:15}},line:56},4:{name:"(anonymous_4)",decl:{start:{line:63,column:23},end:{line:63,column:24}},loc:{start:{line:63,column:29},end:{line:65,column:15}},line:63},5:{name:"(anonymous_5)",decl:{start:{line:70,column:23},end:{line:70,column:24}},loc:{start:{line:70,column:29},end:{line:74,column:15}},line:70},6:{name:"(anonymous_6)",decl:{start:{line:81,column:2},end:{line:81,column:3}},loc:{start:{line:81,column:12},end:{line:85,column:3}},line:81},7:{name:"(anonymous_7)",decl:{start:{line:82,column:36},end:{line:82,column:37}},loc:{start:{line:82,column:46},end:{line:84,column:5}},line:82},8:{name:"(anonymous_8)",decl:{start:{line:86,column:11},end:{line:86,column:12}},loc:{start:{line:86,column:23},end:{line:98,column:3}},line:86},9:{name:"(anonymous_9)",decl:{start:{line:99,column:13},end:{line:99,column:14}},loc:{start:{line:99,column:25},end:{line:101,column:3}},line:99},10:{name:"(anonymous_10)",decl:{start:{line:103,column:18},end:{line:103,column:19}},loc:{start:{line:103,column:30},end:{line:107,column:5}},line:103},11:{name:"(anonymous_11)",decl:{start:{line:108,column:23},end:{line:108,column:24}},loc:{start:{line:108,column:55},end:{line:113,column:5}},line:108},12:{name:"(anonymous_12)",decl:{start:{line:109,column:40},end:{line:109,column:41}},loc:{start:{line:109,column:52},end:{line:112,column:7}},line:109},13:{name:"(anonymous_13)",decl:{start:{line:114,column:23},end:{line:114,column:24}},loc:{start:{line:114,column:39},end:{line:116,column:5}},line:114}},branchMap:{0:{loc:{start:{line:88,column:4},end:{line:97,column:5}},type:"if",locations:[{start:{line:88,column:4},end:{line:97,column:5}},{start:{line:90,column:11},end:{line:97,column:5}}],line:88},1:{loc:{start:{line:88,column:8},end:{line:88,column:53}},type:"binary-expr",locations:[{start:{line:88,column:8},end:{line:88,column:25}},{start:{line:88,column:29},end:{line:88,column:53}}],line:88},2:{loc:{start:{line:93,column:6},end:{line:96,column:7}},type:"if",locations:[{start:{line:93,column:6},end:{line:96,column:7}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:93},3:{loc:{start:{line:108,column:39},end:{line:108,column:53}},type:"default-arg",locations:[{start:{line:108,column:48},end:{line:108,column:53}}],line:108}},s:{0:0,1:0,2:0,3:0,4:0,5:0,6:0,7:0,8:0,9:0,10:0,11:0,12:0,13:0,14:0,15:0,16:0,17:0,18:0,19:0,20:0,21:0,22:0,23:0},f:{0:0,1:0,2:0,3:0,4:0,5:0,6:0,7:0,8:0,9:0,10:0,11:0,12:0,13:0},b:{0:[0,0],1:[0,0],2:[0,0],3:[0]},inputSourceMap:{version:3,sources:["LimitsMonitor.vue"],names:[],mappings:";AAmFA;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",file:"LimitsMonitor.vue",sourceRoot:"src/tools/LimitsMonitor",sourcesContent:['\x3c!--\n# Copyright 2022 Ball Aerospace & Technologies Corp.\n# All Rights Reserved.\n#\n# This program is free software; you can modify and/or redistribute it\n# under the terms of the GNU Affero General Public License\n# as published by the Free Software Foundation; version 3 with\n# attribution addendums as found in the LICENSE.txt\n#\n# This program is distributed in the hope that it will be useful,\n# but WITHOUT ANY WARRANTY; without even the implied warranty of\n# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n# GNU Affero General Public License for more details.\n\n# Modified by OpenC3, Inc.\n# All changes Copyright 2023, OpenC3, Inc.\n# All Rights Reserved\n#\n# This file may also be used under the terms of a commercial license\n# if purchased from OpenC3, Inc.\n--\x3e\n\n<template>\n <div>\n <top-bar :menus="menus" :title="title" />\n <limits-control ref="control" v-model="ignored" :key="renderKey" />\n <div style="height: 15px" />\n <limits-events />\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="openConfig"\n v-model="openConfig"\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="saveConfig"\n v-model="saveConfig"\n :configKey="configKey"\n @success="saveConfiguration"\n />\n <v-dialog v-model="limitsSetDialog" max-width="650">\n <v-card>\n <v-system-bar>\n <v-spacer />\n <span>Change Limits Set</span>\n <v-spacer />\n </v-system-bar>\n <v-card-text class="pt-1">\n <span style="display: block"\n >The Limits Set is a global option which changes the Limits Set\n across all tools.</span\n >\n <span style="display: block"\n >NOTE: Changing this option clears the current list and recalculates\n based on the new set.</span\n >\n <v-select\n label="Limits Set"\n :items="limitsSets"\n v-model="currentLimitsSet"\n dense\n outlined\n data-test="limits-set"\n hide-details\n class="pt-3"\n style="max-width: 200px"\n />\n </v-card-text>\n <v-card-actions>\n <v-spacer />\n <v-btn @click="limitsSetDialog = false" outlined class="mx-2">\n Cancel\n </v-btn>\n <v-btn @click="setLimitsSet" color="primary"> Ok </v-btn>\n </v-card-actions>\n </v-card>\n </v-dialog>\n </div>\n</template>\n\n<script>\nimport { OpenC3Api } from \'@openc3/tool-common/src/services/openc3-api\'\nimport LimitsControl from \'@/tools/LimitsMonitor/LimitsControl\'\nimport LimitsEvents from \'@/tools/LimitsMonitor/LimitsEvents\'\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\nexport default {\n components: {\n LimitsControl,\n LimitsEvents,\n TopBar,\n OpenConfigDialog,\n SaveConfigDialog,\n },\n mixins: [Config],\n data() {\n return {\n title: \'Limits Monitor\',\n configKey: \'limits_monitor\',\n api: new OpenC3Api(),\n renderKey: 0,\n ignored: [],\n openConfig: false,\n saveConfig: false,\n limitsSets: [],\n currentLimitsSet: null,\n currentSetRefreshInterval: null,\n limitsSetDialog: false,\n menus: [\n {\n label: \'File\',\n items: [\n {\n label: \'Show Ignored\',\n icon: \'mdi-magnify-close\',\n command: () => {\n this.$refs.control.showIgnored()\n },\n },\n {\n label: \'Change Limits Set\',\n icon: \'mdi-swap-horizontal\',\n command: () => {\n this.limitsSetDialog = true\n },\n },\n {\n divider: true,\n },\n {\n label: \'Open Configuration\',\n icon: \'mdi-folder-open\',\n command: () => {\n this.openConfig = true\n },\n },\n {\n label: \'Save Configuration\',\n icon: \'mdi-content-save\',\n command: () => {\n this.saveConfig = true\n },\n },\n {\n label: \'Reset Configuration\',\n icon: \'mdi-monitor-shimmer\',\n command: () => {\n this.ignored = []\n this.resetConfigBase()\n this.renderKey++\n },\n },\n ],\n },\n ],\n }\n },\n created() {\n this.api.get_limits_sets().then((sets) => {\n this.limitsSets = sets\n })\n },\n mounted: function () {\n // Called like /tools/limitsmonitor?config=ignored\n if (this.$route.query && this.$route.query.config) {\n this.openConfiguration(this.$route.query.config, true) // routed\n } else {\n let config = this.loadDefaultConfig()\n // Only apply the config if it\'s not an empty object (config does not exist)\n if (JSON.stringify(config) !== \'{}\') {\n this.ignored = config\n this.renderKey++\n }\n }\n },\n destroyed: function () {\n clearInterval(this.currentSetRefreshInterval)\n },\n methods: {\n setLimitsSet: function () {\n this.api.set_limits_set(this.currentLimitsSet)\n this.limitsSetDialog = false\n this.renderKey++ // Trigger re-render\n },\n openConfiguration: function (name, routed = false) {\n this.openConfigBase(name, routed, (config) => {\n this.ignored = config\n this.renderKey++ // Trigger re-render\n })\n },\n saveConfiguration: function (name) {\n this.saveConfigBase(name, this.ignored)\n },\n },\n}\n<\/script>\n']},_coverageSchema:"1a1c01bbd47fc00a2c39e90264f33305004495a9",hash:"1c559f0623d4395b438614b1601015641315e593"},s=t[i]||(t[i]={});s[e]&&s[e].hash===n||(s[e]=l);var o=s[e];return Pe=function(){return o},o}Pe();const Fe={components:{LimitsControl:de,LimitsEvents:Ce,TopBar:Ie,OpenConfigDialog:$e,SaveConfigDialog:We},mixins:[Le],data(){return Pe().f[0]++,Pe().s[0]++,{title:"Limits Monitor",configKey:"limits_monitor",api:new d,renderKey:0,ignored:[],openConfig:!1,saveConfig:!1,limitsSets:[],currentLimitsSet:null,currentSetRefreshInterval:null,limitsSetDialog:!1,menus:[{label:"File",items:[{label:"Show Ignored",icon:"mdi-magnify-close",command:()=>{Pe().f[1]++,Pe().s[1]++,this.$refs.control.showIgnored()}},{label:"Change Limits Set",icon:"mdi-swap-horizontal",command:()=>{Pe().f[2]++,Pe().s[2]++,this.limitsSetDialog=!0}},{divider:!0},{label:"Open Configuration",icon:"mdi-folder-open",command:()=>{Pe().f[3]++,Pe().s[3]++,this.openConfig=!0}},{label:"Save Configuration",icon:"mdi-content-save",command:()=>{Pe().f[4]++,Pe().s[4]++,this.saveConfig=!0}},{label:"Reset Configuration",icon:"mdi-monitor-shimmer",command:()=>{Pe().f[5]++,Pe().s[5]++,this.ignored=[],Pe().s[6]++,this.resetConfigBase(),Pe().s[7]++,this.renderKey++}}]}]}},created(){Pe().f[6]++,Pe().s[8]++,this.api.get_limits_sets().then((e=>{Pe().f[7]++,Pe().s[9]++,this.limitsSets=e}))},mounted:function(){if(Pe().f[8]++,Pe().s[10]++,Pe().b[1][0]++,this.$route.query&&(Pe().b[1][1]++,this.$route.query.config))Pe().b[0][0]++,Pe().s[11]++,this.openConfiguration(this.$route.query.config,!0);else{Pe().b[0][1]++;let e=(Pe().s[12]++,this.loadDefaultConfig());Pe().s[13]++,"{}"!==JSON.stringify(e)?(Pe().b[2][0]++,Pe().s[14]++,this.ignored=e,Pe().s[15]++,this.renderKey++):Pe().b[2][1]++}},destroyed:function(){Pe().f[9]++,Pe().s[16]++,clearInterval(this.currentSetRefreshInterval)},methods:{setLimitsSet:function(){Pe().f[10]++,Pe().s[17]++,this.api.set_limits_set(this.currentLimitsSet),Pe().s[18]++,this.limitsSetDialog=!1,Pe().s[19]++,this.renderKey++},openConfiguration:function(e,n=(Pe().b[3][0]++,!1)){Pe().f[11]++,Pe().s[20]++,this.openConfigBase(e,n,(e=>{Pe().f[12]++,Pe().s[21]++,this.ignored=e,Pe().s[22]++,this.renderKey++}))},saveConfiguration:function(e){Pe().f[13]++,Pe().s[23]++,this.saveConfigBase(e,this.ignored)}}},Ge=Fe;var Ue=(0,I.A)(Ge,l,s,!1,null,null,null);const Be=Ue.exports},59:(e,n,t)=>{"use strict";t.r(n),t.d(n,{default:()=>r});var i=t(6758),l=t.n(i),s=t(935),o=t.n(s),a=o()(l());a.push([e.id,".footer[data-v-db62090e]{padding-top:5px}.v-input[data-v-db62090e]{background-color:var(--color-background-base-default)}.textfield-green[data-v-db62090e] .v-text-field__slot input,.textfield-green[data-v-db62090e] .v-text-field__slot label{color:#00c800}.textfield-yellow[data-v-db62090e] .v-text-field__slot input,.textfield-yellow[data-v-db62090e] .v-text-field__slot label{color:#ffdc00}.textfield-red[data-v-db62090e] .v-text-field__slot input,.textfield-red[data-v-db62090e] .v-text-field__slot label{color:#ff2d2d}",""]);const r=a},3076:(e,n,t)=>{"use strict";t.r(n),t.d(n,{default:()=>r});var i=t(6758),l=t.n(i),s=t(935),o=t.n(s),a=o()(l());a.push([e.id,".label[data-v-6659f972]{font-weight:700;text-transform:capitalize}[data-v-6659f972] .v-input--selection-controls{padding:0;margin:0}",""]);const r=a},9808:(e,n,t)=>{"use strict";t.r(n),t.d(n,{default:()=>r});var i=t(6758),l=t.n(i),s=t(935),o=t.n(s),a=o()(l());a.push([e.id,".app-title[data-v-57d4fdd2]{font-size:2rem}.menu-button[data-v-57d4fdd2]{border-color:var(--color-border-interactive-muted)!important;background-color:var(--color-background-base-default)!important;padding-right:3px!important}span.v-btn__content span[data-v-57d4fdd2]{padding-right:5px}.myicon[data-v-57d4fdd2]{background-color:var(--color-background-surface-selected);border:1px solid currentColor;border-radius:3px;height:36px!important;width:36px!important}.v-list[data-v-57d4fdd2] .v-label{margin-left:5px}.v-list-item__icon[data-v-57d4fdd2]{margin-right:15px!important}.v-list-item__title[data-v-57d4fdd2]{color:#fff}",""]);const r=a},2498:(e,n,t)=>{"use strict";t.r(n),t.d(n,{default:()=>r});var i=t(6758),l=t.n(i),s=t(935),o=t.n(s),a=o()(l());a.push([e.id,".label[data-v-19db816e]{font-family:var(--font-family);font-size:var(--font-size);font-weight:var(--font-weight);font-style:var(--font-style)}",""]);const r=a},2658:(e,n,t)=>{"use strict";t.r(n),t.d(n,{default:()=>r});var i=t(6758),l=t.n(i),s=t(935),o=t.n(s),a=o()(l());a.push([e.id,".card-height[data-v-3cfc692e]{height:calc(100vh - 150px)}",""]);const r=a},8452:(e,n,t)=>{"use strict";t.r(n),t.d(n,{default:()=>r});var i=t(6758),l=t.n(i),s=t(935),o=t.n(s),a=o()(l());a.push([e.id,".limitsbar[data-v-344f6330]{cursor:default;display:flex;justify-content:center;align-items:center;padding:5px;padding-top:15px;width:var(--width)}.limitsbar__container[data-v-344f6330]{position:relative;flex:1;height:var(--container-height);border:1px solid #000;background-color:#fff}.limitsbar__redlow[data-v-344f6330]{left:0;width:var(--redlow-width)}.limitsbar__redhigh[data-v-344f6330],.limitsbar__redlow[data-v-344f6330]{position:absolute;top:-1px;height:var(--container-height);background-color:#ff2d2d}.limitsbar__redhigh[data-v-344f6330]{right:0;width:var(--redhigh-width)}.limitsbar__yellowlow[data-v-344f6330]{left:var(--redlow-width);width:var(--yellowlow-width)}.limitsbar__yellowhigh[data-v-344f6330],.limitsbar__yellowlow[data-v-344f6330]{position:absolute;top:-1px;height:var(--container-height);background-color:#ffdc00}.limitsbar__yellowhigh[data-v-344f6330]{right:var(--redhigh-width);width:var(--yellowhigh-width)}.limitsbar__greenlow[data-v-344f6330]{left:calc(var(--redlow-width) + var(--yellowlow-width));width:var(--greenlow-width)}.limitsbar__greenhigh[data-v-344f6330],.limitsbar__greenlow[data-v-344f6330]{position:absolute;top:-1px;height:var(--container-height);background-color:#00c800}.limitsbar__greenhigh[data-v-344f6330]{right:calc(var(--redhigh-width) + var(--yellowhigh-width));width:var(--greenhigh-width)}.limitsbar__blue[data-v-344f6330]{top:-1px;left:calc(var(--redlow-width) + var(--yellowlow-width) + var(--greenlow-width));width:var(--blue-width);background-color:#09f}.limitsbar__blue[data-v-344f6330],.limitsbar__line[data-v-344f6330]{position:absolute;height:var(--container-height)}.limitsbar__line[data-v-344f6330]{left:var(--position);width:1px;background-color:gray}.limitsbar__arrow[data-v-344f6330]{position:absolute;top:-5px;left:var(--position);width:0;height:0;transform:translateX(-5px);border-left:5px solid transparent;border-right:5px solid transparent;border-top:5px solid gray}",""]);const r=a},3200:(e,n,t)=>{"use strict";t.r(n),t.d(n,{default:()=>r});var i=t(6758),l=t.n(i),s=t(935),o=t.n(s),a=o()(l());a.push([e.id,".value-widget-container[data-v-f6adf1e0]{min-height:34px}.value-widget-container[data-v-f6adf1e0] .v-input__slot{background:rgba(var(--aging),var(--aging),var(--aging),1)!important}.value-widget-container[data-v-f6adf1e0] input{text-align:var(--text-align)!important}[data-v-f6adf1e0] .v-input__slot:has(.v-icon){padding-left:2px!important}.value-widget-container[data-v-f6adf1e0] .v-icon{margin-top:9px}.value[data-v-f6adf1e0] div{min-height:24px!important;display:flex!important;align-items:center!important}.openc3-green[data-v-f6adf1e0] input{color:#00c800}.openc3-yellow[data-v-f6adf1e0] input{color:#ffdc00}.openc3-red[data-v-f6adf1e0] input{color:#ff2d2d}.openc3-blue[data-v-f6adf1e0] input{color:#09f}.openc3-purple[data-v-f6adf1e0] input{color:#c800c8}.openc3-black[data-v-f6adf1e0] input{color:#000}.openc3-white[data-v-f6adf1e0] input{color:#fff}",""]);const r=a},8355:(e,n,t)=>{var i=t(59);i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[e.id,i,""]]),i.locals&&(e.exports=i.locals);var l=t(4825).A;l("6446576c",i,!0,{sourceMap:!1,shadowMode:!1})},1727:(e,n,t)=>{var i=t(3076);i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[e.id,i,""]]),i.locals&&(e.exports=i.locals);var l=t(4825).A;l("2d4e5d43",i,!0,{sourceMap:!1,shadowMode:!1})},1e3:(e,n,t)=>{var i=t(9808);i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[e.id,i,""]]),i.locals&&(e.exports=i.locals);var l=t(4825).A;l("7de62207",i,!0,{sourceMap:!1,shadowMode:!1})},6074:(e,n,t)=>{var i=t(2498);i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[e.id,i,""]]),i.locals&&(e.exports=i.locals);var l=t(4825).A;l("24c3e658",i,!0,{sourceMap:!1,shadowMode:!1})},6897:(e,n,t)=>{var i=t(2658);i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[e.id,i,""]]),i.locals&&(e.exports=i.locals);var l=t(4825).A;l("ac79d1c0",i,!0,{sourceMap:!1,shadowMode:!1})},6619:(e,n,t)=>{var i=t(8452);i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[e.id,i,""]]),i.locals&&(e.exports=i.locals);var l=t(4825).A;l("1dc714dc",i,!0,{sourceMap:!1,shadowMode:!1})},8087:(e,n,t)=>{var i=t(3200);i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[e.id,i,""]]),i.locals&&(e.exports=i.locals);var l=t(4825).A;l("01cd6850",i,!0,{sourceMap:!1,shadowMode:!1})}}]);
|
2
|
-
//# sourceMappingURL=902.js.map
|