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 : 3.145.55.25
(window.webpackJsonp=window.webpackJsonp||[]).push([[78,307],{1245: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),l=r(104),u=r(2),s=r.n(u),f=r(1377),h=r(1343),p=r(272),d=r(1335),y=r(1337),v=r(1157),m=r(1338),g=r(941),E=r(105),w=r(267),b=r(539),x=r(273);r(405);function L(){L=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",l=o.toStringTag||"@@toStringTag";function u(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{u({},"")}catch(t){u=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 S(n||[]);return a(i,"_invoke",{value:_(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 h="suspendedStart",p="suspendedYield",d="executing",y="completed",v={};function m(){}function g(){}function E(){}var w={};u(w,i,function(){return this});var b=Object.getPrototypeOf,x=b&&b(b(R([])));x&&x!==r&&n.call(x,i)&&(w=x);var O=E.prototype=m.prototype=Object.create(w);function j(t){["next","throw","return"].forEach(function(e){u(t,e,function(t){return this._invoke(e,t)})})}function k(t,e){function r(a,o,i,c){var l=f(t[a],t,o);if("throw"!==l.type){var u=l.arg,s=u.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){u.value=t,i(u)},function(t){return r("throw",t,i,c)})}c(l.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===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 l=T(c,n);if(l){if(l===v)continue;return l}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(a===h)throw a=y,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);a=d;var u=f(e,r,n);if("normal"===u.type){if(a=n.done?y:p,u.arg===v)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(a=y,n.method="throw",n.arg=u.arg)}}}function T(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,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 A(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 C(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function S(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(A,this),this.reset(!0)}function R(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=E,a(O,"constructor",{value:E,configurable:!0}),a(E,"constructor",{value:g,configurable:!0}),g.displayName=u(E,l,"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,E):(t.__proto__=E,u(t,l,"GeneratorFunction")),t.prototype=Object.create(O),t},e.awrap=function(t){return{__await:t}},j(k.prototype),u(k.prototype,c,function(){return this}),e.AsyncIterator=k,e.async=function(t,r,n,a,o){void 0===o&&(o=Promise);var i=new k(s(t,r,n,a),o);return e.isGeneratorFunction(r)?i:i.next().then(function(t){return t.done?t.value:i.next()})},j(O),u(O,l,"Generator"),u(O,i,function(){return this}),u(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=R,S.prototype={constructor:S,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(C),!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 l=n.call(i,"catchLoc"),u=n.call(i,"finallyLoc");if(l&&u){if(this.prev<i.catchLoc)return a(i.catchLoc,!0);if(this.prev<i.finallyLoc)return a(i.finallyLoc)}else if(l){if(this.prev<i.catchLoc)return a(i.catchLoc,!0)}else{if(!u)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),C(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;C(r)}return a}}throw new Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:R(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),v}},e}var O=function(t){function e(){var t,r;Object(a.a)(this,e);for(var o=arguments.length,l=new Array(o),u=0;u<o;u++)l[u]=arguments[u];return(r=Object(i.a)(this,(t=Object(c.a)(e)).call.apply(t,[this].concat(l)))).state={type:"",remarks:"",submit:!1,file:null,size:null,filenm:null,fileinfo:!1},r.fileInputRef=s.a.createRef(),r.handleChangeType=function(t,e){r.setState({type:e.value})},r.handleChangeRemarks=function(t,e){r.setState({remarks:e.value})},r.corrFileChange=function(t){if(void 0!==t.target.files[0]){t.target.files[0].size;var e=t.target.files[0].name.split(".").pop();if("pdf"==(e=e.toLowerCase())||"jpeg"==e||"jpg"==e)r.props.uploadCorr(t.target.files[0]),r.setState({file:t.target.files[0],size:Object(x.a)(t.target.files[0].size),filenm:t.target.files[0].name});else{r.props.showError({header:"Error",content:"pdf ,jpeg and jpg files are allowed!"})}}},r.handleSubmitDoc=Object(n.a)(L().mark(function t(){var e,n;return L().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(""!==r.state.type){t.next=4;break}return e={header:"Error",content:"Select Type"},r.props.showError(e),t.abrupt("return");case 4:if(""!==r.state.remarks){t.next=8;break}return n={header:"Error",content:"Enter Remarks"},r.props.showError(n),t.abrupt("return");case 8:return t.next=10,r.props.saveuplcorrdoc(r.state);case 10:case"end":return t.stop()}},t)})),r.handleDocUpload=Object(n.a)(L().mark(function t(){var e;return L().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(null!==r.state.file){t.next=4;break}return e={header:"Error",content:"Add File to upload"},r.props.showError(e),t.abrupt("return");case 4:return t.next=6,r.props.uploadDocData(r.state);case 6:case"end":return t.stop()}},t)})),r}return Object(l.a)(e,t),Object(o.a)(e,[{key:"render",value:function(){var t=this,e=this.state,r=e.type,n=e.remarks;return s.a.createElement(s.a.Fragment,null,s.a.createElement(f.a,{fluid:!0},s.a.createElement(f.a.Content,null,s.a.createElement(f.a.Header,{style:{display:"flex"}},s.a.createElement("h3",null,"Upload Correction Document"),s.a.createElement("div",{className:"ml-auto"},s.a.createElement(g.a,{to:"/viewcorrectondoc"},s.a.createElement(h.a,{basic:!0,color:"blue",content:"View",icon:"eye"})),s.a.createElement(g.a,{to:"/dashboard"},s.a.createElement(h.a,{basic:!0,color:"red",content:"Exit",icon:"home"})))),s.a.createElement(p.a,null),s.a.createElement(f.a.Description,{style:{overflowY:"auto"}},s.a.createElement(d.a,{style:{height:"350px"}},s.a.createElement(d.a.Field,{width:8},s.a.createElement("label",null,"Type"),s.a.createElement(y.a,{search:!0,selection:!0,id:"ftype",name:"ftype",options:[{key:1,value:"MM",text:"Marks Modification"},{key:2,value:"Withheld Result",text:"Withheld Result"},{key:3,value:"Exam Notifications",text:"Exam Notifications"},{key:4,value:"Time table",text:"Time table"},{key:5,value:"Results / RV / RT Notifications",text:"Results / RV / RT Notifications"},{key:6,value:"Letters",text:"Letters (from Logisys / Uniclare to University or From University to Logisys / Uniclare)"},{key:7,value:"Agreements / Work Orders",text:"Agreements / Work Orders"}],onChange:this.handleChangeType,value:r,placeholder:"Type"})),s.a.createElement(d.a.Field,{width:8},s.a.createElement("label",null,"Remarks"),s.a.createElement(v.a,{name:"remarks",onChange:this.handleChangeRemarks,value:n})),s.a.createElement(d.a.Field,null,s.a.createElement(h.a,{content:"Get No.",color:"blue",onClick:this.handleSubmitDoc}))),Object.keys(this.props.uploaddoccorr).length>0?s.a.createElement(m.a,{celled:!0,padded:!0},s.a.createElement(m.a.Header,null,s.a.createElement(m.a.Row,null,s.a.createElement(m.a.HeaderCell,{singleLine:!0,style:{textAlign:"center"}},"ID"),s.a.createElement(m.a.HeaderCell,{style:{textAlign:"center"}},"Type"),s.a.createElement(m.a.HeaderCell,{style:{textAlign:"center"}},"Remarks"),s.a.createElement(m.a.HeaderCell,{style:{textAlign:"center"}},"File Upload"),s.a.createElement(m.a.HeaderCell,{style:{width:"0px",textAlign:"center"}},"Action"))),s.a.createElement(m.a.Body,null,s.a.createElement(m.a.Row,null,s.a.createElement(m.a.Cell,{style:{textAlign:"center"}},this.props.uploaddoccorr.fid),s.a.createElement(m.a.Cell,{singleLine:!0},this.props.uploaddoccorr.ftype),s.a.createElement(m.a.Cell,null,this.props.uploaddoccorr.fremarks),s.a.createElement(m.a.Cell,null,s.a.createElement("input",{ref:this.fileInputRef,type:"file",hidden:!0,onChange:this.corrFileChange}),s.a.createElement(h.a,{primary:!0,onClick:function(){return t.fileInputRef.current.click()}},"Select Document")),s.a.createElement(m.a.Cell,null,s.a.createElement(h.a,{primary:!0,onClick:this.handleDocUpload},"Upload"))))):null))))}}]),e}(u.Component);e.default=Object(E.b)(function(t){return{uploaddoccorr:t.uploaddoccorr}},{showError:w.A,saveuplcorrdoc:b.a,uploadCorr:b.b,uploadDocData:b.c})(O)},272:function(t,e,r){"use strict";var n=r(270),a=r.n(n),o=r(268),i=r.n(o),c=r(2),l=r.n(c),u=r(349),s=r(613),f=r(611),h=r(269);function p(t){var e=t.children,r=t.className,n=t.clearing,o=t.content,c=t.fitted,d=t.hidden,y=t.horizontal,v=t.inverted,m=t.section,g=t.vertical,E=i()("ui",Object(u.a)(n,"clearing"),Object(u.a)(c,"fitted"),Object(u.a)(d,"hidden"),Object(u.a)(y,"horizontal"),Object(u.a)(v,"inverted"),Object(u.a)(m,"section"),Object(u.a)(g,"vertical"),"divider",r),w=Object(s.a)(p,t),b=Object(f.a)(p,t);return l.a.createElement(b,a()({},w,{className:E}),h.a.isNil(e)?o:e)}p.handledProps=["as","children","className","clearing","content","fitted","hidden","horizontal","inverted","section","vertical"],p.propTypes={},e.a=p},405:function(t,e,r){},539:function(t,e,r){"use strict";r.d(e,"a",function(){return c}),r.d(e,"b",function(){return l}),r.d(e,"c",function(){return u}),r.d(e,"d",function(){return s});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",l=o.asyncIterator||"@@asyncIterator",u=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 S(n||[]);return a(i,"_invoke",{value:_(t,r,c)}),i}function h(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=f;var p="suspendedStart",d="suspendedYield",y="executing",v="completed",m={};function g(){}function E(){}function w(){}var b={};s(b,c,function(){return this});var x=Object.getPrototypeOf,L=x&&x(x(R([])));L&&L!==r&&n.call(L,c)&&(b=L);var O=w.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 l=h(t[a],t,o);if("throw"!==l.type){var u=l.arg,s=u.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){u.value=t,i(u)},function(t){return r("throw",t,i,c)})}c(l.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=p;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 l=T(c,n);if(l){if(l===m)continue;return l}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(a===p)throw a=v,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);a=y;var u=h(e,r,n);if("normal"===u.type){if(a=n.done?v:d,u.arg===m)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(a=v,n.method="throw",n.arg=u.arg)}}}function T(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,T(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=h(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 A(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 C(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function S(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(A,this),this.reset(!0)}function R(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 E.prototype=w,a(O,"constructor",{value:w,configurable:!0}),a(w,"constructor",{value:E,configurable:!0}),E.displayName=s(w,u,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===E||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,w):(t.__proto__=w,s(t,u,"GeneratorFunction")),t.prototype=Object.create(O),t},e.awrap=function(t){return{__await:t}},j(k.prototype),s(k.prototype,l,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,u,"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=R,S.prototype={constructor:S,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(C),!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 l=n.call(i,"catchLoc"),u=n.call(i,"finallyLoc");if(l&&u){if(this.prev<i.catchLoc)return a(i.catchLoc,!0);if(this.prev<i.finallyLoc)return a(i.finallyLoc)}else if(l){if(this.prev<i.catchLoc)return a(i.catchLoc,!0)}else{if(!u)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),C(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;C(r)}return a}}throw new Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:R(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 c,l,u,s;return i().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return c=n(),r({type:"SET_LOADER"}),r({type:"DELETE_QPSTATS"}),r({type:"CLEAR_TEACHER_ID"}),e.next=6,a.a.get("/app.php",{params:{a:"saveuplcorrdoc",type:t.type,univcode:c.user.fcuruniv,remarks:t.remarks}});case 6:l=e.sent,r({type:"UNSET_LOADER"}),"object"!==typeof l.data?(u={header:"Error",content:"Something went wrong"},r(Object(o.A)(u))):-1===l.data.error_code?(s={header:"Error",content:l.data.data.msg},r(Object(o.A)(s))):r({type:"UPLOAD_CORR_DOC",payload:l.data});case 9:case"end":return e.stop()}},e)}));return function(t,r){return e.apply(this,arguments)}}()},l=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(t){return function(){var e=Object(n.a)(i().mark(function e(r,n){var c,l,u,s,f;return i().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return c=n(),r({type:"SET_LOADER"}),e.next=4,a.a.get("/app.php",{params:{a:"uploadcorrdoc",gfilename:c.upload.fqpfilenm,univcode:c.univ.funivcode,remarks:t.remarks,type:t.type,fid:c.uploaddoccorr.fid}});case 4:l=e.sent,r({type:"UNSET_LOADER"}),"object"!==typeof l.data?(u={header:"Error",content:"Something went wrong"},r(Object(o.A)(u))):0===l.data.error_code?(s={header:"Success",content:l.data.data.msg},r(Object(o.A)(s))):(f={header:"Error",content:l.data.data.msg},r(Object(o.A)(f)));case 7:case"end":return e.stop()}},e)}));return function(t,r){return e.apply(this,arguments)}}()},s=function(t){return function(){var e=Object(n.a)(i().mark(function e(r,n){var c,l,u,s;return i().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return c=n(),r({type:"SET_LOADER"}),r({type:"DELETE_QPSTATS"}),r({type:"CLEAR_TEACHER_ID"}),e.next=6,a.a.get("/app.php",{params:{a:"viewuplcorrdoc",type:t.viewType,univcode:c.user.fcuruniv}});case 6:l=e.sent,r({type:"UNSET_LOADER"}),"object"!==typeof l.data?(u={header:"Error",content:"Something went wrong"},r(Object(o.A)(u))):-1===l.data.error_code?(s={header:"Error",content:l.data.data.msg},r(Object(o.A)(s))):r({type:"VIEW_CORRECTION_DOC",payload:l.data});case 9:case"end":return e.stop()}},e)}));return function(t,r){return e.apply(this,arguments)}}()}}}]);
//# sourceMappingURL=78.1fe2e128.chunk.js.map
|