openc3-cosmos-tool-dataviewer 5.6.1 → 5.7.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/tools/dataviewer/index.html +4 -1
- data/tools/dataviewer/js/523.js +2 -0
- data/tools/dataviewer/js/523.js.map +1 -0
- data/tools/dataviewer/js/912.js +12 -0
- data/tools/dataviewer/js/912.js.map +1 -0
- data/tools/dataviewer/js/app.js +1 -1
- data/tools/dataviewer/js/app.js.map +1 -1
- metadata +6 -6
- data/tools/dataviewer/js/206.js +0 -12
- data/tools/dataviewer/js/206.js.map +0 -1
- data/tools/dataviewer/js/59.js +0 -2
- data/tools/dataviewer/js/59.js.map +0 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5e49afec79e3cf783d1ccc7e4c2911574bcd6d7bba8dbf92951e7ab900cff6ec
|
4
|
+
data.tar.gz: 3658193796c0e0d91d9f593283792d22dbe7c551089ed1b3a8431f7cea6c6fe8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fad38c69003921a17764d9dad669a256122a5908ab8fce75d79718cf1ab5dafcd4a78cf9b6a6b190d1a5cad88952110f20f386d37d51c9e2d0f72a74a14b2d58
|
7
|
+
data.tar.gz: 4f5c1af85b4b593362db0f0d7c6b2e60c07d521a6cc35ca4f8bd13b52d25906f4059b7a6d25a37655a2c4bffbd078b487c580457173a6bd7758b17750c14a2d3
|
data/tools/dataviewer/index.html
CHANGED
@@ -1 +1,4 @@
|
|
1
|
-
<!doctype html><html lang=""><head><meta charset="utf-8"><meta http-equiv="X-UA-Compatible" content="IE=edge"><meta name="viewport" content="width=device-width,initial-scale=1"><title>Vue App</title><
|
1
|
+
<!doctype html><html lang=""><head><meta charset="utf-8"><meta http-equiv="X-UA-Compatible" content="IE=edge"><meta name="viewport" content="width=device-width,initial-scale=1"><title>Vue App</title><main><h1>Your Microfrontend is not here</h1><p>The @openc3/cosmos-tool-dataviewer microfrontend is running in "integrated" mode, since standalone-single-spa-webpack-plugin is disabled. This means that it does not work as a standalone application without changing configuration.</p><h2>How do I develop this microfrontend?</h2><p>To develop this microfrontend, try the following steps:</p><ol><li>Copy the following URL to your clipboard: <a target="_blank" rel="noopener" id="mf-url"></a></li><li>In a new browser tab, go to the your single-spa web app. This is where your "root config" is running. You do not have to run the root config locally if it is already running on a deployed environment - go to the deployed environment directly.</li><li>In the browser console, run <code>localStorage.setItem('devtools', true);</code> Refresh the page.</li><li>A yellowish rectangle should appear at the bottom right of your screen. Click on it. Find the name @openc3/cosmos-tool-dataviewer and click on it. If it is not present, click on Add New Module.</li><li>Paste the URL above into the input that appears. Refresh the page.</li><li>Congrats, your local code is now being used!</li></ol><p></p><p>For further information about "integrated" mode, see the following links:</p><ul><li><a target="_blank" rel="noopener" href="https://single-spa.js.org/docs/recommended-setup#local-development">Local Development Overview</a></li><li><a target="_blank" rel="noopener" href="https://github.com/joeldenning/import-map-overrides">Import Map Overrides Documentation</a></li></ul><p></p><h2>If you prefer Standalone mode</h2><p>To run this microfrontend in "standalone" mode, the standalone-single-spa-webpack-plugin must not be disabled. In some cases, this is done by running <code>npm run start:standalone</code>. Alternatively, you can add <code>--env standalone</code> to your package.json start script if you are using webpack-config-single-spa.</p>If neither of those work for you, see more details about enabling standalone mode at <a target="_blank" rel="noopener" href="https://github.com/single-spa/standalone-single-spa-webpack-plugin">Standalone Plugin Documentation</a>.<p></p><script>const mfLink = document.getElementById('mf-url');
|
2
|
+
const fullSrc = new URL('/tools/dataviewer//tools/dataviewer/js/app.js', window.location.href);
|
3
|
+
mfLink.href = fullSrc;
|
4
|
+
mfLink.textContent = fullSrc;</script></main></head><body><div id="app"></div></body></html>
|
@@ -0,0 +1,2 @@
|
|
1
|
+
(self["webpackChunk_openc3_cosmos_tool_dataviewer"]=self["webpackChunk_openc3_cosmos_tool_dataviewer"]||[]).push([[523],{7523:function(e,n,t){"use strict";function o(){var e="/openc3/plugins/packages/openc3-cosmos-tool-dataviewer/src/tools/DataViewer/DataViewer.vue",n="2e74f6d054566cc04db6326aae75fbfe9db44468",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:5843}},4:{start:{line:1,column:352},end:{line:1,column:369}},5:{start:{line:1,column:594},end:{line:1,column:611}},6:{start:{line:1,column:838},end:{line:1,column:853}},7:{start:{line:1,column:1089},end:{line:1,column:1104}},8:{start:{line:1,column:1800},end:{line:1,column:1815}},9:{start:{line:1,column:1987},end:{line:1,column:2e3}},10:{start:{line:1,column:2163},end:{line:1,column:2188}},11:{start:{line:1,column:2364},end:{line:1,column:2378}},12:{start:{line:1,column:2448},end:{line:1,column:2598}},13:{start:{line:1,column:2532},end:{line:1,column:2557}},14:{start:{line:1,column:2819},end:{line:1,column:2833}},15:{start:{line:1,column:2902},end:{line:1,column:3642}},16:{start:{line:1,column:3214},end:{line:1,column:3240}},17:{start:{line:1,column:3471},end:{line:1,column:3490}},18:{start:{line:1,column:3930},end:{line:1,column:3966}},19:{start:{line:1,column:4024},end:{line:1,column:4042}},20:{start:{line:1,column:4181},end:{line:1,column:4217}},21:{start:{line:1,column:4275},end:{line:1,column:4293}},22:{start:{line:1,column:4426},end:{line:1,column:4447}},23:{start:{line:1,column:4742},end:{line:1,column:4760}},24:{start:{line:1,column:5290},end:{line:1,column:5309}},25:{start:{line:1,column:5760},end:{line:1,column:5790}},26:{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:336},end:{line:1,column:337}},loc:{start:{line:1,column:351},end:{line:1,column:370}},line:1},2:{name:"(anonymous_2)",decl:{start:{line:1,column:578},end:{line:1,column:579}},loc:{start:{line:1,column:593},end:{line:1,column:612}},line:1},3:{name:"(anonymous_3)",decl:{start:{line:1,column:822},end:{line:1,column:823}},loc:{start:{line:1,column:837},end:{line:1,column:854}},line:1},4:{name:"(anonymous_4)",decl:{start:{line:1,column:1073},end:{line:1,column:1074}},loc:{start:{line:1,column:1088},end:{line:1,column:1105}},line:1},5:{name:"(anonymous_5)",decl:{start:{line:1,column:1784},end:{line:1,column:1785}},loc:{start:{line:1,column:1799},end:{line:1,column:1816}},line:1},6:{name:"(anonymous_6)",decl:{start:{line:1,column:1971},end:{line:1,column:1972}},loc:{start:{line:1,column:1986},end:{line:1,column:2001}},line:1},7:{name:"(anonymous_7)",decl:{start:{line:1,column:2147},end:{line:1,column:2148}},loc:{start:{line:1,column:2162},end:{line:1,column:2189}},line:1},8:{name:"(anonymous_8)",decl:{start:{line:1,column:2348},end:{line:1,column:2349}},loc:{start:{line:1,column:2363},end:{line:1,column:2379}},line:1},9:{name:"(anonymous_9)",decl:{start:{line:1,column:2428},end:{line:1,column:2429}},loc:{start:{line:1,column:2447},end:{line:1,column:2599}},line:1},10:{name:"(anonymous_10)",decl:{start:{line:1,column:2521},end:{line:1,column:2522}},loc:{start:{line:1,column:2532},end:{line:1,column:2557}},line:1},11:{name:"(anonymous_11)",decl:{start:{line:1,column:2803},end:{line:1,column:2804}},loc:{start:{line:1,column:2818},end:{line:1,column:2834}},line:1},12:{name:"(anonymous_12)",decl:{start:{line:1,column:2882},end:{line:1,column:2883}},loc:{start:{line:1,column:2901},end:{line:1,column:3643}},line:1},13:{name:"(anonymous_13)",decl:{start:{line:1,column:3208},end:{line:1,column:3209}},loc:{start:{line:1,column:3214},end:{line:1,column:3240}},line:1},14:{name:"(anonymous_14)",decl:{start:{line:1,column:3458},end:{line:1,column:3459}},loc:{start:{line:1,column:3471},end:{line:1,column:3490}},line:1},15:{name:"(anonymous_15)",decl:{start:{line:1,column:3913},end:{line:1,column:3914}},loc:{start:{line:1,column:3929},end:{line:1,column:3967}},line:1},16:{name:"(anonymous_16)",decl:{start:{line:1,column:4008},end:{line:1,column:4009}},loc:{start:{line:1,column:4023},end:{line:1,column:4043}},line:1},17:{name:"(anonymous_17)",decl:{start:{line:1,column:4164},end:{line:1,column:4165}},loc:{start:{line:1,column:4180},end:{line:1,column:4218}},line:1},18:{name:"(anonymous_18)",decl:{start:{line:1,column:4259},end:{line:1,column:4260}},loc:{start:{line:1,column:4274},end:{line:1,column:4294}},line:1},19:{name:"(anonymous_19)",decl:{start:{line:1,column:4410},end:{line:1,column:4411}},loc:{start:{line:1,column:4425},end:{line:1,column:4448}},line:1},20:{name:"(anonymous_20)",decl:{start:{line:1,column:4726},end:{line:1,column:4727}},loc:{start:{line:1,column:4741},end:{line:1,column:4761}},line:1},21:{name:"(anonymous_21)",decl:{start:{line:1,column:5274},end:{line:1,column:5275}},loc:{start:{line:1,column:5289},end:{line:1,column:5310}},line:1},22:{name:"(anonymous_22)",decl:{start:{line:1,column:5744},end:{line:1,column:5745}},loc:{start:{line:1,column:5759},end:{line:1,column:5791}},line:1}},branchMap:{0:{loc:{start:{line:1,column:722},end:{line:1,column:761}},type:"cond-expr",locations:[{start:{line:1,column:736},end:{line:1,column:756}},{start:{line:1,column:759},end:{line:1,column:761}}],line:1},1:{loc:{start:{line:1,column:973},end:{line:1,column:1012}},type:"cond-expr",locations:[{start:{line:1,column:987},end:{line:1,column:1007}},{start:{line:1,column:1010},end:{line:1,column:1012}}],line:1},2:{loc:{start:{line:1,column:1189},end:{line:1,column:1499}},type:"cond-expr",locations:[{start:{line:1,column:1203},end:{line:1,column:1323}},{start:{line:1,column:1324},end:{line:1,column:1499}}],line:1},3:{loc:{start:{line:1,column:1567},end:{line:1,column:1616}},type:"binary-expr",locations:[{start:{line:1,column:1567},end:{line:1,column:1578}},{start:{line:1,column:1582},end:{line:1,column:1591}},{start:{line:1,column:1595},end:{line:1,column:1616}}],line:1},4:{loc:{start:{line:1,column:3511},end:{line:1,column:3630}},type:"cond-expr",locations:[{start:{line:1,column:3546},end:{line:1,column:3621}},{start:{line:1,column:3622},end:{line:1,column:3630}}],line:1},5:{loc:{start:{line:1,column:3648},end:{line:1,column:3824}},type:"cond-expr",locations:[{start:{line:1,column:3674},end:{line:1,column:3815}},{start:{line:1,column:3816},end:{line:1,column:3824}}],line:1},6:{loc:{start:{line:1,column:3829},end:{line:1,column:4079}},type:"cond-expr",locations:[{start:{line:1,column:3846},end:{line:1,column:4070}},{start:{line:1,column:4071},end:{line:1,column:4079}}],line:1},7:{loc:{start:{line:1,column:4080},end:{line:1,column:4330}},type:"cond-expr",locations:[{start:{line:1,column:4097},end:{line:1,column:4321}},{start:{line:1,column:4322},end:{line:1,column:4330}}],line:1},8:{loc:{start:{line:1,column:5541},end:{line:1,column:5839}},type:"cond-expr",locations:[{start:{line:1,column:5570},end:{line:1,column:5830}},{start:{line:1,column:5831},end:{line:1,column:5839}}],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,25:0,26:0},f:{0:0,1:0,2:0,3:0,4:0,5:0,6:0,7:0,8:0,9:0,10:0,11:0,12:0,13:0,14:0,15:0,16:0,17:0,18:0,19:0,20:0,21:0,22: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]},_coverageSchema:"1a1c01bbd47fc00a2c39e90264f33305004495a9",hash:"2e74f6d054566cc04db6326aae75fbfe9db44468"},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-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:"start-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),n("v-card",[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",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[4][0]++,n("v-card-text",[e._v(" No data! Make sure to hit the START button! ")])):(o().b[4][1]++,e._e())],1)],1)],1)})),1),e.config.tabs.length?(o().b[5][1]++,e._e()):(o().b[5][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[6][0]++,n("open-config-dialog",{attrs:{tool:e.toolName},on:{success:function(n){return o().f[15]++,o().s[18]++,e.openConfiguration(n)}},model:{value:e.openConfig,callback:function(n){o().f[16]++,o().s[19]++,e.openConfig=n},expression:"openConfig"}})):(o().b[6][1]++,e._e()),e.saveConfig?(o().b[7][0]++,n("save-config-dialog",{attrs:{tool:e.toolName},on:{success:function(n){return o().f[17]++,o().s[20]++,e.saveConfiguration(n)}},model:{value:e.saveConfig,callback:function(n){o().f[18]++,o().s[21]++,e.saveConfig=n},expression:"saveConfig"}})):(o().b[7][1]++,e._e()),n("v-dialog",{attrs:{width:"600"},model:{value:e.tabNameDialog,callback:function(n){o().f[19]++,o().s[22]++,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[20]++,o().s[23]++,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[21]++,o().s[24]++,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[8][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[22]++,o().s[25]++,e.showAddComponentDialog=n},expression:"showAddComponentDialog"}})):(o().b[8][1]++,e._e())],1)},i=(o().s[26]++,[]),a=t(5789),c=t(9502),s=t(6964),r=t(615),u=(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(6710),t(9529),t(1235),t(5342),t(4083),t(9805),t(8966)),m=t(6259),d=t(426),A=t(7871),p=t(2261),f=(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(9224),t(2649),t(14),t(1996),t(7233),t(5734),t(8233),t(9644)),h=t.n(f),v=t(4091),C=new v["default"],g=h().create({baseURL:location.origin,timeout:6e4,params:{}});g.interceptors.response.use((function(e){return e}),(function(e){if(e.response){var n,t,o,l,i,a,c,s,r,u;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 m="HTTP ".concat(e.response.status," - ");if(null!==(n=e.response)&&void 0!==n&&n.statusText&&(m+="".concat(e.response.statusText," ")),null!==(t=e.response)&&void 0!==t&&null!==(o=t.config)&&void 0!==o&&o.data&&(m+="".concat(e.response.config.data," ")),null!==(l=e.response)&&void 0!==l&&null!==(i=l.data)&&void 0!==i&&i.message)m+="".concat(e.response.data.message);else if(null!==(a=e.response)&&void 0!==a&&null!==(c=a.data)&&void 0!==c&&c.exception)m+="".concat(e.response.data.exception);else if(null!==(s=e.response)&&void 0!==s&&null!==(r=s.data)&&void 0!==r&&null!==(u=r.error)&&void 0!==u&&u.message)e.response.data.error.class&&(m+="".concat(e.response.data.error.class," ")),m+="".concat(e.response.data.error.message);else{var d;m+="".concat(null===(d=e.response)||void 0===d?void 0:d.data)}throw C.$notify&&C.$notify.serious({title:"Network error",body:m}),e}throw e}));var b=g,y=function(){function e(){(0,d.Z)(this,e),(0,p.Z)(this,"id",1)}return(0,A.Z)(e,[{key:"exec",value:function(){var e=(0,c.Z)((0,a.Z)().mark((function e(n,t){var o,l,i,c,r,u=arguments;return(0,a.Z)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return o=u.length>2&&void 0!==u[2]?u[2]:{},l=u.length>3&&void 0!==u[3]?u[3]:{},e.prev=2,e.next=5,OpenC3Auth.updateToken(OpenC3Auth.defaultMinValidity);case 5:i=e.sent,i&&OpenC3Auth.setTokens(),e.next=12;break;case 9:e.prev=9,e.t0=e["catch"](2),OpenC3Auth.login();case 12:return this.id=this.id+1,e.prev=13,o["scope"]=window.openc3Scope,e.next=17,b.post("/openc3-api/api",{jsonrpc:"2.0",method:n,params:t,id:this.id,keyword_params:o},{headers:(0,s.Z)({Authorization:localStorage.openc3Token,"Content-Type":"application/json-rpc"},l)});case 17:return c=e.sent,e.abrupt("return",c.data.result);case 21:throw e.prev=21,e.t1=e["catch"](13),r=new Error,e.t1.response?(r.name=e.t1.response.data.error.data.class,r.message=e.t1.response.data.error.data.message):e.t1.request?(r.name="Request error",r.message="Request error, no response received"):r.name="Unknown error",r;case 26:case"end":return e.stop()}}),e,this,[[2,9],[13,21]])})));function n(n,t){return e.apply(this,arguments)}return n}()},{key:"decode_openc3_type",value:function(e){if(null!==e&&"object"===(0,m.Z)(e)&&"Float"==e.json_class&&e.raw){if("NaN"==e.raw)return NaN;if("Infinity"==e.raw)return 1/0;if("-Infinity"==e.raw)return-1/0}return null}},{key:"encode_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_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,c.Z)((0,a.Z)().mark((function e(n,t,o){var l,i,c,s,r,u=arguments;return(0,a.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(c=i.length,s=null,r=0;r<c;r++)s=this.decode_openc3_type(i[r][1]),null!==s&&(i[r][1]=s);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,c.Z)((0,a.Z)().mark((function e(n){var t,o,l,i,c,s=arguments;return(0,a.Z)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return t=s.length>1&&void 0!==s[1]?s[1]:30,e.next=3,this.exec("get_tlm_values",[n],{stale_time:t});case 3:for(o=e.sent,l=o[0].length,i=null,c=0;c<l;c++)i=this.decode_openc3_type(o[0][c]),null!==i&&(o[0][c]=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,c.Z)((0,a.Z)().mark((function e(n,t,o){var l,i,c,s,r=arguments;return(0,a.Z)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(l=r.length>3&&void 0!==r[3]?r[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 c=new Error,c.name="TypeError",c.message="Invalid data type ".concat(t,". Valid options are RAW, CONVERTED, FORMATTED, and WITH_UNITS."),c;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 s=this.decode_openc3_type(i),null!==s&&(i=s),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,c.Z)((0,a.Z)().mark((function e(n,t){var o,l,i=arguments;return(0,a.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:"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,c.Z)((0,a.Z)().mark((function e(n){var t,o,l;return(0,a.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}(),k=function(){var e=(0,c.Z)((0,a.Z)().mark((function e(n,t){var o,l,i,c,s,r,u,m,d,A,p=arguments;return(0,a.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,c=void 0===i?{}:i,s=o.headers,r=o.noAuth,u=void 0!==r&&r,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:s["Authorization"]=localStorage.openc3Token;case 13:return d||c["scope"]||(c["scope"]=window.openc3Scope),e.abrupt("return",b({method:n,url:t,data:l,params:c,headers:s}));case 15:case"end":return e.stop()}}),e,null,[[2,9]])})));return function(n,t){return e.apply(this,arguments)}}(),w={Accept:"application/json"},T=(0,s.Z)((0,s.Z)({},w),{},{"Content-Type":"application/json"}),x={get:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},t=n.params,o=n.headers,l=void 0===o?w:o,i=n.noScope,a=n.noAuth;return k("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?T:l,a=n.noScope,c=n.noAuth;return k("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?T:l,a=n.noScope,c=n.noAuth;return k("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?w:o,i=n.noScope,a=n.noAuth;return k("delete",e,{params:t,headers:l,noScope:i,noAuth:a})}},N=(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)}),D=[],S={props:{tool:String,value:Boolean},data:function(){return{configs:[],headers:[{text:"Configuration",value:"config"},{text:"Actions",value:"actions",align:"end",sortable:!1}],search:null,selectedItem:null}},computed:{error:function(){return""===this.selectedItem||null===this.selectedItem?"Must select a config":null},show:{get:function(){return this.value},set:function(e){this.$emit("input",e)}}},mounted:function(){var e=this,n=-1;(new y).list_configs(this.tool).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 y).delete_config(n.tool,e.config)})).catch((function(t){t&&n.$emit("warning","Failed to delete config ".concat(e.config," Error: ").concat(t))}))}}},P=S,O=t(3287),I=(0,O.Z)(P,N,D,!1,null,"4e3dcaac",null),R=I.exports,M=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)},E=[],L={props:{tool:String,value:Boolean},data:function(){return{configName:"",configs:[],headers:[{text:"Configuration",value:"config"},{text:"Actions",value:"actions",align:"end",sortable:!1}],search:null,selectedItem:null}},computed:{error:function(){return""===this.configName?"Config must have a name":null},show:{get:function(){return this.value},set:function(e){this.$emit("input",e)}}},mounted:function(){var e=this,n=-1;(new y).list_configs(this.tool).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 y).delete_config(n.tool,e.config)})).catch((function(t){t&&n.$emit("warning","Failed to delete config ".concat(e.config," Error: ").concat(t))}))}}},V=L,$=(0,O.Z)(V,M,E,!1,null,null,null),U=$.exports,F=t(7146);F.ju.staleThreshold=10;var Z=function(){function e(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"/openc3-api/cable";(0,d.Z)(this,e),this._cable=null,this._url=n}return(0,A.Z)(e,[{key:"disconnect",value:function(){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=F.zD(i)}return t._cable.subscriptions.create((0,s.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)])},W=[],B=(t(5940),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=B,H=(t(2916),(0,O.Z)(z,j,W,!1,null,"2eb37f67",null)),G=H.exports;function K(){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 K=function(){return a},a}K(),K().s[0]++;var Y=function(){K().f[0]++;var e=(K().s[1]++,this),n=(K().s[2]++,e._self._c);return K().s[3]++,n("div",[n("v-dialog",{attrs:{width:"800"},model:{value:e.show,callback:function(n){K().f[1]++,K().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){K().f[2]++,K().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){K().f[3]++,K().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){K().f[4]++,K().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?(K().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){K().f[5]++,K().s[8]++,e.newPacketValueType=n},expression:"newPacketValueType"}})):(K().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){K().f[6]++,K().s[9]++,e.itemsPerPage=n}},scopedSlots:e._u([{key:"item.delete",fn:function(t){var o=t.item;return K().f[7]++,K().s[10]++,[n("v-tooltip",{attrs:{bottom:""},scopedSlots:e._u([{key:"activator",fn:function(t){var l=t.on,i=t.attrs;return K().f[8]++,K().s[11]++,[n("v-icon",e._g(e._b({on:{click:function(n){return K().f[9]++,K().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)},q=(K().s[13]++,[]),X=(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)}),J=[],Q=(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 y,this.api.get_target_list().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.selectedItemName="",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})}))}}}),ee=Q,ne=(t(6813),(0,O.Z)(ee,X,J,!1,null,null,null)),te=ne.exports;function oe(){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 oe=function(){return a},a}oe();var le={components:{TargetPacketItemChooser:te},props:{value:Boolean,components:Object},data:function(){return oe().f[0]++,oe().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 oe().f[1]++,oe().s[1]++,oe().b[1][0]++,null===this.selectedComponent||(oe().b[1][1]++,0===this.packets.length)?(oe().b[0][0]++,oe().s[2]++,!0):(oe().b[0][1]++,oe().s[3]++,!1)},disableRadioOptions:function(){return oe().f[2]++,oe().s[4]++,this.newPacket?(oe().b[2][0]++,oe().s[5]++,"UNKNOWN"===this.newPacket.packet):(oe().b[2][1]++,oe().s[6]++,!1)},show:{get:function(){return oe().f[3]++,oe().s[7]++,this.value},set:function(e){oe().f[4]++,oe().s[8]++,this.$emit("input",e)}}},watch:{newPacketCmdOrTlm:{immediate:!0,handler:function(){oe().f[5]++,oe().s[9]++,this.newPacket=null}}},methods:{addPacket:function(e){oe().f[6]++;var n=(oe().s[10]++,this.newPacketValueType);oe().s[11]++,"RAW"===this.newPacketMode?(oe().b[3][0]++,oe().s[12]++,n="N/A"):oe().b[3][1]++,oe().s[13]++,this.packets.push({cmdOrTlm:this.newPacketCmdOrTlm.toUpperCase(),targetName:e.targetName,packetName:e.packetName,mode:this.newPacketMode,valueType:n})},addComponent:function(e){oe().f[7]++,oe().s[14]++,this.$emit("add",{packets:this.packets,component:this.selectedComponent,mode:this.newPacketMode,valueType:this.newPacketValueType})},deleteItem:function(e){oe().f[8]++;var n=(oe().s[15]++,this.packets.indexOf(e));oe().s[16]++,this.packets.splice(n,1)},cancelAddComponent:function(){oe().f[9]++,oe().s[17]++,this.$emit("cancel",{})}}},ie=le,ae=(0,O.Z)(ie,Y,q,!1,null,null,null),ce=ae.exports;function se(){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 se=function(){return a},a}se(),se().s[0]++;var re=function(){se().f[0]++;var e=(se().s[1]++,this),n=(se().s[2]++,e._self._c);return se().s[3]++,n(e.widgetType,e._b({ref:"dynamic",tag:"component",attrs:{config:e.currentConfig},on:{config:function(n){return se().f[1]++,se().s[4]++,e.currentConfig=n}}},"component",(0,s.Z)((0,s.Z)({},e.$props),e.$attrs),!1))},ue=(se().s[5]++,[]),me={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,s.Z)({},this.config)),this.packets&&(this.currentPackets=(0,r.Z)(this.packets))},methods:{receive:function(e){this.latestData=e}}};function de(){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 de=function(){return a},a}de();var Ae={mixins:[me],data:function(){return de().f[0]++,de().s[0]++,{widgetType:null}},props:{name:{default:null}},computed:{url:function(){return de().f[1]++,de().s[1]++,"".concat(window.location.origin,"/tools/widgets/").concat(this.name,"/").concat(this.name,".umd.min.js")}},watch:{latestData:function(e){de().f[2]++,de().s[2]++,this.$refs["dynamic"].receive(e)}},mounted:function(){var e=this;return(0,c.Z)((0,a.Z)().mark((function n(){return(0,a.Z)().wrap((function(n){while(1)switch(n.prev=n.next){case 0:return de().f[3]++,de().s[3]++,n.prev=2,de().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),de().s[5]++,new Error("Unknown widget: ".concat(e.name));case 13:case"end":return n.stop()}}),n,null,[[2,9]])})))()}},pe=Ae,fe=(0,O.Z)(pe,re,ue,!1,null,null,null),he=fe.exports;function ve(){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 ve=function(){return a},a}ve(),ve().s[0]++;var Ce=function(){ve().f[0]++;var e=(ve().s[1]++,this),n=(ve().s[2]++,e._self._c);return ve().s[3]++,n("history-component",{ref:"history",attrs:{config:e.currentConfig,packets:e.currentPackets,calculatePacketText:e.calculatePacketText},on:{config:function(n){return ve().f[1]++,ve().s[4]++,e.currentConfig=n}}})},ge=(ve().s[5]++,[]),be=(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)}),ye=[],_e=(t(8995),t(4707),t(1497),t(5640),t(1871),t(4121),t(523),t(6635)),ke=t.n(_e),we={props:["calculatePacketText"],mixins:[me],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:ke().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,s.Z)((0,s.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,u.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++}}},Te=we,xe=(t(624),(0,O.Z)(Te,be,ye,!1,null,"625a8260",null)),Ne=xe.exports;function De(){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 De=function(){return a},a}De();var Se={mixins:[me],components:{HistoryComponent:Ne},watch:{latestData:function(e){De().f[0]++,De().s[0]++,this.$refs["history"].receive(e)}},methods:{calculatePacketText:function(e){var n=this;De().f[1]++;var t=(De().s[1]++,"");if(De().s[2]++,this.currentConfig.showTimestamp){De().b[0][0]++;var o=(De().s[3]++,e.__time/1e6),l=(De().s[4]++,(o/1e3).toFixed(7)),i=(De().s[5]++,new Date(o).toISOString()),a=(De().s[6]++,"********************************************\n");De().s[7]++,a+="* Received seconds: ".concat(l,"\n"),De().s[8]++,a+="* Received time: ".concat(i,"\n"),De().s[9]++,a+="********************************************\n",De().s[10]++,t="".concat(a).concat(t)}else De().b[0][1]++;return De().s[11]++,"buffer"in e?(De().b[1][0]++,De().s[12]++,t+=_.chunk((0,r.Z)(e.buffer),this.currentConfig.bytesPerLine).map((function(e,t){De().f[2]++;var o=(De().s[13]++,e.map((function(e){return De().f[3]++,De().s[14]++,e.charCodeAt(0).toString(16).padStart(2,"0")}))),l=(De().s[15]++,3*n.currentConfig.bytesPerLine-1),i=(De().s[16]++,o.join(" ").padEnd(l," "));if(De().s[17]++,n.currentConfig.showAscii?(De().b[2][0]++,De().s[18]++,i+=" ",De().s[19]++,o=e.map((function(e){return De().f[4]++,De().s[20]++,e.replaceAll(/\n/g,"\\n").replaceAll(/\r/g,"\\r")})),De().s[21]++,i+=o.join("")):De().b[2][1]++,De().s[22]++,n.currentConfig.showLineAddress){De().b[3][0]++;var a=(De().s[23]++,(t*n.currentConfig.bytesPerLine).toString(16).padStart(8,"0"));De().s[24]++,i="".concat(a,": ").concat(i)}else De().b[3][1]++;return De().s[25]++,i})).join("\n")):(De().b[1][1]++,De().s[26]++,t+=Object.keys(e).filter((function(e){return De().f[5]++,De().s[27]++,"__"!=e.slice(0,2)})).map((function(n){return De().f[6]++,De().s[28]++,"".concat(n,": ").concat(e[n])})).join("\n")),De().s[29]++,t}}},Pe=Se,Oe=(0,O.Z)(Pe,Ce,ge,!1,null,null,null),Ie=Oe.exports;function Re(){var e="/openc3/plugins/packages/openc3-cosmos-tool-dataviewer/src/tools/DataViewer/DataViewer.vue",n="36e83b1b0e166e2cb72179e7b5bfa8d2b798d1e1",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:26,column:4},end:{line:85,column:5}},1:{start:{line:44,column:29},end:{line:44,column:50}},2:{start:{line:58,column:16},end:{line:58,column:38}},3:{start:{line:65,column:16},end:{line:65,column:38}},4:{start:{line:89,column:6},end:{line:95,column:7}},5:{start:{line:98,column:6},end:{line:100,column:8}},6:{start:{line:99,column:8},end:{line:99,column:26}},7:{start:{line:105,column:6},end:{line:105,column:23}},8:{start:{line:110,column:4},end:{line:128,column:6}},9:{start:{line:111,column:6},end:{line:127,column:8}},10:{start:{line:113,column:22},end:{line:113,column:56}},11:{start:{line:114,column:8},end:{line:126,column:9}},12:{start:{line:115,column:10},end:{line:125,column:12}},13:{start:{line:116,column:24},end:{line:116,column:43}},14:{start:{line:117,column:12},end:{line:120,column:13}},15:{start:{line:118,column:14},end:{line:118,column:50}},16:{start:{line:119,column:14},end:{line:119,column:68}},17:{start:{line:121,column:12},end:{line:124,column:14}},18:{start:{line:129,column:4},end:{line:129,column:30}},19:{start:{line:130,column:4},end:{line:130,column:20}},20:{start:{line:133,column:27},end:{line:133,column:66}},21:{start:{line:134,column:4},end:{line:136,column:5}},22:{start:{line:135,column:6},end:{line:135,column:44}},23:{start:{line:139,column:4},end:{line:141,column:5}},24:{start:{line:140,column:6},end:{line:140,column:37}},25:{start:{line:142,column:4},end:{line:142,column:27}},26:{start:{line:146,column:6},end:{line:146,column:75}},27:{start:{line:149,column:6},end:{line:149,column:53}},28:{start:{line:149,column:27},end:{line:149,column:53}},29:{start:{line:153,column:6},end:{line:157,column:7}},30:{start:{line:154,column:8},end:{line:154,column:62}},31:{start:{line:155,column:8},end:{line:155,column:27}},32:{start:{line:156,column:8},end:{line:156,column:14}},33:{start:{line:159,column:6},end:{line:163,column:7}},34:{start:{line:160,column:8},end:{line:160,column:71}},35:{start:{line:161,column:8},end:{line:161,column:27}},36:{start:{line:162,column:8},end:{line:162,column:14}},37:{start:{line:165,column:6},end:{line:173,column:7}},38:{start:{line:166,column:8},end:{line:171,column:24}},39:{start:{line:172,column:8},end:{line:172,column:27}},40:{start:{line:174,column:6},end:{line:174,column:25}},41:{start:{line:175,column:6},end:{line:175,column:37}},42:{start:{line:178,column:6},end:{line:178,column:26}},43:{start:{line:179,column:6},end:{line:179,column:42}},44:{start:{line:182,column:6},end:{line:204,column:10}},45:{start:{line:184,column:30},end:{line:184,column:49}},46:{start:{line:186,column:12},end:{line:186,column:32}},47:{start:{line:187,column:12},end:{line:187,column:42}},48:{start:{line:190,column:12},end:{line:190,column:23}},49:{start:{line:191,column:12},end:{line:191,column:33}},50:{start:{line:192,column:12},end:{line:192,column:72}},51:{start:{line:193,column:12},end:{line:193,column:31}},52:{start:{line:194,column:12},end:{line:194,column:41}},53:{start:{line:197,column:12},end:{line:197,column:68}},54:{start:{line:198,column:12},end:{line:198,column:31}},55:{start:{line:202,column:10},end:{line:202,column:42}},56:{start:{line:203,column:10},end:{line:203,column:59}},57:{start:{line:203,column:28},end:{line:203,column:59}},58:{start:{line:207,column:6},end:{line:207,column:42}},59:{start:{line:209,column:25},end:{line:216,column:12}},60:{start:{line:210,column:8},end:{line:214,column:9}},61:{start:{line:211,column:10},end:{line:211,column:42}},62:{start:{line:213,column:10},end:{line:213,column:40}},63:{start:{line:215,column:8},end:{line:215,column:21}},64:{start:{line:217,column:6},end:{line:220,column:8}},65:{start:{line:219,column:8},end:{line:219,column:57}},66:{start:{line:221,column:6},end:{line:235,column:7}},67:{start:{line:223,column:10},end:{line:225,column:11}},68:{start:{line:224,column:12},end:{line:224,column:34}},69:{start:{line:226,column:10},end:{line:233,column:12}},70:{start:{line:227,column:12},end:{line:232,column:14}},71:{start:{line:238,column:6},end:{line:238,column:42}},72:{start:{line:239,column:6},end:{line:243,column:8}},73:{start:{line:246,column:6},end:{line:246,column:29}},74:{start:{line:247,column:6},end:{line:251,column:7}},75:{start:{line:248,column:8},end:{line:248,column:40}},76:{start:{line:249,column:8},end:{line:249,column:25}},77:{start:{line:250,column:8},end:{line:250,column:14}},78:{start:{line:252,column:6},end:{line:255,column:7}},79:{start:{line:253,column:8},end:{line:253,column:19}},80:{start:{line:254,column:8},end:{line:254,column:14}},81:{start:{line:256,column:29},end:{line:263,column:12}},82:{start:{line:257,column:8},end:{line:261,column:9}},83:{start:{line:258,column:10},end:{line:258,column:46}},84:{start:{line:260,column:10},end:{line:260,column:44}},85:{start:{line:262,column:8},end:{line:262,column:21}},86:{start:{line:264,column:6},end:{line:272,column:8}},87:{start:{line:265,column:8},end:{line:271,column:10}},88:{start:{line:266,column:27},end:{line:266,column:55}},89:{start:{line:267,column:10},end:{line:267,column:49}},90:{start:{line:268,column:10},end:{line:270,column:11}},91:{start:{line:269,column:12},end:{line:269,column:70}},92:{start:{line:273,column:6},end:{line:273,column:56}},93:{start:{line:276,column:16},end:{line:276,column:34}},94:{start:{line:277,column:6},end:{line:281,column:7}},95:{start:{line:278,column:8},end:{line:278,column:20}},96:{start:{line:280,column:8},end:{line:280,column:20}},97:{start:{line:282,column:6},end:{line:282,column:59}},98:{start:{line:283,column:6},end:{line:283,column:65}},99:{start:{line:283,column:35},end:{line:283,column:65}},100:{start:{line:284,column:6},end:{line:284,column:16}},101:{start:{line:287,column:23},end:{line:287,column:52}},102:{start:{line:288,column:16},end:{line:288,column:89}},103:{start:{line:289,column:6},end:{line:289,column:65}},104:{start:{line:289,column:35},end:{line:289,column:65}},105:{start:{line:290,column:6},end:{line:290,column:16}},106:{start:{line:293,column:6},end:{line:293,column:52}},107:{start:{line:294,column:6},end:{line:294,column:65}},108:{start:{line:294,column:29},end:{line:294,column:65}},109:{start:{line:295,column:6},end:{line:295,column:31}},110:{start:{line:296,column:21},end:{line:296,column:68}},111:{start:{line:297,column:6},end:{line:299,column:7}},112:{start:{line:298,column:8},end:{line:298,column:42}},113:{start:{line:300,column:6},end:{line:300,column:76}},114:{start:{line:300,column:45},end:{line:300,column:76}},115:{start:{line:303,column:6},end:{line:303,column:52}},116:{start:{line:304,column:6},end:{line:304,column:76}},117:{start:{line:307,column:6},end:{line:307,column:28}},118:{start:{line:308,column:6},end:{line:308,column:40}},119:{start:{line:311,column:6},end:{line:311,column:32}},120:{start:{line:312,column:6},end:{line:312,column:26}},121:{start:{line:315,column:6},end:{line:315,column:25}},122:{start:{line:316,column:6},end:{line:316,column:28}},123:{start:{line:317,column:6},end:{line:317,column:30}},124:{start:{line:318,column:6},end:{line:318,column:35}},125:{start:{line:319,column:6},end:{line:319,column:35}},126:{start:{line:320,column:6},end:{line:322,column:8}},127:{start:{line:321,column:8},end:{line:321,column:31}},128:{start:{line:325,column:6},end:{line:325,column:61}},129:{start:{line:326,column:6},end:{line:326,column:31}},130:{start:{line:329,column:6},end:{line:329,column:61}},131:{start:{line:330,column:6},end:{line:330,column:32}},132:{start:{line:333,column:6},end:{line:337,column:7}},133:{start:{line:341,column:17},end:{line:341,column:38}},134:{start:{line:342,column:22},end:{line:342,column:43}},135:{start:{line:343,column:6},end:{line:350,column:7}},136:{start:{line:345,column:8},end:{line:345,column:33}},137:{start:{line:347,column:10},end:{line:348,column:54}},138:{start:{line:349,column:8},end:{line:349,column:35}},139:{start:{line:351,column:6},end:{line:360,column:8}},140:{start:{line:361,column:6},end:{line:361,column:20}},141:{start:{line:362,column:6},end:{line:362,column:47}},142:{start:{line:364,column:6},end:{line:366,column:7}},143:{start:{line:365,column:8},end:{line:365,column:52}},144:{start:{line:367,column:6},end:{line:367,column:31}},145:{start:{line:370,column:6},end:{line:370,column:41}},146:{start:{line:374,column:25},end:{line:374,column:27}},147:{start:{line:375,column:6},end:{line:379,column:8}},148:{start:{line:376,column:8},end:{line:378,column:9}},149:{start:{line:377,column:10},end:{line:377,column:77}},150:{start:{line:381,column:21},end:{line:383,column:7}},151:{start:{line:382,column:20},end:{line:382,column:71}},152:{start:{line:384,column:6},end:{line:386,column:7}},153:{start:{line:385,column:8},end:{line:385,column:52}},154:{start:{line:387,column:6},end:{line:387,column:42}}},fnMap:{0:{name:"(anonymous_0)",decl:{start:{line:25,column:2},end:{line:25,column:3}},loc:{start:{line:25,column:9},end:{line:86,column:3}},line:25},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:57,column:23},end:{line:57,column:24}},loc:{start:{line:57,column:29},end:{line:59,column:15}},line:57},3:{name:"(anonymous_3)",decl:{start:{line:64,column:23},end:{line:64,column:24}},loc:{start:{line:64,column:29},end:{line:66,column:15}},line:64},4:{name:"(anonymous_4)",decl:{start:{line:88,column:18},end:{line:88,column:19}},loc:{start:{line:88,column:30},end:{line:96,column:5}},line:88},5:{name:"(anonymous_5)",decl:{start:{line:97,column:16},end:{line:97,column:17}},loc:{start:{line:97,column:28},end:{line:101,column:5}},line:97},6:{name:"(anonymous_6)",decl:{start:{line:98,column:38},end:{line:98,column:39}},loc:{start:{line:98,column:47},end:{line:100,column:7}},line:98},7:{name:"(anonymous_7)",decl:{start:{line:104,column:26},end:{line:104,column:27}},loc:{start:{line:104,column:38},end:{line:106,column:5}},line:104},8:{name:"(anonymous_8)",decl:{start:{line:108,column:2},end:{line:108,column:3}},loc:{start:{line:108,column:12},end:{line:131,column:3}},line:108},9:{name:"(anonymous_9)",decl:{start:{line:110,column:40},end:{line:110,column:41}},loc:{start:{line:110,column:54},end:{line:128,column:5}},line:110},10:{name:"(anonymous_10)",decl:{start:{line:111,column:28},end:{line:111,column:29}},loc:{start:{line:111,column:40},end:{line:127,column:7}},line:111},11:{name:"(anonymous_11)",decl:{start:{line:115,column:56},end:{line:115,column:57}},loc:{start:{line:115,column:70},end:{line:125,column:11}},line:115},12:{name:"(anonymous_12)",decl:{start:{line:132,column:11},end:{line:132,column:12}},loc:{start:{line:132,column:23},end:{line:137,column:3}},line:132},13:{name:"(anonymous_13)",decl:{start:{line:138,column:13},end:{line:138,column:14}},loc:{start:{line:138,column:25},end:{line:143,column:3}},line:138},14:{name:"(anonymous_14)",decl:{start:{line:145,column:17},end:{line:145,column:18}},loc:{start:{line:145,column:35},end:{line:147,column:5}},line:145},15:{name:"(anonymous_15)",decl:{start:{line:148,column:16},end:{line:148,column:17}},loc:{start:{line:148,column:28},end:{line:150,column:5}},line:148},16:{name:"(anonymous_16)",decl:{start:{line:151,column:11},end:{line:151,column:12}},loc:{start:{line:151,column:23},end:{line:176,column:5}},line:151},17:{name:"(anonymous_17)",decl:{start:{line:177,column:10},end:{line:177,column:11}},loc:{start:{line:177,column:22},end:{line:180,column:5}},line:177},18:{name:"(anonymous_18)",decl:{start:{line:181,column:15},end:{line:181,column:16}},loc:{start:{line:181,column:27},end:{line:205,column:5}},line:181},19:{name:"(anonymous_19)",decl:{start:{line:184,column:20},end:{line:184,column:21}},loc:{start:{line:184,column:30},end:{line:184,column:49}},line:184},20:{name:"(anonymous_20)",decl:{start:{line:185,column:21},end:{line:185,column:22}},loc:{start:{line:185,column:27},end:{line:188,column:11}},line:185},21:{name:"(anonymous_21)",decl:{start:{line:189,column:24},end:{line:189,column:25}},loc:{start:{line:189,column:30},end:{line:195,column:11}},line:189},22:{name:"(anonymous_22)",decl:{start:{line:196,column:20},end:{line:196,column:21}},loc:{start:{line:196,column:26},end:{line:199,column:11}},line:196},23:{name:"(anonymous_23)",decl:{start:{line:201,column:14},end:{line:201,column:15}},loc:{start:{line:201,column:32},end:{line:204,column:9}},line:201},24:{name:"(anonymous_24)",decl:{start:{line:206,column:30},end:{line:206,column:31}},loc:{start:{line:206,column:49},end:{line:236,column:5}},line:206},25:{name:"(anonymous_25)",decl:{start:{line:209,column:40},end:{line:209,column:41}},loc:{start:{line:209,column:60},end:{line:216,column:7}},line:209},26:{name:"(anonymous_26)",decl:{start:{line:217,column:38},end:{line:217,column:39}},loc:{start:{line:217,column:48},end:{line:220,column:7}},line:217},27:{name:"(anonymous_27)",decl:{start:{line:222,column:8},end:{line:222,column:9}},loc:{start:{line:222,column:23},end:{line:234,column:9}},line:222},28:{name:"(anonymous_28)",decl:{start:{line:226,column:42},end:{line:226,column:43}},loc:{start:{line:226,column:52},end:{line:233,column:11}},line:226},29:{name:"(anonymous_29)",decl:{start:{line:237,column:35},end:{line:237,column:36}},loc:{start:{line:237,column:54},end:{line:244,column:5}},line:237},30:{name:"(anonymous_30)",decl:{start:{line:245,column:14},end:{line:245,column:15}},loc:{start:{line:245,column:32},end:{line:274,column:5}},line:245},31:{name:"(anonymous_31)",decl:{start:{line:256,column:43},end:{line:256,column:44}},loc:{start:{line:256,column:63},end:{line:263,column:7}},line:256},32:{name:"(anonymous_32)",decl:{start:{line:264,column:31},end:{line:264,column:32}},loc:{start:{line:264,column:43},end:{line:272,column:7}},line:264},33:{name:"(anonymous_33)",decl:{start:{line:265,column:28},end:{line:265,column:29}},loc:{start:{line:265,column:46},end:{line:271,column:9}},line:265},34:{name:"(anonymous_34)",decl:{start:{line:275,column:15},end:{line:275,column:16}},loc:{start:{line:275,column:33},end:{line:285,column:5}},line:275},35:{name:"(anonymous_35)",decl:{start:{line:286,column:21},end:{line:286,column:22}},loc:{start:{line:286,column:39},end:{line:291,column:5}},line:286},36:{name:"(anonymous_36)",decl:{start:{line:292,column:23},end:{line:292,column:24}},loc:{start:{line:292,column:45},end:{line:301,column:5}},line:292},37:{name:"(anonymous_37)",decl:{start:{line:302,column:23},end:{line:302,column:24}},loc:{start:{line:302,column:39},end:{line:305,column:5}},line:302},38:{name:"(anonymous_38)",decl:{start:{line:306,column:12},end:{line:306,column:13}},loc:{start:{line:306,column:24},end:{line:309,column:5}},line:306},39:{name:"(anonymous_39)",decl:{start:{line:310,column:21},end:{line:310,column:22}},loc:{start:{line:310,column:33},end:{line:313,column:5}},line:310},40:{name:"(anonymous_40)",decl:{start:{line:314,column:13},end:{line:314,column:14}},loc:{start:{line:314,column:37},end:{line:323,column:5}},line:314},41:{name:"(anonymous_41)",decl:{start:{line:320,column:21},end:{line:320,column:22}},loc:{start:{line:320,column:27},end:{line:322,column:7}},line:320},42:{name:"(anonymous_42)",decl:{start:{line:324,column:23},end:{line:324,column:24}},loc:{start:{line:324,column:35},end:{line:327,column:5}},line:324},43:{name:"(anonymous_43)",decl:{start:{line:328,column:15},end:{line:328,column:16}},loc:{start:{line:328,column:27},end:{line:331,column:5}},line:328},44:{name:"(anonymous_44)",decl:{start:{line:332,column:20},end:{line:332,column:21}},loc:{start:{line:332,column:37},end:{line:338,column:5}},line:332},45:{name:"(anonymous_45)",decl:{start:{line:339,column:18},end:{line:339,column:19}},loc:{start:{line:339,column:35},end:{line:368,column:5}},line:339},46:{name:"(anonymous_46)",decl:{start:{line:369,column:24},end:{line:369,column:25}},loc:{start:{line:369,column:36},end:{line:371,column:5}},line:369},47:{name:"(anonymous_47)",decl:{start:{line:372,column:21},end:{line:372,column:22}},loc:{start:{line:372,column:41},end:{line:388,column:5}},line:372},48:{name:"(anonymous_48)",decl:{start:{line:375,column:31},end:{line:375,column:32}},loc:{start:{line:375,column:43},end:{line:379,column:7}},line:375},49:{name:"(anonymous_49)",decl:{start:{line:382,column:8},end:{line:382,column:9}},loc:{start:{line:382,column:20},end:{line:382,column:71}},line:382}},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:92,column:18},end:{line:94,column:16}},type:"cond-expr",locations:[{start:{line:93,column:12},end:{line:93,column:77}},{start:{line:94,column:12},end:{line:94,column:16}}],line:92},2:{loc:{start:{line:114,column:8},end:{line:126,column:9}},type:"if",locations:[{start:{line:114,column:8},end:{line:126,column:9}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:114},3:{loc:{start:{line:117,column:12},end:{line:120,column:13}},type:"if",locations:[{start:{line:117,column:12},end:{line:120,column:13}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:117},4:{loc:{start:{line:134,column:4},end:{line:136,column:5}},type:"if",locations:[{start:{line:134,column:4},end:{line:136,column:5}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:134},5:{loc:{start:{line:139,column:4},end:{line:141,column:5}},type:"if",locations:[{start:{line:139,column:4},end:{line:141,column:5}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:139},6:{loc:{start:{line:149,column:6},end:{line:149,column:53}},type:"if",locations:[{start:{line:149,column:6},end:{line:149,column:53}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:149},7:{loc:{start:{line:153,column:6},end:{line:157,column:7}},type:"if",locations:[{start:{line:153,column:6},end:{line:157,column:7}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:153},8:{loc:{start:{line:159,column:6},end:{line:163,column:7}},type:"if",locations:[{start:{line:159,column:6},end:{line:163,column:7}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:159},9:{loc:{start:{line:165,column:6},end:{line:173,column:7}},type:"if",locations:[{start:{line:165,column:6},end:{line:173,column:7}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:165},10:{loc:{start:{line:203,column:10},end:{line:203,column:59}},type:"if",locations:[{start:{line:203,column:10},end:{line:203,column:59}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:203},11:{loc:{start:{line:207,column:16},end:{line:207,column:42}},type:"binary-expr",locations:[{start:{line:207,column:16},end:{line:207,column:23}},{start:{line:207,column:27},end:{line:207,column:42}}],line:207},12:{loc:{start:{line:210,column:8},end:{line:214,column:9}},type:"if",locations:[{start:{line:210,column:8},end:{line:214,column:9}},{start:{line:212,column:15},end:{line:214,column:9}}],line:210},13:{loc:{start:{line:223,column:10},end:{line:225,column:11}},type:"if",locations:[{start:{line:223,column:10},end:{line:225,column:11}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:223},14:{loc:{start:{line:238,column:16},end:{line:238,column:42}},type:"binary-expr",locations:[{start:{line:238,column:16},end:{line:238,column:23}},{start:{line:238,column:27},end:{line:238,column:42}}],line:238},15:{loc:{start:{line:247,column:6},end:{line:251,column:7}},type:"if",locations:[{start:{line:247,column:6},end:{line:251,column:7}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:247},16:{loc:{start:{line:252,column:6},end:{line:255,column:7}},type:"if",locations:[{start:{line:252,column:6},end:{line:255,column:7}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:252},17:{loc:{start:{line:257,column:8},end:{line:261,column:9}},type:"if",locations:[{start:{line:257,column:8},end:{line:261,column:9}},{start:{line:259,column:15},end:{line:261,column:9}}],line:257},18:{loc:{start:{line:268,column:10},end:{line:270,column:11}},type:"if",locations:[{start:{line:268,column:10},end:{line:270,column:11}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:268},19:{loc:{start:{line:277,column:6},end:{line:281,column:7}},type:"if",locations:[{start:{line:277,column:6},end:{line:281,column:7}},{start:{line:279,column:13},end:{line:281,column:7}}],line:277},20:{loc:{start:{line:283,column:6},end:{line:283,column:65}},type:"if",locations:[{start:{line:283,column:6},end:{line:283,column:65}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:283},21:{loc:{start:{line:289,column:6},end:{line:289,column:65}},type:"if",locations:[{start:{line:289,column:6},end:{line:289,column:65}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:289},22:{loc:{start:{line:294,column:6},end:{line:294,column:65}},type:"if",locations:[{start:{line:294,column:6},end:{line:294,column:65}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:294},23:{loc:{start:{line:297,column:6},end:{line:299,column:7}},type:"if",locations:[{start:{line:297,column:6},end:{line:299,column:7}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:297},24:{loc:{start:{line:300,column:6},end:{line:300,column:76}},type:"if",locations:[{start:{line:300,column:6},end:{line:300,column:76}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:300},25:{loc:{start:{line:300,column:10},end:{line:300,column:43}},type:"binary-expr",locations:[{start:{line:300,column:10},end:{line:300,column:27}},{start:{line:300,column:31},end:{line:300,column:43}}],line:300},26:{loc:{start:{line:343,column:6},end:{line:350,column:7}},type:"if",locations:[{start:{line:343,column:6},end:{line:350,column:7}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:343},27:{loc:{start:{line:364,column:6},end:{line:366,column:7}},type:"if",locations:[{start:{line:364,column:6},end:{line:366,column:7}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:364},28:{loc:{start:{line:376,column:8},end:{line:378,column:9}},type:"if",locations:[{start:{line:376,column:8},end:{line:378,column:9}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:376},29:{loc:{start:{line:384,column:6},end:{line:386,column:7}},type:"if",locations:[{start:{line:384,column:6},end:{line:386,column:7}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:384}},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},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},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,0],28:[0,0],29:[0,0]},inputSourceMap:{version:3,sources:["DataViewer.vue"],names:[],mappings:";AAmOA;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;;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-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="start-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-card>\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 class="mt-2 ml-2" @click="addTab" icon data-test="new-tab">\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 :tool="toolName"\n @success="openConfiguration($event)"\n />\n <save-config-dialog\n v-if="saveConfig"\n v-model="saveConfig"\n :tool="toolName"\n @success="saveConfiguration($event)"\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 { OpenC3Api } from \'@openc3/tool-common/src/services/openc3-api\'\nimport Api from \'@openc3/tool-common/src/services/api\'\nimport OpenConfigDialog from \'@openc3/tool-common/src/components/OpenConfigDialog\'\nimport SaveConfigDialog from \'@openc3/tool-common/src/components/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 data() {\n return {\n title: \'COSMOS Data Viewer\',\n toolName: \'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 api: null,\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 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 },\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 },\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.api = new OpenC3Api()\n this.subscribe()\n },\n mounted: function () {\n const previousConfig = localStorage[\'lastconfig__data_viewer\']\n if (previousConfig) {\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 // 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 this.subscription.perform(\'remove\', {\n scope: window.openc3Scope,\n token: localStorage.openc3Token,\n packets: packets.map(this.subscriptionKey),\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: async function (name) {\n localStorage[\'lastconfig__data_viewer\'] = name\n if (this.subscription) this.removePacketsFromSubscription()\n this.receivedPackets = {}\n let response = await this.api.load_config(this.toolName, name)\n if (response) {\n this.config = JSON.parse(response)\n }\n if (this.subscription && this.running) this.addPacketsToSubscription()\n },\n saveConfiguration: function (name) {\n localStorage[\'lastconfig__data_viewer\'] = name\n this.api.save_config(this.toolName, name, JSON.stringify(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.start-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:"36e83b1b0e166e2cb72179e7b5bfa8d2b798d1e1"},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();var Me={components:{AddComponentDialog:ce,OpenConfigDialog:R,SaveConfigDialog:U,DynamicComponent:he,DumpComponent:Ie,TopBar:G},data:function(){var e=this;return Re().f[0]++,Re().s[0]++,{title:"COSMOS Data Viewer",toolName:"data-viewer",components:[{label:"COSMOS Raw/Decom",value:"DumpComponent"}],counter:0,componentType:null,componentName:null,openConfig:!1,saveConfig:!1,api:null,cable:new Z,subscription:null,startDate:(0,u.Z)(new Date,"yyyy-MM-dd"),startTime:(0,u.Z)(new Date,"HH:mm:ss"),endDate:"",endTime:"",rules:{required:function(e){return Re().f[1]++,Re().s[1]++,Re().b[0][0]++,!!e||(Re().b[0][1]++,"Required")}},canStart:!1,running:!1,curTab:null,receivedPackets:{},menus:[{label:"File",items:[{label:"Open Configuration",icon:"mdi-folder-open",command:function(){Re().f[2]++,Re().s[2]++,e.openConfig=!0}},{label:"Save Configuration",icon:"mdi-content-save",command:function(){Re().f[3]++,Re().s[3]++,e.saveConfig=!0}}]}],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 Re().f[4]++,Re().s[4]++,{start_time:1e6*new Date(this.startDate+" "+this.startTime).getTime(),end_time:this.endDate?(Re().b[1][0]++,1e6*new Date(this.endDate+" "+this.endTime).getTime()):(Re().b[1][1]++,null)}},allPackets:function(){return Re().f[5]++,Re().s[5]++,this.config.tabs.flatMap((function(e){return Re().f[6]++,Re().s[6]++,e.packets}))}},watch:{"config.tabs.length":function(){Re().f[7]++,Re().s[7]++,this.resizeTabs()}},created:function(){var e=this;Re().f[8]++,Re().s[8]++,x.get("/openc3-api/widgets").then((function(n){Re().f[9]++,Re().s[9]++,n.data.forEach((function(n){Re().f[10]++;var t=(Re().s[10]++,n.match(/DATAVIEWER([A-Z]+)/));Re().s[11]++,t?(Re().b[2][0]++,Re().s[12]++,x.get("/openc3-api/widgets/".concat(n)).then((function(n){Re().f[11]++;var o=(Re().s[13]++,n.data.label);Re().s[14]++,null===o?(Re().b[3][0]++,Re().s[15]++,o=n.data.name.slice(10),Re().s[16]++,o=o.charAt(0)+o.slice(1).toLowerCase()):Re().b[3][1]++,Re().s[17]++,e.components.push({label:o,value:t[0]})}))):Re().b[2][1]++}))})),Re().s[18]++,this.api=new y,Re().s[19]++,this.subscribe()},mounted:function(){Re().f[12]++;var e=(Re().s[20]++,localStorage["lastconfig__data_viewer"]);Re().s[21]++,e?(Re().b[4][0]++,Re().s[22]++,this.openConfiguration(e)):Re().b[4][1]++},destroyed:function(){Re().f[13]++,Re().s[23]++,this.subscription?(Re().b[5][0]++,Re().s[24]++,this.subscription.unsubscribe()):Re().b[5][1]++,Re().s[25]++,this.cable.disconnect()},methods:{packetTitle:function(e){return Re().f[14]++,Re().s[26]++,"".concat(e.targetName," ").concat(e.packetName," [ ").concat(e.mode," ]")},resizeTabs:function(){Re().f[15]++,Re().s[27]++,this.$refs.tabs?(Re().b[6][0]++,Re().s[28]++,this.$refs.tabs.onResize()):Re().b[6][1]++},start:function(){return Re().f[16]++,Re().s[29]++,new Date(this.startDate+" "+this.startTime)>Date.now()?(Re().b[7][0]++,Re().s[30]++,this.warningText="Start date/time is in the future!",Re().s[31]++,this.warning=!0,void Re().s[32]++):(Re().b[7][1]++,Re().s[33]++,this.startEndTime.start_time===this.startEndTime.end_time?(Re().b[8][0]++,Re().s[34]++,this.warningText="Start date/time is equal to end date/time!",Re().s[35]++,this.warning=!0,void Re().s[36]++):(Re().b[8][1]++,Re().s[37]++,new Date(this.endDate+" "+this.endTime)>Date.now()?(Re().b[9][0]++,Re().s[38]++,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.",Re().s[39]++,this.warning=!0):Re().b[9][1]++,Re().s[40]++,this.running=!0,Re().s[41]++,void this.addPacketsToSubscription()))},stop:function(){Re().f[17]++,Re().s[42]++,this.running=!1,Re().s[43]++,this.removePacketsFromSubscription()},subscribe:function(){var e=this;Re().f[18]++,Re().s[44]++,this.cable.createSubscription("StreamingChannel",window.openc3Scope,{received:function(n){return Re().f[19]++,Re().s[45]++,e.received(n)},connected:function(){Re().f[20]++,Re().s[46]++,e.canStart=!0,Re().s[47]++,e.connectionFailure=!1},disconnected:function(){Re().f[21]++,Re().s[48]++,e.stop(),Re().s[49]++,e.canStart=!1,Re().s[50]++,e.warningText="OpenC3 backend connection disconnected.",Re().s[51]++,e.warning=!0,Re().s[52]++,e.connectionFailure=!0},rejected:function(){Re().f[22]++,Re().s[53]++,e.warningText="OpenC3 backend connection rejected.",Re().s[54]++,e.warning=!0}}).then((function(n){Re().f[23]++,Re().s[55]++,e.subscription=n,Re().s[56]++,e.running?(Re().b[10][0]++,Re().s[57]++,e.addPacketsToSubscription()):Re().b[10][1]++}))},addPacketsToSubscription:function(e){var n=this;Re().f[24]++,Re().s[58]++,Re().b[11][0]++,e=e||(Re().b[11][1]++,this.allPackets);var t=(Re().s[59]++,e.reduce((function(e,n){return Re().f[25]++,Re().s[60]++,e[n.mode]?(Re().b[12][0]++,Re().s[61]++,e[n.mode].push(n)):(Re().b[12][1]++,Re().s[62]++,e[n.mode]=[n]),Re().s[63]++,e}),{}));Re().s[64]++,Object.keys(t).forEach((function(e){Re().f[26]++,Re().s[65]++,t[e]=(0,r.Z)(new Set(t[e]))})),Re().s[66]++,OpenC3Auth.updateToken(OpenC3Auth.defaultMinValidity).then((function(e){Re().f[27]++,Re().s[67]++,e?(Re().b[13][0]++,Re().s[68]++,OpenC3Auth.setTokens()):Re().b[13][1]++,Re().s[69]++,Object.keys(t).forEach((function(e){Re().f[28]++,Re().s[70]++,n.subscription.perform("add",(0,s.Z)({scope:window.openc3Scope,token:localStorage.openc3Token,packets:t[e].map(n.subscriptionKey)},n.startEndTime))}))}))},removePacketsFromSubscription:function(e){Re().f[29]++,Re().s[71]++,Re().b[14][0]++,e=e||(Re().b[14][1]++,this.allPackets),Re().s[72]++,this.subscription.perform("remove",{scope:window.openc3Scope,token:localStorage.openc3Token,packets:e.map(this.subscriptionKey)})},received:function(e){var n=this;if(Re().f[30]++,Re().s[73]++,this.cable.recordPing(),Re().s[74]++,e["error"])return Re().b[15][0]++,Re().s[75]++,this.errorText=e["error"],Re().s[76]++,this.error=!0,void Re().s[77]++;if(Re().b[15][1]++,Re().s[78]++,!e.length)return Re().b[16][0]++,Re().s[79]++,this.stop(),void Re().s[80]++;Re().b[16][1]++;var t=(Re().s[81]++,e.reduce((function(e,n){return Re().f[31]++,Re().s[82]++,e[n.__packet]?(Re().b[17][0]++,Re().s[83]++,e[n.__packet].push(n)):(Re().b[17][1]++,Re().s[84]++,e[n.__packet]=[n]),Re().s[85]++,e}),{}));Re().s[86]++,this.config.tabs.forEach((function(e,o){Re().f[32]++,Re().s[87]++,e.packets.forEach((function(o){Re().f[33]++;var l=(Re().s[88]++,n.packetKey(o));Re().s[89]++,n.receivedPackets[l]=!0,Re().s[90]++,t[l]?(Re().b[18][0]++,Re().s[91]++,n.$refs[e.ref][0].receive(t[l])):Re().b[18][1]++}))})),Re().s[92]++,this.receivedPackets=(0,s.Z)({},this.receivedPackets)},packetKey:function(e){Re().f[34]++;var n=(Re().s[93]++,e.mode+"__");return Re().s[94]++,"TLM"===e.cmdOrTlm?(Re().b[19][0]++,Re().s[95]++,n+="TLM"):(Re().b[19][1]++,Re().s[96]++,n+="CMD"),Re().s[97]++,n+="__".concat(e.targetName,"__").concat(e.packetName),Re().s[98]++,"DECOM"===e.mode?(Re().b[20][0]++,Re().s[99]++,n+="__".concat(e.valueType)):Re().b[20][1]++,Re().s[100]++,n},subscriptionKey:function(e){Re().f[35]++;var n=(Re().s[101]++,e.cmdOrTlm.toUpperCase()),t=(Re().s[102]++,"".concat(e.mode,"__").concat(n,"__").concat(e.targetName,"__").concat(e.packetName));return Re().s[103]++,"DECOM"===e.mode?(Re().b[21][0]++,Re().s[104]++,t+="__".concat(e.valueType)):Re().b[21][1]++,Re().s[105]++,t},openConfiguration:function(){var e=(0,c.Z)((0,a.Z)().mark((function e(n){var t;return(0,a.Z)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return Re().f[36]++,Re().s[106]++,localStorage["lastconfig__data_viewer"]=n,Re().s[107]++,this.subscription?(Re().b[22][0]++,Re().s[108]++,this.removePacketsFromSubscription()):Re().b[22][1]++,Re().s[109]++,this.receivedPackets={},Re().s[110]++,e.next=10,this.api.load_config(this.toolName,n);case 10:t=e.sent,Re().s[111]++,t?(Re().b[23][0]++,Re().s[112]++,this.config=JSON.parse(t)):Re().b[23][1]++,Re().s[113]++,Re().b[25][0]++,this.subscription&&(Re().b[25][1]++,this.running)?(Re().b[24][0]++,Re().s[114]++,this.addPacketsToSubscription()):Re().b[24][1]++;case 15:case"end":return e.stop()}}),e,this)})));function n(n){return e.apply(this,arguments)}return n}(),saveConfiguration:function(e){Re().f[37]++,Re().s[115]++,localStorage["lastconfig__data_viewer"]=e,Re().s[116]++,this.api.save_config(this.toolName,e,JSON.stringify(this.config))},addTab:function(){Re().f[38]++,Re().s[117]++,this.cancelTabRename(),Re().s[118]++,this.showAddComponentDialog=!0},cancelTabRename:function(){Re().f[39]++,Re().s[119]++,this.tabNameDialog=!1,Re().s[120]++,this.newTabName=""},tabMenu:function(e,n){var t=this;Re().f[40]++,Re().s[121]++,this.curTab=n,Re().s[122]++,e.preventDefault(),Re().s[123]++,this.showTabMenu=!1,Re().s[124]++,this.tabMenuX=e.clientX,Re().s[125]++,this.tabMenuY=e.clientY,Re().s[126]++,this.$nextTick((function(){Re().f[41]++,Re().s[127]++,t.showTabMenu=!0}))},openTabNameDialog:function(){Re().f[42]++,Re().s[128]++,this.newTabName=this.config.tabs[this.curTab].tabName,Re().s[129]++,this.tabNameDialog=!0},renameTab:function(){Re().f[43]++,Re().s[130]++,this.config.tabs[this.curTab].tabName=this.newTabName,Re().s[131]++,this.tabNameDialog=!1},packetSelected:function(e){Re().f[44]++,Re().s[132]++,this.newPacket={target:e.targetName,packet:e.packetName,cmdOrTlm:this.newPacketCmdOrTlm}},addComponent:function(e){Re().f[45]++;var n=(Re().s[133]++,e.component.value),t=(Re().s[134]++,e.component.value);if(Re().s[135]++,e.component.value.includes("DATAVIEWER")){Re().b[26][0]++,Re().s[136]++,n="DynamicComponent";var o=(Re().s[137]++,e.component.value.charAt(0).toUpperCase()+e.component.value.slice(1).toLowerCase());Re().s[138]++,t="".concat(o,"Widget")}else Re().b[26][1]++;Re().s[139]++,this.config.tabs.push({name:e.component.label,tabName:this.packetTitle(e.packets[0]),packets:(0,r.Z)(e.packets),type:n,component:t,config:{},ref:"component".concat(this.counter)}),Re().s[140]++,this.counter++,Re().s[141]++,this.curTab=this.config.tabs.length-1,Re().s[142]++,this.running?(Re().b[27][0]++,Re().s[143]++,this.addPacketsToSubscription(e.packets)):Re().b[27][1]++,Re().s[144]++,this.cancelAddComponent()},cancelAddComponent:function(){Re().f[46]++,Re().s[145]++,this.showAddComponentDialog=!1},deleteComponent:function(e){var n=this;Re().f[47]++;var t=(Re().s[146]++,[]);Re().s[147]++,this.config.tabs.forEach((function(o,l){Re().f[48]++,Re().s[148]++,l!==e?(Re().b[28][0]++,Re().s[149]++,t=t.concat(o.packets.map(n.packetKey))):Re().b[28][1]++}));var o=(Re().s[150]++,this.config.tabs[e].packets.filter((function(e){return Re().f[49]++,Re().s[151]++,-1===t.indexOf(n.packetKey(e))})));Re().s[152]++,o.length>0?(Re().b[29][0]++,Re().s[153]++,this.removePacketsFromSubscription(o)):Re().b[29][1]++,Re().s[154]++,this.config.tabs.splice(e,1)}}},Ee=Me,Le=(t(2575),(0,O.Z)(Ee,l,i,!1,null,"202cb310",null)),Ve=Le.exports},1082:function(e,n,t){"use strict";t.r(n);var o=t(3467),l=t.n(o),i=t(8715),a=t.n(i),c=a()(l());c.push([e.id,".start-button[data-v-202cb310]{-webkit-animation:pulse-202cb310 2s infinite;animation:pulse-202cb310 2s infinite}@-webkit-keyframes pulse-202cb310{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-202cb310{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-202cb310]{font-family:Courier New,Courier,monospace}.v-tabs-items[data-v-202cb310]{overflow:visible}",""]),n["default"]=c},2357:function(e,n,t){"use strict";t.r(n);var o=t(3467),l=t.n(o),i=t(8715),a=t.n(i),c=a()(l());c.push([e.id,".row+.row{margin-top:0}",""]),n["default"]=c},3535:function(e,n,t){"use strict";t.r(n);var o=t(3467),l=t.n(o),i=t(8715),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},8602:function(e,n,t){"use strict";t.r(n);var o=t(3467),l=t.n(o),i=t(8715),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},2575:function(e,n,t){var o=t(1082);o.__esModule&&(o=o.default),"string"===typeof o&&(o=[[e.id,o,""]]),o.locals&&(e.exports=o.locals);var l=t(3514).Z;l("73566e02",o,!0,{sourceMap:!1,shadowMode:!1})},6813:function(e,n,t){var o=t(2357);o.__esModule&&(o=o.default),"string"===typeof o&&(o=[[e.id,o,""]]),o.locals&&(e.exports=o.locals);var l=t(3514).Z;l("fdc70f28",o,!0,{sourceMap:!1,shadowMode:!1})},2916:function(e,n,t){var o=t(3535);o.__esModule&&(o=o.default),"string"===typeof o&&(o=[[e.id,o,""]]),o.locals&&(e.exports=o.locals);var l=t(3514).Z;l("5f049f38",o,!0,{sourceMap:!1,shadowMode:!1})},624:function(e,n,t){var o=t(8602);o.__esModule&&(o=o.default),"string"===typeof o&&(o=[[e.id,o,""]]),o.locals&&(e.exports=o.locals);var l=t(3514).Z;l("531ec833",o,!0,{sourceMap:!1,shadowMode:!1})}}]);
|
2
|
+
//# sourceMappingURL=523.js.map
|