2021-04-21 20:16:17 -07:00
|
|
|
!function(t){var e={};function n(r){if(e[r])return e[r].exports;var i=e[r]={i:r,l:!1,exports:{}};return t[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{configurable:!1,enumerable:!0,get:r})},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="/",n(n.s=0)}({"+sje":function(t,e,n){var r=n("VU/8")(n("eOaq"),n("lafA"),!1,function(t){n("4UNm")},"data-v-3bdd24a5",null);t.exports=r.exports},0:function(t,e,n){n("GDnL"),n("hw3k"),n("aKHO"),n("9ozO"),n("1CH1"),n("f5J3"),n("yd7E"),n("m5pD"),n("JfWP"),n("Pq8s"),n("WM06"),n("t80F"),n("2WJo"),n("F7gb"),n("jbHB"),n("a5IG"),n("1dC+"),n("0hTo"),n("vvpX"),n("4Jtp"),t.exports=n("kxAE")},"0DKT":function(t,e){t.exports={render:function(){var t=this.$createElement;return(this._self._c||t)("select",{staticStyle:{width:"100%"}},[this._t("default")],2)},staticRenderFns:[]}},"0hTo":function(t,e){},1:function(t,e){},"1CH1":function(t,e){},"1dC+":function(t,e){},"20cu":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default={props:["clientsUrl","tokensUrl"],data:function(){return{tokens:[]}},ready:function(){this.prepareComponent()},mounted:function(){this.prepareComponent()},methods:{prepareComponent:function(){this.getTokens()},getTokens:function(){var t=this;this.$http.get(this.tokensUrl).then(function(e){t.tokens=e.data})},revoke:function(t){var e=this;this.$http.delete(this.tokensUrl+"/"+t.id).then(function(t){e.getTokens()})}}}},"2DgG":function(t,e,n){var r=n("50lf");"string"==typeof r&&(r=[[t.i,r,""]]),r.locals&&(t.exports=r.locals);n("rjj0")("176426fc",r,!0,{})},"2WJo":function(t,e){},"3IRH":function(t,e){t.exports=function(t){return t.webpackPolyfill||(t.deprecate=function(){},t.paths=[],t.children||(t.children=[]),Object.defineProperty(t,"loaded",{enumerable:!0,get:function(){return t.l}}),Object.defineProperty(t,"id",{enumerable:!0,get:function(){return t.i}}),t.webpackPolyfill=1),t}},"4Jtp":function(t,e){},"4UNm":function(t,e,n){var r=n("HB0T");"string"==typeof r&&(r=[[t.i,r,""]]),r.locals&&(t.exports=r.locals);n("rjj0")("5d321c9c",r,!0,{})},"50lf":function(t,e,n){(t.exports=n("FZ+f")(!1)).push([t.i,".action-link[data-v-7d8f4390]{cursor:pointer}.m-b-none[data-v-7d8f4390]{margin-bottom:0}",""])},"5F58":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),n("FHXl"),e.default={data:function(){return{files:[],displayImportModal:!1,activeFile:null,alert:{type:null,message:null,visible:!1},importErrors:null,progress:{currentClass:"progress-bar-warning",currentPercent:"0",statusText:"",visible:!1},customFields:[]}},mounted:function(){window.eventHub.$on("importErrors",this.updateImportErrors),this.fetchFiles(),this.fetchCustomFields();var t=this;$("#fileupload").fileupload({dataType:"json",done:function(e,n){t.progress.currentClass="progress-bar-success",t.progress.statusText="Success!",t.files=n.result.files.concat(t.files),console.log(n.result.header_row)},add:function(e,n){n.headers={"X-Requested-With":"XMLHttpRequest","X-CSRF-TOKEN":Laravel.csrfToken},n.process().done(function(){n.submit()}),t.progress.visible=!0},progress:function(e,n){var r=parseInt((n.loaded,n.total,10));t.progress.currentPercent=r,t.progress.statusText=r+"% Complete"},fail:function(e,n){t.progress.currentClass="progress-bar-danger",t.progress.statusText=n.jqXHR.responseJSON.messages}})},methods:{fetchFiles:function(){var t=this;this.$http.get(route("api.imports.index")).then(function(e){var n=e.data;return t.files=n},function(e){t.alert.type="danger",t.alert.visible=!0,t.alert.message="Something went wrong fetching files..."})},fetchCustomFields:function(){var t=this;this.$http.get(route("api.customfields.index")).then(function(e){var n=e.data;(n=n.rows).forEach(function(e){t.customFields.push({id:e.db_column_name,text:e.name})})})},deleteFile:function(t,e){var n=this;this.$http.delete(route("api.imports.destroy",t.id)).then(function(t){n.files.splice(e,1),n.al
|