cosmosc2-tool-limitsmonitor 5.0.2.pre.beta2

Sign up to get free protection for your applications and to get access to all the features.
data/README.md ADDED
@@ -0,0 +1,29 @@
1
+ ## COSMOS Tool Limits Monitor Plugin
2
+
3
+ [Documentation](http://cosmosrb.com)
4
+
5
+ This plugin provides the COSMOS Limits Monitor user interface
6
+
7
+ ## Getting Started
8
+
9
+ 1. At the COSMOS Admin - Plugins, upload the cosmosc2-tool-limitsmonitor.gem file
10
+
11
+ ## Contributing
12
+
13
+ We encourage you to contribute to COSMOS!
14
+
15
+ Contributing is easy.
16
+
17
+ 1. Fork the project
18
+ 2. Create a feature branch
19
+ 3. Make your changes
20
+ 4. Submit a pull request
21
+
22
+ Before any contributions can be incorporated we do require all contributors to sign a Contributor License Agreement here:
23
+ [Contributor License Agreement](https://docs.google.com/forms/d/1ppnHUSXtY1GRTNPIyUaB1OYHbW5Ca67GFMgMRPBG8u0/viewform)
24
+
25
+ This protects both you and us and you retain full rights to any code you write.
26
+
27
+ ## License
28
+
29
+ This Ball Aerospace plugin is released under the AGPLv3.0 with a few addendums. See [LICENSE.txt](LICENSE.txt)
data/Rakefile ADDED
@@ -0,0 +1,35 @@
1
+ # encoding: ascii-8bit
2
+
3
+ # Copyright 2022 Ball Aerospace & Technologies Corp.
4
+ # All Rights Reserved.
5
+ #
6
+ # This program is free software; you can modify and/or redistribute it
7
+ # under the terms of the GNU Affero General Public License
8
+ # as published by the Free Software Foundation; version 3 with
9
+ # attribution addendums as found in the LICENSE.txt
10
+ #
11
+ # This program is distributed in the hope that it will be useful,
12
+ # but WITHOUT ANY WARRANTY; without even the implied warranty of
13
+ # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14
+ # GNU Affero General Public License for more details.
15
+ #
16
+ # This program may also be used under the terms of a commercial or
17
+ # enterprise edition license of COSMOS if purchased from the
18
+ # copyright holder
19
+
20
+ PLUGIN_NAME = Dir['*.gemspec'][0].split('.')[0..-2].join('.')
21
+
22
+ task :require_version do
23
+ unless ENV['VERSION']
24
+ puts "VERSION is required: rake <task> VERSION=X.X.X"
25
+ exit 1
26
+ end
27
+ end
28
+
29
+ task :build => [:require_version] do
30
+ _, platform, *_ = RUBY_PLATFORM.split("-")
31
+ if platform == 'mswin32' or platform == 'mingw32'
32
+ puts "Warning: Building gem on Windows will lose file permissions"
33
+ end
34
+ system("gem build #{PLUGIN_NAME}")
35
+ end
data/plugin.txt ADDED
@@ -0,0 +1,3 @@
1
+ TOOL limitsmonitor "Limits Monitor"
2
+ INLINE_URL js/app.js
3
+ ICON $astro-caution
@@ -0,0 +1,4 @@
1
+ <!doctype html><html lang=""><head><meta charset="utf-8"><meta http-equiv="X-UA-Compatible" content="IE=edge"><meta name="viewport" content="width=device-width,initial-scale=1"><title>Vue App</title><main><h1>Your Microfrontend is not here</h1><p>The @cosmosc2/tool-limitsmonitor microfrontend is running in "integrated" mode, since standalone-single-spa-webpack-plugin is disabled. This means that it does not work as a standalone application without changing configuration.</p><h2>How do I develop this microfrontend?</h2><p>To develop this microfrontend, try the following steps:</p><ol><li>Copy the following URL to your clipboard: <a target="_blank" rel="noopener" id="mf-url"></a></li><li>In a new browser tab, go to the your single-spa web app. This is where your "root config" is running. You do not have to run the root config locally if it is already running on a deployed environment - go to the deployed environment directly.</li><li>In the browser console, run <code>localStorage.setItem('devtools', true);</code> Refresh the page.</li><li>A yellowish rectangle should appear at the bottom right of your screen. Click on it. Find the name @cosmosc2/tool-limitsmonitor and click on it. If it is not present, click on Add New Module.</li><li>Paste the URL above into the input that appears. Refresh the page.</li><li>Congrats, your local code is now being used!</li></ol><p></p><p>For further information about "integrated" mode, see the following links:</p><ul><li><a target="_blank" rel="noopener" href="https://single-spa.js.org/docs/recommended-setup#local-development">Local Development Overview</a></li><li><a target="_blank" rel="noopener" href="https://github.com/joeldenning/import-map-overrides">Import Map Overrides Documentation</a></li></ul><p></p><h2>If you prefer Standalone mode</h2><p>To run this microfrontend in "standalone" mode, the standalone-single-spa-webpack-plugin must not be disabled. In some cases, this is done by running <code>npm run start:standalone</code>. Alternatively, you can add <code>--env standalone</code> to your package.json start script if you are using webpack-config-single-spa.</p>If neither of those work for you, see more details about enabling standalone mode at <a target="_blank" rel="noopener" href="https://github.com/single-spa/standalone-single-spa-webpack-plugin">Standalone Plugin Documentation</a>.<p></p><script>const mfLink = document.getElementById('mf-url');
2
+ const fullSrc = new URL('/tools/limitsmonitor//tools/limitsmonitor/js/app.js', window.location.href);
3
+ mfLink.href = fullSrc;
4
+ mfLink.textContent = fullSrc;</script></main></head><body><div id="app"></div></body></html>
@@ -0,0 +1,2 @@
1
+ (self["webpackChunk_cosmosc2_tool_limitsmonitor"]=self["webpackChunk_cosmosc2_tool_limitsmonitor"]||[]).push([[508],{9508:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return Be}});var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[n("top-bar",{attrs:{menus:e.menus,title:e.title}}),n("v-card",[n("v-tabs",{attrs:{"fixed-tabs":""},model:{value:e.curTab,callback:function(t){e.curTab=t},expression:"curTab"}},e._l(e.tabs,(function(t,i){return n("v-tab",{key:i},[e._v(e._s(t))])})),1),n("v-tabs-items",{model:{value:e.curTab,callback:function(t){e.curTab=t},expression:"curTab"}},[n("v-tab-item",{attrs:{eager:""}},[n("keep-alive",[n("limits-control",{key:e.renderKey,ref:"control",model:{value:e.ignored,callback:function(t){e.ignored=t},expression:"ignored"}})],1)],1),n("v-tab-item",{attrs:{eager:""}},[n("keep-alive",[n("limits-events",{ref:"events"})],1)],1)],1)],1),e.openConfig?n("open-config-dialog",{attrs:{tool:e.toolName},on:{success:e.openConfiguration},model:{value:e.openConfig,callback:function(t){e.openConfig=t},expression:"openConfig"}}):e._e(),e.saveConfig?n("save-config-dialog",{attrs:{tool:e.toolName},on:{success:e.saveConfiguration},model:{value:e.saveConfig,callback:function(t){e.saveConfig=t},expression:"saveConfig"}}):e._e()],1)},l=[],o=n(9490),s=(n(6710),n(5047),function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[n("v-container",[n("v-row",{attrs:{"no-gutters":""}},[n("v-text-field",{class:e.textFieldClass,attrs:{width:"200",dense:"",outlined:"",readonly:"",label:"Overall Limits State",value:e.overallStateFormatted,"data-test":"overall-state"}})],1),e._l(e.items,(function(t,i){return n("div",{key:t.key},[n("v-row",{staticClass:"my-0",attrs:{"data-test":"limits-row"}},[n("v-col",{staticClass:"py-1"},[t.limits?n("labelvaluelimitsbar-widget",{attrs:{parameters:t.parameters,settings:[["0","WIDTH","150"],["1","WIDTH","200"],["2","WIDTH","200"]]}}):n("labelvalue-widget",{attrs:{parameters:t.parameters,settings:[["0","WIDTH","150"],["1","WIDTH","200"]]}})],1),n("v-col",{staticClass:"py-1",attrs:{cols:"2"}},[n("v-tooltip",{attrs:{bottom:""},scopedSlots:e._u([{key:"activator",fn:function(i){var l=i.on,o=i.attrs;return[n("v-btn",e._g(e._b({staticClass:"mr-2",attrs:{icon:""},on:{click:function(n){return e.ignorePacket(t.key)}}},"v-btn",o,!1),l),[n("v-icon",[e._v(" mdi-close-circle-multiple ")])],1)]}}],null,!0)},[n("span",[e._v("Ignore Entire Packet")])]),n("v-tooltip",{attrs:{bottom:""},scopedSlots:e._u([{key:"activator",fn:function(i){var l=i.on,o=i.attrs;return[n("v-btn",e._g(e._b({staticClass:"mr-2",attrs:{icon:""},on:{click:function(n){return e.ignoreItem(t.key)}}},"v-btn",o,!1),l),[n("v-icon",[e._v(" mdi-close-circle ")])],1)]}}],null,!0)},[n("span",[e._v("Ignore Item")])]),n("v-tooltip",{attrs:{bottom:""},scopedSlots:e._u([{key:"activator",fn:function(i){var l=i.on,o=i.attrs;return[n("v-btn",e._g(e._b({staticClass:"mr-2",attrs:{icon:""},on:{click:function(n){return e.removeItem(t.key)}}},"v-btn",o,!1),l),[n("v-icon",[e._v(" mdi-eye-off ")])],1)]}}],null,!0)},[n("span",[e._v("Temporarily Hide Item")])])],1)],1),i<e.items.length-1?n("v-divider",{key:i}):e._e()],1)}))],2),n("v-dialog",{attrs:{"max-width":"600"},model:{value:e.ignoredItemsDialog,callback:function(t){e.ignoredItemsDialog=t},expression:"ignoredItemsDialog"}},[n("v-card",[n("v-system-bar",[n("v-spacer"),n("span",[e._v("Ignored Items")]),n("v-spacer")],1),n("v-card-text",[n("div",{staticClass:"my-2"},[e._l(e.ignoredFormatted,(function(t,i){return n("div",{key:i},[n("v-row",{staticClass:"ma-1"},[n("span",{staticClass:"font-weight-black"},[e._v(" "+e._s(t)+" ")]),n("v-spacer"),n("v-btn",{attrs:{small:"",icon:"","data-test":"remove-ignore-"+i},on:{click:function(n){return e.restoreItem(t,i)}}},[n("v-icon",[e._v(" mdi-delete ")])],1)],1),i<e.ignoredFormatted.length-1?n("v-divider",{key:i}):e._e()],1)})),n("v-row",{staticClass:"mt-2"},[n("v-spacer"),n("v-btn",{staticClass:"mx-2",attrs:{color:"primary"},on:{click:function(t){e.ignoredItemsDialog=!1}}},[e._v(" Ok ")])],1),e.index<e.items.length-1?n("v-divider",{key:e.index}):e._e()],2)])],1)],1)],1)}),a=[],r=n(6451),c=n(6711),u=(n(3450),n(7950),n(8319),n(4069),n(9529),n(1235),n(9228),n(8188),n(2501),n(8178),n(9949),n(4660),n(9805),n(570)),m=n(7475),d=n(6330),A=n(2209),v=n(3696),h=(n(1372),n(1245),n(9644)),f=n.n(h),p=n(4091),_=new p["default"],g=f().create({baseURL:location.origin,timeout:1e4,params:{}});g.interceptors.response.use((function(e){return e}),(function(e){if(401===e.response.status)delete localStorage.cosmosToken,CosmosAuth.login(location.href);else{var t,n,i,l,o,s,a,r="HTTP ".concat(e.response.status," - ");if(null!==(t=e.response)&&void 0!==t&&null!==(n=t.data)&&void 0!==n&&n.message)r+="".concat(e.response.data.message);else if(null!==(i=e.response)&&void 0!==i&&null!==(l=i.data)&&void 0!==l&&l.exception)r+="".concat(e.response.data.exception);else if(null!==(o=e.response)&&void 0!==o&&null!==(s=o.data)&&void 0!==s&&null!==(a=s.error)&&void 0!==a&&a.message)e.response.data.error.class&&(r+="".concat(e.response.data.error.class," ")),r+="".concat(e.response.data.error.message);else{var c;r+="".concat(null===(c=e.response)||void 0===c?void 0:c.data)}_.$notify.serious({title:"Network error",body:r})}throw e}));var C=g,b=function(){function e(){(0,d.Z)(this,e),(0,v.Z)(this,"id",1)}return(0,A.Z)(e,[{key:"exec",value:function(){var e=(0,o.Z)(regeneratorRuntime.mark((function e(t,n){var i,l,o,s=arguments;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return i=s.length>2&&void 0!==s[2]?s[2]:{},e.prev=1,e.next=4,CosmosAuth.updateToken(CosmosAuth.defaultMinValidity);case 4:e.next=9;break;case 6:e.prev=6,e.t0=e["catch"](1),CosmosAuth.login();case 9:return this.id=this.id+1,e.prev=10,i["scope"]=localStorage.scope,e.next=14,C.post("/cosmos-api/api",{jsonrpc:"2.0",method:t,params:n,id:this.id,keyword_params:i},{headers:{Authorization:localStorage.cosmosToken,"Content-Type":"application/json-rpc"}});case 14:return l=e.sent,e.abrupt("return",l.data.result);case 18:throw e.prev=18,e.t1=e["catch"](10),o=new Error,e.t1.response?(o.name=e.t1.response.data.error.data.class,o.message=e.t1.response.data.error.data.message):e.t1.request?(o.name="Request error",o.message="Request error, no response received"):o.name="Unknown error",o;case 23:case"end":return e.stop()}}),e,this,[[1,6],[10,18]])})));function t(t,n){return e.apply(this,arguments)}return t}()},{key:"decode_cosmos_type",value:function(e){if(null!==e&&"object"===(0,m.Z)(e)&&"Float"==e.json_class&&e.raw){if("NaN"==e.raw)return NaN;if("Infinity"==e.raw)return 1/0;if("-Infinity"==e.raw)return-1/0}return null}},{key:"encode_cosmos_type",value:function(e){return Number.isNaN(e)?{json_class:"Float",raw:"NaN"}:e==Number.POSITIVE_INFINITY?{json_class:"Float",raw:"Infinity"}:e==Number.NEGATIVE_INFINITY?{json_class:"Float",raw:"-Infinity"}:null}},{key:"get_all_interface_info",value:function(){return this.exec("get_all_interface_info",[])}},{key:"connect_interface",value:function(e){return this.exec("connect_interface",[e])}},{key:"disconnect_interface",value:function(e){return this.exec("disconnect_interface",[e])}},{key:"get_all_router_info",value:function(){return this.exec("get_all_router_info",[])}},{key:"connect_router",value:function(e){return this.exec("connect_router",[e])}},{key:"disconnect_router",value:function(e){return this.exec("disconnect_router",[e])}},{key:"get_all_target_info",value:function(){return this.exec("get_all_target_info",[])}},{key:"get_all_cmd_info",value:function(){return this.exec("get_all_cmd_info",[])}},{key:"get_all_tlm_info",value:function(){return this.exec("get_all_tlm_info",[])}},{key:"get_item",value:function(e,t,n){return this.exec("get_item",[e,t,n])}},{key:"get_parameter",value:function(e,t,n){return this.exec("get_parameter",[e,t,n])}},{key:"get_all_packet_logger_info",value:function(){return this.exec("get_all_packet_logger_info",[])}},{key:"start_logging",value:function(){return this.exec("start_logging",[])}},{key:"stop_logging",value:function(){return this.exec("stop_logging",[])}},{key:"start_cmd_log",value:function(e){return this.exec("start_cmd_log",[e])}},{key:"start_tlm_log",value:function(e){return this.exec("start_tlm_log",[e])}},{key:"stop_cmd_log",value:function(e){return this.exec("stop_cmd_log",[e])}},{key:"stop_tlm_log",value:function(e){return this.exec("stop_tlm_log",[e])}},{key:"get_server_status",value:function(){return this.exec("get_server_status",[])}},{key:"get_limits_sets",value:function(){return this.exec("get_limits_sets",[])}},{key:"get_limits_set",value:function(){return this.exec("get_limits_set",[])}},{key:"set_limits_set",value:function(e){return this.exec("set_limits_set",[e])}},{key:"get_background_tasks",value:function(){return this.exec("get_background_tasks",[])}},{key:"start_background_task",value:function(e){return this.exec("start_background_task",[e])}},{key:"stop_background_task",value:function(e){return this.exec("stop_background_task",[e])}},{key:"get_oldest_logfile",value:function(){return this.exec("get_oldest_logfile",[])}},{key:"get_target",value:function(e){return this.exec("get_target",[e])}},{key:"get_target_list",value:function(){return this.exec("get_target_list",[])}},{key:"get_telemetry",value:function(e,t){return this.exec("get_telemetry",[e,t])}},{key:"get_all_telemetry",value:function(e){return this.exec("get_all_telemetry",[e])}},{key:"get_tlm_packet",value:function(){var e=(0,o.Z)(regeneratorRuntime.mark((function e(t,n,i){var l,o,s,a;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,this.exec("get_tlm_packet",[t,n],{type:i});case 2:if(l=e.sent,null!=l)for(o=l.length,s=null,a=0;a<o;a++)s=this.decode_cosmos_type(l[a][1]),null!==s&&(l[a][1]=s);return e.abrupt("return",l);case 5:case"end":return e.stop()}}),e,this)})));function t(t,n,i){return e.apply(this,arguments)}return t}()},{key:"get_packet_derived_items",value:function(e,t){return this.exec("get_packet_derived_items",[e,t])}},{key:"get_tlm_buffer",value:function(e,t){return this.exec("get_tlm_buffer",[e,t])}},{key:"get_tlm_values",value:function(){var e=(0,o.Z)(regeneratorRuntime.mark((function e(t){var n,i,l,o;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,this.exec("get_tlm_values",[t]);case 2:for(n=e.sent,i=n[0].length,l=null,o=0;o<i;o++)l=this.decode_cosmos_type(n[0][o]),null!==l&&(n[0][o]=l);return e.abrupt("return",n);case 7:case"end":return e.stop()}}),e,this)})));function t(t){return e.apply(this,arguments)}return t}()},{key:"get_limits",value:function(e,t,n){return this.exec("get_limits",[e,t,n])}},{key:"tlm",value:function(){var e=(0,o.Z)(regeneratorRuntime.mark((function e(t,n,i){var l,o;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,this.exec("tlm",[t,n,i]);case 2:return l=e.sent,o=this.decode_cosmos_type(l),null!==o&&(0,u.Z)("data"),e.abrupt("return",l);case 6:case"end":return e.stop()}}),e,this)})));function t(t,n,i){return e.apply(this,arguments)}return t}()},{key:"get_all_commands",value:function(e){return this.exec("get_all_commands",[e])}},{key:"get_command",value:function(e,t){return this.exec("get_command",[e,t])}},{key:"get_cmd_value",value:function(e,t,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"CONVERTED";return this.exec("get_cmd_value",[e,t,n,i])}},{key:"get_cmd_buffer",value:function(e,t){return this.exec("get_cmd_buffer",[e,t])}},{key:"_cmd",value:function(e,t,n,i){var l=null;for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(l=this.encode_cosmos_type(i[o]),null!==l&&(i[o]=l));return this.exec(e,[t,n,i])}},{key:"get_cmd_hazardous",value:function(e,t,n){return void 0===t?this.exec("get_cmd_hazardous",e):this._cmd("get_cmd_hazardous",e,t,n)}},{key:"cmd",value:function(e,t,n){return void 0===t?this.exec("cmd",e):this._cmd("cmd",e,t,n)}},{key:"cmd_no_range_check",value:function(e,t,n){return void 0===t?this.exec("cmd_no_range_check",e):this._cmd("cmd_no_range_check",e,t,n)}},{key:"cmd_raw",value:function(e,t,n){return void 0===t?this.exec("cmd_raw",e):this._cmd("cmd_raw",e,t,n)}},{key:"cmd_raw_no_range_check",value:function(e,t,n){return void 0===t?this.exec("cmd_raw_no_range_check",e):this._cmd("cmd_raw_no_range_check",e,t,n)}},{key:"cmd_no_hazardous_check",value:function(e,t,n){return void 0===t?this.exec("cmd_no_hazardous_check",e):this._cmd("cmd_no_hazardous_check",e,t,n)}},{key:"cmd_no_checks",value:function(e,t,n){return void 0===t?this.exec("cmd_no_checks",e):this._cmd("cmd_no_checks",e,t,n)}},{key:"cmd_raw_no_hazardous_check",value:function(e,t,n){return void 0===t?this.exec("cmd_raw_no_hazardous_check",e):this._cmd("cmd_raw_no_hazardous_check",e,t,n)}},{key:"cmd_raw_no_checks",value:function(e,t,n){return void 0===t?this.exec("cmd_raw_no_checks",e):this._cmd("cmd_raw_no_checks",e,t,n)}},{key:"get_interface_names",value:function(){return this.exec("get_interface_names",[])}},{key:"send_raw",value:function(e,t){return this.exec("send_raw",[e,t])}},{key:"list_configs",value:function(e){return this.exec("list_configs",[e])}},{key:"load_config",value:function(e,t){return this.exec("load_config",[e,t])}},{key:"save_config",value:function(e,t,n){return this.exec("save_config",[e,t,n])}},{key:"delete_config",value:function(e,t){return this.exec("delete_config",[e,t])}},{key:"get_out_of_limits",value:function(){return this.exec("get_out_of_limits",[])}},{key:"get_overall_limits_state",value:function(e){return this.exec("get_overall_limits_state",[e])}},{key:"list_settings",value:function(){return this.exec("list_settings",[])}},{key:"get_all_settings",value:function(){return this.exec("get_all_settings",[])}},{key:"get_setting",value:function(e){return this.exec("get_setting",[e])}},{key:"get_settings",value:function(e){return this.exec("get_settings",e)}},{key:"save_setting",value:function(e,t){return this.exec("save_setting",[e,t])}}]),e}(),y=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{ref:"container",staticClass:"d-flex flex-row"},[n("label-widget",{style:e.computedStyle,attrs:{parameters:e.labelName,settings:e.settings,"widget-index":0}}),n("value-widget",{style:e.computedStyle,attrs:{parameters:e.parameters,settings:e.settings,"widget-index":1}})],1)},w=[],x=(n(1939),n(8995),{props:{widgetIndex:{type:Number,default:null},parameters:{type:Array,default:function(){return[]}},settings:{type:Array,default:function(){return[]}}},computed:{computedStyle:function(){var e=this,t={};return this.settings.forEach((function(n){var i=parseInt(n[0]);if(null!==e.widgetIndex){if(e.widgetIndex!==i)return;n=n.slice(1)}switch(n[0]){case"TEXTALIGN":t["text-align"]=n[1].toLowerCase();break;case"PADDING":t["padding"]=n[1]+"px !important";break;case"MARGIN":t["margin"]=n[1]+"px !important";break;case"BACKCOLOR":t["background-color"]=e.getColor(n.slice(1));break;case"TEXTCOLOR":t["color"]=e.getColor(n.slice(1));break;case"BORDERCOLOR":t["border-width"]="1px",t["border-style"]="solid",t["border-color"]=e.getColor(n.slice(1));break;case"WIDTH":t["width"]=n[1]+"px !important";break;case"HEIGHT":t["height"]=n[1]+"px !important";break;case"RAW":t[n[1].toLowerCase()]=n[2];break}})),t}},methods:{getColor:function(e){switch(e.length){case 1:return e[0].toLowerCase();case 3:return"rgb(".concat(e[0],",").concat(e[1],",").concat(e[2],")")}}}}),k=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("span",{staticClass:"pa-1 mt-1 label",style:[e.cssProps,e.computedStyle],attrs:{"data-test":"label"}},[e._v(" "+e._s(e.labelText)+" ")])},I=[],L={mixins:[x],data:function(){return{fontFamily:null,fontSize:null,fontWeight:"normal",fontStyle:"normal"}},computed:{labelText:function(){return this.parameters[0]},cssProps:function(){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:function(){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=L,E=(n(2269),n(3287)),N=(0,E.Z)(S,k,I,!1,null,"1ff40000",null),T=N.exports,O=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"value-widget-container"},[n("v-tooltip",{attrs:{bottom:""},scopedSlots:e._u([{key:"activator",fn:function(t){var i=t.on,l=t.attrs;return[n("v-text-field",e._g(e._b({class:e.valueClass,style:e.computedStyle,attrs:{solo:"",dense:"",readonly:"","single-line":"","hide-no-data":"","hide-details":"",placeholder:"Value",value:e._value,"data-test":"value"},on:{contextmenu:e.showContextMenu}},"v-text-field",l,!1),i))]}}])},[n("span",[e._v(e._s(e.fullName))])]),n("v-menu",{attrs:{"position-x":e.x,"position-y":e.y,absolute:"","offset-y":""},model:{value:e.contextMenuShown,callback:function(t){e.contextMenuShown=t},expression:"contextMenuShown"}},[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),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(t){e.viewDetails=t},expression:"viewDetails"}})],1)},M=[],D=(n(6708),n(131),{mixins:[x],props:{value:{default:null},limitsState:{type:String,default:null},formatString:null},data:function(){var e=this;return{valueId:null,colorBlind:!1,viewDetails:!1,contextMenuShown:!1,x:0,y:0,contextMenuOptions:[{title:"Details",action:function(){e.contextMenuShown=!1,e.viewDetails=!0}},{title:"Graph",action:function(){window.open("/tools/tlmgrapher/"+e.parameters[0]+"/"+e.parameters[1]+"/"+e.parameters[2],"_blank")}}]}},computed:{_value:function(){var e=this.value;null===e&&(e=this.$store.state.tlmViewerValues[this.valueId]?this.$store.state.tlmViewerValues[this.valueId][0]:null);var t=this.formatValue(e);return"true"===localStorage.colorblindMode&&""!==this.limitsLetter?"".concat(t," (").concat(this.limitsLetter,")"):t},valueClass:function(){return"value shrink pa-1 cosmos-"+this.limitsColor},limitsColor:function(){var e=this.limitsState;if(null===e&&(e=this.$store.state.tlmViewerValues[this.valueId]?this.$store.state.tlmViewerValues[this.valueId][1]:null),null!=e)switch(e){case"GREEN":case"GREEN_HIGH":case"GREEN_LOW":return"green";case"YELLOW":case"YELLOW_HIGH":case"YELLOW_LOW":return"yellow";case"RED":case"RED_HIGH":case"RED_LOW":return"red";case"BLUE":return"blue";case"STALE":return"purple";default:return"white"}return""},limitsLetter:function(){var e=this.limitsState;if(null===e&&(e=this.$store.state.tlmViewerValues[this.valueId]?this.$store.state.tlmViewerValues[this.valueId][1]:null),null!=e){var t=e.charAt(0);return e.endsWith("_LOW")&&(t=t.toLowerCase()),t}return""}},created:function(){null!==this.value&&null!==this.limitsState||(this.valueId="".concat(this.parameters[0],"__").concat(this.parameters[1],"__").concat(this.parameters[2],"__").concat(this.getType()),this.$store.commit("tlmViewerAddItem",this.valueId))},destroyed:function(){this.$store.commit("tlmViewerDeleteItem",this.valueId)},methods:{getType:function(){var e="WITH_UNITS";return this.parameters[3]&&(e=this.parameters[3]),e},formatValue:function(e){if("Array"===Object.prototype.toString.call(e).slice(8,-1)){for(var t="[",n=0;n<e.length;n++)"String"===Object.prototype.toString.call(e[n]).slice(8,-1)?t+='"'+e[n]+'"':t+=e[n],n!=e.length-1&&(t+=", ");return t+="]",t}return"Object"===Object.prototype.toString.call(e).slice(8,-1)?"":this.formatString&&e?sprintf(this.formatString,e):""+e},showContextMenu:function(e){var t=this;e.preventDefault(),this.contextMenuShown=!1,this.x=e.clientX,this.y=e.clientY,this.$nextTick((function(){t.contextMenuShown=!0}))}}}),R=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("v-dialog",{attrs:{width:"600"},model:{value:e.show,callback:function(t){e.show=t},expression:"show"}},[n("v-card",[n("v-system-bar",[n("v-spacer"),n("span",[e._v(" Details ")]),n("v-spacer")],1),n("v-card-title",[e._v(" "+e._s(e.targetName)+" "+e._s(e.packetName)+" "+e._s(e.itemName)+" ")]),n("v-card-subtitle",[e._v(e._s(e.details.description))]),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")]),n("v-col"),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")]),n("v-col",[e._v(e._s(e.rawValue))])],1),n("v-row",{attrs:{"no-gutters":""}},[n("v-col",{staticClass:"label",attrs:{cols:"4"}},[e._v("Converted Value")]),n("v-col",[e._v(e._s(e.convertedValue))])],1),n("v-row",{attrs:{"no-gutters":""}},[n("v-col",{staticClass:"label",attrs:{cols:"4"}},[e._v("Formatted Value")]),n("v-col",[e._v(e._s(e.formattedValue))])],1),n("v-row",{attrs:{"no-gutters":""}},[n("v-col",{staticClass:"label",attrs:{cols:"4"}},[e._v("With Units Value")]),n("v-col",[e._v(e._s(e.unitsValue))])],1)],1)],1):e._e(),n("v-row",{attrs:{"no-gutters":""}},[n("v-col",{staticClass:"label",attrs:{cols:"3"}},[e._v("Bit Offset")]),n("v-col",[e._v(e._s(e.details.bit_offset))])],1),n("v-row",{attrs:{"no-gutters":""}},[n("v-col",{staticClass:"label",attrs:{cols:"3"}},[e._v("Bit Size")]),n("v-col",[e._v(e._s(e.details.bit_size))])],1),e.details.array_size?n("v-row",{attrs:{"no-gutters":""}},[n("v-col",{staticClass:"label",attrs:{cols:"3"}},[e._v("Array Size")]),n("v-col",[e._v(e._s(e.details.array_size))])],1):e._e(),n("v-row",{attrs:{"no-gutters":""}},[n("v-col",{staticClass:"label",attrs:{cols:"3"}},[e._v("Data Type")]),n("v-col",[e._v(e._s(e.details.data_type))])],1),"cmd"===e.type?n("v-row",{attrs:{"no-gutters":""}},[n("v-col",{staticClass:"label",attrs:{cols:"3"}},[e._v("Minimum")]),n("v-col",[e._v(e._s(e.details.minimum))])],1):e._e(),"cmd"===e.type?n("v-row",{attrs:{"no-gutters":""}},[n("v-col",{staticClass:"label",attrs:{cols:"3"}},[e._v("Maximum")]),n("v-col",[e._v(e._s(e.details.maximum))])],1):e._e(),"cmd"===e.type?n("v-row",{attrs:{"no-gutters":""}},[n("v-col",{staticClass:"label",attrs:{cols:"3"}},[e._v("Default")]),n("v-col",[e._v(e._s(e.details.default))])],1):e._e(),n("v-row",{attrs:{"no-gutters":""}},[n("v-col",{staticClass:"label",attrs:{cols:"3"}},[e._v("Format String")]),n("v-col",[e._v(e._s(e.details.format_string))])],1),n("v-row",{attrs:{"no-gutters":""}},[n("v-col",{staticClass:"label",attrs:{cols:"3"}},[e._v("Read Conversion")]),e.details.read_conversion?n("v-col",[e._v(" Class: "+e._s(e.details.read_conversion.class)+" "),n("br"),e._v(" Params: "+e._s(e.details.read_conversion.params)+" ")]):n("v-col")],1),n("v-row",{attrs:{"no-gutters":""}},[n("v-col",{staticClass:"label",attrs:{cols:"3"}},[e._v("Write Conversion")]),e.details.write_conversion?n("v-col",[e._v(" Class: "+e._s(e.details.write_conversion.class)+" "),n("br"),e._v(" Params: "+e._s(e.details.write_conversion.params)+" ")]):n("v-col")],1),n("v-row",{attrs:{"no-gutters":""}},[n("v-col",{staticClass:"label",attrs:{cols:"3"}},[e._v("Id Value")]),n("v-col",[e._v(e._s(e.details.id_value))])],1),n("v-row",{attrs:{"no-gutters":""}},[n("v-col",{staticClass:"label",attrs:{cols:"3"}},[e._v("Units Full")]),n("v-col",[e._v(e._s(e.details.units_full))])],1),n("v-row",{attrs:{"no-gutters":""}},[n("v-col",{staticClass:"label",attrs:{cols:"3"}},[e._v("Units Abbr")]),n("v-col",[e._v(e._s(e.details.units))])],1),n("v-row",{attrs:{"no-gutters":""}},[n("v-col",{staticClass:"label",attrs:{cols:"3"}},[e._v("Endianness")]),n("v-col",[e._v(e._s(e.details.endianness))])],1),e.details.states?n("v-row",{attrs:{"no-gutters":""}},[n("v-col",{staticClass:"label",attrs:{cols:"3"}},[e._v("States")]),n("v-col"),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))]),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")]),n("v-col",[e._v("None")])],1),e.details.limits?n("v-row",{attrs:{"no-gutters":""}},[n("v-col",{staticClass:"label",attrs:{cols:"3"}},[e._v("Limits")]),n("v-col"),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":""}},[n("v-col",{staticClass:"label",attrs:{cols:"4"}},[e._v(e._s(i))]),e._v(" "+e._s(e.formatLimit(t))+" "),n("v-col")],1)})),1)],1):n("v-row",{attrs:{"no-gutters":""}},[n("v-col",{staticClass:"label",attrs:{cols:"3"}},[e._v("Limits")]),n("v-col",[e._v("None")])],1),e.details.meta?n("v-row",{attrs:{"no-gutters":""}},[n("v-col",{staticClass:"label",attrs:{cols:"3"}},[e._v("Meta")]),n("v-col"),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))]),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")]),n("v-col",[e._v("None")])],1)],1)],1)],1)],1)},V=[],H=(n(4083),{props:{type:{default:"tlm",validator:function(e){return-1!==["cmd","tlm"].indexOf(e)}},targetName:String,packetName:String,itemName:String,value:Boolean},data:function(){return{details:Object,updater:null,rawValue:null,convertedValue:null,formattedValue:null,unitsValue:null}},computed:{show:{get:function(){return this.value},set:function(e){this.$emit("input",e)}}},created:function(){this.api=new b},beforeDestroy:function(){clearInterval(this.updater),this.updater=null},watch:{value:function(e,t){var n=this;e?(this.requestDetails(),"tlm"===this.type&&(this.updater=setInterval((function(){n.api.get_tlm_values(["".concat(n.targetName,"__").concat(n.packetName,"__").concat(n.itemName,"__RAW"),"".concat(n.targetName,"__").concat(n.packetName,"__").concat(n.itemName,"__CONVERTED"),"".concat(n.targetName,"__").concat(n.packetName,"__").concat(n.itemName,"__FORMATTED"),"".concat(n.targetName,"__").concat(n.packetName,"__").concat(n.itemName,"__WITH_UNITS")]).then((function(e){n.rawValue=e[0][0],n.convertedValue=e[1][0],n.formattedValue=e[2][0],n.unitsValue=e[3][0]}))}),1e3))):(clearInterval(this.updater),this.updater=null)}},methods:{requestDetails:function(){var e=this;"tlm"===this.type?this.api.get_item(this.targetName,this.packetName,this.itemName).then((function(t){e.details=t})):this.api.get_parameter(this.targetName,this.packetName,this.itemName).then((function(t){e.details=t}))},formatLimit:function(e){return e.green_low?"RL/"+e.red_low+" YL/"+e.yellow_low+" YH/"+e.yellow_high+" RH/"+e.red_high+" GL/"+e.green_low+" GH/"+e.green_high:e.red_low?"RL/"+e.red_low+" YL/"+e.yellow_low+" YH/"+e.yellow_high+" RH/"+e.red_high:e}}}),W=H,$=(n(6917),(0,E.Z)(W,R,V,!1,null,"3eb9665d",null)),F=$.exports,P={components:{DetailsDialog:F},mixins:[D],computed:{fullName:function(){return this.parameters[0]+" "+this.parameters[1]+" "+this.parameters[2]}}},G=P,Z=(n(7051),(0,E.Z)(G,O,M,!1,null,"d1470e40",null)),U=Z.exports,Y={mixins:[x],components:{LabelWidget:T,ValueWidget:U},computed:{labelName:function(){return[this.parameters[2]+":"]}}},z=Y,B=(0,E.Z)(z,y,w,!1,null,null,null),j=B.exports,K=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{ref:"container",staticClass:"d-flex flex-row",style:[e.defaultStyle,e.computedStyle]},[n("labelvalue-widget",{attrs:{parameters:e.parameters,settings:e.settings}}),n("limitsbar-widget",{attrs:{parameters:e.limitsBarParameters,settings:e.settings.filter((function(e){return 1==e[0]})).map((function(e){return e.slice(1)})),"widget-index":3}})],1)},J=[],X=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"limitsbar",style:[e.cssProps,e.computedStyle]},[e._m(0)])},q=[function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"limitsbar__container"},[n("div",{staticClass:"limitsbar__redlow"}),n("div",{staticClass:"limitsbar__redhigh"}),n("div",{staticClass:"limitsbar__yellowlow"}),n("div",{staticClass:"limitsbar__yellowhigh"}),n("div",{staticClass:"limitsbar__greenlow"}),n("div",{staticClass:"limitsbar__greenhigh"}),n("div",{staticClass:"limitsbar__blue"}),n("div",{staticClass:"limitsbar__line"}),n("div",{staticClass:"limitsbar__arrow"})])}],Q="DEFAULT",ee={mixins:[x],data:function(){return{width:"100%",height:20,minValue:null,maxValue:null,scale:0,redLow:0,yellowLow:0,greenLow:0,greenHigh:0,yellowHigh:0,redHigh:0,blue:0,api:null,limitsSettings:{DEFAULT:[]},currentLimitsSet:Q,currentSetRefreshInterval:null}},computed:{cssProps:function(){var e=this.$store.state.tlmViewerValues[this.valueId][0],t=this.modifyLimits(this.limitsSettings[this.selectedLimitsSet]);return this.calcLimits(t),{"--height":this.height+"px","--width":this.width,"--container-height":this.height-5+"px","--position":this.calcPosition(e,t)+"%","--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:Q}},created:function(){var e=this;this.api=new b,this.api.get_limits(this.parameters[0],this.parameters[1],this.parameters[2]).then((function(t){e.limitsSettings=t})),this.getCurrentLimitsSet(),this.currentSetRefreshInterval=setInterval(this.getCurrentLimitsSet,6e4),this.settings.forEach((function(t){"MIN_VALUE"===t[0]&&(e.minValue=parseInt(t[1])),"MAX_VALUE"===t[0]&&(e.maxValue=parseInt(t[1]))}));var t="CONVERTED";this.parameters[3]&&(t=this.parameters[3]),this.valueId="".concat(this.parameters[0],"__").concat(this.parameters[1],"__").concat(this.parameters[2],"__").concat(t),this.$store.commit("tlmViewerAddItem",this.valueId)},destroyed:function(){this.$store.commit("tlmViewerDeleteItem",this.valueId),clearInterval(this.currentSetRefreshInterval)},methods:{modifyLimits:function(e){this.redLow=10,this.redHigh=10,this.minValue&&(e[0]<=this.minValue&&(e[0]=this.minValue,this.redLow=0),e[1]<=this.minValue&&(e[1]=this.minValue),e[2]<=this.minValue&&(e[2]=this.minValue),e[3]<=this.minValue&&(e[3]=this.minValue),e.length>4&&e[4]<=this.minValue&&(e[4]=this.minValue),e.length>4&&e[5]<=this.minValue&&(e[5]=this.minValue)),this.maxValue&&(e[0]>=this.maxValue&&(e[0]=this.maxValue),e[1]>=this.maxValue&&(e[1]=this.maxValue),e[2]>=this.maxValue&&(e[2]=this.maxValue),e[3]>=this.maxValue&&(e[3]=this.maxValue,this.redHigh=0),e.length>4&&e[4]>=this.maxValue&&(e[4]=this.maxValue),e.length>4&&e[5]>=this.maxValue&&(e[5]=this.maxValue)),e[0]==e[1]&&(this.redLow=0),e[2]==e[3]&&(this.redHigh=0);var t=80;return 0==this.redLow&&(t+=10),0==this.redHigh&&(t+=10),this.scale=(e[3]-e[0])/t,e},calcPosition:function(e,t){if(e&&t){var n=t[0]-10*this.scale;this.minValue&&this.minValue==t[0]&&(n=t[0]);t[3],this.scale;if(this.maxValue&&this.maxValue==t[3]&&t[3],e.raw)return"-Infinity"===e.raw?0:100;if(e<this.min)return 0;if(e>this.max)return 100;var i=parseInt((e-n)/this.scale);return i>100?100:i<0?0:i}},calcLimits:function(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(){var e=this;this.api.get_limits_set().then((function(t){e.currentLimitsSet=t}))}}},te=ee,ne=(n(3911),(0,E.Z)(te,X,q,!1,null,"4d506ea0",null)),ie=ne.exports,le={mixins:[x],components:{LabelvalueWidget:j,LimitsbarWidget:ie},data:function(){return{overallWidth:"300px"}},created:function(){var e=0;this.settings.forEach((function(t){"WIDTH"===t[1]&&(e+=parseInt(t[2]))})),0!=e&&(this.overallWidth=e+"px")},computed:{limitsBarParameters:function(){return[this.parameters[0],this.parameters[1],this.parameters[2],"CONVERTED"]},defaultStyle:function(){return{width:this.overallWidth}}}},oe=le,se=(0,E.Z)(oe,K,J,!1,null,null,null),ae=se.exports;function re(){var e="/cosmos/plugins/packages/cosmosc2-tool-limitsmonitor/src/tools/LimitsMonitor/LimitsControl.vue",t="b732487766b18ef6c2f7534fa00baae12480517f",n=new Function("return this")(),i="__coverage__",l={path:"/cosmos/plugins/packages/cosmosc2-tool-limitsmonitor/src/tools/LimitsMonitor/LimitsControl.vue",statementMap:{0:{start:{line:163,column:21},end:{line:163,column:23}},1:{start:{line:167,column:4},end:{line:174,column:5}},2:{start:{line:178,column:6},end:{line:182,column:7}},3:{start:{line:179,column:8},end:{line:179,column:61}},4:{start:{line:181,column:8},end:{line:181,column:17}},5:{start:{line:185,column:6},end:{line:189,column:7}},6:{start:{line:186,column:8},end:{line:186,column:32}},7:{start:{line:188,column:8},end:{line:188,column:58}},8:{start:{line:192,column:6},end:{line:192,column:61}},9:{start:{line:192,column:37},end:{line:192,column:60}},10:{start:{line:196,column:4},end:{line:196,column:30}},11:{start:{line:197,column:4},end:{line:205,column:5}},12:{start:{line:198,column:6},end:{line:204,column:7}},13:{start:{line:200,column:8},end:{line:200,column:35}},14:{start:{line:203,column:8},end:{line:203,column:37}},15:{start:{line:206,column:4},end:{line:206,column:28}},16:{start:{line:209,column:4},end:{line:211,column:12}},17:{start:{line:210,column:6},end:{line:210,column:19}},18:{start:{line:214,column:4},end:{line:217,column:5}},19:{start:{line:215,column:6},end:{line:215,column:33}},20:{start:{line:216,column:6},end:{line:216,column:25}},21:{start:{line:221,column:6},end:{line:251,column:8}},22:{start:{line:222,column:8},end:{line:249,column:9}},23:{start:{line:223,column:25},end:{line:223,column:40}},24:{start:{line:225,column:10},end:{line:230,column:11}},25:{start:{line:227,column:43},end:{line:227,column:69}},26:{start:{line:229,column:12},end:{line:229,column:20}},27:{start:{line:232,column:10},end:{line:232,column:38}},28:{start:{line:233,column:25},end:{line:236,column:11}},29:{start:{line:237,column:10},end:{line:239,column:11}},30:{start:{line:238,column:12},end:{line:238,column:40}},31:{start:{line:240,column:10},end:{line:242,column:11}},32:{start:{line:241,column:12},end:{line:241,column:37}},33:{start:{line:243,column:10},end:{line:247,column:11}},34:{start:{line:244,column:12},end:{line:244,column:38}},35:{start:{line:246,column:12},end:{line:246,column:37}},36:{start:{line:248,column:10},end:{line:248,column:35}},37:{start:{line:250,column:8},end:{line:250,column:31}},38:{start:{line:254,column:20},end:{line:254,column:27}},39:{start:{line:255,column:6},end:{line:267,column:7}},40:{start:{line:256,column:8},end:{line:258,column:9}},41:{start:{line:256,column:43},end:{line:256,column:65}},42:{start:{line:257,column:10},end:{line:257,column:18}},43:{start:{line:260,column:8},end:{line:262,column:9}},44:{start:{line:261,column:10},end:{line:261,column:28}},45:{start:{line:263,column:8},end:{line:266,column:9}},46:{start:{line:264,column:10},end:{line:264,column:25}},47:{start:{line:265,column:10},end:{line:265,column:15}},48:{start:{line:268,column:6},end:{line:268,column:33}},49:{start:{line:271,column:50},end:{line:271,column:66}},50:{start:{line:272,column:23},end:{line:272,column:55}},51:{start:{line:273,column:6},end:{line:273,column:35}},52:{start:{line:274,column:6},end:{line:274,column:38}},53:{start:{line:276,column:6},end:{line:284,column:7}},54:{start:{line:277,column:20},end:{line:277,column:80}},55:{start:{line:277,column:54},end:{line:277,column:79}},56:{start:{line:278,column:8},end:{line:283,column:9}},57:{start:{line:279,column:10},end:{line:279,column:15}},58:{start:{line:281,column:27},end:{line:281,column:65}},59:{start:{line:282,column:10},end:{line:282,column:72}},60:{start:{line:285,column:6},end:{line:285,column:29}},61:{start:{line:288,column:6},end:{line:288,column:29}},62:{start:{line:289,column:6},end:{line:289,column:38}},63:{start:{line:290,column:6},end:{line:290,column:27}},64:{start:{line:291,column:6},end:{line:291,column:29}},65:{start:{line:294,column:6},end:{line:294,column:35}},66:{start:{line:295,column:6},end:{line:295,column:26}},67:{start:{line:296,column:6},end:{line:296,column:30}},68:{start:{line:299,column:20},end:{line:301,column:7}},69:{start:{line:300,column:8},end:{line:300,column:32}},70:{start:{line:302,column:6},end:{line:302,column:33}},71:{start:{line:303,column:6},end:{line:303,column:36}},72:{start:{line:306,column:6},end:{line:306,column:39}},73:{start:{line:309,column:6},end:{line:315,column:7}},74:{start:{line:310,column:8},end:{line:314,column:12}},75:{start:{line:313,column:12},end:{line:313,column:61}},76:{start:{line:318,column:6},end:{line:368,column:7}},77:{start:{line:321,column:8},end:{line:323,column:9}},78:{start:{line:322,column:10},end:{line:322,column:18}},79:{start:{line:325,column:23},end:{line:325,column:93}},80:{start:{line:326,column:22},end:{line:328,column:9}},81:{start:{line:327,column:10},end:{line:327,column:38}},82:{start:{line:330,column:8},end:{line:334,column:9}},83:{start:{line:331,column:10},end:{line:331,column:75}},84:{start:{line:332,column:10},end:{line:332,column:33}},85:{start:{line:333,column:10},end:{line:333,column:18}},86:{start:{line:336,column:8},end:{line:338,column:9}},87:{start:{line:336,column:43},end:{line:336,column:69}},88:{start:{line:337,column:10},end:{line:337,column:18}},89:{start:{line:340,column:8},end:{line:348,column:9}},90:{start:{line:347,column:10},end:{line:347,column:18}},91:{start:{line:349,column:23},end:{line:356,column:9}},92:{start:{line:357,column:8},end:{line:364,column:9}},93:{start:{line:361,column:10},end:{line:361,column:36}},94:{start:{line:363,column:10},end:{line:363,column:35}},95:{start:{line:365,column:8},end:{line:365,column:70}},96:{start:{line:366,column:8},end:{line:366,column:33}},97:{start:{line:367,column:8},end:{line:367,column:31}},98:{start:{line:373,column:6},end:{line:373,column:36}}},fnMap:{0:{name:"(anonymous_0)",decl:{start:{line:163,column:15},end:{line:163,column:16}},loc:{start:{line:163,column:21},end:{line:163,column:23}},line:163},1:{name:"(anonymous_1)",decl:{start:{line:166,column:2},end:{line:166,column:3}},loc:{start:{line:166,column:9},end:{line:175,column:3}},line:166},2:{name:"(anonymous_2)",decl:{start:{line:177,column:4},end:{line:177,column:5}},loc:{start:{line:177,column:21},end:{line:183,column:5}},line:177},3:{name:"(anonymous_3)",decl:{start:{line:184,column:4},end:{line:184,column:5}},loc:{start:{line:184,column:28},end:{line:190,column:5}},line:184},4:{name:"(anonymous_4)",decl:{start:{line:191,column:4},end:{line:191,column:5}},loc:{start:{line:191,column:23},end:{line:193,column:5}},line:191},5:{name:"(anonymous_5)",decl:{start:{line:192,column:30},end:{line:192,column:31}},loc:{start:{line:192,column:37},end:{line:192,column:60}},line:192},6:{name:"(anonymous_6)",decl:{start:{line:195,column:2},end:{line:195,column:3}},loc:{start:{line:195,column:12},end:{line:207,column:3}},line:195},7:{name:"(anonymous_7)",decl:{start:{line:208,column:2},end:{line:208,column:3}},loc:{start:{line:208,column:12},end:{line:212,column:3}},line:208},8:{name:"(anonymous_8)",decl:{start:{line:209,column:31},end:{line:209,column:32}},loc:{start:{line:209,column:37},end:{line:211,column:5}},line:209},9:{name:"(anonymous_9)",decl:{start:{line:213,column:2},end:{line:213,column:3}},loc:{start:{line:213,column:14},end:{line:218,column:3}},line:213},10:{name:"(anonymous_10)",decl:{start:{line:220,column:4},end:{line:220,column:5}},loc:{start:{line:220,column:24},end:{line:252,column:5}},line:220},11:{name:"(anonymous_11)",decl:{start:{line:221,column:40},end:{line:221,column:41}},loc:{start:{line:221,column:51},end:{line:251,column:7}},line:221},12:{name:"(anonymous_12)",decl:{start:{line:227,column:30},end:{line:227,column:31}},loc:{start:{line:227,column:43},end:{line:227,column:69}},line:227},13:{name:"(anonymous_13)",decl:{start:{line:253,column:4},end:{line:253,column:5}},loc:{start:{line:253,column:23},end:{line:269,column:5}},line:253},14:{name:"(anonymous_14)",decl:{start:{line:256,column:30},end:{line:256,column:31}},loc:{start:{line:256,column:43},end:{line:256,column:65}},line:256},15:{name:"(anonymous_15)",decl:{start:{line:270,column:4},end:{line:270,column:5}},loc:{start:{line:270,column:33},end:{line:286,column:5}},line:270},16:{name:"(anonymous_16)",decl:{start:{line:277,column:44},end:{line:277,column:45}},loc:{start:{line:277,column:54},end:{line:277,column:79}},line:277},17:{name:"(anonymous_17)",decl:{start:{line:287,column:4},end:{line:287,column:5}},loc:{start:{line:287,column:31},end:{line:292,column:5}},line:287},18:{name:"(anonymous_18)",decl:{start:{line:293,column:4},end:{line:293,column:5}},loc:{start:{line:293,column:29},end:{line:297,column:5}},line:293},19:{name:"(anonymous_19)",decl:{start:{line:298,column:4},end:{line:298,column:5}},loc:{start:{line:298,column:21},end:{line:304,column:5}},line:298},20:{name:"(anonymous_20)",decl:{start:{line:299,column:44},end:{line:299,column:45}},loc:{start:{line:300,column:8},end:{line:300,column:32}},line:300},21:{name:"(anonymous_21)",decl:{start:{line:305,column:4},end:{line:305,column:5}},loc:{start:{line:305,column:20},end:{line:307,column:5}},line:305},22:{name:"(anonymous_22)",decl:{start:{line:308,column:4},end:{line:308,column:5}},loc:{start:{line:308,column:13},end:{line:316,column:5}},line:308},23:{name:"(anonymous_23)",decl:{start:{line:312,column:16},end:{line:312,column:17}},loc:{start:{line:312,column:26},end:{line:314,column:11}},line:312},24:{name:"(anonymous_24)",decl:{start:{line:317,column:4},end:{line:317,column:5}},loc:{start:{line:317,column:29},end:{line:369,column:5}},line:317},25:{name:"(anonymous_25)",decl:{start:{line:326,column:46},end:{line:326,column:47}},loc:{start:{line:327,column:10},end:{line:327,column:38}},line:327},26:{name:"(anonymous_26)",decl:{start:{line:336,column:30},end:{line:336,column:31}},loc:{start:{line:336,column:43},end:{line:336,column:69}},line:336},27:{name:"(anonymous_27)",decl:{start:{line:372,column:4},end:{line:372,column:5}},loc:{start:{line:372,column:18},end:{line:374,column:5}},line:372}},branchMap:{0:{loc:{start:{line:178,column:6},end:{line:182,column:7}},type:"if",locations:[{start:{line:178,column:6},end:{line:182,column:7}},{start:{line:180,column:13},end:{line:182,column:7}}],line:178},1:{loc:{start:{line:185,column:6},end:{line:189,column:7}},type:"if",locations:[{start:{line:185,column:6},end:{line:189,column:7}},{start:{line:187,column:13},end:{line:189,column:7}}],line:185},2:{loc:{start:{line:198,column:6},end:{line:204,column:7}},type:"if",locations:[{start:{line:198,column:6},end:{line:204,column:7}},{start:{line:201,column:13},end:{line:204,column:7}}],line:198},3:{loc:{start:{line:214,column:4},end:{line:217,column:5}},type:"if",locations:[{start:{line:214,column:4},end:{line:217,column:5}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:214},4:{loc:{start:{line:225,column:10},end:{line:230,column:11}},type:"if",locations:[{start:{line:225,column:10},end:{line:230,column:11}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:225},5:{loc:{start:{line:226,column:12},end:{line:227,column:70}},type:"binary-expr",locations:[{start:{line:226,column:12},end:{line:226,column:44}},{start:{line:227,column:12},end:{line:227,column:70}}],line:226},6:{loc:{start:{line:237,column:10},end:{line:239,column:11}},type:"if",locations:[{start:{line:237,column:10},end:{line:239,column:11}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:237},7:{loc:{start:{line:237,column:14},end:{line:237,column:71}},type:"binary-expr",locations:[{start:{line:237,column:14},end:{line:237,column:40}},{start:{line:237,column:44},end:{line:237,column:71}}],line:237},8:{loc:{start:{line:240,column:10},end:{line:242,column:11}},type:"if",locations:[{start:{line:240,column:10},end:{line:242,column:11}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:240},9:{loc:{start:{line:243,column:10},end:{line:247,column:11}},type:"if",locations:[{start:{line:243,column:10},end:{line:247,column:11}},{start:{line:245,column:17},end:{line:247,column:11}}],line:243},10:{loc:{start:{line:243,column:14},end:{line:243,column:53}},type:"binary-expr",locations:[{start:{line:243,column:14},end:{line:243,column:33}},{start:{line:243,column:37},end:{line:243,column:53}}],line:243},11:{loc:{start:{line:256,column:8},end:{line:258,column:9}},type:"if",locations:[{start:{line:256,column:8},end:{line:258,column:9}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:256},12:{loc:{start:{line:260,column:8},end:{line:262,column:9}},type:"if",locations:[{start:{line:260,column:8},end:{line:262,column:9}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:260},13:{loc:{start:{line:260,column:12},end:{line:260,column:56}},type:"binary-expr",locations:[{start:{line:260,column:12},end:{line:260,column:35}},{start:{line:260,column:39},end:{line:260,column:56}}],line:260},14:{loc:{start:{line:263,column:8},end:{line:266,column:9}},type:"if",locations:[{start:{line:263,column:8},end:{line:266,column:9}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:263},15:{loc:{start:{line:274,column:6},end:{line:274,column:38}},type:"binary-expr",locations:[{start:{line:274,column:6},end:{line:274,column:14}},{start:{line:274,column:18},end:{line:274,column:38}}],line:274},16:{loc:{start:{line:278,column:8},end:{line:283,column:9}},type:"if",locations:[{start:{line:278,column:8},end:{line:283,column:9}},{start:{line:280,column:15},end:{line:283,column:9}}],line:278},17:{loc:{start:{line:289,column:6},end:{line:289,column:38}},type:"binary-expr",locations:[{start:{line:289,column:6},end:{line:289,column:14}},{start:{line:289,column:18},end:{line:289,column:38}}],line:289},18:{loc:{start:{line:309,column:6},end:{line:315,column:7}},type:"if",locations:[{start:{line:309,column:6},end:{line:315,column:7}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:309},19:{loc:{start:{line:321,column:8},end:{line:323,column:9}},type:"if",locations:[{start:{line:321,column:8},end:{line:323,column:9}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:321},20:{loc:{start:{line:330,column:8},end:{line:334,column:9}},type:"if",locations:[{start:{line:330,column:8},end:{line:334,column:9}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:330},21:{loc:{start:{line:336,column:8},end:{line:338,column:9}},type:"if",locations:[{start:{line:336,column:8},end:{line:338,column:9}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:336},22:{loc:{start:{line:340,column:8},end:{line:348,column:9}},type:"if",locations:[{start:{line:340,column:8},end:{line:348,column:9}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:340},23:{loc:{start:{line:341,column:10},end:{line:345,column:11}},type:"binary-expr",locations:[{start:{line:341,column:10},end:{line:341,column:34}},{start:{line:342,column:10},end:{line:345,column:11}}],line:341},24:{loc:{start:{line:343,column:12},end:{line:344,column:52}},type:"binary-expr",locations:[{start:{line:343,column:12},end:{line:343,column:55}},{start:{line:344,column:12},end:{line:344,column:52}}],line:343},25:{loc:{start:{line:357,column:8},end:{line:364,column:9}},type:"if",locations:[{start:{line:357,column:8},end:{line:364,column:9}},{start:{line:362,column:15},end:{line:364,column:9}}],line:357},26:{loc:{start:{line:358,column:10},end:{line:359,column:43}},type:"binary-expr",locations:[{start:{line:358,column:10},end:{line:358,column:46}},{start:{line:359,column:10},end:{line:359,column:43}}],line:358}},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},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},b:{0:[0,0],1:[0,0],2:[0,0],3:[0,0],4:[0,0],5:[0,0],6:[0,0],7:[0,0],8:[0,0],9:[0,0],10:[0,0],11:[0,0],12:[0,0],13:[0,0],14:[0,0],15:[0,0],16:[0,0],17:[0,0],18:[0,0],19:[0,0],20:[0,0],21:[0,0],22:[0,0],23:[0,0],24:[0,0],25:[0,0],26:[0,0]},inputSourceMap:{version:3,sources:["LimitsControl.vue"],names:[],mappings:";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAsJA;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;;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;;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;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# This program may also be used under the terms of a commercial or\n# enterprise edition license of COSMOS if purchased from the\n# copyright holder\n--\x3e\n\n<template>\n <div>\n <v-container>\n <v-row no-gutters>\n <v-text-field\n width="200"\n dense\n outlined\n readonly\n label="Overall Limits State"\n :value="overallStateFormatted"\n :class="textFieldClass"\n data-test="overall-state"\n />\n </v-row>\n\n <div v-for="(item, index) in items" :key="item.key">\n <v-row data-test="limits-row" class="my-0">\n <v-col class="py-1">\n <labelvaluelimitsbar-widget\n v-if="item.limits"\n :parameters="item.parameters"\n :settings="[\n [\'0\', \'WIDTH\', \'150\'],\n [\'1\', \'WIDTH\', \'200\'],\n [\'2\', \'WIDTH\', \'200\'],\n ]"\n />\n <labelvalue-widget\n v-else\n :parameters="item.parameters"\n :settings="[\n [\'0\', \'WIDTH\', \'150\'],\n [\'1\', \'WIDTH\', \'200\'],\n ]"\n />\n </v-col>\n <v-col cols="2" class="py-1">\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-col>\n </v-row>\n <v-divider v-if="index < items.length - 1" :key="index" />\n </div>\n </v-container>\n <v-dialog v-model="ignoredItemsDialog" max-width="600">\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(item, 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-row class="mt-2">\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-row>\n <v-divider v-if="index < items.length - 1" :key="index" />\n </div>\n </v-card-text>\n </v-card>\n </v-dialog>\n </div>\n</template>\n\n<script>\nimport { CosmosApi } from \'@cosmosc2/tool-common/src/services/cosmos-api\'\nimport LabelvalueWidget from \'@cosmosc2/tool-common/src/components/widgets/LabelvalueWidget\'\nimport LabelvaluelimitsbarWidget from \'@cosmosc2/tool-common/src/components/widgets/LabelvaluelimitsbarWidget\'\n\nexport default {\n components: {\n LabelvalueWidget,\n LabelvaluelimitsbarWidget,\n },\n props: {\n value: {\n type: Array,\n default: () => [],\n },\n },\n data() {\n return {\n api: null,\n ignored: [],\n ignoredItemsDialog: false,\n overallState: \'GREEN\',\n items: [],\n itemList: [],\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 },\n created() {\n this.api = new CosmosApi()\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 },\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 },\n methods: {\n updateOutOfLimits() {\n this.api.get_out_of_limits().then((items) => {\n for (const item of items) {\n let itemName = item.join(\'__\')\n // Skip ignored and existing items\n if (\n this.itemList.includes(itemName) ||\n this.ignored.find((ignored) => itemName.includes(ignored))\n ) {\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 }\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(item, 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 updateIgnored() {\n this.$emit(\'input\', this.ignored)\n },\n update() {\n if (this.$store.state.tlmViewerItems.length !== 0) {\n this.api\n .get_tlm_values(this.$store.state.tlmViewerItems)\n .then((data) => {\n this.$store.commit(\'tlmViewerUpdateValues\', data)\n })\n }\n },\n handleMessages(messages) {\n for (let message of messages) {\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 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\n // Menu options\n showIgnored() {\n this.ignoredItemsDialog = true\n },\n },\n}\n<\/script>\n\n<style scoped>\n/* TODO: Color the border */\n.textfield-green >>> .v-text-field__slot input,\n.textfield-green >>> .v-text-field__slot label {\n color: green;\n}\n.textfield-yellow >>> .v-text-field__slot input,\n.textfield-yellow >>> .v-text-field__slot label {\n color: yellow;\n}\n.textfield-red >>> .v-text-field__slot input,\n.textfield-red >>> .v-text-field__slot label {\n color: red;\n}\n</style>\n']},_coverageSchema:"1a1c01bbd47fc00a2c39e90264f33305004495a9",hash:"b732487766b18ef6c2f7534fa00baae12480517f"},o=n[i]||(n[i]={});o[e]&&o[e].hash===t||(o[e]=l);var s=o[e];return re=function(){return s},s}re();var ce={components:{LabelvalueWidget:j,LabelvaluelimitsbarWidget:ae},props:{value:{type:Array,default:function(){return re().f[0]++,re().s[0]++,[]}}},data:function(){return re().f[1]++,re().s[1]++,{api:null,ignored:[],ignoredItemsDialog:!1,overallState:"GREEN",items:[],itemList:[]}},computed:{textFieldClass:function(){return re().f[2]++,re().s[2]++,this.overallState?(re().b[0][0]++,re().s[3]++,"textfield-".concat(this.overallState.toLowerCase())):(re().b[0][1]++,re().s[4]++,"")},overallStateFormatted:function(){return re().f[3]++,re().s[5]++,0===this.ignored.length?(re().b[1][0]++,re().s[6]++,this.overallState):(re().b[1][1]++,re().s[7]++,"".concat(this.overallState," (Some items ignored)"))},ignoredFormatted:function(){return re().f[4]++,re().s[8]++,this.ignored.map((function(e){return re().f[5]++,re().s[9]++,e.split("__").join(" ")}))}},created:function(){re().f[6]++,re().s[10]++,this.api=new b,re().s[11]++;var e,t=(0,c.Z)(this.value);try{for(t.s();!(e=t.n()).done;){var n=e.value;re().s[12]++,n.match(/.+__.+__.+/)?(re().b[2][0]++,re().s[13]++,this.ignoreItem(n,!0)):(re().b[2][1]++,re().s[14]++,this.ignorePacket(n,!0))}}catch(i){t.e(i)}finally{t.f()}re().s[15]++,this.updateOutOfLimits()},mounted:function(){var e=this;re().f[7]++,re().s[16]++,this.updater=setInterval((function(){re().f[8]++,re().s[17]++,e.update()}),1e3)},destroyed:function(){re().f[9]++,re().s[18]++,null!=this.updater?(re().b[3][0]++,re().s[19]++,clearInterval(this.updater),re().s[20]++,this.updater=null):re().b[3][1]++},methods:{updateOutOfLimits:function(){var e=this;re().f[10]++,re().s[21]++,this.api.get_out_of_limits().then((function(t){re().f[11]++,re().s[22]++;var n,i=(0,c.Z)(t);try{var l=function(){var t=n.value,i=(re().s[23]++,t.join("__"));if(re().s[24]++,re().b[5][0]++,e.itemList.includes(i)||(re().b[5][1]++,e.ignored.find((function(e){return re().f[12]++,re().s[25]++,i.includes(e)}))))return re().b[4][0]++,re().s[26]++,"continue";re().b[4][1]++,re().s[27]++,e.itemList.push(i);var l=(re().s[28]++,{key:t.slice(0,3).join("__"),parameters:t.slice(0,3)});re().s[29]++,re().b[7][0]++,t[3].includes("YELLOW")&&(re().b[7][1]++,"RED"!==e.overallState)?(re().b[6][0]++,re().s[30]++,e.overallState="YELLOW"):re().b[6][1]++,re().s[31]++,t[3].includes("RED")?(re().b[8][0]++,re().s[32]++,e.overallState="RED"):re().b[8][1]++,re().s[33]++,re().b[10][0]++,"YELLOW"==t[3]||(re().b[10][1]++,"RED"==t[3])?(re().b[9][0]++,re().s[34]++,l["limits"]=!1):(re().b[9][1]++,re().s[35]++,l["limits"]=!0),re().s[36]++,e.items.push(l)};for(i.s();!(n=i.n()).done;)l()}catch(o){i.e(o)}finally{i.f()}re().s[37]++,e.calcOverallState()}))},calcOverallState:function(){var e=this;re().f[13]++;var t=(re().s[38]++,"GREEN");re().s[39]++;var n,i=(0,c.Z)(this.itemList);try{var l=function(){var i=n.value;return re().s[40]++,e.ignored.find((function(e){return re().f[14]++,re().s[41]++,i.includes(e)}))?(re().b[11][0]++,re().s[42]++,"continue"):(re().b[11][1]++,re().s[43]++,re().b[13][0]++,i.includes("YELLOW")&&(re().b[13][1]++,"RED"!==t)?(re().b[12][0]++,re().s[44]++,t="YELLOW"):re().b[12][1]++,re().s[45]++,i.includes("RED")?(re().b[14][0]++,re().s[46]++,t="RED",re().s[47]++,"break"):void re().b[14][1]++)};for(i.s();!(n=i.n()).done;){var o=l();if("continue"!==o&&"break"===o)break}}catch(s){i.e(s)}finally{i.f()}re().s[48]++,this.overallState=t},ignorePacket:function(e,t){re().f[15]++;var n=(re().s[49]++,e.split("__")),i=(0,r.Z)(n,3),l=i[0],o=i[1],s=(i[2],re().s[50]++,"".concat(l,"__").concat(o));re().s[51]++,this.ignored.push(s),re().s[52]++,re().b[15][0]++,t||(re().b[15][1]++,this.updateIgnored()),re().s[53]++;while(1){var a=(re().s[54]++,this.itemList.findIndex((function(e){return re().f[16]++,re().s[55]++,e.includes(s)})));if(re().s[56]++,-1===a){re().b[16][0]++,re().s[57]++;break}re().b[16][1]++;var c=(re().s[58]++,this.itemList[a].lastIndexOf("__"));re().s[59]++,this.removeItem(this.itemList[a].substring(0,c))}re().s[60]++,this.calcOverallState()},ignoreItem:function(e,t){re().f[17]++,re().s[61]++,this.ignored.push(e),re().s[62]++,re().b[17][0]++,t||(re().b[17][1]++,this.updateIgnored()),re().s[63]++,this.removeItem(e),re().s[64]++,this.calcOverallState()},restoreItem:function(e,t){re().f[18]++,re().s[65]++,this.ignored.splice(t,1),re().s[66]++,this.updateIgnored(),re().s[67]++,this.updateOutOfLimits()},removeItem:function(e){re().f[19]++;var t=(re().s[68]++,this.itemList.findIndex((function(t){return re().f[20]++,re().s[69]++,t.includes(e)})));re().s[70]++,this.items.splice(t,1),re().s[71]++,this.itemList.splice(t,1)},updateIgnored:function(){re().f[21]++,re().s[72]++,this.$emit("input",this.ignored)},update:function(){var e=this;re().f[22]++,re().s[73]++,0!==this.$store.state.tlmViewerItems.length?(re().b[18][0]++,re().s[74]++,this.api.get_tlm_values(this.$store.state.tlmViewerItems).then((function(t){re().f[23]++,re().s[75]++,e.$store.commit("tlmViewerUpdateValues",t)}))):re().b[18][1]++},handleMessages:function(e){var t=this;re().f[24]++,re().s[76]++;var n,i=(0,c.Z)(e);try{var l=function(){var e=n.value;if(re().s[77]++,"LIMITS_CHANGE"!=e.type)return re().b[19][0]++,re().s[78]++,"continue";re().b[19][1]++;var i=(re().s[79]++,"".concat(e.target_name,"__").concat(e.packet_name,"__").concat(e.item_name)),l=(re().s[80]++,t.itemList.findIndex((function(e){return re().f[25]++,re().s[81]++,e.includes(i)})));if(re().s[82]++,-1!==l)return re().b[20][0]++,re().s[83]++,t.itemList[l]="".concat(i,"__").concat(e.new_limits_state),re().s[84]++,t.calcOverallState(),re().s[85]++,"continue";if(re().b[20][1]++,re().s[86]++,t.ignored.find((function(e){return re().f[26]++,re().s[87]++,i.includes(e)})))return re().b[21][0]++,re().s[88]++,"continue";if(re().b[21][1]++,re().s[89]++,re().b[23][0]++,e.new_limits_state&&(re().b[23][1]++,re().b[24][0]++,!e.new_limits_state.includes("YELLOW")&&(re().b[24][1]++,!e.new_limits_state.includes("RED"))))return re().b[22][0]++,re().s[90]++,"continue";re().b[22][1]++;var o=(re().s[91]++,{key:i,parameters:[e.target_name,e.packet_name,e.item_name]});re().s[92]++,re().b[26][0]++,"YELLOW"==e.new_limits_state||(re().b[26][1]++,"RED"==e.new_limits_state)?(re().b[25][0]++,re().s[93]++,o["limits"]=!1):(re().b[25][1]++,re().s[94]++,o["limits"]=!0),re().s[95]++,t.itemList.push("".concat(i,"__").concat(e.new_limits_state)),re().s[96]++,t.items.push(o),re().s[97]++,t.calcOverallState()};for(i.s();!(n=i.n()).done;)l()}catch(o){i.e(o)}finally{i.f()}},showIgnored:function(){re().f[27]++,re().s[98]++,this.ignoredItemsDialog=!0}}},ue=ce,me=(n(610),(0,E.Z)(ue,s,a,!1,null,"62d2bb56",null)),de=me.exports,Ae=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("v-card",{staticClass:"card-height"},[n("v-card-title",[e._v(" Limits Events "),n("v-spacer"),n("v-text-field",{attrs:{"append-icon":"mdi-magnify",label:"Search","single-line":"","hide-details":""},model:{value:e.search,callback:function(t){e.search=t},expression:"search"}})],1),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()},scopedSlots:e._u([{key:"item.time_nsec",fn:function(t){var i=t.item;return[n("span",[e._v(e._s(e.formatDate(i.time_nsec)))])]}},{key:"item.message",fn:function(t){var i=t.item;return[n("span",{class:e.getColorClass(i.message)},[e._v(e._s(i.message))])]}}])})],1)},ve=[],he=n(108),fe=n(6700);function pe(){var e="/cosmos/plugins/packages/cosmosc2-tool-limitsmonitor/src/tools/LimitsMonitor/LimitsEvents.vue",t="b51c43760da31b1e8c67ba52736b577a2770306c",n=new Function("return this")(),i="__coverage__",l={path:"/cosmos/plugins/packages/cosmosc2-tool-limitsmonitor/src/tools/LimitsMonitor/LimitsEvents.vue",statementMap:{0:{start:{line:65,column:4},end:{line:72,column:5}},1:{start:{line:76,column:6},end:{line:78,column:7}},2:{start:{line:76,column:19},end:{line:76,column:20}},3:{start:{line:77,column:8},end:{line:77,column:38}},4:{start:{line:79,column:6},end:{line:81,column:7}},5:{start:{line:80,column:8},end:{line:80,column:45}},6:{start:{line:84,column:6},end:{line:87,column:7}},7:{start:{line:90,column:6},end:{line:98,column:7}},8:{start:{line:91,column:8},end:{line:91,column:29}},9:{start:{line:92,column:13},end:{line:98,column:7}},10:{start:{line:93,column:8},end:{line:93,column:30}},11:{start:{line:94,column:13},end:{line:98,column:7}},12:{start:{line:95,column:8},end:{line:95,column:27}},13:{start:{line:96,column:13},end:{line:98,column:7}},14:{start:{line:97,column:8},end:{line:97,column:28}},15:{start:{line:99,column:6},end:{line:103,column:7}},16:{start:{line:100,column:8},end:{line:100,column:29}},17:{start:{line:102,column:8},end:{line:102,column:29}},18:{start:{line:107,column:6},end:{line:107,column:37}}},fnMap:{0:{name:"(anonymous_0)",decl:{start:{line:64,column:2},end:{line:64,column:3}},loc:{start:{line:64,column:9},end:{line:73,column:3}},line:64},1:{name:"(anonymous_1)",decl:{start:{line:75,column:4},end:{line:75,column:5}},loc:{start:{line:75,column:29},end:{line:82,column:5}},line:75},2:{name:"(anonymous_2)",decl:{start:{line:83,column:4},end:{line:83,column:5}},loc:{start:{line:83,column:25},end:{line:88,column:5}},line:83},3:{name:"(anonymous_3)",decl:{start:{line:89,column:4},end:{line:89,column:5}},loc:{start:{line:89,column:27},end:{line:104,column:5}},line:89},4:{name:"(anonymous_4)",decl:{start:{line:105,column:4},end:{line:105,column:5}},loc:{start:{line:105,column:22},end:{line:108,column:5}},line:105}},branchMap:{0:{loc:{start:{line:79,column:6},end:{line:81,column:7}},type:"if",locations:[{start:{line:79,column:6},end:{line:81,column:7}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:79},1:{loc:{start:{line:90,column:6},end:{line:98,column:7}},type:"if",locations:[{start:{line:90,column:6},end:{line:98,column:7}},{start:{line:92,column:13},end:{line:98,column:7}}],line:90},2:{loc:{start:{line:92,column:13},end:{line:98,column:7}},type:"if",locations:[{start:{line:92,column:13},end:{line:98,column:7}},{start:{line:94,column:13},end:{line:98,column:7}}],line:92},3:{loc:{start:{line:94,column:13},end:{line:98,column:7}},type:"if",locations:[{start:{line:94,column:13},end:{line:98,column:7}},{start:{line:96,column:13},end:{line:98,column:7}}],line:94},4:{loc:{start:{line:96,column:13},end:{line:98,column:7}},type:"if",locations:[{start:{line:96,column:13},end:{line:98,column:7}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:96},5:{loc:{start:{line:99,column:6},end:{line:103,column:7}},type:"if",locations:[{start:{line:99,column:6},end:{line:103,column:7}},{start:{line:101,column:13},end:{line:103,column:7}}],line:99}},s:{0:0,1:0,2:0,3:0,4:0,5:0,6:0,7:0,8:0,9:0,10:0,11:0,12:0,13:0,14:0,15:0,16:0,17:0,18:0},f:{0:0,1:0,2:0,3:0,4:0},b:{0:[0,0],1:[0,0],2:[0,0],3:[0,0],4:[0,0],5:[0,0]},inputSourceMap:{version:3,sources:["LimitsEvents.vue"],names:[],mappings:";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAsDA;;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",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# This program may also be used under the terms of a commercial or\n# enterprise edition license of COSMOS if purchased from the\n# copyright holder\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 append-icon=\"mdi-magnify\"\n label=\"Search\"\n single-line\n hide-details\n />\n </v-card-title>\n <v-data-table\n :headers=\"headers\"\n :items=\"data\"\n :search=\"search\"\n calculate-widths\n disable-pagination\n hide-default-footer\n multi-sort\n dense\n :height=\"calcTableHeight()\"\n >\n <template v-slot:item.time_nsec=\"{ item }\">\n <span>{{ formatDate(item.time_nsec) }}</span>\n </template>\n <template v-slot:item.message=\"{ item }\">\n <span :class=\"getColorClass(item.message)\">{{ item.message }}</span>\n </template>\n </v-data-table>\n </v-card>\n</template>\n\n<script>\nimport { toDate, format } from 'date-fns'\n\nexport default {\n props: {\n history_count: {\n type: Number,\n default: 1000,\n },\n },\n data() {\n return {\n data: [],\n search: '',\n headers: [\n { text: 'Time', value: 'time_nsec', width: 250 },\n { text: 'Message', value: 'message' },\n ],\n }\n },\n methods: {\n handleMessages(messages) {\n for (let i = 0; i < messages.length; i++) {\n this.data.unshift(messages[i])\n }\n if (this.data.length > this.history_count) {\n this.data.length = this.history_count\n }\n },\n formatDate(nanoSecs) {\n return format(\n toDate(parseInt(nanoSecs) / 1_000_000),\n 'yyyy-MM-dd HH:mm:ss.SSS'\n )\n },\n getColorClass(message) {\n if (message.includes('GREEN')) {\n return 'cosmos-green'\n } else if (message.includes('YELLOW')) {\n return 'cosmos-yellow'\n } else if (message.includes('RED')) {\n return 'cosmos-red'\n } else if (message.includes('BLUE')) {\n return 'cosmos-blue'\n }\n if (this.$vuetify.theme.dark) {\n return 'cosmos-white'\n } else {\n return 'cosmos-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:"b51c43760da31b1e8c67ba52736b577a2770306c"},o=n[i]||(n[i]={});o[e]&&o[e].hash===t||(o[e]=l);var s=o[e];return pe=function(){return s},s}pe();var _e={props:{history_count:{type:Number,default:1e3}},data:function(){return pe().f[0]++,pe().s[0]++,{data:[],search:"",headers:[{text:"Time",value:"time_nsec",width:250},{text:"Message",value:"message"}]}},methods:{handleMessages:function(e){pe().f[1]++,pe().s[1]++;for(var t=(pe().s[2]++,0);t<e.length;t++)pe().s[3]++,this.data.unshift(e[t]);pe().s[4]++,this.data.length>this.history_count?(pe().b[0][0]++,pe().s[5]++,this.data.length=this.history_count):pe().b[0][1]++},formatDate:function(e){return pe().f[2]++,pe().s[6]++,(0,he.Z)((0,fe.Z)(parseInt(e)/1e6),"yyyy-MM-dd HH:mm:ss.SSS")},getColorClass:function(e){return pe().f[3]++,pe().s[7]++,e.includes("GREEN")?(pe().b[1][0]++,pe().s[8]++,"cosmos-green"):(pe().b[1][1]++,pe().s[9]++,e.includes("YELLOW")?(pe().b[2][0]++,pe().s[10]++,"cosmos-yellow"):(pe().b[2][1]++,pe().s[11]++,e.includes("RED")?(pe().b[3][0]++,pe().s[12]++,"cosmos-red"):(pe().b[3][1]++,pe().s[13]++,e.includes("BLUE")?(pe().b[4][0]++,pe().s[14]++,"cosmos-blue"):(pe().b[4][1]++,pe().s[15]++,this.$vuetify.theme.dark?(pe().b[5][0]++,pe().s[16]++,"cosmos-white"):(pe().b[5][1]++,pe().s[17]++,"cosmos-black")))))},calcTableHeight:function(){return pe().f[4]++,pe().s[18]++,window.innerHeight-250}}},ge=_e,Ce=(n(8306),(0,E.Z)(ge,Ae,ve,!1,null,"e10911ac",null)),be=Ce.exports,ye=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("mounting-portal",{attrs:{"mount-to":"#cosmos-menu",append:""}},[n("div",{staticClass:"v-toolbar__content"},[e._l(e.menus,(function(t,i){return n("v-menu",{key:i,attrs:{"offset-y":""},scopedSlots:e._u([{key:"activator",fn:function(i){var l=i.on,o=i.attrs;return[n("v-btn",e._g(e._b({staticClass:"mx-1",attrs:{outlined:"","data-test":e.formatDT(e.title+" "+t.label)}},"v-btn",o,!1),l),[n("span",{domProps:{textContent:e._s(t.label)}}),n("v-icon",{attrs:{right:""}},[e._v(" mdi-menu-down ")])],1)]}}],null,!0)},[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}):n("v-list-item",{key:l,attrs:{disabled:i.disabled,"data-test":e.formatDT(e.title+" "+t.label+" "+i.label)},on:{click:i.command}},[i.radio?n("v-list-item-action",[n("v-radio",{attrs:{color:"secondary",label:i.label,value:i.label}})],1):e._e(),i.checkbox?n("v-list-item-action",[n("v-checkbox",{attrs:{color:"secondary",label:i.label,value:i.label},model:{value:e.checked,callback:function(t){e.checked=t},expression:"checked"}})],1):e._e(),i.icon?n("v-list-item-icon",[n("v-icon",{attrs:{disabled:i.disabled},domProps:{textContent:e._s(i.icon)}})],1):e._e(),i.radio||i.checkbox?e._e():n("v-list-item-title",{style:"cursor: pointer;"+(i.disabled?"opacity: 0.2":""),domProps:{textContent:e._s(i.label)}})],1)]}))],2)],1)],1)})),n("v-spacer"),n("v-toolbar-title",{domProps:{textContent:e._s(e.title)}}),n("v-spacer")],2)])},we=[],xe=(n(5940),n(1639),{props:{menus:{type:Array,default:function(){return[]}},title:{type:String,default:""}},methods:{formatDT:function(e){return e.replaceAll(" ","-").toLowerCase()}}}),ke=xe,Ie=(n(7162),(0,E.Z)(ke,ye,we,!1,null,"e3bb7458",null)),Le=Ie.exports,Se=n(8373),Ee=n(5563),Ne=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"/cosmos-api/cable";(0,d.Z)(this,e),this._cable=Ee.createConsumer(t)}return(0,A.Z)(e,[{key:"disconnect",value:function(){this._cable.disconnect()}},{key:"createSubscription",value:function(e,t){var n=this,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},l=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return CosmosAuth.updateToken(CosmosAuth.defaultMinValidity).then((function(){return n._cable.subscriptions.create((0,Se.Z)({channel:e,scope:t,token:localStorage.cosmosToken},l),i)}))}}]),e}(),Te=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("v-dialog",{attrs:{width:"600"},on:{keydown:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"esc",27,t.key,["Esc","Escape"])?null:e.cancel.apply(null,arguments)}},model:{value:e.show,callback:function(t){e.show=t},expression:"show"}},[n("v-card",[n("form",{on:{submit:function(t){return t.preventDefault(),e.success.apply(null,arguments)}}},[n("v-system-bar",[n("v-spacer"),n("span",[e._v("Open Configuration")]),n("v-spacer")],1),n("v-card-text",[n("div",{staticClass:"pa-3"},[n("v-row",{attrs:{dense:""}},[n("v-text-field",{attrs:{label:"search",type:"text","data-test":"search","prepend-icon":"mdi-magnify","clear-icon":"mdi-close-circle-outline",clearable:"",autofocus:"","single-line":"","hide-details":""},model:{value:e.search,callback:function(t){e.search=t},expression:"search"}})],1),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":function(e,t){return t.select(e)}},scopedSlots:e._u([{key:"item.actions",fn:function(t){var i=t.item;return[n("v-btn",{staticClass:"mt-1",attrs:{"data-test":"item-delete",icon:""},on:{click:function(t){return e.deleteConfig(i)}}},[n("v-icon",[e._v("mdi-delete")])],1)]}}])}),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)}})]),n("v-row",[n("v-btn",{attrs:{type:"submit",color:"success","data-test":"open-config-submit-btn",disabled:!!e.error},on:{click:function(t){return t.preventDefault(),e.success.apply(null,arguments)}}},[e._v(" Ok ")]),n("v-spacer"),n("v-btn",{attrs:{color:"primary","data-test":"open-config-cancel-btn"},on:{click:e.cancel}},[e._v(" Cancel ")])],1)],1)])],1)])],1)},Oe=[],Me=(n(4908),{props:{tool:String,value:Boolean},data:function(){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:function(){return this.value},set:function(e){this.$emit("input",e)}}},mounted:function(){var e=this,t=-1;(new b).list_configs(this.tool).then((function(n){e.configs=n.map((function(e){return t+=1,{configId:t,config:e}}))})).catch((function(t){e.$emit("warning","Failed to connect to Cosmos. ".concat(t))}))},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){var t=this;this.$dialog.confirm("Are you sure you want to delete: ".concat(e.config),{okText:"Delete",cancelText:"Cancel"}).then((function(n){t.selectedItem.config===e.config&&(t.selectedItem=null),t.configs.splice(t.configs.indexOf(e),1),(new b).delete_config(t.tool,e.config)})).catch((function(n){n&&t.$emit("warning","Failed to delete config ".concat(e.config," Error: ").concat(n))}))}}}),De=Me,Re=(0,E.Z)(De,Te,Oe,!1,null,"4f9dd098",null),Ve=Re.exports,He=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("v-dialog",{attrs:{width:"600"},on:{keydown:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"esc",27,t.key,["Esc","Escape"])?null:e.cancel.apply(null,arguments)}},model:{value:e.show,callback:function(t){e.show=t},expression:"show"}},[n("v-card",[n("form",{on:{submit:function(t){return t.preventDefault(),e.success.apply(null,arguments)}}},[n("v-system-bar",[n("v-spacer"),n("span",[e._v("Save Configuration")]),n("v-spacer")],1),n("v-card-text",[n("div",{staticClass:"pa-3"},[n("v-row",{attrs:{dense:""}},[n("v-text-field",{attrs:{label:"search",type:"text","data-test":"search","prepend-icon":"mdi-magnify","clear-icon":"mdi-close-circle-outline",clearable:"","single-line":"","hide-details":""},model:{value:e.search,callback:function(t){e.search=t},expression:"search"}})],1),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":function(e,t){return t.select(e)}},scopedSlots:e._u([{key:"item.actions",fn:function(t){var i=t.item;return[n("v-btn",{staticClass:"mt-1",attrs:{icon:"","data-test":"item-delete"},on:{click:function(t){return e.deleteConfig(i)}}},[n("v-icon",[e._v("mdi-delete")])],1)]}}])}),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(t){e.configName=t},expression:"configName"}})],1),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)}})]),n("v-row",[n("v-spacer"),n("v-btn",{staticClass:"mx-2",attrs:{outlined:""},on:{click:e.cancel}},[e._v(" Cancel ")]),n("v-btn",{staticClass:"mx-2",attrs:{type:"submit",color:"primary","data-test":"save-config-submit-btn",disabled:!!e.error},on:{click:function(t){return t.preventDefault(),e.success.apply(null,arguments)}}},[e._v(" Ok ")])],1)],1)])],1)])],1)},We=[],$e={props:{tool:String,value:Boolean},data:function(){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:function(){return this.value},set:function(e){this.$emit("input",e)}}},mounted:function(){var e=this,t=-1;(new b).list_configs(this.tool).then((function(n){e.configs=n.map((function(e){return t+=1,{configId:t,config:e}}))})).catch((function(t){e.$emit("warning","Failed to connect to Cosmos. ".concat(t))}))},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){var t=this;this.$dialog.confirm("Are you sure you want to delete: ".concat(e.config),{okText:"Delete",cancelText:"Cancel"}).then((function(n){t.configName===e.config&&(t.selectedItem=null,t.configName=""),t.configs.splice(t.configs.indexOf(e.config),1),(new b).delete_config(t.tool,e.config)})).catch((function(n){n&&t.$emit("warning","Failed to delete config ".concat(e.config," Error: ").concat(n))}))}}},Fe=$e,Pe=(0,E.Z)(Fe,He,We,!1,null,null,null),Ge=Pe.exports;function Ze(){var e="/cosmos/plugins/packages/cosmosc2-tool-limitsmonitor/src/tools/LimitsMonitor/LimitsMonitor.vue",t="18b316975e0a81f13b40c153220d1440e2793175",n=new Function("return this")(),i="__coverage__",l={path:"/cosmos/plugins/packages/cosmosc2-tool-limitsmonitor/src/tools/LimitsMonitor/LimitsMonitor.vue",statementMap:{0:{start:{line:75,column:4},end:{line:115,column:5}},1:{start:{line:94,column:16},end:{line:94,column:48}},2:{start:{line:103,column:16},end:{line:103,column:38}},3:{start:{line:109,column:16},end:{line:109,column:38}},4:{start:{line:118,column:4},end:{line:135,column:8}},5:{start:{line:124,column:27},end:{line:124,column:43}},6:{start:{line:125,column:12},end:{line:125,column:53}},7:{start:{line:126,column:12},end:{line:126,column:52}},8:{start:{line:134,column:8},end:{line:134,column:40}},9:{start:{line:138,column:4},end:{line:140,column:5}},10:{start:{line:139,column:6},end:{line:139,column:37}},11:{start:{line:141,column:4},end:{line:141,column:27}},12:{start:{line:145,column:23},end:{line:145,column:70}},13:{start:{line:146,column:6},end:{line:146,column:41}},14:{start:{line:147,column:6},end:{line:147,column:22}},15:{start:{line:150,column:6},end:{line:150,column:77}}},fnMap:{0:{name:"(anonymous_0)",decl:{start:{line:74,column:2},end:{line:74,column:3}},loc:{start:{line:74,column:9},end:{line:116,column:3}},line:74},1:{name:"(anonymous_1)",decl:{start:{line:93,column:23},end:{line:93,column:24}},loc:{start:{line:93,column:29},end:{line:95,column:15}},line:93},2:{name:"(anonymous_2)",decl:{start:{line:102,column:23},end:{line:102,column:24}},loc:{start:{line:102,column:29},end:{line:104,column:15}},line:102},3:{name:"(anonymous_3)",decl:{start:{line:108,column:23},end:{line:108,column:24}},loc:{start:{line:108,column:29},end:{line:110,column:15}},line:108},4:{name:"(anonymous_4)",decl:{start:{line:117,column:2},end:{line:117,column:3}},loc:{start:{line:117,column:12},end:{line:136,column:3}},line:117},5:{name:"(anonymous_5)",decl:{start:{line:123,column:20},end:{line:123,column:21}},loc:{start:{line:123,column:30},end:{line:127,column:11}},line:123},6:{name:"(anonymous_6)",decl:{start:{line:133,column:12},end:{line:133,column:13}},loc:{start:{line:133,column:30},end:{line:135,column:7}},line:133},7:{name:"(anonymous_7)",decl:{start:{line:137,column:2},end:{line:137,column:3}},loc:{start:{line:137,column:14},end:{line:142,column:3}},line:137},8:{name:"(anonymous_8)",decl:{start:{line:144,column:4},end:{line:144,column:5}},loc:{start:{line:144,column:34},end:{line:148,column:5}},line:144},9:{name:"(anonymous_9)",decl:{start:{line:149,column:4},end:{line:149,column:5}},loc:{start:{line:149,column:28},end:{line:151,column:5}},line:149}},branchMap:{0:{loc:{start:{line:138,column:4},end:{line:140,column:5}},type:"if",locations:[{start:{line:138,column:4},end:{line:140,column:5}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:138}},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},b:{0:[0,0]},inputSourceMap:{version:3,sources:["LimitsMonitor.vue"],names:[],mappings:";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAyDA;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",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# This program may also be used under the terms of a commercial or\n# enterprise edition license of COSMOS if purchased from the\n# copyright holder\n--\x3e\n\n<template>\n <div>\n <top-bar :menus="menus" :title="title" />\n <v-card>\n <v-tabs v-model="curTab" fixed-tabs>\n <v-tab v-for="(tab, index) in tabs" :key="index">{{ tab }}</v-tab>\n </v-tabs>\n <v-tabs-items v-model="curTab">\n <v-tab-item eager>\n <keep-alive>\n <limits-control ref="control" v-model="ignored" :key="renderKey" />\n </keep-alive>\n </v-tab-item>\n <v-tab-item eager>\n <keep-alive>\n <limits-events ref="events" />\n </keep-alive>\n </v-tab-item>\n </v-tabs-items>\n </v-card>\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 :tool="toolName"\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 :tool="toolName"\n @success="saveConfiguration"\n />\n </div>\n</template>\n\n<script>\nimport LimitsControl from \'@/tools/LimitsMonitor/LimitsControl\'\nimport LimitsEvents from \'@/tools/LimitsMonitor/LimitsEvents\'\nimport TopBar from \'@cosmosc2/tool-common/src/components/TopBar\'\nimport Cable from \'@cosmosc2/tool-common/src/services/cable.js\'\nimport { CosmosApi } from \'@cosmosc2/tool-common/src/services/cosmos-api\'\nimport OpenConfigDialog from \'@cosmosc2/tool-common/src/components/OpenConfigDialog\'\nimport SaveConfigDialog from \'@cosmosc2/tool-common/src/components/SaveConfigDialog\'\n\nexport default {\n components: {\n LimitsControl,\n LimitsEvents,\n TopBar,\n OpenConfigDialog,\n SaveConfigDialog,\n },\n data() {\n return {\n title: \'Limits Monitor\',\n toolName: \'limits-monitor\',\n curTab: null,\n tabs: [\'Limits\', \'Log\'],\n api: new CosmosApi(),\n cable: new Cable(),\n subscription: null,\n renderKey: 0,\n ignored: [],\n openConfig: false,\n saveConfig: false,\n menus: [\n {\n label: \'File\',\n items: [\n {\n label: \'Show Ignored\',\n command: () => {\n this.$refs.control.showIgnored()\n },\n },\n {\n divider: true,\n },\n {\n label: \'Open Configuration\',\n command: () => {\n this.openConfig = true\n },\n },\n {\n label: \'Save Configuration\',\n command: () => {\n this.saveConfig = true\n },\n },\n ],\n },\n ],\n }\n },\n created() {\n this.cable\n .createSubscription(\n \'LimitsEventsChannel\',\n localStorage.scope,\n {\n received: (data) => {\n const parsed = JSON.parse(data)\n this.$refs.control.handleMessages(parsed)\n this.$refs.events.handleMessages(parsed)\n },\n },\n {\n history_count: 1000,\n }\n )\n .then((subscription) => {\n this.subscription = subscription\n })\n },\n destroyed() {\n if (this.subscription) {\n this.subscription.unsubscribe()\n }\n this.cable.disconnect()\n },\n methods: {\n async openConfiguration(name) {\n const response = await this.api.load_config(this.toolName, name)\n this.ignored = JSON.parse(response)\n this.renderKey++ // Trigger re-render\n },\n saveConfiguration(name) {\n this.api.save_config(this.toolName, name, JSON.stringify(this.ignored))\n },\n },\n}\n<\/script>\n']},_coverageSchema:"1a1c01bbd47fc00a2c39e90264f33305004495a9",hash:"18b316975e0a81f13b40c153220d1440e2793175"},o=n[i]||(n[i]={});o[e]&&o[e].hash===t||(o[e]=l);var s=o[e];return Ze=function(){return s},s}Ze();var Ue={components:{LimitsControl:de,LimitsEvents:be,TopBar:Le,OpenConfigDialog:Ve,SaveConfigDialog:Ge},data:function(){var e=this;return Ze().f[0]++,Ze().s[0]++,{title:"Limits Monitor",toolName:"limits-monitor",curTab:null,tabs:["Limits","Log"],api:new b,cable:new Ne,subscription:null,renderKey:0,ignored:[],openConfig:!1,saveConfig:!1,menus:[{label:"File",items:[{label:"Show Ignored",command:function(){Ze().f[1]++,Ze().s[1]++,e.$refs.control.showIgnored()}},{divider:!0},{label:"Open Configuration",command:function(){Ze().f[2]++,Ze().s[2]++,e.openConfig=!0}},{label:"Save Configuration",command:function(){Ze().f[3]++,Ze().s[3]++,e.saveConfig=!0}}]}]}},created:function(){var e=this;Ze().f[4]++,Ze().s[4]++,this.cable.createSubscription("LimitsEventsChannel",localStorage.scope,{received:function(t){Ze().f[5]++;var n=(Ze().s[5]++,JSON.parse(t));Ze().s[6]++,e.$refs.control.handleMessages(n),Ze().s[7]++,e.$refs.events.handleMessages(n)}},{history_count:1e3}).then((function(t){Ze().f[6]++,Ze().s[8]++,e.subscription=t}))},destroyed:function(){Ze().f[7]++,Ze().s[9]++,this.subscription?(Ze().b[0][0]++,Ze().s[10]++,this.subscription.unsubscribe()):Ze().b[0][1]++,Ze().s[11]++,this.cable.disconnect()},methods:{openConfiguration:function(e){var t=this;return(0,o.Z)(regeneratorRuntime.mark((function n(){var i;return regeneratorRuntime.wrap((function(n){while(1)switch(n.prev=n.next){case 0:return Ze().f[8]++,Ze().s[12]++,n.next=4,t.api.load_config(t.toolName,e);case 4:i=n.sent,Ze().s[13]++,t.ignored=JSON.parse(i),Ze().s[14]++,t.renderKey++;case 9:case"end":return n.stop()}}),n)})))()},saveConfiguration:function(e){Ze().f[9]++,Ze().s[15]++,this.api.save_config(this.toolName,e,JSON.stringify(this.ignored))}}},Ye=Ue,ze=(0,E.Z)(Ye,i,l,!1,null,null,null),Be=ze.exports},8583:function(e,t,n){"use strict";n.r(t);var i=n(3467),l=n.n(i),o=n(8715),s=n.n(o),a=s()(l());a.push([e.id,".label[data-v-3eb9665d]{font-weight:700;text-transform:capitalize}",""]),t["default"]=a},3938:function(e,t,n){"use strict";n.r(t);var i=n(3467),l=n.n(i),o=n(8715),s=n.n(o),a=s()(l());a.push([e.id,".v-list[data-v-e3bb7458] .v-label{margin-left:5px}.v-list-item__icon[data-v-e3bb7458]{margin-right:15px!important}.v-list-item__title[data-v-e3bb7458]{color:#fff}",""]),t["default"]=a},4429:function(e,t,n){"use strict";n.r(t);var i=n(3467),l=n.n(i),o=n(8715),s=n.n(o),a=s()(l());a.push([e.id,".label[data-v-1ff40000]{font-family:var(--font-family);font-size:var(--font-size);font-weight:var(--font-weight);font-style:var(--font-style)}",""]),t["default"]=a},1836:function(e,t,n){"use strict";n.r(t);var i=n(3467),l=n.n(i),o=n(8715),s=n.n(o),a=s()(l());a.push([e.id,".textfield-green[data-v-62d2bb56] .v-text-field__slot input,.textfield-green[data-v-62d2bb56] .v-text-field__slot label{color:green}.textfield-yellow[data-v-62d2bb56] .v-text-field__slot input,.textfield-yellow[data-v-62d2bb56] .v-text-field__slot label{color:#ff0}.textfield-red[data-v-62d2bb56] .v-text-field__slot input,.textfield-red[data-v-62d2bb56] .v-text-field__slot label{color:red}",""]),t["default"]=a},9549:function(e,t,n){"use strict";n.r(t);var i=n(3467),l=n.n(i),o=n(8715),s=n.n(o),a=s()(l());a.push([e.id,".limitsbar[data-v-4d506ea0]{cursor:default;display:flex;justify-content:center;align-items:center;padding:5px;width:var(--width)}.limitsbar__container[data-v-4d506ea0]{position:relative;flex:1;height:var(--container-height);border:1px solid #000;background-color:#fff}.limitsbar__redlow[data-v-4d506ea0]{left:0;width:var(--redlow-width)}.limitsbar__redhigh[data-v-4d506ea0],.limitsbar__redlow[data-v-4d506ea0]{position:absolute;top:-1px;height:var(--container-height);background-color:red}.limitsbar__redhigh[data-v-4d506ea0]{right:0;width:var(--redhigh-width)}.limitsbar__yellowlow[data-v-4d506ea0]{left:var(--redlow-width);width:var(--yellowlow-width)}.limitsbar__yellowhigh[data-v-4d506ea0],.limitsbar__yellowlow[data-v-4d506ea0]{position:absolute;top:-1px;height:var(--container-height);background-color:#ffdc00}.limitsbar__yellowhigh[data-v-4d506ea0]{right:var(--redhigh-width);width:var(--yellowhigh-width)}.limitsbar__greenlow[data-v-4d506ea0]{left:calc(var(--redlow-width) + var(--yellowlow-width));width:var(--greenlow-width)}.limitsbar__greenhigh[data-v-4d506ea0],.limitsbar__greenlow[data-v-4d506ea0]{position:absolute;top:-1px;height:var(--container-height);background-color:green}.limitsbar__greenhigh[data-v-4d506ea0]{right:calc(var(--redhigh-width) + var(--yellowhigh-width));width:var(--greenhigh-width)}.limitsbar__blue[data-v-4d506ea0]{top:-1px;left:calc(var(--redlow-width) + var(--yellowlow-width) + var(--greenlow-width));width:var(--blue-width);background-color:blue}.limitsbar__blue[data-v-4d506ea0],.limitsbar__line[data-v-4d506ea0]{position:absolute;height:var(--container-height)}.limitsbar__line[data-v-4d506ea0]{left:var(--position);width:1px;background-color:gray}.limitsbar__arrow[data-v-4d506ea0]{position:absolute;top:-5px;left:var(--position);width:0;height:0;-webkit-transform:translateX(-5px);transform:translateX(-5px);border-left:5px solid transparent;border-right:5px solid transparent;border-top:5px solid gray}",""]),t["default"]=a},3161:function(e,t,n){"use strict";n.r(t);var i=n(3467),l=n.n(i),o=n(8715),s=n.n(o),a=s()(l());a.push([e.id,".value-widget-container[data-v-d1470e40]{min-height:34px}.value[data-v-d1470e40] div{min-height:24px!important;display:flex!important;align-items:center!important}.cosmos-green[data-v-d1470e40] input{color:#009600}.cosmos-yellow[data-v-d1470e40] input{color:#be8700}.cosmos-red[data-v-d1470e40] input{color:red}.cosmos-blue[data-v-d1470e40] input{color:#0064ff}.cosmos-purple[data-v-d1470e40] input{color:#c800c8}.cosmos-black[data-v-d1470e40] input{color:#000}.cosmos-white[data-v-d1470e40] input{color:#fff}",""]),t["default"]=a},8495:function(e,t,n){"use strict";n.r(t);var i=n(3467),l=n.n(i),o=n(8715),s=n.n(o),a=s()(l());a.push([e.id,".card-height[data-v-e10911ac]{height:calc(100vh - 150px)}",""]),t["default"]=a},6917:function(e,t,n){var i=n(8583);i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[e.id,i,""]]),i.locals&&(e.exports=i.locals);var l=n(3514).Z;l("7c1e213a",i,!0,{sourceMap:!1,shadowMode:!1})},7162:function(e,t,n){var i=n(3938);i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[e.id,i,""]]),i.locals&&(e.exports=i.locals);var l=n(3514).Z;l("a2f2c426",i,!0,{sourceMap:!1,shadowMode:!1})},2269:function(e,t,n){var i=n(4429);i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[e.id,i,""]]),i.locals&&(e.exports=i.locals);var l=n(3514).Z;l("27aab41a",i,!0,{sourceMap:!1,shadowMode:!1})},610:function(e,t,n){var i=n(1836);i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[e.id,i,""]]),i.locals&&(e.exports=i.locals);var l=n(3514).Z;l("9ea19714",i,!0,{sourceMap:!1,shadowMode:!1})},3911:function(e,t,n){var i=n(9549);i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[e.id,i,""]]),i.locals&&(e.exports=i.locals);var l=n(3514).Z;l("fbeb2792",i,!0,{sourceMap:!1,shadowMode:!1})},7051:function(e,t,n){var i=n(3161);i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[e.id,i,""]]),i.locals&&(e.exports=i.locals);var l=n(3514).Z;l("10f1e48f",i,!0,{sourceMap:!1,shadowMode:!1})},8306:function(e,t,n){var i=n(8495);i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[e.id,i,""]]),i.locals&&(e.exports=i.locals);var l=n(3514).Z;l("0ccf8824",i,!0,{sourceMap:!1,shadowMode:!1})}}]);
2
+ //# sourceMappingURL=508.js.map