0xV3NOMx
Linux ip-172-26-7-228 5.4.0-1103-aws #111~18.04.1-Ubuntu SMP Tue May 23 20:04:10 UTC 2023 x86_64



Your IP : 18.118.252.215


Current Path : /var/www/egov/build/static/js/
Upload File :
Current File : /var/www/egov/build/static/js/237.1b790576.chunk.js

(window.webpackJsonp=window.webpackJsonp||[]).push([[237],{1254:function(t,e,r){"use strict";r.r(e);var n=r(68),a=r(100),o=r(101),i=r(103),c=r(102),u=r(104),l=r(2),s=r.n(l),f=r(941),p=r(1377),h=r(1343),d=r(272),y=r(1335),v=r(1337),m=r(1157),g=r(316),w=r(1374),E=r(726),b=r(420),x=r(105),L=r(267),O=r(273),j=r(287),k=r.n(j),_=r(275),S=r.n(_),T=r(526);function A(){A=function(){return e};var t,e={},r=Object.prototype,n=r.hasOwnProperty,a=Object.defineProperty||function(t,e,r){t[e]=r.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",c=o.asyncIterator||"@@asyncIterator",u=o.toStringTag||"@@toStringTag";function l(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(t){l=function(t,e,r){return t[e]=r}}function s(t,e,r,n){var o=e&&e.prototype instanceof m?e:m,i=Object.create(o.prototype),c=new C(n||[]);return a(i,"_invoke",{value:k(t,r,c)}),i}function f(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=s;var p="suspendedStart",h="suspendedYield",d="executing",y="completed",v={};function m(){}function g(){}function w(){}var E={};l(E,i,function(){return this});var b=Object.getPrototypeOf,x=b&&b(b(D([])));x&&x!==r&&n.call(x,i)&&(E=x);var L=w.prototype=m.prototype=Object.create(E);function O(t){["next","throw","return"].forEach(function(e){l(t,e,function(t){return this._invoke(e,t)})})}function j(t,e){function r(a,o,i,c){var u=f(t[a],t,o);if("throw"!==u.type){var l=u.arg,s=l.value;return s&&"object"==typeof s&&n.call(s,"__await")?e.resolve(s.__await).then(function(t){r("next",t,i,c)},function(t){r("throw",t,i,c)}):e.resolve(s).then(function(t){l.value=t,i(l)},function(t){return r("throw",t,i,c)})}c(u.arg)}var o;a(this,"_invoke",{value:function(t,n){function a(){return new e(function(e,a){r(t,n,e,a)})}return o=o?o.then(a,a):a()}})}function k(e,r,n){var a=p;return function(o,i){if(a===d)throw new Error("Generator is already running");if(a===y){if("throw"===o)throw i;return{value:t,done:!0}}for(n.method=o,n.arg=i;;){var c=n.delegate;if(c){var u=_(c,n);if(u){if(u===v)continue;return u}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(a===p)throw a=y,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);a=d;var l=f(e,r,n);if("normal"===l.type){if(a=n.done?y:h,l.arg===v)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(a=y,n.method="throw",n.arg=l.arg)}}}function _(e,r){var n=r.method,a=e.iterator[n];if(a===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,_(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),v;var o=f(a,e.iterator,r.arg);if("throw"===o.type)return r.method="throw",r.arg=o.arg,r.delegate=null,v;var i=o.arg;return i?i.done?(r[e.resultName]=i.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,v):i:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,v)}function S(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function T(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function C(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(S,this),this.reset(!0)}function D(e){if(e||""===e){var r=e[i];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var a=-1,o=function r(){for(;++a<e.length;)if(n.call(e,a))return r.value=e[a],r.done=!1,r;return r.value=t,r.done=!0,r};return o.next=o}}throw new TypeError(typeof e+" is not iterable")}return g.prototype=w,a(L,"constructor",{value:w,configurable:!0}),a(w,"constructor",{value:g,configurable:!0}),g.displayName=l(w,u,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===g||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,w):(t.__proto__=w,l(t,u,"GeneratorFunction")),t.prototype=Object.create(L),t},e.awrap=function(t){return{__await:t}},O(j.prototype),l(j.prototype,c,function(){return this}),e.AsyncIterator=j,e.async=function(t,r,n,a,o){void 0===o&&(o=Promise);var i=new j(s(t,r,n,a),o);return e.isGeneratorFunction(r)?i:i.next().then(function(t){return t.done?t.value:i.next()})},O(L),l(L,u,"Generator"),l(L,i,function(){return this}),l(L,"toString",function(){return"[object Generator]"}),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},e.values=D,C.prototype={constructor:C,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(T),!e)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function a(n,a){return c.type="throw",c.arg=e,r.next=n,a&&(r.method="next",r.arg=t),!!a}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],c=i.completion;if("root"===i.tryLoc)return a("end");if(i.tryLoc<=this.prev){var u=n.call(i,"catchLoc"),l=n.call(i,"finallyLoc");if(u&&l){if(this.prev<i.catchLoc)return a(i.catchLoc,!0);if(this.prev<i.finallyLoc)return a(i.finallyLoc)}else if(u){if(this.prev<i.catchLoc)return a(i.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return a(i.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var a=this.tryEntries[r];if(a.tryLoc<=this.prev&&n.call(a,"finallyLoc")&&this.prev<a.finallyLoc){var o=a;break}}o&&("break"===t||"continue"===t)&&o.tryLoc<=e&&e<=o.finallyLoc&&(o=null);var i=o?o.completion:{};return i.type=t,i.arg=e,o?(this.method="next",this.next=o.finallyLoc,v):this.complete(i)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),v},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),T(r),v}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var a=n.arg;T(r)}return a}}throw new Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:D(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),v}},e}var C=function(t){function e(){var t,r;Object(a.a)(this,e);for(var o=arguments.length,u=new Array(o),l=0;l<o;l++)u[l]=arguments[l];return(r=Object(i.a)(this,(t=Object(c.a)(e)).call.apply(t,[this].concat(u)))).state={date:k()().format("DD/MM/YYYY"),type:"",desc:"",title:"",file:null,size:null,filenm:null,fileinfo:!1},r.fileInputRef=s.a.createRef(),r.dateChange=function(){var t=Object(n.a)(A().mark(function t(e,n){return A().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,r.setState({date:e.target.value});case 2:case"end":return t.stop()}},t)}));return function(e,r){return t.apply(this,arguments)}}(),r.typeChange=function(){var t=Object(n.a)(A().mark(function t(e,n){return A().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,r.setState({type:n.value});case 2:case"end":return t.stop()}},t)}));return function(e,r){return t.apply(this,arguments)}}(),r.descChange=function(){var t=Object(n.a)(A().mark(function t(e,n){return A().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,r.setState({desc:n.value});case 2:case"end":return t.stop()}},t)}));return function(e,r){return t.apply(this,arguments)}}(),r.titleChange=function(){var t=Object(n.a)(A().mark(function t(e,n){return A().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,r.setState({title:n.value});case 2:case"end":return t.stop()}},t)}));return function(e,r){return t.apply(this,arguments)}}(),r.handleCancel=function(){r.setState({date:k()().format("DD/MM/YYYY"),type:"",desc:"",title:"",file:null,size:null,filenm:null,fileinfo:!1})},r.fileChange=function(t){if(void 0!=t.target.files[0]){t.target.files[0].size;var e=t.target.files[0].name.split(".").pop();if("zip"==(e=e.toLowerCase())||"rar"==e)r.props.backupFileUpload(t.target.files[0]),r.setState({file:t.target.files[0],size:Object(O.a)(t.target.files[0].size),filenm:t.target.files[0].name});else{r.props.showError({header:"Error",content:"Only rar and zip files are allowed!"})}}},r.renderHeader=function(){return s.a.createElement(p.a.Header,{style:{display:"flex"}},s.a.createElement("h4",null,"Upload Backups"),s.a.createElement("div",{className:"ml-auto"},s.a.createElement(h.a,{basic:!0,color:"blue",content:"Upload",icon:"cloud upload",onClick:r.upload}),s.a.createElement(h.a,{basic:!0,onClick:r.handleCancel,color:"black",icon:"ban",content:"Cancel"}),s.a.createElement(f.a,{to:"/dashboard"},s.a.createElement(h.a,{basic:!0,color:"red",content:"Exit",icon:"home"}))))},r.upload=Object(n.a)(A().mark(function t(){var e,n,a,o,i,c,u,l,s,f;return A().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(e=r.state,n=e.date,a=e.type,o=e.desc,i=e.title,e.file,""!==r.state.date){t.next=5;break}return c={header:"Error",content:"Enter Date"},r.props.showError(c),t.abrupt("return");case 5:if(""!==r.state.type){t.next=9;break}return u={header:"Error",content:"Select Type"},r.props.showError(u),t.abrupt("return");case 9:if(""!==r.state.desc){t.next=13;break}return l={header:"Error",content:"Enter Description"},r.props.showError(l),t.abrupt("return");case 13:if(""!==r.state.title){t.next=17;break}return s={header:"Error",content:"Enter Title"},r.props.showError(s),t.abrupt("return");case 17:if(null!==r.state.file){t.next=21;break}return f={header:"Error",content:"Add File to upload"},r.props.showError(f),t.abrupt("return");case 21:return t.next=23,r.props.uploadbackup(n,a,o,i);case 23:r.setState({date:k()().format("DD/MM/YYYY"),type:"",desc:"",file:null,size:null,filenm:null,fileinfo:!1});case 24:case"end":return t.stop()}},t)})),r}return Object(u.a)(e,t),Object(o.a)(e,[{key:"render",value:function(){var t=this,e=this.state,r=e.date,n=e.type,a=e.desc,o=e.title,i=(e.file,Object(O.i)());return s.a.createElement("div",null,s.a.createElement(p.a,{fluid:!0},s.a.createElement(p.a.Content,null,this.renderHeader(),s.a.createElement(d.a,null),s.a.createElement(p.a.Description,{style:{height:"".concat(i,"px"),overflowY:"auto"}},s.a.createElement(y.a,null,s.a.createElement(y.a.Group,null,s.a.createElement(y.a.Field,{width:8},s.a.createElement("label",null,"Backup Date"),s.a.createElement(S.a,{formatChars:{n:"[0-1]",m:"[0-9]",e:"[0-3]",d:"[0-9]",z:"[1-2]",y:"[0-9]"},type:"text",value:r,mask:"ed/nm/zyyy",placeholder:"Backup Date",name:"date",onChange:this.dateChange}))),s.a.createElement(y.a.Group,null,s.a.createElement(y.a.Field,{width:8},s.a.createElement("label",null,"Backup Type"),s.a.createElement(v.a,{placeholder:"Backup Type",search:!0,selection:!0,name:"type",value:n,options:[{value:"exam/empty",text:"Exam/Empty"},{value:"convocation",text:"Convocation"},{value:"tada",text:"Tada"},{value:"cvms",text:"CVMS"},{value:"other",text:"Other"}],onChange:this.typeChange}))),s.a.createElement(y.a.Group,null,s.a.createElement(y.a.Field,{width:8},s.a.createElement(y.a.Input,{placeholder:"Backup Title",name:"title",value:o,onChange:this.titleChange,label:"Backup Title"}))),s.a.createElement(y.a.Group,null,s.a.createElement(y.a.Field,{width:8},s.a.createElement(y.a.Input,{name:"Description",control:m.a,value:a,onChange:this.descChange,label:"Description",placeholder:"Description",rows:"4"}))),s.a.createElement(g.a,{placeholder:!0,style:{height:"".concat(.1*i,"px"),overflowY:"auto"}},s.a.createElement(w.a,{icon:!0},s.a.createElement(E.a,{name:"file excel outline"}),"Upload file here.",s.a.createElement("br",null)),s.a.createElement(y.a,{onSubmit:this.onFormSubmit},s.a.createElement("input",{ref:this.fileInputRef,type:"file",hidden:!0,onChange:this.fileChange}),s.a.createElement(h.a,{primary:!0,onClick:function(){return t.fileInputRef.current.click()}},"Add File")),s.a.createElement(b.a,{label:this.state.filenm,value:this.state.size})))))))}}]),e}(l.Component);e.default=Object(x.b)(function(t){return{}},{backupFileUpload:T.a,showError:L.A,uploadbackup:T.e})(C)},526:function(t,e,r){"use strict";r.d(e,"c",function(){return c}),r.d(e,"d",function(){return u}),r.d(e,"b",function(){return l}),r.d(e,"a",function(){return s}),r.d(e,"e",function(){return f});var n=r(68),a=r(271),o=r(267);function i(){i=function(){return e};var t,e={},r=Object.prototype,n=r.hasOwnProperty,a=Object.defineProperty||function(t,e,r){t[e]=r.value},o="function"==typeof Symbol?Symbol:{},c=o.iterator||"@@iterator",u=o.asyncIterator||"@@asyncIterator",l=o.toStringTag||"@@toStringTag";function s(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{s({},"")}catch(t){s=function(t,e,r){return t[e]=r}}function f(t,e,r,n){var o=e&&e.prototype instanceof g?e:g,i=Object.create(o.prototype),c=new C(n||[]);return a(i,"_invoke",{value:_(t,r,c)}),i}function p(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=f;var h="suspendedStart",d="suspendedYield",y="executing",v="completed",m={};function g(){}function w(){}function E(){}var b={};s(b,c,function(){return this});var x=Object.getPrototypeOf,L=x&&x(x(D([])));L&&L!==r&&n.call(L,c)&&(b=L);var O=E.prototype=g.prototype=Object.create(b);function j(t){["next","throw","return"].forEach(function(e){s(t,e,function(t){return this._invoke(e,t)})})}function k(t,e){function r(a,o,i,c){var u=p(t[a],t,o);if("throw"!==u.type){var l=u.arg,s=l.value;return s&&"object"==typeof s&&n.call(s,"__await")?e.resolve(s.__await).then(function(t){r("next",t,i,c)},function(t){r("throw",t,i,c)}):e.resolve(s).then(function(t){l.value=t,i(l)},function(t){return r("throw",t,i,c)})}c(u.arg)}var o;a(this,"_invoke",{value:function(t,n){function a(){return new e(function(e,a){r(t,n,e,a)})}return o=o?o.then(a,a):a()}})}function _(e,r,n){var a=h;return function(o,i){if(a===y)throw new Error("Generator is already running");if(a===v){if("throw"===o)throw i;return{value:t,done:!0}}for(n.method=o,n.arg=i;;){var c=n.delegate;if(c){var u=S(c,n);if(u){if(u===m)continue;return u}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(a===h)throw a=v,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);a=y;var l=p(e,r,n);if("normal"===l.type){if(a=n.done?v:d,l.arg===m)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(a=v,n.method="throw",n.arg=l.arg)}}}function S(e,r){var n=r.method,a=e.iterator[n];if(a===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,S(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),m;var o=p(a,e.iterator,r.arg);if("throw"===o.type)return r.method="throw",r.arg=o.arg,r.delegate=null,m;var i=o.arg;return i?i.done?(r[e.resultName]=i.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,m):i:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,m)}function T(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function A(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function C(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(T,this),this.reset(!0)}function D(e){if(e||""===e){var r=e[c];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var a=-1,o=function r(){for(;++a<e.length;)if(n.call(e,a))return r.value=e[a],r.done=!1,r;return r.value=t,r.done=!0,r};return o.next=o}}throw new TypeError(typeof e+" is not iterable")}return w.prototype=E,a(O,"constructor",{value:E,configurable:!0}),a(E,"constructor",{value:w,configurable:!0}),w.displayName=s(E,l,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===w||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,E):(t.__proto__=E,s(t,l,"GeneratorFunction")),t.prototype=Object.create(O),t},e.awrap=function(t){return{__await:t}},j(k.prototype),s(k.prototype,u,function(){return this}),e.AsyncIterator=k,e.async=function(t,r,n,a,o){void 0===o&&(o=Promise);var i=new k(f(t,r,n,a),o);return e.isGeneratorFunction(r)?i:i.next().then(function(t){return t.done?t.value:i.next()})},j(O),s(O,l,"Generator"),s(O,c,function(){return this}),s(O,"toString",function(){return"[object Generator]"}),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},e.values=D,C.prototype={constructor:C,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(A),!e)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function a(n,a){return c.type="throw",c.arg=e,r.next=n,a&&(r.method="next",r.arg=t),!!a}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],c=i.completion;if("root"===i.tryLoc)return a("end");if(i.tryLoc<=this.prev){var u=n.call(i,"catchLoc"),l=n.call(i,"finallyLoc");if(u&&l){if(this.prev<i.catchLoc)return a(i.catchLoc,!0);if(this.prev<i.finallyLoc)return a(i.finallyLoc)}else if(u){if(this.prev<i.catchLoc)return a(i.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return a(i.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var a=this.tryEntries[r];if(a.tryLoc<=this.prev&&n.call(a,"finallyLoc")&&this.prev<a.finallyLoc){var o=a;break}}o&&("break"===t||"continue"===t)&&o.tryLoc<=e&&e<=o.finallyLoc&&(o=null);var i=o?o.completion:{};return i.type=t,i.arg=e,o?(this.method="next",this.next=o.finallyLoc,m):this.complete(i)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),m},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),A(r),m}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var a=n.arg;A(r)}return a}}throw new Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:D(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),m}},e}var c=function(t){return function(){var e=Object(n.a)(i().mark(function e(r,n){var o,c;return i().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return n(),r({type:"SET_LOADER"}),(o=new FormData).set("file",t,t.name),e.next=6,a.a.post("upload_file.php",o,{headers:{"Content-type":"multipart/form-data"}});case 6:c=e.sent,r({type:"UNSET_LOADER"}),r({type:"SET_QPNAME",payload:c.data});case 9:case"end":return e.stop()}},e)}));return function(t,r){return e.apply(this,arguments)}}()},u=function(){return function(){var t=Object(n.a)(i().mark(function t(e,r){var n,c,u,l,s;return i().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return n=r(),e({type:"SET_LOADER"}),t.next=4,a.a.get("/app.php",{params:{a:"uploadScriptStats",gfilename:n.upload.fqpfilenm,univcode:n.univ.funivcode}});case 4:c=t.sent,e({type:"UNSET_LOADER"}),"object"!==typeof c.data?(u={header:"Error",content:"Something went wrong"},e(Object(o.A)(u))):0===c.data.error_code?(l={header:"Success",content:c.data.data.msg},e(Object(o.A)(l))):(s={header:"Error",content:c.data.data.msg},e(Object(o.A)(s)));case 7:case"end":return t.stop()}},t)}));return function(e,r){return t.apply(this,arguments)}}()},l=function(){return function(){var t=Object(n.a)(i().mark(function t(e,r){var n,c,u,l,s;return i().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return n=r(),e({type:"SET_LOADER"}),t.next=4,a.a.get("/app.php",{params:{a:"mastabuUpload",gfilename:n.upload.fqpfilenm,univcode:n.univ.funivcode}});case 4:c=t.sent,e({type:"UNSET_LOADER"}),"object"!==typeof c.data?(u={header:"Error",content:"Something went wrong"},e(Object(o.A)(u))):0===c.data.error_code?(l={header:"Success",content:c.data.data.msg},e(Object(o.A)(l))):(s={header:"Error",content:c.data.data.msg},e(Object(o.A)(s)));case 7:case"end":return t.stop()}},t)}));return function(e,r){return t.apply(this,arguments)}}()},s=function(t){return function(){var e=Object(n.a)(i().mark(function e(r,n){var o,c;return i().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return n(),r({type:"SET_LOADER"}),(o=new FormData).set("file",t,t.name),e.next=6,a.a.post("upload_file_backup.php",o,{headers:{"Content-type":"multipart/form-data"}});case 6:c=e.sent,r({type:"UNSET_LOADER"}),r({type:"SET_QPNAME",payload:c.data});case 9:case"end":return e.stop()}},e)}));return function(t,r){return e.apply(this,arguments)}}()},f=function(t,e,r,c){return function(){var u=Object(n.a)(i().mark(function n(u,l){var s,f,p,h,d;return i().wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return s=l(),u({type:"SET_LOADER"}),n.next=4,a.a.get("/app.php",{params:{a:"uploadbackup",date:t,type:e,title:c,desc:r,gfilename:s.upload.fqpfilenm,univcode:s.univ.funivcode,user:s.user.fmobileno+" - "+s.user.fuserid}});case 4:f=n.sent,u({type:"UNSET_LOADER"}),"object"!==typeof f.data?(p={header:"Error",content:"Something went wrong"},u(Object(o.A)(p))):0===f.data.error_code?(h={header:"Success",content:f.data.data.msg},u(Object(o.A)(h))):(d={header:"Error",content:f.data.data.msg},u(Object(o.A)(d)));case 7:case"end":return n.stop()}},n)}));return function(t,e){return u.apply(this,arguments)}}()}}}]);
//# sourceMappingURL=237.1b790576.chunk.js.map