openc3-cosmos-tool-tablemanager 5.9.0 → 5.10.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: bcdd1e609739245dcc5a32fa34ee2c8dcd1cc44a519c2fa5d5fa47f90f69adda
4
- data.tar.gz: 80acee18de1a4e44956927cdcc4d4ad15b96c66e4b99b673ef1a8a797e174e70
3
+ metadata.gz: accf8a2c4c95612cad185d8d8eb2d32f5390a4b82cbe485480a315a43e102ae1
4
+ data.tar.gz: c7a5a32c4a873a223edf3b4e9e416e70d2687a030fd0eada37eec5237f1bc5c6
5
5
  SHA512:
6
- metadata.gz: 36e40257594f5aaa58e95cf2bd362fa747278b52fcbcc7690f94bcf89fd00feace7179d8218a94678d965efbb41d63e74ac33dfd246f49acae83005512f5702b
7
- data.tar.gz: fbd77afd467259e0e1e16bd4d78a520b6bce408698c91d90d85d1a10b07a6676edd32b8c7d01d886b91b37d1734f98bf239e699ce4256441f7a74020776c646d
6
+ metadata.gz: b6638455f27f33ca3ed8183605d2f650764bfa5c0ad34861d9ba570fdf99143c835f84e6dcdbf03aed9b6dd1557ee9b55b4eb93a52fa8e48c1a068a11b8e1b13
7
+ data.tar.gz: bf6e10b85a8352f7b3fc8c2a9e261c52a7cc08eae8c555ecd8d742b5280ca3e3d2d6014db5728429d1fe62925540a6ee86be64e4d95f629e745360cea6ea038a
@@ -0,0 +1,2 @@
1
+ (self["webpackChunk_openc3_cosmos_tool_tablemanager"]=self["webpackChunk_openc3_cosmos_tool_tablemanager"]||[]).push([[349],{1349:function(n,e,t){"use strict";t.r(e),t.d(e,{default:function(){return hn}});t(7950),t(4908),t(8178);function l(){var n="/openc3/plugins/packages/openc3-cosmos-tool-tablemanager/src/tools/TableManager/TableManager.vue",e="d82f6b4ab44c15f0c6abe5c85d982264ac07cd71",t=new Function("return this")(),i="__coverage__",o={path:"/openc3/plugins/packages/openc3-cosmos-tool-tablemanager/src/tools/TableManager/TableManager.vue",statementMap:{0:{start:{line:1,column:13},end:{line:6,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:5,column:2310}},4:{start:{line:1,column:258},end:{line:3,column:58}},5:{start:{line:2,column:12},end:{line:2,column:41}},6:{start:{line:3,column:125},end:{line:3,column:150}},7:{start:{line:3,column:521},end:{line:3,column:538}},8:{start:{line:3,column:901},end:{line:3,column:921}},9:{start:{line:3,column:1218},end:{line:3,column:1244}},10:{start:{line:3,column:1613},end:{line:3,column:1644}},11:{start:{line:3,column:1910},end:{line:3,column:1945}},12:{start:{line:3,column:2201},end:{line:3,column:2232}},13:{start:{line:3,column:2509},end:{line:3,column:2528}},14:{start:{line:3,column:2807},end:{line:3,column:2828}},15:{start:{line:3,column:3074},end:{line:3,column:3355}},16:{start:{line:3,column:3292},end:{line:3,column:3316}},17:{start:{line:3,column:3691},end:{line:3,column:3705}},18:{start:{line:3,column:3798},end:{line:3,column:3812}},19:{start:{line:3,column:3878},end:{line:3,column:3945}},20:{start:{line:3,column:4021},end:{line:3,column:4035}},21:{start:{line:3,column:4101},end:{line:5,column:1417}},22:{start:{line:5,column:139},end:{line:5,column:269}},23:{start:{line:5,column:231},end:{line:5,column:264}},24:{start:{line:5,column:324},end:{line:5,column:1381}},25:{start:{line:5,column:634},end:{line:5,column:671}},26:{start:{line:5,column:938},end:{line:5,column:979}},27:{start:{line:5,column:1236},end:{line:5,column:1273}},28:{start:{line:5,column:1551},end:{line:5,column:1577}},29:{start:{line:5,column:1604},end:{line:5,column:1631}},30:{start:{line:5,column:1687},end:{line:5,column:1703}},31:{start:{line:5,column:1930},end:{line:5,column:1963}},32:{start:{line:5,column:1990},end:{line:5,column:2017}},33:{start:{line:5,column:2075},end:{line:5,column:2093}},34:{start:{line:5,column:2262},end:{line:5,column:2279}},35:{start:{line:7,column:22},end:{line:7,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:6,column:1}},line:1},1:{name:"(anonymous_1)",decl:{start:{line:1,column:238},end:{line:1,column:239}},loc:{start:{line:1,column:257},end:{line:3,column:59}},line:1},2:{name:"(anonymous_2)",decl:{start:{line:1,column:477},end:{line:1,column:478}},loc:{start:{line:1,column:483},end:{line:3,column:11}},line:1},3:{name:"(anonymous_3)",decl:{start:{line:3,column:109},end:{line:3,column:110}},loc:{start:{line:3,column:124},end:{line:3,column:151}},line:3},4:{name:"(anonymous_4)",decl:{start:{line:3,column:505},end:{line:3,column:506}},loc:{start:{line:3,column:520},end:{line:3,column:539}},line:3},5:{name:"(anonymous_5)",decl:{start:{line:3,column:885},end:{line:3,column:886}},loc:{start:{line:3,column:900},end:{line:3,column:922}},line:3},6:{name:"(anonymous_6)",decl:{start:{line:3,column:1202},end:{line:3,column:1203}},loc:{start:{line:3,column:1217},end:{line:3,column:1245}},line:3},7:{name:"(anonymous_7)",decl:{start:{line:3,column:1596},end:{line:3,column:1597}},loc:{start:{line:3,column:1612},end:{line:3,column:1645}},line:3},8:{name:"(anonymous_8)",decl:{start:{line:3,column:1893},end:{line:3,column:1894}},loc:{start:{line:3,column:1909},end:{line:3,column:1946}},line:3},9:{name:"(anonymous_9)",decl:{start:{line:3,column:2184},end:{line:3,column:2185}},loc:{start:{line:3,column:2200},end:{line:3,column:2233}},line:3},10:{name:"(anonymous_10)",decl:{start:{line:3,column:2492},end:{line:3,column:2493}},loc:{start:{line:3,column:2508},end:{line:3,column:2529}},line:3},11:{name:"(anonymous_11)",decl:{start:{line:3,column:2790},end:{line:3,column:2791}},loc:{start:{line:3,column:2806},end:{line:3,column:2829}},line:3},12:{name:"(anonymous_12)",decl:{start:{line:3,column:3050},end:{line:3,column:3051}},loc:{start:{line:3,column:3073},end:{line:3,column:3356}},line:3},13:{name:"(anonymous_13)",decl:{start:{line:3,column:3276},end:{line:3,column:3277}},loc:{start:{line:3,column:3291},end:{line:3,column:3317}},line:3},14:{name:"(anonymous_14)",decl:{start:{line:3,column:3675},end:{line:3,column:3676}},loc:{start:{line:3,column:3690},end:{line:3,column:3706}},line:3},15:{name:"(anonymous_15)",decl:{start:{line:3,column:3782},end:{line:3,column:3783}},loc:{start:{line:3,column:3797},end:{line:3,column:3813}},line:3},16:{name:"(anonymous_16)",decl:{start:{line:3,column:3856},end:{line:3,column:3857}},loc:{start:{line:3,column:3877},end:{line:3,column:3946}},line:3},17:{name:"(anonymous_17)",decl:{start:{line:3,column:4005},end:{line:3,column:4006}},loc:{start:{line:3,column:4020},end:{line:3,column:4036}},line:3},18:{name:"(anonymous_18)",decl:{start:{line:3,column:4079},end:{line:3,column:4080}},loc:{start:{line:3,column:4100},end:{line:5,column:1418}},line:3},19:{name:"(anonymous_19)",decl:{start:{line:5,column:120},end:{line:5,column:121}},loc:{start:{line:5,column:138},end:{line:5,column:270}},line:5},20:{name:"(anonymous_20)",decl:{start:{line:5,column:214},end:{line:5,column:215}},loc:{start:{line:5,column:230},end:{line:5,column:265}},line:5},21:{name:"(anonymous_21)",decl:{start:{line:5,column:313},end:{line:5,column:314}},loc:{start:{line:5,column:323},end:{line:5,column:1382}},line:5},22:{name:"(anonymous_22)",decl:{start:{line:5,column:617},end:{line:5,column:618}},loc:{start:{line:5,column:633},end:{line:5,column:672}},line:5},23:{name:"(anonymous_23)",decl:{start:{line:5,column:921},end:{line:5,column:922}},loc:{start:{line:5,column:937},end:{line:5,column:980}},line:5},24:{name:"(anonymous_24)",decl:{start:{line:5,column:1219},end:{line:5,column:1220}},loc:{start:{line:5,column:1235},end:{line:5,column:1274}},line:5},25:{name:"(anonymous_25)",decl:{start:{line:5,column:1534},end:{line:5,column:1535}},loc:{start:{line:5,column:1550},end:{line:5,column:1578}},line:5},26:{name:"(anonymous_26)",decl:{start:{line:5,column:1587},end:{line:5,column:1588}},loc:{start:{line:5,column:1603},end:{line:5,column:1632}},line:5},27:{name:"(anonymous_27)",decl:{start:{line:5,column:1671},end:{line:5,column:1672}},loc:{start:{line:5,column:1686},end:{line:5,column:1704}},line:5},28:{name:"(anonymous_28)",decl:{start:{line:5,column:1913},end:{line:5,column:1914}},loc:{start:{line:5,column:1929},end:{line:5,column:1964}},line:5},29:{name:"(anonymous_29)",decl:{start:{line:5,column:1973},end:{line:5,column:1974}},loc:{start:{line:5,column:1989},end:{line:5,column:2018}},line:5},30:{name:"(anonymous_30)",decl:{start:{line:5,column:2059},end:{line:5,column:2060}},loc:{start:{line:5,column:2074},end:{line:5,column:2094}},line:5},31:{name:"(anonymous_31)",decl:{start:{line:5,column:2246},end:{line:5,column:2247}},loc:{start:{line:5,column:2261},end:{line:5,column:2280}},line:5}},branchMap:{0:{loc:{start:{line:5,column:272},end:{line:5,column:1399}},type:"cond-expr",locations:[{start:{line:5,column:296},end:{line:5,column:1394}},{start:{line:5,column:1395},end:{line:5,column:1399}}],line:5},1:{loc:{start:{line:5,column:1427},end:{line:5,column:1738}},type:"cond-expr",locations:[{start:{line:5,column:1442},end:{line:5,column:1729}},{start:{line:5,column:1730},end:{line:5,column:1738}}],line:5},2:{loc:{start:{line:5,column:1739},end:{line:5,column:2130}},type:"cond-expr",locations:[{start:{line:5,column:1756},end:{line:5,column:2121}},{start:{line:5,column:2122},end:{line:5,column:2130}}],line:5}},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},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},b:{0:[0,0],1:[0,0],2:[0,0]},_coverageSchema:"1a1c01bbd47fc00a2c39e90264f33305004495a9",hash:"d82f6b4ab44c15f0c6abe5c85d982264ac07cd71"},a=t[i]||(t[i]={});a[n]&&a[n].hash===e||(a[n]=o);var s=a[n];return l=function(){return s},s}l(),l().s[0]++;var i=function(){l().f[0]++;var n=(l().s[1]++,this),e=(l().s[2]++,n._self._c);return l().s[3]++,e("div",[e("top-bar",{attrs:{menus:n.menus,title:n.title}}),e("v-snackbar",{attrs:{top:"",timeout:-1,color:"orange"},scopedSlots:n._u([{key:"action",fn:function(t){var i=t.attrs;return l().f[1]++,l().s[4]++,[e("v-btn",n._b({attrs:{text:"",color:"danger","data-test":"unlock-button"},on:{click:n.confirmLocalUnlock}},"v-btn",i,!1),[n._v(" Unlock ")]),e("v-btn",n._b({attrs:{text:""},on:{click:function(){l().f[2]++,l().s[5]++,n.showReadOnlyToast=!1}}},"v-btn",i,!1),[n._v(" dismiss ")])]}}]),model:{value:n.showReadOnlyToast,callback:function(e){l().f[3]++,l().s[6]++,n.showReadOnlyToast=e},expression:"showReadOnlyToast"}},[e("v-icon",[n._v(" mdi-pencil-off ")]),n._v(" "+n._s(n.lockedBy)+" is editing this script. Editor is in read-only mode ")],1),e("v-file-input",{ref:"fileInput",staticStyle:{position:"fixed",top:"-100%"},attrs:{"show-size":"",accept:".bin","data-test":"file-input"},model:{value:n.fileInput,callback:function(e){l().f[4]++,l().s[7]++,n.fileInput=e},expression:"fileInput"}}),e("v-card",[e("v-container",{staticStyle:{"padding-bottom":"0px"}},[e("v-row",{attrs:{dense:""}},[e("v-col",{attrs:{cols:"6"}},[e("v-text-field",{attrs:{outlined:"",dense:"",readonly:"","hide-details":"",label:"Filename",id:"filename","data-test":"filename"},model:{value:n.fullFilename,callback:function(e){l().f[5]++,l().s[8]++,n.fullFilename=e},expression:"fullFilename"}})],1),e("v-col",{attrs:{cols:"6"}},[e("v-text-field",{attrs:{outlined:"",dense:"",readonly:"","hide-details":"",label:"Definition",id:"definition-filename","data-test":"definition-filename"},model:{value:n.definitionFilename,callback:function(e){l().f[6]++,l().s[9]++,n.definitionFilename=e},expression:"definitionFilename"}})],1)],1),e("v-row",{attrs:{dense:""}},[e("v-col",{staticClass:"mr-auto",attrs:{cols:"auto"}},[e("span",{staticClass:"text-body-1 ma-2"},[n._v("File Download:")]),e("v-btn",{staticClass:"mr-3",attrs:{dense:"",color:"primary",disabled:""==n.filename,"data-test":"download-file-binary"},on:{click:function(e){return l().f[7]++,l().s[10]++,n.downloadBinary(null)}}},[n._v(" Binary "),e("v-icon",{attrs:{right:"",dark:""}},[n._v(" mdi-file-code ")])],1),e("v-btn",{staticClass:"mr-3",attrs:{dense:"",color:"primary",disabled:""==n.filename,"data-test":"download-file-definition"},on:{click:function(e){return l().f[8]++,l().s[11]++,n.downloadDefinition(null)}}},[n._v(" Definition "),e("v-icon",{attrs:{right:"",dark:""}},[n._v(" mdi-file-document-edit ")])],1),e("v-btn",{attrs:{dense:"",color:"primary",disabled:""==n.filename,"data-test":"download-file-report"},on:{click:function(e){return l().f[9]++,l().s[12]++,n.downloadReport(null)}}},[n._v(" Report "),e("v-icon",{attrs:{right:"",dark:""}},[n._v(" mdi-file-document ")])],1)],1),e("v-col",{attrs:{cols:"auto"}},[e("v-btn",{attrs:{dense:"",color:"primary",disabled:!n.uploadScript,"data-test":"upload-file"},on:{click:function(e){return l().f[10]++,l().s[13]++,n.upload()}}},[n._v(" Upload "),e("v-icon",{attrs:{right:"",dark:""}},[n._v(" mdi-file-upload ")])],1)],1),e("v-col",{attrs:{cols:"auto"}},[e("v-btn",{attrs:{dense:"",color:"primary",disabled:!n.downloadScript,"data-test":"download-file"},on:{click:function(e){return l().f[11]++,l().s[14]++,n.download()}}},[n._v(" Download "),e("v-icon",{attrs:{right:"",dark:""}},[n._v(" mdi-file-download ")])],1)],1),e("v-col",{attrs:{cols:"auto"}},[e("v-tooltip",{attrs:{bottom:""},scopedSlots:n._u([{key:"activator",fn:function(t){var i=t.on,o=t.attrs;return l().f[12]++,l().s[15]++,[e("span",n._g(n._b({},"span",o,!1),i),[e("v-checkbox",{staticClass:"shrink mt-0",attrs:{label:"B/G","data-test":"upload-background"},model:{value:n.scriptBackground,callback:function(e){l().f[13]++,l().s[16]++,n.scriptBackground=e},expression:"scriptBackground"}})],1)]}}])},[e("span",[n._v("Run upload download scripts in the background")])])],1)],1)],1),e("v-card-title",{staticStyle:{"padding-top":"0px"}},[n._v(" Items "),e("v-spacer"),e("v-text-field",{attrs:{"append-icon":"mdi-magnify",label:"Search","single-line":"","hide-details":""},model:{value:n.search,callback:function(e){l().f[14]++,l().s[17]++,n.search=e},expression:"search"}})],1),e("v-tabs",{model:{value:n.curTab,callback:function(e){l().f[15]++,l().s[18]++,n.curTab=e},expression:"curTab"}},n._l(n.tables,(function(t,i){return l().f[16]++,l().s[19]++,e("v-tab",{key:i},[n._v(" "+n._s(t.name)+" ")])})),1),e("v-tabs-items",{model:{value:n.curTab,callback:function(e){l().f[17]++,l().s[20]++,n.curTab=e},expression:"curTab"}},n._l(n.tables,(function(t,i){return l().f[18]++,l().s[21]++,e("v-tab-item",{key:"".concat(n.filename).concat(i)},[e("v-data-table",{attrs:{headers:t.headers,items:t.rows,search:n.search,"items-per-page":20,"footer-props":{itemsPerPageOptions:[10,20,50,100,-1]},"calculate-widths":"","multi-sort":"",dense:"","data-test":t.name},scopedSlots:n._u([{key:"item",fn:function(t){var i=t.item;return l().f[19]++,l().s[22]++,[e("table-row",{key:i[0].name,attrs:{items:i},on:{change:function(e){return l().f[20]++,l().s[23]++,n.onChange(i,e)}}})]}},n.tables.length>1?(l().b[0][0]++,{key:"footer",fn:function(){return l().f[21]++,l().s[24]++,[e("div",{staticClass:"ma-3",staticStyle:{position:"absolute"}},[e("span",{staticClass:"text-body-1 mr-3"},[n._v("Table Download:")]),e("v-btn",{staticClass:"mr-3",attrs:{dense:"",color:"primary",disabled:""==n.filename,"data-test":"download-table-binary"},on:{click:function(e){return l().f[22]++,l().s[25]++,n.downloadBinary(t.name)}}},[n._v(" Binary "),e("v-icon",{attrs:{right:"",dark:""}},[n._v(" mdi-file-code ")])],1),e("v-btn",{staticClass:"mr-3",attrs:{dense:"",color:"primary",disabled:""==n.filename,"data-test":"download-table-definition"},on:{click:function(e){return l().f[23]++,l().s[26]++,n.downloadDefinition(t.name)}}},[n._v(" Definition "),e("v-icon",{attrs:{right:"",dark:""}},[n._v(" mdi-file-document-edit ")])],1),e("v-btn",{attrs:{dense:"",color:"primary",disabled:""==n.filename,"data-test":"download-table-report"},on:{click:function(e){return l().f[24]++,l().s[27]++,n.downloadReport(t.name)}}},[n._v(" Report "),e("v-icon",{attrs:{right:"",dark:""}},[n._v(" mdi-file-document ")])],1)],1)]},proxy:!0}):(l().b[0][1]++,null)],null,!0)})],1)})),1)],1),n.fileOpen?(l().b[1][0]++,e("file-open-save-dialog",{attrs:{type:"open","api-url":"/openc3-api/tables"},on:{file:function(e){return l().f[25]++,l().s[28]++,n.setFile(e)},error:function(e){return l().f[26]++,l().s[29]++,n.setError(e)}},model:{value:n.fileOpen,callback:function(e){l().f[27]++,l().s[30]++,n.fileOpen=e},expression:"fileOpen"}})):(l().b[1][1]++,n._e()),n.showSaveAs?(l().b[2][0]++,e("file-open-save-dialog",{attrs:{type:"save","require-target-parent-dir":"","api-url":"/openc3-api/tables","input-filename":n.filename},on:{filename:function(e){return l().f[28]++,l().s[31]++,n.saveAsFilename(e)},error:function(e){return l().f[29]++,l().s[32]++,n.setError(e)}},model:{value:n.showSaveAs,callback:function(e){l().f[30]++,l().s[33]++,n.showSaveAs=e},expression:"showSaveAs"}})):(l().b[2][1]++,n._e()),e("simple-text-dialog",{attrs:{title:n.errorTitle,text:n.errorText},model:{value:n.showError,callback:function(e){l().f[31]++,l().s[34]++,n.showError=e},expression:"showError"}})],1)},o=(l().s[35]++,[]),a=t(6964),s=(t(5794),t(2501),t(9529),t(1235),t(6710),t(4707),t(1497),t(5640),t(1871),t(8188),t(3675),t(4898),t(5825),t(7170),t(8857),t(8329),t(6279),t(427),t(171),t(7093),t(1159),t(2516),t(4349),t(5273),t(6729),t(1801),t(574),t(5787),t(9271),t(3160),t(5688),t(3157),t(3333),t(315),t(556),t(2529),t(6943),t(9224),t(1157),t(8673),t(6886),t(4121),t(523),t(3673),t(753),t(8399),t(5940),t(3450),t(5789)),c=t(9502),r=(t(8233),t(9644)),u=t.n(r),d=t(4091),m=new d["default"],A=u().create({baseURL:location.origin,timeout:6e4,params:{}});A.interceptors.response.use((function(n){return n}),(function(n){if(n.response){var e,t,l,i,o;if(401===n.response.status&&OpenC3Auth.updateToken(OpenC3Auth.defaultMinValidity,!0).then((function(n){n&&OpenC3Auth.setTokens()})),n.response.headers["ignore-errors"]&&n.response.headers["ignore-errors"].includes(n.response.status.toString()))return Promise.reject(n);var a="HTTP ".concat(n.response.status," - ");if(null!==(e=n.response)&&void 0!==e&&e.statusText&&(a+="".concat(n.response.statusText," ")),null!==(t=n.response)&&void 0!==t&&null!==(t=t.config)&&void 0!==t&&t.data&&(a+="".concat(n.response.config.data," ")),null!==(l=n.response)&&void 0!==l&&null!==(l=l.data)&&void 0!==l&&l.message)a+="".concat(n.response.data.message);else if(null!==(i=n.response)&&void 0!==i&&null!==(i=i.data)&&void 0!==i&&i.exception)a+="".concat(n.response.data.exception);else if(null!==(o=n.response)&&void 0!==o&&null!==(o=o.data)&&void 0!==o&&null!==(o=o.error)&&void 0!==o&&o.message)n.response.data.error.class&&(a+="".concat(n.response.data.error.class," ")),a+="".concat(n.response.data.error.message);else{var s;a+="".concat(null===(s=n.response)||void 0===s?void 0:s.data)}throw m.$notify&&m.$notify.serious({title:"Network error",body:a}),n}throw n}));var f=A,h=function(){var n=(0,c.Z)((0,s.Z)().mark((function n(e,t){var l,i,o,a,c,r,u,d,m,A,h=arguments;return(0,s.Z)().wrap((function(n){while(1)switch(n.prev=n.next){case 0:if(l=h.length>2&&void 0!==h[2]?h[2]:{},i=l.data,o=l.params,a=void 0===o?{}:o,c=l.headers,r=l.noAuth,u=void 0!==r&&r,d=l.noScope,m=void 0!==d&&d,u){n.next=13;break}return n.prev=2,n.next=5,OpenC3Auth.updateToken(OpenC3Auth.defaultMinValidity);case 5:A=n.sent,A&&OpenC3Auth.setTokens(),n.next=12;break;case 9:n.prev=9,n.t0=n["catch"](2),OpenC3Auth.login();case 12:c["Authorization"]=localStorage.openc3Token;case 13:return m||a["scope"]||(a["scope"]=window.openc3Scope),n.abrupt("return",f({method:e,url:t,data:i,params:a,headers:c}));case 15:case"end":return n.stop()}}),n,null,[[2,9]])})));return function(e,t){return n.apply(this,arguments)}}(),p={Accept:"application/json"},v=(0,a.Z)((0,a.Z)({},p),{},{"Content-Type":"application/json"}),C={get:function(n){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},t=e.params,l=e.headers,i=void 0===l?p:l,o=e.noScope,a=e.noAuth;return h("get",n,{params:t,headers:i,noScope:o,noAuth:a})},put:function(n){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},t=e.data,l=e.params,i=e.headers,o=void 0===i?v:i,a=e.noScope,s=e.noAuth;return h("put",n,{data:t,params:l,headers:o,noScope:a,noAuth:s})},post:function(n){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},t=e.data,l=e.params,i=e.headers,o=void 0===i?v:i,a=e.noScope,s=e.noAuth;return h("post",n,{data:t,params:l,headers:o,noScope:a,noAuth:s})},delete:function(n){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},t=e.params,l=e.headers,i=void 0===l?p:l,o=e.noScope,a=e.noAuth;return h("delete",n,{params:t,headers:i,noScope:o,noAuth:a})}},b=t(6259),_=t(426),g=t(7871),y=t(2261),k=(t(1372),t(1245),t(7233),t(5734),function(){function n(){(0,_.Z)(this,n),(0,y.Z)(this,"id",1)}return(0,g.Z)(n,[{key:"exec",value:function(){var n=(0,c.Z)((0,s.Z)().mark((function n(e,t){var l,i,o,c,r,u,d=arguments;return(0,s.Z)().wrap((function(n){while(1)switch(n.prev=n.next){case 0:return l=d.length>2&&void 0!==d[2]?d[2]:{},i=d.length>3&&void 0!==d[3]?d[3]:{},o=d.length>4&&void 0!==d[4]?d[4]:6e4,n.prev=3,n.next=6,OpenC3Auth.updateToken(OpenC3Auth.defaultMinValidity);case 6:c=n.sent,c&&OpenC3Auth.setTokens(),n.next=13;break;case 10:n.prev=10,n.t0=n["catch"](3),OpenC3Auth.login();case 13:return this.id=this.id+1,n.prev=14,l["scope"]=window.openc3Scope,n.next=18,f.post("/openc3-api/api",{jsonrpc:"2.0",method:e,params:t,id:this.id,keyword_params:l},{headers:(0,a.Z)({Authorization:localStorage.openc3Token,"Content-Type":"application/json-rpc"},i),timeout:o});case 18:return r=n.sent,n.abrupt("return",r.data.result);case 22:throw n.prev=22,n.t1=n["catch"](14),u=new Error,n.t1.response?(u.name=n.t1.response.data.error.data.class,u.message=n.t1.response.data.error.data.message):n.t1.request?(u.name="Request error",u.message="Request error, no response received"):u.name="Unknown error",u;case 27:case"end":return n.stop()}}),n,this,[[3,10],[14,22]])})));function e(e,t){return n.apply(this,arguments)}return e}()},{key:"decode_openc3_type",value:function(n){if(null!==n&&"object"===(0,b.Z)(n)&&"Float"==n.json_class&&n.raw){if("NaN"==n.raw)return NaN;if("Infinity"==n.raw)return 1/0;if("-Infinity"==n.raw)return-1/0}return null}},{key:"encode_openc3_type",value:function(n){return Number.isNaN(n)?{json_class:"Float",raw:"NaN"}:n==Number.POSITIVE_INFINITY?{json_class:"Float",raw:"Infinity"}:n==Number.NEGATIVE_INFINITY?{json_class:"Float",raw:"-Infinity"}:null}},{key:"ensure_offline_access",value:function(){var n=this;this.offline_access_needed().then((function(e){e&&(localStorage.openc3OfflineToken?n.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(n){return this.exec("set_offline_access",[n])}},{key:"get_all_interface_info",value:function(){return this.exec("get_all_interface_info",[])}},{key:"map_target_to_interface",value:function(n,e){return this.exec("map_target_to_interface",[n,e])}},{key:"connect_interface",value:function(n){for(var e=arguments.length,t=new Array(e>1?e-1:0),l=1;l<e;l++)t[l-1]=arguments[l];return t.length>0?this.exec("connect_interface",[n].concat(t)):this.exec("connect_interface",[n])}},{key:"disconnect_interface",value:function(n){return this.exec("disconnect_interface",[n])}},{key:"get_all_router_info",value:function(){return this.exec("get_all_router_info",[])}},{key:"connect_router",value:function(n){return this.exec("connect_router",[n])}},{key:"disconnect_router",value:function(n){return this.exec("disconnect_router",[n])}},{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(n){return this.exec("get_tlm_cnts",[n])}},{key:"get_item",value:function(n,e,t){return this.exec("get_item",[n,e,t])}},{key:"get_parameter",value:function(n,e,t){return this.exec("get_parameter",[n,e,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(n){return this.exec("start_cmd_log",[n])}},{key:"start_tlm_log",value:function(n){return this.exec("start_tlm_log",[n])}},{key:"stop_cmd_log",value:function(n){return this.exec("stop_cmd_log",[n])}},{key:"stop_tlm_log",value:function(n){return this.exec("stop_tlm_log",[n])}},{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(n){return this.exec("set_limits_set",[n])}},{key:"get_background_tasks",value:function(){return this.exec("get_background_tasks",[])}},{key:"start_background_task",value:function(n){return this.exec("start_background_task",[n])}},{key:"stop_background_task",value:function(n){return this.exec("stop_background_task",[n])}},{key:"get_target",value:function(n){return this.exec("get_target",[n])}},{key:"get_target_list",value:function(){return this.exec("get_target_list",[])}},{key:"get_target_names",value:function(){return this.exec("get_target_names",[])}},{key:"get_telemetry",value:function(n,e){return this.exec("get_telemetry",[n,e])}},{key:"get_all_telemetry",value:function(n){return this.exec("get_all_telemetry",[n])}},{key:"get_all_telemetry_names",value:function(n){return this.exec("get_all_telemetry_names",[n])}},{key:"get_tlm_packet",value:function(){var n=(0,c.Z)((0,s.Z)().mark((function n(e,t,l){var i,o,a,c,r,u=arguments;return(0,s.Z)().wrap((function(n){while(1)switch(n.prev=n.next){case 0:return i=u.length>3&&void 0!==u[3]?u[3]:30,n.next=3,this.exec("get_tlm_packet",[e,t],{type:l,stale_time:i});case 3:if(o=n.sent,null!=o)for(a=o.length,c=null,r=0;r<a;r++)c=this.decode_openc3_type(o[r][1]),null!==c&&(o[r][1]=c);return n.abrupt("return",o);case 6:case"end":return n.stop()}}),n,this)})));function e(e,t,l){return n.apply(this,arguments)}return e}()},{key:"get_packet_derived_items",value:function(n,e){return this.exec("get_packet_derived_items",[n,e])}},{key:"get_tlm_buffer",value:function(n,e){return this.exec("get_tlm_buffer",[n,e])}},{key:"get_tlm_values",value:function(){var n=(0,c.Z)((0,s.Z)().mark((function n(e){var t,l,i,o,a,c=arguments;return(0,s.Z)().wrap((function(n){while(1)switch(n.prev=n.next){case 0:return t=c.length>1&&void 0!==c[1]?c[1]:30,n.next=3,this.exec("get_tlm_values",[e],{stale_time:t},{},1e4);case 3:for(l=n.sent,i=l[0].length,o=null,a=0;a<i;a++)o=this.decode_openc3_type(l[0][a]),null!==o&&(l[0][a]=o);return n.abrupt("return",l);case 8:case"end":return n.stop()}}),n,this)})));function e(e){return n.apply(this,arguments)}return e}()},{key:"get_limits",value:function(n,e,t){return this.exec("get_limits",[n,e,t])}},{key:"tlm",value:function(){var n=(0,c.Z)((0,s.Z)().mark((function n(e,t,l){var i,o,a,c,r=arguments;return(0,s.Z)().wrap((function(n){while(1)switch(n.prev=n.next){case 0:if(i=r.length>3&&void 0!==r[3]?r[3]:"CONVERTED",o=null,void 0!==t){n.next=8;break}return n.next=5,this.exec("tlm",[e]);case 5:o=n.sent,n.next=24;break;case 8:if(void 0!==l){n.next=21;break}if(!["RAW","CONVERTED","FORMATTED","WITH_UNITS"].includes(t)){n.next=15;break}return n.next=12,this.exec("tlm",[e],{type:t});case 12:o=n.sent,n.next=19;break;case 15:throw a=new Error,a.name="TypeError",a.message="Invalid data type ".concat(t,". Valid options are RAW, CONVERTED, FORMATTED, and WITH_UNITS."),a;case 19:n.next=24;break;case 21:return n.next=23,this.exec("tlm",[e,t,l],{type:i});case 23:o=n.sent;case 24:return c=this.decode_openc3_type(o),null!==c&&(o=c),n.abrupt("return",o);case 27:case"end":return n.stop()}}),n,this)})));function e(e,t,l){return n.apply(this,arguments)}return e}()},{key:"inject_tlm",value:function(){var n=(0,c.Z)((0,s.Z)().mark((function n(e,t){var l,i,o=arguments;return(0,s.Z)().wrap((function(n){while(1)switch(n.prev=n.next){case 0:return l=o.length>2&&void 0!==o[2]?o[2]:null,i=o.length>3&&void 0!==o[3]?o[3]:"CONVERTED",n.next=4,this.exec("inject_tlm",[e,t,l],{type:i});case 4:data=n.sent;case 5:case"end":return n.stop()}}),n,this)})));function e(e,t){return n.apply(this,arguments)}return e}()},{key:"set_tlm",value:function(n,e,t,l){return this.exec("set_tlm",[n,e,t],{type:l})}},{key:"override_tlm",value:function(n,e,t,l){return this.exec("override_tlm",[n,e,t],{type:l})}},{key:"get_overrides",value:function(){return this.exec("get_overrides")}},{key:"normalize_tlm",value:function(n,e,t,l){return this.exec("normalize_tlm",[n,e,t],{type:l})}},{key:"get_all_commands",value:function(n){return this.exec("get_all_commands",[n])}},{key:"get_all_command_names",value:function(n){return this.exec("get_all_command_names",[n])}},{key:"get_command",value:function(n,e){return this.exec("get_command",[n,e])}},{key:"get_cmd_cnts",value:function(n){return this.exec("get_cmd_cnts",[n])}},{key:"get_cmd_value",value:function(n,e,t){var l=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"CONVERTED";return this.exec("get_cmd_value",[n,e,t,l])}},{key:"get_cmd_buffer",value:function(n,e){return this.exec("get_cmd_buffer",[n,e])}},{key:"_cmd",value:function(n,e,t,l,i){var o=null;for(var a in l)Object.prototype.hasOwnProperty.call(l,a)&&(o=this.encode_openc3_type(l[a]),null!==o&&(l[a]=o));return this.exec(n,[e,t,l],{},i)}},{key:"get_cmd_hazardous",value:function(n,e,t){return void 0===e?this.exec("get_cmd_hazardous",n):this._cmd("get_cmd_hazardous",n,e,t)}},{key:"cmd",value:function(n,e,t){var l=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return void 0===e?this.exec("cmd",n,{},l):this._cmd("cmd",n,e,t,l)}},{key:"cmd_no_range_check",value:function(n,e,t){return void 0===e?this.exec("cmd_no_range_check",n):this._cmd("cmd_no_range_check",n,e,t)}},{key:"cmd_raw",value:function(n,e,t){return void 0===e?this.exec("cmd_raw",n):this._cmd("cmd_raw",n,e,t)}},{key:"cmd_raw_no_range_check",value:function(n,e,t){return void 0===e?this.exec("cmd_raw_no_range_check",n):this._cmd("cmd_raw_no_range_check",n,e,t)}},{key:"cmd_no_hazardous_check",value:function(n,e,t){return void 0===e?this.exec("cmd_no_hazardous_check",n):this._cmd("cmd_no_hazardous_check",n,e,t)}},{key:"cmd_no_checks",value:function(n,e,t){return void 0===e?this.exec("cmd_no_checks",n):this._cmd("cmd_no_checks",n,e,t)}},{key:"cmd_raw_no_hazardous_check",value:function(n,e,t){return void 0===e?this.exec("cmd_raw_no_hazardous_check",n):this._cmd("cmd_raw_no_hazardous_check",n,e,t)}},{key:"cmd_raw_no_checks",value:function(n,e,t){return void 0===e?this.exec("cmd_raw_no_checks",n):this._cmd("cmd_raw_no_checks",n,e,t)}},{key:"build_command",value:function(n,e,t){return void 0===e?this.exec("build_command",n):this._cmd("build_command",n,e,t)}},{key:"get_interface_names",value:function(){return this.exec("get_interface_names",[])}},{key:"send_raw",value:function(n,e){return this.exec("send_raw",[n,e])}},{key:"list_configs",value:function(n){return this.exec("list_configs",[n])}},{key:"load_config",value:function(n,e){return this.exec("load_config",[n,e])}},{key:"save_config",value:function(n,e,t){return this.exec("save_config",[n,e,t])}},{key:"delete_config",value:function(n,e){return this.exec("delete_config",[n,e])}},{key:"enable_limits",value:function(n,e,t){return this.exec("enable_limits",[n,e,t])}},{key:"disable_limits",value:function(n,e,t){return this.exec("disable_limits",[n,e,t])}},{key:"get_out_of_limits",value:function(){return this.exec("get_out_of_limits",[])}},{key:"get_overall_limits_state",value:function(n){return this.exec("get_overall_limits_state",[n])}},{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(n){return this.exec("get_setting",[n])}},{key:"get_settings",value:function(n){return this.exec("get_settings",n)}},{key:"save_setting",value:function(n,e){return this.exec("save_setting",[n,e])}},{key:"get_metrics",value:function(){return this.exec("get_metrics",[])}},{key:"hashString",value:function(){var n=(0,c.Z)((0,s.Z)().mark((function n(e){var t,l,i;return(0,s.Z)().wrap((function(n){while(1)switch(n.prev=n.next){case 0:if(!window.isSecureContext){n.next=7;break}return t=(new TextEncoder).encode(e),n.next=4,crypto.subtle.digest("SHA-256",t);case 4:return l=n.sent,i=new Uint8Array(l),n.abrupt("return",Array.from(i).map((function(n){return n.toString(16).padStart(2,"0")})).join(""));case 7:case"end":return n.stop()}}),n)})));function e(e){return n.apply(this,arguments)}return e}()}]),n}()),w=function(){var n=this,e=n._self._c;return e("mounting-portal",{attrs:{"mount-to":"#openc3-menu",append:""}},[e("div",{staticClass:"v-toolbar__content"},[n._l(n.menus,(function(t,l){return e("v-menu",{key:l,attrs:{"offset-y":""},scopedSlots:n._u([{key:"activator",fn:function(l){var i=l.on,o=l.attrs;return[e("v-btn",n._g(n._b({staticClass:"mx-1",attrs:{outlined:"","data-test":n.formatDT("".concat(n.title," ").concat(t.label))}},"v-btn",o,!1),i),[e("span",{domProps:{textContent:n._s(t.label)}}),e("v-icon",{attrs:{right:""}},[n._v(" mdi-menu-down ")])],1)]}}],null,!0)},[e("v-list",[e("v-radio-group",{staticClass:"ma-0 pa-0",attrs:{value:t.radioGroup,"hide-details":"",dense:""}},[n._l(t.items,(function(l,i){return[l.divider?e("v-divider"):e("v-list-item",{key:i,attrs:{disabled:l.disabled,"data-test":n.formatDT("".concat(n.title," ").concat(t.label," ").concat(l.label))},on:{click:function(n){return l.command(l)}}},[l.radio?e("v-list-item-action",[e("v-radio",{attrs:{color:"secondary",label:l.label,value:l.label}})],1):n._e(),l.checkbox?e("v-list-item-action",[e("v-checkbox",{attrs:{color:"secondary",label:l.label},model:{value:l.checked,callback:function(e){n.$set(l,"checked",e)},expression:"option.checked"}})],1):n._e(),l.icon?e("v-list-item-icon",[e("v-icon",{attrs:{disabled:l.disabled}},[n._v(n._s(l.icon))])],1):n._e(),l.radio||l.checkbox?n._e():e("v-list-item-title",{style:"cursor: pointer;"+(l.disabled?"opacity: 0.2":"")},[n._v(n._s(l.label))])],1)]}))],2)],1)],1)})),e("v-spacer"),e("v-toolbar-title",[n._v(n._s(n.title))]),e("v-spacer")],2)])},x=[],T=(t(1639),{props:{menus:{type:Array,default:function(){return[]}},title:{type:String,default:""}},methods:{formatDT:function(n){return n.replaceAll(" ","-").toLowerCase()}},mounted:function(){"COSMOS "===this.title.substring(0,7)?document.title=this.title.substring(7):document.title=this.title}}),I=T,S=(t(4888),t(3483)),F=(0,S.Z)(I,w,x,!1,null,"2eb37f67",null),D=F.exports;function E(){var n="/openc3/plugins/packages/openc3-cosmos-tool-tablemanager/src/tools/TableManager/TableRow.vue",e="5d63085a9eb91ae8b96a4e7605b1f4562eeebe6f",t=new Function("return this")(),l="__coverage__",i={path:"/openc3/plugins/packages/openc3-cosmos-tool-tablemanager/src/tools/TableManager/TableRow.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:441}},4:{start:{line:1,column:303},end:{line:1,column:435}},5:{start:{line:1,column:391},end:{line:1,column:431}},6:{start:{line:3,column:22},end:{line:3,column:24}}},fnMap:{0:{name:"render",decl:{start:{line:1,column:22},end:{line:1,column:28}},loc:{start:{line:1,column:30},end:{line:2,column:1}},line:1},1:{name:"(anonymous_1)",decl:{start:{line:1,column:282},end:{line:1,column:283}},loc:{start:{line:1,column:302},end:{line:1,column:436}},line:1},2:{name:"(anonymous_2)",decl:{start:{line:1,column:374},end:{line:1,column:375}},loc:{start:{line:1,column:390},end:{line:1,column:432}},line:1}},branchMap:{0:{loc:{start:{line:1,column:153},end:{line:1,column:258}},type:"cond-expr",locations:[{start:{line:1,column:174},end:{line:1,column:249}},{start:{line:1,column:250},end:{line:1,column:258}}],line:1}},s:{0:0,1:0,2:0,3:0,4:0,5:0,6:0},f:{0:0,1:0,2:0},b:{0:[0,0]},_coverageSchema:"1a1c01bbd47fc00a2c39e90264f33305004495a9",hash:"5d63085a9eb91ae8b96a4e7605b1f4562eeebe6f"},o=t[l]||(t[l]={});o[n]&&o[n].hash===e||(o[n]=i);var a=o[n];return E=function(){return a},a}E(),E().s[0]++;var O=function(){E().f[0]++;var n=(E().s[1]++,this),e=(E().s[2]++,n._self._c);return E().s[3]++,e("tr",[e("td",{staticClass:"text-start"},[n._v(n._s(n.dataItems[0].index))]),n.oneDimensional?(E().b[0][0]++,e("td",{staticClass:"text-start"},[n._v(n._s(n.dataItems[0].name))])):(E().b[0][1]++,n._e()),n._l(n.dataItems,(function(t,l){return E().f[1]++,E().s[4]++,e("table-item",{key:t.name,attrs:{item:t},on:{change:function(e){return E().f[2]++,E().s[5]++,n.onChange(t,l,e)}}})}))],2)},N=(E().s[6]++,[]);function R(){var n="/openc3/plugins/packages/openc3-cosmos-tool-tablemanager/src/tools/TableManager/TableItem.vue",e="86b1ee3ff4e79544de8135ed3bbadcb494baa7db",t=new Function("return this")(),l="__coverage__",i={path:"/openc3/plugins/packages/openc3-cosmos-tool-tablemanager/src/tools/TableManager/TableItem.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:889}},4:{start:{line:1,column:303},end:{line:1,column:321}},5:{start:{line:1,column:598},end:{line:1,column:616}},6:{start:{line:3,column:22},end:{line:3,column:24}}},fnMap:{0:{name:"render",decl:{start:{line:1,column:22},end:{line:1,column:28}},loc:{start:{line:1,column:30},end:{line:2,column:1}},line:1},1:{name:"(anonymous_1)",decl:{start:{line:1,column:287},end:{line:1,column:288}},loc:{start:{line:1,column:302},end:{line:1,column:322}},line:1},2:{name:"(anonymous_2)",decl:{start:{line:1,column:582},end:{line:1,column:583}},loc:{start:{line:1,column:597},end:{line:1,column:617}},line:1}},branchMap:{0:{loc:{start:{line:1,column:76},end:{line:1,column:885}},type:"cond-expr",locations:[{start:{line:1,column:93},end:{line:1,column:349}},{start:{line:1,column:350},end:{line:1,column:885}}],line:1},1:{loc:{start:{line:1,column:350},end:{line:1,column:885}},type:"cond-expr",locations:[{start:{line:1,column:372},end:{line:1,column:644}},{start:{line:1,column:645},end:{line:1,column:885}}],line:1}},s:{0:0,1:0,2:0,3:0,4:0,5:0,6:0},f:{0:0,1:0,2:0},b:{0:[0,0],1:[0,0]},_coverageSchema:"1a1c01bbd47fc00a2c39e90264f33305004495a9",hash:"86b1ee3ff4e79544de8135ed3bbadcb494baa7db"},o=t[l]||(t[l]={});o[n]&&o[n].hash===e||(o[n]=i);var a=o[n];return R=function(){return a},a}R(),R().s[0]++;var M=function(){R().f[0]++;var n=(R().s[1]++,this),e=(R().s[2]++,n._self._c);return R().s[3]++,e("td",[n.isCheckbox?(R().b[0][0]++,e("v-checkbox",{attrs:{dense:"","hide-details":"",disabled:!n.dataItem.editable,"data-test":"table-item-checkbox"},on:{change:n.checkboxChange},model:{value:n.checkValue,callback:function(e){R().f[1]++,R().s[4]++,n.checkValue=e},expression:"checkValue"}})):(R().b[0][1]++,n.dataItem.states?(R().b[1][0]++,e("v-select",{attrs:{dense:"","hide-details":"",items:n.itemStates,disabled:!n.dataItem.editable,"data-test":"table-item-select"},on:{change:n.stateChange},model:{value:n.stateValue,callback:function(e){R().f[2]++,R().s[5]++,n.stateValue=e},expression:"stateValue"}})):(R().b[1][1]++,e("v-text-field",{attrs:{solo:"",dense:"","single-line":"","hide-no-data":"","hide-details":"",value:n.format(n.dataItem.value),disabled:!n.dataItem.editable,"data-test":"table-item-text-field"},on:{change:n.textChange}})))],1)},B=(R().s[6]++,[]),L=t(7302),$=(t(4769),t(5883),t(6728),t(9228),t(6708),t(1939),t(8995),t(1951),(0,g.Z)((function n(e,t){var l=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"";(0,_.Z)(this,n),this.keyword=e.keyword,this.parameters=e.parameters,this.filename=e.filename,this.line=e.line,this.lineNumber=e.lineNumber,this.message=t,this.usage=l,this.url=i}))),V={props:{widgetIndex:{type:Number,default:null},parameters:{type:Array,default:function(){return[]}},settings:{type:Array,default:function(){return[]}},line:{type:String,default:""},lineNumber:{type:Number,default:0}},data:function(){return{screen:null}},computed:{computedStyle:function(){var n=this,e={};return this.settings.forEach((function(t){var l=parseInt(t[0]);if(null!==n.widgetIndex){if(n.widgetIndex!==l)return;t=t.slice(1)}n.applySetting(e,t)})),void 0===e["width"]&&(e["flex"]="0 10 100%"),e}},created:function(){var n=this;this.settings.forEach((function(e){"__SCREEN__"===e[0]&&(n.screen=e[1])}))},methods:{applySetting:function(n,e){switch(e[0]){case"TEXTALIGN":n["text-align"]=e[1].toLowerCase()+" !important",n["--text-align"]=e[1].toLowerCase();break;case"PADDING":isNaN(Number(e[1]))||(e[1]+="px"),n["padding"]=e[1]+" !important";break;case"MARGIN":isNaN(Number(e[1]))||(e[1]+="px"),n["margin"]=e[1]+" !important";break;case"BACKCOLOR":n["background-color"]=this.getColor(e.slice(1))+" !important";break;case"TEXTCOLOR":n["color"]=this.getColor(e.slice(1))+" !important";break;case"BORDERCOLOR":n["border-width"]="1px!important",n["border-style"]="solid!important",n["border-color"]=this.getColor(e.slice(1))+" !important";break;case"WIDTH":isNaN(Number(e[1]))||(e[1]+="px"),n["width"]=e[1]+" !important";break;case"HEIGHT":isNaN(Number(e[1]))||(e[1]+="px"),n["height"]=e[1]+" !important";break;case"RAW":n[e[1].toLowerCase()]=e[2]+" !important";break}},verifyNumParams:function(n,e,t){for(var l=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"",i={line:this.line,lineNumber:this.lineNumber,keyword:n,parameters:this.parameters},o=1;o<=e;o++)if(void 0===this.parameters[o-1])throw new $(i,"Not enough parameters for ".concat(n,"."),l,"https://openc3.com/docs/v5");if(t&&void 0===!this.parameters[t])throw new $(i,"Too many parameters for ".concat(n,"."),l,"https://openc3.com/docs/v5")},setWidth:function(n){var e=this,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"px",l=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"120",i=null;if(i=null!==this.widgetIndex?this.settings.find((function(n){return parseInt(n[0])===e.widgetIndex&&"WIDTH"===n[1]})):this.settings.find((function(n){return"WIDTH"===n[0]})),i)return i["WIDTH"];if(n){var o=["WIDTH","".concat(n).concat(t)];return null!==this.widgetIndex&&o.unshift(this.widgetIndex),this.settings.push(o),parseInt(n)}var a=["WIDTH","".concat(l).concat(t)];return null!==this.widgetIndex&&a.unshift(this.widgetIndex),this.settings.push(a),parseInt(l)},setHeight:function(n){var e=this,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"px",l=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"20",i=null;if(i=null!==this.widgetIndex?this.settings.find((function(n){return parseInt(n[0])===e.widgetIndex&&"HEIGHT"===n[1]})):this.settings.find((function(n){return"HEIGHT"===n[0]})),i)return i["HEIGHT"];if(n){var o=["HEIGHT","".concat(n).concat(t)];return null!==this.widgetIndex&&o.unshift(this.widgetIndex),this.settings.push(o),parseInt(n)}var a=["HEIGHT","".concat(l).concat(t)];return null!==this.widgetIndex&&a.unshift(this.widgetIndex),this.settings.push(a),parseInt(l)},getColor:function(n){switch(n.length){case 1:return n[0].toLowerCase();case 3:return"rgb(".concat(n[0],",").concat(n[1],",").concat(n[2],")")}}}},j=(t(131),{mixins:[V],props:{value:{default:null},limitsState:{type:String,default:null},counter:{default:null},formatString:null},data:function(){var n=this;return{curValue:null,prevValue:null,grayLevel:80,grayRate:5,valueId:null,colorBlind:!1,viewDetails:!1,contextMenuShown:!1,x:0,y:0,contextMenuOptions:[{title:"Details",action:function(){n.contextMenuShown=!1,n.viewDetails=!0}},{title:"Graph",action:function(){window.open("/tools/tlmgrapher/"+n.parameters[0]+"/"+n.parameters[1]+"/"+n.parameters[2],"_blank")}}]}},watch:{_counter:function(n,e){this.curValue!==this.prevValue?this.grayLevel=80:(this.grayLevel-=this.grayRate,this.grayLevel<30&&(this.grayLevel=30)),this.prevValue=this.curValue}},computed:{_value:function(){return this.curValue=this.value,null===this.curValue&&(this.screen?this.screen.screenValues[this.valueId]&&(this.curValue=this.screen.screenValues[this.valueId][0]):this.curValue=null),this.curValue=this.formatValue(this.curValue),"true"===localStorage.colorblindMode&&""!==this.limitsLetter?"".concat(this.curValue," (").concat(this.limitsLetter,")"):this.curValue},_counter:function(){var n=this.counter;return null===n&&(this.screen?this.screen.screenValues[this.valueId]&&(n=this.screen.screenValues[this.valueId][2]):n=null),n},valueClass:function(){return"value shrink pa-1 openc3-"+this.limitsColor},limitsColor:function(){var n=this.limitsState;if(null===n&&(this.screen?this.screen.screenValues[this.valueId]&&(n=this.screen.screenValues[this.valueId][1]):n=null),null!=n)switch(n){case"GREEN":case"GREEN_HIGH":case"GREEN_LOW":return"green";case"YELLOW":case"YELLOW_HIGH":case"YELLOW_LOW":return"yellow";case"RED":case"RED_HIGH":case"RED_LOW":return"red";case"BLUE":return"blue";case"STALE":return"purple";default:return"white"}return""},limitsLetter:function(){var n=this.limitsState;if(null===n&&(this.screen?this.screen.screenValues[this.valueId]&&(n=this.screen.screenValues[this.valueId][1]):n=null),null!=n){var e=n.charAt(0);return n.endsWith("_LOW")&&(e=e.toLowerCase()),e}return""}},created:function(){null!==this.value&&null!==this.limitsState||(this.valueId="".concat(this.parameters[0],"__").concat(this.parameters[1],"__").concat(this.parameters[2],"__").concat(this.getType()),this.screen&&this.screen.addItem(this.valueId))},destroyed:function(){null!==this.value&&null!==this.limitsState||this.screen&&this.screen.deleteItem(this.valueId)},methods:{getType:function(){var n="WITH_UNITS";return this.parameters[3]&&(n=this.parameters[3]),n},formatValue:function(n){if(n&&"String"===n["json_class"]&&void 0!==n["raw"]){var e=Array.from(n["raw"].slice(0,32),(function(n){return("0"+(255&n).toString(16)).slice(-2)})).join(" ").toUpperCase();return n["raw"].length>32&&(e+="..."),e}if("Array"===Object.prototype.toString.call(n).slice(8,-1)){for(var t="[",l=0;l<n.length;l++)"String"===Object.prototype.toString.call(n[l]).slice(8,-1)?t+='"'+n[l]+'"':t+=n[l],l!=n.length-1&&(t+=", ");return t+="]",t}return"Object"===Object.prototype.toString.call(n).slice(8,-1)?"":this.formatString&&n?sprintf(this.formatString,n):""+n},showContextMenu:function(n){var e=this;n.preventDefault(),this.contextMenuShown=!1,this.x=n.clientX,this.y=n.clientY,this.$nextTick((function(){e.contextMenuShown=!0}))}}});function U(){var n="/openc3/plugins/packages/openc3-cosmos-tool-tablemanager/src/tools/TableManager/TableItem.vue",e="ccc7a7621e4e3411ca598e04efefee4146a61b48",t=new Function("return this")(),l="__coverage__",i={path:"/openc3/plugins/packages/openc3-cosmos-tool-tablemanager/src/tools/TableManager/TableItem.vue",statementMap:{0:{start:{line:13,column:4},end:{line:17,column:5}},1:{start:{line:20,column:4},end:{line:22,column:5}},2:{start:{line:21,column:6},end:{line:21,column:65}},3:{start:{line:23,column:4},end:{line:25,column:5}},4:{start:{line:24,column:6},end:{line:24,column:45}},5:{start:{line:29,column:19},end:{line:29,column:23}},6:{start:{line:30,column:6},end:{line:38,column:7}},7:{start:{line:31,column:8},end:{line:35,column:9}},8:{start:{line:32,column:10},end:{line:34,column:11}},9:{start:{line:33,column:12},end:{line:33,column:26}},10:{start:{line:37,column:8},end:{line:37,column:22}},11:{start:{line:39,column:6},end:{line:39,column:19}},12:{start:{line:42,column:19},end:{line:42,column:21}},13:{start:{line:43,column:6},end:{line:45,column:7}},14:{start:{line:44,column:8},end:{line:44,column:49}},15:{start:{line:46,column:6},end:{line:46,column:19}},16:{start:{line:51,column:6},end:{line:55,column:7}},17:{start:{line:52,column:8},end:{line:52,column:39}},18:{start:{line:54,column:8},end:{line:54,column:41}},19:{start:{line:59,column:18},end:{line:61,column:7}},20:{start:{line:60,column:17},end:{line:60,column:62}},21:{start:{line:62,column:6},end:{line:62,column:33}},22:{start:{line:66,column:6},end:{line:66,column:33}},23:{start:{line:67,column:6},end:{line:67,column:47}},24:{start:{line:70,column:6},end:{line:76,column:7}},25:{start:{line:75,column:8},end:{line:75,column:38}},26:{start:{line:77,column:6},end:{line:77,column:36}}},fnMap:{0:{name:"(anonymous_0)",decl:{start:{line:12,column:2},end:{line:12,column:3}},loc:{start:{line:12,column:9},end:{line:18,column:3}},line:12},1:{name:"(anonymous_1)",decl:{start:{line:19,column:2},end:{line:19,column:3}},loc:{start:{line:19,column:12},end:{line:26,column:3}},line:19},2:{name:"(anonymous_2)",decl:{start:{line:28,column:16},end:{line:28,column:17}},loc:{start:{line:28,column:28},end:{line:40,column:5}},line:28},3:{name:"(anonymous_3)",decl:{start:{line:41,column:16},end:{line:41,column:17}},loc:{start:{line:41,column:28},end:{line:47,column:5}},line:41},4:{name:"(anonymous_4)",decl:{start:{line:50,column:20},end:{line:50,column:21}},loc:{start:{line:50,column:32},end:{line:56,column:5}},line:50},5:{name:"(anonymous_5)",decl:{start:{line:57,column:17},end:{line:57,column:18}},loc:{start:{line:57,column:29},end:{line:63,column:5}},line:57},6:{name:"(anonymous_6)",decl:{start:{line:60,column:8},end:{line:60,column:9}},loc:{start:{line:60,column:17},end:{line:60,column:62}},line:60},7:{name:"(anonymous_7)",decl:{start:{line:64,column:16},end:{line:64,column:17}},loc:{start:{line:64,column:33},end:{line:68,column:5}},line:64},8:{name:"(anonymous_8)",decl:{start:{line:69,column:12},end:{line:69,column:13}},loc:{start:{line:69,column:29},end:{line:78,column:5}},line:69}},branchMap:{0:{loc:{start:{line:20,column:4},end:{line:22,column:5}},type:"if",locations:[{start:{line:20,column:4},end:{line:22,column:5}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:20},1:{loc:{start:{line:23,column:4},end:{line:25,column:5}},type:"if",locations:[{start:{line:23,column:4},end:{line:25,column:5}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:23},2:{loc:{start:{line:30,column:6},end:{line:38,column:7}},type:"if",locations:[{start:{line:30,column:6},end:{line:38,column:7}},{start:{line:36,column:13},end:{line:38,column:7}}],line:30},3:{loc:{start:{line:32,column:10},end:{line:34,column:11}},type:"if",locations:[{start:{line:32,column:10},end:{line:34,column:11}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:32},4:{loc:{start:{line:32,column:14},end:{line:32,column:58}},type:"binary-expr",locations:[{start:{line:32,column:14},end:{line:32,column:33}},{start:{line:32,column:37},end:{line:32,column:58}}],line:32},5:{loc:{start:{line:51,column:6},end:{line:55,column:7}},type:"if",locations:[{start:{line:51,column:6},end:{line:55,column:7}},{start:{line:53,column:13},end:{line:55,column:7}}],line:51},6:{loc:{start:{line:70,column:6},end:{line:76,column:7}},type:"if",locations:[{start:{line:70,column:6},end:{line:76,column:7}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:70},7:{loc:{start:{line:71,column:8},end:{line:73,column:34}},type:"binary-expr",locations:[{start:{line:71,column:8},end:{line:71,column:13}},{start:{line:72,column:8},end:{line:72,column:40}},{start:{line:73,column:8},end:{line:73,column:34}}],line:71}},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},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,0]},inputSourceMap:{version:3,sources:["TableItem.vue"],names:[],mappings:";AA2DA;;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",file:"TableItem.vue",sourceRoot:"src/tools/TableManager",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 <td>\n <v-checkbox\n v-if="isCheckbox"\n dense\n hide-details\n v-model="checkValue"\n @change="checkboxChange"\n :disabled="!dataItem.editable"\n data-test="table-item-checkbox"\n />\n <v-select\n v-else-if="dataItem.states"\n dense\n hide-details\n v-model="stateValue"\n @change="stateChange"\n :items="itemStates"\n :disabled="!dataItem.editable"\n data-test="table-item-select"\n />\n <v-text-field\n v-else\n solo\n dense\n single-line\n hide-no-data\n hide-details\n @change="textChange"\n :value="format(dataItem.value)"\n :disabled="!dataItem.editable"\n data-test="table-item-text-field"\n />\n </td>\n</template>\n\n<script>\nimport VWidget from \'@openc3/tool-common/src/components/widgets/VWidget\'\n\nexport default {\n mixins: [VWidget],\n props: {\n item: {\n type: Object,\n required: true,\n },\n },\n data() {\n return {\n dataItem: this.item,\n stateValue: null,\n checkValue: false,\n }\n },\n created() {\n if (this.dataItem.states) {\n this.stateValue = this.dataItem.states[this.dataItem.value]\n }\n if (this.isCheckbox) {\n this.checkValue = this.stateValue === 1\n }\n },\n computed: {\n isCheckbox: function () {\n let result = true\n if (this.dataItem.states) {\n for (const state of Object.keys(this.dataItem.states)) {\n if (state !== \'CHECKED\' && state !== \'UNCHECKED\') {\n result = false\n }\n }\n } else {\n result = false\n }\n return result\n },\n itemStates: function () {\n let result = []\n for (const [text, value] of Object.entries(this.dataItem.states)) {\n result.push({ text: text, value: value })\n }\n return result\n },\n },\n methods: {\n checkboxChange: function () {\n if (this.checkValue) {\n this.$emit(\'change\', \'CHECKED\')\n } else {\n this.$emit(\'change\', \'UNCHECKED\')\n }\n },\n stateChange: function () {\n // Lookup the state key that corresponds to the value\n let state = Object.keys(this.dataItem.states).find(\n (key) => this.dataItem.states[key] === this.stateValue\n )\n this.$emit(\'change\', state)\n },\n textChange: function (value) {\n // Set the value since we\'re not using v-model on the textfield\n this.dataItem.value = value\n this.$emit(\'change\', this.dataItem.value)\n },\n format: function (value) {\n if (\n value &&\n value[\'json_class\'] === \'String\' &&\n value[\'raw\'] !== undefined\n ) {\n this.dataItem.editable = false\n }\n return this.formatValue(value)\n },\n },\n}\n<\/script>\n']},_coverageSchema:"1a1c01bbd47fc00a2c39e90264f33305004495a9",hash:"ccc7a7621e4e3411ca598e04efefee4146a61b48"},o=t[l]||(t[l]={});o[n]&&o[n].hash===e||(o[n]=i);var a=o[n];return U=function(){return a},a}U();var Z={mixins:[j],props:{item:{type:Object,required:!0}},data:function(){return U().f[0]++,U().s[0]++,{dataItem:this.item,stateValue:null,checkValue:!1}},created:function(){U().f[1]++,U().s[1]++,this.dataItem.states?(U().b[0][0]++,U().s[2]++,this.stateValue=this.dataItem.states[this.dataItem.value]):U().b[0][1]++,U().s[3]++,this.isCheckbox?(U().b[1][0]++,U().s[4]++,this.checkValue=1===this.stateValue):U().b[1][1]++},computed:{isCheckbox:function(){U().f[2]++;var n=(U().s[5]++,!0);if(U().s[6]++,this.dataItem.states){U().b[2][0]++,U().s[7]++;for(var e=0,t=Object.keys(this.dataItem.states);e<t.length;e++){var l=t[e];U().s[8]++,U().b[4][0]++,"CHECKED"!==l&&(U().b[4][1]++,"UNCHECKED"!==l)?(U().b[3][0]++,U().s[9]++,n=!1):U().b[3][1]++}}else U().b[2][1]++,U().s[10]++,n=!1;return U().s[11]++,n},itemStates:function(){U().f[3]++;var n=(U().s[12]++,[]);U().s[13]++;for(var e=0,t=Object.entries(this.dataItem.states);e<t.length;e++){var l=(0,L.Z)(t[e],2),i=l[0],o=l[1];U().s[14]++,n.push({text:i,value:o})}return U().s[15]++,n}},methods:{checkboxChange:function(){U().f[4]++,U().s[16]++,this.checkValue?(U().b[5][0]++,U().s[17]++,this.$emit("change","CHECKED")):(U().b[5][1]++,U().s[18]++,this.$emit("change","UNCHECKED"))},stateChange:function(){var n=this;U().f[5]++;var e=(U().s[19]++,Object.keys(this.dataItem.states).find((function(e){return U().f[6]++,U().s[20]++,n.dataItem.states[e]===n.stateValue})));U().s[21]++,this.$emit("change",e)},textChange:function(n){U().f[7]++,U().s[22]++,this.dataItem.value=n,U().s[23]++,this.$emit("change",this.dataItem.value)},format:function(n){return U().f[8]++,U().s[24]++,U().b[7][0]++,n&&(U().b[7][1]++,"String"===n["json_class"])&&(U().b[7][2]++,void 0!==n["raw"])?(U().b[6][0]++,U().s[25]++,this.dataItem.editable=!1):U().b[6][1]++,U().s[26]++,this.formatValue(n)}}},H=Z,P=(0,S.Z)(H,M,B,!1,null,null,null),W=P.exports;function G(){var n="/openc3/plugins/packages/openc3-cosmos-tool-tablemanager/src/tools/TableManager/TableRow.vue",e="d5ee65eecafcdffede0f4e34800830241d4417a7",t=new Function("return this")(),l="__coverage__",i={path:"/openc3/plugins/packages/openc3-cosmos-tool-tablemanager/src/tools/TableManager/TableRow.vue",statementMap:{0:{start:{line:15,column:4},end:{line:17,column:5}},1:{start:{line:21,column:6},end:{line:25,column:7}},2:{start:{line:22,column:8},end:{line:22,column:19}},3:{start:{line:24,column:8},end:{line:24,column:20}},4:{start:{line:30,column:6},end:{line:30,column:58}}},fnMap:{0:{name:"(anonymous_0)",decl:{start:{line:14,column:2},end:{line:14,column:3}},loc:{start:{line:14,column:9},end:{line:18,column:3}},line:14},1:{name:"(anonymous_1)",decl:{start:{line:20,column:4},end:{line:20,column:5}},loc:{start:{line:20,column:21},end:{line:26,column:5}},line:20},2:{name:"(anonymous_2)",decl:{start:{line:29,column:14},end:{line:29,column:15}},loc:{start:{line:29,column:44},end:{line:31,column:5}},line:29}},branchMap:{0:{loc:{start:{line:21,column:6},end:{line:25,column:7}},type:"if",locations:[{start:{line:21,column:6},end:{line:25,column:7}},{start:{line:23,column:13},end:{line:25,column:7}}],line:21}},s:{0:0,1:0,2:0,3:0,4:0},f:{0:0,1:0,2:0},b:{0:[0,0]},inputSourceMap:{version:3,sources:["TableRow.vue"],names:[],mappings:";AAoCA;;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",file:"TableRow.vue",sourceRoot:"src/tools/TableManager",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 <tr>\n <td class="text-start">{{ dataItems[0].index }}</td>\n <td class="text-start" v-if="oneDimensional">{{ dataItems[0].name }}</td>\n <table-item\n v-for="(item, index) in dataItems"\n :key="item.name"\n :item="item"\n @change="onChange(item, index, $event)"\n />\n </tr>\n</template>\n\n<script>\nimport TableItem from \'@/tools/TableManager/TableItem\'\n\nexport default {\n components: {\n TableItem,\n },\n props: {\n items: {\n type: Object,\n required: true,\n },\n },\n data() {\n return {\n dataItems: this.items,\n }\n },\n computed: {\n oneDimensional() {\n if (this.dataItems.length === 1) {\n return true\n } else {\n return false\n }\n },\n },\n methods: {\n onChange: function (item, index, event) {\n this.$emit(\'change\', { index: index, event: event })\n },\n },\n}\n<\/script>\n']},_coverageSchema:"1a1c01bbd47fc00a2c39e90264f33305004495a9",hash:"d5ee65eecafcdffede0f4e34800830241d4417a7"},o=t[l]||(t[l]={});o[n]&&o[n].hash===e||(o[n]=i);var a=o[n];return G=function(){return a},a}G();var z={components:{TableItem:W},props:{items:{type:Object,required:!0}},data:function(){return G().f[0]++,G().s[0]++,{dataItems:this.items}},computed:{oneDimensional:function(){return G().f[1]++,G().s[1]++,1===this.dataItems.length?(G().b[0][0]++,G().s[2]++,!0):(G().b[0][1]++,G().s[3]++,!1)}},methods:{onChange:function(n,e,t){G().f[2]++,G().s[4]++,this.$emit("change",{index:e,event:t})}}},Y=z,q=(0,S.Z)(Y,O,N,!1,null,null,null),K=q.exports,X=(t(4083),function(){var n=this,e=n._self._c;return e("v-dialog",{attrs:{width:"600",scrollable:""},on:{keydown:function(e){return!e.type.indexOf("key")&&n._k(e.keyCode,"enter",13,e.key,"Enter")?null:n.success()}},model:{value:n.show,callback:function(e){n.show=e},expression:"show"}},[e("v-card",[e("v-overlay",{attrs:{value:n.loading}},[e("v-progress-circular",{attrs:{indeterminate:"",absolute:"",size:"64"}})],1),e("form",{on:{submit:function(e){return e.preventDefault(),n.success.apply(null,arguments)}}},[e("v-system-bar",[e("v-spacer"),e("span",[n._v(" "+n._s(n.title)+" ")]),e("v-spacer")],1),e("v-card-text",[e("div",{staticClass:"pa-3"},[e("v-row",{attrs:{dense:""}},[e("v-text-field",{attrs:{flat:"",autofocus:"","solo-inverted":"","hide-details":"",clearable:"",label:"Search","data-test":"file-open-save-search"},on:{input:n.handleSearch},model:{value:n.search,callback:function(e){n.search=e},expression:"search"}})],1),e("v-row",{staticClass:"mt-2",attrs:{dense:""}},[e("v-treeview",{ref:"tree",staticStyle:{width:"100%","max-height":"60vh",overflow:"auto"},attrs:{dense:"",activatable:"","return-object":"",items:n.items,search:n.search,"open-on-click":"open"===n.type},on:{"update:active":n.activeFile},scopedSlots:n._u([{key:"prepend",fn:function(t){var l=t.item,i=t.open;return[l.file?e("v-icon",[n._v(" "+n._s("mdi-language-ruby")+" ")]):e("v-icon",[n._v(" "+n._s(i?"mdi-folder-open":"mdi-folder")+" ")])]}},{key:"append",fn:function(t){var l=t.item;return["__TEMP__"===l.name?e("v-btn",{attrs:{icon:""},on:{click:n.deleteTemp}},[e("v-icon",[n._v(" mdi-delete ")])],1):n._e()]}}]),model:{value:n.tree,callback:function(e){n.tree=e},expression:"tree"}})],1),e("v-row",{staticClass:"my-2"},[e("v-text-field",{attrs:{"hide-details":"",label:"Filename","data-test":"file-open-save-filename",disabled:"open"===n.type},model:{value:n.selectedFile,callback:function(e){n.selectedFile=e},expression:"selectedFile"}})],1),e("v-row",{attrs:{dense:""}},[e("span",{directives:[{name:"show",rawName:"v-show",value:n.error,expression:"error"}],staticClass:"my-2 red--text",domProps:{textContent:n._s(n.error)}})]),e("v-row",{staticClass:"mt-2"},[e("v-spacer"),e("v-btn",{staticClass:"mx-2",attrs:{outlined:"","data-test":"file-open-save-cancel-btn",disabled:n.disableButtons},on:{click:function(e){n.show=!1}}},[n._v(" Cancel ")]),e("v-btn",{staticClass:"mx-2",attrs:{type:"submit",color:"primary","data-test":"file-open-save-submit-btn",disabled:n.disableButtons||!!n.error},on:{click:function(e){return e.preventDefault(),n.success.apply(null,arguments)}}},[n._v(" "+n._s(n.submit)+" ")])],1)],1)])],1)],1)],1)}),J=[],Q=t(8081),nn=(t(4069),t(7368),t(4471),t(1172),t(9949),{props:{type:{type:String,required:!0,validator:function(n){return-1!==["open","save"].indexOf(n)}},apiUrl:String,requireTargetParentDir:Boolean,inputFilename:String,value:Boolean},data:function(){return{tree:[],items:[],id:1,search:null,selectedFile:null,disableButtons:!1,targets:[],loading:!0}},computed:{show:{get:function(){return this.value},set:function(n){this.$emit("input",n)}},title:function(){return"open"===this.type?"File Open":"File Save As..."},submit:function(){return"open"===this.type?"OPEN":"SAVE"},error:function(){if(""===this.selectedFile||null===this.selectedFile)return"No file selected must select a file";if(!this.selectedFile.match(this.validFilenameRegex)||this.selectedFile.match(/\.\.|\/\/|\.\/|\/\./)){var n="".concat(this.selectedFile," is not a valid filename. Must ");return this.requireTargetParentDir&&(n+="be in a target directory and "),n+="only contain alphanumeric characters and / ! - _ . * ' ( )",n}if("save"===this.type&&this.selectedFile.match(/\*$/)){var e="".concat(this.selectedFile," is not a valid filename. Must not end in '*'.");return e}return null},validFilenameRegex:function(){var n="0-9a-zA-Z",e="".concat(n,"\\/\\!\\-\\_\\.\\*\\'\\(\\)"),t="[".concat(e,"]+\\.[").concat(n,"]+");if(this.requireTargetParentDir){var l="(".concat(this.targets.join("|"),")");t="\\/?".concat(l,"\\/").concat(t)}return new RegExp(t)}},created:function(){var n=this;this.loadFiles(),this.requireTargetParentDir&&C.get("/openc3-api/targets").then((function(e){n.targets=e.data,n.targets.push("__TEMP__")}))},methods:{loadFiles:function(){var n=this;C.get(this.apiUrl).then((function(e){n.items=[],n.id=1;var t,l=(0,Q.Z)(e.data);try{for(l.s();!(t=l.n()).done;){var i=t.value;n.filepath=i,n.insertFile(n.items,1,i),n.id++}}catch(o){l.e(o)}finally{l.f()}n.inputFilename&&(n.selectedFile=n.inputFilename),n.loading=!1})).catch((function(e){n.$emit("error","Failed to connect to OpenC3. ".concat(e))}))},clear:function(){this.show=!1,this.overwrite=!1,this.disableButtons=!1},handleSearch:function(n){n?this.$refs.tree.updateAll(!0):this.$refs.tree.updateAll(!1)},activeFile:function(n){0===n.length?this.selectedFile=null:this.selectedFile=n[0].path},exists:function(n,e){var t,l=!1,i=(0,Q.Z)(n);try{for(i.s();!(t=i.n()).done;){var o=t.value;if(o.path===e)return!0;if(o.path.length>1&&"*"===o.path[o.path.length-1]&&o.path.slice(0,o.path.length-1)===e)return!0;o.children&&(l=l||this.exists(o.children,e))}}catch(a){i.e(a)}finally{i.f()}return l},success:function(){null!==this.selectedFile&&null===this.error&&("open"===this.type?this.openSuccess():this.saveSuccess())},deleteTemp:function(){var n=this;this.$dialog.confirm("Are you sure you want to delete all the temporary files?",{okText:"Delete",cancelText:"Cancel"}).then((function(n){return C.delete("/script-api/scripts/temp_files")})).then((function(e){n.loadFiles()})).catch((function(e){n.$notify.serious({title:"Error",body:"Failed to remove script temporary files due to ".concat(e)})}))},openSuccess:function(){var n=this;this.disableButtons=!0,C.get("".concat(this.apiUrl,"/").concat(this.selectedFile)).then((function(e){var t={name:n.selectedFile,contents:e.data.contents};e.data.suites&&(t["suites"]=JSON.parse(e.data.suites)),e.data.error&&(t["error"]=e.data.error),e.data.success&&(t["success"]=e.data.success);var l=e.data.locked,i=e.data.breakpoints;n.$emit("file",{file:t,locked:l,breakpoints:i}),n.clear()})).catch((function(e){n.$emit("error","Failed to open ".concat(n.selectedFile,". ").concat(e)),n.clear()}))},saveSuccess:function(){var n=this,e=this.exists(this.items,this.selectedFile);e?this.$dialog.confirm("Are you sure you want to overwrite: ".concat(this.selectedFile),{okText:"Overwrite",cancelText:"Cancel"}).then((function(e){n.$emit("filename",n.selectedFile),n.clear()})).catch((function(n){})):(this.$emit("filename",this.selectedFile),this.clear())},insertFile:function(n,e,t){var l=t.split("/");if(1===l.length)return n.push({id:this.id,name:l[0],file:"ruby",path:this.filepath}),void this.id++;var i=n.findIndex((function(n){return n.name===l[0]}));-1===i?(n.push({id:this.id,name:l[0],children:[],path:this.filepath.split("/").slice(0,e).join("/")}),this.id++,this.insertFile(n[n.length-1].children,e+1,l.slice(1).join("/"))):this.insertFile(n[i].children,e+1,l.slice(1).join("/"))}}}),en=nn,tn=(0,S.Z)(en,X,J,!1,null,null,null),ln=tn.exports,on=function(){var n=this,e=n._self._c;return e("v-dialog",{attrs:{width:n.width},model:{value:n.show,callback:function(e){n.show=e},expression:"show"}},[e("v-card",[e("v-system-bar",[e("v-spacer"),e("span",[n._v(" "+n._s(n.title)+" ")]),e("v-spacer"),e("div",{staticClass:"mx-2"},[e("v-tooltip",{attrs:{top:""},scopedSlots:n._u([{key:"activator",fn:function(t){var l=t.on,i=t.attrs;return[e("div",n._g(n._b({},"div",i,!1),l),[e("v-icon",{attrs:{"data-test":"downloadIcon"},on:{click:n.download}},[n._v(" mdi-download ")])],1)]}}])},[e("span",[n._v(" Download ")])])],1)],1),e("v-card-text",[e("div",{staticClass:"pa-3"},[e("span",{staticStyle:{"white-space":"pre-wrap"}},[n._v(n._s(n.text))])])]),e("v-card-actions",[e("v-spacer"),e("v-btn",{staticClass:"mx-2",attrs:{color:"primary"},on:{click:function(e){n.show=!n.show}}},[n._v(" Ok ")])],1)],1)],1)},an=[],sn={props:{value:Boolean,text:String,title:String,width:800},computed:{show:{get:function(){return this.value},set:function(n){this.$emit("input",n)}}},methods:{download:function(){var n=new Blob([this.text],{type:"text/plain"}),e=document.createElement("a");e.href=URL.createObjectURL(n),e.setAttribute("download","".concat(this.title,".txt")),e.click()}}},cn=sn,rn=(0,S.Z)(cn,on,an,!1,null,null,null),un=rn.exports;function dn(){var n="/openc3/plugins/packages/openc3-cosmos-tool-tablemanager/src/tools/TableManager/TableManager.vue",e="b263b77745d3fd8010ce897c62a29f3a9a68afab",t=new Function("return this")(),l="__coverage__",i={path:"/openc3/plugins/packages/openc3-cosmos-tool-tablemanager/src/tools/TableManager/TableManager.vue",statementMap:{0:{start:{line:17,column:4},end:{line:39,column:5}},1:{start:{line:43,column:6},end:{line:43,column:28}},2:{start:{line:46,column:6},end:{line:46,column:59}},3:{start:{line:49,column:6},end:{line:106,column:7}},4:{start:{line:57,column:16},end:{line:57,column:30}},5:{start:{line:64,column:16},end:{line:64,column:31}},6:{start:{line:74,column:16},end:{line:74,column:31}},7:{start:{line:81,column:16},end:{line:81,column:29}},8:{start:{line:101,column:16},end:{line:101,column:29}},9:{start:{line:113,column:8},end:{line:113,column:80}},10:{start:{line:115,column:8},end:{line:116,column:33}},11:{start:{line:117,column:6},end:{line:129,column:10}},12:{start:{line:125,column:10},end:{line:125,column:34}},13:{start:{line:128,column:10},end:{line:128,column:35}},14:{start:{line:130,column:6},end:{line:142,column:10}},15:{start:{line:138,column:10},end:{line:138,column:36}},16:{start:{line:141,column:10},end:{line:141,column:37}},17:{start:{line:147,column:4},end:{line:147,column:30}},18:{start:{line:148,column:4},end:{line:148,column:36}},19:{start:{line:153,column:6},end:{line:153,column:28}},20:{start:{line:154,column:6},end:{line:154,column:25}},21:{start:{line:155,column:6},end:{line:155,column:26}},22:{start:{line:158,column:6},end:{line:158,column:26}},23:{start:{line:163,column:6},end:{line:177,column:7}},24:{start:{line:164,column:8},end:{line:169,column:9}},25:{start:{line:165,column:10},end:{line:165,column:40}},26:{start:{line:166,column:10},end:{line:166,column:30}},27:{start:{line:168,column:10},end:{line:168,column:39}},28:{start:{line:171,column:8},end:{line:171,column:25}},29:{start:{line:173,column:8},end:{line:173,column:47}},30:{start:{line:174,column:8},end:{line:174,column:30}},31:{start:{line:175,column:8},end:{line:175,column:30}},32:{start:{line:176,column:8},end:{line:176,column:28}},33:{start:{line:181,column:6},end:{line:181,column:31}},34:{start:{line:182,column:6},end:{line:182,column:40}},35:{start:{line:183,column:6},end:{line:183,column:44}},36:{start:{line:184,column:6},end:{line:184,column:27}},37:{start:{line:188,column:6},end:{line:188,column:26}},38:{start:{line:190,column:23},end:{line:190,column:37}},39:{start:{line:191,column:6},end:{line:191,column:46}},40:{start:{line:192,column:6},end:{line:192,column:60}},41:{start:{line:193,column:6},end:{line:193,column:60}},42:{start:{line:194,column:6},end:{line:208,column:10}},43:{start:{line:198,column:10},end:{line:198,column:32}},44:{start:{line:199,column:10},end:{line:201,column:18}},45:{start:{line:200,column:12},end:{line:200,column:33}},46:{start:{line:204,column:10},end:{line:204,column:31}},47:{start:{line:205,column:10},end:{line:205,column:40}},48:{start:{line:206,column:10},end:{line:206,column:48}},49:{start:{line:207,column:10},end:{line:207,column:31}},50:{start:{line:209,column:6},end:{line:209,column:21}},51:{start:{line:212,column:6},end:{line:212,column:28}},52:{start:{line:215,column:6},end:{line:220,column:7}},53:{start:{line:217,column:10},end:{line:217,column:34}},54:{start:{line:218,column:10},end:{line:218,column:53}},55:{start:{line:223,column:6},end:{line:242,column:7}},56:{start:{line:224,column:8},end:{line:241,column:12}},57:{start:{line:230,column:12},end:{line:232,column:14}},58:{start:{line:235,column:12},end:{line:235,column:28}},59:{start:{line:236,column:12},end:{line:236,column:30}},60:{start:{line:237,column:12},end:{line:237,column:40}},61:{start:{line:245,column:23},end:{line:245,column:37}},62:{start:{line:246,column:6},end:{line:246,column:46}},63:{start:{line:247,column:6},end:{line:247,column:60}},64:{start:{line:248,column:6},end:{line:250,column:7}},65:{start:{line:249,column:8},end:{line:249,column:43}},66:{start:{line:251,column:6},end:{line:271,column:8}},67:{start:{line:255,column:28},end:{line:255,column:63}},68:{start:{line:257,column:27},end:{line:257,column:61}},69:{start:{line:259,column:8},end:{line:261,column:9}},70:{start:{line:259,column:21},end:{line:259,column:22}},71:{start:{line:260,column:10},end:{line:260,column:51}},72:{start:{line:263,column:21},end:{line:265,column:10}},73:{start:{line:267,column:21},end:{line:267,column:48}},74:{start:{line:268,column:8},end:{line:268,column:45}},75:{start:{line:269,column:8},end:{line:269,column:61}},76:{start:{line:270,column:8},end:{line:270,column:20}},77:{start:{line:274,column:23},end:{line:274,column:37}},78:{start:{line:275,column:6},end:{line:275,column:60}},79:{start:{line:276,column:6},end:{line:278,column:7}},80:{start:{line:277,column:8},end:{line:277,column:43}},81:{start:{line:279,column:6},end:{line:290,column:8}},82:{start:{line:282,column:21},end:{line:284,column:10}},83:{start:{line:286,column:21},end:{line:286,column:48}},84:{start:{line:287,column:8},end:{line:287,column:45}},85:{start:{line:288,column:8},end:{line:288,column:61}},86:{start:{line:289,column:8},end:{line:289,column:20}},87:{start:{line:293,column:23},end:{line:293,column:37}},88:{start:{line:294,column:6},end:{line:294,column:46}},89:{start:{line:295,column:6},end:{line:295,column:60}},90:{start:{line:296,column:6},end:{line:298,column:7}},91:{start:{line:297,column:8},end:{line:297,column:43}},92:{start:{line:299,column:6},end:{line:313,column:8}},93:{start:{line:303,column:10},end:{line:304,column:54}},94:{start:{line:305,column:21},end:{line:307,column:10}},95:{start:{line:309,column:21},end:{line:309,column:48}},96:{start:{line:310,column:8},end:{line:310,column:45}},97:{start:{line:311,column:8},end:{line:311,column:61}},98:{start:{line:312,column:8},end:{line:312,column:20}},99:{start:{line:317,column:8},end:{line:317,column:80}},100:{start:{line:318,column:6},end:{line:326,column:8}},101:{start:{line:323,column:8},end:{line:325,column:9}},102:{start:{line:324,column:10},end:{line:324,column:71}},103:{start:{line:329,column:6},end:{line:353,column:29}},104:{start:{line:341,column:12},end:{line:342,column:37}},105:{start:{line:343,column:10},end:{line:351,column:12}},106:{start:{line:348,column:12},end:{line:350,column:13}},107:{start:{line:349,column:14},end:{line:349,column:75}},108:{start:{line:367,column:6},end:{line:379,column:10}},109:{start:{line:377,column:10},end:{line:377,column:30}},110:{start:{line:378,column:10},end:{line:378,column:32}},111:{start:{line:382,column:6},end:{line:382,column:65}},112:{start:{line:385,column:6},end:{line:387,column:7}},113:{start:{line:386,column:8},end:{line:386,column:62}},114:{start:{line:390,column:6},end:{line:395,column:7}},115:{start:{line:392,column:8},end:{line:394,column:38}},116:{start:{line:396,column:6},end:{line:396,column:22}},117:{start:{line:397,column:23},end:{line:397,column:37}},118:{start:{line:398,column:6},end:{line:398,column:46}},119:{start:{line:399,column:6},end:{line:399,column:55}},120:{start:{line:400,column:6},end:{line:456,column:10}},121:{start:{line:407,column:10},end:{line:407,column:60}},122:{start:{line:408,column:10},end:{line:434,column:12}},123:{start:{line:409,column:12},end:{line:433,column:13}},124:{start:{line:413,column:31},end:{line:416,column:17}},125:{start:{line:417,column:16},end:{line:431,column:17}},126:{start:{line:420,column:18},end:{line:423,column:19}},127:{start:{line:427,column:18},end:{line:430,column:19}},128:{start:{line:436,column:10},end:{line:441,column:11}},129:{start:{line:437,column:12},end:{line:440,column:14}},130:{start:{line:444,column:10},end:{line:455,column:11}},131:{start:{line:445,column:12},end:{line:448,column:14}},132:{start:{line:449,column:12},end:{line:449,column:32}},133:{start:{line:451,column:12},end:{line:454,column:14}},134:{start:{line:459,column:23},end:{line:459,column:37}},135:{start:{line:460,column:6},end:{line:460,column:45}},136:{start:{line:461,column:6},end:{line:466,column:8}},137:{start:{line:464,column:8},end:{line:464,column:46}},138:{start:{line:465,column:8},end:{line:465,column:36}},139:{start:{line:469,column:6},end:{line:469,column:29}},140:{start:{line:470,column:6},end:{line:470,column:31}}},fnMap:{0:{name:"(anonymous_0)",decl:{start:{line:16,column:2},end:{line:16,column:3}},loc:{start:{line:16,column:9},end:{line:40,column:3}},line:16},1:{name:"(anonymous_1)",decl:{start:{line:42,column:14},end:{line:42,column:15}},loc:{start:{line:42,column:26},end:{line:44,column:5}},line:42},2:{name:"(anonymous_2)",decl:{start:{line:45,column:4},end:{line:45,column:5}},loc:{start:{line:45,column:19},end:{line:47,column:5}},line:45},3:{name:"(anonymous_3)",decl:{start:{line:48,column:11},end:{line:48,column:12}},loc:{start:{line:48,column:23},end:{line:107,column:5}},line:48},4:{name:"(anonymous_4)",decl:{start:{line:56,column:23},end:{line:56,column:24}},loc:{start:{line:56,column:29},end:{line:58,column:15}},line:56},5:{name:"(anonymous_5)",decl:{start:{line:63,column:23},end:{line:63,column:24}},loc:{start:{line:63,column:29},end:{line:65,column:15}},line:63},6:{name:"(anonymous_6)",decl:{start:{line:73,column:23},end:{line:73,column:24}},loc:{start:{line:73,column:29},end:{line:75,column:15}},line:73},7:{name:"(anonymous_7)",decl:{start:{line:80,column:23},end:{line:80,column:24}},loc:{start:{line:80,column:29},end:{line:82,column:15}},line:80},8:{name:"(anonymous_8)",decl:{start:{line:100,column:23},end:{line:100,column:24}},loc:{start:{line:100,column:29},end:{line:102,column:15}},line:100},9:{name:"(anonymous_9)",decl:{start:{line:111,column:14},end:{line:111,column:15}},loc:{start:{line:111,column:29},end:{line:143,column:5}},line:111},10:{name:"(anonymous_10)",decl:{start:{line:124,column:14},end:{line:124,column:15}},loc:{start:{line:124,column:28},end:{line:126,column:9}},line:124},11:{name:"(anonymous_11)",decl:{start:{line:127,column:15},end:{line:127,column:16}},loc:{start:{line:127,column:26},end:{line:129,column:9}},line:127},12:{name:"(anonymous_12)",decl:{start:{line:137,column:14},end:{line:137,column:15}},loc:{start:{line:137,column:28},end:{line:139,column:9}},line:137},13:{name:"(anonymous_13)",decl:{start:{line:140,column:15},end:{line:140,column:16}},loc:{start:{line:140,column:26},end:{line:142,column:9}},line:140},14:{name:"(anonymous_14)",decl:{start:{line:145,column:2},end:{line:145,column:3}},loc:{start:{line:145,column:12},end:{line:149,column:3}},line:145},15:{name:"(anonymous_15)",decl:{start:{line:152,column:13},end:{line:152,column:14}},loc:{start:{line:152,column:25},end:{line:156,column:5}},line:152},16:{name:"(anonymous_16)",decl:{start:{line:157,column:14},end:{line:157,column:15}},loc:{start:{line:157,column:26},end:{line:159,column:5}},line:157},17:{name:"(anonymous_17)",decl:{start:{line:161,column:13},end:{line:161,column:14}},loc:{start:{line:161,column:41},end:{line:178,column:5}},line:161},18:{name:"(anonymous_18)",decl:{start:{line:180,column:4},end:{line:180,column:5}},loc:{start:{line:180,column:20},end:{line:185,column:5}},line:180},19:{name:"(anonymous_19)",decl:{start:{line:186,column:14},end:{line:186,column:15}},loc:{start:{line:186,column:26},end:{line:210,column:5}},line:186},20:{name:"(anonymous_20)",decl:{start:{line:197,column:14},end:{line:197,column:15}},loc:{start:{line:197,column:28},end:{line:202,column:9}},line:197},21:{name:"(anonymous_21)",decl:{start:{line:199,column:21},end:{line:199,column:22}},loc:{start:{line:199,column:27},end:{line:201,column:11}},line:199},22:{name:"(anonymous_22)",decl:{start:{line:203,column:15},end:{line:203,column:16}},loc:{start:{line:203,column:33},end:{line:208,column:9}},line:203},23:{name:"(anonymous_23)",decl:{start:{line:211,column:12},end:{line:211,column:13}},loc:{start:{line:211,column:24},end:{line:213,column:5}},line:211},24:{name:"(anonymous_24)",decl:{start:{line:214,column:20},end:{line:214,column:21}},loc:{start:{line:214,column:40},end:{line:221,column:5}},line:214},25:{name:"(anonymous_25)",decl:{start:{line:216,column:8},end:{line:216,column:9}},loc:{start:{line:216,column:22},end:{line:219,column:9}},line:216},26:{name:"(anonymous_26)",decl:{start:{line:222,column:12},end:{line:222,column:13}},loc:{start:{line:222,column:24},end:{line:243,column:5}},line:222},27:{name:"(anonymous_27)",decl:{start:{line:229,column:16},end:{line:229,column:17}},loc:{start:{line:229,column:28},end:{line:233,column:11}},line:229},28:{name:"(anonymous_28)",decl:{start:{line:234,column:16},end:{line:234,column:17}},loc:{start:{line:234,column:30},end:{line:238,column:11}},line:234},29:{name:"(anonymous_29)",decl:{start:{line:239,column:17},end:{line:239,column:18}},loc:{start:{line:239,column:28},end:{line:241,column:11}},line:239},30:{name:"(anonymous_30)",decl:{start:{line:244,column:20},end:{line:244,column:21}},loc:{start:{line:244,column:48},end:{line:272,column:5}},line:244},31:{name:"(anonymous_31)",decl:{start:{line:253,column:14},end:{line:253,column:15}},loc:{start:{line:253,column:28},end:{line:271,column:7}},line:253},32:{name:"(anonymous_32)",decl:{start:{line:273,column:24},end:{line:273,column:25}},loc:{start:{line:273,column:52},end:{line:291,column:5}},line:273},33:{name:"(anonymous_33)",decl:{start:{line:281,column:14},end:{line:281,column:15}},loc:{start:{line:281,column:28},end:{line:290,column:7}},line:281},34:{name:"(anonymous_34)",decl:{start:{line:292,column:20},end:{line:292,column:21}},loc:{start:{line:292,column:48},end:{line:314,column:5}},line:292},35:{name:"(anonymous_35)",decl:{start:{line:301,column:14},end:{line:301,column:15}},loc:{start:{line:301,column:28},end:{line:313,column:7}},line:301},36:{name:"(anonymous_36)",decl:{start:{line:315,column:4},end:{line:315,column:5}},loc:{start:{line:315,column:13},end:{line:327,column:5}},line:315},37:{name:"(anonymous_37)",decl:{start:{line:322,column:14},end:{line:322,column:15}},loc:{start:{line:322,column:28},end:{line:326,column:7}},line:322},38:{name:"(anonymous_38)",decl:{start:{line:328,column:4},end:{line:328,column:5}},loc:{start:{line:328,column:15},end:{line:354,column:5}},line:328},39:{name:"(anonymous_39)",decl:{start:{line:339,column:14},end:{line:339,column:15}},loc:{start:{line:339,column:20},end:{line:352,column:9}},line:339},40:{name:"(anonymous_40)",decl:{start:{line:347,column:18},end:{line:347,column:19}},loc:{start:{line:347,column:32},end:{line:351,column:11}},line:347},41:{name:"(anonymous_41)",decl:{start:{line:353,column:15},end:{line:353,column:16}},loc:{start:{line:353,column:26},end:{line:353,column:28}},line:353},42:{name:"(anonymous_42)",decl:{start:{line:366,column:24},end:{line:366,column:25}},loc:{start:{line:366,column:36},end:{line:380,column:5}},line:366},43:{name:"(anonymous_43)",decl:{start:{line:376,column:14},end:{line:376,column:15}},loc:{start:{line:376,column:20},end:{line:379,column:9}},line:376},44:{name:"(anonymous_44)",decl:{start:{line:381,column:14},end:{line:381,column:15}},loc:{start:{line:381,column:26},end:{line:383,column:5}},line:381},45:{name:"(anonymous_45)",decl:{start:{line:384,column:16},end:{line:384,column:17}},loc:{start:{line:384,column:28},end:{line:388,column:5}},line:384},46:{name:"(anonymous_46)",decl:{start:{line:389,column:19},end:{line:389,column:20}},loc:{start:{line:389,column:56},end:{line:457,column:5}},line:389},47:{name:"(anonymous_47)",decl:{start:{line:403,column:14},end:{line:403,column:15}},loc:{start:{line:403,column:28},end:{line:442,column:9}},line:403},48:{name:"(anonymous_48)",decl:{start:{line:408,column:49},end:{line:408,column:50}},loc:{start:{line:408,column:60},end:{line:434,column:11}},line:408},49:{name:"(anonymous_49)",decl:{start:{line:412,column:41},end:{line:412,column:42}},loc:{start:{line:412,column:54},end:{line:432,column:15}},line:412},50:{name:"(anonymous_50)",decl:{start:{line:443,column:15},end:{line:443,column:16}},loc:{start:{line:443,column:26},end:{line:456,column:9}},line:443},51:{name:"(anonymous_51)",decl:{start:{line:458,column:20},end:{line:458,column:21}},loc:{start:{line:458,column:40},end:{line:467,column:5}},line:458},52:{name:"(anonymous_52)",decl:{start:{line:463,column:14},end:{line:463,column:15}},loc:{start:{line:463,column:28},end:{line:466,column:7}},line:463},53:{name:"(anonymous_53)",decl:{start:{line:468,column:14},end:{line:468,column:15}},loc:{start:{line:468,column:48},end:{line:471,column:5}},line:468}},branchMap:{0:{loc:{start:{line:163,column:6},end:{line:177,column:7}},type:"if",locations:[{start:{line:163,column:6},end:{line:177,column:7}},{start:{line:170,column:13},end:{line:177,column:7}}],line:163},1:{loc:{start:{line:164,column:8},end:{line:169,column:9}},type:"if",locations:[{start:{line:164,column:8},end:{line:169,column:9}},{start:{line:167,column:15},end:{line:169,column:9}}],line:164},2:{loc:{start:{line:223,column:6},end:{line:242,column:7}},type:"if",locations:[{start:{line:223,column:6},end:{line:242,column:7}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:223},3:{loc:{start:{line:244,column:30},end:{line:244,column:46}},type:"default-arg",locations:[{start:{line:244,column:42},end:{line:244,column:46}}],line:244},4:{loc:{start:{line:248,column:6},end:{line:250,column:7}},type:"if",locations:[{start:{line:248,column:6},end:{line:250,column:7}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:248},5:{loc:{start:{line:273,column:34},end:{line:273,column:50}},type:"default-arg",locations:[{start:{line:273,column:46},end:{line:273,column:50}}],line:273},6:{loc:{start:{line:276,column:6},end:{line:278,column:7}},type:"if",locations:[{start:{line:276,column:6},end:{line:278,column:7}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:276},7:{loc:{start:{line:292,column:30},end:{line:292,column:46}},type:"default-arg",locations:[{start:{line:292,column:42},end:{line:292,column:46}}],line:292},8:{loc:{start:{line:296,column:6},end:{line:298,column:7}},type:"if",locations:[{start:{line:296,column:6},end:{line:298,column:7}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:296},9:{loc:{start:{line:323,column:8},end:{line:325,column:9}},type:"if",locations:[{start:{line:323,column:8},end:{line:325,column:9}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:323},10:{loc:{start:{line:348,column:12},end:{line:350,column:13}},type:"if",locations:[{start:{line:348,column:12},end:{line:350,column:13}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:348},11:{loc:{start:{line:385,column:6},end:{line:387,column:7}},type:"if",locations:[{start:{line:385,column:6},end:{line:387,column:7}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:385},12:{loc:{start:{line:385,column:10},end:{line:385,column:48}},type:"binary-expr",locations:[{start:{line:385,column:10},end:{line:385,column:30}},{start:{line:385,column:34},end:{line:385,column:48}}],line:385},13:{loc:{start:{line:389,column:29},end:{line:389,column:54}},type:"default-arg",locations:[{start:{line:389,column:50},end:{line:389,column:54}}],line:389},14:{loc:{start:{line:390,column:6},end:{line:395,column:7}},type:"if",locations:[{start:{line:390,column:6},end:{line:395,column:7}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:390},15:{loc:{start:{line:417,column:16},end:{line:431,column:17}},type:"if",locations:[{start:{line:417,column:16},end:{line:431,column:17}},{start:{line:424,column:23},end:{line:431,column:17}}],line:417},16:{loc:{start:{line:436,column:10},end:{line:441,column:11}},type:"if",locations:[{start:{line:436,column:10},end:{line:441,column:11}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:436},17:{loc:{start:{line:444,column:10},end:{line:455,column:11}},type:"if",locations:[{start:{line:444,column:10},end:{line:455,column:11}},{start:{line:450,column:17},end:{line:455,column:11}}],line:444}},s:{0:0,1:0,2:0,3:0,4:0,5:0,6:0,7:0,8:0,9:0,10:0,11:0,12:0,13:0,14:0,15:0,16:0,17:0,18:0,19:0,20:0,21:0,22:0,23:0,24:0,25:0,26:0,27:0,28:0,29:0,30:0,31:0,32:0,33:0,34:0,35:0,36:0,37:0,38:0,39:0,40:0,41:0,42:0,43:0,44:0,45:0,46:0,47:0,48:0,49:0,50:0,51:0,52:0,53:0,54:0,55:0,56:0,57:0,58:0,59:0,60:0,61:0,62:0,63:0,64:0,65:0,66:0,67:0,68:0,69:0,70:0,71:0,72:0,73:0,74:0,75:0,76:0,77:0,78:0,79:0,80:0,81:0,82:0,83:0,84:0,85:0,86:0,87:0,88:0,89:0,90:0,91:0,92:0,93:0,94:0,95:0,96:0,97:0,98:0,99:0,100:0,101:0,102:0,103:0,104:0,105:0,106:0,107:0,108:0,109:0,110:0,111:0,112:0,113:0,114:0,115:0,116:0,117:0,118:0,119:0,120:0,121:0,122:0,123:0,124:0,125:0,126:0,127:0,128:0,129:0,130:0,131:0,132:0,133:0,134:0,135:0,136:0,137:0,138:0,139:0,140:0},f:{0:0,1:0,2:0,3:0,4:0,5:0,6:0,7:0,8:0,9:0,10:0,11:0,12:0,13:0,14:0,15:0,16:0,17:0,18:0,19:0,20:0,21:0,22:0,23:0,24:0,25:0,26:0,27:0,28:0,29:0,30:0,31:0,32:0,33:0,34:0,35:0,36:0,37:0,38:0,39:0,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},b:{0:[0,0],1:[0,0],2:[0,0],3:[0],4:[0,0],5:[0],6:[0,0],7:[0],8:[0,0],9:[0,0],10:[0,0],11:[0,0],12:[0,0],13:[0],14:[0,0],15:[0,0],16:[0,0],17:[0,0]},inputSourceMap:{version:3,sources:["TableManager.vue"],names:[],mappings:";AAiRA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA",file:"TableManager.vue",sourceRoot:"src/tools/TableManager",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-snackbar v-model=\"showReadOnlyToast\" top :timeout=\"-1\" color=\"orange\">\n <v-icon> mdi-pencil-off </v-icon>\n {{ lockedBy }} is editing this script. Editor is in read-only mode\n <template v-slot:action=\"{ attrs }\">\n <v-btn\n text\n v-bind=\"attrs\"\n color=\"danger\"\n @click=\"confirmLocalUnlock\"\n data-test=\"unlock-button\"\n >\n Unlock\n </v-btn>\n <v-btn\n text\n v-bind=\"attrs\"\n @click=\"\n () => {\n showReadOnlyToast = false\n }\n \"\n >\n dismiss\n </v-btn>\n </template>\n </v-snackbar>\n <v-file-input\n show-size\n v-model=\"fileInput\"\n ref=\"fileInput\"\n accept=\".bin\"\n data-test=\"file-input\"\n style=\"position: fixed; top: -100%\"\n />\n <v-card>\n <v-container style=\"padding-bottom: 0px\">\n <v-row dense>\n <v-col cols=\"6\">\n <v-text-field\n outlined\n dense\n readonly\n hide-details\n label=\"Filename\"\n v-model=\"fullFilename\"\n id=\"filename\"\n data-test=\"filename\"\n />\n </v-col>\n <v-col cols=\"6\">\n <v-text-field\n outlined\n dense\n readonly\n hide-details\n label=\"Definition\"\n v-model=\"definitionFilename\"\n id=\"definition-filename\"\n data-test=\"definition-filename\"\n />\n </v-col>\n </v-row>\n <v-row dense>\n <v-col cols=\"auto\" class=\"mr-auto\">\n <span class=\"text-body-1 ma-2\">File Download:</span>\n <v-btn\n dense\n color=\"primary\"\n class=\"mr-3\"\n @click=\"downloadBinary(null)\"\n :disabled=\"filename == ''\"\n data-test=\"download-file-binary\"\n >\n Binary\n <v-icon right dark> mdi-file-code </v-icon>\n </v-btn>\n <v-btn\n dense\n color=\"primary\"\n class=\"mr-3\"\n @click=\"downloadDefinition(null)\"\n :disabled=\"filename == ''\"\n data-test=\"download-file-definition\"\n >\n Definition\n <v-icon right dark> mdi-file-document-edit </v-icon>\n </v-btn>\n <v-btn\n dense\n color=\"primary\"\n @click=\"downloadReport(null)\"\n :disabled=\"filename == ''\"\n data-test=\"download-file-report\"\n >\n Report\n <v-icon right dark> mdi-file-document </v-icon>\n </v-btn>\n </v-col>\n <v-col cols=\"auto\">\n <v-btn\n dense\n color=\"primary\"\n @click=\"upload()\"\n :disabled=\"!uploadScript\"\n data-test=\"upload-file\"\n >\n Upload\n <v-icon right dark> mdi-file-upload </v-icon>\n </v-btn>\n </v-col>\n <v-col cols=\"auto\">\n <v-btn\n dense\n color=\"primary\"\n @click=\"download()\"\n :disabled=\"!downloadScript\"\n data-test=\"download-file\"\n >\n Download\n <v-icon right dark> mdi-file-download </v-icon>\n </v-btn>\n </v-col>\n <v-col cols=\"auto\">\n <v-tooltip bottom>\n <template v-slot:activator=\"{ on, attrs }\">\n <span v-bind=\"attrs\" v-on=\"on\">\n <v-checkbox\n v-model=\"scriptBackground\"\n label=\"B/G\"\n class=\"shrink mt-0\"\n data-test=\"upload-background\"\n />\n </span>\n </template>\n <span>Run upload download scripts in the background</span>\n </v-tooltip>\n </v-col>\n </v-row>\n </v-container>\n <v-card-title style=\"padding-top: 0px\">\n Items\n <v-spacer />\n <v-text-field\n v-model=\"search\"\n append-icon=\"mdi-magnify\"\n label=\"Search\"\n single-line\n hide-details\n />\n </v-card-title>\n <v-tabs v-model=\"curTab\">\n <v-tab v-for=\"(table, index) in tables\" :key=\"index\">\n {{ table.name }}\n </v-tab>\n </v-tabs>\n <v-tabs-items v-model=\"curTab\">\n <v-tab-item\n v-for=\"(table, index) in tables\"\n :key=\"`${filename}${index}`\"\n >\n <v-data-table\n :headers=\"table.headers\"\n :items=\"table.rows\"\n :search=\"search\"\n :items-per-page=\"20\"\n :footer-props=\"{\n itemsPerPageOptions: [10, 20, 50, 100, -1],\n }\"\n calculate-widths\n multi-sort\n dense\n :data-test=\"table.name\"\n >\n <template v-slot:item=\"{ item }\">\n <table-row\n :items=\"item\"\n :key=\"item[0].name\"\n @change=\"onChange(item, $event)\"\n />\n </template>\n <template v-slot:footer v-if=\"tables.length > 1\">\n <div style=\"position: absolute\" class=\"ma-3\">\n <span class=\"text-body-1 mr-3\">Table Download:</span>\n <v-btn\n dense\n color=\"primary\"\n class=\"mr-3\"\n @click=\"downloadBinary(table.name)\"\n :disabled=\"filename == ''\"\n data-test=\"download-table-binary\"\n >\n Binary\n <v-icon right dark> mdi-file-code </v-icon>\n </v-btn>\n <v-btn\n dense\n color=\"primary\"\n class=\"mr-3\"\n @click=\"downloadDefinition(table.name)\"\n :disabled=\"filename == ''\"\n data-test=\"download-table-definition\"\n >\n Definition\n <v-icon right dark> mdi-file-document-edit </v-icon>\n </v-btn>\n <v-btn\n dense\n color=\"primary\"\n @click=\"downloadReport(table.name)\"\n :disabled=\"filename == ''\"\n data-test=\"download-table-report\"\n >\n Report\n <v-icon right dark> mdi-file-document </v-icon>\n </v-btn>\n </div>\n </template>\n </v-data-table>\n </v-tab-item>\n </v-tabs-items>\n </v-card>\n <file-open-save-dialog\n v-if=\"fileOpen\"\n v-model=\"fileOpen\"\n type=\"open\"\n api-url=\"/openc3-api/tables\"\n @file=\"setFile($event)\"\n @error=\"setError($event)\"\n />\n <file-open-save-dialog\n v-if=\"showSaveAs\"\n v-model=\"showSaveAs\"\n type=\"save\"\n require-target-parent-dir\n api-url=\"/openc3-api/tables\"\n :input-filename=\"filename\"\n @filename=\"saveAsFilename($event)\"\n @error=\"setError($event)\"\n />\n <simple-text-dialog\n v-model=\"showError\"\n :title=\"errorTitle\"\n :text=\"errorText\"\n />\n </div>\n</template>\n\n<script>\nimport Api from '@openc3/tool-common/src/services/api'\nimport { OpenC3Api } from '@openc3/tool-common/src/services/openc3-api'\nimport TopBar from '@openc3/tool-common/src/components/TopBar'\nimport TableRow from '@/tools/TableManager/TableRow'\nimport FileOpenSaveDialog from '@openc3/tool-common/src/components/FileOpenSaveDialog'\nimport SimpleTextDialog from '@openc3/tool-common/src/components/SimpleTextDialog'\n\nexport default {\n components: {\n TopBar,\n TableRow,\n FileOpenSaveDialog,\n SimpleTextDialog,\n },\n data() {\n return {\n title: 'COSMOS Table Manager',\n search: '',\n curTab: null,\n tables: [],\n api: null,\n definition: null,\n fileInput: '',\n definitionFilename: '',\n fileNew: false,\n filename: '',\n fileModified: '',\n lockedBy: null,\n fileOpen: false,\n showSave: false,\n showSaveAs: false,\n showError: false,\n errorTitle: '',\n errorText: '',\n uploadScript: false,\n downloadScript: false,\n scriptBackground: true,\n }\n },\n computed: {\n readOnly: function () {\n return !!this.lockedBy\n },\n fullFilename() {\n return `${this.filename} ${this.fileModified}`.trim()\n },\n menus: function () {\n return [\n {\n label: 'File',\n items: [\n {\n label: 'New File',\n icon: 'mdi-file-plus',\n command: () => {\n this.newFile()\n },\n },\n {\n label: 'Open File',\n icon: 'mdi-folder-open',\n command: () => {\n this.openFile()\n },\n },\n {\n divider: true,\n },\n {\n label: 'Save File',\n icon: 'mdi-content-save',\n command: () => {\n this.saveFile()\n },\n },\n {\n label: 'Save As...',\n icon: 'mdi-content-save',\n command: () => {\n this.saveAs()\n },\n },\n {\n divider: true,\n },\n // {\n // label: 'Load Binary',\n // icon: 'mdi-cloud-upload',\n // command: () => {\n // this.loadBinary()\n // },\n // },\n // {\n // divider: true,\n // },\n {\n label: 'Delete File',\n icon: 'mdi-delete',\n command: () => {\n this.delete()\n },\n },\n ],\n },\n ]\n },\n },\n watch: {\n // Everytime the filename changes we figure out if there is an associated upload & download script\n filename: function (val) {\n let upload =\n this.filename.split('/').slice(0, 2).join('/') + '/procedures/upload.rb'\n let download =\n this.filename.split('/').slice(0, 2).join('/') +\n '/procedures/download.rb'\n Api.get(`/openc3-api/tables/${upload}`, {\n headers: {\n Accept: 'application/json',\n // Since we're just checking for existance, 404 is possible so ignore it\n 'Ignore-Errors': '404',\n },\n })\n .then((response) => {\n this.uploadScript = true\n })\n .catch((error) => {\n this.uploadScript = false\n })\n Api.get(`/openc3-api/tables/${download}`, {\n headers: {\n Accept: 'application/json',\n // Since we're just checking for existance, 404 is possible so ignore it\n 'Ignore-Errors': '404',\n },\n })\n .then((response) => {\n this.downloadScript = true\n })\n .catch((error) => {\n this.downloadScript = false\n })\n },\n },\n created() {\n // Ensure Offline Access Is Setup For the Current User\n this.api = new OpenC3Api()\n this.api.ensure_offline_access()\n },\n methods: {\n // File menu actions\n newFile: function () {\n this.fileModified = ''\n this.fileNew = true\n this.fileOpen = true\n },\n openFile: function () {\n this.fileOpen = true\n },\n // Called by the FileOpenDialog to set the file contents\n setFile: function ({ file, locked }) {\n // They opened a definition file so create a new binary\n if (file.name.includes('.txt')) {\n if (this.fileNew) {\n this.buildNewBinary(file.name)\n this.fileNew = false\n } else {\n this.getDefinition(file.name)\n }\n } else {\n this.unlockFile() // first unlock what was just being edited\n // Split off the ' *' which indicates a file is modified on the server\n this.filename = file.name.split('*')[0]\n this.fileModified = ''\n this.lockedBy = locked\n this.getDefinition()\n }\n },\n // Called by the FileOpenSaveDialog on error\n setError(event) {\n this.errorTitle = 'Error'\n this.errorText = `Error: ${event}`\n this.errorText = response.data.message\n this.showError = true\n },\n saveFile: function () {\n // Save a file by posting the new contents\n this.showSave = true\n\n const formData = new FormData()\n formData.append('binary', this.filename)\n formData.append('definition', this.definitionFilename)\n formData.append('tables', JSON.stringify(this.tables))\n Api.post(`/openc3-api/tables/${this.filename}`, {\n data: formData,\n })\n .then((response) => {\n this.fileModified = ''\n setTimeout(() => {\n this.showSave = false\n }, 2000)\n })\n .catch(({ response }) => {\n this.showSave = false\n this.errorTitle = 'Save Error'\n this.errorText = response.data.message\n this.showError = true\n })\n this.lockFile() // Ensure this file is locked for editing\n },\n saveAs: function () {\n this.showSaveAs = true\n },\n saveAsFilename: function (filename) {\n Api.put(`/openc3-api/tables/${this.filename}/save-as/${filename}`).then(\n (response) => {\n this.filename = filename\n this.getDefinition(this.definitionFilename)\n }\n )\n },\n delete: function () {\n if (this.filename !== '') {\n this.$dialog\n .confirm(`Permanently delete file: ${this.filename}`, {\n okText: 'Delete',\n cancelText: 'Cancel',\n })\n .then((dialog) => {\n return Api.delete(`/openc3-api/tables/${this.filename}`, {\n data: {},\n })\n })\n .then((response) => {\n this.tables = []\n this.filename = ''\n this.definitionFilename = ''\n })\n .catch((error) => {\n // TODO: It returns true on cancel?\n })\n }\n },\n downloadBinary: function (tableName = null) {\n const formData = new FormData()\n formData.append('binary', this.filename)\n formData.append('definition', this.definitionFilename)\n if (tableName !== null) {\n formData.append('table', tableName)\n }\n Api.post(`/openc3-api/tables/binary`, {\n data: formData,\n }).then((response) => {\n // Decode Base64 string\n const decodedData = window.atob(response.data.contents)\n // Create UNIT8ARRAY of size same as row data length\n const uInt8Array = new Uint8Array(decodedData.length)\n // Insert all character code into uInt8Array\n for (let i = 0; i < decodedData.length; ++i) {\n uInt8Array[i] = decodedData.charCodeAt(i)\n }\n // Return BLOB image after conversion\n const blob = new Blob([uInt8Array], {\n type: 'application/octet-stream',\n })\n // Make a link and then 'click' on it to start the download\n const link = document.createElement('a')\n link.href = URL.createObjectURL(blob)\n link.setAttribute('download', response.data.filename)\n link.click()\n })\n },\n downloadDefinition: function (tableName = null) {\n const formData = new FormData()\n formData.append('definition', this.definitionFilename)\n if (tableName !== null) {\n formData.append('table', tableName)\n }\n Api.post(`/openc3-api/tables/definition`, {\n data: formData,\n }).then((response) => {\n const blob = new Blob([response.data.contents], {\n type: 'text/plain',\n })\n // Make a link and then 'click' on it to start the download\n const link = document.createElement('a')\n link.href = URL.createObjectURL(blob)\n link.setAttribute('download', response.data.filename)\n link.click()\n })\n },\n downloadReport: function (tableName = null) {\n const formData = new FormData()\n formData.append('binary', this.filename)\n formData.append('definition', this.definitionFilename)\n if (tableName !== null) {\n formData.append('table', tableName)\n }\n Api.post(`/openc3-api/tables/report`, {\n data: formData,\n }).then((response) => {\n const header =\n `Binary: ${this.filename}\\n` +\n `Definition: ${this.definitionFilename}\\n\\n`\n const blob = new Blob([header, response.data.contents], {\n type: 'text/plain',\n })\n // Make a link and then 'click' on it to start the download\n const link = document.createElement('a')\n link.href = URL.createObjectURL(blob)\n link.setAttribute('download', response.data.filename)\n link.click()\n })\n },\n upload() {\n let upload =\n this.filename.split('/').slice(0, 2).join('/') + '/procedures/upload.rb'\n Api.post(`/script-api/scripts/${upload}/run`, {\n data: {\n environment: [{ key: 'TBL_FILENAME', value: this.filename }],\n },\n }).then((response) => {\n if (this.scriptBackground !== true) {\n window.open(`/tools/scriptrunner/${response.data}`, '_blank')\n }\n })\n },\n download() {\n this.$dialog\n .confirm(\n `Are you sure you want to overwrite ${this.filename}? ` +\n 'You can Save As to create a new file and then Download to preserve the existing file. ' +\n 'Note: Once the download completes you will need to re-open the file to see changes.',\n {\n okText: 'Download (Overwrite!)',\n cancelText: 'Cancel',\n }\n )\n .then(() => {\n let download =\n this.filename.split('/').slice(0, 2).join('/') +\n '/procedures/download.rb'\n Api.post(`/script-api/scripts/${download}/run`, {\n data: {\n environment: [{ key: 'TBL_FILENAME', value: this.filename }],\n },\n }).then((response) => {\n if (this.scriptBackground !== true) {\n window.open(`/tools/scriptrunner/${response.data}`, '_blank')\n }\n })\n })\n .catch((error) => {}) // Cancel, do nothing\n },\n // TODO: Need to load to tmp dir or something before we can saveAs to rename\n // async loadBinary() {\n // this.fileInput = ''\n // this.$refs.fileInput.$refs.input.click()\n // // Wait for the file to be set by the dialog so upload works\n // while (this.fileInput === '') {\n // await new Promise((resolve) => setTimeout(resolve, 500))\n // }\n // this.filename = this.fileInput.name\n // this.saveAs()\n // },\n confirmLocalUnlock: function () {\n this.$dialog\n .confirm(\n 'Are you sure you want to unlock this file for editing? ' +\n 'If another user is editing this file, your changes might conflict with each other.',\n {\n okText: 'Force Unlock',\n cancelText: 'Cancel',\n }\n )\n .then(() => {\n this.lockedBy = null\n return this.lockFile() // Re-lock it as this user so it's locked for anyone else who opens it\n })\n },\n lockFile: function () {\n return Api.post(`/openc3-api/tables/${this.filename}/lock`)\n },\n unlockFile: function () {\n if (this.filename !== '' && !this.readOnly) {\n Api.post(`/openc3-api/tables/${this.filename}/unlock`)\n }\n },\n getDefinition: function (definitionFilename = null) {\n if (!definitionFilename) {\n // Create a notional definition filename based on the binary\n definitionFilename = this.filename\n .replace('/bin/', '/config/')\n .replace('.bin', '_def.txt')\n }\n this.tables = [] // Clear so table is re-rendered\n const formData = new FormData()\n formData.append('binary', this.filename)\n formData.append('definition', definitionFilename)\n Api.post(`/openc3-api/tables/load`, {\n data: formData,\n })\n .then((response) => {\n // Set the definition as actually loaded. The backend\n // checks what we sent and does a lookup to return\n // something close if it can't find an exact match.\n this.definitionFilename = response.data.definition\n this.tables = response.data.tables.map((table) => {\n return {\n ...table,\n // Build up the headers for proper searching\n headers: table.headers.map((text, i) => {\n const header = {\n text,\n filterable: text !== 'INDEX',\n }\n if (table.numColumns === 1) {\n // In the 1D table the searchable value is the first value in the row\n // Note the names in 1D are INDEX, NAME, VALUE\n return {\n ...header,\n value: `[0].${text.toLowerCase()}`,\n }\n } else {\n // In the 2D table the searchable value is always in the value attribute\n // of the current column item\n return {\n ...header,\n value: `[${i}].value`,\n }\n }\n }),\n }\n })\n\n if (response.data['errors']) {\n this.$notify.caution({\n title: 'Warning',\n body: response.data['errors'],\n })\n }\n })\n .catch((error) => {\n if (error.response.status == 404) {\n this.$notify.normal({\n title: 'Definition File Not Found',\n body: `Definition file ${definitionFilename} not found. Please select definition file.`,\n })\n this.fileOpen = true\n } else {\n this.$notify.serious({\n title: 'Error',\n body: `Error loading due to ${error.response.statusText}. Status: ${error.response.status}`,\n })\n }\n })\n },\n buildNewBinary: function (filename) {\n const formData = new FormData()\n formData.append('definition', filename)\n Api.post(`/openc3-api/tables/generate`, {\n data: formData,\n }).then((response) => {\n this.filename = response.data.filename\n this.getDefinition(filename)\n })\n },\n onChange: function (item, { index, event }) {\n this.fileModified = '*'\n item[index].value = event\n },\n },\n}\n<\/script>\n"]},_coverageSchema:"1a1c01bbd47fc00a2c39e90264f33305004495a9",hash:"b263b77745d3fd8010ce897c62a29f3a9a68afab"},o=t[l]||(t[l]={});o[n]&&o[n].hash===e||(o[n]=i);var a=o[n];return dn=function(){return a},a}dn();var mn={components:{TopBar:D,TableRow:K,FileOpenSaveDialog:ln,SimpleTextDialog:un},data:function(){return dn().f[0]++,dn().s[0]++,{title:"COSMOS Table Manager",search:"",curTab:null,tables:[],api:null,definition:null,fileInput:"",definitionFilename:"",fileNew:!1,filename:"",fileModified:"",lockedBy:null,fileOpen:!1,showSave:!1,showSaveAs:!1,showError:!1,errorTitle:"",errorText:"",uploadScript:!1,downloadScript:!1,scriptBackground:!0}},computed:{readOnly:function(){return dn().f[1]++,dn().s[1]++,!!this.lockedBy},fullFilename:function(){return dn().f[2]++,dn().s[2]++,"".concat(this.filename," ").concat(this.fileModified).trim()},menus:function(){var n=this;return dn().f[3]++,dn().s[3]++,[{label:"File",items:[{label:"New File",icon:"mdi-file-plus",command:function(){dn().f[4]++,dn().s[4]++,n.newFile()}},{label:"Open File",icon:"mdi-folder-open",command:function(){dn().f[5]++,dn().s[5]++,n.openFile()}},{divider:!0},{label:"Save File",icon:"mdi-content-save",command:function(){dn().f[6]++,dn().s[6]++,n.saveFile()}},{label:"Save As...",icon:"mdi-content-save",command:function(){dn().f[7]++,dn().s[7]++,n.saveAs()}},{divider:!0},{label:"Delete File",icon:"mdi-delete",command:function(){dn().f[8]++,dn().s[8]++,n.delete()}}]}]}},watch:{filename:function(n){var e=this;dn().f[9]++;var t=(dn().s[9]++,this.filename.split("/").slice(0,2).join("/")+"/procedures/upload.rb"),l=(dn().s[10]++,this.filename.split("/").slice(0,2).join("/")+"/procedures/download.rb");dn().s[11]++,C.get("/openc3-api/tables/".concat(t),{headers:{Accept:"application/json","Ignore-Errors":"404"}}).then((function(n){dn().f[10]++,dn().s[12]++,e.uploadScript=!0})).catch((function(n){dn().f[11]++,dn().s[13]++,e.uploadScript=!1})),dn().s[14]++,C.get("/openc3-api/tables/".concat(l),{headers:{Accept:"application/json","Ignore-Errors":"404"}}).then((function(n){dn().f[12]++,dn().s[15]++,e.downloadScript=!0})).catch((function(n){dn().f[13]++,dn().s[16]++,e.downloadScript=!1}))}},created:function(){dn().f[14]++,dn().s[17]++,this.api=new k,dn().s[18]++,this.api.ensure_offline_access()},methods:{newFile:function(){dn().f[15]++,dn().s[19]++,this.fileModified="",dn().s[20]++,this.fileNew=!0,dn().s[21]++,this.fileOpen=!0},openFile:function(){dn().f[16]++,dn().s[22]++,this.fileOpen=!0},setFile:function(n){var e=n.file,t=n.locked;dn().f[17]++,dn().s[23]++,e.name.includes(".txt")?(dn().b[0][0]++,dn().s[24]++,this.fileNew?(dn().b[1][0]++,dn().s[25]++,this.buildNewBinary(e.name),dn().s[26]++,this.fileNew=!1):(dn().b[1][1]++,dn().s[27]++,this.getDefinition(e.name))):(dn().b[0][1]++,dn().s[28]++,this.unlockFile(),dn().s[29]++,this.filename=e.name.split("*")[0],dn().s[30]++,this.fileModified="",dn().s[31]++,this.lockedBy=t,dn().s[32]++,this.getDefinition())},setError:function(n){dn().f[18]++,dn().s[33]++,this.errorTitle="Error",dn().s[34]++,this.errorText="Error: ".concat(n),dn().s[35]++,this.errorText=response.data.message,dn().s[36]++,this.showError=!0},saveFile:function(){var n=this;dn().f[19]++,dn().s[37]++,this.showSave=!0;var e=(dn().s[38]++,new FormData);dn().s[39]++,e.append("binary",this.filename),dn().s[40]++,e.append("definition",this.definitionFilename),dn().s[41]++,e.append("tables",JSON.stringify(this.tables)),dn().s[42]++,C.post("/openc3-api/tables/".concat(this.filename),{data:e}).then((function(e){dn().f[20]++,dn().s[43]++,n.fileModified="",dn().s[44]++,setTimeout((function(){dn().f[21]++,dn().s[45]++,n.showSave=!1}),2e3)})).catch((function(e){var t=e.response;dn().f[22]++,dn().s[46]++,n.showSave=!1,dn().s[47]++,n.errorTitle="Save Error",dn().s[48]++,n.errorText=t.data.message,dn().s[49]++,n.showError=!0})),dn().s[50]++,this.lockFile()},saveAs:function(){dn().f[23]++,dn().s[51]++,this.showSaveAs=!0},saveAsFilename:function(n){var e=this;dn().f[24]++,dn().s[52]++,C.put("/openc3-api/tables/".concat(this.filename,"/save-as/").concat(n)).then((function(t){dn().f[25]++,dn().s[53]++,e.filename=n,dn().s[54]++,e.getDefinition(e.definitionFilename)}))},delete:function(){var n=this;dn().f[26]++,dn().s[55]++,""!==this.filename?(dn().b[2][0]++,dn().s[56]++,this.$dialog.confirm("Permanently delete file: ".concat(this.filename),{okText:"Delete",cancelText:"Cancel"}).then((function(e){return dn().f[27]++,dn().s[57]++,C.delete("/openc3-api/tables/".concat(n.filename),{data:{}})})).then((function(e){dn().f[28]++,dn().s[58]++,n.tables=[],dn().s[59]++,n.filename="",dn().s[60]++,n.definitionFilename=""})).catch((function(n){dn().f[29]++}))):dn().b[2][1]++},downloadBinary:function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:(dn().b[3][0]++,null);dn().f[30]++;var e=(dn().s[61]++,new FormData);dn().s[62]++,e.append("binary",this.filename),dn().s[63]++,e.append("definition",this.definitionFilename),dn().s[64]++,null!==n?(dn().b[4][0]++,dn().s[65]++,e.append("table",n)):dn().b[4][1]++,dn().s[66]++,C.post("/openc3-api/tables/binary",{data:e}).then((function(n){dn().f[31]++;var e=(dn().s[67]++,window.atob(n.data.contents)),t=(dn().s[68]++,new Uint8Array(e.length));dn().s[69]++;for(var l=(dn().s[70]++,0);l<e.length;++l)dn().s[71]++,t[l]=e.charCodeAt(l);var i=(dn().s[72]++,new Blob([t],{type:"application/octet-stream"})),o=(dn().s[73]++,document.createElement("a"));dn().s[74]++,o.href=URL.createObjectURL(i),dn().s[75]++,o.setAttribute("download",n.data.filename),dn().s[76]++,o.click()}))},downloadDefinition:function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:(dn().b[5][0]++,null);dn().f[32]++;var e=(dn().s[77]++,new FormData);dn().s[78]++,e.append("definition",this.definitionFilename),dn().s[79]++,null!==n?(dn().b[6][0]++,dn().s[80]++,e.append("table",n)):dn().b[6][1]++,dn().s[81]++,C.post("/openc3-api/tables/definition",{data:e}).then((function(n){dn().f[33]++;var e=(dn().s[82]++,new Blob([n.data.contents],{type:"text/plain"})),t=(dn().s[83]++,document.createElement("a"));dn().s[84]++,t.href=URL.createObjectURL(e),dn().s[85]++,t.setAttribute("download",n.data.filename),dn().s[86]++,t.click()}))},downloadReport:function(){var n=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:(dn().b[7][0]++,null);dn().f[34]++;var t=(dn().s[87]++,new FormData);dn().s[88]++,t.append("binary",this.filename),dn().s[89]++,t.append("definition",this.definitionFilename),dn().s[90]++,null!==e?(dn().b[8][0]++,dn().s[91]++,t.append("table",e)):dn().b[8][1]++,dn().s[92]++,C.post("/openc3-api/tables/report",{data:t}).then((function(e){dn().f[35]++;var t=(dn().s[93]++,"Binary: ".concat(n.filename,"\n")+"Definition: ".concat(n.definitionFilename,"\n\n")),l=(dn().s[94]++,new Blob([t,e.data.contents],{type:"text/plain"})),i=(dn().s[95]++,document.createElement("a"));dn().s[96]++,i.href=URL.createObjectURL(l),dn().s[97]++,i.setAttribute("download",e.data.filename),dn().s[98]++,i.click()}))},upload:function(){var n=this;dn().f[36]++;var e=(dn().s[99]++,this.filename.split("/").slice(0,2).join("/")+"/procedures/upload.rb");dn().s[100]++,C.post("/script-api/scripts/".concat(e,"/run"),{data:{environment:[{key:"TBL_FILENAME",value:this.filename}]}}).then((function(e){dn().f[37]++,dn().s[101]++,!0!==n.scriptBackground?(dn().b[9][0]++,dn().s[102]++,window.open("/tools/scriptrunner/".concat(e.data),"_blank")):dn().b[9][1]++}))},download:function(){var n=this;dn().f[38]++,dn().s[103]++,this.$dialog.confirm("Are you sure you want to overwrite ".concat(this.filename,"? ")+"You can Save As to create a new file and then Download to preserve the existing file. Note: Once the download completes you will need to re-open the file to see changes.",{okText:"Download (Overwrite!)",cancelText:"Cancel"}).then((function(){dn().f[39]++;var e=(dn().s[104]++,n.filename.split("/").slice(0,2).join("/")+"/procedures/download.rb");dn().s[105]++,C.post("/script-api/scripts/".concat(e,"/run"),{data:{environment:[{key:"TBL_FILENAME",value:n.filename}]}}).then((function(e){dn().f[40]++,dn().s[106]++,!0!==n.scriptBackground?(dn().b[10][0]++,dn().s[107]++,window.open("/tools/scriptrunner/".concat(e.data),"_blank")):dn().b[10][1]++}))})).catch((function(n){dn().f[41]++}))},confirmLocalUnlock:function(){var n=this;dn().f[42]++,dn().s[108]++,this.$dialog.confirm("Are you sure you want to unlock this file for editing? If another user is editing this file, your changes might conflict with each other.",{okText:"Force Unlock",cancelText:"Cancel"}).then((function(){return dn().f[43]++,dn().s[109]++,n.lockedBy=null,dn().s[110]++,n.lockFile()}))},lockFile:function(){return dn().f[44]++,dn().s[111]++,C.post("/openc3-api/tables/".concat(this.filename,"/lock"))},unlockFile:function(){dn().f[45]++,dn().s[112]++,dn().b[12][0]++,""===this.filename||(dn().b[12][1]++,this.readOnly)?dn().b[11][1]++:(dn().b[11][0]++,dn().s[113]++,C.post("/openc3-api/tables/".concat(this.filename,"/unlock")))},getDefinition:function(){var n=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:(dn().b[13][0]++,null);dn().f[46]++,dn().s[114]++,e?dn().b[14][1]++:(dn().b[14][0]++,dn().s[115]++,e=this.filename.replace("/bin/","/config/").replace(".bin","_def.txt")),dn().s[116]++,this.tables=[];var t=(dn().s[117]++,new FormData);dn().s[118]++,t.append("binary",this.filename),dn().s[119]++,t.append("definition",e),dn().s[120]++,C.post("/openc3-api/tables/load",{data:t}).then((function(e){dn().f[47]++,dn().s[121]++,n.definitionFilename=e.data.definition,dn().s[122]++,n.tables=e.data.tables.map((function(n){return dn().f[48]++,dn().s[123]++,(0,a.Z)((0,a.Z)({},n),{},{headers:n.headers.map((function(e,t){dn().f[49]++;var l=(dn().s[124]++,{text:e,filterable:"INDEX"!==e});return dn().s[125]++,1===n.numColumns?(dn().b[15][0]++,dn().s[126]++,(0,a.Z)((0,a.Z)({},l),{},{value:"[0].".concat(e.toLowerCase())})):(dn().b[15][1]++,dn().s[127]++,(0,a.Z)((0,a.Z)({},l),{},{value:"[".concat(t,"].value")}))}))})})),dn().s[128]++,e.data["errors"]?(dn().b[16][0]++,dn().s[129]++,n.$notify.caution({title:"Warning",body:e.data["errors"]})):dn().b[16][1]++})).catch((function(t){dn().f[50]++,dn().s[130]++,404==t.response.status?(dn().b[17][0]++,dn().s[131]++,n.$notify.normal({title:"Definition File Not Found",body:"Definition file ".concat(e," not found. Please select definition file.")}),dn().s[132]++,n.fileOpen=!0):(dn().b[17][1]++,dn().s[133]++,n.$notify.serious({title:"Error",body:"Error loading due to ".concat(t.response.statusText,". Status: ").concat(t.response.status)}))}))},buildNewBinary:function(n){var e=this;dn().f[51]++;var t=(dn().s[134]++,new FormData);dn().s[135]++,t.append("definition",n),dn().s[136]++,C.post("/openc3-api/tables/generate",{data:t}).then((function(t){dn().f[52]++,dn().s[137]++,e.filename=t.data.filename,dn().s[138]++,e.getDefinition(n)}))},onChange:function(n,e){var t=e.index,l=e.event;dn().f[53]++,dn().s[139]++,this.fileModified="*",dn().s[140]++,n[t].value=l}}},An=mn,fn=(0,S.Z)(An,i,o,!1,null,null,null),hn=fn.exports},6294:function(n,e,t){"use strict";t.r(e);var l=t(9601),i=t.n(l),o=t(2609),a=t.n(o),s=a()(i());s.push([n.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}",""]),e["default"]=s},4888:function(n,e,t){var l=t(6294);l.__esModule&&(l=l.default),"string"===typeof l&&(l=[[n.id,l,""]]),l.locals&&(n.exports=l.locals);var i=t(3514).Z;i("706a3f6d",l,!0,{sourceMap:!1,shadowMode:!1})}}]);
2
+ //# sourceMappingURL=349.js.map