openc3-cosmos-tool-limitsmonitor 5.17.1 → 5.19.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/265.js +2 -0
- data/tools/limitsmonitor/js/265.js.map +1 -0
- data/tools/limitsmonitor/js/603.js +2 -0
- data/tools/limitsmonitor/js/603.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/582.js +0 -2
- data/tools/limitsmonitor/js/582.js.map +0 -1
- data/tools/limitsmonitor/js/95.js +0 -2
- data/tools/limitsmonitor/js/95.js.map +0 -1
@@ -0,0 +1,2 @@
|
|
1
|
+
(self["webpackChunk_openc3_cosmos_tool_limitsmonitor"]=self["webpackChunk_openc3_cosmos_tool_limitsmonitor"]||[]).push([[603],{8603:(e,n,t)=>{"use strict";function i(){var e="/openc3/plugins/packages/openc3-cosmos-tool-limitsmonitor/src/tools/LimitsMonitor/LimitsMonitor.vue",n="b45182dc4bdef3ac610796260e33ad52d384aec5",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:2245}},4:{start:{line:1,column:287},end:{line:1,column:302}},5:{start:{line:1,column:629},end:{line:1,column:647}},6:{start:{line:1,column:865},end:{line:1,column:883}},7:{start:{line:1,column:1034},end:{line:1,column:1057}},8:{start:{line:1,column:1853},end:{line:1,column:1877}},9:{start:{line:1,column:2058},end:{line:1,column:2085}},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:271},end:{line:1,column:272}},loc:{start:{line:1,column:286},end:{line:1,column:303}},line:1},2:{name:"(anonymous_2)",decl:{start:{line:1,column:613},end:{line:1,column:614}},loc:{start:{line:1,column:628},end:{line:1,column:648}},line:1},3:{name:"(anonymous_3)",decl:{start:{line:1,column:849},end:{line:1,column:850}},loc:{start:{line:1,column:864},end:{line:1,column:884}},line:1},4:{name:"(anonymous_4)",decl:{start:{line:1,column:1018},end:{line:1,column:1019}},loc:{start:{line:1,column:1033},end:{line:1,column:1058}},line:1},5:{name:"(anonymous_5)",decl:{start:{line:1,column:1837},end:{line:1,column:1838}},loc:{start:{line:1,column:1852},end:{line:1,column:1878}},line:1},6:{name:"(anonymous_6)",decl:{start:{line:1,column:2041},end:{line:1,column:2042}},loc:{start:{line:1,column:2057},end:{line:1,column:2086}},line:1}},branchMap:{0:{loc:{start:{line:1,column:461},end:{line:1,column:684}},type:"cond-expr",locations:[{start:{line:1,column:478},end:{line:1,column:675}},{start:{line:1,column:676},end:{line:1,column:684}}],line:1},1:{loc:{start:{line:1,column:697},end:{line:1,column:920}},type:"cond-expr",locations:[{start:{line:1,column:714},end:{line:1,column:911}},{start:{line:1,column:912},end:{line:1,column:920}}],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:"b45182dc4bdef3ac610796260e33ad52d384aec5"},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:()=>Je}),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",attrs:{"time-zone":e.timeZone},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",{attrs:{"time-zone":e.timeZone}}),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(3816)),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){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 n=`HTTP ${e.response.status} - `;throw e.response?.statusText&&(n+=`${e.response.statusText} `),e.response?.config?.data&&(n+=`${e.response.config.data} `),e.response?.data?.message?n+=`${e.response.data.message}`:e.response?.data?.exception?n+=`${e.response.data.exception}`:e.response?.data?.error?.message?(e.response.data.error.class&&(n+=`${e.response.data.error.class} `),n+=`${e.response.data.error.message}`):n+=`${e.response?.data}`,c.$notify&&c.$notify.serious({title:"Network error",body:n}),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(s){OpenC3Auth.login()}this.id=this.id+1;try{t["scope"]=window.openc3Scope,i["manual"]=!0;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(s){let e=new Error;throw s.response?(e.name=s.response.data.error.data.class,e.message=s.response.data.error.data.message):s.request?(e.name="Request error",e.message="Request error, no response received"):e.name="Unknown error",e}}decode_openc3_type(e){if(null!==e&&"object"===typeof e&&"Float"==e.json_class&&e.raw){if("NaN"==e.raw)return NaN;if("Infinity"==e.raw)return 1/0;if("-Infinity"==e.raw)return-1/0}return null}encode_openc3_type(e){return Number.isNaN(e)?{json_class:"Float",raw:"NaN"}:e==Number.POSITIVE_INFINITY?{json_class:"Float",raw:"Infinity"}:e==Number.NEGATIVE_INFINITY?{json_class:"Float",raw:"-Infinity"}:null}ensure_offline_access(){this.offline_access_needed().then((e=>{e&&(localStorage.openc3OfflineToken?this.set_offline_access(localStorage.openc3OfflineToken).then((()=>{delete localStorage.openc3OfflineToken})):OpenC3Auth.getOfflineAccess())}))}offline_access_needed(){return this.exec("offline_access_needed",[])}set_offline_access(e){return this.exec("set_offline_access",[e])}get_all_interface_info(){return this.exec("get_all_interface_info",[])}map_target_to_interface(e,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,n=!1){return this.exec("get_all_tlm_names",[e],{hidden:n})}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){let e=l.length,n=null;for(let t=0;t<e;t++)n=this.decode_openc3_type(l[t][1]),null!==n&&(l[t][1]=n)}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);let s=l[0].length,o=null;for(let 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)){let e=new Error;throw e.name="TypeError",e.message=`Invalid data type ${n}. Valid options are RAW, CONVERTED, FORMATTED, and WITH_UNITS.`,e}l=await this.exec("tlm",[e],{type:n})}else l=await this.exec("tlm",[e,n,t],{type:i});let s=this.decode_openc3_type(l);return null!==s&&(l=s),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,n=!1){return this.exec("get_all_cmd_names",[e],{hidden:n})}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){let s=null;for(let 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="4fc65da14539f21660ef90fceb77abe3a44ad42e",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:4608}},4:{start:{line:1,column:1309},end:{line:1,column:3045}},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:3332},end:{line:1,column:3358}},12:{start:{line:1,column:3722},end:{line:1,column:4180}},13:{start:{line:1,column:4006},end:{line:1,column:4035}},14:{start:{line:1,column:4521},end:{line:1,column:4551}},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:3046}},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:3316},end:{line:1,column:3317}},loc:{start:{line:1,column:3331},end:{line:1,column:3359}},line:1},9:{name:"(anonymous_9)",decl:{start:{line:1,column:3701},end:{line:1,column:3702}},loc:{start:{line:1,column:3721},end:{line:1,column:4181}},line:1},10:{name:"(anonymous_10)",decl:{start:{line:1,column:3989},end:{line:1,column:3990}},loc:{start:{line:1,column:4005},end:{line:1,column:4036}},line:1},11:{name:"(anonymous_11)",decl:{start:{line:1,column:4504},end:{line:1,column:4505}},loc:{start:{line:1,column:4520},end:{line:1,column:4552}},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:3041}},type:"cond-expr",locations:[{start:{line:1,column:3005},end:{line:1,column:3032}},{start:{line:1,column:3033},end:{line:1,column:3041}}],line:1},2:{loc:{start:{line:1,column:3395},end:{line:1,column:3470}},type:"cond-expr",locations:[{start:{line:1,column:3430},end:{line:1,column:3461}},{start:{line:1,column:3462},end:{line:1,column:3470}}],line:1},3:{loc:{start:{line:1,column:4098},end:{line:1,column:4176}},type:"cond-expr",locations:[{start:{line:1,column:4140},end:{line:1,column:4167}},{start:{line:1,column:4168},end:{line:1,column:4176}}],line:1},4:{loc:{start:{line:1,column:4195},end:{line:1,column:4270}},type:"cond-expr",locations:[{start:{line:1,column:4230},end:{line:1,column:4261}},{start:{line:1,column:4262},end:{line:1,column:4270}}],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:"4fc65da14539f21660ef90fceb77abe3a44ad42e"},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?(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(4293),t(7534);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,style:{}}},computed:{computedStyle(){return this.settings.forEach((e=>{const n=parseInt(e[0]);if(null!==this.widgetIndex){if(this.widgetIndex!==n)return;e=e.slice(1)}this.applySetting(this.style,e)})),void 0===this.style["width"]&&(this.style["flex"]="0 10 100%"),this.style}},created(){this.settings.forEach((e=>{"__SCREEN__"===e[0]&&(this.screen=e[1])})),this.settings=this.settings.map((e=>{const n=parseInt(e[0]);return isNaN(n)||null===this.widgetIndex?e:this.widgetIndex===n?e.slice(1):void 0})).filter((e=>void 0!==e))},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(let 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":"",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)},T=[],N=(t(8715),t(524)),O=t(5475),D=t(5179),$=t(2378);const M="yyyy-MM-dd",R="HH:mm:ss.SSS",V="HH:mm:ss",H=`${M} ${R}`,W={methods:{formatUtcToLocal(e,n){return n&&"local"!==n?(0,N.GP)(e,H):(0,N.GP)((0,O.Y)(e,e.getTimezoneOffset()),H)},formatDateTime(e,n){return n&&"local"!==n?(0,$.qD)(e,n,H):(0,N.GP)(e,H)},formatDate:function(e,n){return n&&"local"!==n?(0,$.qD)(e,this.timeZone,M):(0,N.GP)(e,M)},formatTime:function(e,n,t=R){return n&&"local"!==n?(0,$.qD)(e,this.timeZone,t):(0,N.GP)(e,t)},formatTimeHMS:function(e,n){return this.formatTime(e,n,V)},formatTimestamp(e,n){return this.formatDateTime((0,D.H)(e),n)},formatSeconds(e,n){return this.formatDateTime(new Date(1e3*e),n)},formatNanoseconds(e,n){return this.formatDateTime(new Date(parseInt(e)/1e6),n)}}};t(9471);const F={mixins:[b,W],props:{value:{default:null},limitsState:{type:String,default:null},counter:{default:null},formatString:null,timeZone:{type:String,default:"local"}},data(){return{curValue:null,prevValue:null,grayLevel:80,grayRate:5,valueId:null,arrayIndex:null,viewDetails:!1,contextMenuShown:!1,x:0,y:0,contextMenuOptions:[{title:"Details",action:()=>{this.contextMenuShown=!1,this.viewDetails=!0}},{title:"Graph",action:()=>{window.open("/tools/tlmgrapher/"+this.parameters[0]+"/"+this.parameters[1]+"/"+this.parameters[2],"_blank")}}]}},watch:{_counter:function(e,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]&&(null!==this.arrayIndex&&this.screen.screenValues[this.valueId][0]?this.curValue=this.screen.screenValues[this.valueId][0][this.arrayIndex]:this.curValue=this.screen.screenValues[this.valueId][0]):this.curValue=null),this.curValue=this.formatValue(this.curValue),this.curValue},_limitsState:function(){let e=this.limitsState;return null===e&&(this.screen?this.screen.screenValues[this.valueId]&&(e=this.screen.screenValues[this.valueId][1]):e=null),e},_counter:function(){let e=this.counter;return null===e&&(this.screen?this.screen.screenValues[this.valueId]&&(e=this.screen.screenValues[this.valueId][2]):e=null),e},valueClass:function(){return"value shrink pa-1 openc3-"+this.limitsColor},astroIcon(){switch(this.limitsColor){case"green":return"$vuetify.icons.astro-status-normal";case"yellow":return"$vuetify.icons.astro-status-caution";case"red":return"$vuetify.icons.astro-status-critical";case"blue":return"$vuetify.icons.astro-status-standby";default:return null}},limitsColor(){let e=this._limitsState;if(null!=e)switch(e){case"GREEN":case"GREEN_HIGH":case"GREEN_LOW":return"green";case"YELLOW":case"YELLOW_HIGH":case"YELLOW_LOW":return"yellow";case"RED":case"RED_HIGH":case"RED_LOW":return"red";case"BLUE":return"blue";case"STALE":return"purple";default:return"white"}return""},limitsLetter(){let e=this._limitsState;if(null!=e){let n=e.charAt(0);return e.endsWith("_LOW")&&(n=n.toLowerCase()),n}return""}},created(){if(null===this.value||null===this.limitsState){if(this.parameters[2].includes("[["))this.parameters[2]=this.parameters[2].replace("[[","[").replace("]]","]");else if(this.parameters[2].includes("[")){let e=this.parameters[2].match(/\[(\d+)\]/);this.arrayIndex=parseInt(e[1]),this.parameters[2]=this.parameters[2].replace(e[0],"")}this.valueId=`${this.parameters[0]}__${this.parameters[1]}__${this.parameters[2]}__${this.getType()}`,this.screen&&(this.screen.addItem(this.valueId),this.timeZone=this.screen.timeZone)}},destroyed(){null!==this.value&&null!==this.limitsState||this.screen&&this.screen.deleteItem(this.valueId)},methods:{getType(){let e="WITH_UNITS";return this.parameters[3]&&(e=this.parameters[3]),e},formatValue(e){if(e&&this.valueId&&(this.valueId.includes("PACKET_TIMEFORMATTED")||this.valueId.includes("RECEIVED_TIMEFORMATTED")))return e=e.replaceAll("/","-"),this.formatUtcToLocal(new Date(e),this.timeZone);if(e&&"String"===e["json_class"]&&void 0!==e["raw"]){let 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 P=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)},G=[];const U={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}}},K=U;t(4849);var z=(0,I.A)(K,P,G,!1,null,"18fc7350",null);const Y=z.exports,B=4,j={components:{DetailsDialog:Y},mixins:[F],data:function(){return{width:12+B}},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])+B,"ch",this.width)}},Z=j;t(8299);var q=(0,I.A)(Z,E,T,!1,null,"21febbc3",null);const J=q.exports,X={mixins:[b],components:{LabelWidget:k,ValueWidget:J},computed:{labelName(){let e=this.parameters[2];return e.includes("[[")&&(e=e.replace("[[","[").replace("]]","]")),[e+":"]},valueParameters(){return[this.parameters[0],this.parameters[1],this.parameters[2],this.parameters[3],this.parameters[4]]}}},Q=X;var ee=(0,I.A)(Q,_,g,!1,null,null,null);const ne=ee.exports;var te=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.parameters,settings:[...e.settings],"widget-index":2}})],1)},ie=[],le=function(){var e=this,n=e._self._c;return n("div",{staticClass:"limitsbar",style:[e.cssProps,e.computedStyle]},[e._m(0)])},se=[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 oe={mixins:[b],data(){return{minValue:null,maxValue:null,redLow:0,yellowLow:0,greenLow:0,greenHigh:0,yellowHigh:0,redHigh:0,blue:0,api:null,limitsSettings:{DEFAULT:[]},currentLimitsSet:"DEFAULT",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:"DEFAULT"}},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),this.valueId=`${this.parameters[0]}__${this.parameters[1]}__${this.parameters[2]}__CONVERTED`,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,null!==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)),null!==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(!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}))}}},ae={mixins:[oe],data(){return{width:160,height:22}}},re=ae;t(9851);var ce=(0,I.A)(re,le,se,!1,null,"4b85d27c",null);const me=ce.exports,ue={mixins:[b],components:{LabelvalueWidget:ne,LimitsbarWidget:me},computed:{labelValueSettings(){return[...this.settings.filter((e=>"__SCREEN__"===e[0])),...this.settings.filter((e=>0===parseInt(e[0])||1===parseInt(e[0])))]}}},de=ue;var Ae=(0,I.A)(de,te,ie,!1,null,null,null);const he=Ae.exports;function ve(){var e="/openc3/plugins/packages/openc3-cosmos-tool-limitsmonitor/src/tools/LimitsMonitor/LimitsControl.vue",n="1600310ccb1be40d2a94f2fcdcbb43ae4c419d46",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:26,column:4},end:{line:45,column:5}},2:{start:{line:49,column:6},end:{line:53,column:7}},3:{start:{line:50,column:8},end:{line:50,column:61}},4:{start:{line:52,column:8},end:{line:52,column:17}},5:{start:{line:56,column:6},end:{line:60,column:7}},6:{start:{line:57,column:8},end:{line:57,column:32}},7:{start:{line:59,column:8},end:{line:59,column:58}},8:{start:{line:63,column:6},end:{line:63,column:61}},9:{start:{line:63,column:37},end:{line:63,column:60}},10:{start:{line:66,column:6},end:{line:78,column:7}},11:{start:{line:68,column:10},end:{line:68,column:53}},12:{start:{line:70,column:10},end:{line:70,column:54}},13:{start:{line:72,column:10},end:{line:72,column:55}},14:{start:{line:75,column:10},end:{line:75,column:54}},15:{start:{line:77,column:10},end:{line:77,column:21}},16:{start:{line:82,column:4},end:{line:82,column:30}},17:{start:{line:84,column:4},end:{line:92,column:5}},18:{start:{line:85,column:6},end:{line:91,column:7}},19:{start:{line:87,column:8},end:{line:87,column:35}},20:{start:{line:90,column:8},end:{line:90,column:37}},21:{start:{line:93,column:4},end:{line:93,column:28}},22:{start:{line:94,column:4},end:{line:94,column:30}},23:{start:{line:95,column:4},end:{line:98,column:5}},24:{start:{line:100,column:4},end:{line:109,column:8}},25:{start:{line:103,column:10},end:{line:103,column:33}},26:{start:{line:104,column:10},end:{line:104,column:37}},27:{start:{line:108,column:8},end:{line:108,column:52}},28:{start:{line:110,column:4},end:{line:120,column:8}},29:{start:{line:113,column:10},end:{line:113,column:33}},30:{start:{line:114,column:25},end:{line:114,column:41}},31:{start:{line:115,column:10},end:{line:115,column:41}},32:{start:{line:119,column:8},end:{line:119,column:52}},33:{start:{line:123,column:4},end:{line:125,column:12}},34:{start:{line:124,column:6},end:{line:124,column:19}},35:{start:{line:128,column:4},end:{line:131,column:5}},36:{start:{line:129,column:6},end:{line:129,column:33}},37:{start:{line:130,column:6},end:{line:130,column:25}},38:{start:{line:132,column:4},end:{line:134,column:5}},39:{start:{line:133,column:6},end:{line:133,column:43}},40:{start:{line:135,column:4},end:{line:137,column:5}},41:{start:{line:136,column:6},end:{line:136,column:43}},42:{start:{line:138,column:4},end:{line:138,column:27}},43:{start:{line:142,column:6},end:{line:144,column:8}},44:{start:{line:143,column:8},end:{line:143,column:38}},45:{start:{line:147,column:6},end:{line:147,column:21}},46:{start:{line:148,column:6},end:{line:148,column:24}},47:{start:{line:150,column:6},end:{line:178,column:8}},48:{start:{line:151,column:8},end:{line:176,column:9}},49:{start:{line:152,column:25},end:{line:152,column:40}},50:{start:{line:154,column:10},end:{line:156,column:11}},51:{start:{line:154,column:45},end:{line:154,column:71}},52:{start:{line:155,column:12},end:{line:155,column:20}},53:{start:{line:158,column:10},end:{line:158,column:38}},54:{start:{line:159,column:25},end:{line:163,column:11}},55:{start:{line:164,column:10},end:{line:166,column:11}},56:{start:{line:165,column:12},end:{line:165,column:40}},57:{start:{line:167,column:10},end:{line:169,column:11}},58:{start:{line:168,column:12},end:{line:168,column:37}},59:{start:{line:170,column:10},end:{line:174,column:11}},60:{start:{line:171,column:12},end:{line:171,column:38}},61:{start:{line:173,column:12},end:{line:173,column:37}},62:{start:{line:175,column:10},end:{line:175,column:35}},63:{start:{line:177,column:8},end:{line:177,column:31}},64:{start:{line:181,column:20},end:{line:181,column:27}},65:{start:{line:182,column:6},end:{line:194,column:7}},66:{start:{line:183,column:8},end:{line:185,column:9}},67:{start:{line:183,column:43},end:{line:183,column:65}},68:{start:{line:184,column:10},end:{line:184,column:18}},69:{start:{line:187,column:8},end:{line:189,column:9}},70:{start:{line:188,column:10},end:{line:188,column:28}},71:{start:{line:190,column:8},end:{line:193,column:9}},72:{start:{line:191,column:10},end:{line:191,column:25}},73:{start:{line:192,column:10},end:{line:192,column:15}},74:{start:{line:195,column:6},end:{line:195,column:33}},75:{start:{line:198,column:50},end:{line:198,column:66}},76:{start:{line:199,column:23},end:{line:199,column:55}},77:{start:{line:200,column:6},end:{line:200,column:35}},78:{start:{line:201,column:6},end:{line:201,column:38}},79:{start:{line:203,column:6},end:{line:211,column:7}},80:{start:{line:204,column:20},end:{line:204,column:80}},81:{start:{line:204,column:54},end:{line:204,column:79}},82:{start:{line:205,column:8},end:{line:210,column:9}},83:{start:{line:206,column:10},end:{line:206,column:15}},84:{start:{line:208,column:27},end:{line:208,column:65}},85:{start:{line:209,column:10},end:{line:209,column:72}},86:{start:{line:212,column:6},end:{line:212,column:29}},87:{start:{line:215,column:6},end:{line:215,column:29}},88:{start:{line:216,column:6},end:{line:216,column:38}},89:{start:{line:217,column:6},end:{line:217,column:27}},90:{start:{line:218,column:6},end:{line:218,column:29}},91:{start:{line:221,column:6},end:{line:221,column:35}},92:{start:{line:222,column:6},end:{line:222,column:26}},93:{start:{line:223,column:6},end:{line:223,column:30}},94:{start:{line:226,column:20},end:{line:228,column:7}},95:{start:{line:227,column:8},end:{line:227,column:32}},96:{start:{line:229,column:6},end:{line:229,column:33}},97:{start:{line:230,column:6},end:{line:230,column:36}},98:{start:{line:233,column:6},end:{line:233,column:23}},99:{start:{line:234,column:6},end:{line:234,column:26}},100:{start:{line:235,column:6},end:{line:235,column:30}},101:{start:{line:238,column:6},end:{line:238,column:39}},102:{start:{line:241,column:6},end:{line:246,column:7}},103:{start:{line:243,column:8},end:{line:245,column:9}},104:{start:{line:244,column:10},end:{line:244,column:34}},105:{start:{line:249,column:6},end:{line:302,column:7}},106:{start:{line:250,column:8},end:{line:250,column:46}},107:{start:{line:254,column:8},end:{line:256,column:9}},108:{start:{line:255,column:10},end:{line:255,column:18}},109:{start:{line:258,column:23},end:{line:258,column:93}},110:{start:{line:259,column:22},end:{line:261,column:9}},111:{start:{line:260,column:10},end:{line:260,column:38}},112:{start:{line:263,column:8},end:{line:267,column:9}},113:{start:{line:264,column:10},end:{line:264,column:75}},114:{start:{line:265,column:10},end:{line:265,column:33}},115:{start:{line:266,column:10},end:{line:266,column:18}},116:{start:{line:269,column:8},end:{line:271,column:9}},117:{start:{line:269,column:43},end:{line:269,column:69}},118:{start:{line:270,column:10},end:{line:270,column:18}},119:{start:{line:273,column:8},end:{line:281,column:9}},120:{start:{line:280,column:10},end:{line:280,column:18}},121:{start:{line:282,column:23},end:{line:290,column:9}},122:{start:{line:291,column:8},end:{line:298,column:9}},123:{start:{line:295,column:10},end:{line:295,column:36}},124:{start:{line:297,column:10},end:{line:297,column:35}},125:{start:{line:299,column:8},end:{line:299,column:70}},126:{start:{line:300,column:8},end:{line:300,column:33}},127:{start:{line:301,column:8},end:{line:301,column:31}},128:{start:{line:305,column:6},end:{line:309,column:7}},129:{start:{line:306,column:8},end:{line:308,column:10}},130:{start:{line:307,column:10},end:{line:307,column:33}},131:{start:{line:312,column:6},end:{line:312,column:29}},132:{start:{line:313,column:6},end:{line:316,column:7}},133:{start:{line:313,column:19},end:{line:313,column:20}},134:{start:{line:314,column:8},end:{line:314,column:42}},135:{start:{line:315,column:8},end:{line:315,column:66}},136:{start:{line:319,column:6},end:{line:319,column:36}},137:{start:{line:320,column:6},end:{line:320,column:58}},138:{start:{line:323,column:18},end:{line:323,column:51}},139:{start:{line:324,column:6},end:{line:324,column:39}},140:{start:{line:329,column:6},end:{line:329,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:25,column:2},end:{line:25,column:3}},loc:{start:{line:25,column:9},end:{line:46,column:3}},line:25},2:{name:"(anonymous_2)",decl:{start:{line:48,column:4},end:{line:48,column:5}},loc:{start:{line:48,column:21},end:{line:54,column:5}},line:48},3:{name:"(anonymous_3)",decl:{start:{line:55,column:4},end:{line:55,column:5}},loc:{start:{line:55,column:28},end:{line:61,column:5}},line:55},4:{name:"(anonymous_4)",decl:{start:{line:62,column:4},end:{line:62,column:5}},loc:{start:{line:62,column:23},end:{line:64,column:5}},line:62},5:{name:"(anonymous_5)",decl:{start:{line:63,column:30},end:{line:63,column:31}},loc:{start:{line:63,column:37},end:{line:63,column:60}},line:63},6:{name:"(anonymous_6)",decl:{start:{line:65,column:4},end:{line:65,column:5}},loc:{start:{line:65,column:16},end:{line:79,column:5}},line:65},7:{name:"(anonymous_7)",decl:{start:{line:81,column:2},end:{line:81,column:3}},loc:{start:{line:81,column:12},end:{line:121,column:3}},line:81},8:{name:"(anonymous_8)",decl:{start:{line:102,column:18},end:{line:102,column:19}},loc:{start:{line:102,column:30},end:{line:105,column:9}},line:102},9:{name:"(anonymous_9)",decl:{start:{line:107,column:12},end:{line:107,column:13}},loc:{start:{line:107,column:36},end:{line:109,column:7}},line:107},10:{name:"(anonymous_10)",decl:{start:{line:112,column:18},end:{line:112,column:19}},loc:{start:{line:112,column:28},end:{line:116,column:9}},line:112},11:{name:"(anonymous_11)",decl:{start:{line:118,column:12},end:{line:118,column:13}},loc:{start:{line:118,column:36},end:{line:120,column:7}},line:118},12:{name:"(anonymous_12)",decl:{start:{line:122,column:2},end:{line:122,column:3}},loc:{start:{line:122,column:12},end:{line:126,column:3}},line:122},13:{name:"(anonymous_13)",decl:{start:{line:123,column:31},end:{line:123,column:32}},loc:{start:{line:123,column:37},end:{line:125,column:5}},line:123},14:{name:"(anonymous_14)",decl:{start:{line:127,column:2},end:{line:127,column:3}},loc:{start:{line:127,column:14},end:{line:139,column:3}},line:127},15:{name:"(anonymous_15)",decl:{start:{line:141,column:25},end:{line:141,column:26}},loc:{start:{line:141,column:37},end:{line:145,column:5}},line:141},16:{name:"(anonymous_16)",decl:{start:{line:142,column:37},end:{line:142,column:38}},loc:{start:{line:142,column:49},end:{line:144,column:7}},line:142},17:{name:"(anonymous_17)",decl:{start:{line:146,column:4},end:{line:146,column:5}},loc:{start:{line:146,column:24},end:{line:179,column:5}},line:146},18:{name:"(anonymous_18)",decl:{start:{line:150,column:40},end:{line:150,column:41}},loc:{start:{line:150,column:51},end:{line:178,column:7}},line:150},19:{name:"(anonymous_19)",decl:{start:{line:154,column:32},end:{line:154,column:33}},loc:{start:{line:154,column:45},end:{line:154,column:71}},line:154},20:{name:"(anonymous_20)",decl:{start:{line:180,column:4},end:{line:180,column:5}},loc:{start:{line:180,column:23},end:{line:196,column:5}},line:180},21:{name:"(anonymous_21)",decl:{start:{line:183,column:30},end:{line:183,column:31}},loc:{start:{line:183,column:43},end:{line:183,column:65}},line:183},22:{name:"(anonymous_22)",decl:{start:{line:197,column:4},end:{line:197,column:5}},loc:{start:{line:197,column:33},end:{line:213,column:5}},line:197},23:{name:"(anonymous_23)",decl:{start:{line:204,column:44},end:{line:204,column:45}},loc:{start:{line:204,column:54},end:{line:204,column:79}},line:204},24:{name:"(anonymous_24)",decl:{start:{line:214,column:4},end:{line:214,column:5}},loc:{start:{line:214,column:31},end:{line:219,column:5}},line:214},25:{name:"(anonymous_25)",decl:{start:{line:220,column:4},end:{line:220,column:5}},loc:{start:{line:220,column:23},end:{line:224,column:5}},line:220},26:{name:"(anonymous_26)",decl:{start:{line:225,column:4},end:{line:225,column:5}},loc:{start:{line:225,column:21},end:{line:231,column:5}},line:225},27:{name:"(anonymous_27)",decl:{start:{line:226,column:44},end:{line:226,column:45}},loc:{start:{line:227,column:8},end:{line:227,column:32}},line:227},28:{name:"(anonymous_28)",decl:{start:{line:232,column:4},end:{line:232,column:5}},loc:{start:{line:232,column:15},end:{line:236,column:5}},line:232},29:{name:"(anonymous_29)",decl:{start:{line:237,column:4},end:{line:237,column:5}},loc:{start:{line:237,column:20},end:{line:239,column:5}},line:237},30:{name:"(anonymous_30)",decl:{start:{line:240,column:4},end:{line:240,column:5}},loc:{start:{line:240,column:31},end:{line:247,column:5}},line:240},31:{name:"(anonymous_31)",decl:{start:{line:248,column:4},end:{line:248,column:5}},loc:{start:{line:248,column:29},end:{line:303,column:5}},line:248},32:{name:"(anonymous_32)",decl:{start:{line:259,column:46},end:{line:259,column:47}},loc:{start:{line:260,column:10},end:{line:260,column:38}},line:260},33:{name:"(anonymous_33)",decl:{start:{line:269,column:30},end:{line:269,column:31}},loc:{start:{line:269,column:43},end:{line:269,column:69}},line:269},34:{name:"(anonymous_34)",decl:{start:{line:304,column:4},end:{line:304,column:5}},loc:{start:{line:304,column:13},end:{line:310,column:5}},line:304},35:{name:"(anonymous_35)",decl:{start:{line:306,column:55},end:{line:306,column:56}},loc:{start:{line:306,column:65},end:{line:308,column:9}},line:306},36:{name:"(anonymous_36)",decl:{start:{line:311,column:18},end:{line:311,column:19}},loc:{start:{line:311,column:36},end:{line:317,column:5}},line:311},37:{name:"(anonymous_37)",decl:{start:{line:318,column:13},end:{line:318,column:14}},loc:{start:{line:318,column:32},end:{line:321,column:5}},line:318},38:{name:"(anonymous_38)",decl:{start:{line:322,column:16},end:{line:322,column:17}},loc:{start:{line:322,column:35},end:{line:325,column:5}},line:322},39:{name:"(anonymous_39)",decl:{start:{line:328,column:4},end:{line:328,column:5}},loc:{start:{line:328,column:18},end:{line:330,column:5}},line:328}},branchMap:{0:{loc:{start:{line:49,column:6},end:{line:53,column:7}},type:"if",locations:[{start:{line:49,column:6},end:{line:53,column:7}},{start:{line:51,column:13},end:{line:53,column:7}}],line:49},1:{loc:{start:{line:56,column:6},end:{line:60,column:7}},type:"if",locations:[{start:{line:56,column:6},end:{line:60,column:7}},{start:{line:58,column:13},end:{line:60,column:7}}],line:56},2:{loc:{start:{line:66,column:6},end:{line:78,column:7}},type:"switch",locations:[{start:{line:67,column:8},end:{line:68,column:53}},{start:{line:69,column:8},end:{line:70,column:54}},{start:{line:71,column:8},end:{line:72,column:55}},{start:{line:73,column:8},end:{line:75,column:54}},{start:{line:76,column:8},end:{line:77,column:21}}],line:66},3:{loc:{start:{line:85,column:6},end:{line:91,column:7}},type:"if",locations:[{start:{line:85,column:6},end:{line:91,column:7}},{start:{line:88,column:13},end:{line:91,column:7}}],line:85},4:{loc:{start:{line:128,column:4},end:{line:131,column:5}},type:"if",locations:[{start:{line:128,column:4},end:{line:131,column:5}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:128},5:{loc:{start:{line:132,column:4},end:{line:134,column:5}},type:"if",locations:[{start:{line:132,column:4},end:{line:134,column:5}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:132},6:{loc:{start:{line:135,column:4},end:{line:137,column:5}},type:"if",locations:[{start:{line:135,column:4},end:{line:137,column:5}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:135},7:{loc:{start:{line:154,column:10},end:{line:156,column:11}},type:"if",locations:[{start:{line:154,column:10},end:{line:156,column:11}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:154},8:{loc:{start:{line:164,column:10},end:{line:166,column:11}},type:"if",locations:[{start:{line:164,column:10},end:{line:166,column:11}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:164},9:{loc:{start:{line:164,column:14},end:{line:164,column:71}},type:"binary-expr",locations:[{start:{line:164,column:14},end:{line:164,column:40}},{start:{line:164,column:44},end:{line:164,column:71}}],line:164},10:{loc:{start:{line:167,column:10},end:{line:169,column:11}},type:"if",locations:[{start:{line:167,column:10},end:{line:169,column:11}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:167},11:{loc:{start:{line:170,column:10},end:{line:174,column:11}},type:"if",locations:[{start:{line:170,column:10},end:{line:174,column:11}},{start:{line:172,column:17},end:{line:174,column:11}}],line:170},12:{loc:{start:{line:170,column:14},end:{line:170,column:53}},type:"binary-expr",locations:[{start:{line:170,column:14},end:{line:170,column:33}},{start:{line:170,column:37},end:{line:170,column:53}}],line:170},13:{loc:{start:{line:183,column:8},end:{line:185,column:9}},type:"if",locations:[{start:{line:183,column:8},end:{line:185,column:9}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:183},14:{loc:{start:{line:187,column:8},end:{line:189,column:9}},type:"if",locations:[{start:{line:187,column:8},end:{line:189,column:9}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:187},15:{loc:{start:{line:187,column:12},end:{line:187,column:56}},type:"binary-expr",locations:[{start:{line:187,column:12},end:{line:187,column:35}},{start:{line:187,column:39},end:{line:187,column:56}}],line:187},16:{loc:{start:{line:190,column:8},end:{line:193,column:9}},type:"if",locations:[{start:{line:190,column:8},end:{line:193,column:9}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:190},17:{loc:{start:{line:201,column:6},end:{line:201,column:38}},type:"binary-expr",locations:[{start:{line:201,column:6},end:{line:201,column:14}},{start:{line:201,column:18},end:{line:201,column:38}}],line:201},18:{loc:{start:{line:205,column:8},end:{line:210,column:9}},type:"if",locations:[{start:{line:205,column:8},end:{line:210,column:9}},{start:{line:207,column:15},end:{line:210,column:9}}],line:205},19:{loc:{start:{line:216,column:6},end:{line:216,column:38}},type:"binary-expr",locations:[{start:{line:216,column:6},end:{line:216,column:14}},{start:{line:216,column:18},end:{line:216,column:38}}],line:216},20:{loc:{start:{line:243,column:8},end:{line:245,column:9}},type:"if",locations:[{start:{line:243,column:8},end:{line:245,column:9}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:243},21:{loc:{start:{line:243,column:12},end:{line:243,column:69}},type:"binary-expr",locations:[{start:{line:243,column:12},end:{line:243,column:39}},{start:{line:243,column:43},end:{line:243,column:69}}],line:243},22:{loc:{start:{line:254,column:8},end:{line:256,column:9}},type:"if",locations:[{start:{line:254,column:8},end:{line:256,column:9}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:254},23:{loc:{start:{line:263,column:8},end:{line:267,column:9}},type:"if",locations:[{start:{line:263,column:8},end:{line:267,column:9}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:263},24:{loc:{start:{line:269,column:8},end:{line:271,column:9}},type:"if",locations:[{start:{line:269,column:8},end:{line:271,column:9}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:269},25:{loc:{start:{line:273,column:8},end:{line:281,column:9}},type:"if",locations:[{start:{line:273,column:8},end:{line:281,column:9}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:273},26:{loc:{start:{line:274,column:10},end:{line:278,column:11}},type:"binary-expr",locations:[{start:{line:274,column:10},end:{line:274,column:34}},{start:{line:275,column:10},end:{line:278,column:11}}],line:274},27:{loc:{start:{line:276,column:12},end:{line:277,column:52}},type:"binary-expr",locations:[{start:{line:276,column:12},end:{line:276,column:55}},{start:{line:277,column:12},end:{line:277,column:52}}],line:276},28:{loc:{start:{line:291,column:8},end:{line:298,column:9}},type:"if",locations:[{start:{line:291,column:8},end:{line:298,column:9}},{start:{line:296,column:15},end:{line:298,column:9}}],line:291},29:{loc:{start:{line:292,column:10},end:{line:293,column:43}},type:"binary-expr",locations:[{start:{line:292,column:10},end:{line:292,column:46}},{start:{line:293,column:10},end:{line:293,column:43}}],line:292},30:{loc:{start:{line:305,column:6},end:{line:309,column:7}},type:"if",locations:[{start:{line:305,column:6},end:{line:309,column:7}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:305}},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;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;;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 2024, OpenC3, Inc.\n# All Rights Reserved\n#\n# This file may also be used under the terms of a commercial license\n# if purchased from OpenC3, Inc.\n--\x3e\n\n<template>\n <div>\n <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" :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 TimeFilters from \'@openc3/tool-common/src/tools/base/util/timeFilters.js\'\n\nexport default {\n components: {\n LabelvalueWidget,\n LabelvaluelimitsbarWidget,\n },\n props: {\n value: {\n type: Array,\n default: () => [],\n },\n timeZone: {\n type: String,\n default: \'local\',\n },\n },\n mixins: [TimeFilters],\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: this.formatDateTime(new Date(), this.timeZone),\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: this.formatNanoseconds(message.time_nsec, this.timeZone),\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:"1600310ccb1be40d2a94f2fcdcbb43ae4c419d46"},s=t[i]||(t[i]={});s[e]&&s[e].hash===n||(s[e]=l);var o=s[e];return ve=function(){return o},o}ve();const pe={components:{LabelvalueWidget:ne,LabelvaluelimitsbarWidget:he},props:{value:{type:Array,default:()=>(ve().f[0]++,ve().s[0]++,[])},timeZone:{type:String,default:"local"}},mixins:[W],data(){return ve().f[1]++,ve().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 ve().f[2]++,ve().s[2]++,this.overallState?(ve().b[0][0]++,ve().s[3]++,`textfield-${this.overallState.toLowerCase()}`):(ve().b[0][1]++,ve().s[4]++,"")},overallStateFormatted(){return ve().f[3]++,ve().s[5]++,0===this.ignored.length?(ve().b[1][0]++,ve().s[6]++,this.overallState):(ve().b[1][1]++,ve().s[7]++,`${this.overallState} (Some items ignored)`)},ignoredFormatted(){return ve().f[4]++,ve().s[8]++,this.ignored.map((e=>(ve().f[5]++,ve().s[9]++,e.split("__").join(" "))))},astroIcon(){switch(ve().f[6]++,ve().s[10]++,this.overallState){case"GREEN":return ve().b[2][0]++,ve().s[11]++,"$vuetify.icons.astro-status-normal";case"YELLOW":return ve().b[2][1]++,ve().s[12]++,"$vuetify.icons.astro-status-caution";case"RED":return ve().b[2][2]++,ve().s[13]++,"$vuetify.icons.astro-status-critical";case"BLUE":return ve().b[2][3]++,ve().s[14]++,"$vuetify.icons.astro-status-standby";default:return ve().b[2][4]++,ve().s[15]++,null}}},created(){ve().f[7]++,ve().s[16]++,this.api=new d,ve().s[17]++;for(let e of this.value)ve().s[18]++,e.match(/.+__.+__.+/)?(ve().b[3][0]++,ve().s[19]++,this.ignoreItem(e,!0)):(ve().b[3][1]++,ve().s[20]++,this.ignorePacket(e,!0));ve().s[21]++,this.updateOutOfLimits(),ve().s[22]++,this.getCurrentLimitsSet(),ve().s[23]++,this.currentSetRefreshInterval=setInterval(this.getCurrentLimitsSet,1e4),ve().s[24]++,this.cable.createSubscription("LimitsEventsChannel",window.openc3Scope,{received:e=>{ve().f[8]++,ve().s[25]++,this.cable.recordPing(),ve().s[26]++,this.handleMessages(e)}}).then((e=>{ve().f[9]++,ve().s[27]++,this.limitsSubscription=e})),ve().s[28]++,this.cable.createSubscription("ConfigEventsChannel",window.openc3Scope,{received:e=>{ve().f[10]++,ve().s[29]++,this.cable.recordPing();const n=(ve().s[30]++,JSON.parse(e));ve().s[31]++,this.handleConfigEvents(n)}}).then((e=>{ve().f[11]++,ve().s[32]++,this.configSubscription=e}))},mounted(){ve().f[12]++,ve().s[33]++,this.updater=setInterval((()=>{ve().f[13]++,ve().s[34]++,this.update()}),1e3)},destroyed(){ve().f[14]++,ve().s[35]++,null!=this.updater?(ve().b[4][0]++,ve().s[36]++,clearInterval(this.updater),ve().s[37]++,this.updater=null):ve().b[4][1]++,ve().s[38]++,this.limitsSubscription?(ve().b[5][0]++,ve().s[39]++,this.limitsSubscription.unsubscribe()):ve().b[5][1]++,ve().s[40]++,this.configSubscription?(ve().b[6][0]++,ve().s[41]++,this.configSubscription.unsubscribe()):ve().b[6][1]++,ve().s[42]++,this.cable.disconnect()},methods:{getCurrentLimitsSet:function(){ve().f[15]++,ve().s[43]++,this.api.get_limits_set().then((e=>{ve().f[16]++,ve().s[44]++,this.currentLimitsSet=e}))},updateOutOfLimits(){ve().f[17]++,ve().s[45]++,this.items=[],ve().s[46]++,this.itemList=[],ve().s[47]++,this.api.get_out_of_limits().then((e=>{ve().f[18]++,ve().s[48]++;for(const n of e){let e=(ve().s[49]++,n.join("__"));if(ve().s[50]++,this.ignored.find((n=>(ve().f[19]++,ve().s[51]++,e.includes(n))))){ve().b[7][0]++,ve().s[52]++;continue}ve().b[7][1]++,ve().s[53]++,this.itemList.push(e);let t=(ve().s[54]++,{key:n.slice(0,3).join("__"),parameters:n.slice(0,3),timestamp:this.formatDateTime(new Date,this.timeZone)});ve().s[55]++,ve().b[9][0]++,n[3].includes("YELLOW")&&(ve().b[9][1]++,"RED"!==this.overallState)?(ve().b[8][0]++,ve().s[56]++,this.overallState="YELLOW"):ve().b[8][1]++,ve().s[57]++,n[3].includes("RED")?(ve().b[10][0]++,ve().s[58]++,this.overallState="RED"):ve().b[10][1]++,ve().s[59]++,ve().b[12][0]++,"YELLOW"==n[3]||(ve().b[12][1]++,"RED"==n[3])?(ve().b[11][0]++,ve().s[60]++,t["limits"]=!1):(ve().b[11][1]++,ve().s[61]++,t["limits"]=!0),ve().s[62]++,this.items.push(t)}ve().s[63]++,this.calcOverallState()}))},calcOverallState(){ve().f[20]++;let e=(ve().s[64]++,"GREEN");ve().s[65]++;for(let n of this.itemList)if(ve().s[66]++,this.ignored.find((e=>(ve().f[21]++,ve().s[67]++,n.includes(e)))))ve().b[13][0]++,ve().s[68]++;else{if(ve().b[13][1]++,ve().s[69]++,ve().b[15][0]++,n.includes("YELLOW")&&(ve().b[15][1]++,"RED"!==e)?(ve().b[14][0]++,ve().s[70]++,e="YELLOW"):ve().b[14][1]++,ve().s[71]++,n.includes("RED")){ve().b[16][0]++,ve().s[72]++,e="RED",ve().s[73]++;break}ve().b[16][1]++}ve().s[74]++,this.overallState=e},ignorePacket(e,n){ve().f[22]++;let[t,i,l]=(ve().s[75]++,e.split("__")),s=(ve().s[76]++,`${t}__${i}`);ve().s[77]++,this.ignored.push(s),ve().s[78]++,ve().b[17][0]++,n||(ve().b[17][1]++,this.updateIgnored()),ve().s[79]++;while(1){let e=(ve().s[80]++,this.itemList.findIndex((e=>(ve().f[23]++,ve().s[81]++,e.includes(s)))));if(ve().s[82]++,-1===e){ve().b[18][0]++,ve().s[83]++;break}{ve().b[18][1]++;let n=(ve().s[84]++,this.itemList[e].lastIndexOf("__"));ve().s[85]++,this.removeItem(this.itemList[e].substring(0,n))}}ve().s[86]++,this.calcOverallState()},ignoreItem(e,n){ve().f[24]++,ve().s[87]++,this.ignored.push(e),ve().s[88]++,ve().b[19][0]++,n||(ve().b[19][1]++,this.updateIgnored()),ve().s[89]++,this.removeItem(e),ve().s[90]++,this.calcOverallState()},restoreItem(e){ve().f[25]++,ve().s[91]++,this.ignored.splice(e,1),ve().s[92]++,this.updateIgnored(),ve().s[93]++,this.updateOutOfLimits()},removeItem(e){ve().f[26]++;const n=(ve().s[94]++,this.itemList.findIndex((n=>(ve().f[27]++,ve().s[95]++,n.includes(e)))));ve().s[96]++,this.items.splice(n,1),ve().s[97]++,this.itemList.splice(n,1)},clearAll(){ve().f[28]++,ve().s[98]++,this.ignored=[],ve().s[99]++,this.updateIgnored(),ve().s[100]++,this.updateOutOfLimits()},updateIgnored(){ve().f[29]++,ve().s[101]++,this.$emit("input",this.ignored)},handleConfigEvents(e){ve().f[30]++,ve().s[102]++;for(let n of e)ve().s[103]++,ve().b[21][0]++,"deleted"===n["kind"]&&(ve().b[21][1]++,"target"===n["type"])?(ve().b[20][0]++,ve().s[104]++,this.updateOutOfLimits()):ve().b[20][1]++},handleMessages(e){ve().f[31]++,ve().s[105]++;for(let n of e){if(ve().s[106]++,n=JSON.parse(n["event"]),ve().s[107]++,"LIMITS_CHANGE"!=n.type){ve().b[22][0]++,ve().s[108]++;continue}ve().b[22][1]++;let e=(ve().s[109]++,`${n.target_name}__${n.packet_name}__${n.item_name}`);const t=(ve().s[110]++,this.itemList.findIndex((n=>(ve().f[32]++,ve().s[111]++,n.includes(e)))));if(ve().s[112]++,-1!==t){ve().b[23][0]++,ve().s[113]++,this.itemList[t]=`${e}__${n.new_limits_state}`,ve().s[114]++,this.calcOverallState(),ve().s[115]++;continue}if(ve().b[23][1]++,ve().s[116]++,this.ignored.find((n=>(ve().f[33]++,ve().s[117]++,e.includes(n))))){ve().b[24][0]++,ve().s[118]++;continue}if(ve().b[24][1]++,ve().s[119]++,ve().b[26][0]++,n.new_limits_state&&(ve().b[26][1]++,ve().b[27][0]++,!n.new_limits_state.includes("YELLOW")&&(ve().b[27][1]++,!n.new_limits_state.includes("RED")))){ve().b[25][0]++,ve().s[120]++;continue}ve().b[25][1]++;let i=(ve().s[121]++,{key:e,timestamp:this.formatNanoseconds(n.time_nsec,this.timeZone),parameters:[n.target_name,n.packet_name,n.item_name]});ve().s[122]++,ve().b[29][0]++,"YELLOW"==n.new_limits_state||(ve().b[29][1]++,"RED"==n.new_limits_state)?(ve().b[28][0]++,ve().s[123]++,i["limits"]=!1):(ve().b[28][1]++,ve().s[124]++,i["limits"]=!0),ve().s[125]++,this.itemList.push(`${e}__${n.new_limits_state}`),ve().s[126]++,this.items.push(i),ve().s[127]++,this.calcOverallState()}},update(){ve().f[34]++,ve().s[128]++,0!==this.screenItems.length?(ve().b[30][0]++,ve().s[129]++,this.api.get_tlm_values(this.screenItems).then((e=>{ve().f[35]++,ve().s[130]++,this.updateValues(e)}))):ve().b[30][1]++},updateValues:function(e){ve().f[36]++,ve().s[131]++,this.updateCounter+=1,ve().s[132]++;for(let n=(ve().s[133]++,0);n<e.length;n++)ve().s[134]++,e[n].push(this.updateCounter),ve().s[135]++,r["default"].set(this.screenValues,this.screenItems[n],e[n])},addItem:function(e){ve().f[37]++,ve().s[136]++,this.screenItems.push(e),ve().s[137]++,r["default"].set(this.screenValues,e,[null,null,0])},deleteItem:function(e){ve().f[38]++;let n=(ve().s[138]++,this.screenItems.indexOf(e));ve().s[139]++,this.screenItems.splice(n,1)},showIgnored(){ve().f[39]++,ve().s[140]++,this.ignoredItemsDialog=!0}}},fe=pe;t(5862);var _e=(0,I.A)(fe,h,v,!1,null,"271666a4",null);const ge=_e.exports;function Ce(){var e="/openc3/plugins/packages/openc3-cosmos-tool-limitsmonitor/src/tools/LimitsMonitor/LimitsEvents.vue",n="82c6ad41e4119cbbaaad05ae97a97b148b22c684",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:1127}},4:{start:{line:1,column:416},end:{line:1,column:430}},5:{start:{line:1,column:778},end:{line:1,column:867}},6:{start:{line:1,column:910},end:{line:1,column:982}},7:{start:{line:1,column:1027},end:{line:1,column:1117}},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:868}},line:1},3:{name:"(anonymous_3)",decl:{start:{line:1,column:891},end:{line:1,column:892}},loc:{start:{line:1,column:909},end:{line:1,column:983}},line:1},4:{name:"(anonymous_4)",decl:{start:{line:1,column:1008},end:{line:1,column:1009}},loc:{start:{line:1,column:1026},end:{line:1,column:1118}},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:"82c6ad41e4119cbbaaad05ae97a97b148b22c684"},s=t[i]||(t[i]={});s[e]&&s[e].hash===n||(s[e]=l);var o=s[e];return Ce=function(){return o},o}Ce(),Ce().s[0]++;var be=function(){Ce().f[0]++;var e=(Ce().s[1]++,this),n=(Ce().s[2]++,e._self._c);return Ce().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){Ce().f[1]++,Ce().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 Ce().f[2]++,Ce().s[5]++,[n("span",[e._v(e._s(e.formatNanoseconds(t.time_nsec,e.timeZone)))])]}},{key:"item.level",fn:function({item:t}){return Ce().f[3]++,Ce().s[6]++,[n("rux-status",{attrs:{status:e.getStatus(t.message)}})]}},{key:"item.message",fn:function({item:t}){return Ce().f[4]++,Ce().s[7]++,[n("span",{class:e.getColorClass(t.message)},[e._v(e._s(t.message))])]}}])})],1)},ye=(Ce().s[8]++,[]);function we(){var e="/openc3/plugins/packages/openc3-cosmos-tool-limitsmonitor/src/tools/LimitsMonitor/LimitsEvents.vue",n="072d6d984474bb85d240866a74086f0af2eee808",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:18,column:4},end:{line:27,column:5}},1:{start:{line:30,column:4},end:{line:46,column:8}},2:{start:{line:36,column:12},end:{line:36,column:35}},3:{start:{line:37,column:12},end:{line:37,column:39}},4:{start:{line:45,column:8},end:{line:45,column:52}},5:{start:{line:49,column:4},end:{line:51,column:5}},6:{start:{line:50,column:6},end:{line:50,column:43}},7:{start:{line:52,column:4},end:{line:52,column:27}},8:{start:{line:56,column:6},end:{line:59,column:7}},9:{start:{line:56,column:19},end:{line:56,column:20}},10:{start:{line:57,column:20},end:{line:57,column:52}},11:{start:{line:58,column:8},end:{line:58,column:32}},12:{start:{line:60,column:6},end:{line:62,column:7}},13:{start:{line:61,column:8},end:{line:61,column:44}},14:{start:{line:65,column:6},end:{line:75,column:7}},15:{start:{line:66,column:8},end:{line:66,column:23}},16:{start:{line:67,column:13},end:{line:75,column:7}},17:{start:{line:68,column:8},end:{line:68,column:24}},18:{start:{line:69,column:13},end:{line:75,column:7}},19:{start:{line:70,column:8},end:{line:70,column:25}},20:{start:{line:71,column:13},end:{line:75,column:7}},21:{start:{line:72,column:8},end:{line:72,column:24}},22:{start:{line:74,column:8},end:{line:74,column:20}},23:{start:{line:78,column:6},end:{line:86,column:7}},24:{start:{line:79,column:8},end:{line:79,column:29}},25:{start:{line:80,column:13},end:{line:86,column:7}},26:{start:{line:81,column:8},end:{line:81,column:30}},27:{start:{line:82,column:13},end:{line:86,column:7}},28:{start:{line:83,column:8},end:{line:83,column:27}},29:{start:{line:84,column:13},end:{line:86,column:7}},30:{start:{line:85,column:8},end:{line:85,column:28}},31:{start:{line:87,column:6},end:{line:91,column:7}},32:{start:{line:88,column:8},end:{line:88,column:29}},33:{start:{line:90,column:8},end:{line:90,column:29}},34:{start:{line:95,column:6},end:{line:95,column:37}}},fnMap:{0:{name:"(anonymous_0)",decl:{start:{line:17,column:2},end:{line:17,column:3}},loc:{start:{line:17,column:9},end:{line:28,column:3}},line:17},1:{name:"(anonymous_1)",decl:{start:{line:29,column:2},end:{line:29,column:3}},loc:{start:{line:29,column:12},end:{line:47,column:3}},line:29},2:{name:"(anonymous_2)",decl:{start:{line:35,column:20},end:{line:35,column:21}},loc:{start:{line:35,column:32},end:{line:38,column:11}},line:35},3:{name:"(anonymous_3)",decl:{start:{line:44,column:12},end:{line:44,column:13}},loc:{start:{line:44,column:36},end:{line:46,column:7}},line:44},4:{name:"(anonymous_4)",decl:{start:{line:48,column:2},end:{line:48,column:3}},loc:{start:{line:48,column:14},end:{line:53,column:3}},line:48},5:{name:"(anonymous_5)",decl:{start:{line:55,column:4},end:{line:55,column:5}},loc:{start:{line:55,column:29},end:{line:63,column:5}},line:55},6:{name:"(anonymous_6)",decl:{start:{line:64,column:4},end:{line:64,column:5}},loc:{start:{line:64,column:23},end:{line:76,column:5}},line:64},7:{name:"(anonymous_7)",decl:{start:{line:77,column:4},end:{line:77,column:5}},loc:{start:{line:77,column:27},end:{line:92,column:5}},line:77},8:{name:"(anonymous_8)",decl:{start:{line:93,column:4},end:{line:93,column:5}},loc:{start:{line:93,column:22},end:{line:96,column:5}},line:93}},branchMap:{0:{loc:{start:{line:49,column:4},end:{line:51,column:5}},type:"if",locations:[{start:{line:49,column:4},end:{line:51,column:5}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:49},1:{loc:{start:{line:60,column:6},end:{line:62,column:7}},type:"if",locations:[{start:{line:60,column:6},end:{line:62,column:7}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:60},2:{loc:{start:{line:65,column:6},end:{line:75,column:7}},type:"if",locations:[{start:{line:65,column:6},end:{line:75,column:7}},{start:{line:67,column:13},end:{line:75,column:7}}],line:65},3:{loc:{start:{line:67,column:13},end:{line:75,column:7}},type:"if",locations:[{start:{line:67,column:13},end:{line:75,column:7}},{start:{line:69,column:13},end:{line:75,column:7}}],line:67},4:{loc:{start:{line:69,column:13},end:{line:75,column:7}},type:"if",locations:[{start:{line:69,column:13},end:{line:75,column:7}},{start:{line:71,column:13},end:{line:75,column:7}}],line:69},5:{loc:{start:{line:71,column:13},end:{line:75,column:7}},type:"if",locations:[{start:{line:71,column:13},end:{line:75,column:7}},{start:{line:73,column:13},end:{line:75,column:7}}],line:71},6:{loc:{start:{line:78,column:6},end:{line:86,column:7}},type:"if",locations:[{start:{line:78,column:6},end:{line:86,column:7}},{start:{line:80,column:13},end:{line:86,column:7}}],line:78},7:{loc:{start:{line:80,column:13},end:{line:86,column:7}},type:"if",locations:[{start:{line:80,column:13},end:{line:86,column:7}},{start:{line:82,column:13},end:{line:86,column:7}}],line:80},8:{loc:{start:{line:82,column:13},end:{line:86,column:7}},type:"if",locations:[{start:{line:82,column:13},end:{line:86,column:7}},{start:{line:84,column:13},end:{line:86,column:7}}],line:82},9:{loc:{start:{line:84,column:13},end:{line:86,column:7}},type:"if",locations:[{start:{line:84,column:13},end:{line:86,column:7}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:84},10:{loc:{start:{line:87,column:6},end:{line:91,column:7}},type:"if",locations:[{start:{line:87,column:6},end:{line:91,column:7}},{start:{line:89,column:13},end:{line:91,column:7}}],line:87}},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},f:{0:0,1:0,2:0,3:0,4:0,5:0,6:0,7:0,8: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",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 2024, OpenC3, Inc.\n# All Rights Reserved\n#\n# This file may also be used under the terms of a commercial license\n# if purchased from OpenC3, Inc.\n--\x3e\n\n<template>\n <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>{{ formatNanoseconds(item.time_nsec, timeZone) }}</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 Cable from '@openc3/tool-common/src/services/cable.js'\nimport TimeFilters from '@openc3/tool-common/src/tools/base/util/timeFilters.js'\n\nexport default {\n props: {\n historyCount: {\n type: Number,\n default: 1000,\n },\n timeZone: {\n type: String,\n default: 'local',\n },\n },\n mixins: [TimeFilters],\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 historyCount: 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.historyCount) {\n this.data.length = this.historyCount\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:"072d6d984474bb85d240866a74086f0af2eee808"},s=t[i]||(t[i]={});s[e]&&s[e].hash===n||(s[e]=l);var o=s[e];return we=function(){return o},o}we();const xe={props:{historyCount:{type:Number,default:1e3},timeZone:{type:String,default:"local"}},mixins:[W],data(){return we().f[0]++,we().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(){we().f[1]++,we().s[1]++,this.cable.createSubscription("LimitsEventsChannel",window.openc3Scope,{received:e=>{we().f[2]++,we().s[2]++,this.cable.recordPing(),we().s[3]++,this.handleMessages(e)}},{historyCount:1e3}).then((e=>{we().f[3]++,we().s[4]++,this.limitsSubscription=e}))},destroyed(){we().f[4]++,we().s[5]++,this.limitsSubscription?(we().b[0][0]++,we().s[6]++,this.limitsSubscription.unsubscribe()):we().b[0][1]++,we().s[7]++,this.cable.disconnect()},methods:{handleMessages(e){we().f[5]++,we().s[8]++;for(let n=(we().s[9]++,0);n<e.length;n++){let t=(we().s[10]++,JSON.parse(e[n]["event"]));we().s[11]++,this.data.unshift(t)}we().s[12]++,this.data.length>this.historyCount?(we().b[1][0]++,we().s[13]++,this.data.length=this.historyCount):we().b[1][1]++},getStatus(e){return we().f[6]++,we().s[14]++,e.includes("GREEN")?(we().b[2][0]++,we().s[15]++,"normal"):(we().b[2][1]++,we().s[16]++,e.includes("YELLOW")?(we().b[3][0]++,we().s[17]++,"caution"):(we().b[3][1]++,we().s[18]++,e.includes("RED")?(we().b[4][0]++,we().s[19]++,"critical"):(we().b[4][1]++,we().s[20]++,e.includes("BLUE")?(we().b[5][0]++,we().s[21]++,"standby"):(we().b[5][1]++,we().s[22]++,"off"))))},getColorClass(e){return we().f[7]++,we().s[23]++,e.includes("GREEN")?(we().b[6][0]++,we().s[24]++,"openc3-green"):(we().b[6][1]++,we().s[25]++,e.includes("YELLOW")?(we().b[7][0]++,we().s[26]++,"openc3-yellow"):(we().b[7][1]++,we().s[27]++,e.includes("RED")?(we().b[8][0]++,we().s[28]++,"openc3-red"):(we().b[8][1]++,we().s[29]++,e.includes("BLUE")?(we().b[9][0]++,we().s[30]++,"openc3-blue"):(we().b[9][1]++,we().s[31]++,this.$vuetify.theme.dark?(we().b[10][0]++,we().s[32]++,"openc3-white"):(we().b[10][1]++,we().s[33]++,"openc3-black")))))},calcTableHeight(){return we().f[8]++,we().s[34]++,window.innerHeight-250}}},Se=xe;t(7421);var Ie=(0,I.A)(Se,be,ye,!1,null,"2e9cc232",null);const Le=Ie.exports;var ke=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",{staticClass:"list-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",{staticClass:"list-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)},Ee=[];const Te={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}},Ne=Te;t(5699);var Oe=(0,I.A)(Ne,ke,Ee,!1,null,"0af23388",null);const De=Oe.exports,$e={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 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("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)},Re=[];const Ve={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=>{!0!==n&&this.$emit("warning",`Failed to delete config ${e.config} Error: ${n}`)}))}}},He=Ve;var We=(0,I.A)(He,Me,Re,!1,null,null,null);const Fe=We.exports;var Pe=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)},Ge=[];const Ue={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=>{!0!==n&&this.$emit("warning",`Failed to delete config ${e.config} Error: ${n}`)}))}}},Ke=Ue;var ze=(0,I.A)(Ke,Pe,Ge,!1,null,null,null);const Ye=ze.exports;function Be(){var e="/openc3/plugins/packages/openc3-cosmos-tool-limitsmonitor/src/tools/LimitsMonitor/LimitsMonitor.vue",n="73d99ca0343bf725f749ff986f964dfbe6b9577b",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:80,column:5}},1:{start:{line:41,column:16},end:{line:41,column:48}},2:{start:{line:48,column:16},end:{line:48,column:43}},3:{start:{line:58,column:16},end:{line:58,column:38}},4:{start:{line:65,column:16},end:{line:65,column:38}},5:{start:{line:72,column:16},end:{line:72,column:33}},6:{start:{line:73,column:16},end:{line:73,column:38}},7:{start:{line:74,column:16},end:{line:74,column:32}},8:{start:{line:83,column:4},end:{line:85,column:6}},9:{start:{line:84,column:6},end:{line:84,column:28}},10:{start:{line:86,column:4},end:{line:95,column:8}},11:{start:{line:89,column:8},end:{line:91,column:9}},12:{start:{line:90,column:10},end:{line:90,column:34}},13:{start:{line:99,column:4},end:{line:108,column:5}},14:{start:{line:100,column:6},end:{line:100,column:60}},15:{start:{line:102,column:19},end:{line:102,column:43}},16:{start:{line:104,column:6},end:{line:107,column:7}},17:{start:{line:105,column:8},end:{line:105,column:29}},18:{start:{line:106,column:8},end:{line:106,column:24}},19:{start:{line:111,column:4},end:{line:111,column:49}},20:{start:{line:115,column:6},end:{line:115,column:52}},21:{start:{line:116,column:6},end:{line:116,column:34}},22:{start:{line:117,column:6},end:{line:117,column:22}},23:{start:{line:120,column:6},end:{line:123,column:8}},24:{start:{line:121,column:8},end:{line:121,column:29}},25:{start:{line:122,column:8},end:{line:122,column:24}},26:{start:{line:126,column:6},end:{line:126,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:81,column:3}},line:19},1:{name:"(anonymous_1)",decl:{start:{line:40,column:23},end:{line:40,column:24}},loc:{start:{line:40,column:29},end:{line:42,column:15}},line:40},2:{name:"(anonymous_2)",decl:{start:{line:47,column:23},end:{line:47,column:24}},loc:{start:{line:47,column:29},end:{line:49,column:15}},line:47},3:{name:"(anonymous_3)",decl:{start:{line:57,column:23},end:{line:57,column:24}},loc:{start:{line:57,column:29},end:{line:59,column:15}},line:57},4:{name:"(anonymous_4)",decl:{start:{line:64,column:23},end:{line:64,column:24}},loc:{start:{line:64,column:29},end:{line:66,column:15}},line:64},5:{name:"(anonymous_5)",decl:{start:{line:71,column:23},end:{line:71,column:24}},loc:{start:{line:71,column:29},end:{line:75,column:15}},line:71},6:{name:"(anonymous_6)",decl:{start:{line:82,column:2},end:{line:82,column:3}},loc:{start:{line:82,column:12},end:{line:96,column:3}},line:82},7:{name:"(anonymous_7)",decl:{start:{line:83,column:36},end:{line:83,column:37}},loc:{start:{line:83,column:46},end:{line:85,column:5}},line:83},8:{name:"(anonymous_8)",decl:{start:{line:88,column:12},end:{line:88,column:13}},loc:{start:{line:88,column:26},end:{line:92,column:7}},line:88},9:{name:"(anonymous_9)",decl:{start:{line:93,column:13},end:{line:93,column:14}},loc:{start:{line:93,column:24},end:{line:95,column:7}},line:93},10:{name:"(anonymous_10)",decl:{start:{line:97,column:11},end:{line:97,column:12}},loc:{start:{line:97,column:23},end:{line:109,column:3}},line:97},11:{name:"(anonymous_11)",decl:{start:{line:110,column:13},end:{line:110,column:14}},loc:{start:{line:110,column:25},end:{line:112,column:3}},line:110},12:{name:"(anonymous_12)",decl:{start:{line:114,column:18},end:{line:114,column:19}},loc:{start:{line:114,column:30},end:{line:118,column:5}},line:114},13:{name:"(anonymous_13)",decl:{start:{line:119,column:23},end:{line:119,column:24}},loc:{start:{line:119,column:55},end:{line:124,column:5}},line:119},14:{name:"(anonymous_14)",decl:{start:{line:120,column:40},end:{line:120,column:41}},loc:{start:{line:120,column:52},end:{line:123,column:7}},line:120},15:{name:"(anonymous_15)",decl:{start:{line:125,column:23},end:{line:125,column:24}},loc:{start:{line:125,column:39},end:{line:127,column:5}},line:125}},branchMap:{0:{loc:{start:{line:89,column:8},end:{line:91,column:9}},type:"if",locations:[{start:{line:89,column:8},end:{line:91,column:9}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:89},1:{loc:{start:{line:99,column:4},end:{line:108,column:5}},type:"if",locations:[{start:{line:99,column:4},end:{line:108,column:5}},{start:{line:101,column:11},end:{line:108,column:5}}],line:99},2:{loc:{start:{line:99,column:8},end:{line:99,column:53}},type:"binary-expr",locations:[{start:{line:99,column:8},end:{line:99,column:25}},{start:{line:99,column:29},end:{line:99,column:53}}],line:99},3:{loc:{start:{line:104,column:6},end:{line:107,column:7}},type:"if",locations:[{start:{line:104,column:6},end:{line:107,column:7}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:104},4:{loc:{start:{line:119,column:39},end:{line:119,column:53}},type:"default-arg",locations:[{start:{line:119,column:48},end:{line:119,column:53}}],line:119}},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},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},b:{0:[0,0],1:[0,0],2:[0,0],3:[0,0],4:[0]},inputSourceMap:{version:3,sources:["LimitsMonitor.vue"],names:[],mappings:";AAwFA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA",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 2024, OpenC3, Inc.\n# All Rights Reserved\n#\n# This file may also be used under the terms of a commercial license\n# if purchased from OpenC3, Inc.\n--\x3e\n\n<template>\n <div>\n <top-bar :menus="menus" :title="title" />\n <limits-control\n ref="control"\n v-model="ignored"\n :key="renderKey"\n :time-zone="timeZone"\n />\n <div style="height: 15px" />\n <limits-events :time-zone="timeZone" />\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 timeZone: \'local\',\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 this.api\n .get_setting(\'time_zone\')\n .then((response) => {\n if (response) {\n this.timeZone = response\n }\n })\n .catch((error) => {\n // Do nothing\n })\n },\n 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:"73d99ca0343bf725f749ff986f964dfbe6b9577b"},s=t[i]||(t[i]={});s[e]&&s[e].hash===n||(s[e]=l);var o=s[e];return Be=function(){return o},o}Be();const je={components:{LimitsControl:ge,LimitsEvents:Le,TopBar:De,OpenConfigDialog:Fe,SaveConfigDialog:Ye},mixins:[$e],data(){return Be().f[0]++,Be().s[0]++,{title:"Limits Monitor",configKey:"limits_monitor",api:new d,timeZone:"local",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:()=>{Be().f[1]++,Be().s[1]++,this.$refs.control.showIgnored()}},{label:"Change Limits Set",icon:"mdi-swap-horizontal",command:()=>{Be().f[2]++,Be().s[2]++,this.limitsSetDialog=!0}},{divider:!0},{label:"Open Configuration",icon:"mdi-folder-open",command:()=>{Be().f[3]++,Be().s[3]++,this.openConfig=!0}},{label:"Save Configuration",icon:"mdi-content-save",command:()=>{Be().f[4]++,Be().s[4]++,this.saveConfig=!0}},{label:"Reset Configuration",icon:"mdi-monitor-shimmer",command:()=>{Be().f[5]++,Be().s[5]++,this.ignored=[],Be().s[6]++,this.resetConfigBase(),Be().s[7]++,this.renderKey++}}]}]}},created(){Be().f[6]++,Be().s[8]++,this.api.get_limits_sets().then((e=>{Be().f[7]++,Be().s[9]++,this.limitsSets=e})),Be().s[10]++,this.api.get_setting("time_zone").then((e=>{Be().f[8]++,Be().s[11]++,e?(Be().b[0][0]++,Be().s[12]++,this.timeZone=e):Be().b[0][1]++})).catch((e=>{Be().f[9]++}))},mounted:function(){if(Be().f[10]++,Be().s[13]++,Be().b[2][0]++,this.$route.query&&(Be().b[2][1]++,this.$route.query.config))Be().b[1][0]++,Be().s[14]++,this.openConfiguration(this.$route.query.config,!0);else{Be().b[1][1]++;let e=(Be().s[15]++,this.loadDefaultConfig());Be().s[16]++,"{}"!==JSON.stringify(e)?(Be().b[3][0]++,Be().s[17]++,this.ignored=e,Be().s[18]++,this.renderKey++):Be().b[3][1]++}},destroyed:function(){Be().f[11]++,Be().s[19]++,clearInterval(this.currentSetRefreshInterval)},methods:{setLimitsSet:function(){Be().f[12]++,Be().s[20]++,this.api.set_limits_set(this.currentLimitsSet),Be().s[21]++,this.limitsSetDialog=!1,Be().s[22]++,this.renderKey++},openConfiguration:function(e,n=(Be().b[4][0]++,!1)){Be().f[13]++,Be().s[23]++,this.openConfigBase(e,n,(e=>{Be().f[14]++,Be().s[24]++,this.ignored=e,Be().s[25]++,this.renderKey++}))},saveConfiguration:function(e){Be().f[15]++,Be().s[26]++,this.saveConfigBase(e,this.ignored)}}},Ze=je;var qe=(0,I.A)(Ze,l,s,!1,null,null,null);const Je=qe.exports},6094:(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-271666a4]{padding-top:5px}.v-input[data-v-271666a4]{background-color:var(--color-background-base-default)}.textfield-green[data-v-271666a4] .v-text-field__slot input,.textfield-green[data-v-271666a4] .v-text-field__slot label{color:#00c800}.textfield-yellow[data-v-271666a4] .v-text-field__slot input,.textfield-yellow[data-v-271666a4] .v-text-field__slot label{color:#ffdc00}.textfield-red[data-v-271666a4] .v-text-field__slot input,.textfield-red[data-v-271666a4] .v-text-field__slot label{color:#ff2d2d}",""]);const r=a},6857:(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-18fc7350]{font-weight:700;text-transform:capitalize}[data-v-18fc7350] .v-input--selection-controls{padding:0;margin:0}",""]);const r=a},4203:(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-0af23388]{font-size:2rem}.menu-button[data-v-0af23388]{border-color:var(--color-border-interactive-muted)!important;background-color:var(--color-background-base-default)!important;padding-right:3px!important}span.v-btn__content span[data-v-0af23388]{padding-right:5px}.list-action[data-v-0af23388] label{color:#fff;padding-left:10px}.myicon[data-v-0af23388]{background-color:var(--color-background-surface-selected);border:1px solid currentColor;border-radius:3px;height:36px!important;width:36px!important}.v-list[data-v-0af23388] .v-label{margin-left:5px}.v-list-item__icon[data-v-0af23388]{margin-right:15px!important}.v-list-item__title[data-v-0af23388]{color:#fff}",""]);const 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},9338:(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-2e9cc232]{height:calc(100vh - 150px)}",""]);const r=a},9784:(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-4b85d27c]{cursor:default;display:flex;justify-content:center;align-items:center;padding:5px;padding-top:15px;width:var(--width)}.limitsbar__container[data-v-4b85d27c]{position:relative;flex:1;height:var(--container-height);border:1px solid #000;background-color:#fff}.limitsbar__redlow[data-v-4b85d27c]{left:0;width:var(--redlow-width)}.limitsbar__redhigh[data-v-4b85d27c],.limitsbar__redlow[data-v-4b85d27c]{position:absolute;top:-1px;height:var(--container-height);background-color:#ff2d2d}.limitsbar__redhigh[data-v-4b85d27c]{right:0;width:var(--redhigh-width)}.limitsbar__yellowlow[data-v-4b85d27c]{left:var(--redlow-width);width:var(--yellowlow-width)}.limitsbar__yellowhigh[data-v-4b85d27c],.limitsbar__yellowlow[data-v-4b85d27c]{position:absolute;top:-1px;height:var(--container-height);background-color:#ffdc00}.limitsbar__yellowhigh[data-v-4b85d27c]{right:var(--redhigh-width);width:var(--yellowhigh-width)}.limitsbar__greenlow[data-v-4b85d27c]{left:calc(var(--redlow-width) + var(--yellowlow-width));width:var(--greenlow-width)}.limitsbar__greenhigh[data-v-4b85d27c],.limitsbar__greenlow[data-v-4b85d27c]{position:absolute;top:-1px;height:var(--container-height);background-color:#00c800}.limitsbar__greenhigh[data-v-4b85d27c]{right:calc(var(--redhigh-width) + var(--yellowhigh-width));width:var(--greenhigh-width)}.limitsbar__blue[data-v-4b85d27c]{top:-1px;left:calc(var(--redlow-width) + var(--yellowlow-width) + var(--greenlow-width));width:var(--blue-width);background-color:#09f}.limitsbar__blue[data-v-4b85d27c],.limitsbar__line[data-v-4b85d27c]{position:absolute;height:var(--container-height)}.limitsbar__line[data-v-4b85d27c]{left:var(--position);width:1px;background-color:gray}.limitsbar__arrow[data-v-4b85d27c]{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},1923:(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-21febbc3]{min-height:34px}.value-widget-container[data-v-21febbc3] .v-input__slot{background:rgba(var(--aging),var(--aging),var(--aging),1)!important}.value-widget-container[data-v-21febbc3] input{text-align:var(--text-align)!important}[data-v-21febbc3] .v-input__slot:has(.v-icon){padding-left:2px!important}.value-widget-container[data-v-21febbc3] .v-icon{margin-top:9px}.value[data-v-21febbc3] div{min-height:24px!important;display:flex!important;align-items:center!important}.openc3-green[data-v-21febbc3] input{color:#00c800}.openc3-yellow[data-v-21febbc3] input{color:#ffdc00}.openc3-red[data-v-21febbc3] input{color:#ff2d2d}.openc3-blue[data-v-21febbc3] input{color:#09f}.openc3-purple[data-v-21febbc3] input{color:#c800c8}.openc3-black[data-v-21febbc3] input{color:#000}.openc3-white[data-v-21febbc3] input{color:#fff}",""]);const r=a},5862:(e,n,t)=>{var i=t(6094);i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[e.id,i,""]]),i.locals&&(e.exports=i.locals);var l=t(4825).A;l("7bae7711",i,!0,{sourceMap:!1,shadowMode:!1})},4849:(e,n,t)=>{var i=t(6857);i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[e.id,i,""]]),i.locals&&(e.exports=i.locals);var l=t(4825).A;l("7adc6a5a",i,!0,{sourceMap:!1,shadowMode:!1})},5699:(e,n,t)=>{var i=t(4203);i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[e.id,i,""]]),i.locals&&(e.exports=i.locals);var l=t(4825).A;l("7f447726",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})},7421:(e,n,t)=>{var i=t(9338);i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[e.id,i,""]]),i.locals&&(e.exports=i.locals);var l=t(4825).A;l("597c19b0",i,!0,{sourceMap:!1,shadowMode:!1})},9851:(e,n,t)=>{var i=t(9784);i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[e.id,i,""]]),i.locals&&(e.exports=i.locals);var l=t(4825).A;l("3ee48f98",i,!0,{sourceMap:!1,shadowMode:!1})},8299:(e,n,t)=>{var i=t(1923);i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[e.id,i,""]]),i.locals&&(e.exports=i.locals);var l=t(4825).A;l("dbafcec6",i,!0,{sourceMap:!1,shadowMode:!1})}}]);
|
2
|
+
//# sourceMappingURL=603.js.map
|