openc3-cosmos-tool-handbooks 5.17.1 → 5.18.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/tools/handbooks/js/662.js +1 -1
- data/tools/handbooks/js/662.js.map +1 -1
- data/tools/handbooks/js/84.js +1 -1
- data/tools/handbooks/js/84.js.map +1 -1
- data/tools/handbooks/js/app.js +1 -1
- data/tools/handbooks/js/app.js.map +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e54d64d11b6f01f0e971bb5187f799f3a4a8dedb5f9e52bd9a7a809c4cb891d3
|
4
|
+
data.tar.gz: d6fcf83a52996fd327c6d269dfc5753b5c89ea60a46f9eaed500795bfedd2f05
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 74226633c40d43673fbcda25dd6674d279294a00dbbbd46c367b993540a10f6f0cf8f7b75e9cc97beed2c858c149ae8856fac02b50ec5b9c60748c696c688f42
|
7
|
+
data.tar.gz: bf5bf99df83127acebaad432720a1b350d006d3c9035ee4784e8421bcfe9a073e991cb9b535d9f981998e8b06ebf529fa8917b14131f2187c3698027ec77f64e
|
data/tools/handbooks/js/662.js
CHANGED
@@ -1,2 +1,2 @@
|
|
1
|
-
(self["webpackChunk_openc3_cosmos_tool_handbooks"]=self["webpackChunk_openc3_cosmos_tool_handbooks"]||[]).push([[662],{2662:(e,n,t)=>{"use strict";function i(){var e="/openc3/plugins/packages/openc3-cosmos-tool-handbooks/src/tools/Handbooks/Handbooks.vue",n="81570936c0a0bbd6fe3204546810d59181e3d563",t=new Function("return this")(),l="__coverage__",o={path:"/openc3/plugins/packages/openc3-cosmos-tool-handbooks/src/tools/Handbooks/Handbooks.vue",statementMap:{0:{start:{line:1,column:13},end:{line:2,column:1}},1:{start:{line:1,column:39},end:{line:1,column:43}},2:{start:{line:1,column:47},end:{line:1,column:59}},3:{start:{line:1,column:60},end:{line:1,column:1751}},4:{start:{line:1,column:494},end:{line:1,column:889}},5:{start:{line:1,column:573},end:{line:1,column:597}},6:{start:{line:1,column:969},end:{line:1,column:996}},7:{start:{line:1,column:1125},end:{line:1,column:1174}},8:{start:{line:1,column:1418},end:{line:1,column:1433}},9:{start:{line:1,column:1591},end:{line:1,column:1745}},10:{start:{line:3,column:22},end:{line:3,column:24}}},fnMap:{0:{name:"render",decl:{start:{line:1,column:22},end:{line:1,column:28}},loc:{start:{line:1,column:30},end:{line:2,column:1}},line:1},1:{name:"(anonymous_1)",decl:{start:{line:1,column:483},end:{line:1,column:484}},loc:{start:{line:1,column:493},end:{line:1,column:890}},line:1},2:{name:"(anonymous_2)",decl:{start:{line:1,column:556},end:{line:1,column:557}},loc:{start:{line:1,column:572},end:{line:1,column:598}},line:1},3:{name:"(anonymous_3)",decl:{start:{line:1,column:953},end:{line:1,column:954}},loc:{start:{line:1,column:968},end:{line:1,column:997}},line:1},4:{name:"(anonymous_4)",decl:{start:{line:1,column:1108},end:{line:1,column:1109}},loc:{start:{line:1,column:1124},end:{line:1,column:1175}},line:1},5:{name:"(anonymous_5)",decl:{start:{line:1,column:1402},end:{line:1,column:1403}},loc:{start:{line:1,column:1417},end:{line:1,column:1434}},line:1},6:{name:"(anonymous_6)",decl:{start:{line:1,column:1574},end:{line:1,column:1575}},loc:{start:{line:1,column:1590},end:{line:1,column:1746}},line:1}},branchMap:{},s:{0:0,1:0,2:0,3:0,4:0,5:0,6:0,7:0,8:0,9:0,10:0},f:{0:0,1:0,2:0,3:0,4:0,5:0,6:0},b:{},_coverageSchema:"1a1c01bbd47fc00a2c39e90264f33305004495a9",hash:"81570936c0a0bbd6fe3204546810d59181e3d563"},s=t[l]||(t[l]={});s[e]&&s[e].hash===n||(s[e]=o);var a=s[e];return i=function(){return a},a}t.r(n),t.d(n,{default:()=>Y}),i(),i().s[0]++;var l=function(){i().f[0]++;var e=(i().s[1]++,this),n=(i().s[2]++,e._self._c);return i().s[3]++,n("div",[n("top-bar",{attrs:{menus:e.menus,title:e.title}}),e._v(" "),n("v-card",[n("v-container",{staticClass:"d-print-none"},[n("v-row",{attrs:{dense:""}},[n("v-col",[n("v-select",{staticClass:"ma-0 pa-0",attrs:{label:"Select Target(s)",dense:"","hide-details":"",outlined:"",items:e.targetNames,multiple:""},on:{change:e.targetSelect},scopedSlots:e._u([{key:"prepend-item",fn:function(){return i().f[1]++,i().s[4]++,[n("v-list-item",{attrs:{ripple:""},on:{mousedown:function(e){i().f[2]++,i().s[5]++,e.preventDefault()},click:e.toggleTargets}},[n("v-list-item-action",[n("v-icon",[e._v("\n "+e._s(e.icon)+"\n ")])],1),e._v(" "),n("v-list-item-content",[n("v-list-item-title",[e._v(" Select All ")])],1)],1),e._v(" "),n("v-divider",{staticClass:"mt-2"})]},proxy:!0}]),model:{value:e.selectedTargetNames,callback:function(n){i().f[3]++,i().s[6]++,e.selectedTargetNames=n},expression:"selectedTargetNames"}})],1),e._v(" "),n("v-col",[n("v-btn",{staticClass:"primary",on:{click:function(n){i().f[4]++,i().s[7]++,e.renderedTargetNames=e.selectedTargetNames}}},[e._v("\n Display\n ")])],1),e._v(" "),n("v-col",[n("v-select",{attrs:{label:"Item Columns",dense:"","hide-details":"",outlined:"",items:e.columnItems},model:{value:e.columns,callback:function(n){i().f[5]++,i().s[8]++,e.columns=n},expression:"columns"}})],1)],1)],1)],1),e._v(" "),n("div",{staticStyle:{height:"15px"}}),e._v(" "),e._l(e.renderedTargetNames,(function(t){return i().f[6]++,i().s[9]++,n("div",{key:t},[n("target",{attrs:{target:t,columns:e.columns,hideIgnored:e.hideIgnored,hideDerived:e.hideDerived}})],1)}))],2)},o=(i().s[10]++,[]),s=t(814),a=(t(7107),t(2482),t(7067),t(4147),t(2682),t(785),t(8357),t(6196),t(821),t(6554),t(8472),t(7404),t(5803),t(3912),t(7010),t(3816)),r=t(1649);const c=new r["default"],d=a.A.create({baseURL:location.origin,timeout:6e4,params:{}});d.interceptors.response.use((e=>e),(e=>{if(e.response){var n,t,i,l,o;if(401===e.response.status&&OpenC3Auth.updateToken(OpenC3Auth.defaultMinValidity,!0).then((function(e){e&&OpenC3Auth.setTokens()})),e.response.config.headers["Ignore-Errors"]&&e.response.config.headers["Ignore-Errors"].includes(e.response.status.toString()))return Promise.reject(e);let a=`HTTP ${e.response.status} - `;if(null!==(n=e.response)&&void 0!==n&&n.statusText&&(a+=`${e.response.statusText} `),null!==(t=e.response)&&void 0!==t&&null!==(t=t.config)&&void 0!==t&&t.data&&(a+=`${e.response.config.data} `),null!==(i=e.response)&&void 0!==i&&null!==(i=i.data)&&void 0!==i&&i.message)a+=`${e.response.data.message}`;else if(null!==(l=e.response)&&void 0!==l&&null!==(l=l.data)&&void 0!==l&&l.exception)a+=`${e.response.data.exception}`;else if(null!==(o=e.response)&&void 0!==o&&null!==(o=o.data)&&void 0!==o&&null!==(o=o.error)&&void 0!==o&&o.message)e.response.data.error.class&&(a+=`${e.response.data.error.class} `),a+=`${e.response.data.error.message}`;else{var s;a+=`${null===(s=e.response)||void 0===s?void 0:s.data}`}throw c.$notify&&c.$notify.serious({title:"Network error",body:a}),e}throw e}));const m=d;class u{constructor(){(0,s.A)(this,"id",1)}async exec(e,n,t={},i={},l=6e4){try{let e=await OpenC3Auth.updateToken(OpenC3Auth.defaultMinValidity);e&&OpenC3Auth.setTokens()}catch(s){OpenC3Auth.login()}this.id=this.id+1;try{t["scope"]=window.openc3Scope;const o=await m.post("/openc3-api/api",{jsonrpc:"2.0",method:e,params:n,id:this.id,keyword_params:t},{headers:{Authorization:localStorage.openc3Token,"Content-Type":"application/json-rpc",...i},timeout:l});return o.data.result}catch(s){var o=new Error;throw s.response?(o.name=s.response.data.error.data.class,o.message=s.response.data.error.data.message):s.request?(o.name="Request error",o.message="Request error, no response received"):o.name="Unknown error",o}}decode_openc3_type(e){if(null!==e&&"object"===typeof e&&"Float"==e.json_class&&e.raw){if("NaN"==e.raw)return NaN;if("Infinity"==e.raw)return 1/0;if("-Infinity"==e.raw)return-1/0}return null}encode_openc3_type(e){return Number.isNaN(e)?{json_class:"Float",raw:"NaN"}:e==Number.POSITIVE_INFINITY?{json_class:"Float",raw:"Infinity"}:e==Number.NEGATIVE_INFINITY?{json_class:"Float",raw:"-Infinity"}:null}ensure_offline_access(){this.offline_access_needed().then((e=>{e&&(localStorage.openc3OfflineToken?this.set_offline_access(localStorage.openc3OfflineToken).then((()=>{delete localStorage.openc3OfflineToken})):OpenC3Auth.getOfflineAccess())}))}offline_access_needed(){return this.exec("offline_access_needed",[])}set_offline_access(e){return this.exec("set_offline_access",[e])}get_all_interface_info(){return this.exec("get_all_interface_info",[])}map_target_to_interface(e,n){return this.exec("map_target_to_interface",[e,n])}connect_interface(e,...n){return n.length>0?this.exec("connect_interface",[e,...n]):this.exec("connect_interface",[e])}disconnect_interface(e){return this.exec("disconnect_interface",[e])}interface_cmd(e,n,...t){return this.exec("interface_cmd",[e,n,...t])}get_all_router_info(){return this.exec("get_all_router_info",[])}connect_router(e){return this.exec("connect_router",[e])}disconnect_router(e){return this.exec("disconnect_router",[e])}get_target_interfaces(){return this.exec("get_target_interfaces",[])}get_all_target_info(){return this.exec("get_all_target_info",[])}get_tlm_cnts(e){return this.exec("get_tlm_cnts",[e])}get_item(e,n,t){return this.exec("get_item",[e,n,t])}get_param(e,n,t){return this.exec("get_param",[e,n,t])}get_parameter(e,n,t){return this.exec("get_parameter",[e,n,t])}get_limits_sets(){return this.exec("get_limits_sets",[])}get_limits_set(){return this.exec("get_limits_set",[])}set_limits_set(e){return this.exec("set_limits_set",[e])}get_target(e){return this.exec("get_target",[e])}get_target_names(){return this.exec("get_target_names",[])}get_target_list(){return this.exec("get_target_list",[])}get_tlm(e,n){return this.exec("get_tlm",[e,n])}get_telemetry(e,n){return this.exec("get_telemetry",[e,n])}get_all_tlm(e){return this.exec("get_all_tlm",[e])}get_all_telemetry(e){return this.exec("get_all_telemetry",[e])}get_all_tlm_names(e){return this.exec("get_all_tlm_names",[e])}get_all_telemetry_names(e){return this.exec("get_all_telemetry_names",[e])}async get_tlm_packet(e,n,t,i=30){const l=await this.exec("get_tlm_packet",[e,n],{type:t,stale_time:i});if(null!=l)for(var o=l.length,s=null,a=0;a<o;a++)s=this.decode_openc3_type(l[a][1]),null!==s&&(l[a][1]=s);return l}get_packet_derived_items(e,n){return this.exec("get_packet_derived_items",[e,n])}get_tlm_buffer(e,n){return this.exec("get_tlm_buffer",[e,n])}async get_tlm_values(e,n=30,t=null){let i={stale_time:n};null!==t&&(i["cache_timeout"]=t);const l=await this.exec("get_tlm_values",[e],i,{},1e4);for(var o=l[0].length,s=null,a=0;a<o;a++)s=this.decode_openc3_type(l[0][a]),null!==s&&(l[0][a]=s);return l}get_limits(e,n,t){return this.exec("get_limits",[e,n,t])}async tlm(e,n,t,i="CONVERTED"){let l=null;if(void 0===n)l=await this.exec("tlm",[e]);else if(void 0===t){if(!["RAW","CONVERTED","FORMATTED","WITH_UNITS"].includes(n)){var o=new Error;throw o.name="TypeError",o.message=`Invalid data type ${n}. Valid options are RAW, CONVERTED, FORMATTED, and WITH_UNITS.`,o}l=await this.exec("tlm",[e],{type:n})}else l=await this.exec("tlm",[e,n,t],{type:i});var s=this.decode_openc3_type(l);return null!==s&&(l=s),l}async inject_tlm(e,n,t=null,i="CONVERTED"){data=await this.exec("inject_tlm",[e,n,t],{type:i})}set_tlm(e,n,t,i){return this.exec("set_tlm",[e,n,t],{type:i})}override_tlm(e,n,t,i){return this.exec("override_tlm",[e,n,t],{type:i})}get_overrides(){return this.exec("get_overrides")}normalize_tlm(e,n,t,i){return this.exec("normalize_tlm",[e,n,t],{type:i})}get_all_cmds(e){return this.exec("get_all_cmds",[e])}get_all_commands(e){return this.exec("get_all_commands",[e])}get_all_cmd_names(e){return this.exec("get_all_cmd_names",[e])}get_all_command_names(e){return this.exec("get_all_command_names",[e])}get_cmd(e,n){return this.exec("get_cmd",[e,n])}get_command(e,n){return this.exec("get_command",[e,n])}get_cmd_cnts(e){return this.exec("get_cmd_cnts",[e])}get_cmd_value(e,n,t,i="CONVERTED"){return this.exec("get_cmd_value",[e,n,t,i])}get_cmd_buffer(e,n){return this.exec("get_cmd_buffer",[e,n])}_cmd(e,n,t,i,l){var o=null;for(var s in i)Object.prototype.hasOwnProperty.call(i,s)&&(o=this.encode_openc3_type(i[s]),null!==o&&(i[s]=o));return this.exec(e,[n,t,i],{},l)}get_cmd_hazardous(e,n,t){return void 0===n?this.exec("get_cmd_hazardous",e):this._cmd("get_cmd_hazardous",e,n,t)}cmd(e,n,t,i={}){return void 0===n?this.exec("cmd",e,{},i):this._cmd("cmd",e,n,t,i)}cmd_no_range_check(e,n,t){return void 0===n?this.exec("cmd_no_range_check",e):this._cmd("cmd_no_range_check",e,n,t)}cmd_raw(e,n,t){return void 0===n?this.exec("cmd_raw",e):this._cmd("cmd_raw",e,n,t)}cmd_raw_no_range_check(e,n,t){return void 0===n?this.exec("cmd_raw_no_range_check",e):this._cmd("cmd_raw_no_range_check",e,n,t)}cmd_no_hazardous_check(e,n,t){return void 0===n?this.exec("cmd_no_hazardous_check",e):this._cmd("cmd_no_hazardous_check",e,n,t)}cmd_no_checks(e,n,t){return void 0===n?this.exec("cmd_no_checks",e):this._cmd("cmd_no_checks",e,n,t)}cmd_raw_no_hazardous_check(e,n,t){return void 0===n?this.exec("cmd_raw_no_hazardous_check",e):this._cmd("cmd_raw_no_hazardous_check",e,n,t)}cmd_raw_no_checks(e,n,t){return void 0===n?this.exec("cmd_raw_no_checks",e):this._cmd("cmd_raw_no_checks",e,n,t)}build_cmd(e,n,t){return void 0===n?this.exec("build_cmd",e):this._cmd("build_cmd",e,n,t)}build_command(e,n,t){return void 0===n?this.exec("build_command",e):this._cmd("build_command",e,n,t)}get_interface_names(){return this.exec("get_interface_names",[])}send_raw(e,n){return this.exec("send_raw",[e,n])}list_configs(e){return this.exec("list_configs",[e])}load_config(e,n){return this.exec("load_config",[e,n])}save_config(e,n,t){return this.exec("save_config",[e,n,t])}delete_config(e,n){return this.exec("delete_config",[e,n])}enable_limits(e,n,t){return this.exec("enable_limits",[e,n,t])}disable_limits(e,n,t){return this.exec("disable_limits",[e,n,t])}get_out_of_limits(){return this.exec("get_out_of_limits",[])}get_overall_limits_state(e){return this.exec("get_overall_limits_state",[e])}list_settings(){return this.exec("list_settings",[])}get_all_settings(){return this.exec("get_all_settings",[])}get_setting(e){return this.exec("get_setting",[e])}get_settings(e){return this.exec("get_settings",e)}set_setting(e,n){return this.exec("set_setting",[e,n])}save_setting(e,n){return this.exec("save_setting",[e,n])}get_metrics(){return this.exec("get_metrics",[])}async hashString(e){if(window.isSecureContext){const n=(new TextEncoder).encode(e),t=await crypto.subtle.digest("SHA-256",n),i=new Uint8Array(t);return Array.from(i).map((e=>e.toString(16).padStart(2,"0"))).join("")}}}var A=function(){var e=this,n=e._self._c;return n("mounting-portal",{attrs:{"mount-to":"#openc3-menu",append:""}},[n("v-row",{attrs:{"no-gutters":""}},[n("v-col",{attrs:{"align-self":"end"}},[n("span",{staticClass:"app-title mr-2"},[e._v(e._s(e.title))])])],1),e._v(" "),n("v-row",{staticClass:"flex-nowrap",attrs:{dense:""}},e._l(e.menus,(function(t,i){return n("v-menu",{key:i,ref:"topmenu",refInFor:!0,attrs:{"offset-y":""},scopedSlots:e._u([{key:"activator",fn:function({on:i,attrs:l}){return[n("v-btn",e._g(e._b({staticClass:"mx-1 menu-button",attrs:{outlined:"","data-test":e.formatDT(`${e.title} ${t.label}`)}},"v-btn",l,!1),i),[n("span",{domProps:{textContent:e._s(t.label)}}),e._v(" "),n("v-icon",{staticClass:"myicon",attrs:{right:""}},[e._v(" mdi-menu-down ")])],1)]}}],null,!0)},[e._v(" "),n("v-list",[n("v-radio-group",{staticClass:"ma-0 pa-0",attrs:{value:t.radioGroup,"hide-details":"",dense:""}},[e._l(t.items,(function(i,l){return[i.divider?n("v-divider",{key:l}):i.subMenu&&i.subMenu.length>0?n("div",{key:l},[n("v-menu",{key:e.k,attrs:{"open-on-hover":"","offset-x":"",bottom:""},scopedSlots:e._u([{key:"activator",fn:function({on:t,attrs:o}){return[n("v-list-item",e._g(e._b({key:l,attrs:{disabled:i.disabled}},"v-list-item",o,!1),t),[i.icon?n("v-list-item-icon",[n("v-icon",{attrs:{disabled:i.disabled}},[e._v(e._s(i.icon))])],1):e._e(),e._v(" "),i.radio||i.checkbox?e._e():n("v-list-item-title",{style:"cursor: pointer;"+(i.disabled?"opacity: 0.2":"")},[e._v(e._s(i.label)+"\n ")]),e._v(" "),n("v-icon",[e._v(" mdi-chevron-right ")])],1)]}}],null,!0)},[e._v(" "),n("v-list",e._l(i.subMenu,(function(t,i){return n("v-list-item",{key:i,on:{click:function(n){return e.subMenuClick(t)}}},[t.icon?n("v-list-item-icon",[n("v-icon",[e._v(e._s(t.icon))])],1):e._e(),e._v(" "),n("v-list-item-title",[e._v(e._s(t.label))])],1)})),1)],1)],1):n("v-list-item",{key:l,attrs:{disabled:i.disabled,"data-test":e.formatDT(`${e.title} ${t.label} ${i.label}`)},on:{click:function(e){return i.command(i)}}},[i.radio?n("v-list-item-action",[n("v-radio",{attrs:{color:"secondary",label:i.label,value:i.label}})],1):e._e(),e._v(" "),i.checkbox?n("v-list-item-action",[n("v-checkbox",{attrs:{color:"secondary",label:i.label},model:{value:i.checked,callback:function(n){e.$set(i,"checked",n)},expression:"option.checked"}})],1):e._e(),e._v(" "),i.icon?n("v-list-item-icon",[n("v-icon",{attrs:{disabled:i.disabled}},[e._v(e._s(i.icon))])],1):e._e(),e._v(" "),i.radio||i.checkbox?e._e():n("v-list-item-title",{style:"cursor: pointer;"+(i.disabled?"opacity: 0.2":"")},[e._v(e._s(i.label))])],1)]}))],2)],1)],1)})),1)],1)},_=[];t(4293),t(8715);const p={props:{menus:{type:Array,default:function(){return[]}},title:{type:String,default:""}},methods:{formatDT:function(e){return e.replaceAll(" ","-").toLowerCase()},subMenuClick(e){e.command(e),this.$refs.topmenu[0].isActive=!1}},mounted(){document.title=this.title}},h=p;t(1e3);var v=t(2401),f=(0,v.A)(h,A,_,!1,null,"57d4fdd2",null);const g=f.exports;function b(){var e="/openc3/plugins/packages/openc3-cosmos-tool-handbooks/src/tools/Handbooks/Target.vue",n="875817da524c0a0ab55ccb0359f74c9d5f7cd1f9",t=new Function("return this")(),i="__coverage__",l={path:"/openc3/plugins/packages/openc3-cosmos-tool-handbooks/src/tools/Handbooks/Target.vue",statementMap:{0:{start:{line:1,column:13},end:{line:2,column:1}},1:{start:{line:1,column:39},end:{line:1,column:43}},2:{start:{line:1,column:47},end:{line:1,column:59}},3:{start:{line:1,column:60},end:{line:1,column:1033}},4:{start:{line:1,column:340},end:{line:1,column:609}},5:{start:{line:1,column:755},end:{line:1,column:1023}},6:{start:{line:3,column:22},end:{line:3,column:24}}},fnMap:{0:{name:"render",decl:{start:{line:1,column:22},end:{line:1,column:28}},loc:{start:{line:1,column:30},end:{line:2,column:1}},line:1},1:{name:"(anonymous_1)",decl:{start:{line:1,column:323},end:{line:1,column:324}},loc:{start:{line:1,column:339},end:{line:1,column:610}},line:1},2:{name:"(anonymous_2)",decl:{start:{line:1,column:738},end:{line:1,column:739}},loc:{start:{line:1,column:754},end:{line:1,column:1024}},line:1}},branchMap:{},s:{0:0,1:0,2:0,3:0,4:0,5:0,6:0},f:{0:0,1:0,2:0},b:{},_coverageSchema:"1a1c01bbd47fc00a2c39e90264f33305004495a9",hash:"875817da524c0a0ab55ccb0359f74c9d5f7cd1f9"},o=t[i]||(t[i]={});o[e]&&o[e].hash===n||(o[e]=l);var s=o[e];return b=function(){return s},s}b(),b().s[0]++;var C=function(){b().f[0]++;var e=(b().s[1]++,this),n=(b().s[2]++,e._self._c);return b().s[3]++,n("v-card",[n("v-container",{attrs:{id:e.target}},[n("div",{staticClass:"text-h3 text-center"},[e._v(e._s(e.target))]),e._v(" "),n("v-row",[n("v-col",{staticClass:"ml-3 text-h4"},[e._v("Commands")])],1),e._v(" "),e._l(e.commands,(function(t){return b().f[1]++,b().s[4]++,n("v-row",{key:t.packetName,staticClass:"mb-4",attrs:{dense:""}},[n("v-col",{attrs:{cols:12}},[n("packet",{attrs:{packet:t,columns:e.columns,hideIgnored:e.hideIgnored,hideDerived:e.hideDerived,ignored:e.ignoredParams}})],1)],1)})),e._v(" "),n("v-row",[n("v-col",{staticClass:"ml-3 text-h4"},[e._v("Telemetry")])],1),e._v(" "),e._l(e.telemetry,(function(t){return b().f[2]++,b().s[5]++,n("v-row",{key:t.packetName,staticClass:"mb-4",attrs:{dense:""}},[n("v-col",{attrs:{cols:12}},[n("packet",{attrs:{packet:t,columns:e.columns,hideIgnored:e.hideIgnored,hideDerived:e.hideDerived,ignored:e.ignoredItems}})],1)],1)}))],2)],1)},y=(b().s[6]++,[]);function k(){var e="/openc3/plugins/packages/openc3-cosmos-tool-handbooks/src/tools/Handbooks/Packet.vue",n="d75352c938082f89d78ccdaa5d29f3f5128a164d",t=new Function("return this")(),i="__coverage__",l={path:"/openc3/plugins/packages/openc3-cosmos-tool-handbooks/src/tools/Handbooks/Packet.vue",statementMap:{0:{start:{line:1,column:13},end:{line:2,column:1}},1:{start:{line:1,column:39},end:{line:1,column:43}},2:{start:{line:1,column:47},end:{line:1,column:59}},3:{start:{line:1,column:60},end:{line:1,column:626}},4:{start:{line:1,column:511},end:{line:1,column:609}},5:{start:{line:3,column:22},end:{line:3,column:24}}},fnMap:{0:{name:"render",decl:{start:{line:1,column:22},end:{line:1,column:28}},loc:{start:{line:1,column:30},end:{line:2,column:1}},line:1},1:{name:"(anonymous_1)",decl:{start:{line:1,column:496},end:{line:1,column:497}},loc:{start:{line:1,column:510},end:{line:1,column:610}},line:1}},branchMap:{},s:{0:0,1:0,2:0,3:0,4:0,5:0},f:{0:0,1:0},b:{},_coverageSchema:"1a1c01bbd47fc00a2c39e90264f33305004495a9",hash:"d75352c938082f89d78ccdaa5d29f3f5128a164d"},o=t[i]||(t[i]={});o[e]&&o[e].hash===n||(o[e]=l);var s=o[e];return k=function(){return s},s}k(),k().s[0]++;var x=function(){k().f[0]++;var e=(k().s[1]++,this),n=(k().s[2]++,e._self._c);return k().s[3]++,n("v-card",[n("v-card-title",{staticClass:"text-h4 justify-center"},[e._v(e._s(e.packet.target_name)+" "+e._s(e.packet.packet_name))]),e._v(" "),n("v-card-subtitle",[e._v(e._s(e.packet.description)+"\n "),n("div",{staticClass:"float-right"},[e._v(e._s(e.packet.endianness))])]),e._v(" "),n("v-card-text",[n("v-container",{attrs:{fluid:""}},[n("v-row",{attrs:{dense:""}},e._l(e.items,(function(t){return k().f[1]++,k().s[4]++,n("v-col",{key:t.name,attrs:{cols:e.columns}},[n("item",{attrs:{item:t}})],1)})),1)],1)],1)],1)},w=(k().s[5]++,[]);t(2082);function T(){var e="/openc3/plugins/packages/openc3-cosmos-tool-handbooks/src/tools/Handbooks/Item.vue",n="d655a8b5b0b40e7153d6beeb5186c868d3ca4bd1",t=new Function("return this")(),i="__coverage__",l={path:"/openc3/plugins/packages/openc3-cosmos-tool-handbooks/src/tools/Handbooks/Item.vue",statementMap:{0:{start:{line:1,column:13},end:{line:2,column:1}},1:{start:{line:1,column:39},end:{line:1,column:43}},2:{start:{line:1,column:47},end:{line:1,column:59}},3:{start:{line:1,column:60},end:{line:1,column:1476}},4:{start:{line:3,column:22},end:{line:3,column:24}}},fnMap:{0:{name:"render",decl:{start:{line:1,column:22},end:{line:1,column:28}},loc:{start:{line:1,column:30},end:{line:2,column:1}},line:1}},branchMap:{0:{loc:{start:{line:1,column:722},end:{line:1,column:841}},type:"cond-expr",locations:[{start:{line:1,column:759},end:{line:1,column:832}},{start:{line:1,column:833},end:{line:1,column:841}}],line:1},1:{loc:{start:{line:1,column:854},end:{line:1,column:973}},type:"cond-expr",locations:[{start:{line:1,column:891},end:{line:1,column:964}},{start:{line:1,column:965},end:{line:1,column:973}}],line:1},2:{loc:{start:{line:1,column:986},end:{line:1,column:1105}},type:"cond-expr",locations:[{start:{line:1,column:1023},end:{line:1,column:1096}},{start:{line:1,column:1097},end:{line:1,column:1105}}],line:1},3:{loc:{start:{line:1,column:1118},end:{line:1,column:1249}},type:"cond-expr",locations:[{start:{line:1,column:1138},end:{line:1,column:1240}},{start:{line:1,column:1241},end:{line:1,column:1249}}],line:1},4:{loc:{start:{line:1,column:1262},end:{line:1,column:1358}},type:"cond-expr",locations:[{start:{line:1,column:1283},end:{line:1,column:1349}},{start:{line:1,column:1350},end:{line:1,column:1358}}],line:1},5:{loc:{start:{line:1,column:1371},end:{line:1,column:1470}},type:"cond-expr",locations:[{start:{line:1,column:1393},end:{line:1,column:1461}},{start:{line:1,column:1462},end:{line:1,column:1470}}],line:1}},s:{0:0,1:0,2:0,3:0,4:0},f:{0:0},b:{0:[0,0],1:[0,0],2:[0,0],3:[0,0],4:[0,0],5:[0,0]},_coverageSchema:"1a1c01bbd47fc00a2c39e90264f33305004495a9",hash:"d655a8b5b0b40e7153d6beeb5186c868d3ca4bd1"},o=t[i]||(t[i]={});o[e]&&o[e].hash===n||(o[e]=l);var s=o[e];return T=function(){return s},s}T(),T().s[0]++;var I=function(){T().f[0]++;var e=(T().s[1]++,this),n=(T().s[2]++,e._self._c);return T().s[3]++,n("v-card",{staticClass:"mx-auto",attrs:{outlined:""}},[n("v-card-title",{staticClass:"justify-center"},[e._v("\n "+e._s(e.item.name)+"\n ")]),e._v(" "),n("v-card-subtitle",[e._v(e._s(e.item.description))]),e._v(" "),n("v-card-text",{staticClass:"text--primary"},[n("div",[e._v("Bit Offset: "+e._s(e.item.bit_offset))]),e._v(" "),n("div",[e._v("Bit Size: "+e._s(e.item.bit_size))]),e._v(" "),n("div",[e._v("Data Type: "+e._s(e.item.data_type))]),e._v(" "),n("div",[e._v("Endianness: "+e._s(e.item.endianness))]),e._v(" "),n("div",[e._v("Overflow: "+e._s(e.item.overflow))]),e._v(" "),Object.hasOwn(e.item,"minimum")?(T().b[0][0]++,n("div",[e._v("\n Minimum: "+e._s(e.item.minimum)+"\n ")])):(T().b[0][1]++,e._e()),e._v(" "),Object.hasOwn(e.item,"maximum")?(T().b[1][0]++,n("div",[e._v("\n Maximum: "+e._s(e.item.maximum)+"\n ")])):(T().b[1][1]++,e._e()),e._v(" "),Object.hasOwn(e.item,"default")?(T().b[2][0]++,n("div",[e._v("\n Default: "+e._s(e.item.default)+"\n ")])):(T().b[2][1]++,e._e()),e._v(" "),e.item.id_value?(T().b[3][0]++,n("div",[n("strong",[e._v("ID Value: 0x"+e._s(e.item.id_value.toString(16).toUpperCase()))])])):(T().b[3][1]++,e._e()),e._v(" "),e.readConversion?(T().b[4][0]++,n("div",[e._v("Read Conversion: "+e._s(e.readConversion))])):(T().b[4][1]++,e._e()),e._v(" "),e.writeConversion?(T().b[5][0]++,n("div",[e._v("Write Conversion: "+e._s(e.writeConversion))])):(T().b[5][1]++,e._e())])],1)},N=(T().s[4]++,[]);function O(){var e="/openc3/plugins/packages/openc3-cosmos-tool-handbooks/src/tools/Handbooks/Item.vue",n="3eacf9f0880ca482c09c818817276ba630f0cc4a",t=new Function("return this")(),i="__coverage__",l={path:"/openc3/plugins/packages/openc3-cosmos-tool-handbooks/src/tools/Handbooks/Item.vue",statementMap:{0:{start:{line:19,column:6},end:{line:27,column:7}},1:{start:{line:20,column:21},end:{line:20,column:57}},2:{start:{line:21,column:8},end:{line:23,column:9}},3:{start:{line:22,column:10},end:{line:22,column:74}},4:{start:{line:24,column:8},end:{line:24,column:21}},5:{start:{line:26,column:8},end:{line:26,column:20}},6:{start:{line:30,column:6},end:{line:38,column:7}},7:{start:{line:31,column:21},end:{line:31,column:58}},8:{start:{line:32,column:8},end:{line:34,column:9}},9:{start:{line:33,column:10},end:{line:33,column:75}},10:{start:{line:35,column:8},end:{line:35,column:21}},11:{start:{line:37,column:8},end:{line:37,column:20}}},fnMap:{0:{name:"(anonymous_0)",decl:{start:{line:18,column:4},end:{line:18,column:5}},loc:{start:{line:18,column:21},end:{line:28,column:5}},line:18},1:{name:"(anonymous_1)",decl:{start:{line:29,column:4},end:{line:29,column:5}},loc:{start:{line:29,column:22},end:{line:39,column:5}},line:29}},branchMap:{0:{loc:{start:{line:19,column:6},end:{line:27,column:7}},type:"if",locations:[{start:{line:19,column:6},end:{line:27,column:7}},{start:{line:25,column:13},end:{line:27,column:7}}],line:19},1:{loc:{start:{line:21,column:8},end:{line:23,column:9}},type:"if",locations:[{start:{line:21,column:8},end:{line:23,column:9}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:21},2:{loc:{start:{line:30,column:6},end:{line:38,column:7}},type:"if",locations:[{start:{line:30,column:6},end:{line:38,column:7}},{start:{line:36,column:13},end:{line:38,column:7}}],line:30},3:{loc:{start:{line:32,column:8},end:{line:34,column:9}},type:"if",locations:[{start:{line:32,column:8},end:{line:34,column:9}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:32}},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},f:{0:0,1:0},b:{0:[0,0],1:[0,0],2:[0,0],3:[0,0]},inputSourceMap:{version:3,sources:["Item.vue"],names:[],mappings:";AAuDA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;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:"Item.vue",sourceRoot:"src/tools/Handbooks",sourcesContent:['\x3c!--\n# Copyright 2022 Ball Aerospace & Technologies Corp.\n# All Rights Reserved.\n#\n# This program is free software; you can modify and/or redistribute it\n# under the terms of the GNU Affero General Public License\n# as published by the Free Software Foundation; version 3 with\n# attribution addendums as found in the LICENSE.txt\n#\n# This program is distributed in the hope that it will be useful,\n# but WITHOUT ANY WARRANTY; without even the implied warranty of\n# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n# GNU Affero General Public License for more details.\n\n# Modified by OpenC3, Inc.\n# All changes Copyright 2022, OpenC3, Inc.\n# All Rights Reserved\n#\n# This file may also be used under the terms of a commercial license\n# if purchased from OpenC3, Inc.\n--\x3e\n\n<template>\n <v-card class="mx-auto" outlined>\n <v-card-title class="justify-center">\n {{ item.name }}\n </v-card-title>\n <v-card-subtitle>{{ item.description }}</v-card-subtitle>\n <v-card-text class="text--primary">\n <div>Bit Offset: {{ item.bit_offset }}</div>\n <div>Bit Size: {{ item.bit_size }}</div>\n <div>Data Type: {{ item.data_type }}</div>\n <div>Endianness: {{ item.endianness }}</div>\n <div>Overflow: {{ item.overflow }}</div>\n <div v-if="Object.hasOwn(item, \'minimum\')">\n Minimum: {{ item.minimum }}\n </div>\n <div v-if="Object.hasOwn(item, \'maximum\')">\n Maximum: {{ item.maximum }}\n </div>\n <div v-if="Object.hasOwn(item, \'default\')">\n Default: {{ item.default }}\n </div>\n <div v-if="item.id_value">\n <strong\n >ID Value: 0x{{ item.id_value.toString(16).toUpperCase() }}</strong\n >\n </div>\n <div v-if="readConversion">Read Conversion: {{ readConversion }}</div>\n <div v-if="writeConversion">Write Conversion: {{ writeConversion }}</div>\n </v-card-text>\n </v-card>\n</template>\n\n<script>\nexport default {\n props: {\n item: {\n type: Object,\n required: true,\n },\n hideIgnored: {\n type: Boolean,\n required: true,\n },\n hideDerived: {\n type: Boolean,\n required: true,\n },\n },\n computed: {\n readConversion() {\n if (Object.hasOwn(this.item, \'read_conversion\')) {\n let result = `${this.item.read_conversion.class}`\n if (this.item.read_conversion.params) {\n result += ` with ${this.item.read_conversion.params.join(\', \')}`\n }\n return result\n } else {\n return false\n }\n },\n writeConversion() {\n if (Object.hasOwn(this.item, \'write_conversion\')) {\n let result = `${this.item.write_conversion.class}`\n if (this.item.write_conversion.params) {\n result += ` with ${this.item.write_conversion.params.join(\', \')}`\n }\n return result\n } else {\n return false\n }\n },\n },\n}\n<\/script>\n']},_coverageSchema:"1a1c01bbd47fc00a2c39e90264f33305004495a9",hash:"3eacf9f0880ca482c09c818817276ba630f0cc4a"},o=t[i]||(t[i]={});o[e]&&o[e].hash===n||(o[e]=l);var s=o[e];return O=function(){return s},s}O();const S={props:{item:{type:Object,required:!0},hideIgnored:{type:Boolean,required:!0},hideDerived:{type:Boolean,required:!0}},computed:{readConversion(){if(O().f[0]++,O().s[0]++,Object.hasOwn(this.item,"read_conversion")){O().b[0][0]++;let e=(O().s[1]++,`${this.item.read_conversion.class}`);return O().s[2]++,this.item.read_conversion.params?(O().b[1][0]++,O().s[3]++,e+=` with ${this.item.read_conversion.params.join(", ")}`):O().b[1][1]++,O().s[4]++,e}return O().b[0][1]++,O().s[5]++,!1},writeConversion(){if(O().f[1]++,O().s[6]++,Object.hasOwn(this.item,"write_conversion")){O().b[2][0]++;let e=(O().s[7]++,`${this.item.write_conversion.class}`);return O().s[8]++,this.item.write_conversion.params?(O().b[3][0]++,O().s[9]++,e+=` with ${this.item.write_conversion.params.join(", ")}`):O().b[3][1]++,O().s[10]++,e}return O().b[2][1]++,O().s[11]++,!1}}},R=S;var D=(0,v.A)(R,I,N,!1,null,null,null);const E=D.exports;function M(){var e="/openc3/plugins/packages/openc3-cosmos-tool-handbooks/src/tools/Handbooks/Packet.vue",n="f783a71a31f15f56a79241a37b41800f6626a7c7",t=new Function("return this")(),i="__coverage__",l={path:"/openc3/plugins/packages/openc3-cosmos-tool-handbooks/src/tools/Handbooks/Packet.vue",statementMap:{0:{start:{line:31,column:18},end:{line:31,column:35}},1:{start:{line:32,column:6},end:{line:34,column:7}},2:{start:{line:33,column:8},end:{line:33,column:73}},3:{start:{line:33,column:39},end:{line:33,column:72}},4:{start:{line:35,column:6},end:{line:37,column:7}},5:{start:{line:36,column:8},end:{line:36,column:68}},6:{start:{line:36,column:39},end:{line:36,column:67}},7:{start:{line:38,column:6},end:{line:38,column:18}}},fnMap:{0:{name:"(anonymous_0)",decl:{start:{line:30,column:4},end:{line:30,column:5}},loc:{start:{line:30,column:12},end:{line:39,column:5}},line:30},1:{name:"(anonymous_1)",decl:{start:{line:33,column:29},end:{line:33,column:30}},loc:{start:{line:33,column:39},end:{line:33,column:72}},line:33},2:{name:"(anonymous_2)",decl:{start:{line:36,column:29},end:{line:36,column:30}},loc:{start:{line:36,column:39},end:{line:36,column:67}},line:36}},branchMap:{0:{loc:{start:{line:32,column:6},end:{line:34,column:7}},type:"if",locations:[{start:{line:32,column:6},end:{line:34,column:7}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:32},1:{loc:{start:{line:35,column:6},end:{line:37,column:7}},type:"if",locations:[{start:{line:35,column:6},end:{line:37,column:7}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:35}},s:{0:0,1:0,2:0,3:0,4:0,5:0,6:0,7:0},f:{0:0,1:0,2:0},b:{0:[0,0],1:[0,0]},inputSourceMap:{version:3,sources:["Packet.vue"],names:[],mappings:";AA4CA;;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",file:"Packet.vue",sourceRoot:"src/tools/Handbooks",sourcesContent:['\x3c!--\n# Copyright 2022 Ball Aerospace & Technologies Corp.\n# All Rights Reserved.\n#\n# This program is free software; you can modify and/or redistribute it\n# under the terms of the GNU Affero General Public License\n# as published by the Free Software Foundation; version 3 with\n# attribution addendums as found in the LICENSE.txt\n#\n# This program is distributed in the hope that it will be useful,\n# but WITHOUT ANY WARRANTY; without even the implied warranty of\n# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n# GNU Affero General Public License for more details.\n\n# Modified by OpenC3, Inc.\n# All changes Copyright 2022, OpenC3, Inc.\n# All Rights Reserved\n#\n# This file may also be used under the terms of a commercial license \n# if purchased from OpenC3, Inc.\n--\x3e\n\n<template>\n <v-card>\n <v-card-title class="text-h4 justify-center"\n >{{ packet.target_name }} {{ packet.packet_name }}</v-card-title\n >\n <v-card-subtitle\n >{{ packet.description }}\n <div class="float-right">{{ packet.endianness }}</div>\n </v-card-subtitle>\n <v-card-text>\n <v-container fluid>\n <v-row dense>\n <v-col v-for="item in items" :key="item.name" :cols="columns">\n <item :item="item"></item>\n </v-col>\n </v-row>\n </v-container>\n </v-card-text>\n </v-card>\n</template>\n\n<script>\nimport Item from \'./Item\'\n\nexport default {\n components: {\n Item,\n },\n props: {\n packet: {\n type: Object,\n required: true,\n },\n columns: {\n type: Number,\n required: true,\n },\n hideIgnored: {\n type: Boolean,\n required: true,\n },\n hideDerived: {\n type: Boolean,\n required: true,\n },\n ignored: {\n type: Object,\n },\n },\n computed: {\n items() {\n let items = this.packet.items\n if (this.hideIgnored) {\n items = items.filter((item) => !this.ignored.includes(item.name))\n }\n if (this.hideDerived) {\n items = items.filter((item) => item.data_type !== \'DERIVED\')\n }\n return items\n },\n },\n}\n<\/script>\n']},_coverageSchema:"1a1c01bbd47fc00a2c39e90264f33305004495a9",hash:"f783a71a31f15f56a79241a37b41800f6626a7c7"},o=t[i]||(t[i]={});o[e]&&o[e].hash===n||(o[e]=l);var s=o[e];return M=function(){return s},s}M();const H={components:{Item:E},props:{packet:{type:Object,required:!0},columns:{type:Number,required:!0},hideIgnored:{type:Boolean,required:!0},hideDerived:{type:Boolean,required:!0},ignored:{type:Object}},computed:{items(){M().f[0]++;let e=(M().s[0]++,this.packet.items);return M().s[1]++,this.hideIgnored?(M().b[0][0]++,M().s[2]++,e=e.filter((e=>(M().f[1]++,M().s[3]++,!this.ignored.includes(e.name))))):M().b[0][1]++,M().s[4]++,this.hideDerived?(M().b[1][0]++,M().s[5]++,e=e.filter((e=>(M().f[2]++,M().s[6]++,"DERIVED"!==e.data_type)))):M().b[1][1]++,M().s[7]++,e}}},P=H;var j=(0,v.A)(P,x,w,!1,null,null,null);const F=j.exports;function B(){var e="/openc3/plugins/packages/openc3-cosmos-tool-handbooks/src/tools/Handbooks/Target.vue",n="0ae45f2219cf796a2d87bffd62f475f4a750b62d",t=new Function("return this")(),i="__coverage__",l={path:"/openc3/plugins/packages/openc3-cosmos-tool-handbooks/src/tools/Handbooks/Target.vue",statementMap:{0:{start:{line:28,column:4},end:{line:34,column:5}},1:{start:{line:38,column:4},end:{line:38,column:30}},2:{start:{line:39,column:4},end:{line:42,column:6}},3:{start:{line:40,column:6},end:{line:40,column:52}},4:{start:{line:41,column:6},end:{line:41,column:46}},5:{start:{line:44,column:4},end:{line:46,column:6}},6:{start:{line:45,column:6},end:{line:45,column:29}},7:{start:{line:47,column:4},end:{line:49,column:6}},8:{start:{line:48,column:6},end:{line:48,column:30}}},fnMap:{0:{name:"(anonymous_0)",decl:{start:{line:27,column:2},end:{line:27,column:3}},loc:{start:{line:27,column:9},end:{line:35,column:3}},line:27},1:{name:"(anonymous_1)",decl:{start:{line:37,column:2},end:{line:37,column:3}},loc:{start:{line:37,column:12},end:{line:50,column:3}},line:37},2:{name:"(anonymous_2)",decl:{start:{line:39,column:42},end:{line:39,column:43}},loc:{start:{line:39,column:54},end:{line:42,column:5}},line:39},3:{name:"(anonymous_3)",decl:{start:{line:44,column:44},end:{line:44,column:45}},loc:{start:{line:44,column:57},end:{line:46,column:5}},line:44},4:{name:"(anonymous_4)",decl:{start:{line:47,column:43},end:{line:47,column:44}},loc:{start:{line:47,column:56},end:{line:49,column:5}},line:47}},branchMap:{},s:{0:0,1:0,2:0,3:0,4:0,5:0,6:0,7:0,8:0},f:{0:0,1:0,2:0,3:0,4:0},b:{},inputSourceMap:{version:3,sources:["Target.vue"],names:[],mappings:";AAqEA;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;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA",file:"Target.vue",sourceRoot:"src/tools/Handbooks",sourcesContent:['\x3c!--\n# Copyright 2022 Ball Aerospace & Technologies Corp.\n# All Rights Reserved.\n#\n# This program is free software; you can modify and/or redistribute it\n# under the terms of the GNU Affero General Public License\n# as published by the Free Software Foundation; version 3 with\n# attribution addendums as found in the LICENSE.txt\n#\n# This program is distributed in the hope that it will be useful,\n# but WITHOUT ANY WARRANTY; without even the implied warranty of\n# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n# GNU Affero General Public License for more details.\n\n# Modified by OpenC3, Inc.\n# All changes Copyright 2022, OpenC3, Inc.\n# All Rights Reserved\n#\n# This file may also be used under the terms of a commercial license\n# if purchased from OpenC3, Inc.\n--\x3e\n\n<template>\n <v-card>\n <v-container :id="target">\n <div class="text-h3 text-center">{{ target }}</div>\n <v-row>\n <v-col class="ml-3 text-h4">Commands</v-col>\n </v-row>\n <v-row\n v-for="packet in commands"\n :key="packet.packetName"\n dense\n class="mb-4"\n >\n <v-col :cols="12">\n <packet\n :packet="packet"\n :columns="columns"\n :hideIgnored="hideIgnored"\n :hideDerived="hideDerived"\n :ignored="ignoredParams"\n ></packet>\n </v-col>\n </v-row>\n <v-row>\n <v-col class="ml-3 text-h4">Telemetry</v-col>\n </v-row>\n <v-row\n v-for="packet in telemetry"\n :key="packet.packetName"\n dense\n class="mb-4"\n >\n <v-col :cols="12">\n <packet\n :packet="packet"\n :columns="columns"\n :hideIgnored="hideIgnored"\n :hideDerived="hideDerived"\n :ignored="ignoredItems"\n ></packet>\n </v-col>\n </v-row>\n </v-container>\n </v-card>\n</template>\n\n<script>\nimport { OpenC3Api } from \'@openc3/tool-common/src/services/openc3-api\'\nimport Packet from \'./Packet\'\n\nexport default {\n components: {\n Packet,\n },\n props: {\n target: {\n type: String,\n required: true,\n },\n columns: {\n type: Number,\n required: true,\n },\n hideIgnored: {\n type: Boolean,\n required: true,\n },\n hideDerived: {\n type: Boolean,\n required: true,\n },\n },\n data() {\n return {\n api: null,\n commands: [],\n telemetry: [],\n ignoredParams: [],\n ignoredItems: [],\n }\n },\n\n created() {\n this.api = new OpenC3Api()\n this.api.get_target(this.target).then((target) => {\n this.ignoredParams = target.ignored_parameters\n this.ignoredItems = target.ignored_items\n })\n // TODO: Test with large DB as this returns ALL commands\n this.api.get_all_cmds(this.target).then((packets) => {\n this.commands = packets\n })\n this.api.get_all_tlm(this.target).then((packets) => {\n this.telemetry = packets\n })\n },\n}\n<\/script>\n']},_coverageSchema:"1a1c01bbd47fc00a2c39e90264f33305004495a9",hash:"0ae45f2219cf796a2d87bffd62f475f4a750b62d"},o=t[i]||(t[i]={});o[e]&&o[e].hash===n||(o[e]=l);var s=o[e];return B=function(){return s},s}B();const $={components:{Packet:F},props:{target:{type:String,required:!0},columns:{type:Number,required:!0},hideIgnored:{type:Boolean,required:!0},hideDerived:{type:Boolean,required:!0}},data(){return B().f[0]++,B().s[0]++,{api:null,commands:[],telemetry:[],ignoredParams:[],ignoredItems:[]}},created(){B().f[1]++,B().s[1]++,this.api=new u,B().s[2]++,this.api.get_target(this.target).then((e=>{B().f[2]++,B().s[3]++,this.ignoredParams=e.ignored_parameters,B().s[4]++,this.ignoredItems=e.ignored_items})),B().s[5]++,this.api.get_all_cmds(this.target).then((e=>{B().f[3]++,B().s[6]++,this.commands=e})),B().s[7]++,this.api.get_all_tlm(this.target).then((e=>{B().f[4]++,B().s[8]++,this.telemetry=e}))}},U=$;var q=(0,v.A)(U,C,y,!1,null,null,null);const L=q.exports;function G(){var e="/openc3/plugins/packages/openc3-cosmos-tool-handbooks/src/tools/Handbooks/Handbooks.vue",n="402b6aa52090d66f0201f2ff3cd0c515baeef5c6",t=new Function("return this")(),i="__coverage__",l={path:"/openc3/plugins/packages/openc3-cosmos-tool-handbooks/src/tools/Handbooks/Handbooks.vue",statementMap:{0:{start:{line:12,column:4},end:{line:50,column:5}},1:{start:{line:37,column:16},end:{line:37,column:52}},2:{start:{line:44,column:16},end:{line:44,column:52}},3:{start:{line:54,column:6},end:{line:54,column:72}},4:{start:{line:57,column:6},end:{line:57,column:76}},5:{start:{line:60,column:6},end:{line:60,column:57}},6:{start:{line:60,column:35},end:{line:60,column:57}},7:{start:{line:61,column:6},end:{line:61,column:58}},8:{start:{line:61,column:36},end:{line:61,column:58}},9:{start:{line:62,column:6},end:{line:62,column:41}},10:{start:{line:66,column:4},end:{line:66,column:30}},11:{start:{line:67,column:4},end:{line:71,column:8}},12:{start:{line:70,column:8},end:{line:70,column:34}},13:{start:{line:75,column:6},end:{line:81,column:8}},14:{start:{line:76,column:8},end:{line:80,column:9}},15:{start:{line:77,column:10},end:{line:77,column:39}},16:{start:{line:79,column:10},end:{line:79,column:61}}},fnMap:{0:{name:"(anonymous_0)",decl:{start:{line:11,column:2},end:{line:11,column:3}},loc:{start:{line:11,column:9},end:{line:51,column:3}},line:11},1:{name:"(anonymous_1)",decl:{start:{line:36,column:23},end:{line:36,column:24}},loc:{start:{line:36,column:29},end:{line:38,column:15}},line:36},2:{name:"(anonymous_2)",decl:{start:{line:43,column:23},end:{line:43,column:24}},loc:{start:{line:43,column:29},end:{line:45,column:15}},line:43},3:{name:"(anonymous_3)",decl:{start:{line:53,column:4},end:{line:53,column:5}},loc:{start:{line:53,column:25},end:{line:55,column:5}},line:53},4:{name:"(anonymous_4)",decl:{start:{line:56,column:4},end:{line:56,column:5}},loc:{start:{line:56,column:26},end:{line:58,column:5}},line:56},5:{name:"(anonymous_5)",decl:{start:{line:59,column:4},end:{line:59,column:5}},loc:{start:{line:59,column:11},end:{line:63,column:5}},line:59},6:{name:"(anonymous_6)",decl:{start:{line:65,column:2},end:{line:65,column:3}},loc:{start:{line:65,column:12},end:{line:72,column:3}},line:65},7:{name:"(anonymous_7)",decl:{start:{line:69,column:12},end:{line:69,column:13}},loc:{start:{line:69,column:25},end:{line:71,column:7}},line:69},8:{name:"(anonymous_8)",decl:{start:{line:74,column:4},end:{line:74,column:5}},loc:{start:{line:74,column:20},end:{line:82,column:5}},line:74},9:{name:"(anonymous_9)",decl:{start:{line:75,column:21},end:{line:75,column:22}},loc:{start:{line:75,column:27},end:{line:81,column:7}},line:75}},branchMap:{0:{loc:{start:{line:57,column:13},end:{line:57,column:76}},type:"binary-expr",locations:[{start:{line:57,column:13},end:{line:57,column:48}},{start:{line:57,column:52},end:{line:57,column:76}}],line:57},1:{loc:{start:{line:60,column:6},end:{line:60,column:57}},type:"if",locations:[{start:{line:60,column:6},end:{line:60,column:57}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:60},2:{loc:{start:{line:61,column:6},end:{line:61,column:58}},type:"if",locations:[{start:{line:61,column:6},end:{line:61,column:58}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:61},3:{loc:{start:{line:76,column:8},end:{line:80,column:9}},type:"if",locations:[{start:{line:76,column:8},end:{line:80,column:9}},{start:{line:78,column:15},end:{line:80,column:9}}],line:76}},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},f:{0:0,1:0,2:0,3:0,4:0,5:0,6:0,7:0,8:0,9:0},b:{0:[0,0],1:[0,0],2:[0,0],3:[0,0]},inputSourceMap:{version:3,sources:["Handbooks.vue"],names:[],mappings:";AAyFA;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",file:"Handbooks.vue",sourceRoot:"src/tools/Handbooks",sourcesContent:['\x3c!--\n# Copyright 2022 Ball Aerospace & Technologies Corp.\n# All Rights Reserved.\n#\n# This program is free software; you can modify and/or redistribute it\n# under the terms of the GNU Affero General Public License\n# as published by the Free Software Foundation; version 3 with\n# attribution addendums as found in the LICENSE.txt\n#\n# This program is distributed in the hope that it will be useful,\n# but WITHOUT ANY WARRANTY; without even the implied warranty of\n# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n# GNU Affero General Public License for more details.\n\n# Modified by OpenC3, Inc.\n# All changes Copyright 2023, OpenC3, Inc.\n# All Rights Reserved\n#\n# This file may also be used under the terms of a commercial license\n# if purchased from OpenC3, Inc.\n--\x3e\n\n<template>\n <div>\n <top-bar :menus="menus" :title="title" />\n <v-card>\n <v-container class="d-print-none">\n <v-row dense>\n <v-col>\n <v-select\n class="ma-0 pa-0"\n label="Select Target(s)"\n dense\n hide-details\n outlined\n :items="targetNames"\n v-model="selectedTargetNames"\n @change="targetSelect"\n multiple\n >\n <template v-slot:prepend-item>\n <v-list-item ripple @mousedown.prevent @click="toggleTargets">\n <v-list-item-action>\n <v-icon>\n {{ icon }}\n </v-icon>\n </v-list-item-action>\n <v-list-item-content>\n <v-list-item-title> Select All </v-list-item-title>\n </v-list-item-content>\n </v-list-item>\n <v-divider class="mt-2"></v-divider>\n </template>\n </v-select>\n </v-col>\n <v-col>\n <v-btn\n class="primary"\n @click="renderedTargetNames = selectedTargetNames"\n >\n Display\n </v-btn>\n </v-col>\n <v-col>\n <v-select\n label="Item Columns"\n dense\n hide-details\n outlined\n v-model="columns"\n :items="columnItems"\n ></v-select>\n </v-col>\n </v-row>\n </v-container>\n </v-card>\n <div style="height: 15px" />\n <div v-for="target in renderedTargetNames" :key="target">\n <target\n :target="target"\n :columns="columns"\n :hideIgnored="hideIgnored"\n :hideDerived="hideDerived"\n ></target>\n </div>\n </div>\n</template>\n\n<script>\nimport { OpenC3Api } from \'@openc3/tool-common/src/services/openc3-api\'\nimport TopBar from \'@openc3/tool-common/src/components/TopBar\'\nimport Target from \'./Target\'\n\nexport default {\n components: {\n TopBar,\n Target,\n },\n data() {\n return {\n title: \'Handbooks\',\n targetNames: [],\n selectedTargetNames: [],\n renderedTargetNames: [],\n api: null,\n columns: 3,\n columnItems: [\n { text: \'1\', value: 12 },\n { text: \'2\', value: 6 },\n { text: \'3\', value: 4 },\n { text: \'4\', value: 3 },\n { text: \'6\', value: 2 },\n { text: \'12\', value: 1 },\n ],\n hideIgnored: false,\n hideDerived: false,\n menus: [\n {\n label: \'View\',\n items: [\n {\n label: \'Hide Ignored Items\',\n checkbox: true,\n command: () => {\n this.hideIgnored = !this.hideIgnored\n },\n },\n {\n label: \'Hide Derived Items\',\n checkbox: true,\n command: () => {\n this.hideDerived = !this.hideDerived\n },\n },\n ],\n },\n ],\n }\n },\n computed: {\n allTargetsSelected() {\n return this.targetNames.length === this.selectedTargetNames.length\n },\n someTargetsSelected() {\n return this.selectedTargetNames.length > 0 && !this.allTargetsSelected\n },\n icon() {\n if (this.allTargetsSelected) return \'mdi-close-box\'\n if (this.someTargetsSelected) return \'mdi-minus-box\'\n return \'mdi-checkbox-blank-outline\'\n },\n },\n created() {\n this.api = new OpenC3Api()\n this.api\n .get_target_names({ params: { scope: window.openc3Scope } })\n .then((targets) => {\n this.targetNames = targets\n })\n },\n methods: {\n toggleTargets() {\n this.$nextTick(() => {\n if (this.allTargetsSelected) {\n this.selectedTargetNames = []\n } else {\n this.selectedTargetNames = this.targetNames.slice()\n }\n })\n },\n },\n}\n<\/script>\n']},_coverageSchema:"1a1c01bbd47fc00a2c39e90264f33305004495a9",hash:"402b6aa52090d66f0201f2ff3cd0c515baeef5c6"},o=t[i]||(t[i]={});o[e]&&o[e].hash===n||(o[e]=l);var s=o[e];return G=function(){return s},s}G();const z={components:{TopBar:g,Target:L},data(){return G().f[0]++,G().s[0]++,{title:"Handbooks",targetNames:[],selectedTargetNames:[],renderedTargetNames:[],api:null,columns:3,columnItems:[{text:"1",value:12},{text:"2",value:6},{text:"3",value:4},{text:"4",value:3},{text:"6",value:2},{text:"12",value:1}],hideIgnored:!1,hideDerived:!1,menus:[{label:"View",items:[{label:"Hide Ignored Items",checkbox:!0,command:()=>{G().f[1]++,G().s[1]++,this.hideIgnored=!this.hideIgnored}},{label:"Hide Derived Items",checkbox:!0,command:()=>{G().f[2]++,G().s[2]++,this.hideDerived=!this.hideDerived}}]}]}},computed:{allTargetsSelected(){return G().f[3]++,G().s[3]++,this.targetNames.length===this.selectedTargetNames.length},someTargetsSelected(){return G().f[4]++,G().s[4]++,G().b[0][0]++,this.selectedTargetNames.length>0&&(G().b[0][1]++,!this.allTargetsSelected)},icon(){return G().f[5]++,G().s[5]++,this.allTargetsSelected?(G().b[1][0]++,G().s[6]++,"mdi-close-box"):(G().b[1][1]++,G().s[7]++,this.someTargetsSelected?(G().b[2][0]++,G().s[8]++,"mdi-minus-box"):(G().b[2][1]++,G().s[9]++,"mdi-checkbox-blank-outline"))}},created(){G().f[6]++,G().s[10]++,this.api=new u,G().s[11]++,this.api.get_target_names({params:{scope:window.openc3Scope}}).then((e=>{G().f[7]++,G().s[12]++,this.targetNames=e}))},methods:{toggleTargets(){G().f[8]++,G().s[13]++,this.$nextTick((()=>{G().f[9]++,G().s[14]++,this.allTargetsSelected?(G().b[3][0]++,G().s[15]++,this.selectedTargetNames=[]):(G().b[3][1]++,G().s[16]++,this.selectedTargetNames=this.targetNames.slice())}))}}},V=z;var W=(0,v.A)(V,l,o,!1,null,null,null);const Y=W.exports},9808:(e,n,t)=>{"use strict";t.r(n),t.d(n,{default:()=>r});var i=t(6758),l=t.n(i),o=t(935),s=t.n(o),a=s()(l());a.push([e.id,".app-title[data-v-57d4fdd2]{font-size:2rem}.menu-button[data-v-57d4fdd2]{border-color:var(--color-border-interactive-muted)!important;background-color:var(--color-background-base-default)!important;padding-right:3px!important}span.v-btn__content span[data-v-57d4fdd2]{padding-right:5px}.myicon[data-v-57d4fdd2]{background-color:var(--color-background-surface-selected);border:1px solid currentColor;border-radius:3px;height:36px!important;width:36px!important}.v-list[data-v-57d4fdd2] .v-label{margin-left:5px}.v-list-item__icon[data-v-57d4fdd2]{margin-right:15px!important}.v-list-item__title[data-v-57d4fdd2]{color:#fff}",""]);const r=a},1e3:(e,n,t)=>{var i=t(9808);i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[e.id,i,""]]),i.locals&&(e.exports=i.locals);var l=t(4825).A;l("7de62207",i,!0,{sourceMap:!1,shadowMode:!1})}}]);
|
1
|
+
(self["webpackChunk_openc3_cosmos_tool_handbooks"]=self["webpackChunk_openc3_cosmos_tool_handbooks"]||[]).push([[662],{2662:(e,n,t)=>{"use strict";function i(){var e="/openc3/plugins/packages/openc3-cosmos-tool-handbooks/src/tools/Handbooks/Handbooks.vue",n="81570936c0a0bbd6fe3204546810d59181e3d563",t=new Function("return this")(),o="__coverage__",l={path:"/openc3/plugins/packages/openc3-cosmos-tool-handbooks/src/tools/Handbooks/Handbooks.vue",statementMap:{0:{start:{line:1,column:13},end:{line:2,column:1}},1:{start:{line:1,column:39},end:{line:1,column:43}},2:{start:{line:1,column:47},end:{line:1,column:59}},3:{start:{line:1,column:60},end:{line:1,column:1751}},4:{start:{line:1,column:494},end:{line:1,column:889}},5:{start:{line:1,column:573},end:{line:1,column:597}},6:{start:{line:1,column:969},end:{line:1,column:996}},7:{start:{line:1,column:1125},end:{line:1,column:1174}},8:{start:{line:1,column:1418},end:{line:1,column:1433}},9:{start:{line:1,column:1591},end:{line:1,column:1745}},10:{start:{line:3,column:22},end:{line:3,column:24}}},fnMap:{0:{name:"render",decl:{start:{line:1,column:22},end:{line:1,column:28}},loc:{start:{line:1,column:30},end:{line:2,column:1}},line:1},1:{name:"(anonymous_1)",decl:{start:{line:1,column:483},end:{line:1,column:484}},loc:{start:{line:1,column:493},end:{line:1,column:890}},line:1},2:{name:"(anonymous_2)",decl:{start:{line:1,column:556},end:{line:1,column:557}},loc:{start:{line:1,column:572},end:{line:1,column:598}},line:1},3:{name:"(anonymous_3)",decl:{start:{line:1,column:953},end:{line:1,column:954}},loc:{start:{line:1,column:968},end:{line:1,column:997}},line:1},4:{name:"(anonymous_4)",decl:{start:{line:1,column:1108},end:{line:1,column:1109}},loc:{start:{line:1,column:1124},end:{line:1,column:1175}},line:1},5:{name:"(anonymous_5)",decl:{start:{line:1,column:1402},end:{line:1,column:1403}},loc:{start:{line:1,column:1417},end:{line:1,column:1434}},line:1},6:{name:"(anonymous_6)",decl:{start:{line:1,column:1574},end:{line:1,column:1575}},loc:{start:{line:1,column:1590},end:{line:1,column:1746}},line:1}},branchMap:{},s:{0:0,1:0,2:0,3:0,4:0,5:0,6:0,7:0,8:0,9:0,10:0},f:{0:0,1:0,2:0,3:0,4:0,5:0,6:0},b:{},_coverageSchema:"1a1c01bbd47fc00a2c39e90264f33305004495a9",hash:"81570936c0a0bbd6fe3204546810d59181e3d563"},s=t[o]||(t[o]={});s[e]&&s[e].hash===n||(s[e]=l);var a=s[e];return i=function(){return a},a}t.r(n),t.d(n,{default:()=>Y}),i(),i().s[0]++;var o=function(){i().f[0]++;var e=(i().s[1]++,this),n=(i().s[2]++,e._self._c);return i().s[3]++,n("div",[n("top-bar",{attrs:{menus:e.menus,title:e.title}}),e._v(" "),n("v-card",[n("v-container",{staticClass:"d-print-none"},[n("v-row",{attrs:{dense:""}},[n("v-col",[n("v-select",{staticClass:"ma-0 pa-0",attrs:{label:"Select Target(s)",dense:"","hide-details":"",outlined:"",items:e.targetNames,multiple:""},on:{change:e.targetSelect},scopedSlots:e._u([{key:"prepend-item",fn:function(){return i().f[1]++,i().s[4]++,[n("v-list-item",{attrs:{ripple:""},on:{mousedown:function(e){i().f[2]++,i().s[5]++,e.preventDefault()},click:e.toggleTargets}},[n("v-list-item-action",[n("v-icon",[e._v("\n "+e._s(e.icon)+"\n ")])],1),e._v(" "),n("v-list-item-content",[n("v-list-item-title",[e._v(" Select All ")])],1)],1),e._v(" "),n("v-divider",{staticClass:"mt-2"})]},proxy:!0}]),model:{value:e.selectedTargetNames,callback:function(n){i().f[3]++,i().s[6]++,e.selectedTargetNames=n},expression:"selectedTargetNames"}})],1),e._v(" "),n("v-col",[n("v-btn",{staticClass:"primary",on:{click:function(n){i().f[4]++,i().s[7]++,e.renderedTargetNames=e.selectedTargetNames}}},[e._v("\n Display\n ")])],1),e._v(" "),n("v-col",[n("v-select",{attrs:{label:"Item Columns",dense:"","hide-details":"",outlined:"",items:e.columnItems},model:{value:e.columns,callback:function(n){i().f[5]++,i().s[8]++,e.columns=n},expression:"columns"}})],1)],1)],1)],1),e._v(" "),n("div",{staticStyle:{height:"15px"}}),e._v(" "),e._l(e.renderedTargetNames,(function(t){return i().f[6]++,i().s[9]++,n("div",{key:t},[n("target",{attrs:{target:t,columns:e.columns,hideIgnored:e.hideIgnored,hideDerived:e.hideDerived}})],1)}))],2)},l=(i().s[10]++,[]),s=t(814),a=(t(7107),t(2482),t(7067),t(4147),t(2682),t(785),t(8357),t(6196),t(821),t(6554),t(8472),t(7404),t(5803),t(3912),t(3816)),r=t(1649);const c=new r["default"],m=a.A.create({baseURL:location.origin,timeout:6e4,params:{}});m.interceptors.response.use((e=>e),(e=>{if(e.response){if(401===e.response.status&&OpenC3Auth.updateToken(OpenC3Auth.defaultMinValidity,!0).then((function(e){e&&OpenC3Auth.setTokens()})),e.response.config.headers["Ignore-Errors"]&&e.response.config.headers["Ignore-Errors"].includes(e.response.status.toString()))return Promise.reject(e);let n=`HTTP ${e.response.status} - `;throw e.response?.statusText&&(n+=`${e.response.statusText} `),e.response?.config?.data&&(n+=`${e.response.config.data} `),e.response?.data?.message?n+=`${e.response.data.message}`:e.response?.data?.exception?n+=`${e.response.data.exception}`:e.response?.data?.error?.message?(e.response.data.error.class&&(n+=`${e.response.data.error.class} `),n+=`${e.response.data.error.message}`):n+=`${e.response?.data}`,c.$notify&&c.$notify.serious({title:"Network error",body:n}),e}throw e}));const d=m;class u{constructor(){(0,s.A)(this,"id",1)}async exec(e,n,t={},i={},o=6e4){try{let e=await OpenC3Auth.updateToken(OpenC3Auth.defaultMinValidity);e&&OpenC3Auth.setTokens()}catch(s){OpenC3Auth.login()}this.id=this.id+1;try{t["scope"]=window.openc3Scope,i["manual"]=!0;const l=await d.post("/openc3-api/api",{jsonrpc:"2.0",method:e,params:n,id:this.id,keyword_params:t},{headers:{Authorization:localStorage.openc3Token,"Content-Type":"application/json-rpc",...i},timeout:o});return l.data.result}catch(s){var l=new Error;throw s.response?(l.name=s.response.data.error.data.class,l.message=s.response.data.error.data.message):s.request?(l.name="Request error",l.message="Request error, no response received"):l.name="Unknown error",l}}decode_openc3_type(e){if(null!==e&&"object"===typeof e&&"Float"==e.json_class&&e.raw){if("NaN"==e.raw)return NaN;if("Infinity"==e.raw)return 1/0;if("-Infinity"==e.raw)return-1/0}return null}encode_openc3_type(e){return Number.isNaN(e)?{json_class:"Float",raw:"NaN"}:e==Number.POSITIVE_INFINITY?{json_class:"Float",raw:"Infinity"}:e==Number.NEGATIVE_INFINITY?{json_class:"Float",raw:"-Infinity"}:null}ensure_offline_access(){this.offline_access_needed().then((e=>{e&&(localStorage.openc3OfflineToken?this.set_offline_access(localStorage.openc3OfflineToken).then((()=>{delete localStorage.openc3OfflineToken})):OpenC3Auth.getOfflineAccess())}))}offline_access_needed(){return this.exec("offline_access_needed",[])}set_offline_access(e){return this.exec("set_offline_access",[e])}get_all_interface_info(){return this.exec("get_all_interface_info",[])}map_target_to_interface(e,n){return this.exec("map_target_to_interface",[e,n])}connect_interface(e,...n){return n.length>0?this.exec("connect_interface",[e,...n]):this.exec("connect_interface",[e])}disconnect_interface(e){return this.exec("disconnect_interface",[e])}interface_cmd(e,n,...t){return this.exec("interface_cmd",[e,n,...t])}get_all_router_info(){return this.exec("get_all_router_info",[])}connect_router(e){return this.exec("connect_router",[e])}disconnect_router(e){return this.exec("disconnect_router",[e])}get_target_interfaces(){return this.exec("get_target_interfaces",[])}get_all_target_info(){return this.exec("get_all_target_info",[])}get_tlm_cnts(e){return this.exec("get_tlm_cnts",[e])}get_item(e,n,t){return this.exec("get_item",[e,n,t])}get_param(e,n,t){return this.exec("get_param",[e,n,t])}get_parameter(e,n,t){return this.exec("get_parameter",[e,n,t])}get_limits_sets(){return this.exec("get_limits_sets",[])}get_limits_set(){return this.exec("get_limits_set",[])}set_limits_set(e){return this.exec("set_limits_set",[e])}get_target(e){return this.exec("get_target",[e])}get_target_names(){return this.exec("get_target_names",[])}get_target_list(){return this.exec("get_target_list",[])}get_tlm(e,n){return this.exec("get_tlm",[e,n])}get_telemetry(e,n){return this.exec("get_telemetry",[e,n])}get_all_tlm(e){return this.exec("get_all_tlm",[e])}get_all_telemetry(e){return this.exec("get_all_telemetry",[e])}get_all_tlm_names(e){return this.exec("get_all_tlm_names",[e])}get_all_telemetry_names(e){return this.exec("get_all_telemetry_names",[e])}async get_tlm_packet(e,n,t,i=30){const o=await this.exec("get_tlm_packet",[e,n],{type:t,stale_time:i});if(null!=o)for(var l=o.length,s=null,a=0;a<l;a++)s=this.decode_openc3_type(o[a][1]),null!==s&&(o[a][1]=s);return o}get_packet_derived_items(e,n){return this.exec("get_packet_derived_items",[e,n])}get_tlm_buffer(e,n){return this.exec("get_tlm_buffer",[e,n])}async get_tlm_values(e,n=30,t=null){let i={stale_time:n};null!==t&&(i["cache_timeout"]=t);const o=await this.exec("get_tlm_values",[e],i,{},1e4);for(var l=o[0].length,s=null,a=0;a<l;a++)s=this.decode_openc3_type(o[0][a]),null!==s&&(o[0][a]=s);return o}get_limits(e,n,t){return this.exec("get_limits",[e,n,t])}async tlm(e,n,t,i="CONVERTED"){let o=null;if(void 0===n)o=await this.exec("tlm",[e]);else if(void 0===t){if(!["RAW","CONVERTED","FORMATTED","WITH_UNITS"].includes(n)){var l=new Error;throw l.name="TypeError",l.message=`Invalid data type ${n}. Valid options are RAW, CONVERTED, FORMATTED, and WITH_UNITS.`,l}o=await this.exec("tlm",[e],{type:n})}else o=await this.exec("tlm",[e,n,t],{type:i});var s=this.decode_openc3_type(o);return null!==s&&(o=s),o}async inject_tlm(e,n,t=null,i="CONVERTED"){data=await this.exec("inject_tlm",[e,n,t],{type:i})}set_tlm(e,n,t,i){return this.exec("set_tlm",[e,n,t],{type:i})}override_tlm(e,n,t,i){return this.exec("override_tlm",[e,n,t],{type:i})}get_overrides(){return this.exec("get_overrides")}normalize_tlm(e,n,t,i){return this.exec("normalize_tlm",[e,n,t],{type:i})}get_all_cmds(e){return this.exec("get_all_cmds",[e])}get_all_commands(e){return this.exec("get_all_commands",[e])}get_all_cmd_names(e){return this.exec("get_all_cmd_names",[e])}get_all_command_names(e){return this.exec("get_all_command_names",[e])}get_cmd(e,n){return this.exec("get_cmd",[e,n])}get_command(e,n){return this.exec("get_command",[e,n])}get_cmd_cnts(e){return this.exec("get_cmd_cnts",[e])}get_cmd_value(e,n,t,i="CONVERTED"){return this.exec("get_cmd_value",[e,n,t,i])}get_cmd_buffer(e,n){return this.exec("get_cmd_buffer",[e,n])}_cmd(e,n,t,i,o){var l=null;for(var s in i)Object.prototype.hasOwnProperty.call(i,s)&&(l=this.encode_openc3_type(i[s]),null!==l&&(i[s]=l));return this.exec(e,[n,t,i],{},o)}get_cmd_hazardous(e,n,t){return void 0===n?this.exec("get_cmd_hazardous",e):this._cmd("get_cmd_hazardous",e,n,t)}cmd(e,n,t,i={}){return void 0===n?this.exec("cmd",e,{},i):this._cmd("cmd",e,n,t,i)}cmd_no_range_check(e,n,t){return void 0===n?this.exec("cmd_no_range_check",e):this._cmd("cmd_no_range_check",e,n,t)}cmd_raw(e,n,t){return void 0===n?this.exec("cmd_raw",e):this._cmd("cmd_raw",e,n,t)}cmd_raw_no_range_check(e,n,t){return void 0===n?this.exec("cmd_raw_no_range_check",e):this._cmd("cmd_raw_no_range_check",e,n,t)}cmd_no_hazardous_check(e,n,t){return void 0===n?this.exec("cmd_no_hazardous_check",e):this._cmd("cmd_no_hazardous_check",e,n,t)}cmd_no_checks(e,n,t){return void 0===n?this.exec("cmd_no_checks",e):this._cmd("cmd_no_checks",e,n,t)}cmd_raw_no_hazardous_check(e,n,t){return void 0===n?this.exec("cmd_raw_no_hazardous_check",e):this._cmd("cmd_raw_no_hazardous_check",e,n,t)}cmd_raw_no_checks(e,n,t){return void 0===n?this.exec("cmd_raw_no_checks",e):this._cmd("cmd_raw_no_checks",e,n,t)}build_cmd(e,n,t){return void 0===n?this.exec("build_cmd",e):this._cmd("build_cmd",e,n,t)}build_command(e,n,t){return void 0===n?this.exec("build_command",e):this._cmd("build_command",e,n,t)}get_interface_names(){return this.exec("get_interface_names",[])}send_raw(e,n){return this.exec("send_raw",[e,n])}list_configs(e){return this.exec("list_configs",[e])}load_config(e,n){return this.exec("load_config",[e,n])}save_config(e,n,t){return this.exec("save_config",[e,n,t])}delete_config(e,n){return this.exec("delete_config",[e,n])}enable_limits(e,n,t){return this.exec("enable_limits",[e,n,t])}disable_limits(e,n,t){return this.exec("disable_limits",[e,n,t])}get_out_of_limits(){return this.exec("get_out_of_limits",[])}get_overall_limits_state(e){return this.exec("get_overall_limits_state",[e])}list_settings(){return this.exec("list_settings",[])}get_all_settings(){return this.exec("get_all_settings",[])}get_setting(e){return this.exec("get_setting",[e])}get_settings(e){return this.exec("get_settings",e)}set_setting(e,n){return this.exec("set_setting",[e,n])}save_setting(e,n){return this.exec("save_setting",[e,n])}get_metrics(){return this.exec("get_metrics",[])}async hashString(e){if(window.isSecureContext){const n=(new TextEncoder).encode(e),t=await crypto.subtle.digest("SHA-256",n),i=new Uint8Array(t);return Array.from(i).map((e=>e.toString(16).padStart(2,"0"))).join("")}}}var A=function(){var e=this,n=e._self._c;return n("mounting-portal",{attrs:{"mount-to":"#openc3-menu",append:""}},[n("v-row",{attrs:{"no-gutters":""}},[n("v-col",{attrs:{"align-self":"end"}},[n("span",{staticClass:"app-title mr-2"},[e._v(e._s(e.title))])])],1),e._v(" "),n("v-row",{staticClass:"flex-nowrap",attrs:{dense:""}},e._l(e.menus,(function(t,i){return n("v-menu",{key:i,ref:"topmenu",refInFor:!0,attrs:{"offset-y":""},scopedSlots:e._u([{key:"activator",fn:function({on:i,attrs:o}){return[n("v-btn",e._g(e._b({staticClass:"mx-1 menu-button",attrs:{outlined:"","data-test":e.formatDT(`${e.title} ${t.label}`)}},"v-btn",o,!1),i),[n("span",{domProps:{textContent:e._s(t.label)}}),e._v(" "),n("v-icon",{staticClass:"myicon",attrs:{right:""}},[e._v(" mdi-menu-down ")])],1)]}}],null,!0)},[e._v(" "),n("v-list",[n("v-radio-group",{staticClass:"ma-0 pa-0",attrs:{value:t.radioGroup,"hide-details":"",dense:""}},[e._l(t.items,(function(i,o){return[i.divider?n("v-divider",{key:o}):i.subMenu&&i.subMenu.length>0?n("div",{key:o},[n("v-menu",{key:e.k,attrs:{"open-on-hover":"","offset-x":"",bottom:""},scopedSlots:e._u([{key:"activator",fn:function({on:t,attrs:l}){return[n("v-list-item",e._g(e._b({key:o,attrs:{disabled:i.disabled}},"v-list-item",l,!1),t),[i.icon?n("v-list-item-icon",[n("v-icon",{attrs:{disabled:i.disabled}},[e._v(e._s(i.icon))])],1):e._e(),e._v(" "),i.radio||i.checkbox?e._e():n("v-list-item-title",{style:"cursor: pointer;"+(i.disabled?"opacity: 0.2":"")},[e._v(e._s(i.label)+"\n ")]),e._v(" "),n("v-icon",[e._v(" mdi-chevron-right ")])],1)]}}],null,!0)},[e._v(" "),n("v-list",e._l(i.subMenu,(function(t,i){return n("v-list-item",{key:i,on:{click:function(n){return e.subMenuClick(t)}}},[t.icon?n("v-list-item-icon",[n("v-icon",[e._v(e._s(t.icon))])],1):e._e(),e._v(" "),n("v-list-item-title",[e._v(e._s(t.label))])],1)})),1)],1)],1):n("v-list-item",{key:o,attrs:{disabled:i.disabled,"data-test":e.formatDT(`${e.title} ${t.label} ${i.label}`)},on:{click:function(e){return i.command(i)}}},[i.radio?n("v-list-item-action",[n("v-radio",{attrs:{color:"secondary",label:i.label,value:i.label}})],1):e._e(),e._v(" "),i.checkbox?n("v-list-item-action",[n("v-checkbox",{attrs:{color:"secondary",label:i.label},model:{value:i.checked,callback:function(n){e.$set(i,"checked",n)},expression:"option.checked"}})],1):e._e(),e._v(" "),i.icon?n("v-list-item-icon",[n("v-icon",{attrs:{disabled:i.disabled}},[e._v(e._s(i.icon))])],1):e._e(),e._v(" "),i.radio||i.checkbox?e._e():n("v-list-item-title",{style:"cursor: pointer;"+(i.disabled?"opacity: 0.2":"")},[e._v(e._s(i.label))])],1)]}))],2)],1)],1)})),1)],1)},_=[];t(4293),t(8715);const p={props:{menus:{type:Array,default:function(){return[]}},title:{type:String,default:""}},methods:{formatDT:function(e){return e.replaceAll(" ","-").toLowerCase()},subMenuClick(e){e.command(e),this.$refs.topmenu[0].isActive=!1}},mounted(){document.title=this.title}},h=p;t(1e3);var v=t(2401),f=(0,v.A)(h,A,_,!1,null,"57d4fdd2",null);const g=f.exports;function b(){var e="/openc3/plugins/packages/openc3-cosmos-tool-handbooks/src/tools/Handbooks/Target.vue",n="875817da524c0a0ab55ccb0359f74c9d5f7cd1f9",t=new Function("return this")(),i="__coverage__",o={path:"/openc3/plugins/packages/openc3-cosmos-tool-handbooks/src/tools/Handbooks/Target.vue",statementMap:{0:{start:{line:1,column:13},end:{line:2,column:1}},1:{start:{line:1,column:39},end:{line:1,column:43}},2:{start:{line:1,column:47},end:{line:1,column:59}},3:{start:{line:1,column:60},end:{line:1,column:1033}},4:{start:{line:1,column:340},end:{line:1,column:609}},5:{start:{line:1,column:755},end:{line:1,column:1023}},6:{start:{line:3,column:22},end:{line:3,column:24}}},fnMap:{0:{name:"render",decl:{start:{line:1,column:22},end:{line:1,column:28}},loc:{start:{line:1,column:30},end:{line:2,column:1}},line:1},1:{name:"(anonymous_1)",decl:{start:{line:1,column:323},end:{line:1,column:324}},loc:{start:{line:1,column:339},end:{line:1,column:610}},line:1},2:{name:"(anonymous_2)",decl:{start:{line:1,column:738},end:{line:1,column:739}},loc:{start:{line:1,column:754},end:{line:1,column:1024}},line:1}},branchMap:{},s:{0:0,1:0,2:0,3:0,4:0,5:0,6:0},f:{0:0,1:0,2:0},b:{},_coverageSchema:"1a1c01bbd47fc00a2c39e90264f33305004495a9",hash:"875817da524c0a0ab55ccb0359f74c9d5f7cd1f9"},l=t[i]||(t[i]={});l[e]&&l[e].hash===n||(l[e]=o);var s=l[e];return b=function(){return s},s}b(),b().s[0]++;var C=function(){b().f[0]++;var e=(b().s[1]++,this),n=(b().s[2]++,e._self._c);return b().s[3]++,n("v-card",[n("v-container",{attrs:{id:e.target}},[n("div",{staticClass:"text-h3 text-center"},[e._v(e._s(e.target))]),e._v(" "),n("v-row",[n("v-col",{staticClass:"ml-3 text-h4"},[e._v("Commands")])],1),e._v(" "),e._l(e.commands,(function(t){return b().f[1]++,b().s[4]++,n("v-row",{key:t.packetName,staticClass:"mb-4",attrs:{dense:""}},[n("v-col",{attrs:{cols:12}},[n("packet",{attrs:{packet:t,columns:e.columns,hideIgnored:e.hideIgnored,hideDerived:e.hideDerived,ignored:e.ignoredParams}})],1)],1)})),e._v(" "),n("v-row",[n("v-col",{staticClass:"ml-3 text-h4"},[e._v("Telemetry")])],1),e._v(" "),e._l(e.telemetry,(function(t){return b().f[2]++,b().s[5]++,n("v-row",{key:t.packetName,staticClass:"mb-4",attrs:{dense:""}},[n("v-col",{attrs:{cols:12}},[n("packet",{attrs:{packet:t,columns:e.columns,hideIgnored:e.hideIgnored,hideDerived:e.hideDerived,ignored:e.ignoredItems}})],1)],1)}))],2)],1)},y=(b().s[6]++,[]);function k(){var e="/openc3/plugins/packages/openc3-cosmos-tool-handbooks/src/tools/Handbooks/Packet.vue",n="d75352c938082f89d78ccdaa5d29f3f5128a164d",t=new Function("return this")(),i="__coverage__",o={path:"/openc3/plugins/packages/openc3-cosmos-tool-handbooks/src/tools/Handbooks/Packet.vue",statementMap:{0:{start:{line:1,column:13},end:{line:2,column:1}},1:{start:{line:1,column:39},end:{line:1,column:43}},2:{start:{line:1,column:47},end:{line:1,column:59}},3:{start:{line:1,column:60},end:{line:1,column:626}},4:{start:{line:1,column:511},end:{line:1,column:609}},5:{start:{line:3,column:22},end:{line:3,column:24}}},fnMap:{0:{name:"render",decl:{start:{line:1,column:22},end:{line:1,column:28}},loc:{start:{line:1,column:30},end:{line:2,column:1}},line:1},1:{name:"(anonymous_1)",decl:{start:{line:1,column:496},end:{line:1,column:497}},loc:{start:{line:1,column:510},end:{line:1,column:610}},line:1}},branchMap:{},s:{0:0,1:0,2:0,3:0,4:0,5:0},f:{0:0,1:0},b:{},_coverageSchema:"1a1c01bbd47fc00a2c39e90264f33305004495a9",hash:"d75352c938082f89d78ccdaa5d29f3f5128a164d"},l=t[i]||(t[i]={});l[e]&&l[e].hash===n||(l[e]=o);var s=l[e];return k=function(){return s},s}k(),k().s[0]++;var x=function(){k().f[0]++;var e=(k().s[1]++,this),n=(k().s[2]++,e._self._c);return k().s[3]++,n("v-card",[n("v-card-title",{staticClass:"text-h4 justify-center"},[e._v(e._s(e.packet.target_name)+" "+e._s(e.packet.packet_name))]),e._v(" "),n("v-card-subtitle",[e._v(e._s(e.packet.description)+"\n "),n("div",{staticClass:"float-right"},[e._v(e._s(e.packet.endianness))])]),e._v(" "),n("v-card-text",[n("v-container",{attrs:{fluid:""}},[n("v-row",{attrs:{dense:""}},e._l(e.items,(function(t){return k().f[1]++,k().s[4]++,n("v-col",{key:t.name,attrs:{cols:e.columns}},[n("item",{attrs:{item:t}})],1)})),1)],1)],1)],1)},w=(k().s[5]++,[]);t(2082);function T(){var e="/openc3/plugins/packages/openc3-cosmos-tool-handbooks/src/tools/Handbooks/Item.vue",n="d655a8b5b0b40e7153d6beeb5186c868d3ca4bd1",t=new Function("return this")(),i="__coverage__",o={path:"/openc3/plugins/packages/openc3-cosmos-tool-handbooks/src/tools/Handbooks/Item.vue",statementMap:{0:{start:{line:1,column:13},end:{line:2,column:1}},1:{start:{line:1,column:39},end:{line:1,column:43}},2:{start:{line:1,column:47},end:{line:1,column:59}},3:{start:{line:1,column:60},end:{line:1,column:1476}},4:{start:{line:3,column:22},end:{line:3,column:24}}},fnMap:{0:{name:"render",decl:{start:{line:1,column:22},end:{line:1,column:28}},loc:{start:{line:1,column:30},end:{line:2,column:1}},line:1}},branchMap:{0:{loc:{start:{line:1,column:722},end:{line:1,column:841}},type:"cond-expr",locations:[{start:{line:1,column:759},end:{line:1,column:832}},{start:{line:1,column:833},end:{line:1,column:841}}],line:1},1:{loc:{start:{line:1,column:854},end:{line:1,column:973}},type:"cond-expr",locations:[{start:{line:1,column:891},end:{line:1,column:964}},{start:{line:1,column:965},end:{line:1,column:973}}],line:1},2:{loc:{start:{line:1,column:986},end:{line:1,column:1105}},type:"cond-expr",locations:[{start:{line:1,column:1023},end:{line:1,column:1096}},{start:{line:1,column:1097},end:{line:1,column:1105}}],line:1},3:{loc:{start:{line:1,column:1118},end:{line:1,column:1249}},type:"cond-expr",locations:[{start:{line:1,column:1138},end:{line:1,column:1240}},{start:{line:1,column:1241},end:{line:1,column:1249}}],line:1},4:{loc:{start:{line:1,column:1262},end:{line:1,column:1358}},type:"cond-expr",locations:[{start:{line:1,column:1283},end:{line:1,column:1349}},{start:{line:1,column:1350},end:{line:1,column:1358}}],line:1},5:{loc:{start:{line:1,column:1371},end:{line:1,column:1470}},type:"cond-expr",locations:[{start:{line:1,column:1393},end:{line:1,column:1461}},{start:{line:1,column:1462},end:{line:1,column:1470}}],line:1}},s:{0:0,1:0,2:0,3:0,4:0},f:{0:0},b:{0:[0,0],1:[0,0],2:[0,0],3:[0,0],4:[0,0],5:[0,0]},_coverageSchema:"1a1c01bbd47fc00a2c39e90264f33305004495a9",hash:"d655a8b5b0b40e7153d6beeb5186c868d3ca4bd1"},l=t[i]||(t[i]={});l[e]&&l[e].hash===n||(l[e]=o);var s=l[e];return T=function(){return s},s}T(),T().s[0]++;var I=function(){T().f[0]++;var e=(T().s[1]++,this),n=(T().s[2]++,e._self._c);return T().s[3]++,n("v-card",{staticClass:"mx-auto",attrs:{outlined:""}},[n("v-card-title",{staticClass:"justify-center"},[e._v("\n "+e._s(e.item.name)+"\n ")]),e._v(" "),n("v-card-subtitle",[e._v(e._s(e.item.description))]),e._v(" "),n("v-card-text",{staticClass:"text--primary"},[n("div",[e._v("Bit Offset: "+e._s(e.item.bit_offset))]),e._v(" "),n("div",[e._v("Bit Size: "+e._s(e.item.bit_size))]),e._v(" "),n("div",[e._v("Data Type: "+e._s(e.item.data_type))]),e._v(" "),n("div",[e._v("Endianness: "+e._s(e.item.endianness))]),e._v(" "),n("div",[e._v("Overflow: "+e._s(e.item.overflow))]),e._v(" "),Object.hasOwn(e.item,"minimum")?(T().b[0][0]++,n("div",[e._v("\n Minimum: "+e._s(e.item.minimum)+"\n ")])):(T().b[0][1]++,e._e()),e._v(" "),Object.hasOwn(e.item,"maximum")?(T().b[1][0]++,n("div",[e._v("\n Maximum: "+e._s(e.item.maximum)+"\n ")])):(T().b[1][1]++,e._e()),e._v(" "),Object.hasOwn(e.item,"default")?(T().b[2][0]++,n("div",[e._v("\n Default: "+e._s(e.item.default)+"\n ")])):(T().b[2][1]++,e._e()),e._v(" "),e.item.id_value?(T().b[3][0]++,n("div",[n("strong",[e._v("ID Value: 0x"+e._s(e.item.id_value.toString(16).toUpperCase()))])])):(T().b[3][1]++,e._e()),e._v(" "),e.readConversion?(T().b[4][0]++,n("div",[e._v("Read Conversion: "+e._s(e.readConversion))])):(T().b[4][1]++,e._e()),e._v(" "),e.writeConversion?(T().b[5][0]++,n("div",[e._v("Write Conversion: "+e._s(e.writeConversion))])):(T().b[5][1]++,e._e())])],1)},N=(T().s[4]++,[]);function O(){var e="/openc3/plugins/packages/openc3-cosmos-tool-handbooks/src/tools/Handbooks/Item.vue",n="3eacf9f0880ca482c09c818817276ba630f0cc4a",t=new Function("return this")(),i="__coverage__",o={path:"/openc3/plugins/packages/openc3-cosmos-tool-handbooks/src/tools/Handbooks/Item.vue",statementMap:{0:{start:{line:19,column:6},end:{line:27,column:7}},1:{start:{line:20,column:21},end:{line:20,column:57}},2:{start:{line:21,column:8},end:{line:23,column:9}},3:{start:{line:22,column:10},end:{line:22,column:74}},4:{start:{line:24,column:8},end:{line:24,column:21}},5:{start:{line:26,column:8},end:{line:26,column:20}},6:{start:{line:30,column:6},end:{line:38,column:7}},7:{start:{line:31,column:21},end:{line:31,column:58}},8:{start:{line:32,column:8},end:{line:34,column:9}},9:{start:{line:33,column:10},end:{line:33,column:75}},10:{start:{line:35,column:8},end:{line:35,column:21}},11:{start:{line:37,column:8},end:{line:37,column:20}}},fnMap:{0:{name:"(anonymous_0)",decl:{start:{line:18,column:4},end:{line:18,column:5}},loc:{start:{line:18,column:21},end:{line:28,column:5}},line:18},1:{name:"(anonymous_1)",decl:{start:{line:29,column:4},end:{line:29,column:5}},loc:{start:{line:29,column:22},end:{line:39,column:5}},line:29}},branchMap:{0:{loc:{start:{line:19,column:6},end:{line:27,column:7}},type:"if",locations:[{start:{line:19,column:6},end:{line:27,column:7}},{start:{line:25,column:13},end:{line:27,column:7}}],line:19},1:{loc:{start:{line:21,column:8},end:{line:23,column:9}},type:"if",locations:[{start:{line:21,column:8},end:{line:23,column:9}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:21},2:{loc:{start:{line:30,column:6},end:{line:38,column:7}},type:"if",locations:[{start:{line:30,column:6},end:{line:38,column:7}},{start:{line:36,column:13},end:{line:38,column:7}}],line:30},3:{loc:{start:{line:32,column:8},end:{line:34,column:9}},type:"if",locations:[{start:{line:32,column:8},end:{line:34,column:9}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:32}},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},f:{0:0,1:0},b:{0:[0,0],1:[0,0],2:[0,0],3:[0,0]},inputSourceMap:{version:3,sources:["Item.vue"],names:[],mappings:";AAuDA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;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:"Item.vue",sourceRoot:"src/tools/Handbooks",sourcesContent:['\x3c!--\n# Copyright 2022 Ball Aerospace & Technologies Corp.\n# All Rights Reserved.\n#\n# This program is free software; you can modify and/or redistribute it\n# under the terms of the GNU Affero General Public License\n# as published by the Free Software Foundation; version 3 with\n# attribution addendums as found in the LICENSE.txt\n#\n# This program is distributed in the hope that it will be useful,\n# but WITHOUT ANY WARRANTY; without even the implied warranty of\n# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n# GNU Affero General Public License for more details.\n\n# Modified by OpenC3, Inc.\n# All changes Copyright 2022, OpenC3, Inc.\n# All Rights Reserved\n#\n# This file may also be used under the terms of a commercial license\n# if purchased from OpenC3, Inc.\n--\x3e\n\n<template>\n <v-card class="mx-auto" outlined>\n <v-card-title class="justify-center">\n {{ item.name }}\n </v-card-title>\n <v-card-subtitle>{{ item.description }}</v-card-subtitle>\n <v-card-text class="text--primary">\n <div>Bit Offset: {{ item.bit_offset }}</div>\n <div>Bit Size: {{ item.bit_size }}</div>\n <div>Data Type: {{ item.data_type }}</div>\n <div>Endianness: {{ item.endianness }}</div>\n <div>Overflow: {{ item.overflow }}</div>\n <div v-if="Object.hasOwn(item, \'minimum\')">\n Minimum: {{ item.minimum }}\n </div>\n <div v-if="Object.hasOwn(item, \'maximum\')">\n Maximum: {{ item.maximum }}\n </div>\n <div v-if="Object.hasOwn(item, \'default\')">\n Default: {{ item.default }}\n </div>\n <div v-if="item.id_value">\n <strong\n >ID Value: 0x{{ item.id_value.toString(16).toUpperCase() }}</strong\n >\n </div>\n <div v-if="readConversion">Read Conversion: {{ readConversion }}</div>\n <div v-if="writeConversion">Write Conversion: {{ writeConversion }}</div>\n </v-card-text>\n </v-card>\n</template>\n\n<script>\nexport default {\n props: {\n item: {\n type: Object,\n required: true,\n },\n hideIgnored: {\n type: Boolean,\n required: true,\n },\n hideDerived: {\n type: Boolean,\n required: true,\n },\n },\n computed: {\n readConversion() {\n if (Object.hasOwn(this.item, \'read_conversion\')) {\n let result = `${this.item.read_conversion.class}`\n if (this.item.read_conversion.params) {\n result += ` with ${this.item.read_conversion.params.join(\', \')}`\n }\n return result\n } else {\n return false\n }\n },\n writeConversion() {\n if (Object.hasOwn(this.item, \'write_conversion\')) {\n let result = `${this.item.write_conversion.class}`\n if (this.item.write_conversion.params) {\n result += ` with ${this.item.write_conversion.params.join(\', \')}`\n }\n return result\n } else {\n return false\n }\n },\n },\n}\n<\/script>\n']},_coverageSchema:"1a1c01bbd47fc00a2c39e90264f33305004495a9",hash:"3eacf9f0880ca482c09c818817276ba630f0cc4a"},l=t[i]||(t[i]={});l[e]&&l[e].hash===n||(l[e]=o);var s=l[e];return O=function(){return s},s}O();const S={props:{item:{type:Object,required:!0},hideIgnored:{type:Boolean,required:!0},hideDerived:{type:Boolean,required:!0}},computed:{readConversion(){if(O().f[0]++,O().s[0]++,Object.hasOwn(this.item,"read_conversion")){O().b[0][0]++;let e=(O().s[1]++,`${this.item.read_conversion.class}`);return O().s[2]++,this.item.read_conversion.params?(O().b[1][0]++,O().s[3]++,e+=` with ${this.item.read_conversion.params.join(", ")}`):O().b[1][1]++,O().s[4]++,e}return O().b[0][1]++,O().s[5]++,!1},writeConversion(){if(O().f[1]++,O().s[6]++,Object.hasOwn(this.item,"write_conversion")){O().b[2][0]++;let e=(O().s[7]++,`${this.item.write_conversion.class}`);return O().s[8]++,this.item.write_conversion.params?(O().b[3][0]++,O().s[9]++,e+=` with ${this.item.write_conversion.params.join(", ")}`):O().b[3][1]++,O().s[10]++,e}return O().b[2][1]++,O().s[11]++,!1}}},R=S;var D=(0,v.A)(R,I,N,!1,null,null,null);const E=D.exports;function M(){var e="/openc3/plugins/packages/openc3-cosmos-tool-handbooks/src/tools/Handbooks/Packet.vue",n="f783a71a31f15f56a79241a37b41800f6626a7c7",t=new Function("return this")(),i="__coverage__",o={path:"/openc3/plugins/packages/openc3-cosmos-tool-handbooks/src/tools/Handbooks/Packet.vue",statementMap:{0:{start:{line:31,column:18},end:{line:31,column:35}},1:{start:{line:32,column:6},end:{line:34,column:7}},2:{start:{line:33,column:8},end:{line:33,column:73}},3:{start:{line:33,column:39},end:{line:33,column:72}},4:{start:{line:35,column:6},end:{line:37,column:7}},5:{start:{line:36,column:8},end:{line:36,column:68}},6:{start:{line:36,column:39},end:{line:36,column:67}},7:{start:{line:38,column:6},end:{line:38,column:18}}},fnMap:{0:{name:"(anonymous_0)",decl:{start:{line:30,column:4},end:{line:30,column:5}},loc:{start:{line:30,column:12},end:{line:39,column:5}},line:30},1:{name:"(anonymous_1)",decl:{start:{line:33,column:29},end:{line:33,column:30}},loc:{start:{line:33,column:39},end:{line:33,column:72}},line:33},2:{name:"(anonymous_2)",decl:{start:{line:36,column:29},end:{line:36,column:30}},loc:{start:{line:36,column:39},end:{line:36,column:67}},line:36}},branchMap:{0:{loc:{start:{line:32,column:6},end:{line:34,column:7}},type:"if",locations:[{start:{line:32,column:6},end:{line:34,column:7}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:32},1:{loc:{start:{line:35,column:6},end:{line:37,column:7}},type:"if",locations:[{start:{line:35,column:6},end:{line:37,column:7}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:35}},s:{0:0,1:0,2:0,3:0,4:0,5:0,6:0,7:0},f:{0:0,1:0,2:0},b:{0:[0,0],1:[0,0]},inputSourceMap:{version:3,sources:["Packet.vue"],names:[],mappings:";AA4CA;;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",file:"Packet.vue",sourceRoot:"src/tools/Handbooks",sourcesContent:['\x3c!--\n# Copyright 2022 Ball Aerospace & Technologies Corp.\n# All Rights Reserved.\n#\n# This program is free software; you can modify and/or redistribute it\n# under the terms of the GNU Affero General Public License\n# as published by the Free Software Foundation; version 3 with\n# attribution addendums as found in the LICENSE.txt\n#\n# This program is distributed in the hope that it will be useful,\n# but WITHOUT ANY WARRANTY; without even the implied warranty of\n# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n# GNU Affero General Public License for more details.\n\n# Modified by OpenC3, Inc.\n# All changes Copyright 2022, OpenC3, Inc.\n# All Rights Reserved\n#\n# This file may also be used under the terms of a commercial license \n# if purchased from OpenC3, Inc.\n--\x3e\n\n<template>\n <v-card>\n <v-card-title class="text-h4 justify-center"\n >{{ packet.target_name }} {{ packet.packet_name }}</v-card-title\n >\n <v-card-subtitle\n >{{ packet.description }}\n <div class="float-right">{{ packet.endianness }}</div>\n </v-card-subtitle>\n <v-card-text>\n <v-container fluid>\n <v-row dense>\n <v-col v-for="item in items" :key="item.name" :cols="columns">\n <item :item="item"></item>\n </v-col>\n </v-row>\n </v-container>\n </v-card-text>\n </v-card>\n</template>\n\n<script>\nimport Item from \'./Item\'\n\nexport default {\n components: {\n Item,\n },\n props: {\n packet: {\n type: Object,\n required: true,\n },\n columns: {\n type: Number,\n required: true,\n },\n hideIgnored: {\n type: Boolean,\n required: true,\n },\n hideDerived: {\n type: Boolean,\n required: true,\n },\n ignored: {\n type: Object,\n },\n },\n computed: {\n items() {\n let items = this.packet.items\n if (this.hideIgnored) {\n items = items.filter((item) => !this.ignored.includes(item.name))\n }\n if (this.hideDerived) {\n items = items.filter((item) => item.data_type !== \'DERIVED\')\n }\n return items\n },\n },\n}\n<\/script>\n']},_coverageSchema:"1a1c01bbd47fc00a2c39e90264f33305004495a9",hash:"f783a71a31f15f56a79241a37b41800f6626a7c7"},l=t[i]||(t[i]={});l[e]&&l[e].hash===n||(l[e]=o);var s=l[e];return M=function(){return s},s}M();const H={components:{Item:E},props:{packet:{type:Object,required:!0},columns:{type:Number,required:!0},hideIgnored:{type:Boolean,required:!0},hideDerived:{type:Boolean,required:!0},ignored:{type:Object}},computed:{items(){M().f[0]++;let e=(M().s[0]++,this.packet.items);return M().s[1]++,this.hideIgnored?(M().b[0][0]++,M().s[2]++,e=e.filter((e=>(M().f[1]++,M().s[3]++,!this.ignored.includes(e.name))))):M().b[0][1]++,M().s[4]++,this.hideDerived?(M().b[1][0]++,M().s[5]++,e=e.filter((e=>(M().f[2]++,M().s[6]++,"DERIVED"!==e.data_type)))):M().b[1][1]++,M().s[7]++,e}}},P=H;var j=(0,v.A)(P,x,w,!1,null,null,null);const F=j.exports;function B(){var e="/openc3/plugins/packages/openc3-cosmos-tool-handbooks/src/tools/Handbooks/Target.vue",n="0ae45f2219cf796a2d87bffd62f475f4a750b62d",t=new Function("return this")(),i="__coverage__",o={path:"/openc3/plugins/packages/openc3-cosmos-tool-handbooks/src/tools/Handbooks/Target.vue",statementMap:{0:{start:{line:28,column:4},end:{line:34,column:5}},1:{start:{line:38,column:4},end:{line:38,column:30}},2:{start:{line:39,column:4},end:{line:42,column:6}},3:{start:{line:40,column:6},end:{line:40,column:52}},4:{start:{line:41,column:6},end:{line:41,column:46}},5:{start:{line:44,column:4},end:{line:46,column:6}},6:{start:{line:45,column:6},end:{line:45,column:29}},7:{start:{line:47,column:4},end:{line:49,column:6}},8:{start:{line:48,column:6},end:{line:48,column:30}}},fnMap:{0:{name:"(anonymous_0)",decl:{start:{line:27,column:2},end:{line:27,column:3}},loc:{start:{line:27,column:9},end:{line:35,column:3}},line:27},1:{name:"(anonymous_1)",decl:{start:{line:37,column:2},end:{line:37,column:3}},loc:{start:{line:37,column:12},end:{line:50,column:3}},line:37},2:{name:"(anonymous_2)",decl:{start:{line:39,column:42},end:{line:39,column:43}},loc:{start:{line:39,column:54},end:{line:42,column:5}},line:39},3:{name:"(anonymous_3)",decl:{start:{line:44,column:44},end:{line:44,column:45}},loc:{start:{line:44,column:57},end:{line:46,column:5}},line:44},4:{name:"(anonymous_4)",decl:{start:{line:47,column:43},end:{line:47,column:44}},loc:{start:{line:47,column:56},end:{line:49,column:5}},line:47}},branchMap:{},s:{0:0,1:0,2:0,3:0,4:0,5:0,6:0,7:0,8:0},f:{0:0,1:0,2:0,3:0,4:0},b:{},inputSourceMap:{version:3,sources:["Target.vue"],names:[],mappings:";AAqEA;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;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA",file:"Target.vue",sourceRoot:"src/tools/Handbooks",sourcesContent:['\x3c!--\n# Copyright 2022 Ball Aerospace & Technologies Corp.\n# All Rights Reserved.\n#\n# This program is free software; you can modify and/or redistribute it\n# under the terms of the GNU Affero General Public License\n# as published by the Free Software Foundation; version 3 with\n# attribution addendums as found in the LICENSE.txt\n#\n# This program is distributed in the hope that it will be useful,\n# but WITHOUT ANY WARRANTY; without even the implied warranty of\n# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n# GNU Affero General Public License for more details.\n\n# Modified by OpenC3, Inc.\n# All changes Copyright 2022, OpenC3, Inc.\n# All Rights Reserved\n#\n# This file may also be used under the terms of a commercial license\n# if purchased from OpenC3, Inc.\n--\x3e\n\n<template>\n <v-card>\n <v-container :id="target">\n <div class="text-h3 text-center">{{ target }}</div>\n <v-row>\n <v-col class="ml-3 text-h4">Commands</v-col>\n </v-row>\n <v-row\n v-for="packet in commands"\n :key="packet.packetName"\n dense\n class="mb-4"\n >\n <v-col :cols="12">\n <packet\n :packet="packet"\n :columns="columns"\n :hideIgnored="hideIgnored"\n :hideDerived="hideDerived"\n :ignored="ignoredParams"\n ></packet>\n </v-col>\n </v-row>\n <v-row>\n <v-col class="ml-3 text-h4">Telemetry</v-col>\n </v-row>\n <v-row\n v-for="packet in telemetry"\n :key="packet.packetName"\n dense\n class="mb-4"\n >\n <v-col :cols="12">\n <packet\n :packet="packet"\n :columns="columns"\n :hideIgnored="hideIgnored"\n :hideDerived="hideDerived"\n :ignored="ignoredItems"\n ></packet>\n </v-col>\n </v-row>\n </v-container>\n </v-card>\n</template>\n\n<script>\nimport { OpenC3Api } from \'@openc3/tool-common/src/services/openc3-api\'\nimport Packet from \'./Packet\'\n\nexport default {\n components: {\n Packet,\n },\n props: {\n target: {\n type: String,\n required: true,\n },\n columns: {\n type: Number,\n required: true,\n },\n hideIgnored: {\n type: Boolean,\n required: true,\n },\n hideDerived: {\n type: Boolean,\n required: true,\n },\n },\n data() {\n return {\n api: null,\n commands: [],\n telemetry: [],\n ignoredParams: [],\n ignoredItems: [],\n }\n },\n\n created() {\n this.api = new OpenC3Api()\n this.api.get_target(this.target).then((target) => {\n this.ignoredParams = target.ignored_parameters\n this.ignoredItems = target.ignored_items\n })\n // TODO: Test with large DB as this returns ALL commands\n this.api.get_all_cmds(this.target).then((packets) => {\n this.commands = packets\n })\n this.api.get_all_tlm(this.target).then((packets) => {\n this.telemetry = packets\n })\n },\n}\n<\/script>\n']},_coverageSchema:"1a1c01bbd47fc00a2c39e90264f33305004495a9",hash:"0ae45f2219cf796a2d87bffd62f475f4a750b62d"},l=t[i]||(t[i]={});l[e]&&l[e].hash===n||(l[e]=o);var s=l[e];return B=function(){return s},s}B();const $={components:{Packet:F},props:{target:{type:String,required:!0},columns:{type:Number,required:!0},hideIgnored:{type:Boolean,required:!0},hideDerived:{type:Boolean,required:!0}},data(){return B().f[0]++,B().s[0]++,{api:null,commands:[],telemetry:[],ignoredParams:[],ignoredItems:[]}},created(){B().f[1]++,B().s[1]++,this.api=new u,B().s[2]++,this.api.get_target(this.target).then((e=>{B().f[2]++,B().s[3]++,this.ignoredParams=e.ignored_parameters,B().s[4]++,this.ignoredItems=e.ignored_items})),B().s[5]++,this.api.get_all_cmds(this.target).then((e=>{B().f[3]++,B().s[6]++,this.commands=e})),B().s[7]++,this.api.get_all_tlm(this.target).then((e=>{B().f[4]++,B().s[8]++,this.telemetry=e}))}},U=$;var q=(0,v.A)(U,C,y,!1,null,null,null);const L=q.exports;function G(){var e="/openc3/plugins/packages/openc3-cosmos-tool-handbooks/src/tools/Handbooks/Handbooks.vue",n="402b6aa52090d66f0201f2ff3cd0c515baeef5c6",t=new Function("return this")(),i="__coverage__",o={path:"/openc3/plugins/packages/openc3-cosmos-tool-handbooks/src/tools/Handbooks/Handbooks.vue",statementMap:{0:{start:{line:12,column:4},end:{line:50,column:5}},1:{start:{line:37,column:16},end:{line:37,column:52}},2:{start:{line:44,column:16},end:{line:44,column:52}},3:{start:{line:54,column:6},end:{line:54,column:72}},4:{start:{line:57,column:6},end:{line:57,column:76}},5:{start:{line:60,column:6},end:{line:60,column:57}},6:{start:{line:60,column:35},end:{line:60,column:57}},7:{start:{line:61,column:6},end:{line:61,column:58}},8:{start:{line:61,column:36},end:{line:61,column:58}},9:{start:{line:62,column:6},end:{line:62,column:41}},10:{start:{line:66,column:4},end:{line:66,column:30}},11:{start:{line:67,column:4},end:{line:71,column:8}},12:{start:{line:70,column:8},end:{line:70,column:34}},13:{start:{line:75,column:6},end:{line:81,column:8}},14:{start:{line:76,column:8},end:{line:80,column:9}},15:{start:{line:77,column:10},end:{line:77,column:39}},16:{start:{line:79,column:10},end:{line:79,column:61}}},fnMap:{0:{name:"(anonymous_0)",decl:{start:{line:11,column:2},end:{line:11,column:3}},loc:{start:{line:11,column:9},end:{line:51,column:3}},line:11},1:{name:"(anonymous_1)",decl:{start:{line:36,column:23},end:{line:36,column:24}},loc:{start:{line:36,column:29},end:{line:38,column:15}},line:36},2:{name:"(anonymous_2)",decl:{start:{line:43,column:23},end:{line:43,column:24}},loc:{start:{line:43,column:29},end:{line:45,column:15}},line:43},3:{name:"(anonymous_3)",decl:{start:{line:53,column:4},end:{line:53,column:5}},loc:{start:{line:53,column:25},end:{line:55,column:5}},line:53},4:{name:"(anonymous_4)",decl:{start:{line:56,column:4},end:{line:56,column:5}},loc:{start:{line:56,column:26},end:{line:58,column:5}},line:56},5:{name:"(anonymous_5)",decl:{start:{line:59,column:4},end:{line:59,column:5}},loc:{start:{line:59,column:11},end:{line:63,column:5}},line:59},6:{name:"(anonymous_6)",decl:{start:{line:65,column:2},end:{line:65,column:3}},loc:{start:{line:65,column:12},end:{line:72,column:3}},line:65},7:{name:"(anonymous_7)",decl:{start:{line:69,column:12},end:{line:69,column:13}},loc:{start:{line:69,column:25},end:{line:71,column:7}},line:69},8:{name:"(anonymous_8)",decl:{start:{line:74,column:4},end:{line:74,column:5}},loc:{start:{line:74,column:20},end:{line:82,column:5}},line:74},9:{name:"(anonymous_9)",decl:{start:{line:75,column:21},end:{line:75,column:22}},loc:{start:{line:75,column:27},end:{line:81,column:7}},line:75}},branchMap:{0:{loc:{start:{line:57,column:13},end:{line:57,column:76}},type:"binary-expr",locations:[{start:{line:57,column:13},end:{line:57,column:48}},{start:{line:57,column:52},end:{line:57,column:76}}],line:57},1:{loc:{start:{line:60,column:6},end:{line:60,column:57}},type:"if",locations:[{start:{line:60,column:6},end:{line:60,column:57}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:60},2:{loc:{start:{line:61,column:6},end:{line:61,column:58}},type:"if",locations:[{start:{line:61,column:6},end:{line:61,column:58}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:61},3:{loc:{start:{line:76,column:8},end:{line:80,column:9}},type:"if",locations:[{start:{line:76,column:8},end:{line:80,column:9}},{start:{line:78,column:15},end:{line:80,column:9}}],line:76}},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},f:{0:0,1:0,2:0,3:0,4:0,5:0,6:0,7:0,8:0,9:0},b:{0:[0,0],1:[0,0],2:[0,0],3:[0,0]},inputSourceMap:{version:3,sources:["Handbooks.vue"],names:[],mappings:";AAyFA;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",file:"Handbooks.vue",sourceRoot:"src/tools/Handbooks",sourcesContent:['\x3c!--\n# Copyright 2022 Ball Aerospace & Technologies Corp.\n# All Rights Reserved.\n#\n# This program is free software; you can modify and/or redistribute it\n# under the terms of the GNU Affero General Public License\n# as published by the Free Software Foundation; version 3 with\n# attribution addendums as found in the LICENSE.txt\n#\n# This program is distributed in the hope that it will be useful,\n# but WITHOUT ANY WARRANTY; without even the implied warranty of\n# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n# GNU Affero General Public License for more details.\n\n# Modified by OpenC3, Inc.\n# All changes Copyright 2023, OpenC3, Inc.\n# All Rights Reserved\n#\n# This file may also be used under the terms of a commercial license\n# if purchased from OpenC3, Inc.\n--\x3e\n\n<template>\n <div>\n <top-bar :menus="menus" :title="title" />\n <v-card>\n <v-container class="d-print-none">\n <v-row dense>\n <v-col>\n <v-select\n class="ma-0 pa-0"\n label="Select Target(s)"\n dense\n hide-details\n outlined\n :items="targetNames"\n v-model="selectedTargetNames"\n @change="targetSelect"\n multiple\n >\n <template v-slot:prepend-item>\n <v-list-item ripple @mousedown.prevent @click="toggleTargets">\n <v-list-item-action>\n <v-icon>\n {{ icon }}\n </v-icon>\n </v-list-item-action>\n <v-list-item-content>\n <v-list-item-title> Select All </v-list-item-title>\n </v-list-item-content>\n </v-list-item>\n <v-divider class="mt-2"></v-divider>\n </template>\n </v-select>\n </v-col>\n <v-col>\n <v-btn\n class="primary"\n @click="renderedTargetNames = selectedTargetNames"\n >\n Display\n </v-btn>\n </v-col>\n <v-col>\n <v-select\n label="Item Columns"\n dense\n hide-details\n outlined\n v-model="columns"\n :items="columnItems"\n ></v-select>\n </v-col>\n </v-row>\n </v-container>\n </v-card>\n <div style="height: 15px" />\n <div v-for="target in renderedTargetNames" :key="target">\n <target\n :target="target"\n :columns="columns"\n :hideIgnored="hideIgnored"\n :hideDerived="hideDerived"\n ></target>\n </div>\n </div>\n</template>\n\n<script>\nimport { OpenC3Api } from \'@openc3/tool-common/src/services/openc3-api\'\nimport TopBar from \'@openc3/tool-common/src/components/TopBar\'\nimport Target from \'./Target\'\n\nexport default {\n components: {\n TopBar,\n Target,\n },\n data() {\n return {\n title: \'Handbooks\',\n targetNames: [],\n selectedTargetNames: [],\n renderedTargetNames: [],\n api: null,\n columns: 3,\n columnItems: [\n { text: \'1\', value: 12 },\n { text: \'2\', value: 6 },\n { text: \'3\', value: 4 },\n { text: \'4\', value: 3 },\n { text: \'6\', value: 2 },\n { text: \'12\', value: 1 },\n ],\n hideIgnored: false,\n hideDerived: false,\n menus: [\n {\n label: \'View\',\n items: [\n {\n label: \'Hide Ignored Items\',\n checkbox: true,\n command: () => {\n this.hideIgnored = !this.hideIgnored\n },\n },\n {\n label: \'Hide Derived Items\',\n checkbox: true,\n command: () => {\n this.hideDerived = !this.hideDerived\n },\n },\n ],\n },\n ],\n }\n },\n computed: {\n allTargetsSelected() {\n return this.targetNames.length === this.selectedTargetNames.length\n },\n someTargetsSelected() {\n return this.selectedTargetNames.length > 0 && !this.allTargetsSelected\n },\n icon() {\n if (this.allTargetsSelected) return \'mdi-close-box\'\n if (this.someTargetsSelected) return \'mdi-minus-box\'\n return \'mdi-checkbox-blank-outline\'\n },\n },\n created() {\n this.api = new OpenC3Api()\n this.api\n .get_target_names({ params: { scope: window.openc3Scope } })\n .then((targets) => {\n this.targetNames = targets\n })\n },\n methods: {\n toggleTargets() {\n this.$nextTick(() => {\n if (this.allTargetsSelected) {\n this.selectedTargetNames = []\n } else {\n this.selectedTargetNames = this.targetNames.slice()\n }\n })\n },\n },\n}\n<\/script>\n']},_coverageSchema:"1a1c01bbd47fc00a2c39e90264f33305004495a9",hash:"402b6aa52090d66f0201f2ff3cd0c515baeef5c6"},l=t[i]||(t[i]={});l[e]&&l[e].hash===n||(l[e]=o);var s=l[e];return G=function(){return s},s}G();const z={components:{TopBar:g,Target:L},data(){return G().f[0]++,G().s[0]++,{title:"Handbooks",targetNames:[],selectedTargetNames:[],renderedTargetNames:[],api:null,columns:3,columnItems:[{text:"1",value:12},{text:"2",value:6},{text:"3",value:4},{text:"4",value:3},{text:"6",value:2},{text:"12",value:1}],hideIgnored:!1,hideDerived:!1,menus:[{label:"View",items:[{label:"Hide Ignored Items",checkbox:!0,command:()=>{G().f[1]++,G().s[1]++,this.hideIgnored=!this.hideIgnored}},{label:"Hide Derived Items",checkbox:!0,command:()=>{G().f[2]++,G().s[2]++,this.hideDerived=!this.hideDerived}}]}]}},computed:{allTargetsSelected(){return G().f[3]++,G().s[3]++,this.targetNames.length===this.selectedTargetNames.length},someTargetsSelected(){return G().f[4]++,G().s[4]++,G().b[0][0]++,this.selectedTargetNames.length>0&&(G().b[0][1]++,!this.allTargetsSelected)},icon(){return G().f[5]++,G().s[5]++,this.allTargetsSelected?(G().b[1][0]++,G().s[6]++,"mdi-close-box"):(G().b[1][1]++,G().s[7]++,this.someTargetsSelected?(G().b[2][0]++,G().s[8]++,"mdi-minus-box"):(G().b[2][1]++,G().s[9]++,"mdi-checkbox-blank-outline"))}},created(){G().f[6]++,G().s[10]++,this.api=new u,G().s[11]++,this.api.get_target_names({params:{scope:window.openc3Scope}}).then((e=>{G().f[7]++,G().s[12]++,this.targetNames=e}))},methods:{toggleTargets(){G().f[8]++,G().s[13]++,this.$nextTick((()=>{G().f[9]++,G().s[14]++,this.allTargetsSelected?(G().b[3][0]++,G().s[15]++,this.selectedTargetNames=[]):(G().b[3][1]++,G().s[16]++,this.selectedTargetNames=this.targetNames.slice())}))}}},V=z;var W=(0,v.A)(V,o,l,!1,null,null,null);const Y=W.exports},9808:(e,n,t)=>{"use strict";t.r(n),t.d(n,{default:()=>r});var i=t(6758),o=t.n(i),l=t(935),s=t.n(l),a=s()(o());a.push([e.id,".app-title[data-v-57d4fdd2]{font-size:2rem}.menu-button[data-v-57d4fdd2]{border-color:var(--color-border-interactive-muted)!important;background-color:var(--color-background-base-default)!important;padding-right:3px!important}span.v-btn__content span[data-v-57d4fdd2]{padding-right:5px}.myicon[data-v-57d4fdd2]{background-color:var(--color-background-surface-selected);border:1px solid currentColor;border-radius:3px;height:36px!important;width:36px!important}.v-list[data-v-57d4fdd2] .v-label{margin-left:5px}.v-list-item__icon[data-v-57d4fdd2]{margin-right:15px!important}.v-list-item__title[data-v-57d4fdd2]{color:#fff}",""]);const r=a},1e3:(e,n,t)=>{var i=t(9808);i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[e.id,i,""]]),i.locals&&(e.exports=i.locals);var o=t(4825).A;o("7de62207",i,!0,{sourceMap:!1,shadowMode:!1})}}]);
|
2
2
|
//# sourceMappingURL=662.js.map
|