openc3-tool-dataextractor 5.0.7 → 5.0.8

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,2 @@
1
+ (self["webpackChunk_openc3_tool_dataextractor"]=self["webpackChunk_openc3_tool_dataextractor"]||[]).push([[580],{2580:function(e,n,t){"use strict";t.r(n),t.d(n,{default:function(){return ie}});t(4083);function l(){var e="/openc3/plugins/packages/openc3-tool-dataextractor/src/tools/DataExtractor/DataExtractor.vue",n="eae85d536dee2d76427b7a231b96c32b49daf7f5",t=new Function("return this")(),i="__coverage__",o={path:"/openc3/plugins/packages/openc3-tool-dataextractor/src/tools/DataExtractor/DataExtractor.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:7556}},4:{start:{line:1,column:553},end:{line:1,column:570}},5:{start:{line:1,column:810},end:{line:1,column:825}},6:{start:{line:1,column:1048},end:{line:1,column:1065}},7:{start:{line:1,column:1268},end:{line:1,column:1283}},8:{start:{line:1,column:1494},end:{line:1,column:1510}},9:{start:{line:1,column:1848},end:{line:1,column:1866}},10:{start:{line:1,column:2216},end:{line:1,column:2231}},11:{start:{line:1,column:2870},end:{line:1,column:2896}},12:{start:{line:1,column:3408},end:{line:1,column:3633}},13:{start:{line:1,column:3543},end:{line:1,column:3561}},14:{start:{line:1,column:3780},end:{line:1,column:3983}},15:{start:{line:1,column:4175},end:{line:1,column:5900}},16:{start:{line:1,column:4341},end:{line:1,column:4502}},17:{start:{line:1,column:4405},end:{line:1,column:4430}},18:{start:{line:1,column:4430},end:{line:1,column:4446}},19:{start:{line:1,column:4626},end:{line:1,column:4730}},20:{start:{line:1,column:4718},end:{line:1,column:4730}},21:{start:{line:1,column:4730},end:{line:1,column:4747}},22:{start:{line:1,column:4800},end:{line:1,column:4827}},23:{start:{line:1,column:5220},end:{line:1,column:5252}},24:{start:{line:1,column:5396},end:{line:1,column:5413}},25:{start:{line:1,column:5672},end:{line:1,column:5819}},26:{start:{line:1,column:5736},end:{line:1,column:5763}},27:{start:{line:1,column:5986},end:{line:1,column:6090}},28:{start:{line:1,column:6078},end:{line:1,column:6090}},29:{start:{line:1,column:6090},end:{line:1,column:6137}},30:{start:{line:1,column:6192},end:{line:1,column:6207}},31:{start:{line:1,column:6631},end:{line:1,column:6655}},32:{start:{line:1,column:6816},end:{line:1,column:6842}},33:{start:{line:1,column:6987},end:{line:1,column:7017}},34:{start:{line:1,column:7152},end:{line:1,column:7188}},35:{start:{line:1,column:7246},end:{line:1,column:7264}},36:{start:{line:1,column:7403},end:{line:1,column:7439}},37:{start:{line:1,column:7497},end:{line:1,column:7515}},38:{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:537},end:{line:1,column:538}},loc:{start:{line:1,column:552},end:{line:1,column:571}},line:1},2:{name:"(anonymous_2)",decl:{start:{line:1,column:794},end:{line:1,column:795}},loc:{start:{line:1,column:809},end:{line:1,column:826}},line:1},3:{name:"(anonymous_3)",decl:{start:{line:1,column:1032},end:{line:1,column:1033}},loc:{start:{line:1,column:1047},end:{line:1,column:1066}},line:1},4:{name:"(anonymous_4)",decl:{start:{line:1,column:1252},end:{line:1,column:1253}},loc:{start:{line:1,column:1267},end:{line:1,column:1284}},line:1},5:{name:"(anonymous_5)",decl:{start:{line:1,column:1478},end:{line:1,column:1479}},loc:{start:{line:1,column:1493},end:{line:1,column:1511}},line:1},6:{name:"(anonymous_6)",decl:{start:{line:1,column:1832},end:{line:1,column:1833}},loc:{start:{line:1,column:1847},end:{line:1,column:1867}},line:1},7:{name:"(anonymous_7)",decl:{start:{line:1,column:2200},end:{line:1,column:2201}},loc:{start:{line:1,column:2215},end:{line:1,column:2232}},line:1},8:{name:"(anonymous_8)",decl:{start:{line:1,column:2853},end:{line:1,column:2854}},loc:{start:{line:1,column:2869},end:{line:1,column:2897}},line:1},9:{name:"(anonymous_9)",decl:{start:{line:1,column:3384},end:{line:1,column:3385}},loc:{start:{line:1,column:3407},end:{line:1,column:3634}},line:1},10:{name:"(anonymous_10)",decl:{start:{line:1,column:3526},end:{line:1,column:3527}},loc:{start:{line:1,column:3542},end:{line:1,column:3562}},line:1},11:{name:"(anonymous_11)",decl:{start:{line:1,column:3756},end:{line:1,column:3757}},loc:{start:{line:1,column:3779},end:{line:1,column:3984}},line:1},12:{name:"(anonymous_12)",decl:{start:{line:1,column:4158},end:{line:1,column:4159}},loc:{start:{line:1,column:4174},end:{line:1,column:5901}},line:1},13:{name:"(anonymous_13)",decl:{start:{line:1,column:4317},end:{line:1,column:4318}},loc:{start:{line:1,column:4340},end:{line:1,column:4503}},line:1},14:{name:"(anonymous_14)",decl:{start:{line:1,column:4388},end:{line:1,column:4389}},loc:{start:{line:1,column:4404},end:{line:1,column:4447}},line:1},15:{name:"(anonymous_15)",decl:{start:{line:1,column:4609},end:{line:1,column:4610}},loc:{start:{line:1,column:4625},end:{line:1,column:4748}},line:1},16:{name:"(anonymous_16)",decl:{start:{line:1,column:4784},end:{line:1,column:4785}},loc:{start:{line:1,column:4799},end:{line:1,column:4828}},line:1},17:{name:"(anonymous_17)",decl:{start:{line:1,column:5204},end:{line:1,column:5205}},loc:{start:{line:1,column:5219},end:{line:1,column:5253}},line:1},18:{name:"(anonymous_18)",decl:{start:{line:1,column:5379},end:{line:1,column:5380}},loc:{start:{line:1,column:5395},end:{line:1,column:5414}},line:1},19:{name:"(anonymous_19)",decl:{start:{line:1,column:5648},end:{line:1,column:5649}},loc:{start:{line:1,column:5671},end:{line:1,column:5820}},line:1},20:{name:"(anonymous_20)",decl:{start:{line:1,column:5719},end:{line:1,column:5720}},loc:{start:{line:1,column:5735},end:{line:1,column:5764}},line:1},21:{name:"(anonymous_21)",decl:{start:{line:1,column:5969},end:{line:1,column:5970}},loc:{start:{line:1,column:5985},end:{line:1,column:6138}},line:1},22:{name:"(anonymous_22)",decl:{start:{line:1,column:6176},end:{line:1,column:6177}},loc:{start:{line:1,column:6191},end:{line:1,column:6208}},line:1},23:{name:"(anonymous_23)",decl:{start:{line:1,column:6615},end:{line:1,column:6616}},loc:{start:{line:1,column:6630},end:{line:1,column:6656}},line:1},24:{name:"(anonymous_24)",decl:{start:{line:1,column:6799},end:{line:1,column:6800}},loc:{start:{line:1,column:6815},end:{line:1,column:6843}},line:1},25:{name:"(anonymous_25)",decl:{start:{line:1,column:6970},end:{line:1,column:6971}},loc:{start:{line:1,column:6986},end:{line:1,column:7018}},line:1},26:{name:"(anonymous_26)",decl:{start:{line:1,column:7135},end:{line:1,column:7136}},loc:{start:{line:1,column:7151},end:{line:1,column:7189}},line:1},27:{name:"(anonymous_27)",decl:{start:{line:1,column:7230},end:{line:1,column:7231}},loc:{start:{line:1,column:7245},end:{line:1,column:7265}},line:1},28:{name:"(anonymous_28)",decl:{start:{line:1,column:7386},end:{line:1,column:7387}},loc:{start:{line:1,column:7402},end:{line:1,column:7440}},line:1},29:{name:"(anonymous_29)",decl:{start:{line:1,column:7481},end:{line:1,column:7482}},loc:{start:{line:1,column:7496},end:{line:1,column:7516}},line:1}},branchMap:{0:{loc:{start:{line:1,column:4626},end:{line:1,column:4730}},type:"if",locations:[{start:{line:1,column:4626},end:{line:1,column:4730}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:1},1:{loc:{start:{line:1,column:4629},end:{line:1,column:4717}},type:"binary-expr",locations:[{start:{line:1,column:4629},end:{line:1,column:4656}},{start:{line:1,column:4658},end:{line:1,column:4717}}],line:1},2:{loc:{start:{line:1,column:5986},end:{line:1,column:6090}},type:"if",locations:[{start:{line:1,column:5986},end:{line:1,column:6090}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:1},3:{loc:{start:{line:1,column:5989},end:{line:1,column:6077}},type:"binary-expr",locations:[{start:{line:1,column:5989},end:{line:1,column:6016}},{start:{line:1,column:6018},end:{line:1,column:6077}}],line:1},4:{loc:{start:{line:1,column:7051},end:{line:1,column:7301}},type:"cond-expr",locations:[{start:{line:1,column:7068},end:{line:1,column:7292}},{start:{line:1,column:7293},end:{line:1,column:7301}}],line:1},5:{loc:{start:{line:1,column:7302},end:{line:1,column:7552}},type:"cond-expr",locations:[{start:{line:1,column:7319},end:{line:1,column:7543}},{start:{line:1,column:7544},end:{line:1,column:7552}}],line:1}},s:{0:0,1:0,2:0,3:0,4:0,5:0,6:0,7:0,8:0,9:0,10:0,11:0,12:0,13:0,14:0,15:0,16:0,17:0,18:0,19:0,20:0,21:0,22:0,23:0,24:0,25:0,26:0,27:0,28:0,29:0,30:0,31:0,32:0,33:0,34:0,35:0,36:0,37:0,38: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},b:{0:[0,0],1:[0,0],2:[0,0],3:[0,0],4:[0,0],5:[0,0]},_coverageSchema:"1a1c01bbd47fc00a2c39e90264f33305004495a9",hash:"eae85d536dee2d76427b7a231b96c32b49daf7f5"},a=t[i]||(t[i]={});a[e]&&a[e].hash===n||(a[e]=o);var c=a[e];return l=function(){return c},c}l(),l().s[0]++;var i=function(){l().f[0]++;var e=(l().s[1]++,this),n=(l().s[2]++,e._self._c);return l().s[3]++,n("div",[n("top-bar",{attrs:{menus:e.menus,title:e.title}}),n("v-container",[n("v-row",[n("v-col",[e._v(" Oldest found log data: ")]),n("v-col",[e._v(" "+e._s(e._f("dateTime")(e.oldestLogDate,e.utcOrLocal))+" ")])],1),n("v-row",[n("v-col",[n("v-text-field",{attrs:{label:"Start Date",type:"date",min:e.oldestLogDateStr,max:e.todaysDate,rules:[e.rules.required],"data-test":"start-date"},model:{value:e.startDate,callback:function(n){l().f[1]++,l().s[4]++,e.startDate=n},expression:"startDate"}}),n("v-text-field",{attrs:{label:"End Date",type:"date",min:e.oldestLogDateStr,max:e.todaysDate,rules:[e.rules.required],"data-test":"end-date"},model:{value:e.endDate,callback:function(n){l().f[2]++,l().s[5]++,e.endDate=n},expression:"endDate"}})],1),n("v-col",[n("v-text-field",{attrs:{label:"Start Time",type:"time",step:"1",rules:[e.rules.required],"data-test":"start-time"},model:{value:e.startTime,callback:function(n){l().f[3]++,l().s[6]++,e.startTime=n},expression:"startTime"}}),n("v-text-field",{attrs:{label:"End Time",type:"time",step:"1",rules:[e.rules.required],"data-test":"end-time"},model:{value:e.endTime,callback:function(n){l().f[4]++,l().s[7]++,e.endTime=n},expression:"endTime"}})],1)],1),n("v-row",{attrs:{"no-gutters":""}},[n("v-col",[n("v-radio-group",{staticClass:"mt-0",attrs:{row:"","hide-details":""},model:{value:e.cmdOrTlm,callback:function(n){l().f[5]++,l().s[8]++,e.cmdOrTlm=n},expression:"cmdOrTlm"}},[n("v-radio",{attrs:{label:"Command",value:"cmd","data-test":"cmd-radio"}}),n("v-radio",{attrs:{label:"Telemetry",value:"tlm","data-test":"tlm-radio"}})],1)],1),n("v-col",[n("v-radio-group",{staticClass:"mt-0",attrs:{row:"","hide-details":""},model:{value:e.utcOrLocal,callback:function(n){l().f[6]++,l().s[9]++,e.utcOrLocal=n},expression:"utcOrLocal"}},[n("v-radio",{attrs:{label:"LST",value:"loc","data-test":"lst-radio"}}),n("v-radio",{attrs:{label:"UTC",value:"utc","data-test":"utc-radio"}})],1)],1)],1),n("v-row",{attrs:{"no-gutters":""}},[n("v-col",[n("v-radio-group",{attrs:{row:"","hide-details":""},model:{value:e.reduced,callback:function(n){l().f[7]++,l().s[10]++,e.reduced=n},expression:"reduced"}},[n("span",{staticClass:"mr-5"},[e._v("Data Reduction:")]),n("v-radio",{attrs:{label:"None",value:"DECOM","data-test":"not-reduced"}}),n("v-radio",{attrs:{label:"Minute",value:"REDUCED_MINUTE","data-test":"min-reduced"}}),n("v-radio",{attrs:{label:"Hour",value:"REDUCED_HOUR","data-test":"hour-reduced"}}),n("v-radio",{attrs:{label:"Day",value:"REDUCED_DAY","data-test":"day-reduced"}})],1)],1)],1),n("v-row",[n("v-col",[n("target-packet-item-chooser",{attrs:{"button-text":"Add Item",mode:e.cmdOrTlm,reduced:e.reduced,"choose-item":"","allow-all":""},on:{click:function(n){return l().f[8]++,l().s[11]++,e.addItem(n)}}})],1)],1),n("v-row",{attrs:{"no-gutters":""}},[n("v-toolbar",[n("v-progress-circular",{attrs:{value:e.progress}}),e._v("   Received: "+e._s(e.totalBytesReceived)+" bytes "),n("v-spacer"),n("v-toolbar-title",[e._v(" Items ")]),n("v-spacer"),n("v-btn",{staticClass:"primary mr-4",attrs:{disabled:e.items.length<1},on:{click:e.processItems}},[e._v(e._s(e.processButtonText))]),n("v-tooltip",{attrs:{bottom:""},scopedSlots:e._u([{key:"activator",fn:function(t){var i=t.on,o=t.attrs;return l().f[9]++,l().s[12]++,[n("v-btn",e._g(e._b({attrs:{icon:"",disabled:e.items.length<1,"data-test":"editAll"},on:{click:function(n){l().f[10]++,l().s[13]++,e.editAll=!0}}},"v-btn",o,!1),i),[n("v-icon",[e._v(" mdi-pencil ")])],1)]}}])},[n("span",[e._v("Edit All Items")])]),n("v-tooltip",{attrs:{bottom:""},scopedSlots:e._u([{key:"activator",fn:function(t){var i=t.on,o=t.attrs;return l().f[11]++,l().s[14]++,[n("v-btn",e._g(e._b({attrs:{icon:"",disabled:e.items.length<1,"data-test":"delete-all"},on:{click:e.deleteAll}},"v-btn",o,!1),i),[n("v-icon",[e._v("mdi-delete")])],1)]}}])},[n("span",[e._v("Delete All Items")])])],1)],1),n("v-row",{attrs:{"no-gutters":""}},[n("v-list",{attrs:{"data-test":"item-list",width:"100%"}},e._l(e.items,(function(t,i){return l().f[12]++,l().s[15]++,n("div",{key:i},[n("v-list-item",[n("v-list-item-icon",[n("v-tooltip",{attrs:{bottom:""},scopedSlots:e._u([{key:"activator",fn:function(i){var o=i.on,a=i.attrs;return l().f[13]++,l().s[16]++,[n("v-icon",e._g(e._b({on:{click:function(e){l().f[14]++,l().s[17]++,e.stopPropagation(),l().s[18]++,t.edit=!0}}},"v-icon",a,!1),o),[e._v(" mdi-pencil ")])]}}],null,!0)},[n("span",[e._v("Edit Item")])]),n("v-dialog",{attrs:{"max-width":"600"},on:{keydown:function(n){if(l().f[15]++,l().s[19]++,l().b[1][0]++,!n.type.indexOf("key")&&(l().b[1][1]++,e._k(n.keyCode,"esc",27,n.key,["Esc","Escape"])))return l().b[0][0]++,l().s[20]++,null;l().b[0][1]++,l().s[21]++,t.edit=!1}},model:{value:t.edit,callback:function(n){l().f[16]++,l().s[22]++,e.$set(t,"edit",n)},expression:"item.edit"}},[n("v-card",[n("v-system-bar",[n("v-spacer"),n("span",[e._v(" DataExtractor: Edit Item Mode ")]),n("v-spacer")],1),n("v-card-title",[e._v(e._s(e.getItemLabel(t)))]),n("v-card-text",[n("v-col",[n("v-select",{attrs:{"hide-details":"",items:e.valueTypes,label:"Value Type",outlined:""},model:{value:t.valueType,callback:function(n){l().f[17]++,l().s[23]++,e.$set(t,"valueType",n)},expression:"item.valueType"}})],1)],1),n("v-card-actions",[n("v-spacer"),n("v-btn",{attrs:{color:"primary"},on:{click:function(e){l().f[18]++,l().s[24]++,t.edit=!1}}},[e._v(" Close ")])],1)],1)],1)],1),n("v-list-item-content",[n("v-list-item-title",[e._v(e._s(e.getItemLabel(t)))])],1),n("v-list-item-icon",[n("v-tooltip",{attrs:{bottom:""},scopedSlots:e._u([{key:"activator",fn:function(i){var o=i.on,a=i.attrs;return l().f[19]++,l().s[25]++,[n("v-icon",e._g(e._b({on:{click:function(n){return l().f[20]++,l().s[26]++,e.deleteItem(t)}}},"v-icon",a,!1),o),[e._v(" mdi-delete ")])]}}],null,!0)},[n("span",[e._v("Delete Item")])])],1)],1),n("v-divider")],1)})),0)],1)],1),n("v-dialog",{attrs:{"max-width":"600"},on:{keydown:function(n){return l().f[21]++,l().s[27]++,l().b[3][0]++,!n.type.indexOf("key")&&(l().b[3][1]++,e._k(n.keyCode,"esc",27,n.key,["Esc","Escape"]))?(l().b[2][0]++,l().s[28]++,null):(l().b[2][1]++,l().s[29]++,e.cancelEditAll.apply(null,arguments))}},model:{value:e.editAll,callback:function(n){l().f[22]++,l().s[30]++,e.editAll=n},expression:"editAll"}},[n("v-card",[n("v-system-bar",[n("v-spacer"),n("span",[e._v(" DataExtractor: Edit All Items")]),n("v-spacer")],1),n("v-card-text",{staticClass:"mt-2"},[e._v(" This will change all items to the following data type! "),n("v-col",[n("v-select",{attrs:{"hide-details":"",items:e.valueTypes,label:"Value Type",outlined:""},model:{value:e.allItemValueType,callback:function(n){l().f[23]++,l().s[31]++,e.allItemValueType=n},expression:"allItemValueType"}})],1)],1),n("v-card-actions",[n("v-spacer"),n("v-btn",{staticClass:"mx-2",attrs:{outlined:""},on:{click:function(n){l().f[24]++,l().s[32]++,e.editAll=!e.editAll}}},[e._v(" Cancel ")]),n("v-btn",{staticClass:"mx-2",attrs:{disabled:!e.allItemValueType,color:"primary"},on:{click:function(n){return l().f[25]++,l().s[33]++,e.editAllValueTypes()}}},[e._v(" Ok ")])],1)],1)],1),e.openConfig?(l().b[4][0]++,n("open-config-dialog",{attrs:{tool:e.toolName},on:{success:function(n){return l().f[26]++,l().s[34]++,e.openConfiguration(n)}},model:{value:e.openConfig,callback:function(n){l().f[27]++,l().s[35]++,e.openConfig=n},expression:"openConfig"}})):(l().b[4][1]++,e._e()),e.saveConfig?(l().b[5][0]++,n("save-config-dialog",{attrs:{tool:e.toolName},on:{success:function(n){return l().f[28]++,l().s[36]++,e.saveConfiguration(n)}},model:{value:e.saveConfig,callback:function(n){l().f[29]++,l().s[37]++,e.saveConfig=n},expression:"saveConfig"}})):(l().b[5][1]++,e._e())],1)},o=(l().s[38]++,[]),a=t(6632),c=t(6041),s=t(8571),r=t(4282),u=(t(6710),t(9805),t(8178),t(7950),t(5940),t(8188),t(1939),t(9529),t(1235),t(4769),t(8319),t(3244),t(8673),t(6886),t(3430),t(4121),t(523),t(4125)),m=t(21),d=t(6706),A=t(4567),v=t(6812),f=t(6274),p=(t(1372),t(1245),t(3675),t(4898),t(5825),t(7170),t(8857),t(8329),t(6279),t(427),t(1159),t(2516),t(4349),t(5273),t(6729),t(1801),t(574),t(5787),t(9271),t(3160),t(5688),t(3157),t(3333),t(315),t(556),t(9224),t(6297),t(8882),t(3450),t(7233),t(5734),t(8233),t(9644)),h=t.n(p),C=t(4091),g=new C["default"],_=h().create({baseURL:location.origin,timeout:6e4,params:{}});_.interceptors.response.use((function(e){return e}),(function(e){if(e.response){var n,t,l,i,o,a,c,s,r,u;if(401===e.response.status&&OpenC3Auth.updateToken(OpenC3Auth.defaultMinValidity,!0),localStorage.axiosIgnoreResponse===e.response.status.toString())return Promise.reject(e);var m="HTTP ".concat(e.response.status," - ");if(null!==(n=e.response)&&void 0!==n&&n.statusText&&(m+="".concat(e.response.statusText," ")),null!==(t=e.response)&&void 0!==t&&null!==(l=t.config)&&void 0!==l&&l.data&&(m+="".concat(e.response.config.data," ")),null!==(i=e.response)&&void 0!==i&&null!==(o=i.data)&&void 0!==o&&o.message)m+="".concat(e.response.data.message);else if(null!==(a=e.response)&&void 0!==a&&null!==(c=a.data)&&void 0!==c&&c.exception)m+="".concat(e.response.data.exception);else if(null!==(s=e.response)&&void 0!==s&&null!==(r=s.data)&&void 0!==r&&null!==(u=r.error)&&void 0!==u&&u.message)e.response.data.error.class&&(m+="".concat(e.response.data.error.class," ")),m+="".concat(e.response.data.error.message);else{var d;m+="".concat(null===(d=e.response)||void 0===d?void 0:d.data)}throw g.$notify.serious({title:"Network error",body:m}),e}throw e}));var y=_,b=function(){function e(){(0,A.Z)(this,e),(0,f.Z)(this,"id",1)}return(0,v.Z)(e,[{key:"exec",value:function(){var e=(0,d.Z)((0,m.Z)().mark((function e(n,t){var l,i,o,a=arguments;return(0,m.Z)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return l=a.length>2&&void 0!==a[2]?a[2]:{},e.prev=1,e.next=4,OpenC3Auth.updateToken(OpenC3Auth.defaultMinValidity);case 4:e.next=9;break;case 6:e.prev=6,e.t0=e["catch"](1),OpenC3Auth.login();case 9:return this.id=this.id+1,e.prev=10,l["scope"]=localStorage.scope,e.next=14,y.post("/openc3-api/api",{jsonrpc:"2.0",method:n,params:t,id:this.id,keyword_params:l},{headers:{Authorization:localStorage.openc3Token,"Content-Type":"application/json-rpc"}});case 14:return i=e.sent,e.abrupt("return",i.data.result);case 18:throw e.prev=18,e.t1=e["catch"](10),o=new Error,e.t1.response?(o.name=e.t1.response.data.error.data.class,o.message=e.t1.response.data.error.data.message):e.t1.request?(o.name="Request error",o.message="Request error, no response received"):o.name="Unknown error",o;case 23:case"end":return e.stop()}}),e,this,[[1,6],[10,18]])})));function n(n,t){return e.apply(this,arguments)}return n}()},{key:"decode_openc3_type",value:function(e){if(null!==e&&"object"===(0,a.Z)(e)&&"Float"==e.json_class&&e.raw){if("NaN"==e.raw)return NaN;if("Infinity"==e.raw)return 1/0;if("-Infinity"==e.raw)return-1/0}return null}},{key:"encode_openc3_type",value:function(e){return Number.isNaN(e)?{json_class:"Float",raw:"NaN"}:e==Number.POSITIVE_INFINITY?{json_class:"Float",raw:"Infinity"}:e==Number.NEGATIVE_INFINITY?{json_class:"Float",raw:"-Infinity"}:null}},{key:"get_all_interface_info",value:function(){return this.exec("get_all_interface_info",[])}},{key:"connect_interface",value:function(e){return this.exec("connect_interface",[e])}},{key:"disconnect_interface",value:function(e){return this.exec("disconnect_interface",[e])}},{key:"get_all_router_info",value:function(){return this.exec("get_all_router_info",[])}},{key:"connect_router",value:function(e){return this.exec("connect_router",[e])}},{key:"disconnect_router",value:function(e){return this.exec("disconnect_router",[e])}},{key:"get_all_target_info",value:function(){return this.exec("get_all_target_info",[])}},{key:"get_tlm_cnts",value:function(e){return this.exec("get_tlm_cnts",[e])}},{key:"get_item",value:function(e,n,t){return this.exec("get_item",[e,n,t])}},{key:"get_parameter",value:function(e,n,t){return this.exec("get_parameter",[e,n,t])}},{key:"get_all_packet_logger_info",value:function(){return this.exec("get_all_packet_logger_info",[])}},{key:"start_logging",value:function(){return this.exec("start_logging",[])}},{key:"stop_logging",value:function(){return this.exec("stop_logging",[])}},{key:"start_cmd_log",value:function(e){return this.exec("start_cmd_log",[e])}},{key:"start_tlm_log",value:function(e){return this.exec("start_tlm_log",[e])}},{key:"stop_cmd_log",value:function(e){return this.exec("stop_cmd_log",[e])}},{key:"stop_tlm_log",value:function(e){return this.exec("stop_tlm_log",[e])}},{key:"get_server_status",value:function(){return this.exec("get_server_status",[])}},{key:"get_limits_sets",value:function(){return this.exec("get_limits_sets",[])}},{key:"get_limits_set",value:function(){return this.exec("get_limits_set",[])}},{key:"set_limits_set",value:function(e){return this.exec("set_limits_set",[e])}},{key:"get_background_tasks",value:function(){return this.exec("get_background_tasks",[])}},{key:"start_background_task",value:function(e){return this.exec("start_background_task",[e])}},{key:"stop_background_task",value:function(e){return this.exec("stop_background_task",[e])}},{key:"get_oldest_logfile",value:function(){return this.exec("get_oldest_logfile",[])}},{key:"get_target",value:function(e){return this.exec("get_target",[e])}},{key:"get_target_list",value:function(){return this.exec("get_target_list",[])}},{key:"get_telemetry",value:function(e,n){return this.exec("get_telemetry",[e,n])}},{key:"get_all_telemetry",value:function(e){return this.exec("get_all_telemetry",[e])}},{key:"get_all_telemetry_names",value:function(e){return this.exec("get_all_telemetry_names",[e])}},{key:"get_tlm_packet",value:function(){var e=(0,d.Z)((0,m.Z)().mark((function e(n,t,l){var i,o,a,c;return(0,m.Z)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,this.exec("get_tlm_packet",[n,t],{type:l});case 2:if(i=e.sent,null!=i)for(o=i.length,a=null,c=0;c<o;c++)a=this.decode_openc3_type(i[c][1]),null!==a&&(i[c][1]=a);return e.abrupt("return",i);case 5:case"end":return e.stop()}}),e,this)})));function n(n,t,l){return e.apply(this,arguments)}return n}()},{key:"get_packet_derived_items",value:function(e,n){return this.exec("get_packet_derived_items",[e,n])}},{key:"get_tlm_buffer",value:function(e,n){return this.exec("get_tlm_buffer",[e,n])}},{key:"get_tlm_values",value:function(){var e=(0,d.Z)((0,m.Z)().mark((function e(n){var t,l,i,o;return(0,m.Z)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,this.exec("get_tlm_values",[n]);case 2:for(t=e.sent,l=t[0].length,i=null,o=0;o<l;o++)i=this.decode_openc3_type(t[0][o]),null!==i&&(t[0][o]=i);return e.abrupt("return",t);case 7:case"end":return e.stop()}}),e,this)})));function n(n){return e.apply(this,arguments)}return n}()},{key:"get_limits",value:function(e,n,t){return this.exec("get_limits",[e,n,t])}},{key:"tlm",value:function(){var e=(0,d.Z)((0,m.Z)().mark((function e(n,t,l){var i,o;return(0,m.Z)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,this.exec("tlm",[n,t,l]);case 2:return i=e.sent,o=this.decode_openc3_type(i),null!==o&&(0,u.Z)("data"),e.abrupt("return",i);case 6:case"end":return e.stop()}}),e,this)})));function n(n,t,l){return e.apply(this,arguments)}return n}()},{key:"get_all_commands",value:function(e){return this.exec("get_all_commands",[e])}},{key:"get_all_command_names",value:function(e){return this.exec("get_all_command_names",[e])}},{key:"get_command",value:function(e,n){return this.exec("get_command",[e,n])}},{key:"get_cmd_cnts",value:function(e){return this.exec("get_cmd_cnts",[e])}},{key:"get_cmd_value",value:function(e,n,t){var l=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"CONVERTED";return this.exec("get_cmd_value",[e,n,t,l])}},{key:"get_cmd_buffer",value:function(e,n){return this.exec("get_cmd_buffer",[e,n])}},{key:"_cmd",value:function(e,n,t,l){var i=null;for(var o in l)Object.prototype.hasOwnProperty.call(l,o)&&(i=this.encode_openc3_type(l[o]),null!==i&&(l[o]=i));return this.exec(e,[n,t,l])}},{key:"get_cmd_hazardous",value:function(e,n,t){return void 0===n?this.exec("get_cmd_hazardous",e):this._cmd("get_cmd_hazardous",e,n,t)}},{key:"cmd",value:function(e,n,t){return void 0===n?this.exec("cmd",e):this._cmd("cmd",e,n,t)}},{key:"cmd_no_range_check",value:function(e,n,t){return void 0===n?this.exec("cmd_no_range_check",e):this._cmd("cmd_no_range_check",e,n,t)}},{key:"cmd_raw",value:function(e,n,t){return void 0===n?this.exec("cmd_raw",e):this._cmd("cmd_raw",e,n,t)}},{key:"cmd_raw_no_range_check",value:function(e,n,t){return void 0===n?this.exec("cmd_raw_no_range_check",e):this._cmd("cmd_raw_no_range_check",e,n,t)}},{key:"cmd_no_hazardous_check",value:function(e,n,t){return void 0===n?this.exec("cmd_no_hazardous_check",e):this._cmd("cmd_no_hazardous_check",e,n,t)}},{key:"cmd_no_checks",value:function(e,n,t){return void 0===n?this.exec("cmd_no_checks",e):this._cmd("cmd_no_checks",e,n,t)}},{key:"cmd_raw_no_hazardous_check",value:function(e,n,t){return void 0===n?this.exec("cmd_raw_no_hazardous_check",e):this._cmd("cmd_raw_no_hazardous_check",e,n,t)}},{key:"cmd_raw_no_checks",value:function(e,n,t){return void 0===n?this.exec("cmd_raw_no_checks",e):this._cmd("cmd_raw_no_checks",e,n,t)}},{key:"get_interface_names",value:function(){return this.exec("get_interface_names",[])}},{key:"send_raw",value:function(e,n){return this.exec("send_raw",[e,n])}},{key:"list_configs",value:function(e){return this.exec("list_configs",[e])}},{key:"load_config",value:function(e,n){return this.exec("load_config",[e,n])}},{key:"save_config",value:function(e,n,t){return this.exec("save_config",[e,n,t])}},{key:"delete_config",value:function(e,n){return this.exec("delete_config",[e,n])}},{key:"get_out_of_limits",value:function(){return this.exec("get_out_of_limits",[])}},{key:"get_overall_limits_state",value:function(e){return this.exec("get_overall_limits_state",[e])}},{key:"list_settings",value:function(){return this.exec("list_settings",[])}},{key:"get_all_settings",value:function(){return this.exec("get_all_settings",[])}},{key:"get_setting",value:function(e){return this.exec("get_setting",[e])}},{key:"get_settings",value:function(e){return this.exec("get_settings",e)}},{key:"save_setting",value:function(e,n){return this.exec("save_setting",[e,n])}},{key:"hashString",value:function(){var e=(0,d.Z)((0,m.Z)().mark((function e(n){var t,l,i;return(0,m.Z)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(!window.isSecureContext){e.next=7;break}return t=(new TextEncoder).encode(n),e.next=4,crypto.subtle.digest("SHA-256",t);case 4:return l=e.sent,i=new Uint8Array(l),e.abrupt("return",Array.from(i).map((function(e){return e.toString(16).padStart(2,"0")})).join(""));case 7:case"end":return e.stop()}}),e)})));function n(n){return e.apply(this,arguments)}return n}()}]),e}(),k=(t(4908),function(){var e=this,n=e._self._c;return n("v-dialog",{attrs:{width:"600"},on:{keydown:function(n){return!n.type.indexOf("key")&&e._k(n.keyCode,"esc",27,n.key,["Esc","Escape"])?null:e.cancel.apply(null,arguments)}},model:{value:e.show,callback:function(n){e.show=n},expression:"show"}},[n("v-card",[n("form",{on:{submit:function(n){return n.preventDefault(),e.success.apply(null,arguments)}}},[n("v-system-bar",[n("v-spacer"),n("span",[e._v("Open Configuration")]),n("v-spacer")],1),n("v-card-text",[n("div",{staticClass:"pa-3"},[n("v-row",{attrs:{dense:""}},[n("v-text-field",{attrs:{label:"search",type:"text","data-test":"search","prepend-icon":"mdi-magnify","clear-icon":"mdi-close-circle-outline",clearable:"",autofocus:"","single-line":"","hide-details":""},model:{value:e.search,callback:function(n){e.search=n},expression:"search"}})],1),n("v-data-table",{attrs:{"show-select":"","single-select":"","item-key":"configId",search:e.search,headers:e.headers,items:e.configs,"items-per-page":5,"footer-props":{"items-per-page-options":[5]}},on:{"item-selected":e.itemSelected,"click:row":function(e,n){return n.select(e)}},scopedSlots:e._u([{key:"item.actions",fn:function(t){var l=t.item;return[n("v-btn",{staticClass:"mt-1",attrs:{"data-test":"item-delete",icon:""},on:{click:function(n){return e.deleteConfig(l)}}},[n("v-icon",[e._v("mdi-delete")])],1)]}}])}),n("v-row",{attrs:{dense:""}},[n("span",{directives:[{name:"show",rawName:"v-show",value:e.error,expression:"error"}],staticClass:"ma-2 red--text",domProps:{textContent:e._s(e.error)}})]),n("v-row",[n("v-btn",{attrs:{type:"submit",color:"success","data-test":"open-config-submit-btn",disabled:!!e.error},on:{click:function(n){return n.preventDefault(),e.success.apply(null,arguments)}}},[e._v(" Ok ")]),n("v-spacer"),n("v-btn",{attrs:{color:"primary","data-test":"open-config-cancel-btn"},on:{click:e.cancel}},[e._v(" Cancel ")])],1)],1)])],1)])],1)}),T=[],x={props:{tool:String,value:Boolean},data:function(){return{configs:[],headers:[{text:"Configuration",value:"config"},{text:"Actions",value:"actions",align:"end",sortable:!1}],search:null,selectedItem:null}},computed:{error:function(){return""===this.selectedItem||null===this.selectedItem?"Must select a config":null},show:{get:function(){return this.value},set:function(e){this.$emit("input",e)}}},mounted:function(){var e=this,n=-1;(new b).list_configs(this.tool).then((function(t){e.configs=t.map((function(e){return n+=1,{configId:n,config:e}}))})).catch((function(n){e.$emit("warning","Failed to connect to OpenC3. ".concat(n))}))},methods:{itemSelected:function(e){e.value?this.selectedItem=e.item:this.selectedItem=null},success:function(){this.$emit("success",this.selectedItem.config),this.show=!1,this.search=null,this.selectedItem=null},cancel:function(){this.show=!1,this.search=null,this.selectedItem=null},deleteConfig:function(e){var n=this;this.$dialog.confirm("Are you sure you want to delete: ".concat(e.config),{okText:"Delete",cancelText:"Cancel"}).then((function(t){n.selectedItem.config===e.config&&(n.selectedItem=null),n.configs.splice(n.configs.indexOf(e),1),(new b).delete_config(n.tool,e.config)})).catch((function(t){t&&n.$emit("warning","Failed to delete config ".concat(e.config," Error: ").concat(t))}))}}},D=x,w=t(3483),N=(0,w.Z)(D,k,T,!1,null,"db42aa32",null),I=N.exports,O=function(){var e=this,n=e._self._c;return n("v-dialog",{attrs:{width:"600"},on:{keydown:function(n){return!n.type.indexOf("key")&&e._k(n.keyCode,"esc",27,n.key,["Esc","Escape"])?null:e.cancel.apply(null,arguments)}},model:{value:e.show,callback:function(n){e.show=n},expression:"show"}},[n("v-card",[n("form",{on:{submit:function(n){return n.preventDefault(),e.success.apply(null,arguments)}}},[n("v-system-bar",[n("v-spacer"),n("span",[e._v("Save Configuration")]),n("v-spacer")],1),n("v-card-text",[n("div",{staticClass:"pa-3"},[n("v-row",{attrs:{dense:""}},[n("v-text-field",{attrs:{label:"search",type:"text","data-test":"search","prepend-icon":"mdi-magnify","clear-icon":"mdi-close-circle-outline",clearable:"","single-line":"","hide-details":""},model:{value:e.search,callback:function(n){e.search=n},expression:"search"}})],1),n("v-data-table",{attrs:{"show-select":"","single-select":"","item-key":"configId",search:e.search,headers:e.headers,items:e.configs,"items-per-page":5,"footer-props":{"items-per-page-options":[5]}},on:{"item-selected":e.itemSelected,"click:row":function(e,n){return n.select(e)}},scopedSlots:e._u([{key:"item.actions",fn:function(t){var l=t.item;return[n("v-btn",{staticClass:"mt-1",attrs:{icon:"","data-test":"item-delete"},on:{click:function(n){return e.deleteConfig(l)}}},[n("v-icon",[e._v("mdi-delete")])],1)]}}])}),n("v-row",{attrs:{dense:""}},[n("v-text-field",{attrs:{"hide-details":"",autofocus:"",disabled:!!e.selectedItem,label:"Configuration Name","data-test":"name-input-save-config-dialog"},model:{value:e.configName,callback:function(n){e.configName=n},expression:"configName"}})],1),n("v-row",{attrs:{dense:""}},[n("span",{directives:[{name:"show",rawName:"v-show",value:e.error,expression:"error"}],staticClass:"ma-2 red--text",domProps:{textContent:e._s(e.error)}})]),n("v-row",[n("v-spacer"),n("v-btn",{staticClass:"mx-2",attrs:{outlined:""},on:{click:e.cancel}},[e._v(" Cancel ")]),n("v-btn",{staticClass:"mx-2",attrs:{type:"submit",color:"primary","data-test":"save-config-submit-btn",disabled:!!e.error},on:{click:function(n){return n.preventDefault(),e.success.apply(null,arguments)}}},[e._v(" Ok ")])],1)],1)])],1)])],1)},E=[],S={props:{tool:String,value:Boolean},data:function(){return{configName:"",configs:[],headers:[{text:"Configuration",value:"config"},{text:"Actions",value:"actions",align:"end",sortable:!1}],search:null,selectedItem:null}},computed:{error:function(){return""===this.configName?"Config must have a name":null},show:{get:function(){return this.value},set:function(e){this.$emit("input",e)}}},mounted:function(){var e=this,n=-1;(new b).list_configs(this.tool).then((function(t){e.configs=t.map((function(e){return n+=1,{configId:n,config:e}}))})).catch((function(n){e.$emit("warning","Failed to connect to OpenC3. ".concat(n))}))},methods:{itemSelected:function(e){e.value?(this.selectedItem=e.item,this.configName=e.item.config):(this.selectedItem=null,this.configName="")},success:function(){this.$emit("success",this.configName),this.show=!1,this.search=null,this.selectedItem=null,this.configName=""},cancel:function(){this.show=!1,this.search=null,this.selectedItem=null,this.configName=""},deleteConfig:function(e){var n=this;this.$dialog.confirm("Are you sure you want to delete: ".concat(e.config),{okText:"Delete",cancelText:"Cancel"}).then((function(t){n.configName===e.config&&(n.selectedItem=null,n.configName=""),n.configs.splice(n.configs.indexOf(e.config),1),(new b).delete_config(n.tool,e.config)})).catch((function(t){t&&n.$emit("warning","Failed to delete config ".concat(e.config," Error: ").concat(t))}))}}},M=S,R=(0,w.Z)(M,O,E,!1,null,null,null),L=R.exports,$=(t(4115),t(634),function(){var e=this,n=e._self._c;return n("v-container",{staticClass:"c-chooser px-0"},[n("v-row",[n("v-col",{attrs:{cols:e.colSize,"data-test":"select-target"}},[n("v-autocomplete",{attrs:{label:"Select Target","hide-details":"",dense:"",items:e.targetNames,"item-text":"label","item-value":"value"},on:{change:e.targetNameChanged},model:{value:e.selectedTargetName,callback:function(n){e.selectedTargetName=n},expression:"selectedTargetName"}})],1),n("v-col",{attrs:{cols:e.colSize,"data-test":"select-packet"}},[n("v-autocomplete",{attrs:{label:"Select Packet","hide-details":"",dense:"",disabled:e.packetsDisabled||e.buttonDisabled,items:e.packetNames,"item-text":"label","item-value":"value"},on:{change:e.packetNameChanged},model:{value:e.selectedPacketName,callback:function(n){e.selectedPacketName=n},expression:"selectedPacketName"}})],1),e.chooseItem&&!e.buttonDisabled?n("v-col",{attrs:{cols:e.colSize,"data-test":"select-item"}},[n("v-autocomplete",{attrs:{label:"Select Item","hide-details":"",dense:"",disabled:e.itemsDisabled||e.buttonDisabled,items:e.itemNames,"item-text":"label","item-value":"value"},on:{change:function(n){return e.itemNameChanged(n)}},model:{value:e.selectedItemName,callback:function(n){e.selectedItemName=n},expression:"selectedItemName"}})],1):e._e(),e.buttonText?n("v-col",{attrs:{cols:e.colSize}},[n("v-btn",{attrs:{disabled:e.buttonDisabled,block:"",color:"primary","data-test":"select-send"},on:{click:e.buttonPressed}},[e._v(" "+e._s(e.actualButtonText)+" ")])],1):e._e()],1),n("v-row",{attrs:{"no-gutters":""}},[n("v-col",{attrs:{cols:e.colSize}},[e._v("Description: "+e._s(e.description))])],1)],1)}),F=[],P=(t(9228),t(3108),{props:{allowAll:{type:Boolean,default:!1},buttonText:{type:String,default:null},chooseItem:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},initialTargetName:{type:String,default:""},initialPacketName:{type:String,default:""},initialItemName:{type:String,default:""},mode:{type:String,default:"tlm",validator:function(e){return["cmd","tlm"].includes(e)}},reduced:{type:String,default:"DECOM",validator:function(e){return["REDUCED_DAY","REDUCED_HOUR","REDUCED_MINUTE","DECOM"].includes(e)}},unknown:{type:Boolean,default:!1},vertical:{type:Boolean,default:!1}},data:function(){var e,n,t;return{targetNames:[],packetNames:[],itemNames:[],selectedTargetName:null===(e=this.initialTargetName)||void 0===e?void 0:e.toUpperCase(),selectedPacketName:null===(n=this.initialPacketName)||void 0===n?void 0:n.toUpperCase(),selectedItemName:null===(t=this.initialItemName)||void 0===t?void 0:t.toUpperCase(),description:"",internalDisabled:!1,packetsDisabled:!1,itemsDisabled:!1,api:null,ALL:{label:"[ ALL ]",value:"ALL",description:"ALL"},UNKNOWN:{label:"[ UNKNOWN ]",value:"UNKNOWN",description:"UNKNOWN"}}},created:function(){var e=this;this.internalDisabled=!0,this.api=new b,this.api.get_target_list().then((function(n){e.targetNames=n.map((function(e){return{label:e,value:e}})),e.selectedTargetName||(e.selectedTargetName=e.targetNames[0].value,e.targetNameChanged(e.selectedTargetName)),e.updatePackets(),e.unknown&&e.targetNames.push(e.UNKNOWN)}))},computed:{actualButtonText:function(){return"ALL"===this.selectedPacketName?"Add Target":"ALL"===this.selectedItemName?"Add Packet":this.buttonText},buttonDisabled:function(){return this.disabled||this.internalDisabled},targetChooserStyle:function(){return this.chooseItem||this.buttonText?{width:"25%",float:"left","margin-right":"5px"}:{width:"49%",float:"left"}},packetChooserStyle:function(){return this.chooseItem||this.buttonText?{width:"25%",float:"left","margin-right":"5px"}:{width:"50%",float:"right"}},colSize:function(){return!!this.vertical&&12}},watch:{mode:function(e,n){this.updatePackets(),this.itemNames=[]},reduced:function(e,n){this.updateItems()}},methods:{updatePackets:function(){var e=this;if("UNKNOWN"===this.selectedTargetName)return this.packetNames=[this.UNKNOWN],this.selectedPacketName=this.packetNames[0].value,this.packetNameChanged(this.UNKNOWN.value),void(this.description="UNKNOWN");this.internalDisabled=!0;var n="tlm"===this.mode?"get_all_telemetry_names":"get_all_command_names";this.api[n](this.selectedTargetName).then((function(n){e.packetNames=n.map((function(e){return{label:e,value:e}})),e.allowAll&&e.packetNames.unshift(e.ALL),e.selectedPacketName||(e.selectedPacketName=e.packetNames[0].value),e.packetNameChanged(e.selectedPacketName);e.packetNames.find((function(n){return n.value===e.selectedPacketName}));e.chooseItem&&e.updateItems(),e.internalDisabled=!1}))},updateItems:function(){var e=this;if("ALL"!==this.selectedPacketName){this.internalDisabled=!0;var n="tlm"===this.mode?"get_telemetry":"get_command";this.api[n](this.selectedTargetName,this.selectedPacketName).then((function(n){e.itemNames=n.items.map((function(n){return"DECOM"===e.reduced?[{label:n.name,value:n.name,description:n.description}]:e.makeReducedItems(n)})).reduce((function(e,n){return e.concat(n)}),[]),e.allowAll&&e.itemNames.unshift(e.ALL),e.selectedItemName||(e.selectedItemName=e.itemNames[0].value),e.description=e.itemNames[0].description,e.internalDisabled=!1,e.$emit("on-set",{targetName:e.selectedTargetName,packetName:e.selectedPacketName,itemName:e.selectedItemName,reduced:e.reduced})}))}},makeReducedItems:function(e){var n=!e.array_size&&!e.states;return n&&["UINT","INT","FLOAT"].includes(e.data_type)?["MIN","MAX","AVG","STDDEV"].map((function(n){return{label:"".concat(e.name,"_").concat(n),value:"".concat(e.name,"_").concat(n),description:"".concat(n," ").concat(e.description)}})):[]},targetNameChanged:function(e){this.selectedTargetName=e,this.selectedPacketName="",this.selectedItemName="",this.updatePackets()},packetNameChanged:function(e){var n=this;if("ALL"===e)this.itemsDisabled=!0,this.internalDisabled=!1;else{this.itemsDisabled=!1;var t=this.packetNames.find((function(n){return e===n.value}));this.selectedPacketName=t.value;var l="tlm"===this.mode?"get_telemetry":"get_command";this.api[l](this.selectedTargetName,this.selectedPacketName).then((function(e){n.description=e.description}))}this.chooseItem?(this.selectedItemName="",this.updateItems()):this.$emit("on-set",{targetName:this.selectedTargetName,packetName:this.selectedPacketName,reduced:this.reduced})},itemNameChanged:function(e){var n=this.itemNames.find((function(n){return e===n.value}));this.selectedItemName=n.value,this.description=n.description,this.$emit("on-set",{targetName:this.selectedTargetName,packetName:this.selectedPacketName,itemName:this.selectedItemName,reduced:this.reduced})},buttonPressed:function(){"ALL"===this.selectedPacketName?this.allTargetPacketItems():"ALL"===this.selectedItemName?this.allPacketItems():this.chooseItem?this.$emit("click",{targetName:this.selectedTargetName,packetName:this.selectedPacketName,itemName:this.selectedItemName,reduced:this.reduced}):this.$emit("click",{targetName:this.selectedTargetName,packetName:this.selectedPacketName,reduced:this.reduced})},allTargetPacketItems:function(){var e=this;this.packetNames.forEach((function(n){if(n!==e.ALL){var t="tlm"===e.mode?"get_telemetry":"get_command";e.api[t](e.selectedTargetName,n.value).then((function(t){t.items.forEach((function(t){e.$emit("click",{targetName:e.selectedTargetName,packetName:n.value,itemName:t["name"],reduced:e.reduced})}))}))}}))},allPacketItems:function(){var e=this;this.itemNames.forEach((function(n){n!==e.ALL&&e.$emit("click",{targetName:e.selectedTargetName,packetName:e.selectedPacketName,itemName:n.value,reduced:e.reduced})}))}}}),H=P,Z=(0,w.Z)(H,$,F,!1,null,null,null),U=Z.exports,V=t(4948),j=t(3492);j.ConnectionMonitor.staleThreshold=60;var q=function(){function e(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"/openc3-api/cable";(0,A.Z)(this,e),this._cable=j.createConsumer(n)}return(0,v.Z)(e,[{key:"disconnect",value:function(){this._cable.disconnect()}},{key:"createSubscription",value:function(e,n){var t=this,l=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return OpenC3Auth.updateToken(OpenC3Auth.defaultMinValidity).then((function(){return t._cable.subscriptions.create((0,V.Z)({channel:e,scope:n,token:localStorage.openc3Token},i),l)}))}}]),e}(),B=t(8966),K=function(){var e=this,n=e._self._c;return n("mounting-portal",{attrs:{"mount-to":"#openc3-menu",append:""}},[n("div",{staticClass:"v-toolbar__content"},[e._l(e.menus,(function(t,l){return n("v-menu",{key:l,attrs:{"offset-y":""},scopedSlots:e._u([{key:"activator",fn:function(l){var i=l.on,o=l.attrs;return[n("v-btn",e._g(e._b({staticClass:"mx-1",attrs:{outlined:"","data-test":e.formatDT("".concat(e.title," ").concat(t.label))}},"v-btn",o,!1),i),[n("span",{domProps:{textContent:e._s(t.label)}}),n("v-icon",{attrs:{right:""}},[e._v(" mdi-menu-down ")])],1)]}}],null,!0)},[n("v-list",[n("v-radio-group",{staticClass:"ma-0 pa-0",attrs:{value:t.radioGroup,"hide-details":"",dense:""}},[e._l(t.items,(function(l,i){return[l.divider?n("v-divider"):n("v-list-item",{key:i,attrs:{disabled:l.disabled,"data-test":e.formatDT("".concat(e.title," ").concat(t.label," ").concat(l.label))},on:{click:l.command}},[l.radio?n("v-list-item-action",[n("v-radio",{attrs:{color:"secondary",label:l.label,value:l.label}})],1):e._e(),l.checkbox?n("v-list-item-action",[n("v-checkbox",{attrs:{color:"secondary",label:l.label,value:l.label},model:{value:e.checked,callback:function(n){e.checked=n},expression:"checked"}})],1):e._e(),l.icon?n("v-list-item-icon",[n("v-icon",{attrs:{disabled:l.disabled}},[e._v(e._s(l.icon))])],1):e._e(),l.radio||l.checkbox?e._e():n("v-list-item-title",{style:"cursor: pointer;"+(l.disabled?"opacity: 0.2":"")},[e._v(e._s(l.label))])],1)]}))],2)],1)],1)})),n("v-spacer"),n("v-toolbar-title",[e._v(e._s(e.title))]),n("v-spacer")],2)])},z=[],G=(t(1639),{props:{menus:{type:Array,default:function(){return[]}},title:{type:String,default:""}},methods:{formatDT:function(e){return e.replaceAll(" ","-").toLowerCase()}}}),W=G,Y=(t(6104),(0,w.Z)(W,K,z,!1,null,"11927f54",null)),J=Y.exports;function X(){var e="/openc3/plugins/packages/openc3-tool-dataextractor/src/tools/DataExtractor/Filters/timeFilters.js",n="df631410cb22f16a455a67bc6d0eb27451eb4fa9",t=new Function("return this")(),l="__coverage__",i={path:"/openc3/plugins/packages/openc3-tool-dataextractor/src/tools/DataExtractor/Filters/timeFilters.js",statementMap:{0:{start:{line:23,column:6},end:{line:27,column:7}},1:{start:{line:24,column:8},end:{line:24,column:32}},2:{start:{line:26,column:8},end:{line:26,column:35}}},fnMap:{0:{name:"(anonymous_0)",decl:{start:{line:22,column:14},end:{line:22,column:15}},loc:{start:{line:22,column:41},end:{line:28,column:5}},line:22}},branchMap:{0:{loc:{start:{line:23,column:6},end:{line:27,column:7}},type:"if",locations:[{start:{line:23,column:6},end:{line:27,column:7}},{start:{line:25,column:13},end:{line:27,column:7}}],line:23}},s:{0:0,1:0,2:0},f:{0:0},b:{0:[0,0]},_coverageSchema:"1a1c01bbd47fc00a2c39e90264f33305004495a9",hash:"df631410cb22f16a455a67bc6d0eb27451eb4fa9"},o=t[l]||(t[l]={});o[e]&&o[e].hash===n||(o[e]=i);var a=o[e];return X=function(){return a},a}X();var Q={filters:{dateTime:function(e,n){return X().f[0]++,X().s[0]++,"utc"===n?(X().b[0][0]++,X().s[1]++,e.toISOString()):(X().b[0][1]++,X().s[2]++,e.toLocaleString())}},methods:{}};function ee(){var e="/openc3/plugins/packages/openc3-tool-dataextractor/src/tools/DataExtractor/DataExtractor.vue",n="8a3bf3e4d2e88215e5e0aa85a3b87bc26006012a",t=new Function("return this")(),l="__coverage__",i={path:"/openc3/plugins/packages/openc3-tool-dataextractor/src/tools/DataExtractor/DataExtractor.vue",statementMap:{0:{start:{line:20,column:4},end:{line:156,column:5}},1:{start:{line:40,column:29},end:{line:40,column:50}},2:{start:{line:70,column:16},end:{line:70,column:38}},3:{start:{line:77,column:16},end:{line:77,column:38}},4:{start:{line:87,column:16},end:{line:87,column:36}},5:{start:{line:94,column:16},end:{line:94,column:37}},6:{start:{line:119,column:16},end:{line:119,column:46}},7:{start:{line:126,column:16},end:{line:126,column:54}},8:{start:{line:133,column:16},end:{line:133,column:50}},9:{start:{line:143,column:16},end:{line:143,column:42}},10:{start:{line:150,column:16},end:{line:150,column:40}},11:{start:{line:161,column:6},end:{line:161,column:53}},12:{start:{line:165,column:4},end:{line:165,column:30}},13:{start:{line:166,column:4},end:{line:171,column:8}},14:{start:{line:170,column:8},end:{line:170,column:53}},15:{start:{line:174,column:27},end:{line:174,column:68}},16:{start:{line:175,column:4},end:{line:177,column:5}},17:{start:{line:176,column:6},end:{line:176,column:44}},18:{start:{line:180,column:4},end:{line:182,column:5}},19:{start:{line:181,column:6},end:{line:181,column:37}},20:{start:{line:183,column:4},end:{line:183,column:27}},21:{start:{line:187,column:6},end:{line:187,column:54}},22:{start:{line:188,column:6},end:{line:207,column:10}},23:{start:{line:191,column:10},end:{line:197,column:11}},24:{start:{line:192,column:12},end:{line:192,column:45}},25:{start:{line:193,column:12},end:{line:196,column:14}},26:{start:{line:200,column:10},end:{line:206,column:11}},27:{start:{line:201,column:12},end:{line:204,column:14}},28:{start:{line:205,column:12},end:{line:205,column:60}},29:{start:{line:210,column:6},end:{line:210,column:54}},30:{start:{line:211,column:6},end:{line:226,column:10}},31:{start:{line:214,column:10},end:{line:217,column:12}},32:{start:{line:220,column:10},end:{line:225,column:11}},33:{start:{line:221,column:12},end:{line:224,column:14}},34:{start:{line:230,column:6},end:{line:242,column:7}},35:{start:{line:231,column:8},end:{line:241,column:9}},36:{start:{line:237,column:10},end:{line:239,column:12}},37:{start:{line:240,column:10},end:{line:240,column:16}},38:{start:{line:243,column:6},end:{line:243,column:49}},39:{start:{line:244,column:6},end:{line:244,column:23}},40:{start:{line:245,column:6},end:{line:245,column:34}},41:{start:{line:247,column:6},end:{line:247,column:27}},42:{start:{line:250,column:18},end:{line:250,column:42}},43:{start:{line:251,column:6},end:{line:251,column:33}},44:{start:{line:254,column:6},end:{line:254,column:21}},45:{start:{line:257,column:6},end:{line:257,column:26}},46:{start:{line:258,column:6},end:{line:260,column:7}},47:{start:{line:259,column:8},end:{line:259,column:46}},48:{start:{line:263,column:18},end:{line:263,column:80}},49:{start:{line:264,column:6},end:{line:266,column:7}},50:{start:{line:265,column:8},end:{line:265,column:45}},51:{start:{line:267,column:6},end:{line:269,column:7}},52:{start:{line:268,column:8},end:{line:268,column:41}},53:{start:{line:270,column:6},end:{line:270,column:28}},54:{start:{line:273,column:6},end:{line:273,column:72}},55:{start:{line:275,column:6},end:{line:278,column:7}},56:{start:{line:281,column:6},end:{line:291,column:7}},57:{start:{line:282,column:8},end:{line:288,column:9}},58:{start:{line:283,column:10},end:{line:283,column:75}},59:{start:{line:284,column:10},end:{line:284,column:69}},60:{start:{line:286,column:10},end:{line:286,column:69}},61:{start:{line:287,column:10},end:{line:287,column:63}},62:{start:{line:290,column:8},end:{line:290,column:14}},63:{start:{line:292,column:6},end:{line:292,column:58}},64:{start:{line:293,column:6},end:{line:293,column:54}},65:{start:{line:297,column:6},end:{line:300,column:7}},66:{start:{line:298,column:8},end:{line:298,column:23}},67:{start:{line:299,column:8},end:{line:299,column:14}},68:{start:{line:302,column:6},end:{line:302,column:26}},69:{start:{line:303,column:6},end:{line:308,column:7}},70:{start:{line:304,column:8},end:{line:306,column:10}},71:{start:{line:307,column:8},end:{line:307,column:14}},72:{start:{line:309,column:6},end:{line:314,column:7}},73:{start:{line:310,column:8},end:{line:312,column:10}},74:{start:{line:313,column:8},end:{line:313,column:14}},75:{start:{line:315,column:6},end:{line:320,column:7}},76:{start:{line:316,column:8},end:{line:318,column:10}},77:{start:{line:319,column:8},end:{line:319,column:14}},78:{start:{line:322,column:6},end:{line:331,column:7}},79:{start:{line:323,column:8},end:{line:330,column:10}},80:{start:{line:333,column:6},end:{line:333,column:23}},81:{start:{line:334,column:6},end:{line:334,column:39}},82:{start:{line:335,column:6},end:{line:352,column:10}},83:{start:{line:337,column:30},end:{line:337,column:49}},84:{start:{line:338,column:27},end:{line:338,column:45}},85:{start:{line:340,column:12},end:{line:342,column:14}},86:{start:{line:345,column:12},end:{line:347,column:14}},87:{start:{line:351,column:10},end:{line:351,column:42}},88:{start:{line:355,column:6},end:{line:355,column:25}},89:{start:{line:356,column:6},end:{line:356,column:29}},90:{start:{line:357,column:6},end:{line:357,column:25}},91:{start:{line:358,column:6},end:{line:358,column:23}},92:{start:{line:359,column:6},end:{line:359,column:28}},93:{start:{line:362,column:6},end:{line:362,column:24}},94:{start:{line:363,column:6},end:{line:363,column:33}},95:{start:{line:364,column:6},end:{line:364,column:22}},96:{start:{line:365,column:18},end:{line:365,column:20}},97:{start:{line:366,column:6},end:{line:370,column:8}},98:{start:{line:367,column:8},end:{line:369,column:9}},99:{start:{line:371,column:6},end:{line:380,column:8}},100:{start:{line:372,column:8},end:{line:379,column:10}},101:{start:{line:383,column:6},end:{line:388,column:7}},102:{start:{line:387,column:8},end:{line:387,column:14}},103:{start:{line:389,column:6},end:{line:389,column:54}},104:{start:{line:392,column:6},end:{line:395,column:7}},105:{start:{line:393,column:8},end:{line:393,column:41}},106:{start:{line:394,column:8},end:{line:394,column:41}},107:{start:{line:396,column:6},end:{line:412,column:8}},108:{start:{line:397,column:8},end:{line:397,column:35}},109:{start:{line:397,column:29},end:{line:397,column:35}},110:{start:{line:398,column:8},end:{line:398,column:65}},111:{start:{line:400,column:10},end:{line:400,column:26}},112:{start:{line:401,column:8},end:{line:411,column:9}},113:{start:{line:402,column:10},end:{line:404,column:11}},114:{start:{line:406,column:10},end:{line:410,column:11}},115:{start:{line:407,column:12},end:{line:407,column:70}},116:{start:{line:409,column:12},end:{line:409,column:45}},117:{start:{line:415,column:6},end:{line:420,column:7}},118:{start:{line:416,column:8},end:{line:418,column:10}},119:{start:{line:419,column:8},end:{line:419,column:14}},120:{start:{line:421,column:6},end:{line:421,column:44}},121:{start:{line:422,column:6},end:{line:422,column:49}},122:{start:{line:423,column:19},end:{line:423,column:40}},123:{start:{line:425,column:6},end:{line:444,column:7}},124:{start:{line:427,column:19},end:{line:427,column:28}},125:{start:{line:428,column:8},end:{line:430,column:9}},126:{start:{line:429,column:10},end:{line:429,column:51}},127:{start:{line:431,column:8},end:{line:431,column:36}},128:{start:{line:432,column:8},end:{line:432,column:48}},129:{start:{line:433,column:8},end:{line:436,column:9}},130:{start:{line:438,column:8},end:{line:441,column:9}},131:{start:{line:439,column:10},end:{line:439,column:32}},132:{start:{line:440,column:10},end:{line:440,column:27}},133:{start:{line:443,column:8},end:{line:443,column:23}},134:{start:{line:447,column:20},end:{line:447,column:32}},135:{start:{line:448,column:22},end:{line:448,column:36}},136:{start:{line:449,column:26},end:{line:449,column:44}},137:{start:{line:450,column:22},end:{line:450,column:36}},138:{start:{line:451,column:23},end:{line:451,column:25}},139:{start:{line:452,column:6},end:{line:452,column:22}},140:{start:{line:454,column:20},end:{line:454,column:22}},141:{start:{line:455,column:6},end:{line:457,column:7}},142:{start:{line:456,column:8},end:{line:456,column:23}},143:{start:{line:458,column:6},end:{line:458,column:51}},144:{start:{line:459,column:6},end:{line:459,column:30}},145:{start:{line:462,column:6},end:{line:462,column:45}},146:{start:{line:462,column:29},end:{line:462,column:44}},147:{start:{line:463,column:26},end:{line:463,column:28}},148:{start:{line:464,column:16},end:{line:464,column:18}},149:{start:{line:465,column:24},end:{line:465,column:28}},150:{start:{line:466,column:6},end:{line:503,column:8}},151:{start:{line:467,column:22},end:{line:467,column:27}},152:{start:{line:468,column:8},end:{line:472,column:9}},153:{start:{line:469,column:10},end:{line:469,column:32}},154:{start:{line:471,column:10},end:{line:471,column:18}},155:{start:{line:474,column:21},end:{line:474,column:40}},156:{start:{line:475,column:8},end:{line:490,column:10}},157:{start:{line:476,column:10},end:{line:476,column:56}},158:{start:{line:476,column:50},end:{line:476,column:56}},159:{start:{line:478,column:10},end:{line:482,column:11}},160:{start:{line:479,column:12},end:{line:479,column:64}},161:{start:{line:481,column:12},end:{line:481,column:45}},162:{start:{line:483,column:10},end:{line:488,column:11}},163:{start:{line:487,column:12},end:{line:487,column:26}},164:{start:{line:489,column:10},end:{line:489,column:61}},165:{start:{line:492,column:8},end:{line:492,column:30}},166:{start:{line:494,column:8},end:{line:502,column:9}},167:{start:{line:496,column:10},end:{line:500,column:11}},168:{start:{line:497,column:31},end:{line:497,column:50}},169:{start:{line:498,column:12},end:{line:498,column:28}},170:{start:{line:499,column:12},end:{line:499,column:28}},171:{start:{line:501,column:10},end:{line:501,column:51}},172:{start:{line:505,column:34},end:{line:505,column:40}},173:{start:{line:506,column:17},end:{line:506,column:27}},174:{start:{line:507,column:6},end:{line:510,column:7}},175:{start:{line:508,column:8},end:{line:508,column:38}},176:{start:{line:509,column:8},end:{line:509,column:42}},177:{start:{line:511,column:19},end:{line:513,column:8}},178:{start:{line:515,column:19},end:{line:515,column:46}},179:{start:{line:516,column:6},end:{line:516,column:43}},180:{start:{line:517,column:6},end:{line:523,column:7}},181:{start:{line:524,column:6},end:{line:524,column:18}},182:{start:{line:526,column:6},end:{line:526,column:25}},183:{start:{line:529,column:6},end:{line:529,column:24}},184:{start:{line:530,column:6},end:{line:530,column:37}},185:{start:{line:532,column:6},end:{line:540,column:7}},186:{start:{line:533,column:8},end:{line:533,column:25}},187:{start:{line:534,column:13},end:{line:540,column:7}},188:{start:{line:535,column:20},end:{line:535,column:74}},189:{start:{line:536,column:18},end:{line:536,column:70}},190:{start:{line:537,column:8},end:{line:539,column:10}},191:{start:{line:542,column:6},end:{line:542,column:25}},192:{start:{line:543,column:6},end:{line:543,column:40}}},fnMap:{0:{name:"(anonymous_0)",decl:{start:{line:19,column:2},end:{line:19,column:3}},loc:{start:{line:19,column:9},end:{line:157,column:3}},line:19},1:{name:"(anonymous_1)",decl:{start:{line:40,column:18},end:{line:40,column:19}},loc:{start:{line:40,column:29},end:{line:40,column:50}},line:40},2:{name:"(anonymous_2)",decl:{start:{line:69,column:23},end:{line:69,column:24}},loc:{start:{line:69,column:29},end:{line:71,column:15}},line:69},3:{name:"(anonymous_3)",decl:{start:{line:76,column:23},end:{line:76,column:24}},loc:{start:{line:76,column:29},end:{line:78,column:15}},line:76},4:{name:"(anonymous_4)",decl:{start:{line:86,column:23},end:{line:86,column:24}},loc:{start:{line:86,column:29},end:{line:88,column:15}},line:86},5:{name:"(anonymous_5)",decl:{start:{line:93,column:23},end:{line:93,column:24}},loc:{start:{line:93,column:29},end:{line:95,column:15}},line:93},6:{name:"(anonymous_6)",decl:{start:{line:118,column:23},end:{line:118,column:24}},loc:{start:{line:118,column:29},end:{line:120,column:15}},line:118},7:{name:"(anonymous_7)",decl:{start:{line:125,column:23},end:{line:125,column:24}},loc:{start:{line:125,column:29},end:{line:127,column:15}},line:125},8:{name:"(anonymous_8)",decl:{start:{line:132,column:23},end:{line:132,column:24}},loc:{start:{line:132,column:29},end:{line:134,column:15}},line:132},9:{name:"(anonymous_9)",decl:{start:{line:142,column:23},end:{line:142,column:24}},loc:{start:{line:142,column:29},end:{line:144,column:15}},line:142},10:{name:"(anonymous_10)",decl:{start:{line:149,column:23},end:{line:149,column:24}},loc:{start:{line:149,column:29},end:{line:151,column:15}},line:149},11:{name:"(anonymous_11)",decl:{start:{line:159,column:22},end:{line:159,column:23}},loc:{start:{line:159,column:34},end:{line:162,column:5}},line:159},12:{name:"(anonymous_12)",decl:{start:{line:164,column:11},end:{line:164,column:12}},loc:{start:{line:164,column:23},end:{line:172,column:3}},line:164},13:{name:"(anonymous_13)",decl:{start:{line:168,column:12},end:{line:168,column:13}},loc:{start:{line:168,column:26},end:{line:171,column:7}},line:168},14:{name:"(anonymous_14)",decl:{start:{line:173,column:11},end:{line:173,column:12}},loc:{start:{line:173,column:23},end:{line:178,column:3}},line:173},15:{name:"(anonymous_15)",decl:{start:{line:179,column:13},end:{line:179,column:14}},loc:{start:{line:179,column:25},end:{line:184,column:3}},line:179},16:{name:"(anonymous_16)",decl:{start:{line:186,column:23},end:{line:186,column:24}},loc:{start:{line:186,column:39},end:{line:208,column:5}},line:186},17:{name:"(anonymous_17)",decl:{start:{line:190,column:14},end:{line:190,column:15}},loc:{start:{line:190,column:28},end:{line:198,column:9}},line:190},18:{name:"(anonymous_18)",decl:{start:{line:199,column:15},end:{line:199,column:16}},loc:{start:{line:199,column:26},end:{line:207,column:9}},line:199},19:{name:"(anonymous_19)",decl:{start:{line:209,column:23},end:{line:209,column:24}},loc:{start:{line:209,column:39},end:{line:227,column:5}},line:209},20:{name:"(anonymous_20)",decl:{start:{line:213,column:14},end:{line:213,column:15}},loc:{start:{line:213,column:28},end:{line:218,column:9}},line:213},21:{name:"(anonymous_21)",decl:{start:{line:219,column:15},end:{line:219,column:16}},loc:{start:{line:219,column:26},end:{line:226,column:9}},line:219},22:{name:"(anonymous_22)",decl:{start:{line:228,column:13},end:{line:228,column:14}},loc:{start:{line:228,column:29},end:{line:248,column:5}},line:228},23:{name:"(anonymous_23)",decl:{start:{line:249,column:16},end:{line:249,column:17}},loc:{start:{line:249,column:32},end:{line:252,column:5}},line:249},24:{name:"(anonymous_24)",decl:{start:{line:253,column:15},end:{line:253,column:16}},loc:{start:{line:253,column:27},end:{line:255,column:5}},line:253},25:{name:"(anonymous_25)",decl:{start:{line:256,column:23},end:{line:256,column:24}},loc:{start:{line:256,column:35},end:{line:261,column:5}},line:256},26:{name:"(anonymous_26)",decl:{start:{line:262,column:18},end:{line:262,column:19}},loc:{start:{line:262,column:34},end:{line:271,column:5}},line:262},27:{name:"(anonymous_27)",decl:{start:{line:272,column:19},end:{line:272,column:20}},loc:{start:{line:272,column:31},end:{line:294,column:5}},line:272},28:{name:"(anonymous_28)",decl:{start:{line:295,column:18},end:{line:295,column:19}},loc:{start:{line:295,column:30},end:{line:353,column:5}},line:295},29:{name:"(anonymous_29)",decl:{start:{line:337,column:20},end:{line:337,column:21}},loc:{start:{line:337,column:30},end:{line:337,column:49}},line:337},30:{name:"(anonymous_30)",decl:{start:{line:338,column:21},end:{line:338,column:22}},loc:{start:{line:338,column:27},end:{line:338,column:45}},line:338},31:{name:"(anonymous_31)",decl:{start:{line:339,column:24},end:{line:339,column:25}},loc:{start:{line:339,column:30},end:{line:343,column:11}},line:339},32:{name:"(anonymous_32)",decl:{start:{line:344,column:20},end:{line:344,column:21}},loc:{start:{line:344,column:26},end:{line:348,column:11}},line:344},33:{name:"(anonymous_33)",decl:{start:{line:350,column:14},end:{line:350,column:15}},loc:{start:{line:350,column:32},end:{line:352,column:9}},line:350},34:{name:"(anonymous_34)",decl:{start:{line:354,column:15},end:{line:354,column:16}},loc:{start:{line:354,column:27},end:{line:360,column:5}},line:354},35:{name:"(anonymous_35)",decl:{start:{line:361,column:17},end:{line:361,column:18}},loc:{start:{line:361,column:29},end:{line:381,column:5}},line:361},36:{name:"(anonymous_36)",decl:{start:{line:366,column:25},end:{line:366,column:26}},loc:{start:{line:366,column:42},end:{line:370,column:7}},line:366},37:{name:"(anonymous_37)",decl:{start:{line:371,column:65},end:{line:371,column:66}},loc:{start:{line:371,column:71},end:{line:380,column:7}},line:371},38:{name:"(anonymous_38)",decl:{start:{line:382,column:18},end:{line:382,column:19}},loc:{start:{line:382,column:38},end:{line:413,column:5}},line:382},39:{name:"(anonymous_39)",decl:{start:{line:396,column:23},end:{line:396,column:24}},loc:{start:{line:396,column:33},end:{line:412,column:7}},line:396},40:{name:"(anonymous_40)",decl:{start:{line:414,column:14},end:{line:414,column:15}},loc:{start:{line:414,column:35},end:{line:445,column:5}},line:414},41:{name:"(anonymous_41)",decl:{start:{line:446,column:16},end:{line:446,column:17}},loc:{start:{line:446,column:28},end:{line:527,column:5}},line:446},42:{name:"(anonymous_42)",decl:{start:{line:462,column:19},end:{line:462,column:20}},loc:{start:{line:462,column:29},end:{line:462,column:44}},line:462},43:{name:"(anonymous_43)",decl:{start:{line:466,column:22},end:{line:466,column:23}},loc:{start:{line:466,column:34},end:{line:503,column:7}},line:466},44:{name:"(anonymous_44)",decl:{start:{line:475,column:21},end:{line:475,column:22}},loc:{start:{line:475,column:30},end:{line:490,column:9}},line:475},45:{name:"(anonymous_45)",decl:{start:{line:528,column:14},end:{line:528,column:15}},loc:{start:{line:528,column:26},end:{line:544,column:5}},line:528}},branchMap:{0:{loc:{start:{line:40,column:29},end:{line:40,column:50}},type:"binary-expr",locations:[{start:{line:40,column:29},end:{line:40,column:36}},{start:{line:40,column:40},end:{line:40,column:50}}],line:40},1:{loc:{start:{line:175,column:4},end:{line:177,column:5}},type:"if",locations:[{start:{line:175,column:4},end:{line:177,column:5}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:175},2:{loc:{start:{line:180,column:4},end:{line:182,column:5}},type:"if",locations:[{start:{line:180,column:4},end:{line:182,column:5}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:180},3:{loc:{start:{line:191,column:10},end:{line:197,column:11}},type:"if",locations:[{start:{line:191,column:10},end:{line:197,column:11}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:191},4:{loc:{start:{line:200,column:10},end:{line:206,column:11}},type:"if",locations:[{start:{line:200,column:10},end:{line:206,column:11}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:200},5:{loc:{start:{line:220,column:10},end:{line:225,column:11}},type:"if",locations:[{start:{line:220,column:10},end:{line:225,column:11}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:220},6:{loc:{start:{line:231,column:8},end:{line:241,column:9}},type:"if",locations:[{start:{line:231,column:8},end:{line:241,column:9}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:231},7:{loc:{start:{line:232,column:10},end:{line:235,column:44}},type:"binary-expr",locations:[{start:{line:232,column:10},end:{line:232,column:45}},{start:{line:233,column:10},end:{line:233,column:49}},{start:{line:234,column:10},end:{line:234,column:49}},{start:{line:235,column:10},end:{line:235,column:44}}],line:232},8:{loc:{start:{line:264,column:6},end:{line:266,column:7}},type:"if",locations:[{start:{line:264,column:6},end:{line:266,column:7}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:264},9:{loc:{start:{line:267,column:6},end:{line:269,column:7}},type:"if",locations:[{start:{line:267,column:6},end:{line:269,column:7}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:267},10:{loc:{start:{line:282,column:8},end:{line:288,column:9}},type:"if",locations:[{start:{line:282,column:8},end:{line:288,column:9}},{start:{line:285,column:15},end:{line:288,column:9}}],line:282},11:{loc:{start:{line:297,column:6},end:{line:300,column:7}},type:"if",locations:[{start:{line:297,column:6},end:{line:300,column:7}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:297},12:{loc:{start:{line:303,column:6},end:{line:308,column:7}},type:"if",locations:[{start:{line:303,column:6},end:{line:308,column:7}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:303},13:{loc:{start:{line:303,column:10},end:{line:303,column:50}},type:"binary-expr",locations:[{start:{line:303,column:10},end:{line:303,column:29}},{start:{line:303,column:33},end:{line:303,column:50}}],line:303},14:{loc:{start:{line:309,column:6},end:{line:314,column:7}},type:"if",locations:[{start:{line:309,column:6},end:{line:314,column:7}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:309},15:{loc:{start:{line:315,column:6},end:{line:320,column:7}},type:"if",locations:[{start:{line:315,column:6},end:{line:320,column:7}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:315},16:{loc:{start:{line:322,column:6},end:{line:331,column:7}},type:"if",locations:[{start:{line:322,column:6},end:{line:331,column:7}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:322},17:{loc:{start:{line:383,column:6},end:{line:388,column:7}},type:"if",locations:[{start:{line:383,column:6},end:{line:388,column:7}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:383},18:{loc:{start:{line:384,column:8},end:{line:385,column:44}},type:"binary-expr",locations:[{start:{line:384,column:8},end:{line:384,column:44}},{start:{line:385,column:8},end:{line:385,column:44}}],line:384},19:{loc:{start:{line:392,column:6},end:{line:395,column:7}},type:"if",locations:[{start:{line:392,column:6},end:{line:395,column:7}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:392},20:{loc:{start:{line:392,column:10},end:{line:392,column:73}},type:"binary-expr",locations:[{start:{line:392,column:10},end:{line:392,column:41}},{start:{line:392,column:45},end:{line:392,column:73}}],line:392},21:{loc:{start:{line:397,column:8},end:{line:397,column:35}},type:"if",locations:[{start:{line:397,column:8},end:{line:397,column:35}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:397},22:{loc:{start:{line:401,column:8},end:{line:411,column:9}},type:"if",locations:[{start:{line:401,column:8},end:{line:411,column:9}},{start:{line:405,column:15},end:{line:411,column:9}}],line:401},23:{loc:{start:{line:406,column:10},end:{line:410,column:11}},type:"if",locations:[{start:{line:406,column:10},end:{line:410,column:11}},{start:{line:408,column:17},end:{line:410,column:11}}],line:406},24:{loc:{start:{line:406,column:14},end:{line:406,column:52}},type:"binary-expr",locations:[{start:{line:406,column:14},end:{line:406,column:23}},{start:{line:406,column:27},end:{line:406,column:52}}],line:406},25:{loc:{start:{line:415,column:6},end:{line:420,column:7}},type:"if",locations:[{start:{line:415,column:6},end:{line:420,column:7}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:415},26:{loc:{start:{line:425,column:6},end:{line:444,column:7}},type:"if",locations:[{start:{line:425,column:6},end:{line:444,column:7}},{start:{line:442,column:13},end:{line:444,column:7}}],line:425},27:{loc:{start:{line:438,column:8},end:{line:441,column:9}},type:"if",locations:[{start:{line:438,column:8},end:{line:441,column:9}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:438},28:{loc:{start:{line:455,column:6},end:{line:457,column:7}},type:"if",locations:[{start:{line:455,column:6},end:{line:457,column:7}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:455},29:{loc:{start:{line:468,column:8},end:{line:472,column:9}},type:"if",locations:[{start:{line:468,column:8},end:{line:472,column:9}},{start:{line:470,column:15},end:{line:472,column:9}}],line:468},30:{loc:{start:{line:468,column:12},end:{line:468,column:40}},type:"binary-expr",locations:[{start:{line:468,column:12},end:{line:468,column:25}},{start:{line:468,column:29},end:{line:468,column:40}}],line:468},31:{loc:{start:{line:476,column:10},end:{line:476,column:56}},type:"if",locations:[{start:{line:476,column:10},end:{line:476,column:56}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:476},32:{loc:{start:{line:476,column:14},end:{line:476,column:48}},type:"binary-expr",locations:[{start:{line:476,column:14},end:{line:476,column:28}},{start:{line:476,column:32},end:{line:476,column:48}}],line:476},33:{loc:{start:{line:478,column:10},end:{line:482,column:11}},type:"if",locations:[{start:{line:478,column:10},end:{line:482,column:11}},{start:{line:480,column:17},end:{line:482,column:11}}],line:478},34:{loc:{start:{line:483,column:10},end:{line:488,column:11}},type:"if",locations:[{start:{line:483,column:10},end:{line:488,column:11}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:483},35:{loc:{start:{line:484,column:12},end:{line:485,column:65}},type:"binary-expr",locations:[{start:{line:484,column:12},end:{line:484,column:27}},{start:{line:485,column:12},end:{line:485,column:65}}],line:484},36:{loc:{start:{line:494,column:8},end:{line:502,column:9}},type:"if",locations:[{start:{line:494,column:8},end:{line:502,column:9}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:494},37:{loc:{start:{line:494,column:12},end:{line:494,column:39}},type:"binary-expr",locations:[{start:{line:494,column:12},end:{line:494,column:28}},{start:{line:494,column:32},end:{line:494,column:39}}],line:494},38:{loc:{start:{line:496,column:10},end:{line:500,column:11}},type:"if",locations:[{start:{line:496,column:10},end:{line:500,column:11}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:496},39:{loc:{start:{line:507,column:6},end:{line:510,column:7}},type:"if",locations:[{start:{line:507,column:6},end:{line:510,column:7}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:507},40:{loc:{start:{line:532,column:6},end:{line:540,column:7}},type:"if",locations:[{start:{line:532,column:6},end:{line:540,column:7}},{start:{line:534,column:13},end:{line:540,column:7}}],line:532},41:{loc:{start:{line:534,column:13},end:{line:540,column:7}},type:"if",locations:[{start:{line:534,column:13},end:{line:540,column:7}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:534}},s:{0:0,1:0,2:0,3:0,4:0,5:0,6:0,7:0,8:0,9:0,10:0,11:0,12:0,13:0,14:0,15:0,16:0,17:0,18:0,19:0,20:0,21:0,22:0,23:0,24:0,25:0,26:0,27:0,28:0,29:0,30:0,31:0,32:0,33:0,34:0,35:0,36:0,37:0,38:0,39:0,40:0,41:0,42:0,43:0,44:0,45:0,46:0,47:0,48:0,49:0,50:0,51:0,52:0,53:0,54:0,55:0,56:0,57:0,58:0,59:0,60:0,61:0,62:0,63:0,64:0,65:0,66:0,67:0,68:0,69:0,70:0,71:0,72:0,73:0,74:0,75:0,76:0,77:0,78:0,79:0,80:0,81:0,82:0,83:0,84:0,85:0,86:0,87:0,88:0,89:0,90:0,91:0,92:0,93:0,94:0,95:0,96:0,97:0,98:0,99:0,100:0,101:0,102:0,103:0,104:0,105:0,106:0,107:0,108:0,109:0,110:0,111:0,112:0,113:0,114:0,115:0,116:0,117:0,118:0,119:0,120:0,121:0,122:0,123:0,124:0,125:0,126:0,127:0,128:0,129:0,130:0,131:0,132:0,133:0,134:0,135:0,136:0,137:0,138:0,139:0,140:0,141:0,142:0,143:0,144:0,145:0,146:0,147:0,148:0,149:0,150:0,151:0,152:0,153:0,154:0,155:0,156:0,157:0,158:0,159:0,160:0,161:0,162:0,163:0,164:0,165:0,166:0,167:0,168:0,169:0,170:0,171:0,172:0,173:0,174:0,175:0,176:0,177:0,178:0,179:0,180:0,181:0,182:0,183:0,184:0,185:0,186:0,187:0,188:0,189:0,190:0,191:0,192: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},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,0],8:[0,0],9:[0,0],10:[0,0],11:[0,0],12:[0,0],13:[0,0],14:[0,0],15:[0,0],16:[0,0],17:[0,0],18:[0,0],19:[0,0],20:[0,0],21:[0,0],22:[0,0],23:[0,0],24:[0,0],25:[0,0],26:[0,0],27:[0,0],28:[0,0],29:[0,0],30:[0,0],31:[0,0],32:[0,0],33:[0,0],34:[0,0],35:[0,0],36:[0,0],37:[0,0],38:[0,0],39:[0,0],40:[0,0],41:[0,0]},inputSourceMap:{version:3,sources:["DataExtractor.vue"],names:[],mappings:";AAkSA;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;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;;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;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;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;;AAEA;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;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA",file:"DataExtractor.vue",sourceRoot:"src/tools/DataExtractor",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--\x3e\n\n<template>\n <div>\n <top-bar :menus="menus" :title="title" />\n <v-container>\n <v-row>\n <v-col> Oldest found log data: </v-col>\n <v-col>\n {{ oldestLogDate | dateTime(utcOrLocal) }}\n </v-col>\n </v-row>\n <v-row>\n <v-col>\n <v-text-field\n v-model="startDate"\n label="Start Date"\n type="date"\n :min="oldestLogDateStr"\n :max="todaysDate"\n :rules="[rules.required]"\n data-test="start-date"\n />\n <v-text-field\n v-model="endDate"\n label="End Date"\n type="date"\n :min="oldestLogDateStr"\n :max="todaysDate"\n :rules="[rules.required]"\n data-test="end-date"\n />\n </v-col>\n <v-col>\n <v-text-field\n v-model="startTime"\n label="Start Time"\n type="time"\n step="1"\n :rules="[rules.required]"\n data-test="start-time"\n >\n </v-text-field>\n <v-text-field\n v-model="endTime"\n label="End Time"\n type="time"\n step="1"\n :rules="[rules.required]"\n data-test="end-time"\n >\n </v-text-field>\n </v-col>\n </v-row>\n <v-row no-gutters>\n <v-col>\n <v-radio-group v-model="cmdOrTlm" row hide-details class="mt-0">\n <v-radio label="Command" value="cmd" data-test="cmd-radio" />\n <v-radio label="Telemetry" value="tlm" data-test="tlm-radio" />\n </v-radio-group>\n </v-col>\n <v-col>\n <v-radio-group v-model="utcOrLocal" row hide-details class="mt-0">\n <v-radio label="LST" value="loc" data-test="lst-radio" />\n <v-radio label="UTC" value="utc" data-test="utc-radio" />\n </v-radio-group>\n </v-col>\n </v-row>\n <v-row no-gutters>\n <v-col>\n <v-radio-group v-model="reduced" row hide-details>\n <span class="mr-5">Data Reduction:</span>\n <v-radio label="None" value="DECOM" data-test="not-reduced" />\n <v-radio\n label="Minute"\n value="REDUCED_MINUTE"\n data-test="min-reduced"\n />\n <v-radio\n label="Hour"\n value="REDUCED_HOUR"\n data-test="hour-reduced"\n />\n <v-radio label="Day" value="REDUCED_DAY" data-test="day-reduced" />\n </v-radio-group>\n </v-col>\n </v-row>\n <v-row>\n <v-col>\n <target-packet-item-chooser\n @click="addItem($event)"\n button-text="Add Item"\n :mode="cmdOrTlm"\n :reduced="reduced"\n choose-item\n allow-all\n />\n </v-col>\n </v-row>\n <v-row no-gutters>\n <v-toolbar>\n <v-progress-circular :value="progress" />\n &nbsp; Received: {{ totalBytesReceived }} bytes\n <v-spacer />\n <v-toolbar-title> Items </v-toolbar-title>\n <v-spacer />\n <v-btn\n class="primary mr-4"\n @click="processItems"\n :disabled="items.length < 1"\n >{{ processButtonText }}</v-btn\n >\n <v-tooltip bottom>\n <template v-slot:activator="{ on, attrs }">\n <v-btn\n icon\n @click="editAll = true"\n v-bind="attrs"\n v-on="on"\n :disabled="items.length < 1"\n data-test="editAll"\n >\n <v-icon> mdi-pencil </v-icon>\n </v-btn>\n </template>\n <span>Edit All Items</span>\n </v-tooltip>\n <v-tooltip bottom>\n <template v-slot:activator="{ on, attrs }">\n <v-btn\n icon\n @click="deleteAll"\n v-bind="attrs"\n v-on="on"\n :disabled="items.length < 1"\n data-test="delete-all"\n >\n <v-icon>mdi-delete</v-icon>\n </v-btn>\n </template>\n <span>Delete All Items</span>\n </v-tooltip>\n </v-toolbar>\n </v-row>\n <v-row no-gutters>\n <v-list data-test="item-list" width="100%">\n <div v-for="(item, i) in items" :key="i">\n <v-list-item>\n <v-list-item-icon>\n <v-tooltip bottom>\n <template v-slot:activator="{ on, attrs }">\n <v-icon\n @click.stop="item.edit = true"\n v-bind="attrs"\n v-on="on"\n >\n mdi-pencil\n </v-icon>\n </template>\n <span>Edit Item</span>\n </v-tooltip>\n <v-dialog\n v-model="item.edit"\n @keydown.esc="item.edit = false"\n max-width="600"\n >\n <v-card>\n <v-system-bar>\n <v-spacer />\n <span> DataExtractor: Edit Item Mode </span>\n <v-spacer />\n </v-system-bar>\n <v-card-title>{{ getItemLabel(item) }}</v-card-title>\n <v-card-text>\n <v-col>\n <v-select\n hide-details\n :items="valueTypes"\n label="Value Type"\n outlined\n v-model="item.valueType"\n />\n </v-col>\n \x3c!-- v-col v-if="uniqueOnly">\n <v-select\n :items="uniqueIgnoreOptions"\n label="Add to Unique Ignore List?:"\n outlined\n v-model="item.uniqueIgnoreAdd"\n />\n </v-col --\x3e\n </v-card-text>\n <v-card-actions>\n <v-spacer />\n <v-btn color="primary" @click="item.edit = false">\n Close\n </v-btn>\n </v-card-actions>\n </v-card>\n </v-dialog>\n </v-list-item-icon>\n <v-list-item-content>\n <v-list-item-title>{{ getItemLabel(item) }}</v-list-item-title>\n </v-list-item-content>\n <v-list-item-icon>\n <v-tooltip bottom>\n <template v-slot:activator="{ on, attrs }">\n <v-icon @click="deleteItem(item)" v-bind="attrs" v-on="on">\n mdi-delete\n </v-icon>\n </template>\n <span>Delete Item</span>\n </v-tooltip>\n </v-list-item-icon>\n </v-list-item>\n <v-divider />\n </div>\n </v-list>\n </v-row>\n </v-container>\n <v-dialog v-model="editAll" @keydown.esc="cancelEditAll" max-width="600">\n <v-card>\n <v-system-bar>\n <v-spacer />\n <span> DataExtractor: Edit All Items</span>\n <v-spacer />\n </v-system-bar>\n <v-card-text class="mt-2">\n This will change all items to the following data type!\n <v-col>\n <v-select\n hide-details\n :items="valueTypes"\n label="Value Type"\n outlined\n v-model="allItemValueType"\n />\n </v-col>\n </v-card-text>\n <v-card-actions>\n <v-spacer />\n <v-btn outlined class="mx-2" @click="editAll = !editAll">\n Cancel\n </v-btn>\n <v-btn\n :disabled="!allItemValueType"\n color="primary"\n class="mx-2"\n @click="editAllValueTypes()"\n >\n Ok\n </v-btn>\n </v-card-actions>\n </v-card>\n </v-dialog>\n \x3c!-- Note we\'re using v-if here so it gets re-created each time and refreshes the list --\x3e\n <open-config-dialog\n v-if="openConfig"\n v-model="openConfig"\n :tool="toolName"\n @success="openConfiguration($event)"\n />\n \x3c!-- Note we\'re using v-if here so it gets re-created each time and refreshes the list --\x3e\n <save-config-dialog\n v-if="saveConfig"\n v-model="saveConfig"\n :tool="toolName"\n @success="saveConfiguration($event)"\n />\n </div>\n</template>\n\n<script>\nimport { OpenC3Api } from \'@openc3/tool-common/src/services/openc3-api\'\nimport OpenConfigDialog from \'@openc3/tool-common/src/components/OpenConfigDialog\'\nimport SaveConfigDialog from \'@openc3/tool-common/src/components/SaveConfigDialog\'\nimport TargetPacketItemChooser from \'@openc3/tool-common/src/components/TargetPacketItemChooser\'\nimport Cable from \'@openc3/tool-common/src/services/cable.js\'\nimport { format, getTime } from \'date-fns\'\nimport TopBar from \'@openc3/tool-common/src/components/TopBar\'\nimport TimeFilters from \'@/tools/DataExtractor/Filters/timeFilters.js\'\n\nexport default {\n components: {\n OpenConfigDialog,\n SaveConfigDialog,\n TargetPacketItemChooser,\n TopBar,\n },\n mixins: [TimeFilters],\n data() {\n return {\n api: null,\n title: \'Data Extractor\',\n toolName: \'data-exporter\',\n openConfig: false,\n saveConfig: false,\n progress: 0,\n bytesReceived: 0,\n totalBytesReceived: 0,\n processButtonText: \'Process\',\n oldestLogDate: new Date(),\n todaysDate: format(new Date(), \'yyyy-MM-dd\'),\n startDate: format(new Date(), \'yyyy-MM-dd\'),\n startTime: format(new Date(), \'HH:mm:ss\'),\n endTime: format(new Date(), \'HH:mm:ss\'),\n endDate: format(new Date(), \'yyyy-MM-dd\'),\n startDateTime: null,\n endDateTime: null,\n startDateTimeFilename: \'\',\n rules: {\n required: (value) => !!value || \'Required\',\n },\n cmdOrTlm: \'tlm\',\n utcOrLocal: \'loc\',\n reduced: \'DECOM\',\n items: [],\n rawData: [],\n columnMap: {},\n delimiter: \',\',\n columnMode: \'normal\',\n fileCount: 0,\n matlabHeader: false,\n skipIgnored: true,\n fillDown: false,\n uniqueOnly: false,\n valueTypes: [\'CONVERTED\', \'RAW\', \'FORMATTED\', \'WITH_UNITS\'],\n editAll: false,\n allItemValueType: null,\n // uniqueIgnoreOptions: [\'NO\', \'YES\'],\n cable: new Cable(),\n subscription: null,\n menus: [\n {\n label: \'File\',\n radioGroup: \'Comma Delimited\', // Default radio selected\n items: [\n {\n label: \'Open Configuration\',\n icon: \'mdi-folder-open\',\n command: () => {\n this.openConfig = true\n },\n },\n {\n label: \'Save Configuration\',\n icon: \'mdi-content-save\',\n command: () => {\n this.saveConfig = true\n },\n },\n {\n divider: true,\n },\n {\n label: \'Comma Delimited\',\n radio: true,\n command: () => {\n this.delimiter = \',\'\n },\n },\n {\n label: \'Tab Delimited\',\n radio: true,\n command: () => {\n this.delimiter = \'\\t\'\n },\n },\n ],\n },\n {\n label: \'Mode\',\n radioGroup: \'Normal Columns\', // Default radio selected\n items: [\n // TODO: Currently unimplemented\n // {\n // label: \'Skip Ignored on Add\',\n // checkbox: true,\n // checked: true, // Skip Ignored is the default\n // command: () => {\n // this.skipIgnored = !this.skipIgnored\n // },\n // },\n // {\n // divider: true,\n // },\n {\n label: \'Fill Down\',\n checkbox: true,\n command: () => {\n this.fillDown = !this.fillDown\n },\n },\n {\n label: \'Matlab Header\',\n checkbox: true,\n command: () => {\n this.matlabHeader = !this.matlabHeader\n },\n },\n {\n label: \'Unique Only\',\n checkbox: true,\n command: () => {\n this.uniqueOnly = !this.uniqueOnly\n },\n },\n {\n divider: true,\n },\n {\n label: \'Normal Columns\',\n radio: true,\n command: () => {\n this.columnMode = \'normal\'\n },\n },\n {\n label: \'Full Column Names\',\n radio: true,\n command: () => {\n this.columnMode = \'full\'\n },\n },\n ],\n },\n ],\n }\n },\n computed: {\n oldestLogDateStr: function () {\n // Set the start date / time to the earliest data found\n return format(this.oldestLogDate, \'yyyy-MM-dd\')\n },\n },\n created: function () {\n this.api = new OpenC3Api()\n this.api\n .get_oldest_logfile({ params: { scope: localStorage.scope } })\n .then((response) => {\n // Server returns time as UTC so create date with \'Z\'\n this.oldestLogDate = new Date(response + \'Z\')\n })\n },\n mounted: function () {\n const previousConfig = localStorage[\'lastconfig__data_exporter\']\n if (previousConfig) {\n this.openConfiguration(previousConfig)\n }\n },\n destroyed: function () {\n if (this.subscription) {\n this.subscription.unsubscribe()\n }\n this.cable.disconnect()\n },\n methods: {\n openConfiguration: function (name) {\n localStorage[\'lastconfig__data_exporter\'] = name\n this.api\n .load_config(this.toolName, name)\n .then((response) => {\n if (response) {\n this.items = JSON.parse(response)\n this.$notify.normal({\n title: \'Loading configuartion\',\n body: name,\n })\n }\n })\n .catch((error) => {\n if (error) {\n this.$notify.serious({\n title: `Failed to open configuration ${name}`,\n body: error,\n })\n localStorage[\'lastconfig__data_exporter\'] = null\n }\n })\n },\n saveConfiguration: function (name) {\n localStorage[\'lastconfig__data_exporter\'] = name\n this.api\n .save_config(this.toolName, name, JSON.stringify(this.items))\n .then((response) => {\n this.$notify.normal({\n title: \'Saved configuration\',\n body: name,\n })\n })\n .catch((error) => {\n if (error) {\n this.$notify.serious({\n title: `Failed to save configuration: ${name}`,\n body: error,\n })\n }\n })\n },\n addItem: function (item) {\n // Traditional for loop so we can return if we find a match\n for (const listItem of this.items) {\n if (\n listItem.itemName === item.itemName &&\n listItem.packetName === item.packetName &&\n listItem.targetName === item.targetName &&\n listItem.valueType === \'CONVERTED\'\n ) {\n this.$notify.caution({\n body: \'This item has already been added!\',\n })\n return\n }\n }\n item.cmdOrTlm = this.cmdOrTlm.toUpperCase()\n item.edit = false\n item.valueType = \'CONVERTED\'\n // item.uniqueIgnoreAdd = \'NO\'\n this.items.push(item)\n },\n deleteItem: function (item) {\n var index = this.items.indexOf(item)\n this.items.splice(index, 1)\n },\n deleteAll: function () {\n this.items = []\n },\n editAllValueTypes: function () {\n this.editAll = false\n for (let item of this.items) {\n item.valueType = this.allItemValueType\n }\n },\n getItemLabel: function (item) {\n let label = [`${item.targetName} - ${item.packetName} - ${item.itemName}`]\n if (item.valueType !== \'CONVERTED\') {\n label.push(`+ ( ${item.valueType} )`)\n }\n if (item.reduced !== \'DECOM\') {\n label.push(`[ ${item.reduced} ]`)\n }\n return label.join(\' \')\n },\n setTimestamps: function () {\n this.startDateTimeFilename = this.startDate + \'_\' + this.startTime\n // Replace the colons and dashes with underscores in the filename\n this.startDateTimeFilename = this.startDateTimeFilename.replace(\n /(:|-)\\s*/g,\n \'_\'\n )\n let startTemp\n let endTemp\n try {\n if (this.utcOrLocal === \'utc\') {\n startTemp = new Date(this.startDate + \' \' + this.startTime + \'Z\')\n endTemp = new Date(this.endDate + \' \' + this.endTime + \'Z\')\n } else {\n startTemp = new Date(this.startDate + \' \' + this.startTime)\n endTemp = new Date(this.endDate + \' \' + this.endTime)\n }\n } catch (e) {\n return\n }\n this.startDateTime = startTemp.getTime() * 1_000_000\n this.endDateTime = endTemp.getTime() * 1_000_000\n },\n processItems: function () {\n // Check for a process in progress\n if (this.processButtonText === \'Cancel\') {\n this.finished()\n return\n }\n // Check for an empty time period\n this.setTimestamps()\n if (!this.startDateTime || !this.endDateTime) {\n this.$notify.caution({\n body: \'Invalid date/time selected!\',\n })\n return\n }\n if (this.startDateTime === this.endDateTime) {\n this.$notify.caution({\n body: \'Start date/time is equal to end date/time!\',\n })\n return\n }\n if (this.endDateTime - this.startDateTime < 0) {\n this.$notify.caution({\n body: \'Start date/time is greater then end date/time!\',\n })\n return\n }\n // Check for a future End Time\n if (new Date(this.endDateTime / 1_000_000) > Date.now()) {\n this.$notify.caution({\n title: \'Note\',\n body: `End date/time is greater than current date/time. Data will\n continue to stream in real-time until\n ${new Date(\n this.endDateTime / 1_000_000\n ).toISOString()} is reached.`,\n })\n }\n\n this.progress = 0\n this.processButtonText = \'Cancel\'\n this.cable\n .createSubscription(\'StreamingChannel\', localStorage.scope, {\n received: (data) => this.received(data),\n connected: () => this.onConnected(),\n disconnected: () => {\n this.$notify.caution({\n body: \'OpenC3 backend connection disconnected.\',\n })\n },\n rejected: () => {\n this.$notify.caution({\n body: \'OpenC3 backend connection rejected.\',\n })\n },\n })\n .then((subscription) => {\n this.subscription = subscription\n })\n },\n resetVars: function () {\n this.foundKeys = []\n this.columnHeaders = []\n this.columnMap = {}\n this.rawData = []\n this.bytesReceived = 0\n },\n onConnected: function () {\n this.fileCount = 0\n this.totalBytesReceived = 0\n this.resetVars()\n var items = []\n this.items.forEach((item, index) => {\n items.push(\n `${item.cmdOrTlm}__${item.targetName}__${item.packetName}__${item.itemName}__${item.valueType}`\n )\n })\n OpenC3Auth.updateToken(OpenC3Auth.defaultMinValidity).then(() => {\n this.subscription.perform(\'add\', {\n scope: localStorage.scope,\n mode: this.reduced,\n token: localStorage.openc3Token,\n items: items,\n start_time: this.startDateTime,\n end_time: this.endDateTime,\n })\n })\n },\n buildHeaders: function (itemKeys) {\n if (\n this.foundKeys.includes(itemKeys[0]) &&\n this.foundKeys.includes(itemKeys[1])\n ) {\n return\n }\n this.foundKeys = this.foundKeys.concat(itemKeys)\n\n // Normal column mode has the target and packet listed for each item\n if (this.columnHeaders.length === 0 && this.columnMode === \'normal\') {\n this.columnHeaders.push(\'TARGET\')\n this.columnHeaders.push(\'PACKET\')\n }\n itemKeys.forEach((item) => {\n if (item === \'time\') return\n this.columnMap[item] = Object.keys(this.columnMap).length\n const [cmdTlm, targetName, packetName, itemName, valueType] =\n item.split(\'__\')\n if (this.columnMode === \'full\') {\n this.columnHeaders.push(\n targetName + \' \' + packetName + \' \' + itemName\n )\n } else {\n if (valueType && valueType !== \'CONVERTED\') {\n this.columnHeaders.push(itemName + \' (\' + valueType + \')\')\n } else {\n this.columnHeaders.push(itemName)\n }\n }\n })\n },\n received: function (json_data) {\n if (json_data.error) {\n this.$notify.serious({\n body: json_data.error,\n })\n return\n }\n this.bytesReceived += json_data.length\n this.totalBytesReceived += json_data.length\n const data = JSON.parse(json_data)\n // Initially we just build up the list of data\n if (data.length > 0) {\n // Get all the items present in the data to pass to buildHeaders\n let keys = new Set()\n for (var item of data) {\n Object.keys(item).forEach(keys.add, keys)\n }\n this.buildHeaders([...keys])\n this.rawData = this.rawData.concat(data)\n this.progress = Math.ceil(\n (100 * (data[0][\'time\'] - this.startDateTime)) /\n (this.endDateTime - this.startDateTime)\n )\n\n if (this.bytesReceived > 200000000) {\n this.bytesReceived = 0\n this.createFile()\n }\n } else {\n this.finished()\n }\n },\n createFile: function () {\n let rawData = this.rawData\n let foundKeys = this.foundKeys\n let columnHeaders = this.columnHeaders\n let columnMap = this.columnMap\n let outputFile = []\n this.resetVars()\n\n let headers = \'\'\n if (this.matlabHeader) {\n headers += \'% \'\n }\n headers += columnHeaders.join(this.delimiter)\n outputFile.push(headers)\n\n // Sort everything by time so we can output in order\n rawData.sort((a, b) => a.time - b.time)\n var currentValues = []\n var row = []\n var previousRow = null\n rawData.forEach((packet) => {\n var changed = false\n if (this.fillDown && previousRow) {\n row = [...previousRow] // Copy the previous\n } else {\n row = []\n }\n // This pulls out the attributes we requested\n const keys = Object.keys(packet)\n keys.forEach((key) => {\n if (key === \'time\' || key === \'packet\') return // Skip time and packet fields\n // Get the value and put it into the correct column\n if (typeof packet[key] === \'object\') {\n row[columnMap[key]] = \'"\' + packet[key][\'raw\'] + \'"\'\n } else {\n row[columnMap[key]] = packet[key]\n }\n if (\n this.uniqueOnly &&\n currentValues[columnMap[key]] !== row[columnMap[key]]\n ) {\n changed = true\n }\n currentValues[columnMap[key]] = row[columnMap[key]]\n })\n // Copy row before pushing on target / packet names\n previousRow = [...row]\n\n if (!this.uniqueOnly || changed) {\n // Normal column mode means each row has target / packet name\n if (this.columnMode === \'normal\') {\n var [, tgt, pkt] = keys[0].split(\'__\')\n row.unshift(pkt)\n row.unshift(tgt)\n }\n outputFile.push(row.join(this.delimiter))\n }\n })\n\n let downloadFileExtension = \'.csv\'\n let type = \'text/csv\'\n if (this.delimiter === \'\\t\') {\n downloadFileExtension = \'.txt\'\n type = \'text/tab-separated-values\'\n }\n const blob = new Blob([outputFile.join(\'\\n\')], {\n type: type,\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(\n \'download\',\n this.startDateTimeFilename +\n \'.\' +\n this.fileCount +\n downloadFileExtension\n )\n link.click()\n\n this.fileCount += 1\n },\n finished: function () {\n this.progress = 95 // Indicate we\'re almost done\n this.subscription.unsubscribe()\n\n if (this.rawData.length !== 0) {\n this.createFile()\n } else if (this.fileCount === 0) {\n let start = new Date(this.startDateTime / 1_000_000).toISOString()\n let end = new Date(this.endDateTime / 1_000_000).toISOString()\n this.$notify.caution({\n body: `No data found for the items in the requested time range of ${start} to ${end}`,\n })\n }\n\n this.progress = 100\n this.processButtonText = \'Process\'\n },\n },\n}\n<\/script>\n\n<style lang="scss" scoped>\n// Disable transition animations to allow bar to grow faster\n.v-progress-linear__determinate {\n transition: none !important;\n}\n</style>\n']},_coverageSchema:"1a1c01bbd47fc00a2c39e90264f33305004495a9",hash:"8a3bf3e4d2e88215e5e0aa85a3b87bc26006012a"},o=t[l]||(t[l]={});o[e]&&o[e].hash===n||(o[e]=i);var a=o[e];return ee=function(){return a},a}ee();var ne={components:{OpenConfigDialog:I,SaveConfigDialog:L,TargetPacketItemChooser:U,TopBar:J},mixins:[Q],data:function(){var e=this;return ee().f[0]++,ee().s[0]++,{api:null,title:"Data Extractor",toolName:"data-exporter",openConfig:!1,saveConfig:!1,progress:0,bytesReceived:0,totalBytesReceived:0,processButtonText:"Process",oldestLogDate:new Date,todaysDate:(0,B.Z)(new Date,"yyyy-MM-dd"),startDate:(0,B.Z)(new Date,"yyyy-MM-dd"),startTime:(0,B.Z)(new Date,"HH:mm:ss"),endTime:(0,B.Z)(new Date,"HH:mm:ss"),endDate:(0,B.Z)(new Date,"yyyy-MM-dd"),startDateTime:null,endDateTime:null,startDateTimeFilename:"",rules:{required:function(e){return ee().f[1]++,ee().s[1]++,ee().b[0][0]++,!!e||(ee().b[0][1]++,"Required")}},cmdOrTlm:"tlm",utcOrLocal:"loc",reduced:"DECOM",items:[],rawData:[],columnMap:{},delimiter:",",columnMode:"normal",fileCount:0,matlabHeader:!1,skipIgnored:!0,fillDown:!1,uniqueOnly:!1,valueTypes:["CONVERTED","RAW","FORMATTED","WITH_UNITS"],editAll:!1,allItemValueType:null,cable:new q,subscription:null,menus:[{label:"File",radioGroup:"Comma Delimited",items:[{label:"Open Configuration",icon:"mdi-folder-open",command:function(){ee().f[2]++,ee().s[2]++,e.openConfig=!0}},{label:"Save Configuration",icon:"mdi-content-save",command:function(){ee().f[3]++,ee().s[3]++,e.saveConfig=!0}},{divider:!0},{label:"Comma Delimited",radio:!0,command:function(){ee().f[4]++,ee().s[4]++,e.delimiter=","}},{label:"Tab Delimited",radio:!0,command:function(){ee().f[5]++,ee().s[5]++,e.delimiter="\t"}}]},{label:"Mode",radioGroup:"Normal Columns",items:[{label:"Fill Down",checkbox:!0,command:function(){ee().f[6]++,ee().s[6]++,e.fillDown=!e.fillDown}},{label:"Matlab Header",checkbox:!0,command:function(){ee().f[7]++,ee().s[7]++,e.matlabHeader=!e.matlabHeader}},{label:"Unique Only",checkbox:!0,command:function(){ee().f[8]++,ee().s[8]++,e.uniqueOnly=!e.uniqueOnly}},{divider:!0},{label:"Normal Columns",radio:!0,command:function(){ee().f[9]++,ee().s[9]++,e.columnMode="normal"}},{label:"Full Column Names",radio:!0,command:function(){ee().f[10]++,ee().s[10]++,e.columnMode="full"}}]}]}},computed:{oldestLogDateStr:function(){return ee().f[11]++,ee().s[11]++,(0,B.Z)(this.oldestLogDate,"yyyy-MM-dd")}},created:function(){var e=this;ee().f[12]++,ee().s[12]++,this.api=new b,ee().s[13]++,this.api.get_oldest_logfile({params:{scope:localStorage.scope}}).then((function(n){ee().f[13]++,ee().s[14]++,e.oldestLogDate=new Date(n+"Z")}))},mounted:function(){ee().f[14]++;var e=(ee().s[15]++,localStorage["lastconfig__data_exporter"]);ee().s[16]++,e?(ee().b[1][0]++,ee().s[17]++,this.openConfiguration(e)):ee().b[1][1]++},destroyed:function(){ee().f[15]++,ee().s[18]++,this.subscription?(ee().b[2][0]++,ee().s[19]++,this.subscription.unsubscribe()):ee().b[2][1]++,ee().s[20]++,this.cable.disconnect()},methods:{openConfiguration:function(e){var n=this;ee().f[16]++,ee().s[21]++,localStorage["lastconfig__data_exporter"]=e,ee().s[22]++,this.api.load_config(this.toolName,e).then((function(t){ee().f[17]++,ee().s[23]++,t?(ee().b[3][0]++,ee().s[24]++,n.items=JSON.parse(t),ee().s[25]++,n.$notify.normal({title:"Loading configuartion",body:e})):ee().b[3][1]++})).catch((function(t){ee().f[18]++,ee().s[26]++,t?(ee().b[4][0]++,ee().s[27]++,n.$notify.serious({title:"Failed to open configuration ".concat(e),body:t}),ee().s[28]++,localStorage["lastconfig__data_exporter"]=null):ee().b[4][1]++}))},saveConfiguration:function(e){var n=this;ee().f[19]++,ee().s[29]++,localStorage["lastconfig__data_exporter"]=e,ee().s[30]++,this.api.save_config(this.toolName,e,JSON.stringify(this.items)).then((function(t){ee().f[20]++,ee().s[31]++,n.$notify.normal({title:"Saved configuration",body:e})})).catch((function(t){ee().f[21]++,ee().s[32]++,t?(ee().b[5][0]++,ee().s[33]++,n.$notify.serious({title:"Failed to save configuration: ".concat(e),body:t})):ee().b[5][1]++}))},addItem:function(e){ee().f[22]++,ee().s[34]++;var n,t=(0,r.Z)(this.items);try{for(t.s();!(n=t.n()).done;){var l=n.value;if(ee().s[35]++,ee().b[7][0]++,l.itemName===e.itemName&&(ee().b[7][1]++,l.packetName===e.packetName)&&(ee().b[7][2]++,l.targetName===e.targetName)&&(ee().b[7][3]++,"CONVERTED"===l.valueType))return ee().b[6][0]++,ee().s[36]++,this.$notify.caution({body:"This item has already been added!"}),void ee().s[37]++;ee().b[6][1]++}}catch(i){t.e(i)}finally{t.f()}ee().s[38]++,e.cmdOrTlm=this.cmdOrTlm.toUpperCase(),ee().s[39]++,e.edit=!1,ee().s[40]++,e.valueType="CONVERTED",ee().s[41]++,this.items.push(e)},deleteItem:function(e){ee().f[23]++;var n=(ee().s[42]++,this.items.indexOf(e));ee().s[43]++,this.items.splice(n,1)},deleteAll:function(){ee().f[24]++,ee().s[44]++,this.items=[]},editAllValueTypes:function(){ee().f[25]++,ee().s[45]++,this.editAll=!1,ee().s[46]++;var e,n=(0,r.Z)(this.items);try{for(n.s();!(e=n.n()).done;){var t=e.value;ee().s[47]++,t.valueType=this.allItemValueType}}catch(l){n.e(l)}finally{n.f()}},getItemLabel:function(e){ee().f[26]++;var n=(ee().s[48]++,["".concat(e.targetName," - ").concat(e.packetName," - ").concat(e.itemName)]);return ee().s[49]++,"CONVERTED"!==e.valueType?(ee().b[8][0]++,ee().s[50]++,n.push("+ ( ".concat(e.valueType," )"))):ee().b[8][1]++,ee().s[51]++,"DECOM"!==e.reduced?(ee().b[9][0]++,ee().s[52]++,n.push("[ ".concat(e.reduced," ]"))):ee().b[9][1]++,ee().s[53]++,n.join(" ")},setTimestamps:function(){var e,n;ee().f[27]++,ee().s[54]++,this.startDateTimeFilename=this.startDate+"_"+this.startTime,ee().s[55]++,this.startDateTimeFilename=this.startDateTimeFilename.replace(/(:|-)\s*/g,"_"),ee().s[56]++;try{ee().s[57]++,"utc"===this.utcOrLocal?(ee().b[10][0]++,ee().s[58]++,e=new Date(this.startDate+" "+this.startTime+"Z"),ee().s[59]++,n=new Date(this.endDate+" "+this.endTime+"Z")):(ee().b[10][1]++,ee().s[60]++,e=new Date(this.startDate+" "+this.startTime),ee().s[61]++,n=new Date(this.endDate+" "+this.endTime))}catch(t){return void ee().s[62]++}ee().s[63]++,this.startDateTime=1e6*e.getTime(),ee().s[64]++,this.endDateTime=1e6*n.getTime()},processItems:function(){var e=this;return ee().f[28]++,ee().s[65]++,"Cancel"===this.processButtonText?(ee().b[11][0]++,ee().s[66]++,this.finished(),void ee().s[67]++):(ee().b[11][1]++,ee().s[68]++,this.setTimestamps(),ee().s[69]++,ee().b[13][0]++,this.startDateTime&&(ee().b[13][1]++,this.endDateTime)?(ee().b[12][1]++,ee().s[72]++,this.startDateTime===this.endDateTime?(ee().b[14][0]++,ee().s[73]++,this.$notify.caution({body:"Start date/time is equal to end date/time!"}),void ee().s[74]++):(ee().b[14][1]++,ee().s[75]++,this.endDateTime-this.startDateTime<0?(ee().b[15][0]++,ee().s[76]++,this.$notify.caution({body:"Start date/time is greater then end date/time!"}),void ee().s[77]++):(ee().b[15][1]++,ee().s[78]++,new Date(this.endDateTime/1e6)>Date.now()?(ee().b[16][0]++,ee().s[79]++,this.$notify.caution({title:"Note",body:"End date/time is greater than current date/time. Data will\n continue to stream in real-time until\n ".concat(new Date(this.endDateTime/1e6).toISOString()," is reached.")})):ee().b[16][1]++,ee().s[80]++,this.progress=0,ee().s[81]++,this.processButtonText="Cancel",ee().s[82]++,void this.cable.createSubscription("StreamingChannel",localStorage.scope,{received:function(n){return ee().f[29]++,ee().s[83]++,e.received(n)},connected:function(){return ee().f[30]++,ee().s[84]++,e.onConnected()},disconnected:function(){ee().f[31]++,ee().s[85]++,e.$notify.caution({body:"OpenC3 backend connection disconnected."})},rejected:function(){ee().f[32]++,ee().s[86]++,e.$notify.caution({body:"OpenC3 backend connection rejected."})}}).then((function(n){ee().f[33]++,ee().s[87]++,e.subscription=n}))))):(ee().b[12][0]++,ee().s[70]++,this.$notify.caution({body:"Invalid date/time selected!"}),void ee().s[71]++))},resetVars:function(){ee().f[34]++,ee().s[88]++,this.foundKeys=[],ee().s[89]++,this.columnHeaders=[],ee().s[90]++,this.columnMap={},ee().s[91]++,this.rawData=[],ee().s[92]++,this.bytesReceived=0},onConnected:function(){var e=this;ee().f[35]++,ee().s[93]++,this.fileCount=0,ee().s[94]++,this.totalBytesReceived=0,ee().s[95]++,this.resetVars();var n=(ee().s[96]++,[]);ee().s[97]++,this.items.forEach((function(e,t){ee().f[36]++,ee().s[98]++,n.push("".concat(e.cmdOrTlm,"__").concat(e.targetName,"__").concat(e.packetName,"__").concat(e.itemName,"__").concat(e.valueType))})),ee().s[99]++,OpenC3Auth.updateToken(OpenC3Auth.defaultMinValidity).then((function(){ee().f[37]++,ee().s[100]++,e.subscription.perform("add",{scope:localStorage.scope,mode:e.reduced,token:localStorage.openc3Token,items:n,start_time:e.startDateTime,end_time:e.endDateTime})}))},buildHeaders:function(e){var n=this;if(ee().f[38]++,ee().s[101]++,ee().b[18][0]++,this.foundKeys.includes(e[0])&&(ee().b[18][1]++,this.foundKeys.includes(e[1])))return ee().b[17][0]++,void ee().s[102]++;ee().b[17][1]++,ee().s[103]++,this.foundKeys=this.foundKeys.concat(e),ee().s[104]++,ee().b[20][0]++,0===this.columnHeaders.length&&(ee().b[20][1]++,"normal"===this.columnMode)?(ee().b[19][0]++,ee().s[105]++,this.columnHeaders.push("TARGET"),ee().s[106]++,this.columnHeaders.push("PACKET")):ee().b[19][1]++,ee().s[107]++,e.forEach((function(e){if(ee().f[39]++,ee().s[108]++,"time"===e)return ee().b[21][0]++,void ee().s[109]++;ee().b[21][1]++,ee().s[110]++,n.columnMap[e]=Object.keys(n.columnMap).length;var t=(ee().s[111]++,e.split("__")),l=(0,s.Z)(t,5),i=(l[0],l[1]),o=l[2],a=l[3],c=l[4];ee().s[112]++,"full"===n.columnMode?(ee().b[22][0]++,ee().s[113]++,n.columnHeaders.push(i+" "+o+" "+a)):(ee().b[22][1]++,ee().s[114]++,ee().b[24][0]++,c&&(ee().b[24][1]++,"CONVERTED"!==c)?(ee().b[23][0]++,ee().s[115]++,n.columnHeaders.push(a+" ("+c+")")):(ee().b[23][1]++,ee().s[116]++,n.columnHeaders.push(a)))}))},received:function(e){if(ee().f[40]++,ee().s[117]++,e.error)return ee().b[25][0]++,ee().s[118]++,this.$notify.serious({body:e.error}),void ee().s[119]++;ee().b[25][1]++,ee().s[120]++,this.bytesReceived+=e.length,ee().s[121]++,this.totalBytesReceived+=e.length;var n=(ee().s[122]++,JSON.parse(e));if(ee().s[123]++,n.length>0){ee().b[26][0]++;var t=(ee().s[124]++,new Set);ee().s[125]++;var l,i=(0,r.Z)(n);try{for(i.s();!(l=i.n()).done;){var o=l.value;ee().s[126]++,Object.keys(o).forEach(t.add,t)}}catch(a){i.e(a)}finally{i.f()}ee().s[127]++,this.buildHeaders((0,c.Z)(t)),ee().s[128]++,this.rawData=this.rawData.concat(n),ee().s[129]++,this.progress=Math.ceil(100*(n[0]["time"]-this.startDateTime)/(this.endDateTime-this.startDateTime)),ee().s[130]++,this.bytesReceived>2e8?(ee().b[27][0]++,ee().s[131]++,this.bytesReceived=0,ee().s[132]++,this.createFile()):ee().b[27][1]++}else ee().b[26][1]++,ee().s[133]++,this.finished()},createFile:function(){var e=this;ee().f[41]++;var n=(ee().s[134]++,this.rawData),t=(ee().s[135]++,this.foundKeys,ee().s[136]++,this.columnHeaders),l=(ee().s[137]++,this.columnMap),i=(ee().s[138]++,[]);ee().s[139]++,this.resetVars();var o=(ee().s[140]++,"");ee().s[141]++,this.matlabHeader?(ee().b[28][0]++,ee().s[142]++,o+="% "):ee().b[28][1]++,ee().s[143]++,o+=t.join(this.delimiter),ee().s[144]++,i.push(o),ee().s[145]++,n.sort((function(e,n){return ee().f[42]++,ee().s[146]++,e.time-n.time}));var r=(ee().s[147]++,[]),u=(ee().s[148]++,[]),m=(ee().s[149]++,null);ee().s[150]++,n.forEach((function(n){ee().f[43]++;var t=(ee().s[151]++,!1);ee().s[152]++,ee().b[30][0]++,e.fillDown&&(ee().b[30][1]++,m)?(ee().b[29][0]++,ee().s[153]++,u=(0,c.Z)(m)):(ee().b[29][1]++,ee().s[154]++,u=[]);var o=(ee().s[155]++,Object.keys(n));if(ee().s[156]++,o.forEach((function(i){if(ee().f[44]++,ee().s[157]++,ee().b[32][0]++,"time"===i||(ee().b[32][1]++,"packet"===i))return ee().b[31][0]++,void ee().s[158]++;ee().b[31][1]++,ee().s[159]++,"object"===(0,a.Z)(n[i])?(ee().b[33][0]++,ee().s[160]++,u[l[i]]='"'+n[i]["raw"]+'"'):(ee().b[33][1]++,ee().s[161]++,u[l[i]]=n[i]),ee().s[162]++,ee().b[35][0]++,e.uniqueOnly&&(ee().b[35][1]++,r[l[i]]!==u[l[i]])?(ee().b[34][0]++,ee().s[163]++,t=!0):ee().b[34][1]++,ee().s[164]++,r[l[i]]=u[l[i]]})),ee().s[165]++,m=(0,c.Z)(u),ee().s[166]++,ee().b[37][0]++,!e.uniqueOnly||(ee().b[37][1]++,t)){if(ee().b[36][0]++,ee().s[167]++,"normal"===e.columnMode){ee().b[38][0]++;var d=(ee().s[168]++,o[0].split("__")),A=(0,s.Z)(d,3),v=A[1],f=A[2];ee().s[169]++,u.unshift(f),ee().s[170]++,u.unshift(v)}else ee().b[38][1]++;ee().s[171]++,i.push(u.join(e.delimiter))}else ee().b[36][1]++}));var d=(ee().s[172]++,".csv"),A=(ee().s[173]++,"text/csv");ee().s[174]++,"\t"===this.delimiter?(ee().b[39][0]++,ee().s[175]++,d=".txt",ee().s[176]++,A="text/tab-separated-values"):ee().b[39][1]++;var v=(ee().s[177]++,new Blob([i.join("\n")],{type:A})),f=(ee().s[178]++,document.createElement("a"));ee().s[179]++,f.href=URL.createObjectURL(v),ee().s[180]++,f.setAttribute("download",this.startDateTimeFilename+"."+this.fileCount+d),ee().s[181]++,f.click(),ee().s[182]++,this.fileCount+=1},finished:function(){if(ee().f[45]++,ee().s[183]++,this.progress=95,ee().s[184]++,this.subscription.unsubscribe(),ee().s[185]++,0!==this.rawData.length)ee().b[40][0]++,ee().s[186]++,this.createFile();else if(ee().b[40][1]++,ee().s[187]++,0===this.fileCount){ee().b[41][0]++;var e=(ee().s[188]++,new Date(this.startDateTime/1e6).toISOString()),n=(ee().s[189]++,new Date(this.endDateTime/1e6).toISOString());ee().s[190]++,this.$notify.caution({body:"No data found for the items in the requested time range of ".concat(e," to ").concat(n)})}else ee().b[41][1]++;ee().s[191]++,this.progress=100,ee().s[192]++,this.processButtonText="Process"}}},te=ne,le=(t(2100),(0,w.Z)(te,i,o,!1,null,"570a1c5c",null)),ie=le.exports},295:function(e,n,t){"use strict";t.r(n);var l=t(9601),i=t.n(l),o=t(2609),a=t.n(o),c=a()(i());c.push([e.id,".v-list[data-v-11927f54] .v-label{margin-left:5px}.v-list-item__icon[data-v-11927f54]{margin-right:15px!important}.v-list-item__title[data-v-11927f54]{color:#fff}",""]),n["default"]=c},207:function(e,n,t){"use strict";t.r(n);var l=t(9601),i=t.n(l),o=t(2609),a=t.n(o),c=a()(i());c.push([e.id,".v-progress-linear__determinate[data-v-570a1c5c]{transition:none!important}",""]),n["default"]=c},6104:function(e,n,t){var l=t(295);l.__esModule&&(l=l.default),"string"===typeof l&&(l=[[e.id,l,""]]),l.locals&&(e.exports=l.locals);var i=t(3514).Z;i("3d68193a",l,!0,{sourceMap:!1,shadowMode:!1})},2100:function(e,n,t){var l=t(207);l.__esModule&&(l=l.default),"string"===typeof l&&(l=[[e.id,l,""]]),l.locals&&(e.exports=l.locals);var i=t(3514).Z;i("6edf9205",l,!0,{sourceMap:!1,shadowMode:!1})}}]);
2
+ //# sourceMappingURL=580.js.map