(function(e){function t(t){for(var n,o,c=t[0],i=t[1],u=t[2],d=0,p=[];d ").concat(n[s][3])),console.log("Source: ".concat(r)),c=a[o]._id,!c){t.next=25;break}i=n[s][1],u=i.split("."),console.log(u),l=null;try{l=parseFloat(n[s][3])}catch(b){console.error(b)}return d={},1===u.length?d[u[0]]=l:2===u.length&&(d[u[0]]||(d[u[0]]={}),d[u[0]][u[1]]=l),t.next=20,oe.data.permeability.steady_state.update(c,d);case 20:p=t.sent,a[o]=p,e.$refs.steady_state_table.hotInstance.loadData(a),t.next=39;break;case 25:if(f=a[o],!(f.sample&&f.sample.length&&f.sample.diameter&&f.ncs&&f.atmospheric_pressure&&f.upstream_gauge_pressure_psi&&f.downstream_gauge_pressure&&f.orifice_constant)){t.next=39;break}return t.prev=27,m={sample:{_id:f.sample._id,length:parseFloat(f.sample.length),diameter:parseFloat(f.sample.diameter)},ncs:parseFloat(f.ncs),atmospheric_pressure:parseFloat(f.atmospheric_pressure),upstream_gauge_pressure_psi:parseFloat(f.upstream_gauge_pressure_psi),downstream_gauge_pressure:parseFloat(f.downstream_gauge_pressure),orifice_constant:parseFloat(f.orifice_constant)},t.next=31,oe.data.permeability.steady_state.create(m);case 31:h=t.sent,a[o]=h,e.$refs.steady_state_table.hotInstance.loadData(a),t.next=39;break;case 36:t.prev=36,t.t0=t["catch"](27),console.error(t.t0);case 39:s++,t.next=3;break;case 42:case"end":return t.stop()}}),t,null,[[27,36]])})));function n(e,a){return t.apply(this,arguments)}return n}(),columnSorting:!0,height:"20vw",colHeaders:["Sample Id","Length (cm)","Diameter (cm)","Area (cm²)","NCS","Pa (atm)","Upst. P (psi)","Upst. P (unity oil)","Upst. P (diff)","Upst. P (atm)","Dnst. P (unity oil)","Dnst. P (atm)","Orifice Constant","Flow Rate","Perm to Air"],columns:[{data:"sample._id"},{data:"sample.length"},{data:"sample.diameter"},{data:"sample.cross_sectional_area",readOnly:!0},{data:"ncs"},{data:"atmospheric_pressure"},{data:"upstream_gauge_pressure_psi"},{data:"upstream_gauge_pressure_inches_of_unity_oil"},{data:"upstream_gauge_pressure_diff"},{data:"upstream_gauge_pressure_atmg",readOnly:!0},{data:"downstream_gauge_pressure"},{data:"downstream_gauge_pressure_atmg",readOnly:!0},{data:"orifice_constant"},{data:"flow_rate",readOnly:!0},{data:"permeability_to_air",readOnly:!0}],data:a,licenseKey:"non-commercial-and-evaluation",contextMenu:{items:{row_above:{name:"Add 5 rows",callback:function(){this.alter("insert_row",0,5)}},remove_row:{name:"Delete record(s)",callback:function(){var t=Object(S["a"])(regeneratorRuntime.mark((function t(a,n){var r,s,o,c,i,u;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:r=0;case 1:if(!(r ").concat(n[s][3])),console.log("Source: ".concat(r)),c=a[o]._id,!c){t.next=19;break}i=n[s][1],u={},u[i]=n[s][3];try{u[i]=parseFloat(u[i])}catch(d){console.error(d)}return t.next=16,oe.data.permeability.steady_state.update(c,u);case 16:l=t.sent,a[o]=l,e.$refs.steady_state_table.hotInstance.loadData(a);case 19:s++,t.next=2;break;case 22:case"end":return t.stop()}}),t)})));function n(e,a){return t.apply(this,arguments)}return n}(),columnSorting:!0,height:"20vw",colHeaders:["Sample Id","Length (cm)","Diameter (cm)","Flow (stml/min)","Diff press. (mbar)","Back press. (mbar)","ΔP (mbar)","Kg (mD)","1/Pm","Kl (mD)","Pa (mbar)"],columns:[{data:"sample._id"},{data:"sample.length"},{data:"sample.diameter"},{data:"gas_flow"},{data:"diff_pressure"},{data:"back_pressure"},{data:"delta_p"},{data:"perm_kg",readOnly:!0},{data:"one_pm",readOnly:!0},{data:"perm_kl",readOnly:!0},{data:"atmospheric_pressure"}],data:a,licenseKey:"non-commercial-and-evaluation",contextMenu:{items:{row_above:{name:"Add 5 rows",callback:function(){this.alter("insert_row",10,5)}}}}};case 4:case"end":return t.stop()}}),t)})))()},data:function(){return{settings:null}},methods:{add_rows:function(){this.$refs.steady_state_table.hotInstance.alter("insert_row",10,5)}}},me=fe,he=Object(i["a"])(me,de,pe,!1,null,null,null),be=he.exports;l()(he,{VCol:q["a"],VContainer:G["a"],VRow:J["a"]}),n["a"].use(I["a"]);var _e=new I["a"]({mode:"history",base:"/",routes:[{path:"/",name:"home",component:X,beforeEnter:F},{path:"/perm_steady_state",name:"perm_steady_state",component:le,beforeEnter:F},{path:"/perm_non_steady_state",name:"perm_non_steady_state",component:be,beforeEnter:F}]}),ge=_e;n["a"].config.productionTip=!1,n["a"].use(L,{domain:"stratumreservoir.auth0.com",clientId:"zDXHzRGPQqgcT5RSvA3tkLAlzs8AerOr",audience:"https://apidev.stratumreservoir.com",onRedirectCallback:function(e){ge.push(e&&e.targetUrl?e.targetUrl:window.location.pathname)}}),new n["a"]({router:ge,vuetify:U,render:function(e){return e(O)}}).$mount("#app")}}); //# sourceMappingURL=app.586e1d6f.js.map