openc3-cosmos-tool-dataviewer 5.9.0 → 5.9.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 0f2f4071799efab658575aadabf69db39a6dfe094501935d19e358b5c7d03bb8
4
- data.tar.gz: cbfd3c42374e1f6739d6622a91280998a7c76a587a67e8e3a2b8d9d6a96adccc
3
+ metadata.gz: 2453cd94c7ef11bfdc389a4c33dcf2aafd48508fb5efcccae4ddba4e510e73ec
4
+ data.tar.gz: a916d4348685338939e243dd83efafd799f768eefa105af7d0049a6a2d13d4fd
5
5
  SHA512:
6
- metadata.gz: 30d2a293e98644b0d2a6326c72fe49c77f2f64619f61c3eece56f57d19e3e30dfc6a7d0f5fac20323d6d719ea8c2f96025965aa7b3cee6d187efdaf8194f9dc5
7
- data.tar.gz: 16b25e6ddb32a22be60cf1578af518cd37e4501431ac9fb108f44b8206af68cf0cf8ba4bdd5ca3563a0bb0265e6b7d61312ae8aed75f453bb6edac960d8de96d
6
+ metadata.gz: f397f3953b65561b21a72a9c9e4ff39b1c86e3bb2c3b413b04f18cf6dfd0d1ff2fd8c36522add3fdc3fb375592381cceaa110394dc1b291dd894d662baf900e2
7
+ data.tar.gz: 0be784011237f0b887fcbc5f5b1c95a91b243fee7360aabd9185387b51c3a10c524700cf00696ee0ec0490fd97bdee9c01ff92e30148f9f826c11b487722e9b9
@@ -0,0 +1,2 @@
1
+ (self["webpackChunk_openc3_cosmos_tool_dataviewer"]=self["webpackChunk_openc3_cosmos_tool_dataviewer"]||[]).push([[629],{1629:function(e,n,t){"use strict";function o(){var e="/openc3/plugins/packages/openc3-cosmos-tool-dataviewer/src/tools/DataViewer/DataViewer.vue",n="8e3ef9fc338cbc7c2e75d3176bd3eeb6afc7fdbb",t=new Function("return this")(),l="__coverage__",i={path:"/openc3/plugins/packages/openc3-cosmos-tool-dataviewer/src/tools/DataViewer/DataViewer.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:5868}},4:{start:{line:1,column:383},end:{line:1,column:400}},5:{start:{line:1,column:625},end:{line:1,column:642}},6:{start:{line:1,column:869},end:{line:1,column:884}},7:{start:{line:1,column:1120},end:{line:1,column:1135}},8:{start:{line:1,column:1831},end:{line:1,column:1846}},9:{start:{line:1,column:2018},end:{line:1,column:2031}},10:{start:{line:1,column:2194},end:{line:1,column:2219}},11:{start:{line:1,column:2386},end:{line:1,column:2400}},12:{start:{line:1,column:2470},end:{line:1,column:2620}},13:{start:{line:1,column:2554},end:{line:1,column:2579}},14:{start:{line:1,column:2898},end:{line:1,column:2912}},15:{start:{line:1,column:2981},end:{line:1,column:3721}},16:{start:{line:1,column:3293},end:{line:1,column:3319}},17:{start:{line:1,column:3550},end:{line:1,column:3569}},18:{start:{line:1,column:4076},end:{line:1,column:4094}},19:{start:{line:1,column:4300},end:{line:1,column:4318}},20:{start:{line:1,column:4451},end:{line:1,column:4472}},21:{start:{line:1,column:4767},end:{line:1,column:4785}},22:{start:{line:1,column:5315},end:{line:1,column:5334}},23:{start:{line:1,column:5785},end:{line:1,column:5815}},24:{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:367},end:{line:1,column:368}},loc:{start:{line:1,column:382},end:{line:1,column:401}},line:1},2:{name:"(anonymous_2)",decl:{start:{line:1,column:609},end:{line:1,column:610}},loc:{start:{line:1,column:624},end:{line:1,column:643}},line:1},3:{name:"(anonymous_3)",decl:{start:{line:1,column:853},end:{line:1,column:854}},loc:{start:{line:1,column:868},end:{line:1,column:885}},line:1},4:{name:"(anonymous_4)",decl:{start:{line:1,column:1104},end:{line:1,column:1105}},loc:{start:{line:1,column:1119},end:{line:1,column:1136}},line:1},5:{name:"(anonymous_5)",decl:{start:{line:1,column:1815},end:{line:1,column:1816}},loc:{start:{line:1,column:1830},end:{line:1,column:1847}},line:1},6:{name:"(anonymous_6)",decl:{start:{line:1,column:2002},end:{line:1,column:2003}},loc:{start:{line:1,column:2017},end:{line:1,column:2032}},line:1},7:{name:"(anonymous_7)",decl:{start:{line:1,column:2178},end:{line:1,column:2179}},loc:{start:{line:1,column:2193},end:{line:1,column:2220}},line:1},8:{name:"(anonymous_8)",decl:{start:{line:1,column:2370},end:{line:1,column:2371}},loc:{start:{line:1,column:2385},end:{line:1,column:2401}},line:1},9:{name:"(anonymous_9)",decl:{start:{line:1,column:2450},end:{line:1,column:2451}},loc:{start:{line:1,column:2469},end:{line:1,column:2621}},line:1},10:{name:"(anonymous_10)",decl:{start:{line:1,column:2543},end:{line:1,column:2544}},loc:{start:{line:1,column:2554},end:{line:1,column:2579}},line:1},11:{name:"(anonymous_11)",decl:{start:{line:1,column:2882},end:{line:1,column:2883}},loc:{start:{line:1,column:2897},end:{line:1,column:2913}},line:1},12:{name:"(anonymous_12)",decl:{start:{line:1,column:2961},end:{line:1,column:2962}},loc:{start:{line:1,column:2980},end:{line:1,column:3722}},line:1},13:{name:"(anonymous_13)",decl:{start:{line:1,column:3287},end:{line:1,column:3288}},loc:{start:{line:1,column:3293},end:{line:1,column:3319}},line:1},14:{name:"(anonymous_14)",decl:{start:{line:1,column:3537},end:{line:1,column:3538}},loc:{start:{line:1,column:3550},end:{line:1,column:3569}},line:1},15:{name:"(anonymous_15)",decl:{start:{line:1,column:4060},end:{line:1,column:4061}},loc:{start:{line:1,column:4075},end:{line:1,column:4095}},line:1},16:{name:"(anonymous_16)",decl:{start:{line:1,column:4284},end:{line:1,column:4285}},loc:{start:{line:1,column:4299},end:{line:1,column:4319}},line:1},17:{name:"(anonymous_17)",decl:{start:{line:1,column:4435},end:{line:1,column:4436}},loc:{start:{line:1,column:4450},end:{line:1,column:4473}},line:1},18:{name:"(anonymous_18)",decl:{start:{line:1,column:4751},end:{line:1,column:4752}},loc:{start:{line:1,column:4766},end:{line:1,column:4786}},line:1},19:{name:"(anonymous_19)",decl:{start:{line:1,column:5299},end:{line:1,column:5300}},loc:{start:{line:1,column:5314},end:{line:1,column:5335}},line:1},20:{name:"(anonymous_20)",decl:{start:{line:1,column:5769},end:{line:1,column:5770}},loc:{start:{line:1,column:5784},end:{line:1,column:5816}},line:1}},branchMap:{0:{loc:{start:{line:1,column:753},end:{line:1,column:792}},type:"cond-expr",locations:[{start:{line:1,column:767},end:{line:1,column:787}},{start:{line:1,column:790},end:{line:1,column:792}}],line:1},1:{loc:{start:{line:1,column:1004},end:{line:1,column:1043}},type:"cond-expr",locations:[{start:{line:1,column:1018},end:{line:1,column:1038}},{start:{line:1,column:1041},end:{line:1,column:1043}}],line:1},2:{loc:{start:{line:1,column:1220},end:{line:1,column:1530}},type:"cond-expr",locations:[{start:{line:1,column:1234},end:{line:1,column:1354}},{start:{line:1,column:1355},end:{line:1,column:1530}}],line:1},3:{loc:{start:{line:1,column:1598},end:{line:1,column:1647}},type:"binary-expr",locations:[{start:{line:1,column:1598},end:{line:1,column:1609}},{start:{line:1,column:1613},end:{line:1,column:1622}},{start:{line:1,column:1626},end:{line:1,column:1647}}],line:1},4:{loc:{start:{line:1,column:2665},end:{line:1,column:2715}},type:"cond-expr",locations:[{start:{line:1,column:2696},end:{line:1,column:2710}},{start:{line:1,column:2713},end:{line:1,column:2715}}],line:1},5:{loc:{start:{line:1,column:3590},end:{line:1,column:3709}},type:"cond-expr",locations:[{start:{line:1,column:3625},end:{line:1,column:3700}},{start:{line:1,column:3701},end:{line:1,column:3709}}],line:1},6:{loc:{start:{line:1,column:3727},end:{line:1,column:3903}},type:"cond-expr",locations:[{start:{line:1,column:3753},end:{line:1,column:3894}},{start:{line:1,column:3895},end:{line:1,column:3903}}],line:1},7:{loc:{start:{line:1,column:3908},end:{line:1,column:4131}},type:"cond-expr",locations:[{start:{line:1,column:3925},end:{line:1,column:4122}},{start:{line:1,column:4123},end:{line:1,column:4131}}],line:1},8:{loc:{start:{line:1,column:4132},end:{line:1,column:4355}},type:"cond-expr",locations:[{start:{line:1,column:4149},end:{line:1,column:4346}},{start:{line:1,column:4347},end:{line:1,column:4355}}],line:1},9:{loc:{start:{line:1,column:5566},end:{line:1,column:5864}},type:"cond-expr",locations:[{start:{line:1,column:5595},end:{line:1,column:5855}},{start:{line:1,column:5856},end:{line:1,column:5864}}],line:1}},s:{0:0,1:0,2:0,3:0,4:0,5:0,6:0,7:0,8:0,9:0,10:0,11:0,12:0,13:0,14:0,15:0,16:0,17:0,18:0,19:0,20:0,21:0,22:0,23:0,24:0},f:{0:0,1:0,2:0,3:0,4:0,5:0,6:0,7:0,8:0,9:0,10:0,11:0,12:0,13:0,14:0,15:0,16:0,17:0,18:0,19:0,20:0},b:{0:[0,0],1:[0,0],2:[0,0],3:[0,0,0],4:[0,0],5:[0,0],6:[0,0],7:[0,0],8:[0,0],9:[0,0]},_coverageSchema:"1a1c01bbd47fc00a2c39e90264f33305004495a9",hash:"8e3ef9fc338cbc7c2e75d3176bd3eeb6afc7fdbb"},a=t[l]||(t[l]={});a[e]&&a[e].hash===n||(a[e]=i);var c=a[e];return o=function(){return c},c}t.r(n),t.d(n,{default:function(){return Ve}}),o(),o().s[0]++;var l=function(){o().f[0]++;var e=(o().s[1]++,this),n=(o().s[2]++,e._self._c);return o().s[3]++,n("div",[n("top-bar",{attrs:{menus:e.menus,title:e.title}}),n("v-card",[n("v-container",[n("v-row",{attrs:{dense:""}},[n("v-col",[n("v-text-field",{attrs:{label:"Start Date",type:"date",rules:[e.rules.required],"data-test":"start-date"},model:{value:e.startDate,callback:function(n){o().f[1]++,o().s[4]++,e.startDate=n},expression:"startDate"}})],1),n("v-col",[n("v-text-field",{attrs:{label:"Start Time",type:"time",step:"1",rules:[e.rules.required],"data-test":"start-time"},model:{value:e.startTime,callback:function(n){o().f[2]++,o().s[5]++,e.startTime=n},expression:"startTime"}})],1),n("v-col",[n("v-text-field",{attrs:{label:"End Date",type:"date",rules:e.endTime?(o().b[0][0]++,[e.rules.required]):(o().b[0][1]++,[]),"data-test":"end-date"},model:{value:e.endDate,callback:function(n){o().f[3]++,o().s[6]++,e.endDate=n},expression:"endDate"}})],1),n("v-col",[n("v-text-field",{attrs:{label:"End Time",type:"time",step:"1",rules:e.endDate?(o().b[1][0]++,[e.rules.required]):(o().b[1][1]++,[]),"data-test":"end-time"},model:{value:e.endTime,callback:function(n){o().f[4]++,o().s[7]++,e.endTime=n},expression:"endTime"}})],1),n("v-col",{staticClass:"pt-4",attrs:{cols:"auto"}},[e.running?(o().b[2][0]++,n("v-btn",{attrs:{color:"primary",width:"100","data-test":"stop-button"},on:{click:e.stop}},[e._v(" Stop ")])):(o().b[2][1]++,n("v-btn",{staticClass:"pulse-button",attrs:{disabled:!e.canStart,color:"primary",width:"100","data-test":"start-button"},on:{click:e.start}},[e._v(" Start ")]))],1)],1),n("div",{directives:[{name:"show",rawName:"v-show",value:(o().b[3][0]++,e.warning||(o().b[3][1]++,e.error)||(o().b[3][2]++,e.connectionFailure)),expression:"warning || error || connectionFailure"}],staticClass:"mb-3"},[n("v-alert",{attrs:{type:"warning",dismissible:""},model:{value:e.warning,callback:function(n){o().f[5]++,o().s[8]++,e.warning=n},expression:"warning"}},[e._v(" "+e._s(e.warningText)+" ")]),n("v-alert",{attrs:{type:"error",dismissible:""},model:{value:e.error,callback:function(n){o().f[6]++,o().s[9]++,e.error=n},expression:"error"}},[e._v(" "+e._s(e.errorText)+" ")]),n("v-alert",{attrs:{type:"error"},model:{value:e.connectionFailure,callback:function(n){o().f[7]++,o().s[10]++,e.connectionFailure=n},expression:"connectionFailure"}},[e._v(" OpenC3 backend connection failed. ")])],1)],1),n("v-tabs",{ref:"tabs",model:{value:e.curTab,callback:function(n){o().f[8]++,o().s[11]++,e.curTab=n},expression:"curTab"}},[e._l(e.config.tabs,(function(t,l){return o().f[9]++,o().s[12]++,n("v-tab",{key:l,attrs:{"data-test":"tab"},on:{contextmenu:function(n){return o().f[10]++,o().s[13]++,e.tabMenu(n,l)}}},[e._v(" "+e._s(t.tabName)+" ")])})),n("v-btn",{staticClass:"mt-2 ml-2",class:0===e.config.tabs.length?(o().b[4][0]++,"pulse-button"):(o().b[4][1]++,""),attrs:{icon:"","data-test":"new-tab"},on:{click:e.addTab}},[n("v-icon",[e._v("mdi-tab-plus")])],1)],2),n("v-tabs-items",{model:{value:e.curTab,callback:function(n){o().f[11]++,o().s[14]++,e.curTab=n},expression:"curTab"}},e._l(e.config.tabs,(function(t,l){return o().f[12]++,o().s[15]++,n("v-tab-item",{key:t.ref,attrs:{eager:""}},[n("keep-alive",[n("v-card",{attrs:{flat:""}},[n("v-divider"),n("v-card-title",{staticClass:"pa-3"},[n("span",{domProps:{textContent:e._s(t.name)}}),n("v-spacer"),n("v-btn",{attrs:{icon:"","data-test":"delete-component"},on:{click:function(){return o().f[13]++,o().s[16]++,e.deleteComponent(l)}}},[n("v-icon",{attrs:{color:"red"}},[e._v("mdi-delete")])],1)],1),n(t.type,e._g({ref:t.ref,refInFor:!0,tag:"component",attrs:{name:t.component,config:t.config,packets:t.packets},on:{config:function(e){return o().f[14]++,o().s[17]++,t.config=e}}},e.$listeners)),0===e.receivedPackets.length?(o().b[5][0]++,n("v-card-text",[e._v(" No data! Make sure to hit the START button! ")])):(o().b[5][1]++,e._e())],1)],1)],1)})),1),e.config.tabs.length?(o().b[6][1]++,e._e()):(o().b[6][0]++,n("v-card",[n("v-card-title",[e._v("You're not viewing any packets")]),n("v-card-text",[e._v("Click the new tab icon to start.")])],1))],1),e.openConfig?(o().b[7][0]++,n("open-config-dialog",{attrs:{configKey:e.configKey},on:{success:e.openConfiguration},model:{value:e.openConfig,callback:function(n){o().f[15]++,o().s[18]++,e.openConfig=n},expression:"openConfig"}})):(o().b[7][1]++,e._e()),e.saveConfig?(o().b[8][0]++,n("save-config-dialog",{attrs:{configKey:e.configKey},on:{success:e.saveConfiguration},model:{value:e.saveConfig,callback:function(n){o().f[16]++,o().s[19]++,e.saveConfig=n},expression:"saveConfig"}})):(o().b[8][1]++,e._e()),n("v-dialog",{attrs:{width:"600"},model:{value:e.tabNameDialog,callback:function(n){o().f[17]++,o().s[20]++,e.tabNameDialog=n},expression:"tabNameDialog"}},[n("v-card",[n("v-system-bar",[n("v-spacer"),n("span",[e._v(" DataViewer: Rename Tab")]),n("v-spacer")],1),n("v-card-text",[n("v-text-field",{attrs:{label:"Tab name","data-test":"rename-tab-input"},model:{value:e.newTabName,callback:function(n){o().f[18]++,o().s[21]++,e.newTabName=n},expression:"newTabName"}})],1),n("v-card-actions",[n("v-spacer"),n("v-btn",{staticClass:"mx-2",attrs:{outlined:"","data-test":"cancel-rename"},on:{click:e.cancelTabRename}},[e._v(" Cancel ")]),n("v-btn",{staticClass:"mx-2",attrs:{color:"primary","data-test":"rename",disabled:!e.newTabName},on:{click:e.renameTab}},[e._v(" Rename ")])],1)],1)],1),n("v-menu",{attrs:{"position-x":e.tabMenuX,"position-y":e.tabMenuY,absolute:"","offset-y":""},model:{value:e.showTabMenu,callback:function(n){o().f[19]++,o().s[22]++,e.showTabMenu=n},expression:"showTabMenu"}},[n("v-list",[n("v-list-item",{attrs:{"data-test":"context-menu-rename"}},[n("v-list-item-title",{staticStyle:{cursor:"pointer"},on:{click:e.openTabNameDialog}},[e._v(" Rename ")])],1)],1)],1),e.showAddComponentDialog?(o().b[9][0]++,n("add-component-dialog",{attrs:{components:e.components},on:{add:e.addComponent,cancel:e.cancelAddComponent},model:{value:e.showAddComponentDialog,callback:function(n){o().f[20]++,o().s[23]++,e.showAddComponentDialog=n},expression:"showAddComponentDialog"}})):(o().b[9][1]++,e._e())],1)},i=(o().s[24]++,[]),a=t(6964),c=t(615),s=(t(4870),t(3985),t(8188),t(1939),t(7950),t(4069),t(2501),t(6728),t(8178),t(3108),t(4769),t(3244),t(8673),t(6886),t(3450),t(9529),t(1235),t(5342),t(4083),t(9805),t(8966)),r=t(5789),u=t(9502),m=(t(8233),t(9644)),d=t.n(m),A=t(4091),p=new A["default"],f=d().create({baseURL:location.origin,timeout:6e4,params:{}});f.interceptors.response.use((function(e){return e}),(function(e){if(e.response){var n,t,o,l,i;if(401===e.response.status&&OpenC3Auth.updateToken(OpenC3Auth.defaultMinValidity,!0).then((function(e){e&&OpenC3Auth.setTokens()})),e.response.headers["ignore-errors"]&&e.response.headers["ignore-errors"].includes(e.response.status.toString()))return Promise.reject(e);var a="HTTP ".concat(e.response.status," - ");if(null!==(n=e.response)&&void 0!==n&&n.statusText&&(a+="".concat(e.response.statusText," ")),null!==(t=e.response)&&void 0!==t&&null!==(t=t.config)&&void 0!==t&&t.data&&(a+="".concat(e.response.config.data," ")),null!==(o=e.response)&&void 0!==o&&null!==(o=o.data)&&void 0!==o&&o.message)a+="".concat(e.response.data.message);else if(null!==(l=e.response)&&void 0!==l&&null!==(l=l.data)&&void 0!==l&&l.exception)a+="".concat(e.response.data.exception);else if(null!==(i=e.response)&&void 0!==i&&null!==(i=i.data)&&void 0!==i&&null!==(i=i.error)&&void 0!==i&&i.message)e.response.data.error.class&&(a+="".concat(e.response.data.error.class," ")),a+="".concat(e.response.data.error.message);else{var c;a+="".concat(null===(c=e.response)||void 0===c?void 0:c.data)}throw p.$notify&&p.$notify.serious({title:"Network error",body:a}),e}throw e}));var h=f,v=function(){var e=(0,u.Z)((0,r.Z)().mark((function e(n,t){var o,l,i,a,c,s,u,m,d,A,p=arguments;return(0,r.Z)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(o=p.length>2&&void 0!==p[2]?p[2]:{},l=o.data,i=o.params,a=void 0===i?{}:i,c=o.headers,s=o.noAuth,u=void 0!==s&&s,m=o.noScope,d=void 0!==m&&m,u){e.next=13;break}return e.prev=2,e.next=5,OpenC3Auth.updateToken(OpenC3Auth.defaultMinValidity);case 5:A=e.sent,A&&OpenC3Auth.setTokens(),e.next=12;break;case 9:e.prev=9,e.t0=e["catch"](2),OpenC3Auth.login();case 12:c["Authorization"]=localStorage.openc3Token;case 13:return d||a["scope"]||(a["scope"]=window.openc3Scope),e.abrupt("return",h({method:n,url:t,data:l,params:a,headers:c}));case 15:case"end":return e.stop()}}),e,null,[[2,9]])})));return function(n,t){return e.apply(this,arguments)}}(),g={Accept:"application/json"},C=(0,a.Z)((0,a.Z)({},g),{},{"Content-Type":"application/json"}),b={get:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},t=n.params,o=n.headers,l=void 0===o?g:o,i=n.noScope,a=n.noAuth;return v("get",e,{params:t,headers:l,noScope:i,noAuth:a})},put:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},t=n.data,o=n.params,l=n.headers,i=void 0===l?C:l,a=n.noScope,c=n.noAuth;return v("put",e,{data:t,params:o,headers:i,noScope:a,noAuth:c})},post:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},t=n.data,o=n.params,l=n.headers,i=void 0===l?C:l,a=n.noScope,c=n.noAuth;return v("post",e,{data:t,params:o,headers:i,noScope:a,noAuth:c})},delete:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},t=n.params,o=n.headers,l=void 0===o?g:o,i=n.noScope,a=n.noAuth;return v("delete",e,{params:t,headers:l,noScope:i,noAuth:a})}},y=(t(6710),t(5940),t(6259)),k=t(426),w=t(7871),T=t(2261),x=(t(1372),t(1245),t(3675),t(4898),t(5825),t(7170),t(8857),t(8329),t(6279),t(427),t(171),t(7093),t(1159),t(2516),t(4349),t(5273),t(6729),t(1801),t(574),t(5787),t(9271),t(3160),t(5688),t(3157),t(3333),t(315),t(556),t(2529),t(6943),t(9224),t(1157),t(7233),t(5734),function(){function e(){(0,k.Z)(this,e),(0,T.Z)(this,"id",1)}return(0,w.Z)(e,[{key:"exec",value:function(){var e=(0,u.Z)((0,r.Z)().mark((function e(n,t){var o,l,i,c,s,u,m=arguments;return(0,r.Z)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return o=m.length>2&&void 0!==m[2]?m[2]:{},l=m.length>3&&void 0!==m[3]?m[3]:{},i=m.length>4&&void 0!==m[4]?m[4]:6e4,e.prev=3,e.next=6,OpenC3Auth.updateToken(OpenC3Auth.defaultMinValidity);case 6:c=e.sent,c&&OpenC3Auth.setTokens(),e.next=13;break;case 10:e.prev=10,e.t0=e["catch"](3),OpenC3Auth.login();case 13:return this.id=this.id+1,e.prev=14,o["scope"]=window.openc3Scope,e.next=18,h.post("/openc3-api/api",{jsonrpc:"2.0",method:n,params:t,id:this.id,keyword_params:o},{headers:(0,a.Z)({Authorization:localStorage.openc3Token,"Content-Type":"application/json-rpc"},l),timeout:i});case 18:return s=e.sent,e.abrupt("return",s.data.result);case 22:throw e.prev=22,e.t1=e["catch"](14),u=new Error,e.t1.response?(u.name=e.t1.response.data.error.data.class,u.message=e.t1.response.data.error.data.message):e.t1.request?(u.name="Request error",u.message="Request error, no response received"):u.name="Unknown error",u;case 27:case"end":return e.stop()}}),e,this,[[3,10],[14,22]])})));function n(n,t){return e.apply(this,arguments)}return n}()},{key:"decode_openc3_type",value:function(e){if(null!==e&&"object"===(0,y.Z)(e)&&"Float"==e.json_class&&e.raw){if("NaN"==e.raw)return NaN;if("Infinity"==e.raw)return 1/0;if("-Infinity"==e.raw)return-1/0}return null}},{key:"encode_openc3_type",value:function(e){return Number.isNaN(e)?{json_class:"Float",raw:"NaN"}:e==Number.POSITIVE_INFINITY?{json_class:"Float",raw:"Infinity"}:e==Number.NEGATIVE_INFINITY?{json_class:"Float",raw:"-Infinity"}:null}},{key:"ensure_offline_access",value:function(){var e=this;this.offline_access_needed().then((function(n){n&&(localStorage.openc3OfflineToken?e.set_offline_access(localStorage.openc3OfflineToken).then((function(){delete localStorage.openc3OfflineToken})):OpenC3Auth.getOfflineAccess())}))}},{key:"offline_access_needed",value:function(){return this.exec("offline_access_needed",[])}},{key:"set_offline_access",value:function(e){return this.exec("set_offline_access",[e])}},{key:"get_all_interface_info",value:function(){return this.exec("get_all_interface_info",[])}},{key:"map_target_to_interface",value:function(e,n){return this.exec("map_target_to_interface",[e,n])}},{key:"connect_interface",value:function(e){for(var n=arguments.length,t=new Array(n>1?n-1:0),o=1;o<n;o++)t[o-1]=arguments[o];return t.length>0?this.exec("connect_interface",[e].concat(t)):this.exec("connect_interface",[e])}},{key:"disconnect_interface",value:function(e){return this.exec("disconnect_interface",[e])}},{key:"get_all_router_info",value:function(){return this.exec("get_all_router_info",[])}},{key:"connect_router",value:function(e){return this.exec("connect_router",[e])}},{key:"disconnect_router",value:function(e){return this.exec("disconnect_router",[e])}},{key:"get_target_interfaces",value:function(){return this.exec("get_target_interfaces",[])}},{key:"get_all_target_info",value:function(){return this.exec("get_all_target_info",[])}},{key:"get_tlm_cnts",value:function(e){return this.exec("get_tlm_cnts",[e])}},{key:"get_item",value:function(e,n,t){return this.exec("get_item",[e,n,t])}},{key:"get_parameter",value:function(e,n,t){return this.exec("get_parameter",[e,n,t])}},{key:"get_all_packet_logger_info",value:function(){return this.exec("get_all_packet_logger_info",[])}},{key:"start_logging",value:function(){return this.exec("start_logging",[])}},{key:"stop_logging",value:function(){return this.exec("stop_logging",[])}},{key:"start_cmd_log",value:function(e){return this.exec("start_cmd_log",[e])}},{key:"start_tlm_log",value:function(e){return this.exec("start_tlm_log",[e])}},{key:"stop_cmd_log",value:function(e){return this.exec("stop_cmd_log",[e])}},{key:"stop_tlm_log",value:function(e){return this.exec("stop_tlm_log",[e])}},{key:"get_server_status",value:function(){return this.exec("get_server_status",[])}},{key:"get_limits_sets",value:function(){return this.exec("get_limits_sets",[])}},{key:"get_limits_set",value:function(){return this.exec("get_limits_set",[])}},{key:"set_limits_set",value:function(e){return this.exec("set_limits_set",[e])}},{key:"get_background_tasks",value:function(){return this.exec("get_background_tasks",[])}},{key:"start_background_task",value:function(e){return this.exec("start_background_task",[e])}},{key:"stop_background_task",value:function(e){return this.exec("stop_background_task",[e])}},{key:"get_target",value:function(e){return this.exec("get_target",[e])}},{key:"get_target_list",value:function(){return this.exec("get_target_list",[])}},{key:"get_target_names",value:function(){return this.exec("get_target_names",[])}},{key:"get_telemetry",value:function(e,n){return this.exec("get_telemetry",[e,n])}},{key:"get_all_telemetry",value:function(e){return this.exec("get_all_telemetry",[e])}},{key:"get_all_telemetry_names",value:function(e){return this.exec("get_all_telemetry_names",[e])}},{key:"get_tlm_packet",value:function(){var e=(0,u.Z)((0,r.Z)().mark((function e(n,t,o){var l,i,a,c,s,u=arguments;return(0,r.Z)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return l=u.length>3&&void 0!==u[3]?u[3]:30,e.next=3,this.exec("get_tlm_packet",[n,t],{type:o,stale_time:l});case 3:if(i=e.sent,null!=i)for(a=i.length,c=null,s=0;s<a;s++)c=this.decode_openc3_type(i[s][1]),null!==c&&(i[s][1]=c);return e.abrupt("return",i);case 6:case"end":return e.stop()}}),e,this)})));function n(n,t,o){return e.apply(this,arguments)}return n}()},{key:"get_packet_derived_items",value:function(e,n){return this.exec("get_packet_derived_items",[e,n])}},{key:"get_tlm_buffer",value:function(e,n){return this.exec("get_tlm_buffer",[e,n])}},{key:"get_tlm_values",value:function(){var e=(0,u.Z)((0,r.Z)().mark((function e(n){var t,o,l,i,a,c=arguments;return(0,r.Z)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return t=c.length>1&&void 0!==c[1]?c[1]:30,e.next=3,this.exec("get_tlm_values",[n],{stale_time:t},{},1e4);case 3:for(o=e.sent,l=o[0].length,i=null,a=0;a<l;a++)i=this.decode_openc3_type(o[0][a]),null!==i&&(o[0][a]=i);return e.abrupt("return",o);case 8:case"end":return e.stop()}}),e,this)})));function n(n){return e.apply(this,arguments)}return n}()},{key:"get_limits",value:function(e,n,t){return this.exec("get_limits",[e,n,t])}},{key:"tlm",value:function(){var e=(0,u.Z)((0,r.Z)().mark((function e(n,t,o){var l,i,a,c,s=arguments;return(0,r.Z)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(l=s.length>3&&void 0!==s[3]?s[3]:"CONVERTED",i=null,void 0!==t){e.next=8;break}return e.next=5,this.exec("tlm",[n]);case 5:i=e.sent,e.next=24;break;case 8:if(void 0!==o){e.next=21;break}if(!["RAW","CONVERTED","FORMATTED","WITH_UNITS"].includes(t)){e.next=15;break}return e.next=12,this.exec("tlm",[n],{type:t});case 12:i=e.sent,e.next=19;break;case 15:throw a=new Error,a.name="TypeError",a.message="Invalid data type ".concat(t,". Valid options are RAW, CONVERTED, FORMATTED, and WITH_UNITS."),a;case 19:e.next=24;break;case 21:return e.next=23,this.exec("tlm",[n,t,o],{type:l});case 23:i=e.sent;case 24:return c=this.decode_openc3_type(i),null!==c&&(i=c),e.abrupt("return",i);case 27:case"end":return e.stop()}}),e,this)})));function n(n,t,o){return e.apply(this,arguments)}return n}()},{key:"inject_tlm",value:function(){var e=(0,u.Z)((0,r.Z)().mark((function e(n,t){var o,l,i=arguments;return(0,r.Z)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return o=i.length>2&&void 0!==i[2]?i[2]:null,l=i.length>3&&void 0!==i[3]?i[3]:"CONVERTED",e.next=4,this.exec("inject_tlm",[n,t,o],{type:l});case 4:data=e.sent;case 5:case"end":return e.stop()}}),e,this)})));function n(n,t){return e.apply(this,arguments)}return n}()},{key:"set_tlm",value:function(e,n,t,o){return this.exec("set_tlm",[e,n,t],{type:o})}},{key:"override_tlm",value:function(e,n,t,o){return this.exec("override_tlm",[e,n,t],{type:o})}},{key:"get_overrides",value:function(){return this.exec("get_overrides")}},{key:"normalize_tlm",value:function(e,n,t,o){return this.exec("normalize_tlm",[e,n,t],{type:o})}},{key:"get_all_commands",value:function(e){return this.exec("get_all_commands",[e])}},{key:"get_all_command_names",value:function(e){return this.exec("get_all_command_names",[e])}},{key:"get_command",value:function(e,n){return this.exec("get_command",[e,n])}},{key:"get_cmd_cnts",value:function(e){return this.exec("get_cmd_cnts",[e])}},{key:"get_cmd_value",value:function(e,n,t){var o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"CONVERTED";return this.exec("get_cmd_value",[e,n,t,o])}},{key:"get_cmd_buffer",value:function(e,n){return this.exec("get_cmd_buffer",[e,n])}},{key:"_cmd",value:function(e,n,t,o,l){var i=null;for(var a in o)Object.prototype.hasOwnProperty.call(o,a)&&(i=this.encode_openc3_type(o[a]),null!==i&&(o[a]=i));return this.exec(e,[n,t,o],{},l)}},{key:"get_cmd_hazardous",value:function(e,n,t){return void 0===n?this.exec("get_cmd_hazardous",e):this._cmd("get_cmd_hazardous",e,n,t)}},{key:"cmd",value:function(e,n,t){var o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return void 0===n?this.exec("cmd",e,{},o):this._cmd("cmd",e,n,t,o)}},{key:"cmd_no_range_check",value:function(e,n,t){return void 0===n?this.exec("cmd_no_range_check",e):this._cmd("cmd_no_range_check",e,n,t)}},{key:"cmd_raw",value:function(e,n,t){return void 0===n?this.exec("cmd_raw",e):this._cmd("cmd_raw",e,n,t)}},{key:"cmd_raw_no_range_check",value:function(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)}},{key:"cmd_no_hazardous_check",value:function(e,n,t){return void 0===n?this.exec("cmd_no_hazardous_check",e):this._cmd("cmd_no_hazardous_check",e,n,t)}},{key:"cmd_no_checks",value:function(e,n,t){return void 0===n?this.exec("cmd_no_checks",e):this._cmd("cmd_no_checks",e,n,t)}},{key:"cmd_raw_no_hazardous_check",value:function(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)}},{key:"cmd_raw_no_checks",value:function(e,n,t){return void 0===n?this.exec("cmd_raw_no_checks",e):this._cmd("cmd_raw_no_checks",e,n,t)}},{key:"build_command",value:function(e,n,t){return void 0===n?this.exec("build_command",e):this._cmd("build_command",e,n,t)}},{key:"get_interface_names",value:function(){return this.exec("get_interface_names",[])}},{key:"send_raw",value:function(e,n){return this.exec("send_raw",[e,n])}},{key:"list_configs",value:function(e){return this.exec("list_configs",[e])}},{key:"load_config",value:function(e,n){return this.exec("load_config",[e,n])}},{key:"save_config",value:function(e,n,t){return this.exec("save_config",[e,n,t])}},{key:"delete_config",value:function(e,n){return this.exec("delete_config",[e,n])}},{key:"enable_limits",value:function(e,n,t){return this.exec("enable_limits",[e,n,t])}},{key:"disable_limits",value:function(e,n,t){return this.exec("disable_limits",[e,n,t])}},{key:"get_out_of_limits",value:function(){return this.exec("get_out_of_limits",[])}},{key:"get_overall_limits_state",value:function(e){return this.exec("get_overall_limits_state",[e])}},{key:"list_settings",value:function(){return this.exec("list_settings",[])}},{key:"get_all_settings",value:function(){return this.exec("get_all_settings",[])}},{key:"get_setting",value:function(e){return this.exec("get_setting",[e])}},{key:"get_settings",value:function(e){return this.exec("get_settings",e)}},{key:"save_setting",value:function(e,n){return this.exec("save_setting",[e,n])}},{key:"get_metrics",value:function(){return this.exec("get_metrics",[])}},{key:"hashString",value:function(){var e=(0,u.Z)((0,r.Z)().mark((function e(n){var t,o,l;return(0,r.Z)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(!window.isSecureContext){e.next=7;break}return t=(new TextEncoder).encode(n),e.next=4,crypto.subtle.digest("SHA-256",t);case 4:return o=e.sent,l=new Uint8Array(o),e.abrupt("return",Array.from(l).map((function(e){return e.toString(16).padStart(2,"0")})).join(""));case 7:case"end":return e.stop()}}),e)})));function n(n){return e.apply(this,arguments)}return n}()}]),e}()),N={data:{configKey:""},methods:{openConfigBase:function(e){var n=this,t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;localStorage["lastconfig__".concat(this.configKey)]=e,(new x).load_config(this.configKey,e).then((function(l){l?(n.$notify.normal({title:"Loading configuration",body:e}),o&&o(JSON.parse(l)),t||n.$router.currentRoute.fullPath.includes(e)||n.$router.push({query:{config:e}}),localStorage["lastconfig__".concat(n.configKey)]=e):(n.$notify.caution({title:"Unknown configuration",body:e}),localStorage.removeItem("lastconfig__".concat(n.configKey)))})).catch((function(t){t&&n.$notify.serious({title:"Error opening configuration: ".concat(e),body:t}),localStorage.removeItem("lastconfig__".concat(n.configKey))}))},saveConfigBase:function(e,n){var t=this;(new x).save_config(this.configKey,e,JSON.stringify(n)).then((function(){t.$notify.normal({title:"Saved configuration",body:e}),localStorage["lastconfig__".concat(t.configKey)]=e})).catch((function(n){n&&t.$notify.serious({title:"Error saving configuration: ".concat(e),body:n}),localStorage.removeItem("lastconfig__".concat(t.configKey))}))},resetConfigBase:function(){localStorage.removeItem("lastconfig__".concat(this.configKey)),"/"!==this.$router.currentRoute.fullPath&&this.$router.replace(this.$router.currentRoute.path),this.$router.go()}}},D=(t(4908),function(){var e=this,n=e._self._c;return n("v-dialog",{attrs:{width:"600"},on:{keydown:function(n){return!n.type.indexOf("key")&&e._k(n.keyCode,"esc",27,n.key,["Esc","Escape"])?null:e.cancel.apply(null,arguments)}},model:{value:e.show,callback:function(n){e.show=n},expression:"show"}},[n("v-card",[n("form",{on:{submit:function(n){return n.preventDefault(),e.success.apply(null,arguments)}}},[n("v-system-bar",[n("v-spacer"),n("span",[e._v("Open Configuration")]),n("v-spacer")],1),n("v-card-text",[n("div",{staticClass:"pa-3"},[n("v-row",{attrs:{dense:""}},[n("v-text-field",{attrs:{label:"search",type:"text","data-test":"search","prepend-icon":"mdi-magnify","clear-icon":"mdi-close-circle-outline",clearable:"",autofocus:"","single-line":"","hide-details":""},model:{value:e.search,callback:function(n){e.search=n},expression:"search"}})],1),n("v-data-table",{attrs:{"show-select":"","single-select":"","item-key":"configId",search:e.search,headers:e.headers,items:e.configs,"items-per-page":5,"footer-props":{"items-per-page-options":[5]}},on:{"item-selected":e.itemSelected,"click:row":function(e,n){return n.select(e)}},scopedSlots:e._u([{key:"item.actions",fn:function(t){var o=t.item;return[n("v-btn",{staticClass:"mt-1",attrs:{"data-test":"item-delete",icon:""},on:{click:function(n){return e.deleteConfig(o)}}},[n("v-icon",[e._v("mdi-delete")])],1)]}}])}),n("v-row",{attrs:{dense:""}},[n("span",{directives:[{name:"show",rawName:"v-show",value:e.error,expression:"error"}],staticClass:"ma-2 red--text",domProps:{textContent:e._s(e.error)}})])],1)]),n("v-card-actions",[n("v-spacer"),n("v-btn",{staticClass:"mx-2",attrs:{outlined:"","data-test":"open-config-cancel-btn"},on:{click:e.cancel}},[e._v(" Cancel ")]),n("v-btn",{staticClass:"mx-2",attrs:{type:"submit",color:"primary","data-test":"open-config-submit-btn",disabled:!!e.error},on:{click:function(n){return n.preventDefault(),e.success.apply(null,arguments)}}},[e._v(" Ok ")])],1)],1)])],1)}),S=[],P={props:{configKey:String,value:Boolean},data:function(){return{configs:[],headers:[{text:"Configuration",value:"config"},{text:"Actions",value:"actions",align:"end",sortable:!1}],search:null,selectedItem:null}},computed:{error:function(){return""===this.selectedItem||null===this.selectedItem?"Must select a config":null},show:{get:function(){return this.value},set:function(e){this.$emit("input",e)}}},mounted:function(){var e=this,n=-1;(new x).list_configs(this.configKey).then((function(t){e.configs=t.map((function(e){return n+=1,{configId:n,config:e}}))})).catch((function(n){e.$emit("warning","Failed to connect to OpenC3. ".concat(n))}))},methods:{itemSelected:function(e){e.value?this.selectedItem=e.item:this.selectedItem=null},success:function(){this.$emit("success",this.selectedItem.config),this.show=!1,this.search=null,this.selectedItem=null},cancel:function(){this.show=!1,this.search=null,this.selectedItem=null},deleteConfig:function(e){var n=this;this.$dialog.confirm("Are you sure you want to delete: ".concat(e.config),{okText:"Delete",cancelText:"Cancel"}).then((function(t){n.selectedItem.config===e.config&&(n.selectedItem=null),n.configs.splice(n.configs.indexOf(e),1),(new x).delete_config(n.configKey,e.config),localStorage["lastconfig__".concat(n.configKey)]===e.config&&localStorage.removeItem("lastconfig__".concat(n.configKey))})).catch((function(t){t&&n.$emit("warning","Failed to delete config ".concat(e.config," Error: ").concat(t))}))}}},O=P,I=t(3483),R=(0,I.Z)(O,D,S,!1,null,null,null),M=R.exports,E=function(){var e=this,n=e._self._c;return n("v-dialog",{attrs:{width:"600"},on:{keydown:function(n){return!n.type.indexOf("key")&&e._k(n.keyCode,"esc",27,n.key,["Esc","Escape"])?null:e.cancel.apply(null,arguments)}},model:{value:e.show,callback:function(n){e.show=n},expression:"show"}},[n("v-card",[n("form",{on:{submit:function(n){return n.preventDefault(),e.success.apply(null,arguments)}}},[n("v-system-bar",[n("v-spacer"),n("span",[e._v("Save Configuration")]),n("v-spacer")],1),n("v-card-text",[n("div",{staticClass:"pa-3"},[n("v-row",{attrs:{dense:""}},[n("v-text-field",{attrs:{label:"search",type:"text","data-test":"search","prepend-icon":"mdi-magnify","clear-icon":"mdi-close-circle-outline",clearable:"","single-line":"","hide-details":""},model:{value:e.search,callback:function(n){e.search=n},expression:"search"}})],1),n("v-data-table",{attrs:{"show-select":"","single-select":"","item-key":"configId",search:e.search,headers:e.headers,items:e.configs,"items-per-page":5,"footer-props":{"items-per-page-options":[5]}},on:{"item-selected":e.itemSelected,"click:row":function(e,n){return n.select(e)}},scopedSlots:e._u([{key:"item.actions",fn:function(t){var o=t.item;return[n("v-btn",{staticClass:"mt-1",attrs:{icon:"","data-test":"item-delete"},on:{click:function(n){return e.deleteConfig(o)}}},[n("v-icon",[e._v("mdi-delete")])],1)]}}])}),n("v-row",{attrs:{dense:""}},[n("v-text-field",{attrs:{"hide-details":"",autofocus:"",disabled:!!e.selectedItem,label:"Configuration Name","data-test":"name-input-save-config-dialog"},model:{value:e.configName,callback:function(n){e.configName=n},expression:"configName"}})],1),n("v-row",{attrs:{dense:""}},[n("span",{directives:[{name:"show",rawName:"v-show",value:e.error,expression:"error"}],staticClass:"ma-2 red--text",domProps:{textContent:e._s(e.error)}})])],1)]),n("v-card-actions",[n("v-spacer"),n("v-btn",{staticClass:"mx-2",attrs:{outlined:""},on:{click:e.cancel}},[e._v(" Cancel ")]),n("v-btn",{staticClass:"mx-2",attrs:{type:"submit",color:"primary","data-test":"save-config-submit-btn",disabled:!!e.error},on:{click:function(n){return n.preventDefault(),e.success.apply(null,arguments)}}},[e._v(" Ok ")])],1)],1)])],1)},$=[],L={props:{configKey:String,value:Boolean},data:function(){return{configName:"",configs:[],headers:[{text:"Configuration",value:"config"},{text:"Actions",value:"actions",align:"end",sortable:!1}],search:null,selectedItem:null}},computed:{error:function(){return""===this.configName?"Config must have a name":null},show:{get:function(){return this.value},set:function(e){this.$emit("input",e)}}},mounted:function(){var e=this,n=-1;(new x).list_configs(this.configKey).then((function(t){e.configs=t.map((function(e){return n+=1,{configId:n,config:e}}))})).catch((function(n){e.$emit("warning","Failed to connect to OpenC3. ".concat(n))}))},methods:{itemSelected:function(e){e.value?(this.selectedItem=e.item,this.configName=e.item.config):(this.selectedItem=null,this.configName="")},success:function(){this.$emit("success",this.configName),this.show=!1,this.search=null,this.selectedItem=null,this.configName=""},cancel:function(){this.show=!1,this.search=null,this.selectedItem=null,this.configName=""},deleteConfig:function(e){var n=this;this.$dialog.confirm("Are you sure you want to delete: ".concat(e.config),{okText:"Delete",cancelText:"Cancel"}).then((function(t){n.configName===e.config&&(n.selectedItem=null,n.configName=""),n.configs.splice(n.configs.indexOf(e.config),1),(new x).delete_config(n.configKey,e.config),localStorage["lastconfig__".concat(n.configKey)]===e.config&&localStorage.removeItem("lastconfig__".concat(n.configKey))})).catch((function(t){t&&n.$emit("warning","Failed to delete config ".concat(e.config," Error: ").concat(t))}))}}},V=L,U=(0,I.Z)(V,E,$,!1,null,null,null),F=U.exports,Z=t(7146);Z.ju.staleThreshold=10;var K=function(){function e(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"/openc3-api/cable";(0,k.Z)(this,e),this._cable=null,this._url=n}return(0,w.Z)(e,[{key:"disconnect",value:function(){this._cable&&this._cable.disconnect()}},{key:"createSubscription",value:function(e,n){var t=this,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},l=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return OpenC3Auth.updateToken(OpenC3Auth.defaultMinValidity).then((function(n){if(n&&OpenC3Auth.setTokens(),null==t._cable){var i=t._url+"?scope="+window.openc3Scope+"&authorization="+localStorage.openc3Token;t._cable=Z.zD(i)}return t._cable.subscriptions.create((0,a.Z)({channel:e},l),o)}))}},{key:"recordPing",value:function(){this._cable.connection.monitor.recordPing()}}]),e}(),j=function(){var e=this,n=e._self._c;return n("mounting-portal",{attrs:{"mount-to":"#openc3-menu",append:""}},[n("div",{staticClass:"v-toolbar__content"},[e._l(e.menus,(function(t,o){return n("v-menu",{key:o,attrs:{"offset-y":""},scopedSlots:e._u([{key:"activator",fn:function(o){var l=o.on,i=o.attrs;return[n("v-btn",e._g(e._b({staticClass:"mx-1",attrs:{outlined:"","data-test":e.formatDT("".concat(e.title," ").concat(t.label))}},"v-btn",i,!1),l),[n("span",{domProps:{textContent:e._s(t.label)}}),n("v-icon",{attrs:{right:""}},[e._v(" mdi-menu-down ")])],1)]}}],null,!0)},[n("v-list",[n("v-radio-group",{staticClass:"ma-0 pa-0",attrs:{value:t.radioGroup,"hide-details":"",dense:""}},[e._l(t.items,(function(o,l){return[o.divider?n("v-divider"):n("v-list-item",{key:l,attrs:{disabled:o.disabled,"data-test":e.formatDT("".concat(e.title," ").concat(t.label," ").concat(o.label))},on:{click:function(e){return o.command(o)}}},[o.radio?n("v-list-item-action",[n("v-radio",{attrs:{color:"secondary",label:o.label,value:o.label}})],1):e._e(),o.checkbox?n("v-list-item-action",[n("v-checkbox",{attrs:{color:"secondary",label:o.label},model:{value:o.checked,callback:function(n){e.$set(o,"checked",n)},expression:"option.checked"}})],1):e._e(),o.icon?n("v-list-item-icon",[n("v-icon",{attrs:{disabled:o.disabled}},[e._v(e._s(o.icon))])],1):e._e(),o.radio||o.checkbox?e._e():n("v-list-item-title",{style:"cursor: pointer;"+(o.disabled?"opacity: 0.2":"")},[e._v(e._s(o.label))])],1)]}))],2)],1)],1)})),n("v-spacer"),n("v-toolbar-title",[e._v(e._s(e.title))]),n("v-spacer")],2)])},B=[],W=(t(1639),{props:{menus:{type:Array,default:function(){return[]}},title:{type:String,default:""}},methods:{formatDT:function(e){return e.replaceAll(" ","-").toLowerCase()}},mounted:function(){"COSMOS "===this.title.substring(0,7)?document.title=this.title.substring(7):document.title=this.title}}),z=W,H=(t(4888),(0,I.Z)(z,j,B,!1,null,"2eb37f67",null)),q=H.exports;function G(){var e="/openc3/plugins/packages/openc3-cosmos-tool-dataviewer/src/tools/DataViewer/AddComponentDialog.vue",n="bed87ddc7a79c02c7fad3325d84ee30b67e69b97",t=new Function("return this")(),o="__coverage__",l={path:"/openc3/plugins/packages/openc3-cosmos-tool-dataviewer/src/tools/DataViewer/AddComponentDialog.vue",statementMap:{0:{start:{line:1,column:13},end:{line:9,column:1}},1:{start:{line:1,column:39},end:{line:1,column:43}},2:{start:{line:1,column:47},end:{line:1,column:59}},3:{start:{line:1,column:60},end:{line:8,column:890}},4:{start:{line:1,column:163},end:{line:1,column:175}},5:{start:{line:1,column:680},end:{line:1,column:705}},6:{start:{line:1,column:1013},end:{line:1,column:1038}},7:{start:{line:1,column:1551},end:{line:1,column:1572}},8:{start:{line:1,column:2055},end:{line:1,column:2081}},9:{start:{line:8,column:113},end:{line:8,column:138}},10:{start:{line:8,column:202},end:{line:8,column:511}},11:{start:{line:8,column:310},end:{line:8,column:457}},12:{start:{line:8,column:374},end:{line:8,column:401}},13:{start:{line:10,column:22},end:{line:10,column:24}}},fnMap:{0:{name:"render",decl:{start:{line:1,column:22},end:{line:1,column:28}},loc:{start:{line:1,column:30},end:{line:9,column:1}},line:1},1:{name:"(anonymous_1)",decl:{start:{line:1,column:147},end:{line:1,column:148}},loc:{start:{line:1,column:162},end:{line:1,column:176}},line:1},2:{name:"(anonymous_2)",decl:{start:{line:1,column:664},end:{line:1,column:665}},loc:{start:{line:1,column:679},end:{line:1,column:706}},line:1},3:{name:"(anonymous_3)",decl:{start:{line:1,column:997},end:{line:1,column:998}},loc:{start:{line:1,column:1012},end:{line:1,column:1039}},line:1},4:{name:"(anonymous_4)",decl:{start:{line:1,column:1535},end:{line:1,column:1536}},loc:{start:{line:1,column:1550},end:{line:1,column:1573}},line:1},5:{name:"(anonymous_5)",decl:{start:{line:1,column:2039},end:{line:1,column:2040}},loc:{start:{line:1,column:2054},end:{line:1,column:2082}},line:1},6:{name:"(anonymous_6)",decl:{start:{line:8,column:96},end:{line:8,column:97}},loc:{start:{line:8,column:112},end:{line:8,column:139}},line:8},7:{name:"(anonymous_7)",decl:{start:{line:8,column:183},end:{line:8,column:184}},loc:{start:{line:8,column:201},end:{line:8,column:512}},line:8},8:{name:"(anonymous_8)",decl:{start:{line:8,column:286},end:{line:8,column:287}},loc:{start:{line:8,column:309},end:{line:8,column:458}},line:8},9:{name:"(anonymous_9)",decl:{start:{line:8,column:357},end:{line:8,column:358}},loc:{start:{line:8,column:373},end:{line:8,column:402}},line:8}},branchMap:{0:{loc:{start:{line:1,column:1839},end:{line:1,column:2126}},type:"cond-expr",locations:[{start:{line:1,column:1871},end:{line:1,column:2117}},{start:{line:1,column:2118},end:{line:1,column:2126}}],line:1}},s:{0:0,1:0,2:0,3:0,4:0,5:0,6:0,7:0,8:0,9:0,10:0,11:0,12:0,13:0},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]},_coverageSchema:"1a1c01bbd47fc00a2c39e90264f33305004495a9",hash:"bed87ddc7a79c02c7fad3325d84ee30b67e69b97"},i=t[o]||(t[o]={});i[e]&&i[e].hash===n||(i[e]=l);var a=i[e];return G=function(){return a},a}G(),G().s[0]++;var Y=function(){G().f[0]++;var e=(G().s[1]++,this),n=(G().s[2]++,e._self._c);return G().s[3]++,n("div",[n("v-dialog",{attrs:{width:"800"},model:{value:e.show,callback:function(n){G().f[1]++,G().s[4]++,e.show=n},expression:"show"}},[n("v-card",[n("v-system-bar",[n("v-spacer"),n("span",[e._v(" Configure Component ")]),n("v-spacer")],1),n("v-card-text",[n("v-container",[n("v-row",{attrs:{align:"center"}},[n("v-col",[e._v("Select Component:")]),n("v-col",[n("v-select",{attrs:{"hide-details":"",dense:"",outlined:"",items:e.components,"item-text":"label","item-value":"value","return-object":"","data-test":"select-component"},model:{value:e.selectedComponent,callback:function(n){G().f[2]++,G().s[5]++,e.selectedComponent=n},expression:"selectedComponent"}})],1)],1),n("v-row",[n("v-col",[e._v("Add packets for this component to process.")])],1),n("v-row",[n("v-col",{staticClass:"my-2"},[n("v-radio-group",{staticClass:"mt-0",attrs:{row:"","hide-details":""},model:{value:e.newPacketCmdOrTlm,callback:function(n){G().f[3]++,G().s[6]++,e.newPacketCmdOrTlm=n},expression:"newPacketCmdOrTlm"}},[n("v-radio",{attrs:{label:"Command",value:"cmd","data-test":"command-packet-radio"}}),n("v-radio",{attrs:{label:"Telemetry",value:"tlm","data-test":"telemetry-packet-radio"}})],1)],1)],1),n("v-row",[n("v-col",[n("target-packet-item-chooser",{attrs:{unknown:"","button-text":"Add Packet"},on:{click:e.addPacket}})],1)],1),n("v-row",[n("v-col",[n("v-radio-group",{attrs:{row:"","hide-details":""},model:{value:e.newPacketMode,callback:function(n){G().f[4]++,G().s[7]++,e.newPacketMode=n},expression:"newPacketMode"}},[n("v-radio",{attrs:{label:"Raw",value:"RAW","data-test":"new-packet-raw-radio"}}),n("v-radio",{attrs:{label:"Decom",value:"DECOM",disabled:e.disableRadioOptions,"data-test":"new-packet-decom-radio"}})],1)],1),n("v-col",["DECOM"===e.newPacketMode?(G().b[0][0]++,n("v-select",{attrs:{"hide-details":"",label:"Value Type","data-test":"add-packet-value-type",items:e.valueTypes},model:{value:e.newPacketValueType,callback:function(n){G().f[5]++,G().s[8]++,e.newPacketValueType=n},expression:"newPacketValueType"}})):(G().b[0][1]++,e._e())],1)],1),n("v-row",[n("v-col",[n("v-data-table",{attrs:{headers:e.headers,items:e.packets,search:e.search,"items-per-page":e.itemsPerPage,"footer-props":{itemsPerPageOptions:[10,100],showFirstLastPage:!0,firstIcon:"mdi-page-first",lastIcon:"mdi-page-last",prevIcon:"mdi-chevron-left",nextIcon:"mdi-chevron-right"},"calculate-widths":"","multi-sort":"",dense:""},on:{"update:items-per-page":function(n){G().f[6]++,G().s[9]++,e.itemsPerPage=n}},scopedSlots:e._u([{key:"item.delete",fn:function(t){var o=t.item;return G().f[7]++,G().s[10]++,[n("v-tooltip",{attrs:{bottom:""},scopedSlots:e._u([{key:"activator",fn:function(t){var l=t.on,i=t.attrs;return G().f[8]++,G().s[11]++,[n("v-icon",e._g(e._b({on:{click:function(n){return G().f[9]++,G().s[12]++,e.deleteItem(o)}}},"v-icon",i,!1),l),[e._v(" mdi-delete ")])]}}],null,!0)},[n("span",[e._v("Delete Item")])])]}}])})],1)],1)],1)],1),n("v-card-actions",[n("v-spacer"),n("v-btn",{staticClass:"mx-2",attrs:{outlined:"","data-test":"cancel-component"},on:{click:e.cancelAddComponent}},[e._v(" Cancel ")]),n("v-btn",{staticClass:"mx-2",attrs:{color:"primary","data-test":"add-component",disabled:e.notValid},on:{click:e.addComponent}},[e._v(" Create ")])],1)],1)],1)],1)},X=(G().s[13]++,[]),J=(t(4115),t(634),function(){var e=this,n=e._self._c;return n("v-container",{staticClass:"c-chooser px-0"},[n("v-row",[n("v-col",{attrs:{cols:e.colSize,"data-test":"select-target"}},[n("v-autocomplete",{attrs:{label:"Select Target","hide-details":"",dense:"",items:e.targetNames,"item-text":"label","item-value":"value"},on:{change:e.targetNameChanged},model:{value:e.selectedTargetName,callback:function(n){e.selectedTargetName=n},expression:"selectedTargetName"}})],1),n("v-col",{attrs:{cols:e.colSize,"data-test":"select-packet"}},[n("v-autocomplete",{attrs:{label:"Select Packet","hide-details":"",dense:"",disabled:e.packetsDisabled||e.buttonDisabled,items:e.packetNames,"item-text":"label","item-value":"value"},on:{change:e.packetNameChanged},model:{value:e.selectedPacketName,callback:function(n){e.selectedPacketName=n},expression:"selectedPacketName"}})],1),e.chooseItem&&!e.buttonDisabled?n("v-col",{attrs:{cols:e.colSize,"data-test":"select-item"}},[n("v-autocomplete",{attrs:{label:"Select Item","hide-details":"",dense:"",disabled:e.itemsDisabled||e.buttonDisabled,items:e.itemNames,"item-text":"label","item-value":"value"},on:{change:function(n){return e.itemNameChanged(n)}},model:{value:e.selectedItemName,callback:function(n){e.selectedItemName=n},expression:"selectedItemName"}})],1):e._e(),e.buttonText?n("v-col",{attrs:{cols:e.colSize}},[n("v-btn",{attrs:{disabled:e.buttonDisabled,block:"",color:"primary","data-test":"select-send"},on:{click:e.buttonPressed}},[e._v(" "+e._s(e.actualButtonText)+" ")])],1):e._e()],1),e.selectTypes?n("v-row",[n("v-col",{attrs:{cols:e.colSize,"data-test":"data-type"}},[n("v-autocomplete",{attrs:{label:"Value Type","hide-details":"",dense:"",items:e.valueTypes},model:{value:e.selectedValueType,callback:function(n){e.selectedValueType=n},expression:"selectedValueType"}})],1),n("v-col",{attrs:{cols:e.colSize,"data-test":"reduced"}},[n("v-autocomplete",{attrs:{label:"Reduced","hide-details":"",dense:"",items:e.reductionModes},model:{value:e.selectedReduced,callback:function(n){e.selectedReduced=n},expression:"selectedReduced"}})],1),n("v-col",{attrs:{cols:e.colSize,"data-test":"reduced-type"}},[n("v-autocomplete",{attrs:{label:"Reduced Type","hide-details":"",dense:"",disabled:"DECOM"===e.selectedReduced,items:e.reducedTypes},model:{value:e.selectedReducedType,callback:function(n){e.selectedReducedType=n},expression:"selectedReducedType"}})],1),n("v-col",{attrs:{cols:e.colSize}})],1):e._e(),n("v-row",{staticClass:"pt-1",attrs:{"no-gutters":""}},[e.hazardous?n("v-col",{staticClass:"openc3-yellow",staticStyle:{"white-space":"pre"},attrs:{cols:e.colSize}},[e._v("Description: "+e._s(e.description)+" (HAZARDOUS)")]):n("v-col",{staticStyle:{"white-space":"pre"},attrs:{cols:e.colSize}},[e._v("Description: "+e._s(e.description)+" ")])],1)],1)}),Q=[],ee=(t(1951),t(9228),{props:{allowAll:{type:Boolean,default:!1},allowAllTargets:{type:Boolean,default:!1},buttonText:{type:String,default:null},chooseItem:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},initialTargetName:{type:String,default:""},initialPacketName:{type:String,default:""},initialItemName:{type:String,default:""},selectTypes:{type:Boolean,default:!1},mode:{type:String,default:"tlm",validator:function(e){return["cmd","tlm"].includes(e)}},unknown:{type:Boolean,default:!1},vertical:{type:Boolean,default:!1}},data:function(){var e,n,t;return{targetNames:[],selectedTargetName:null===(e=this.initialTargetName)||void 0===e?void 0:e.toUpperCase(),packetNames:[],selectedPacketName:null===(n=this.initialPacketName)||void 0===n?void 0:n.toUpperCase(),itemNames:[],selectedItemName:null===(t=this.initialItemName)||void 0===t?void 0:t.toUpperCase(),valueTypes:["CONVERTED","RAW"],selectedValueType:"CONVERTED",reductionModes:[{text:"NONE",value:"DECOM"},{text:"REDUCED_MINUTE",value:"REDUCED_MINUTE"},{text:"REDUCED_HOUR",value:"REDUCED_HOUR"},{text:"REDUCED_DAY",value:"REDUCED_DAY"}],selectedReduced:"DECOM",reducedTypes:["MIN","MAX","AVG","STDDEV"],selectedReducedType:"AVG",description:"",hazardous:!1,internalDisabled:!1,packetsDisabled:!1,itemsDisabled:!1,api:null,ALL:{label:"[ ALL ]",value:"ALL",description:"ALL"},UNKNOWN:{label:"[ UNKNOWN ]",value:"UNKNOWN",description:"UNKNOWN"}}},created:function(){var e=this;this.internalDisabled=!0,this.api=new x,this.api.get_target_names().then((function(n){e.targetNames=n.flatMap((function(e){return"UNKNOWN"==e?[]:{label:e,value:e}})),e.allowAllTargets&&e.targetNames.unshift(e.ALL),e.selectedTargetName||(e.selectedTargetName=e.targetNames[0].value,e.targetNameChanged(e.selectedTargetName)),e.updatePackets(),e.unknown&&e.targetNames.push(e.UNKNOWN)}))},computed:{actualButtonText:function(){return"ALL"===this.selectedPacketName?"Add Target":"ALL"===this.selectedItemName?"Add Packet":this.buttonText},buttonDisabled:function(){return this.disabled||this.internalDisabled},targetChooserStyle:function(){return this.chooseItem||this.buttonText?{width:"25%",float:"left","margin-right":"5px"}:{width:"49%",float:"left"}},packetChooserStyle:function(){return this.chooseItem||this.buttonText?{width:"25%",float:"left","margin-right":"5px"}:{width:"50%",float:"right"}},colSize:function(){return!!this.vertical&&12}},watch:{mode:function(e,n){this.selectedPacketName=null,this.selectedItemName=null,this.updatePackets()}},methods:{updatePackets:function(){var e=this;if("UNKNOWN"===this.selectedTargetName)return this.packetNames=[this.UNKNOWN],this.selectedPacketName=this.packetNames[0].value,this.packetNameChanged(this.UNKNOWN.value),void(this.description="UNKNOWN");if("ALL"===this.selectedTargetName)return this.packetNames=[this.ALL],this.selectedPacketName=this.packetNames[0].value,this.packetNameChanged(this.ALL.value),void(this.description="ALL");this.internalDisabled=!0;var n="tlm"===this.mode?"get_all_telemetry_names":"get_all_command_names";this.api[n](this.selectedTargetName).then((function(n){e.packetNames=n.map((function(e){return{label:e,value:e}})),e.allowAll&&e.packetNames.unshift(e.ALL),e.selectedPacketName||(e.selectedPacketName=e.packetNames[0].value),e.packetNameChanged(e.selectedPacketName);e.packetNames.find((function(n){return n.value===e.selectedPacketName}));e.chooseItem&&e.updateItems(),e.internalDisabled=!1}))},updateItems:function(){var e=this;if("ALL"!==this.selectedPacketName){this.internalDisabled=!0;var n="tlm"===this.mode?"get_telemetry":"get_command";this.api[n](this.selectedTargetName,this.selectedPacketName).then((function(n){e.itemNames=n.items.map((function(e){return[{label:e.name,value:e.name,description:e.description}]})).reduce((function(e,n){return e.concat(n)}),[]),e.allowAll&&e.itemNames.unshift(e.ALL),e.selectedItemName||(e.selectedItemName=e.itemNames[0].value),e.description=e.itemNames[0].description,e.internalDisabled=!1,e.$emit("on-set",{targetName:e.selectedTargetName,packetName:e.selectedPacketName,itemName:e.selectedItemName,valueType:e.selectedValueType,reduced:e.selectedReduced,reducedType:e.selectedReducedType})}))}},targetNameChanged:function(e){this.selectedTargetName=e,this.selectedPacketName="",this.selectedItemName="",this.updatePackets()},packetNameChanged:function(e){var n=this;if("ALL"===e)this.itemsDisabled=!0,this.internalDisabled=!1;else{this.itemsDisabled=!1;var t=this.packetNames.find((function(n){return e===n.value}));this.selectedPacketName=t.value;var o="tlm"===this.mode?"get_telemetry":"get_command";this.api[o](this.selectedTargetName,this.selectedPacketName).then((function(e){n.description=e.description,n.hazardous=e.hazardous}))}this.chooseItem?this.updateItems():this.$emit("on-set",{targetName:this.selectedTargetName,packetName:this.selectedPacketName,itemName:this.selectedItemName,valueType:this.selectedValueType,reduced:this.selectedReduced,reducedType:this.selectedReducedType})},itemNameChanged:function(e){var n=this.itemNames.find((function(n){return e===n.value}));this.selectedItemName=n.value,this.description=n.description,this.$emit("on-set",{targetName:this.selectedTargetName,packetName:this.selectedPacketName,itemName:this.selectedItemName,valueType:this.selectedValueType,reduced:this.selectedReduced,reducedType:this.selectedReducedType})},buttonPressed:function(){"ALL"===this.selectedPacketName?this.allTargetPacketItems():"ALL"===this.selectedItemName?this.allPacketItems():this.chooseItem?this.$emit("click",{targetName:this.selectedTargetName,packetName:this.selectedPacketName,itemName:this.selectedItemName,valueType:this.selectedValueType,reduced:this.selectedReduced,reducedType:this.selectedReducedType}):this.$emit("click",{targetName:this.selectedTargetName,packetName:this.selectedPacketName,valueType:this.selectedValueType,reduced:this.selectedReduced,reducedType:this.selectedReducedType})},allTargetPacketItems:function(){var e=this;this.packetNames.forEach((function(n){if(n!==e.ALL){var t="tlm"===e.mode?"get_telemetry":"get_command";e.api[t](e.selectedTargetName,n.value).then((function(t){t.items.forEach((function(t){e.$emit("click",{targetName:e.selectedTargetName,packetName:n.value,itemName:t["name"],valueType:e.selectedValueType,reduced:e.selectedReduced,reducedType:e.selectedReducedType})}))}))}}))},allPacketItems:function(){var e=this;this.itemNames.forEach((function(n){n!==e.ALL&&e.$emit("click",{targetName:e.selectedTargetName,packetName:e.selectedPacketName,itemName:n.value,valueType:e.selectedValueType,reduced:e.selectedReduced,reducedType:e.selectedReducedType})}))}}}),ne=ee,te=(t(9841),(0,I.Z)(ne,J,Q,!1,null,null,null)),oe=te.exports;function le(){var e="/openc3/plugins/packages/openc3-cosmos-tool-dataviewer/src/tools/DataViewer/AddComponentDialog.vue",n="61dc42db7c91abce276d9244422190456608f03f",t=new Function("return this")(),o="__coverage__",l={path:"/openc3/plugins/packages/openc3-cosmos-tool-dataviewer/src/tools/DataViewer/AddComponentDialog.vue",statementMap:{0:{start:{line:13,column:4},end:{line:30,column:5}},1:{start:{line:34,column:6},end:{line:38,column:7}},2:{start:{line:35,column:8},end:{line:35,column:19}},3:{start:{line:37,column:8},end:{line:37,column:20}},4:{start:{line:41,column:6},end:{line:43,column:7}},5:{start:{line:42,column:8},end:{line:42,column:50}},6:{start:{line:44,column:6},end:{line:44,column:18}},7:{start:{line:48,column:8},end:{line:48,column:25}},8:{start:{line:51,column:8},end:{line:51,column:34}},9:{start:{line:59,column:8},end:{line:59,column:29}},10:{start:{line:65,column:17},end:{line:65,column:40}},11:{start:{line:66,column:6},end:{line:68,column:7}},12:{start:{line:67,column:8},end:{line:67,column:20}},13:{start:{line:69,column:6},end:{line:75,column:8}},14:{start:{line:78,column:6},end:{line:83,column:8}},15:{start:{line:86,column:18},end:{line:86,column:44}},16:{start:{line:87,column:6},end:{line:87,column:35}},17:{start:{line:90,column:6},end:{line:90,column:30}}},fnMap:{0:{name:"(anonymous_0)",decl:{start:{line:12,column:2},end:{line:12,column:3}},loc:{start:{line:12,column:9},end:{line:31,column:3}},line:12},1:{name:"(anonymous_1)",decl:{start:{line:33,column:14},end:{line:33,column:15}},loc:{start:{line:33,column:26},end:{line:39,column:5}},line:33},2:{name:"(anonymous_2)",decl:{start:{line:40,column:25},end:{line:40,column:26}},loc:{start:{line:40,column:37},end:{line:45,column:5}},line:40},3:{name:"(anonymous_3)",decl:{start:{line:47,column:6},end:{line:47,column:7}},loc:{start:{line:47,column:12},end:{line:49,column:7}},line:47},4:{name:"(anonymous_4)",decl:{start:{line:50,column:6},end:{line:50,column:7}},loc:{start:{line:50,column:17},end:{line:52,column:7}},line:50},5:{name:"(anonymous_5)",decl:{start:{line:58,column:15},end:{line:58,column:16}},loc:{start:{line:58,column:27},end:{line:60,column:7}},line:58},6:{name:"(anonymous_6)",decl:{start:{line:64,column:15},end:{line:64,column:16}},loc:{start:{line:64,column:32},end:{line:76,column:5}},line:64},7:{name:"(anonymous_7)",decl:{start:{line:77,column:18},end:{line:77,column:19}},loc:{start:{line:77,column:35},end:{line:84,column:5}},line:77},8:{name:"(anonymous_8)",decl:{start:{line:85,column:16},end:{line:85,column:17}},loc:{start:{line:85,column:32},end:{line:88,column:5}},line:85},9:{name:"(anonymous_9)",decl:{start:{line:89,column:24},end:{line:89,column:25}},loc:{start:{line:89,column:36},end:{line:91,column:5}},line:89}},branchMap:{0:{loc:{start:{line:34,column:6},end:{line:38,column:7}},type:"if",locations:[{start:{line:34,column:6},end:{line:38,column:7}},{start:{line:36,column:13},end:{line:38,column:7}}],line:34},1:{loc:{start:{line:34,column:10},end:{line:34,column:70}},type:"binary-expr",locations:[{start:{line:34,column:10},end:{line:34,column:41}},{start:{line:34,column:45},end:{line:34,column:70}}],line:34},2:{loc:{start:{line:41,column:6},end:{line:43,column:7}},type:"if",locations:[{start:{line:41,column:6},end:{line:43,column:7}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:41},3:{loc:{start:{line:66,column:6},end:{line:68,column:7}},type:"if",locations:[{start:{line:66,column:6},end:{line:68,column:7}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:66}},s:{0:0,1:0,2:0,3:0,4:0,5:0,6:0,7:0,8:0,9:0,10:0,11:0,12:0,13:0,14:0,15:0,16:0,17:0},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:["AddComponentDialog.vue"],names:[],mappings:";AA+KA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA",file:"AddComponentDialog.vue",sourceRoot:"src/tools/DataViewer",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 addstopums 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 <div>\n \x3c!-- Dialog for adding a new component to a tab --\x3e\n <v-dialog v-model="show" width="800">\n <v-card>\n <v-system-bar>\n <v-spacer />\n <span> Configure Component </span>\n <v-spacer />\n </v-system-bar>\n <v-card-text>\n <v-container>\n <v-row align="center">\n <v-col>Select Component:</v-col>\n <v-col>\n <v-select\n hide-details\n dense\n outlined\n :items="components"\n item-text="label"\n item-value="value"\n v-model="selectedComponent"\n return-object\n data-test="select-component"\n />\n </v-col>\n </v-row>\n <v-row\n ><v-col>Add packets for this component to process.</v-col></v-row\n >\n <v-row>\n <v-col class="my-2">\n <v-radio-group\n v-model="newPacketCmdOrTlm"\n row\n hide-details\n class="mt-0"\n >\n <v-radio\n label="Command"\n value="cmd"\n data-test="command-packet-radio"\n />\n <v-radio\n label="Telemetry"\n value="tlm"\n data-test="telemetry-packet-radio"\n />\n </v-radio-group>\n </v-col>\n </v-row>\n <v-row>\n <v-col>\n <target-packet-item-chooser\n unknown\n button-text="Add Packet"\n @click="addPacket"\n />\n </v-col>\n </v-row>\n <v-row>\n <v-col>\n <v-radio-group v-model="newPacketMode" row hide-details>\n <v-radio\n label="Raw"\n value="RAW"\n data-test="new-packet-raw-radio"\n />\n <v-radio\n label="Decom"\n value="DECOM"\n :disabled="disableRadioOptions"\n data-test="new-packet-decom-radio"\n />\n </v-radio-group>\n </v-col>\n <v-col>\n <v-select\n v-if="newPacketMode === \'DECOM\'"\n v-model="newPacketValueType"\n hide-details\n label="Value Type"\n data-test="add-packet-value-type"\n :items="valueTypes"\n />\n </v-col>\n </v-row>\n <v-row\n ><v-col>\n <v-data-table\n :headers="headers"\n :items="packets"\n :search="search"\n :items-per-page="itemsPerPage"\n @update:items-per-page="itemsPerPage = $event"\n :footer-props="{\n itemsPerPageOptions: [10, 100],\n showFirstLastPage: true,\n firstIcon: \'mdi-page-first\',\n lastIcon: \'mdi-page-last\',\n prevIcon: \'mdi-chevron-left\',\n nextIcon: \'mdi-chevron-right\',\n }"\n calculate-widths\n multi-sort\n dense\n >\n <template v-slot:item.delete="{ item }">\n <v-tooltip bottom>\n <template v-slot:activator="{ on, attrs }">\n <v-icon\n @click="deleteItem(item)"\n v-bind="attrs"\n v-on="on"\n >\n mdi-delete\n </v-icon>\n </template>\n <span>Delete Item</span>\n </v-tooltip>\n </template>\n </v-data-table>\n </v-col></v-row\n >\n </v-container>\n </v-card-text>\n <v-card-actions>\n <v-spacer />\n <v-btn\n outlined\n class="mx-2"\n data-test="cancel-component"\n @click="cancelAddComponent"\n >\n Cancel\n </v-btn>\n <v-btn\n color="primary"\n class="mx-2"\n data-test="add-component"\n :disabled="notValid"\n @click="addComponent"\n >\n Create\n </v-btn>\n </v-card-actions>\n </v-card>\n </v-dialog>\n </div>\n</template>\n\n<script>\nimport TargetPacketItemChooser from \'@openc3/tool-common/src/components/TargetPacketItemChooser\'\n\nexport default {\n components: {\n TargetPacketItemChooser,\n },\n props: {\n value: Boolean, // value is the default prop when using v-model\n components: Object,\n },\n data() {\n return {\n selectedComponent: this.components[0],\n newPacket: null,\n newPacketCmdOrTlm: \'tlm\',\n newPacketMode: \'RAW\',\n valueTypes: [\'CONVERTED\', \'RAW\', \'FORMATTED\', \'WITH_UNITS\'],\n newPacketValueType: \'WITH_UNITS\',\n headers: [\n { text: \'Cmd/Tlm\', value: \'cmdOrTlm\' },\n { text: \'Target\', value: \'targetName\' },\n { text: \'Packet\', value: \'packetName\' },\n { text: \'Mode\', value: \'mode\' },\n { text: \'ValueType\', value: \'valueType\' },\n { text: \'Delete\', value: \'delete\' },\n ],\n itemsPerPage: 20,\n packets: [],\n }\n },\n computed: {\n notValid: function () {\n if (this.selectedComponent === null || this.packets.length === 0) {\n return true\n } else {\n return false\n }\n },\n disableRadioOptions: function () {\n if (this.newPacket) {\n return this.newPacket.packet === \'UNKNOWN\'\n }\n return false\n },\n show: {\n get() {\n return this.value\n },\n set(value) {\n this.$emit(\'input\', value) // input is the default event when using v-model\n },\n },\n },\n watch: {\n newPacketCmdOrTlm: {\n immediate: true,\n handler: function () {\n this.newPacket = null\n },\n },\n },\n methods: {\n addPacket: function (event) {\n let type = this.newPacketValueType\n if (this.newPacketMode === \'RAW\') {\n type = \'N/A\'\n }\n this.packets.push({\n cmdOrTlm: this.newPacketCmdOrTlm.toUpperCase(),\n targetName: event.targetName,\n packetName: event.packetName,\n mode: this.newPacketMode,\n valueType: type,\n })\n },\n addComponent: function (event) {\n this.$emit(\'add\', {\n packets: this.packets,\n component: this.selectedComponent,\n mode: this.newPacketMode,\n valueType: this.newPacketValueType,\n })\n },\n deleteItem: function (item) {\n var index = this.packets.indexOf(item)\n this.packets.splice(index, 1)\n },\n cancelAddComponent: function () {\n this.$emit(\'cancel\', {})\n },\n },\n}\n<\/script>\n']},_coverageSchema:"1a1c01bbd47fc00a2c39e90264f33305004495a9",hash:"61dc42db7c91abce276d9244422190456608f03f"},i=t[o]||(t[o]={});i[e]&&i[e].hash===n||(i[e]=l);var a=i[e];return le=function(){return a},a}le();var ie={components:{TargetPacketItemChooser:oe},props:{value:Boolean,components:Object},data:function(){return le().f[0]++,le().s[0]++,{selectedComponent:this.components[0],newPacket:null,newPacketCmdOrTlm:"tlm",newPacketMode:"RAW",valueTypes:["CONVERTED","RAW","FORMATTED","WITH_UNITS"],newPacketValueType:"WITH_UNITS",headers:[{text:"Cmd/Tlm",value:"cmdOrTlm"},{text:"Target",value:"targetName"},{text:"Packet",value:"packetName"},{text:"Mode",value:"mode"},{text:"ValueType",value:"valueType"},{text:"Delete",value:"delete"}],itemsPerPage:20,packets:[]}},computed:{notValid:function(){return le().f[1]++,le().s[1]++,le().b[1][0]++,null===this.selectedComponent||(le().b[1][1]++,0===this.packets.length)?(le().b[0][0]++,le().s[2]++,!0):(le().b[0][1]++,le().s[3]++,!1)},disableRadioOptions:function(){return le().f[2]++,le().s[4]++,this.newPacket?(le().b[2][0]++,le().s[5]++,"UNKNOWN"===this.newPacket.packet):(le().b[2][1]++,le().s[6]++,!1)},show:{get:function(){return le().f[3]++,le().s[7]++,this.value},set:function(e){le().f[4]++,le().s[8]++,this.$emit("input",e)}}},watch:{newPacketCmdOrTlm:{immediate:!0,handler:function(){le().f[5]++,le().s[9]++,this.newPacket=null}}},methods:{addPacket:function(e){le().f[6]++;var n=(le().s[10]++,this.newPacketValueType);le().s[11]++,"RAW"===this.newPacketMode?(le().b[3][0]++,le().s[12]++,n="N/A"):le().b[3][1]++,le().s[13]++,this.packets.push({cmdOrTlm:this.newPacketCmdOrTlm.toUpperCase(),targetName:e.targetName,packetName:e.packetName,mode:this.newPacketMode,valueType:n})},addComponent:function(e){le().f[7]++,le().s[14]++,this.$emit("add",{packets:this.packets,component:this.selectedComponent,mode:this.newPacketMode,valueType:this.newPacketValueType})},deleteItem:function(e){le().f[8]++;var n=(le().s[15]++,this.packets.indexOf(e));le().s[16]++,this.packets.splice(n,1)},cancelAddComponent:function(){le().f[9]++,le().s[17]++,this.$emit("cancel",{})}}},ae=ie,ce=(0,I.Z)(ae,Y,X,!1,null,null,null),se=ce.exports;function re(){var e="/openc3/plugins/packages/openc3-cosmos-tool-dataviewer/src/tools/DataViewer/DynamicComponent.vue",n="683d9f83ba62344b008ac49ba690564dd445d63e",t=new Function("return this")(),o="__coverage__",l={path:"/openc3/plugins/packages/openc3-cosmos-tool-dataviewer/src/tools/DataViewer/DynamicComponent.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:266}},4:{start:{line:1,column:184},end:{line:1,column:210}},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:171},end:{line:1,column:172}},loc:{start:{line:1,column:184},end:{line:1,column:210}},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:"683d9f83ba62344b008ac49ba690564dd445d63e"},i=t[o]||(t[o]={});i[e]&&i[e].hash===n||(i[e]=l);var a=i[e];return re=function(){return a},a}re(),re().s[0]++;var ue=function(){re().f[0]++;var e=(re().s[1]++,this),n=(re().s[2]++,e._self._c);return re().s[3]++,n(e.widgetType,e._b({ref:"dynamic",tag:"component",attrs:{config:e.currentConfig},on:{config:function(n){return re().f[1]++,re().s[4]++,e.currentConfig=n}}},"component",(0,a.Z)((0,a.Z)({},e.$props),e.$attrs),!1))},me=(re().s[5]++,[]),de={props:{config:{type:Object},packets:{type:Array}},data:function(){return{currentConfig:{},currentPackets:[],latestData:null}},computed:{hasRaw:function(){for(var e=0;e<this.currentPackets.length;e++)if("RAW"===this.currentPackets[e].mode)return!0;return!1},hasDecom:function(){for(var e=0;e<this.currentPackets.length;e++)if("DECOM"===this.currentPackets[e].mode)return!0;return!1}},watch:{currentConfig:{deep:!0,handler:function(e){this.$emit("config",e)}}},created:function(){this.config&&(this.currentConfig=(0,a.Z)({},this.config)),this.packets&&(this.currentPackets=(0,c.Z)(this.packets))},methods:{receive:function(e){this.latestData=e}}};function Ae(){var e="/openc3/plugins/packages/openc3-cosmos-tool-dataviewer/src/tools/DataViewer/DynamicComponent.vue",n="bb923feddbd69c5fa223c7b28bb2331f8d7de1ca",t=new Function("return this")(),o="__coverage__",l={path:"/openc3/plugins/packages/openc3-cosmos-tool-dataviewer/src/tools/DataViewer/DynamicComponent.vue",statementMap:{0:{start:{line:7,column:4},end:{line:9,column:5}},1:{start:{line:16,column:6},end:{line:16,column:91}},2:{start:{line:21,column:6},end:{line:21,column:41}},3:{start:{line:25,column:4},end:{line:30,column:5}},4:{start:{line:27,column:6},end:{line:27,column:79}},5:{start:{line:29,column:6},end:{line:29,column:53}}},fnMap:{0:{name:"(anonymous_0)",decl:{start:{line:6,column:2},end:{line:6,column:3}},loc:{start:{line:6,column:9},end:{line:10,column:3}},line:6},1:{name:"(anonymous_1)",decl:{start:{line:15,column:9},end:{line:15,column:10}},loc:{start:{line:15,column:21},end:{line:17,column:5}},line:15},2:{name:"(anonymous_2)",decl:{start:{line:20,column:16},end:{line:20,column:17}},loc:{start:{line:20,column:32},end:{line:22,column:5}},line:20},3:{name:"(anonymous_3)",decl:{start:{line:24,column:2},end:{line:24,column:3}},loc:{start:{line:24,column:18},end:{line:31,column:3}},line:24}},branchMap:{},s:{0:0,1:0,2:0,3:0,4:0,5:0},f:{0:0,1:0,2:0,3:0},b:{},inputSourceMap:{version:3,sources:["DynamicComponent.vue"],names:[],mappings:";AA6BA;;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",file:"DynamicComponent.vue",sourceRoot:"src/tools/DataViewer",sourcesContent:['\x3c!--\n# Copyright 2022 OpenC3, Inc.\n# All Rights Reserved.\n#\n# This program is free software; you can modify and/or redistribute it\n# under the terms of the GNU Affero General Public License\n# as published by the Free Software Foundation; version 3 with\n# attribution addendums as found in the LICENSE.txt\n#\n# This program is distributed in the hope that it will be useful,\n# but WITHOUT ANY WARRANTY; without even the implied warranty of\n# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n# GNU Affero General Public License for more details.\n\n# This file may also be used under the terms of a commercial license\n# if purchased from OpenC3, Inc.\n--\x3e\n\n<template>\n <component\n ref="dynamic"\n :is="widgetType"\n :config="currentConfig"\n @config="(config) => (currentConfig = config)"\n v-bind="{ ...$props, ...$attrs }"\n ></component>\n</template>\n\n<script>\nimport Component from \'@openc3/tool-common/src/components/dataviewer/Component\'\n\nexport default {\n mixins: [Component],\n data() {\n return {\n widgetType: null,\n }\n },\n props: {\n name: { default: null },\n },\n computed: {\n url: function () {\n return `${window.location.origin}/tools/widgets/${this.name}/${this.name}.umd.min.js`\n },\n },\n watch: {\n latestData: function (data) {\n this.$refs[\'dynamic\'].receive(data)\n },\n },\n async mounted() {\n try {\n /* eslint-disable-next-line */\n this.widgetType = await System.import(/* webpackIgnore: true */ this.url)\n } catch (e) {\n throw new Error(`Unknown widget: ${this.name}`)\n }\n },\n}\n<\/script>\n']},_coverageSchema:"1a1c01bbd47fc00a2c39e90264f33305004495a9",hash:"bb923feddbd69c5fa223c7b28bb2331f8d7de1ca"},i=t[o]||(t[o]={});i[e]&&i[e].hash===n||(i[e]=l);var a=i[e];return Ae=function(){return a},a}Ae();var pe={mixins:[de],data:function(){return Ae().f[0]++,Ae().s[0]++,{widgetType:null}},props:{name:{default:null}},computed:{url:function(){return Ae().f[1]++,Ae().s[1]++,"".concat(window.location.origin,"/tools/widgets/").concat(this.name,"/").concat(this.name,".umd.min.js")}},watch:{latestData:function(e){Ae().f[2]++,Ae().s[2]++,this.$refs["dynamic"].receive(e)}},mounted:function(){var e=this;return(0,u.Z)((0,r.Z)().mark((function n(){return(0,r.Z)().wrap((function(n){while(1)switch(n.prev=n.next){case 0:return Ae().f[3]++,Ae().s[3]++,n.prev=2,Ae().s[4]++,n.next=6,System.import(e.url);case 6:e.widgetType=n.sent,n.next=13;break;case 9:throw n.prev=9,n.t0=n["catch"](2),Ae().s[5]++,new Error("Unknown widget: ".concat(e.name));case 13:case"end":return n.stop()}}),n,null,[[2,9]])})))()}},fe=pe,he=(0,I.Z)(fe,ue,me,!1,null,null,null),ve=he.exports;function ge(){var e="/openc3/plugins/packages/openc3-cosmos-tool-dataviewer/src/tools/DataViewer/DumpComponent.vue",n="6e7aed508e299df55187c4d24d333fd30a1ae7fe",t=new Function("return this")(),o="__coverage__",l={path:"/openc3/plugins/packages/openc3-cosmos-tool-dataviewer/src/tools/DataViewer/DumpComponent.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:271}},4:{start:{line:1,column:241},end:{line:1,column:267}},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:228},end:{line:1,column:229}},loc:{start:{line:1,column:241},end:{line:1,column:267}},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:"6e7aed508e299df55187c4d24d333fd30a1ae7fe"},i=t[o]||(t[o]={});i[e]&&i[e].hash===n||(i[e]=l);var a=i[e];return ge=function(){return a},a}ge(),ge().s[0]++;var Ce=function(){ge().f[0]++;var e=(ge().s[1]++,this),n=(ge().s[2]++,e._self._c);return ge().s[3]++,n("history-component",{ref:"history",attrs:{config:e.currentConfig,packets:e.currentPackets,calculatePacketText:e.calculatePacketText},on:{config:function(n){return ge().f[1]++,ge().s[4]++,e.currentConfig=n}}})},be=(ge().s[5]++,[]),ye=(t(977),function(){var e=this,n=e._self._c;return n("v-container",{staticClass:"pt-0"},[n("v-row",{attrs:{dense:""}},[n("v-col",[n("v-text-field",{staticClass:"pt-0 mt-0",attrs:{label:"Search","append-icon":"mdi-magnify","single-line":"","hide-details":"","data-test":"history-component-search"},model:{value:e.filterText,callback:function(n){e.filterText=n},expression:"filterText"}})],1)],1),n("v-row",[n("v-col",[n("v-slider",{attrs:{"prepend-icon":"mdi-step-backward","append-icon":"mdi-step-forward",min:1-e.currentConfig.history,max:0,"hide-details":""},on:{mousedown:e.pause,"click:prepend":e.stepBackward,"click:append":e.stepForward},model:{value:e.pauseOffset,callback:function(n){e.pauseOffset=n},expression:"pauseOffset"}})],1)],1),n("v-row",{attrs:{dense:"","no-gutters":""}},[n("v-col",[n("div",{staticClass:"text-area-container"},[n("v-textarea",{ref:"textarea",attrs:{value:e.displayText,rows:"1","no-resize":"",readonly:"",solo:"",flat:"","hide-details":"","data-test":"history-component-text-area"}}),n("div",{staticClass:"floating-buttons"},[n("v-menu",{attrs:{"close-on-content-click":!1,"min-width":700,"nudge-left":710,"nudge-top":250},scopedSlots:e._u([{key:"activator",fn:function(t){var o=t.on,l=t.attrs;return[n("v-btn",e._g(e._b({staticClass:"ml-2",attrs:{color:"secondary",fab:"",small:"","data-test":"history-component-open-settings"}},"v-btn",l,!1),o),[n("v-icon",[e._v("$astro-settings")])],1)]}}])},[n("v-card",[n("v-card-title",{attrs:{"data-test":"display-settings-card"}},[e._v(" Display settings ")]),n("v-card-text",[n("v-row",[n("v-col",[n("v-switch",{attrs:{label:"Show timestamp",dense:"","hide-details":"","data-test":"history-component-settings-show-timestamp"},model:{value:e.currentConfig.showTimestamp,callback:function(n){e.$set(e.currentConfig,"showTimestamp",n)},expression:"currentConfig.showTimestamp"}}),e.hasRaw?n("v-switch",{attrs:{label:"Show ASCII",dense:"","hide-details":"","data-test":"history-component-settings-show-ascii"},model:{value:e.currentConfig.showAscii,callback:function(n){e.$set(e.currentConfig,"showAscii",n)},expression:"currentConfig.showAscii"}}):e._e(),e.hasRaw?n("v-switch",{attrs:{label:"Show line address",dense:"","hide-details":"","data-test":"history-component-settings-show-address"},model:{value:e.currentConfig.showLineAddress,callback:function(n){e.$set(e.currentConfig,"showLineAddress",n)},expression:"currentConfig.showLineAddress"}}):e._e()],1),n("v-col",[n("v-radio-group",{attrs:{label:"Print newest packets to the"},model:{value:e.currentConfig.newestAtTop,callback:function(n){e.$set(e.currentConfig,"newestAtTop",n)},expression:"currentConfig.newestAtTop"}},[n("v-radio",{attrs:{label:"Top",value:!0,"data-test":"history-component-settings-newest-top"}}),n("v-radio",{attrs:{label:"Bottom",value:!1,"data-test":"history-component-settings-newest-bottom"}})],1)],1),n("v-col",[n("v-text-field",{attrs:{label:"History Buffer",type:"number",min:"1","persistent-hint":"",rules:[e.rules.required,e.rules.min],"data-test":"history-component-settings-history"},model:{value:e.currentConfig.history,callback:function(n){e.$set(e.currentConfig,"history",n)},expression:"currentConfig.history"}}),e.hasRaw?n("v-text-field",{attrs:{label:"Bytes per line",type:"number",min:"1",rules:[e.rules.required,e.rules.min],"data-test":"history-component-settings-num-bytes"},model:{value:e.currentConfig.bytesPerLine,callback:function(n){e.$set(e.currentConfig,"bytesPerLine",n)},expression:"currentConfig.bytesPerLine"}}):e._e(),n("v-text-field",{attrs:{label:"Packets to show",type:"number",min:"1",hint:"Maximum: ".concat(e.currentConfig.history),"persistent-hint":"",rules:[e.rules.required,e.rules.min,e.rules.max],"data-test":"history-component-settings-num-packets"},model:{value:e.currentConfig.packetsToShow,callback:function(n){e.$set(e.currentConfig,"packetsToShow",n)},expression:"currentConfig.packetsToShow"}})],1)],1)],1)],1)],1),n("v-btn",{staticClass:"ml-2",attrs:{color:"secondary",fab:"",small:"","data-test":"history-component-download"},on:{click:e.download}},[n("v-icon",[e._v("mdi-file-download")])],1),n("v-btn",{staticClass:"ml-2",class:{pulse:e.paused},attrs:{color:"primary",fab:"","data-test":"history-component-play-pause"},on:{click:e.togglePlayPause}},[e.paused?n("v-icon",{attrs:{large:""}},[e._v("mdi-play")]):n("v-icon",{attrs:{large:""}},[e._v("mdi-pause")])],1)],1)],1)])],1)],1)}),_e=[],ke=(t(8995),t(4707),t(1497),t(5640),t(1871),t(4121),t(523),t(3673),t(753),t(8399),t(6635)),we=t.n(ke),Te={props:["calculatePacketText"],mixins:[de],data:function(){var e=this;return{history:[],historyPointer:-1,filterText:"",paused:!1,pausedAt:0,pauseOffset:0,pausedHistory:[],textarea:null,displayText:"",rules:{required:function(e){return!!e||"Required."},min:function(e){return e>=1||"Minimum: 1"},max:function(n){return parseInt(n)<=e.currentConfig.history||"Maximum: ".concat(e.currentConfig.history)}}}},computed:{allInstantSettings:function(){return"".concat(this.currentConfig.showLineAddress,"|").concat(this.currentConfig.showTimestamp,"|").concat(this.currentConfig.showAscii,"|").concat(this.currentConfig.newestAtTop,"|").concat(this.pauseOffset)},allDebouncedSettings:function(){return"".concat(this.currentConfig.bytesPerLine,"|").concat(this.currentConfig.packetsToShow,"|").concat(this.filterText)}},watch:{latestData:function(e){var n=this;e.forEach((function(e){"buffer"in e&&(e.buffer=atob(e.buffer)),n.historyPointer=++n.historyPointer%n.currentConfig.history,isNaN(n.historyPointer)&&(n.historyPointer=0),n.history[n.historyPointer]=e,n.paused||n.rebuildDisplayText()}))},paused:function(e){e?(this.pausedAt=this.historyPointer,this.pausedHistory=this.history.slice()):(this.pauseOffset=0,this.rebuildDisplayText())},allInstantSettings:function(){this.rebuildDisplayText()},allDebouncedSettings:we().debounce((function(){this.rebuildDisplayText()}),300)},created:function(){var e={history:300,showTimestamp:!0,showAscii:!0,showLineAddress:!0,packetsToShow:1,bytesPerLine:16,newestAtTop:!0};this.currentConfig=(0,a.Z)((0,a.Z)({},e),this.currentConfig)},mounted:function(){this.textarea=this.$refs.textarea.$el.querySelectorAll("textarea")[0]},methods:{rebuildDisplayText:function(){var e=this.paused?this.pausedHistory:this.history,n=this.paused?this.pausedAt:this.historyPointer;if(e=e.filter((function(e){return e})).slice(n+1,this.currentConfig.history).concat(e.slice(0,n+1)).map(this.calculatePacketText).map(this.matchesSearch),this.paused){var t=Math.max(e.length+this.pauseOffset,1);e=e.slice(0,t)}var o=Math.max(this.currentConfig.packetsToShow,1);e=e.slice(-o),this.currentConfig.newestAtTop&&(e=e.reverse());var l="\n";""===this.filterText&&(l+="\n"),this.displayText=e.join(l)},matchesSearch:function(e){var n=this;return""===this.filterText?e:e.split("\n").filter((function(e){return e.toLowerCase().includes(n.filterText.toLowerCase())})).join("\n")},download:function(){var e=new Blob([this.displayText],{type:"text/plain"}),n=document.createElement("a"),t=URL.createObjectURL(e);n.href=t,n.setAttribute("download","".concat((0,s.Z)(new Date,"yyyy_MM_dd_HH_mm_ss"),".txt")),n.click(),window.URL.revokeObjectURL(t)},pause:function(){this.paused=!0},togglePlayPause:function(){this.paused=!this.paused},stepBackward:function(){this.pause(),this.pauseOffset--},stepForward:function(){this.pause(),this.pauseOffset++}}},xe=Te,Ne=(t(7040),(0,I.Z)(xe,ye,_e,!1,null,"625a8260",null)),De=Ne.exports;function Se(){var e="/openc3/plugins/packages/openc3-cosmos-tool-dataviewer/src/tools/DataViewer/DumpComponent.vue",n="21050bed168fbbe03b57edf3caea8c9a5429cb0b",t=new Function("return this")(),o="__coverage__",l={path:"/openc3/plugins/packages/openc3-cosmos-tool-dataviewer/src/tools/DataViewer/DumpComponent.vue",statementMap:{0:{start:{line:13,column:6},end:{line:13,column:41}},1:{start:{line:18,column:17},end:{line:18,column:19}},2:{start:{line:19,column:6},end:{line:28,column:7}},3:{start:{line:20,column:29},end:{line:20,column:52}},4:{start:{line:21,column:32},end:{line:21,column:64}},5:{start:{line:22,column:29},end:{line:22,column:65}},6:{start:{line:23,column:24},end:{line:23,column:72}},7:{start:{line:24,column:8},end:{line:24,column:63}},8:{start:{line:25,column:8},end:{line:25,column:57}},9:{start:{line:26,column:8},end:{line:26,column:69}},10:{start:{line:27,column:8},end:{line:27,column:36}},11:{start:{line:29,column:6},end:{line:61,column:7}},12:{start:{line:31,column:8},end:{line:55,column:21}},13:{start:{line:34,column:30},end:{line:36,column:13}},14:{start:{line:35,column:14},end:{line:35,column:62}},15:{start:{line:37,column:29},end:{line:37,column:68}},16:{start:{line:38,column:23},end:{line:38,column:68}},17:{start:{line:39,column:12},end:{line:45,column:13}},18:{start:{line:40,column:14},end:{line:40,column:28}},19:{start:{line:41,column:14},end:{line:43,column:15}},20:{start:{line:42,column:16},end:{line:42,column:70}},21:{start:{line:44,column:14},end:{line:44,column:42}},22:{start:{line:47,column:12},end:{line:52,column:13}},23:{start:{line:48,column:30},end:{line:50,column:33}},24:{start:{line:51,column:14},end:{line:51,column:42}},25:{start:{line:53,column:12},end:{line:53,column:23}},26:{start:{line:57,column:8},end:{line:60,column:21}},27:{start:{line:58,column:28},end:{line:58,column:52}},28:{start:{line:59,column:25},end:{line:59,column:51}},29:{start:{line:62,column:6},end:{line:62,column:17}}},fnMap:{0:{name:"(anonymous_0)",decl:{start:{line:12,column:16},end:{line:12,column:17}},loc:{start:{line:12,column:32},end:{line:14,column:5}},line:12},1:{name:"(anonymous_1)",decl:{start:{line:17,column:25},end:{line:17,column:26}},loc:{start:{line:17,column:43},end:{line:63,column:5}},line:17},2:{name:"(anonymous_2)",decl:{start:{line:32,column:15},end:{line:32,column:16}},loc:{start:{line:32,column:37},end:{line:54,column:11}},line:32},3:{name:"(anonymous_3)",decl:{start:{line:34,column:44},end:{line:34,column:45}},loc:{start:{line:35,column:14},end:{line:35,column:62}},line:35},4:{name:"(anonymous_4)",decl:{start:{line:41,column:42},end:{line:41,column:43}},loc:{start:{line:42,column:16},end:{line:42,column:70}},line:42},5:{name:"(anonymous_5)",decl:{start:{line:58,column:18},end:{line:58,column:19}},loc:{start:{line:58,column:28},end:{line:58,column:52}},line:58},6:{name:"(anonymous_6)",decl:{start:{line:59,column:15},end:{line:59,column:16}},loc:{start:{line:59,column:25},end:{line:59,column:51}},line:59}},branchMap:{0:{loc:{start:{line:19,column:6},end:{line:28,column:7}},type:"if",locations:[{start:{line:19,column:6},end:{line:28,column:7}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:19},1:{loc:{start:{line:29,column:6},end:{line:61,column:7}},type:"if",locations:[{start:{line:29,column:6},end:{line:61,column:7}},{start:{line:56,column:13},end:{line:61,column:7}}],line:29},2:{loc:{start:{line:39,column:12},end:{line:45,column:13}},type:"if",locations:[{start:{line:39,column:12},end:{line:45,column:13}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:39},3:{loc:{start:{line:47,column:12},end:{line:52,column:13}},type:"if",locations:[{start:{line:47,column:12},end:{line:52,column:13}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:47}},s:{0:0,1:0,2:0,3:0,4:0,5:0,6:0,7:0,8:0,9:0,10:0,11:0,12:0,13:0,14:0,15:0,16:0,17:0,18:0,19:0,20:0,21:0,22:0,23:0,24:0,25:0,26:0,27:0,28:0,29:0},f:{0:0,1:0,2:0,3:0,4:0,5:0,6:0},b:{0:[0,0],1:[0,0],2:[0,0],3:[0,0]},inputSourceMap:{version:3,sources:["DumpComponent.vue"],names:[],mappings:";AAiCA;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",file:"DumpComponent.vue",sourceRoot:"src/tools/DataViewer",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 <history-component\n ref=\"history\"\n :config=\"currentConfig\"\n :packets=\"currentPackets\"\n :calculatePacketText=\"calculatePacketText\"\n @config=\"(config) => (currentConfig = config)\"\n ></history-component>\n</template>\n\n<script>\nimport HistoryComponent from '@openc3/tool-common/src/components/dataviewer/HistoryComponent'\nimport Component from '@openc3/tool-common/src/components/dataviewer/Component'\n\nexport default {\n mixins: [Component],\n components: {\n HistoryComponent,\n },\n watch: {\n // Hook the HistoryComponent's receive method to our latestData being updated\n latestData: function (data) {\n this.$refs['history'].receive(data)\n },\n },\n methods: {\n calculatePacketText: function (packet) {\n let text = ''\n if (this.currentConfig.showTimestamp) {\n const milliseconds = packet.__time / 1000000\n const receivedSeconds = (milliseconds / 1000).toFixed(7)\n const receivedDate = new Date(milliseconds).toISOString()\n let timestamp = '********************************************\\n'\n timestamp += `* Received seconds: ${receivedSeconds}\\n`\n timestamp += `* Received time: ${receivedDate}\\n`\n timestamp += '********************************************\\n'\n text = `${timestamp}${text}`\n }\n if ('buffer' in packet) {\n // Split its buffer into lines of the selected length\n text += _.chunk([...packet.buffer], this.currentConfig.bytesPerLine)\n .map((lineBytes, index) => {\n // Map each line into ASCII or hex values\n let mappedBytes = lineBytes.map((byte) =>\n byte.charCodeAt(0).toString(16).padStart(2, '0')\n )\n let lineLength = this.currentConfig.bytesPerLine * 3 - 1\n let line = mappedBytes.join(' ').padEnd(lineLength, ' ')\n if (this.currentConfig.showAscii) {\n line += ' '\n mappedBytes = lineBytes.map((byte) =>\n byte.replaceAll(/\\n/g, '\\\\n').replaceAll(/\\r/g, '\\\\r')\n )\n line += mappedBytes.join('')\n }\n // Prepend the line address if needed\n if (this.currentConfig.showLineAddress) {\n const address = (index * this.currentConfig.bytesPerLine)\n .toString(16)\n .padStart(8, '0')\n line = `${address}: ${line}`\n }\n return line\n })\n .join('\\n') // end of one line\n } else {\n text += Object.keys(packet)\n .filter((item) => item.slice(0, 2) != '__')\n .map((item) => `${item}: ${packet[item]}`)\n .join('\\n')\n }\n return text\n },\n },\n}\n<\/script>\n"]},_coverageSchema:"1a1c01bbd47fc00a2c39e90264f33305004495a9",hash:"21050bed168fbbe03b57edf3caea8c9a5429cb0b"},i=t[o]||(t[o]={});i[e]&&i[e].hash===n||(i[e]=l);var a=i[e];return Se=function(){return a},a}Se();var Pe={mixins:[de],components:{HistoryComponent:De},watch:{latestData:function(e){Se().f[0]++,Se().s[0]++,this.$refs["history"].receive(e)}},methods:{calculatePacketText:function(e){var n=this;Se().f[1]++;var t=(Se().s[1]++,"");if(Se().s[2]++,this.currentConfig.showTimestamp){Se().b[0][0]++;var o=(Se().s[3]++,e.__time/1e6),l=(Se().s[4]++,(o/1e3).toFixed(7)),i=(Se().s[5]++,new Date(o).toISOString()),a=(Se().s[6]++,"********************************************\n");Se().s[7]++,a+="* Received seconds: ".concat(l,"\n"),Se().s[8]++,a+="* Received time: ".concat(i,"\n"),Se().s[9]++,a+="********************************************\n",Se().s[10]++,t="".concat(a).concat(t)}else Se().b[0][1]++;return Se().s[11]++,"buffer"in e?(Se().b[1][0]++,Se().s[12]++,t+=_.chunk((0,c.Z)(e.buffer),this.currentConfig.bytesPerLine).map((function(e,t){Se().f[2]++;var o=(Se().s[13]++,e.map((function(e){return Se().f[3]++,Se().s[14]++,e.charCodeAt(0).toString(16).padStart(2,"0")}))),l=(Se().s[15]++,3*n.currentConfig.bytesPerLine-1),i=(Se().s[16]++,o.join(" ").padEnd(l," "));if(Se().s[17]++,n.currentConfig.showAscii?(Se().b[2][0]++,Se().s[18]++,i+=" ",Se().s[19]++,o=e.map((function(e){return Se().f[4]++,Se().s[20]++,e.replaceAll(/\n/g,"\\n").replaceAll(/\r/g,"\\r")})),Se().s[21]++,i+=o.join("")):Se().b[2][1]++,Se().s[22]++,n.currentConfig.showLineAddress){Se().b[3][0]++;var a=(Se().s[23]++,(t*n.currentConfig.bytesPerLine).toString(16).padStart(8,"0"));Se().s[24]++,i="".concat(a,": ").concat(i)}else Se().b[3][1]++;return Se().s[25]++,i})).join("\n")):(Se().b[1][1]++,Se().s[26]++,t+=Object.keys(e).filter((function(e){return Se().f[5]++,Se().s[27]++,"__"!=e.slice(0,2)})).map((function(n){return Se().f[6]++,Se().s[28]++,"".concat(n,": ").concat(e[n])})).join("\n")),Se().s[29]++,t}}},Oe=Pe,Ie=(0,I.Z)(Oe,Ce,be,!1,null,null,null),Re=Ie.exports;function Me(){var e="/openc3/plugins/packages/openc3-cosmos-tool-dataviewer/src/tools/DataViewer/DataViewer.vue",n="8aeb938aebfab382f6e6cd7ce49a7c4d18e17b24",t=new Function("return this")(),o="__coverage__",l={path:"/openc3/plugins/packages/openc3-cosmos-tool-dataviewer/src/tools/DataViewer/DataViewer.vue",statementMap:{0:{start:{line:27,column:4},end:{line:93,column:5}},1:{start:{line:44,column:29},end:{line:44,column:50}},2:{start:{line:59,column:16},end:{line:59,column:38}},3:{start:{line:66,column:16},end:{line:66,column:38}},4:{start:{line:73,column:16},end:{line:73,column:38}},5:{start:{line:97,column:6},end:{line:103,column:7}},6:{start:{line:106,column:6},end:{line:108,column:8}},7:{start:{line:107,column:8},end:{line:107,column:26}},8:{start:{line:113,column:6},end:{line:113,column:23}},9:{start:{line:119,column:6},end:{line:121,column:7}},10:{start:{line:120,column:8},end:{line:120,column:20}},11:{start:{line:126,column:4},end:{line:144,column:6}},12:{start:{line:127,column:6},end:{line:143,column:8}},13:{start:{line:129,column:22},end:{line:129,column:56}},14:{start:{line:130,column:8},end:{line:142,column:9}},15:{start:{line:131,column:10},end:{line:141,column:12}},16:{start:{line:132,column:24},end:{line:132,column:43}},17:{start:{line:133,column:12},end:{line:136,column:13}},18:{start:{line:134,column:14},end:{line:134,column:50}},19:{start:{line:135,column:14},end:{line:135,column:68}},20:{start:{line:137,column:12},end:{line:140,column:14}},21:{start:{line:145,column:4},end:{line:145,column:20}},22:{start:{line:148,column:27},end:{line:148,column:72}},23:{start:{line:150,column:4},end:{line:156,column:5}},24:{start:{line:151,column:6},end:{line:151,column:27}},25:{start:{line:152,column:6},end:{line:152,column:60}},26:{start:{line:153,column:11},end:{line:156,column:5}},27:{start:{line:154,column:6},end:{line:154,column:27}},28:{start:{line:155,column:6},end:{line:155,column:44}},29:{start:{line:159,column:4},end:{line:161,column:5}},30:{start:{line:160,column:6},end:{line:160,column:37}},31:{start:{line:162,column:4},end:{line:162,column:27}},32:{start:{line:166,column:6},end:{line:166,column:75}},33:{start:{line:169,column:6},end:{line:169,column:53}},34:{start:{line:169,column:27},end:{line:169,column:53}},35:{start:{line:172,column:6},end:{line:172,column:28}},36:{start:{line:174,column:6},end:{line:178,column:7}},37:{start:{line:175,column:8},end:{line:175,column:62}},38:{start:{line:176,column:8},end:{line:176,column:27}},39:{start:{line:177,column:8},end:{line:177,column:14}},40:{start:{line:180,column:6},end:{line:184,column:7}},41:{start:{line:181,column:8},end:{line:181,column:71}},42:{start:{line:182,column:8},end:{line:182,column:27}},43:{start:{line:183,column:8},end:{line:183,column:14}},44:{start:{line:186,column:6},end:{line:194,column:7}},45:{start:{line:187,column:8},end:{line:192,column:24}},46:{start:{line:193,column:8},end:{line:193,column:27}},47:{start:{line:195,column:6},end:{line:195,column:25}},48:{start:{line:196,column:6},end:{line:196,column:37}},49:{start:{line:199,column:6},end:{line:199,column:26}},50:{start:{line:200,column:6},end:{line:200,column:42}},51:{start:{line:203,column:6},end:{line:225,column:10}},52:{start:{line:205,column:30},end:{line:205,column:49}},53:{start:{line:207,column:12},end:{line:207,column:32}},54:{start:{line:208,column:12},end:{line:208,column:42}},55:{start:{line:211,column:12},end:{line:211,column:23}},56:{start:{line:212,column:12},end:{line:212,column:33}},57:{start:{line:213,column:12},end:{line:213,column:72}},58:{start:{line:214,column:12},end:{line:214,column:31}},59:{start:{line:215,column:12},end:{line:215,column:41}},60:{start:{line:218,column:12},end:{line:218,column:68}},61:{start:{line:219,column:12},end:{line:219,column:31}},62:{start:{line:223,column:10},end:{line:223,column:42}},63:{start:{line:224,column:10},end:{line:224,column:59}},64:{start:{line:224,column:28},end:{line:224,column:59}},65:{start:{line:228,column:6},end:{line:228,column:42}},66:{start:{line:230,column:25},end:{line:237,column:12}},67:{start:{line:231,column:8},end:{line:235,column:9}},68:{start:{line:232,column:10},end:{line:232,column:42}},69:{start:{line:234,column:10},end:{line:234,column:40}},70:{start:{line:236,column:8},end:{line:236,column:21}},71:{start:{line:238,column:6},end:{line:241,column:8}},72:{start:{line:240,column:8},end:{line:240,column:57}},73:{start:{line:242,column:6},end:{line:256,column:7}},74:{start:{line:244,column:10},end:{line:246,column:11}},75:{start:{line:245,column:12},end:{line:245,column:34}},76:{start:{line:247,column:10},end:{line:254,column:12}},77:{start:{line:248,column:12},end:{line:253,column:14}},78:{start:{line:259,column:6},end:{line:259,column:42}},79:{start:{line:260,column:6},end:{line:266,column:7}},80:{start:{line:261,column:8},end:{line:265,column:10}},81:{start:{line:269,column:6},end:{line:269,column:29}},82:{start:{line:270,column:6},end:{line:274,column:7}},83:{start:{line:271,column:8},end:{line:271,column:40}},84:{start:{line:272,column:8},end:{line:272,column:25}},85:{start:{line:273,column:8},end:{line:273,column:14}},86:{start:{line:275,column:6},end:{line:278,column:7}},87:{start:{line:276,column:8},end:{line:276,column:19}},88:{start:{line:277,column:8},end:{line:277,column:14}},89:{start:{line:279,column:29},end:{line:286,column:12}},90:{start:{line:280,column:8},end:{line:284,column:9}},91:{start:{line:281,column:10},end:{line:281,column:46}},92:{start:{line:283,column:10},end:{line:283,column:44}},93:{start:{line:285,column:8},end:{line:285,column:21}},94:{start:{line:287,column:6},end:{line:295,column:8}},95:{start:{line:288,column:8},end:{line:294,column:10}},96:{start:{line:289,column:27},end:{line:289,column:55}},97:{start:{line:290,column:10},end:{line:290,column:49}},98:{start:{line:291,column:10},end:{line:293,column:11}},99:{start:{line:292,column:12},end:{line:292,column:70}},100:{start:{line:296,column:6},end:{line:296,column:56}},101:{start:{line:299,column:16},end:{line:299,column:34}},102:{start:{line:300,column:6},end:{line:304,column:7}},103:{start:{line:301,column:8},end:{line:301,column:20}},104:{start:{line:303,column:8},end:{line:303,column:20}},105:{start:{line:305,column:6},end:{line:305,column:59}},106:{start:{line:306,column:6},end:{line:306,column:65}},107:{start:{line:306,column:35},end:{line:306,column:65}},108:{start:{line:307,column:6},end:{line:307,column:16}},109:{start:{line:310,column:23},end:{line:310,column:52}},110:{start:{line:311,column:16},end:{line:311,column:89}},111:{start:{line:312,column:6},end:{line:312,column:65}},112:{start:{line:312,column:35},end:{line:312,column:65}},113:{start:{line:313,column:6},end:{line:313,column:16}},114:{start:{line:316,column:6},end:{line:326,column:8}},115:{start:{line:317,column:8},end:{line:317,column:19}},116:{start:{line:318,column:8},end:{line:318,column:33}},117:{start:{line:319,column:8},end:{line:319,column:28}},118:{start:{line:323,column:8},end:{line:325,column:9}},119:{start:{line:324,column:10},end:{line:324,column:22}},120:{start:{line:329,column:6},end:{line:329,column:44}},121:{start:{line:332,column:6},end:{line:332,column:28}},122:{start:{line:333,column:6},end:{line:333,column:40}},123:{start:{line:336,column:6},end:{line:336,column:32}},124:{start:{line:337,column:6},end:{line:337,column:26}},125:{start:{line:340,column:6},end:{line:340,column:25}},126:{start:{line:341,column:6},end:{line:341,column:28}},127:{start:{line:342,column:6},end:{line:342,column:30}},128:{start:{line:343,column:6},end:{line:343,column:35}},129:{start:{line:344,column:6},end:{line:344,column:35}},130:{start:{line:345,column:6},end:{line:347,column:8}},131:{start:{line:346,column:8},end:{line:346,column:31}},132:{start:{line:350,column:6},end:{line:350,column:61}},133:{start:{line:351,column:6},end:{line:351,column:31}},134:{start:{line:354,column:6},end:{line:354,column:61}},135:{start:{line:355,column:6},end:{line:355,column:32}},136:{start:{line:358,column:6},end:{line:362,column:7}},137:{start:{line:366,column:17},end:{line:366,column:38}},138:{start:{line:367,column:22},end:{line:367,column:43}},139:{start:{line:368,column:6},end:{line:375,column:7}},140:{start:{line:370,column:8},end:{line:370,column:33}},141:{start:{line:372,column:10},end:{line:373,column:54}},142:{start:{line:374,column:8},end:{line:374,column:35}},143:{start:{line:376,column:6},end:{line:385,column:8}},144:{start:{line:386,column:6},end:{line:386,column:20}},145:{start:{line:387,column:6},end:{line:387,column:47}},146:{start:{line:389,column:6},end:{line:391,column:7}},147:{start:{line:390,column:8},end:{line:390,column:52}},148:{start:{line:392,column:6},end:{line:392,column:31}},149:{start:{line:395,column:6},end:{line:395,column:41}},150:{start:{line:399,column:25},end:{line:399,column:27}},151:{start:{line:400,column:6},end:{line:404,column:8}},152:{start:{line:401,column:8},end:{line:403,column:9}},153:{start:{line:402,column:10},end:{line:402,column:77}},154:{start:{line:406,column:21},end:{line:408,column:7}},155:{start:{line:407,column:20},end:{line:407,column:71}},156:{start:{line:409,column:6},end:{line:411,column:7}},157:{start:{line:410,column:8},end:{line:410,column:52}},158:{start:{line:412,column:6},end:{line:412,column:42}}},fnMap:{0:{name:"(anonymous_0)",decl:{start:{line:26,column:2},end:{line:26,column:3}},loc:{start:{line:26,column:9},end:{line:94,column:3}},line:26},1:{name:"(anonymous_1)",decl:{start:{line:44,column:18},end:{line:44,column:19}},loc:{start:{line:44,column:29},end:{line:44,column:50}},line:44},2:{name:"(anonymous_2)",decl:{start:{line:58,column:23},end:{line:58,column:24}},loc:{start:{line:58,column:29},end:{line:60,column:15}},line:58},3:{name:"(anonymous_3)",decl:{start:{line:65,column:23},end:{line:65,column:24}},loc:{start:{line:65,column:29},end:{line:67,column:15}},line:65},4:{name:"(anonymous_4)",decl:{start:{line:72,column:23},end:{line:72,column:24}},loc:{start:{line:72,column:29},end:{line:74,column:15}},line:72},5:{name:"(anonymous_5)",decl:{start:{line:96,column:18},end:{line:96,column:19}},loc:{start:{line:96,column:30},end:{line:104,column:5}},line:96},6:{name:"(anonymous_6)",decl:{start:{line:105,column:16},end:{line:105,column:17}},loc:{start:{line:105,column:28},end:{line:109,column:5}},line:105},7:{name:"(anonymous_7)",decl:{start:{line:106,column:38},end:{line:106,column:39}},loc:{start:{line:106,column:47},end:{line:108,column:7}},line:106},8:{name:"(anonymous_8)",decl:{start:{line:112,column:26},end:{line:112,column:27}},loc:{start:{line:112,column:38},end:{line:114,column:5}},line:112},9:{name:"(anonymous_9)",decl:{start:{line:118,column:14},end:{line:118,column:15}},loc:{start:{line:118,column:35},end:{line:122,column:5}},line:118},10:{name:"(anonymous_10)",decl:{start:{line:124,column:2},end:{line:124,column:3}},loc:{start:{line:124,column:12},end:{line:146,column:3}},line:124},11:{name:"(anonymous_11)",decl:{start:{line:126,column:40},end:{line:126,column:41}},loc:{start:{line:126,column:54},end:{line:144,column:5}},line:126},12:{name:"(anonymous_12)",decl:{start:{line:127,column:28},end:{line:127,column:29}},loc:{start:{line:127,column:40},end:{line:143,column:7}},line:127},13:{name:"(anonymous_13)",decl:{start:{line:131,column:56},end:{line:131,column:57}},loc:{start:{line:131,column:70},end:{line:141,column:11}},line:131},14:{name:"(anonymous_14)",decl:{start:{line:147,column:11},end:{line:147,column:12}},loc:{start:{line:147,column:23},end:{line:157,column:3}},line:147},15:{name:"(anonymous_15)",decl:{start:{line:158,column:13},end:{line:158,column:14}},loc:{start:{line:158,column:25},end:{line:163,column:3}},line:158},16:{name:"(anonymous_16)",decl:{start:{line:165,column:17},end:{line:165,column:18}},loc:{start:{line:165,column:35},end:{line:167,column:5}},line:165},17:{name:"(anonymous_17)",decl:{start:{line:168,column:16},end:{line:168,column:17}},loc:{start:{line:168,column:28},end:{line:170,column:5}},line:168},18:{name:"(anonymous_18)",decl:{start:{line:171,column:11},end:{line:171,column:12}},loc:{start:{line:171,column:23},end:{line:197,column:5}},line:171},19:{name:"(anonymous_19)",decl:{start:{line:198,column:10},end:{line:198,column:11}},loc:{start:{line:198,column:22},end:{line:201,column:5}},line:198},20:{name:"(anonymous_20)",decl:{start:{line:202,column:15},end:{line:202,column:16}},loc:{start:{line:202,column:27},end:{line:226,column:5}},line:202},21:{name:"(anonymous_21)",decl:{start:{line:205,column:20},end:{line:205,column:21}},loc:{start:{line:205,column:30},end:{line:205,column:49}},line:205},22:{name:"(anonymous_22)",decl:{start:{line:206,column:21},end:{line:206,column:22}},loc:{start:{line:206,column:27},end:{line:209,column:11}},line:206},23:{name:"(anonymous_23)",decl:{start:{line:210,column:24},end:{line:210,column:25}},loc:{start:{line:210,column:30},end:{line:216,column:11}},line:210},24:{name:"(anonymous_24)",decl:{start:{line:217,column:20},end:{line:217,column:21}},loc:{start:{line:217,column:26},end:{line:220,column:11}},line:217},25:{name:"(anonymous_25)",decl:{start:{line:222,column:14},end:{line:222,column:15}},loc:{start:{line:222,column:32},end:{line:225,column:9}},line:222},26:{name:"(anonymous_26)",decl:{start:{line:227,column:30},end:{line:227,column:31}},loc:{start:{line:227,column:49},end:{line:257,column:5}},line:227},27:{name:"(anonymous_27)",decl:{start:{line:230,column:40},end:{line:230,column:41}},loc:{start:{line:230,column:60},end:{line:237,column:7}},line:230},28:{name:"(anonymous_28)",decl:{start:{line:238,column:38},end:{line:238,column:39}},loc:{start:{line:238,column:48},end:{line:241,column:7}},line:238},29:{name:"(anonymous_29)",decl:{start:{line:243,column:8},end:{line:243,column:9}},loc:{start:{line:243,column:23},end:{line:255,column:9}},line:243},30:{name:"(anonymous_30)",decl:{start:{line:247,column:42},end:{line:247,column:43}},loc:{start:{line:247,column:52},end:{line:254,column:11}},line:247},31:{name:"(anonymous_31)",decl:{start:{line:258,column:35},end:{line:258,column:36}},loc:{start:{line:258,column:54},end:{line:267,column:5}},line:258},32:{name:"(anonymous_32)",decl:{start:{line:268,column:14},end:{line:268,column:15}},loc:{start:{line:268,column:32},end:{line:297,column:5}},line:268},33:{name:"(anonymous_33)",decl:{start:{line:279,column:43},end:{line:279,column:44}},loc:{start:{line:279,column:63},end:{line:286,column:7}},line:279},34:{name:"(anonymous_34)",decl:{start:{line:287,column:31},end:{line:287,column:32}},loc:{start:{line:287,column:43},end:{line:295,column:7}},line:287},35:{name:"(anonymous_35)",decl:{start:{line:288,column:28},end:{line:288,column:29}},loc:{start:{line:288,column:46},end:{line:294,column:9}},line:288},36:{name:"(anonymous_36)",decl:{start:{line:298,column:15},end:{line:298,column:16}},loc:{start:{line:298,column:33},end:{line:308,column:5}},line:298},37:{name:"(anonymous_37)",decl:{start:{line:309,column:21},end:{line:309,column:22}},loc:{start:{line:309,column:39},end:{line:314,column:5}},line:309},38:{name:"(anonymous_38)",decl:{start:{line:315,column:23},end:{line:315,column:24}},loc:{start:{line:315,column:55},end:{line:327,column:5}},line:315},39:{name:"(anonymous_39)",decl:{start:{line:316,column:40},end:{line:316,column:41}},loc:{start:{line:316,column:52},end:{line:326,column:7}},line:316},40:{name:"(anonymous_40)",decl:{start:{line:328,column:23},end:{line:328,column:24}},loc:{start:{line:328,column:39},end:{line:330,column:5}},line:328},41:{name:"(anonymous_41)",decl:{start:{line:331,column:12},end:{line:331,column:13}},loc:{start:{line:331,column:24},end:{line:334,column:5}},line:331},42:{name:"(anonymous_42)",decl:{start:{line:335,column:21},end:{line:335,column:22}},loc:{start:{line:335,column:33},end:{line:338,column:5}},line:335},43:{name:"(anonymous_43)",decl:{start:{line:339,column:13},end:{line:339,column:14}},loc:{start:{line:339,column:37},end:{line:348,column:5}},line:339},44:{name:"(anonymous_44)",decl:{start:{line:345,column:21},end:{line:345,column:22}},loc:{start:{line:345,column:27},end:{line:347,column:7}},line:345},45:{name:"(anonymous_45)",decl:{start:{line:349,column:23},end:{line:349,column:24}},loc:{start:{line:349,column:35},end:{line:352,column:5}},line:349},46:{name:"(anonymous_46)",decl:{start:{line:353,column:15},end:{line:353,column:16}},loc:{start:{line:353,column:27},end:{line:356,column:5}},line:353},47:{name:"(anonymous_47)",decl:{start:{line:357,column:20},end:{line:357,column:21}},loc:{start:{line:357,column:37},end:{line:363,column:5}},line:357},48:{name:"(anonymous_48)",decl:{start:{line:364,column:18},end:{line:364,column:19}},loc:{start:{line:364,column:35},end:{line:393,column:5}},line:364},49:{name:"(anonymous_49)",decl:{start:{line:394,column:24},end:{line:394,column:25}},loc:{start:{line:394,column:36},end:{line:396,column:5}},line:394},50:{name:"(anonymous_50)",decl:{start:{line:397,column:21},end:{line:397,column:22}},loc:{start:{line:397,column:41},end:{line:413,column:5}},line:397},51:{name:"(anonymous_51)",decl:{start:{line:400,column:31},end:{line:400,column:32}},loc:{start:{line:400,column:43},end:{line:404,column:7}},line:400},52:{name:"(anonymous_52)",decl:{start:{line:407,column:8},end:{line:407,column:9}},loc:{start:{line:407,column:20},end:{line:407,column:71}},line:407}},branchMap:{0:{loc:{start:{line:44,column:29},end:{line:44,column:50}},type:"binary-expr",locations:[{start:{line:44,column:29},end:{line:44,column:36}},{start:{line:44,column:40},end:{line:44,column:50}}],line:44},1:{loc:{start:{line:100,column:18},end:{line:102,column:16}},type:"cond-expr",locations:[{start:{line:101,column:12},end:{line:101,column:77}},{start:{line:102,column:12},end:{line:102,column:16}}],line:100},2:{loc:{start:{line:119,column:6},end:{line:121,column:7}},type:"if",locations:[{start:{line:119,column:6},end:{line:121,column:7}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:119},3:{loc:{start:{line:119,column:10},end:{line:119,column:43}},type:"binary-expr",locations:[{start:{line:119,column:10},end:{line:119,column:25}},{start:{line:119,column:29},end:{line:119,column:43}}],line:119},4:{loc:{start:{line:130,column:8},end:{line:142,column:9}},type:"if",locations:[{start:{line:130,column:8},end:{line:142,column:9}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:130},5:{loc:{start:{line:133,column:12},end:{line:136,column:13}},type:"if",locations:[{start:{line:133,column:12},end:{line:136,column:13}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:133},6:{loc:{start:{line:150,column:4},end:{line:156,column:5}},type:"if",locations:[{start:{line:150,column:4},end:{line:156,column:5}},{start:{line:153,column:11},end:{line:156,column:5}}],line:150},7:{loc:{start:{line:150,column:8},end:{line:150,column:53}},type:"binary-expr",locations:[{start:{line:150,column:8},end:{line:150,column:25}},{start:{line:150,column:29},end:{line:150,column:53}}],line:150},8:{loc:{start:{line:153,column:11},end:{line:156,column:5}},type:"if",locations:[{start:{line:153,column:11},end:{line:156,column:5}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:153},9:{loc:{start:{line:159,column:4},end:{line:161,column:5}},type:"if",locations:[{start:{line:159,column:4},end:{line:161,column:5}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:159},10:{loc:{start:{line:169,column:6},end:{line:169,column:53}},type:"if",locations:[{start:{line:169,column:6},end:{line:169,column:53}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:169},11:{loc:{start:{line:174,column:6},end:{line:178,column:7}},type:"if",locations:[{start:{line:174,column:6},end:{line:178,column:7}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:174},12:{loc:{start:{line:180,column:6},end:{line:184,column:7}},type:"if",locations:[{start:{line:180,column:6},end:{line:184,column:7}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:180},13:{loc:{start:{line:186,column:6},end:{line:194,column:7}},type:"if",locations:[{start:{line:186,column:6},end:{line:194,column:7}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:186},14:{loc:{start:{line:224,column:10},end:{line:224,column:59}},type:"if",locations:[{start:{line:224,column:10},end:{line:224,column:59}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:224},15:{loc:{start:{line:228,column:16},end:{line:228,column:42}},type:"binary-expr",locations:[{start:{line:228,column:16},end:{line:228,column:23}},{start:{line:228,column:27},end:{line:228,column:42}}],line:228},16:{loc:{start:{line:231,column:8},end:{line:235,column:9}},type:"if",locations:[{start:{line:231,column:8},end:{line:235,column:9}},{start:{line:233,column:15},end:{line:235,column:9}}],line:231},17:{loc:{start:{line:244,column:10},end:{line:246,column:11}},type:"if",locations:[{start:{line:244,column:10},end:{line:246,column:11}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:244},18:{loc:{start:{line:259,column:16},end:{line:259,column:42}},type:"binary-expr",locations:[{start:{line:259,column:16},end:{line:259,column:23}},{start:{line:259,column:27},end:{line:259,column:42}}],line:259},19:{loc:{start:{line:260,column:6},end:{line:266,column:7}},type:"if",locations:[{start:{line:260,column:6},end:{line:266,column:7}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:260},20:{loc:{start:{line:270,column:6},end:{line:274,column:7}},type:"if",locations:[{start:{line:270,column:6},end:{line:274,column:7}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:270},21:{loc:{start:{line:275,column:6},end:{line:278,column:7}},type:"if",locations:[{start:{line:275,column:6},end:{line:278,column:7}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:275},22:{loc:{start:{line:280,column:8},end:{line:284,column:9}},type:"if",locations:[{start:{line:280,column:8},end:{line:284,column:9}},{start:{line:282,column:15},end:{line:284,column:9}}],line:280},23:{loc:{start:{line:291,column:10},end:{line:293,column:11}},type:"if",locations:[{start:{line:291,column:10},end:{line:293,column:11}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:291},24:{loc:{start:{line:300,column:6},end:{line:304,column:7}},type:"if",locations:[{start:{line:300,column:6},end:{line:304,column:7}},{start:{line:302,column:13},end:{line:304,column:7}}],line:300},25:{loc:{start:{line:306,column:6},end:{line:306,column:65}},type:"if",locations:[{start:{line:306,column:6},end:{line:306,column:65}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:306},26:{loc:{start:{line:312,column:6},end:{line:312,column:65}},type:"if",locations:[{start:{line:312,column:6},end:{line:312,column:65}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:312},27:{loc:{start:{line:315,column:39},end:{line:315,column:53}},type:"default-arg",locations:[{start:{line:315,column:48},end:{line:315,column:53}}],line:315},28:{loc:{start:{line:323,column:8},end:{line:325,column:9}},type:"if",locations:[{start:{line:323,column:8},end:{line:325,column:9}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:323},29:{loc:{start:{line:368,column:6},end:{line:375,column:7}},type:"if",locations:[{start:{line:368,column:6},end:{line:375,column:7}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:368},30:{loc:{start:{line:389,column:6},end:{line:391,column:7}},type:"if",locations:[{start:{line:389,column:6},end:{line:391,column:7}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:389},31:{loc:{start:{line:401,column:8},end:{line:403,column:9}},type:"if",locations:[{start:{line:401,column:8},end:{line:403,column:9}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:401},32:{loc:{start:{line:409,column:6},end:{line:411,column:7}},type:"if",locations:[{start:{line:409,column:6},end:{line:411,column:7}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:409}},s:{0:0,1:0,2:0,3:0,4:0,5:0,6:0,7:0,8:0,9:0,10:0,11:0,12:0,13:0,14:0,15:0,16:0,17:0,18:0,19:0,20:0,21:0,22:0,23:0,24:0,25:0,26:0,27:0,28:0,29:0,30:0,31:0,32:0,33:0,34:0,35:0,36:0,37:0,38:0,39:0,40:0,41:0,42:0,43:0,44:0,45:0,46:0,47:0,48:0,49:0,50:0,51:0,52:0,53:0,54:0,55:0,56:0,57:0,58:0,59:0,60:0,61:0,62:0,63:0,64:0,65:0,66:0,67:0,68:0,69:0,70:0,71:0,72:0,73:0,74:0,75:0,76:0,77:0,78:0,79:0,80:0,81:0,82:0,83:0,84:0,85:0,86:0,87:0,88:0,89:0,90:0,91:0,92:0,93:0,94:0,95:0,96:0,97:0,98:0,99:0,100:0,101:0,102:0,103:0,104:0,105:0,106:0,107:0,108:0,109:0,110:0,111:0,112:0,113:0,114:0,115:0,116:0,117:0,118:0,119:0,120:0,121:0,122:0,123:0,124:0,125:0,126:0,127:0,128:0,129:0,130:0,131:0,132:0,133:0,134:0,135:0,136:0,137:0,138:0,139:0,140:0,141:0,142:0,143:0,144:0,145:0,146:0,147:0,148:0,149:0,150:0,151:0,152:0,153:0,154:0,155:0,156:0,157:0,158:0},f:{0:0,1:0,2:0,3:0,4:0,5:0,6:0,7:0,8:0,9:0,10:0,11:0,12:0,13:0,14:0,15:0,16:0,17:0,18:0,19:0,20:0,21:0,22:0,23:0,24:0,25:0,26:0,27:0,28:0,29:0,30:0,31:0,32:0,33:0,34:0,35:0,36:0,37:0,38:0,39:0,40:0,41:0,42:0,43:0,44:0,45:0,46:0,47:0,48:0,49:0,50:0,51:0,52:0},b:{0:[0,0],1:[0,0],2:[0,0],3:[0,0],4:[0,0],5:[0,0],6:[0,0],7:[0,0],8:[0,0],9:[0,0],10:[0,0],11:[0,0],12:[0,0],13:[0,0],14:[0,0],15:[0,0],16:[0,0],17:[0,0],18:[0,0],19:[0,0],20:[0,0],21:[0,0],22:[0,0],23:[0,0],24:[0,0],25:[0,0],26:[0,0],27:[0],28:[0,0],29:[0,0],30:[0,0],31:[0,0],32:[0,0]},inputSourceMap:{version:3,sources:["DataViewer.vue"],names:[],mappings:";AA2OA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA",file:"DataViewer.vue",sourceRoot:"src/tools/DataViewer",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 <div>\n <top-bar :menus="menus" :title="title" />\n <v-card>\n <v-container>\n <v-row dense>\n <v-col>\n <v-text-field\n v-model="startDate"\n label="Start Date"\n type="date"\n :rules="[rules.required]"\n data-test="start-date"\n />\n </v-col>\n <v-col>\n <v-text-field\n v-model="startTime"\n label="Start Time"\n type="time"\n step="1"\n :rules="[rules.required]"\n data-test="start-time"\n />\n </v-col>\n <v-col>\n <v-text-field\n v-model="endDate"\n label="End Date"\n type="date"\n :rules="endTime ? [rules.required] : []"\n data-test="end-date"\n />\n </v-col>\n <v-col>\n <v-text-field\n v-model="endTime"\n label="End Time"\n type="time"\n step="1"\n :rules="endDate ? [rules.required] : []"\n data-test="end-time"\n />\n </v-col>\n <v-col cols="auto" class="pt-4">\n <v-btn\n v-if="running"\n color="primary"\n width="100"\n data-test="stop-button"\n @click="stop"\n >\n Stop\n </v-btn>\n <v-btn\n v-else\n :disabled="!canStart"\n color="primary"\n width="100"\n class="pulse-button"\n data-test="start-button"\n @click="start"\n >\n Start\n </v-btn>\n </v-col>\n </v-row>\n <div class="mb-3" v-show="warning || error || connectionFailure">\n <v-alert type="warning" v-model="warning" dismissible>\n {{ warningText }}\n </v-alert>\n <v-alert type="error" v-model="error" dismissible>\n {{ errorText }}\n </v-alert>\n <v-alert type="error" v-model="connectionFailure">\n OpenC3 backend connection failed.\n </v-alert>\n </div>\n </v-container>\n <v-tabs ref="tabs" v-model="curTab">\n <v-tab\n v-for="(tab, index) in config.tabs"\n :key="index"\n @contextmenu="(event) => tabMenu(event, index)"\n data-test="tab"\n >\n {{ tab.tabName }}\n </v-tab>\n <v-btn\n class="mt-2 ml-2"\n @click="addTab"\n :class="config.tabs.length === 0 ? \'pulse-button\' : \'\'"\n icon\n data-test="new-tab"\n >\n <v-icon>mdi-tab-plus</v-icon>\n </v-btn>\n </v-tabs>\n <v-tabs-items v-model="curTab">\n <v-tab-item v-for="(tab, index) in config.tabs" :key="tab.ref" eager>\n <keep-alive>\n <v-card flat>\n <v-divider />\n <v-card-title class="pa-3">\n <span v-text="tab.name" />\n <v-spacer />\n <v-btn\n @click="() => deleteComponent(index)"\n icon\n data-test="delete-component"\n >\n <v-icon color="red">mdi-delete</v-icon>\n </v-btn>\n </v-card-title>\n <component\n v-on="$listeners"\n :is="tab.type"\n :name="tab.component"\n :ref="tab.ref"\n :config="tab.config"\n :packets="tab.packets"\n @config="(config) => (tab.config = config)"\n />\n <v-card-text v-if="receivedPackets.length === 0">\n No data! Make sure to hit the START button!\n </v-card-text>\n </v-card></keep-alive\n >\n </v-tab-item>\n </v-tabs-items>\n <v-card v-if="!config.tabs.length">\n <v-card-title>You\'re not viewing any packets</v-card-title>\n <v-card-text>Click the new tab icon to start.</v-card-text>\n </v-card>\n </v-card>\n \x3c!-- Dialogs for opening and saving configs --\x3e\n <open-config-dialog\n v-if="openConfig"\n v-model="openConfig"\n :configKey="configKey"\n @success="openConfiguration"\n />\n <save-config-dialog\n v-if="saveConfig"\n v-model="saveConfig"\n :configKey="configKey"\n @success="saveConfiguration"\n />\n \x3c!-- Dialog for renaming a new tab --\x3e\n <v-dialog v-model="tabNameDialog" width="600">\n <v-card>\n <v-system-bar>\n <v-spacer />\n <span> DataViewer: Rename Tab</span>\n <v-spacer />\n </v-system-bar>\n <v-card-text>\n <v-text-field\n v-model="newTabName"\n label="Tab name"\n data-test="rename-tab-input"\n />\n </v-card-text>\n <v-card-actions>\n <v-spacer />\n <v-btn\n outlined\n class="mx-2"\n data-test="cancel-rename"\n @click="cancelTabRename"\n >\n Cancel\n </v-btn>\n <v-btn\n color="primary"\n class="mx-2"\n data-test="rename"\n :disabled="!newTabName"\n @click="renameTab"\n >\n Rename\n </v-btn>\n </v-card-actions>\n </v-card>\n </v-dialog>\n \x3c!-- Menu for right clicking on a tab --\x3e\n <v-menu\n v-model="showTabMenu"\n :position-x="tabMenuX"\n :position-y="tabMenuY"\n absolute\n offset-y\n >\n <v-list>\n <v-list-item data-test="context-menu-rename">\n <v-list-item-title style="cursor: pointer" @click="openTabNameDialog">\n Rename\n </v-list-item-title>\n </v-list-item>\n </v-list>\n </v-menu>\n \x3c!-- Dialog for adding a new component to a tab --\x3e\n <add-component-dialog\n :components="components"\n v-if="showAddComponentDialog"\n v-model="showAddComponentDialog"\n @add="addComponent"\n @cancel="cancelAddComponent"\n />\n </div>\n</template>\n\n<script>\nimport { format } from \'date-fns\'\nimport Api from \'@openc3/tool-common/src/services/api\'\nimport Config from \'@openc3/tool-common/src/components/config/Config\'\nimport OpenConfigDialog from \'@openc3/tool-common/src/components/config/OpenConfigDialog\'\nimport SaveConfigDialog from \'@openc3/tool-common/src/components/config/SaveConfigDialog\'\nimport Cable from \'@openc3/tool-common/src/services/cable.js\'\nimport TopBar from \'@openc3/tool-common/src/components/TopBar\'\n\nimport AddComponentDialog from \'@/tools/DataViewer/AddComponentDialog\'\n// DynamicComponent is how we load custom user components\nimport DynamicComponent from \'@/tools/DataViewer/DynamicComponent\'\n// Import the built-in DataViewer components\nimport DumpComponent from \'@/tools/DataViewer/DumpComponent\'\n\nexport default {\n components: {\n AddComponentDialog,\n OpenConfigDialog,\n SaveConfigDialog,\n DynamicComponent,\n DumpComponent,\n TopBar,\n },\n mixins: [Config],\n data() {\n return {\n title: \'COSMOS Data Viewer\',\n configKey: \'data_viewer\',\n // Initialize with all built-in components\n components: [{ label: \'COSMOS Raw/Decom\', value: \'DumpComponent\' }],\n counter: 0,\n componentType: null,\n componentName: null,\n openConfig: false,\n saveConfig: false,\n cable: new Cable(),\n subscription: null,\n startDate: format(new Date(), \'yyyy-MM-dd\'),\n startTime: format(new Date(), \'HH:mm:ss\'),\n endDate: \'\',\n endTime: \'\',\n rules: {\n required: (value) => !!value || \'Required\',\n },\n autoStart: false,\n canStart: false,\n running: false,\n curTab: null,\n receivedPackets: {},\n menus: [\n {\n label: \'File\',\n items: [\n {\n label: \'Open Configuration\',\n icon: \'mdi-folder-open\',\n command: () => {\n this.openConfig = true\n },\n },\n {\n label: \'Save Configuration\',\n icon: \'mdi-content-save\',\n command: () => {\n this.saveConfig = true\n },\n },\n {\n label: \'Reset Configuration\',\n icon: \'mdi-monitor-shimmer\',\n command: () => {\n this.resetConfigBase()\n },\n },\n ],\n },\n ],\n warning: false,\n warningText: \'\',\n error: false,\n errorText: \'\',\n connectionFailure: false,\n config: {\n tabs: [],\n },\n tabNameDialog: false,\n newTabName: \'\',\n showTabMenu: false,\n tabMenuX: 0,\n tabMenuY: 0,\n showAddComponentDialog: false,\n }\n },\n computed: {\n startEndTime: function () {\n return {\n start_time:\n new Date(this.startDate + \' \' + this.startTime).getTime() * 1_000_000,\n end_time: this.endDate\n ? new Date(this.endDate + \' \' + this.endTime).getTime() * 1_000_000\n : null,\n }\n },\n allPackets: function () {\n return this.config.tabs.flatMap((tab) => {\n return tab.packets\n })\n },\n },\n watch: {\n \'config.tabs.length\': function () {\n this.resizeTabs()\n },\n // canStart is set by the subscription when it connects.\n // We set autoStart to true during mounted() when loading from\n // a route or a previous saved configuration.\n canStart: function (newVal, _) {\n if (newVal === true && this.autoStart) {\n this.start()\n }\n },\n },\n created() {\n // Determine if there are any user added widgets\n Api.get(\'/openc3-api/widgets\').then((response) => {\n response.data.forEach((widget) => {\n // Only list the ones following the naming convention DataviewerxxxxxWidget\n const found = widget.match(/DATAVIEWER([A-Z]+)/)\n if (found) {\n Api.get(`/openc3-api/widgets/${widget}`).then((response) => {\n let label = response.data.label\n if (label === null) {\n label = response.data.name.slice(10)\n label = label.charAt(0) + label.slice(1).toLowerCase()\n }\n this.components.push({\n label: label,\n value: found[0],\n })\n })\n }\n })\n })\n this.subscribe()\n },\n mounted: function () {\n const previousConfig = localStorage[`lastconfig__${this.configKey}`]\n // Called like /tools/dataviewer?config=config\n if (this.$route.query && this.$route.query.config) {\n this.autoStart = true\n this.openConfiguration(this.$route.query.config, true) // routed\n } else if (previousConfig) {\n this.autoStart = true\n this.openConfiguration(previousConfig)\n }\n },\n destroyed: function () {\n if (this.subscription) {\n this.subscription.unsubscribe()\n }\n this.cable.disconnect()\n },\n methods: {\n packetTitle: function (packet) {\n return `${packet.targetName} ${packet.packetName} [ ${packet.mode} ]`\n },\n resizeTabs: function () {\n if (this.$refs.tabs) this.$refs.tabs.onResize()\n },\n start: function () {\n this.autoStart = false\n // Check for a future start time\n if (new Date(this.startDate + \' \' + this.startTime) > Date.now()) {\n this.warningText = \'Start date/time is in the future!\'\n this.warning = true\n return\n }\n // Check for an empty time period\n if (this.startEndTime.start_time === this.startEndTime.end_time) {\n this.warningText = \'Start date/time is equal to end date/time!\'\n this.warning = true\n return\n }\n // Check for a future End Time\n if (new Date(this.endDate + \' \' + this.endTime) > Date.now()) {\n this.warningText =\n \'Note: End date/time is greater than current date/time. Data will continue to stream in real-time until \' +\n this.endDate +\n \' \' +\n this.endTime +\n \' is reached.\'\n this.warning = true\n }\n this.running = true\n this.addPacketsToSubscription()\n },\n stop: function () {\n this.running = false\n this.removePacketsFromSubscription()\n },\n subscribe: function () {\n this.cable\n .createSubscription(\'StreamingChannel\', window.openc3Scope, {\n received: (data) => this.received(data),\n connected: () => {\n this.canStart = true\n this.connectionFailure = false\n },\n disconnected: () => {\n this.stop()\n this.canStart = false\n this.warningText = \'OpenC3 backend connection disconnected.\'\n this.warning = true\n this.connectionFailure = true\n },\n rejected: () => {\n this.warningText = \'OpenC3 backend connection rejected.\'\n this.warning = true\n },\n })\n .then((subscription) => {\n this.subscription = subscription\n if (this.running) this.addPacketsToSubscription()\n })\n },\n addPacketsToSubscription: function (packets) {\n packets = packets || this.allPackets\n // Group by mode\n const modeGroups = packets.reduce((groups, packet) => {\n if (groups[packet.mode]) {\n groups[packet.mode].push(packet)\n } else {\n groups[packet.mode] = [packet]\n }\n return groups\n }, {})\n Object.keys(modeGroups).forEach((mode) => {\n // This eliminates duplicates by converted to Set and back to Array\n modeGroups[mode] = [...new Set(modeGroups[mode])]\n })\n OpenC3Auth.updateToken(OpenC3Auth.defaultMinValidity).then(\n (refreshed) => {\n if (refreshed) {\n OpenC3Auth.setTokens()\n }\n Object.keys(modeGroups).forEach((mode) => {\n this.subscription.perform(\'add\', {\n scope: window.openc3Scope,\n token: localStorage.openc3Token,\n packets: modeGroups[mode].map(this.subscriptionKey),\n ...this.startEndTime,\n })\n })\n }\n )\n },\n removePacketsFromSubscription: function (packets) {\n packets = packets || this.allPackets\n if (packets.length > 0) {\n this.subscription.perform(\'remove\', {\n scope: window.openc3Scope,\n token: localStorage.openc3Token,\n packets: packets.map(this.subscriptionKey),\n })\n }\n },\n received: function (parsed) {\n this.cable.recordPing()\n if (parsed[\'error\']) {\n this.errorText = parsed[\'error\']\n this.error = true\n return\n }\n if (!parsed.length) {\n this.stop()\n return\n }\n const groupedPackets = parsed.reduce((groups, packet) => {\n if (groups[packet.__packet]) {\n groups[packet.__packet].push(packet)\n } else {\n groups[packet.__packet] = [packet]\n }\n return groups\n }, {})\n this.config.tabs.forEach((tab, i) => {\n tab.packets.forEach((packetConfig) => {\n let packetName = this.packetKey(packetConfig)\n this.receivedPackets[packetName] = true\n if (groupedPackets[packetName]) {\n this.$refs[tab.ref][0].receive(groupedPackets[packetName])\n }\n })\n })\n this.receivedPackets = { ...this.receivedPackets }\n },\n packetKey: function (packet) {\n let key = packet.mode + \'__\'\n if (packet.cmdOrTlm === \'TLM\') {\n key += \'TLM\'\n } else {\n key += \'CMD\'\n }\n key += `__${packet.targetName}__${packet.packetName}`\n if (packet.mode === \'DECOM\') key += `__${packet.valueType}`\n return key\n },\n subscriptionKey: function (packet) {\n const cmdOrTlm = packet.cmdOrTlm.toUpperCase()\n let key = `${packet.mode}__${cmdOrTlm}__${packet.targetName}__${packet.packetName}`\n if (packet.mode === \'DECOM\') key += `__${packet.valueType}`\n return key\n },\n openConfiguration: function (name, routed = false) {\n this.openConfigBase(name, routed, (config) => {\n this.stop()\n this.receivedPackets = {}\n this.config = config\n // Only call start() if autoStart is false like during a reload.\n // Otherwise we might call start before the subscription is valid.\n // See watch on canStart for more info.\n if (this.autoStart === false) {\n this.start()\n }\n })\n },\n saveConfiguration: function (name) {\n this.saveConfigBase(name, this.config)\n },\n addTab: function () {\n this.cancelTabRename()\n this.showAddComponentDialog = true\n },\n cancelTabRename: function () {\n this.tabNameDialog = false\n this.newTabName = \'\'\n },\n tabMenu: function (event, index) {\n this.curTab = index\n event.preventDefault()\n this.showTabMenu = false\n this.tabMenuX = event.clientX\n this.tabMenuY = event.clientY\n this.$nextTick(() => {\n this.showTabMenu = true\n })\n },\n openTabNameDialog: function () {\n this.newTabName = this.config.tabs[this.curTab].tabName\n this.tabNameDialog = true\n },\n renameTab: function () {\n this.config.tabs[this.curTab].tabName = this.newTabName\n this.tabNameDialog = false\n },\n packetSelected: function (event) {\n this.newPacket = {\n target: event.targetName,\n packet: event.packetName,\n cmdOrTlm: this.newPacketCmdOrTlm,\n }\n },\n addComponent: function (event) {\n // Built-in components are just themselves\n let type = event.component.value\n let component = event.component.value\n if (event.component.value.includes(\'DATAVIEWER\')) {\n // Dynamic widgets use the DynamicComponent\n type = \'DynamicComponent\'\n let name =\n event.component.value.charAt(0).toUpperCase() +\n event.component.value.slice(1).toLowerCase()\n component = `${name}Widget`\n }\n this.config.tabs.push({\n name: event.component.label,\n // Most tabs only have 1 packet so it\'s a good way to name them\n tabName: this.packetTitle(event.packets[0]),\n packets: [...event.packets], // Make a copy\n type: type,\n component: component,\n config: {}, // Set an empty config object\n ref: `component${this.counter}`,\n })\n this.counter++\n this.curTab = this.config.tabs.length - 1\n\n if (this.running) {\n this.addPacketsToSubscription(event.packets)\n }\n this.cancelAddComponent()\n },\n cancelAddComponent: function () {\n this.showAddComponentDialog = false\n },\n deleteComponent: function (tabIndex) {\n // Get the list of packets the other tabs are using\n let packetsInUse = []\n this.config.tabs.forEach((tab, i) => {\n if (i !== tabIndex) {\n packetsInUse = packetsInUse.concat(tab.packets.map(this.packetKey))\n }\n })\n // Filter out any packets that are in use\n let filtered = this.config.tabs[tabIndex].packets.filter(\n (packet) => packetsInUse.indexOf(this.packetKey(packet)) === -1\n )\n if (filtered.length > 0) {\n this.removePacketsFromSubscription(filtered)\n }\n this.config.tabs.splice(tabIndex, 1)\n },\n },\n}\n<\/script>\n\n<style scoped>\n/* Add some juice to the START button to indicate it needs to be pressed */\n.pulse-button {\n animation: pulse 2s infinite;\n}\n@keyframes pulse {\n 0% {\n -webkit-box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.4);\n }\n 70% {\n -webkit-box-shadow: 0 0 0 10px rgba(255, 255, 255, 0);\n }\n 100% {\n -webkit-box-shadow: 0 0 0 0 rgba(255, 255, 255, 0);\n }\n}\n\n.text-component-missing-name {\n font-family: \'Courier New\', Courier, monospace;\n}\n\n.v-tabs-items {\n overflow: visible;\n}\n</style>\n']},_coverageSchema:"1a1c01bbd47fc00a2c39e90264f33305004495a9",hash:"8aeb938aebfab382f6e6cd7ce49a7c4d18e17b24"},i=t[o]||(t[o]={});i[e]&&i[e].hash===n||(i[e]=l);var a=i[e];return Me=function(){return a},a}Me();var Ee={components:{AddComponentDialog:se,OpenConfigDialog:M,SaveConfigDialog:F,DynamicComponent:ve,DumpComponent:Re,TopBar:q},mixins:[N],data:function(){var e=this;return Me().f[0]++,Me().s[0]++,{title:"COSMOS Data Viewer",configKey:"data_viewer",components:[{label:"COSMOS Raw/Decom",value:"DumpComponent"}],counter:0,componentType:null,componentName:null,openConfig:!1,saveConfig:!1,cable:new K,subscription:null,startDate:(0,s.Z)(new Date,"yyyy-MM-dd"),startTime:(0,s.Z)(new Date,"HH:mm:ss"),endDate:"",endTime:"",rules:{required:function(e){return Me().f[1]++,Me().s[1]++,Me().b[0][0]++,!!e||(Me().b[0][1]++,"Required")}},autoStart:!1,canStart:!1,running:!1,curTab:null,receivedPackets:{},menus:[{label:"File",items:[{label:"Open Configuration",icon:"mdi-folder-open",command:function(){Me().f[2]++,Me().s[2]++,e.openConfig=!0}},{label:"Save Configuration",icon:"mdi-content-save",command:function(){Me().f[3]++,Me().s[3]++,e.saveConfig=!0}},{label:"Reset Configuration",icon:"mdi-monitor-shimmer",command:function(){Me().f[4]++,Me().s[4]++,e.resetConfigBase()}}]}],warning:!1,warningText:"",error:!1,errorText:"",connectionFailure:!1,config:{tabs:[]},tabNameDialog:!1,newTabName:"",showTabMenu:!1,tabMenuX:0,tabMenuY:0,showAddComponentDialog:!1}},computed:{startEndTime:function(){return Me().f[5]++,Me().s[5]++,{start_time:1e6*new Date(this.startDate+" "+this.startTime).getTime(),end_time:this.endDate?(Me().b[1][0]++,1e6*new Date(this.endDate+" "+this.endTime).getTime()):(Me().b[1][1]++,null)}},allPackets:function(){return Me().f[6]++,Me().s[6]++,this.config.tabs.flatMap((function(e){return Me().f[7]++,Me().s[7]++,e.packets}))}},watch:{"config.tabs.length":function(){Me().f[8]++,Me().s[8]++,this.resizeTabs()},canStart:function(e,n){Me().f[9]++,Me().s[9]++,Me().b[3][0]++,!0===e&&(Me().b[3][1]++,this.autoStart)?(Me().b[2][0]++,Me().s[10]++,this.start()):Me().b[2][1]++}},created:function(){var e=this;Me().f[10]++,Me().s[11]++,b.get("/openc3-api/widgets").then((function(n){Me().f[11]++,Me().s[12]++,n.data.forEach((function(n){Me().f[12]++;var t=(Me().s[13]++,n.match(/DATAVIEWER([A-Z]+)/));Me().s[14]++,t?(Me().b[4][0]++,Me().s[15]++,b.get("/openc3-api/widgets/".concat(n)).then((function(n){Me().f[13]++;var o=(Me().s[16]++,n.data.label);Me().s[17]++,null===o?(Me().b[5][0]++,Me().s[18]++,o=n.data.name.slice(10),Me().s[19]++,o=o.charAt(0)+o.slice(1).toLowerCase()):Me().b[5][1]++,Me().s[20]++,e.components.push({label:o,value:t[0]})}))):Me().b[4][1]++}))})),Me().s[21]++,this.subscribe()},mounted:function(){Me().f[14]++;var e=(Me().s[22]++,localStorage["lastconfig__".concat(this.configKey)]);Me().s[23]++,Me().b[7][0]++,this.$route.query&&(Me().b[7][1]++,this.$route.query.config)?(Me().b[6][0]++,Me().s[24]++,this.autoStart=!0,Me().s[25]++,this.openConfiguration(this.$route.query.config,!0)):(Me().b[6][1]++,Me().s[26]++,e?(Me().b[8][0]++,Me().s[27]++,this.autoStart=!0,Me().s[28]++,this.openConfiguration(e)):Me().b[8][1]++)},destroyed:function(){Me().f[15]++,Me().s[29]++,this.subscription?(Me().b[9][0]++,Me().s[30]++,this.subscription.unsubscribe()):Me().b[9][1]++,Me().s[31]++,this.cable.disconnect()},methods:{packetTitle:function(e){return Me().f[16]++,Me().s[32]++,"".concat(e.targetName," ").concat(e.packetName," [ ").concat(e.mode," ]")},resizeTabs:function(){Me().f[17]++,Me().s[33]++,this.$refs.tabs?(Me().b[10][0]++,Me().s[34]++,this.$refs.tabs.onResize()):Me().b[10][1]++},start:function(){return Me().f[18]++,Me().s[35]++,this.autoStart=!1,Me().s[36]++,new Date(this.startDate+" "+this.startTime)>Date.now()?(Me().b[11][0]++,Me().s[37]++,this.warningText="Start date/time is in the future!",Me().s[38]++,this.warning=!0,void Me().s[39]++):(Me().b[11][1]++,Me().s[40]++,this.startEndTime.start_time===this.startEndTime.end_time?(Me().b[12][0]++,Me().s[41]++,this.warningText="Start date/time is equal to end date/time!",Me().s[42]++,this.warning=!0,void Me().s[43]++):(Me().b[12][1]++,Me().s[44]++,new Date(this.endDate+" "+this.endTime)>Date.now()?(Me().b[13][0]++,Me().s[45]++,this.warningText="Note: End date/time is greater than current date/time. Data will continue to stream in real-time until "+this.endDate+" "+this.endTime+" is reached.",Me().s[46]++,this.warning=!0):Me().b[13][1]++,Me().s[47]++,this.running=!0,Me().s[48]++,void this.addPacketsToSubscription()))},stop:function(){Me().f[19]++,Me().s[49]++,this.running=!1,Me().s[50]++,this.removePacketsFromSubscription()},subscribe:function(){var e=this;Me().f[20]++,Me().s[51]++,this.cable.createSubscription("StreamingChannel",window.openc3Scope,{received:function(n){return Me().f[21]++,Me().s[52]++,e.received(n)},connected:function(){Me().f[22]++,Me().s[53]++,e.canStart=!0,Me().s[54]++,e.connectionFailure=!1},disconnected:function(){Me().f[23]++,Me().s[55]++,e.stop(),Me().s[56]++,e.canStart=!1,Me().s[57]++,e.warningText="OpenC3 backend connection disconnected.",Me().s[58]++,e.warning=!0,Me().s[59]++,e.connectionFailure=!0},rejected:function(){Me().f[24]++,Me().s[60]++,e.warningText="OpenC3 backend connection rejected.",Me().s[61]++,e.warning=!0}}).then((function(n){Me().f[25]++,Me().s[62]++,e.subscription=n,Me().s[63]++,e.running?(Me().b[14][0]++,Me().s[64]++,e.addPacketsToSubscription()):Me().b[14][1]++}))},addPacketsToSubscription:function(e){var n=this;Me().f[26]++,Me().s[65]++,Me().b[15][0]++,e=e||(Me().b[15][1]++,this.allPackets);var t=(Me().s[66]++,e.reduce((function(e,n){return Me().f[27]++,Me().s[67]++,e[n.mode]?(Me().b[16][0]++,Me().s[68]++,e[n.mode].push(n)):(Me().b[16][1]++,Me().s[69]++,e[n.mode]=[n]),Me().s[70]++,e}),{}));Me().s[71]++,Object.keys(t).forEach((function(e){Me().f[28]++,Me().s[72]++,t[e]=(0,c.Z)(new Set(t[e]))})),Me().s[73]++,OpenC3Auth.updateToken(OpenC3Auth.defaultMinValidity).then((function(e){Me().f[29]++,Me().s[74]++,e?(Me().b[17][0]++,Me().s[75]++,OpenC3Auth.setTokens()):Me().b[17][1]++,Me().s[76]++,Object.keys(t).forEach((function(e){Me().f[30]++,Me().s[77]++,n.subscription.perform("add",(0,a.Z)({scope:window.openc3Scope,token:localStorage.openc3Token,packets:t[e].map(n.subscriptionKey)},n.startEndTime))}))}))},removePacketsFromSubscription:function(e){Me().f[31]++,Me().s[78]++,Me().b[18][0]++,e=e||(Me().b[18][1]++,this.allPackets),Me().s[79]++,e.length>0?(Me().b[19][0]++,Me().s[80]++,this.subscription.perform("remove",{scope:window.openc3Scope,token:localStorage.openc3Token,packets:e.map(this.subscriptionKey)})):Me().b[19][1]++},received:function(e){var n=this;if(Me().f[32]++,Me().s[81]++,this.cable.recordPing(),Me().s[82]++,e["error"])return Me().b[20][0]++,Me().s[83]++,this.errorText=e["error"],Me().s[84]++,this.error=!0,void Me().s[85]++;if(Me().b[20][1]++,Me().s[86]++,!e.length)return Me().b[21][0]++,Me().s[87]++,this.stop(),void Me().s[88]++;Me().b[21][1]++;var t=(Me().s[89]++,e.reduce((function(e,n){return Me().f[33]++,Me().s[90]++,e[n.__packet]?(Me().b[22][0]++,Me().s[91]++,e[n.__packet].push(n)):(Me().b[22][1]++,Me().s[92]++,e[n.__packet]=[n]),Me().s[93]++,e}),{}));Me().s[94]++,this.config.tabs.forEach((function(e,o){Me().f[34]++,Me().s[95]++,e.packets.forEach((function(o){Me().f[35]++;var l=(Me().s[96]++,n.packetKey(o));Me().s[97]++,n.receivedPackets[l]=!0,Me().s[98]++,t[l]?(Me().b[23][0]++,Me().s[99]++,n.$refs[e.ref][0].receive(t[l])):Me().b[23][1]++}))})),Me().s[100]++,this.receivedPackets=(0,a.Z)({},this.receivedPackets)},packetKey:function(e){Me().f[36]++;var n=(Me().s[101]++,e.mode+"__");return Me().s[102]++,"TLM"===e.cmdOrTlm?(Me().b[24][0]++,Me().s[103]++,n+="TLM"):(Me().b[24][1]++,Me().s[104]++,n+="CMD"),Me().s[105]++,n+="__".concat(e.targetName,"__").concat(e.packetName),Me().s[106]++,"DECOM"===e.mode?(Me().b[25][0]++,Me().s[107]++,n+="__".concat(e.valueType)):Me().b[25][1]++,Me().s[108]++,n},subscriptionKey:function(e){Me().f[37]++;var n=(Me().s[109]++,e.cmdOrTlm.toUpperCase()),t=(Me().s[110]++,"".concat(e.mode,"__").concat(n,"__").concat(e.targetName,"__").concat(e.packetName));return Me().s[111]++,"DECOM"===e.mode?(Me().b[26][0]++,Me().s[112]++,t+="__".concat(e.valueType)):Me().b[26][1]++,Me().s[113]++,t},openConfiguration:function(e){var n=this,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:(Me().b[27][0]++,!1);Me().f[38]++,Me().s[114]++,this.openConfigBase(e,t,(function(e){Me().f[39]++,Me().s[115]++,n.stop(),Me().s[116]++,n.receivedPackets={},Me().s[117]++,n.config=e,Me().s[118]++,!1===n.autoStart?(Me().b[28][0]++,Me().s[119]++,n.start()):Me().b[28][1]++}))},saveConfiguration:function(e){Me().f[40]++,Me().s[120]++,this.saveConfigBase(e,this.config)},addTab:function(){Me().f[41]++,Me().s[121]++,this.cancelTabRename(),Me().s[122]++,this.showAddComponentDialog=!0},cancelTabRename:function(){Me().f[42]++,Me().s[123]++,this.tabNameDialog=!1,Me().s[124]++,this.newTabName=""},tabMenu:function(e,n){var t=this;Me().f[43]++,Me().s[125]++,this.curTab=n,Me().s[126]++,e.preventDefault(),Me().s[127]++,this.showTabMenu=!1,Me().s[128]++,this.tabMenuX=e.clientX,Me().s[129]++,this.tabMenuY=e.clientY,Me().s[130]++,this.$nextTick((function(){Me().f[44]++,Me().s[131]++,t.showTabMenu=!0}))},openTabNameDialog:function(){Me().f[45]++,Me().s[132]++,this.newTabName=this.config.tabs[this.curTab].tabName,Me().s[133]++,this.tabNameDialog=!0},renameTab:function(){Me().f[46]++,Me().s[134]++,this.config.tabs[this.curTab].tabName=this.newTabName,Me().s[135]++,this.tabNameDialog=!1},packetSelected:function(e){Me().f[47]++,Me().s[136]++,this.newPacket={target:e.targetName,packet:e.packetName,cmdOrTlm:this.newPacketCmdOrTlm}},addComponent:function(e){Me().f[48]++;var n=(Me().s[137]++,e.component.value),t=(Me().s[138]++,e.component.value);if(Me().s[139]++,e.component.value.includes("DATAVIEWER")){Me().b[29][0]++,Me().s[140]++,n="DynamicComponent";var o=(Me().s[141]++,e.component.value.charAt(0).toUpperCase()+e.component.value.slice(1).toLowerCase());Me().s[142]++,t="".concat(o,"Widget")}else Me().b[29][1]++;Me().s[143]++,this.config.tabs.push({name:e.component.label,tabName:this.packetTitle(e.packets[0]),packets:(0,c.Z)(e.packets),type:n,component:t,config:{},ref:"component".concat(this.counter)}),Me().s[144]++,this.counter++,Me().s[145]++,this.curTab=this.config.tabs.length-1,Me().s[146]++,this.running?(Me().b[30][0]++,Me().s[147]++,this.addPacketsToSubscription(e.packets)):Me().b[30][1]++,Me().s[148]++,this.cancelAddComponent()},cancelAddComponent:function(){Me().f[49]++,Me().s[149]++,this.showAddComponentDialog=!1},deleteComponent:function(e){var n=this;Me().f[50]++;var t=(Me().s[150]++,[]);Me().s[151]++,this.config.tabs.forEach((function(o,l){Me().f[51]++,Me().s[152]++,l!==e?(Me().b[31][0]++,Me().s[153]++,t=t.concat(o.packets.map(n.packetKey))):Me().b[31][1]++}));var o=(Me().s[154]++,this.config.tabs[e].packets.filter((function(e){return Me().f[52]++,Me().s[155]++,-1===t.indexOf(n.packetKey(e))})));Me().s[156]++,o.length>0?(Me().b[32][0]++,Me().s[157]++,this.removePacketsFromSubscription(o)):Me().b[32][1]++,Me().s[158]++,this.config.tabs.splice(e,1)}}},$e=Ee,Le=(t(4442),(0,I.Z)($e,l,i,!1,null,"123a5533",null)),Ve=Le.exports},1635:function(e,n,t){"use strict";t.r(n);var o=t(9601),l=t.n(o),i=t(2609),a=t.n(i),c=a()(l());c.push([e.id,".pulse-button[data-v-123a5533]{-webkit-animation:pulse-123a5533 2s infinite;animation:pulse-123a5533 2s infinite}@-webkit-keyframes pulse-123a5533{0%{-webkit-box-shadow:0 0 0 0 hsla(0,0%,100%,.4)}70%{-webkit-box-shadow:0 0 0 10px hsla(0,0%,100%,0)}to{-webkit-box-shadow:0 0 0 0 hsla(0,0%,100%,0)}}@keyframes pulse-123a5533{0%{-webkit-box-shadow:0 0 0 0 hsla(0,0%,100%,.4)}70%{-webkit-box-shadow:0 0 0 10px hsla(0,0%,100%,0)}to{-webkit-box-shadow:0 0 0 0 hsla(0,0%,100%,0)}}.text-component-missing-name[data-v-123a5533]{font-family:Courier New,Courier,monospace}.v-tabs-items[data-v-123a5533]{overflow:visible}",""]),n["default"]=c},4882:function(e,n,t){"use strict";t.r(n);var o=t(9601),l=t.n(o),i=t(2609),a=t.n(i),c=a()(l());c.push([e.id,".row+.row{margin-top:0}",""]),n["default"]=c},6294:function(e,n,t){"use strict";t.r(n);var o=t(9601),l=t.n(o),i=t(2609),a=t.n(i),c=a()(l());c.push([e.id,".v-list[data-v-2eb37f67] .v-label{margin-left:5px}.v-list-item__icon[data-v-2eb37f67]{margin-right:15px!important}.v-list-item__title[data-v-2eb37f67]{color:#fff}",""]),n["default"]=c},9846:function(e,n,t){"use strict";t.r(n);var o=t(9601),l=t.n(o),i=t(2609),a=t.n(i),c=a()(l());c.push([e.id,".text-area-container[data-v-625a8260]{position:relative;height:60vh}.text-area-container .v-textarea[data-v-625a8260]{font-family:Courier New,Courier,monospace}.text-area-container .floating-buttons[data-v-625a8260]{position:absolute;top:12px;right:24px}.text-area-container[data-v-625a8260] textarea{height:60vh}.pulse[data-v-625a8260]{-webkit-animation:pulse-625a8260 2s infinite;animation:pulse-625a8260 2s infinite}@-webkit-keyframes pulse-625a8260{0%{opacity:1}50%{opacity:.5}}@keyframes pulse-625a8260{0%{opacity:1}50%{opacity:.5}}",""]),n["default"]=c},4442:function(e,n,t){var o=t(1635);o.__esModule&&(o=o.default),"string"===typeof o&&(o=[[e.id,o,""]]),o.locals&&(e.exports=o.locals);var l=t(3514).Z;l("a11ec886",o,!0,{sourceMap:!1,shadowMode:!1})},9841:function(e,n,t){var o=t(4882);o.__esModule&&(o=o.default),"string"===typeof o&&(o=[[e.id,o,""]]),o.locals&&(e.exports=o.locals);var l=t(3514).Z;l("4a9152b5",o,!0,{sourceMap:!1,shadowMode:!1})},4888:function(e,n,t){var o=t(6294);o.__esModule&&(o=o.default),"string"===typeof o&&(o=[[e.id,o,""]]),o.locals&&(e.exports=o.locals);var l=t(3514).Z;l("706a3f6d",o,!0,{sourceMap:!1,shadowMode:!1})},7040:function(e,n,t){var o=t(9846);o.__esModule&&(o=o.default),"string"===typeof o&&(o=[[e.id,o,""]]),o.locals&&(e.exports=o.locals);var l=t(3514).Z;l("611f35e8",o,!0,{sourceMap:!1,shadowMode:!1})}}]);
2
+ //# sourceMappingURL=629.js.map