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.191.147.146
(window.webpackJsonp=window.webpackJsonp||[]).push([[65,307],{1288:function(t,e,r){"use strict";r.r(e);var n=r(68),o=r(100),a=r(101),i=r(103),c=r(102),u=r(104),l=r(2),s=r.n(l),h=r(941),f=r(105),p=r(1377),d=r(1343),y=r(272),v=r(1335),g=r(267),m=r(411);function w(){w=function(){return e};var t,e={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(t,e,r){t[e]=r.value},a="function"==typeof Symbol?Symbol:{},i=a.iterator||"@@iterator",c=a.asyncIterator||"@@asyncIterator",u=a.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 a=e&&e.prototype instanceof g?e:g,i=Object.create(a.prototype),c=new N(n||[]);return o(i,"_invoke",{value:S(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=s;var f="suspendedStart",p="suspendedYield",d="executing",y="completed",v={};function g(){}function m(){}function b(){}var E={};l(E,i,function(){return this});var O=Object.getPrototypeOf,L=O&&O(O(D([])));L&&L!==r&&n.call(L,i)&&(E=L);var j=b.prototype=g.prototype=Object.create(E);function x(t){["next","throw","return"].forEach(function(e){l(t,e,function(t){return this._invoke(e,t)})})}function _(t,e){function r(o,a,i,c){var u=h(t[o],t,a);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 a;o(this,"_invoke",{value:function(t,n){function o(){return new e(function(e,o){r(t,n,e,o)})}return a=a?a.then(o,o):o()}})}function S(e,r,n){var o=f;return function(a,i){if(o===d)throw new Error("Generator is already running");if(o===y){if("throw"===a)throw i;return{value:t,done:!0}}for(n.method=a,n.arg=i;;){var c=n.delegate;if(c){var u=A(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(o===f)throw o=y,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=d;var l=h(e,r,n);if("normal"===l.type){if(o=n.done?y:p,l.arg===v)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(o=y,n.method="throw",n.arg=l.arg)}}}function A(e,r){var n=r.method,o=e.iterator[n];if(o===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,A(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),v;var a=h(o,e.iterator,r.arg);if("throw"===a.type)return r.method="throw",r.arg=a.arg,r.delegate=null,v;var i=a.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 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 k(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function N(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(T,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 o=-1,a=function r(){for(;++o<e.length;)if(n.call(e,o))return r.value=e[o],r.done=!1,r;return r.value=t,r.done=!0,r};return a.next=a}}throw new TypeError(typeof e+" is not iterable")}return m.prototype=b,o(j,"constructor",{value:b,configurable:!0}),o(b,"constructor",{value:m,configurable:!0}),m.displayName=l(b,u,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===m||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,b):(t.__proto__=b,l(t,u,"GeneratorFunction")),t.prototype=Object.create(j),t},e.awrap=function(t){return{__await:t}},x(_.prototype),l(_.prototype,c,function(){return this}),e.AsyncIterator=_,e.async=function(t,r,n,o,a){void 0===a&&(a=Promise);var i=new _(s(t,r,n,o),a);return e.isGeneratorFunction(r)?i:i.next().then(function(t){return t.done?t.value:i.next()})},x(j),l(j,u,"Generator"),l(j,i,function(){return this}),l(j,"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,N.prototype={constructor:N,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(k),!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 o(n,o){return c.type="throw",c.arg=e,r.next=n,o&&(r.method="next",r.arg=t),!!o}for(var a=this.tryEntries.length-1;a>=0;--a){var i=this.tryEntries[a],c=i.completion;if("root"===i.tryLoc)return o("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 o(i.catchLoc,!0);if(this.prev<i.finallyLoc)return o(i.finallyLoc)}else if(u){if(this.prev<i.catchLoc)return o(i.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return o(i.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var a=o;break}}a&&("break"===t||"continue"===t)&&a.tryLoc<=e&&e<=a.finallyLoc&&(a=null);var i=a?a.completion:{};return i.type=t,i.arg=e,a?(this.method="next",this.next=a.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),k(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 o=n.arg;k(r)}return o}}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 b=function(t){function e(){var t,r;Object(o.a)(this,e);for(var a=arguments.length,u=new Array(a),l=0;l<a;l++)u[l]=arguments[l];return(r=Object(i.a)(this,(t=Object(c.a)(e)).call.apply(t,[this].concat(u)))).state={password:"",file:null},r.changeFile=function(t){r.setState({file:t.target.files[0]})},r.handleSubmit=function(){var t=Object(n.a)(w().mark(function t(e){var n;return w().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:e.preventDefault(),(n=new FormData).append("file",r.state.file),n.append("password",r.state.password),n.append("univcode",r.props.univcode),r.props.uploadDummy(n);case 6:case"end":return t.stop()}},t)}));return function(e){return t.apply(this,arguments)}}(),r}return Object(u.a)(e,t),Object(a.a)(e,[{key:"render",value:function(){var t=this;return s.a.createElement(p.a,{fluid:!0},s.a.createElement(p.a.Content,null,s.a.createElement(p.a.Header,{style:{display:"flex"}},s.a.createElement("h4",null,"Upload Dummy doc"),s.a.createElement("div",{className:"ml-auto"},s.a.createElement(d.a,{basic:!0,color:"green",icon:"save",onClick:this.handleSave,content:"Save"}),s.a.createElement(d.a,{basic:!0,color:"black",icon:"ban",content:"Clear"}),s.a.createElement(h.a,{to:"/dashboard"},s.a.createElement(d.a,{basic:!0,color:"red",content:"Exit",icon:"home"})))),s.a.createElement(y.a,null),s.a.createElement(p.a.Description,null,s.a.createElement(v.a,null,s.a.createElement(v.a.Group,null,s.a.createElement(v.a.Field,{width:8},s.a.createElement(v.a.Input,{placeholder:"Password",value:this.state.password,onChange:function(e,r){return t.setState({password:e.target.value})}})),s.a.createElement(v.a.Field,{width:8},s.a.createElement("input",{type:"file",onChange:function(e){return t.changeFile(e)}}))),s.a.createElement(d.a,{basic:!0,color:"blue",icon:"upload",onClick:this.handleSubmit,content:"Upload"})))))}}]),e}(l.Component);e.default=Object(f.b)(function(t){return{univcode:t.univ.funivcode}},{showError:g.A,uploadDummy:m.d})(b)},272:function(t,e,r){"use strict";var n=r(270),o=r.n(n),a=r(268),i=r.n(a),c=r(2),u=r.n(c),l=r(349),s=r(613),h=r(611),f=r(269);function p(t){var e=t.children,r=t.className,n=t.clearing,a=t.content,c=t.fitted,d=t.hidden,y=t.horizontal,v=t.inverted,g=t.section,m=t.vertical,w=i()("ui",Object(l.a)(n,"clearing"),Object(l.a)(c,"fitted"),Object(l.a)(d,"hidden"),Object(l.a)(y,"horizontal"),Object(l.a)(v,"inverted"),Object(l.a)(g,"section"),Object(l.a)(m,"vertical"),"divider",r),b=Object(s.a)(p,t),E=Object(h.a)(p,t);return u.a.createElement(E,o()({},b,{className:w}),f.a.isNil(e)?a:e)}p.handledProps=["as","children","className","clearing","content","fitted","hidden","horizontal","inverted","section","vertical"],p.propTypes={},e.a=p},302:function(t,e,r){},411:function(t,e,r){"use strict";r.d(e,"c",function(){return c}),r.d(e,"b",function(){return u}),r.d(e,"a",function(){return l}),r.d(e,"d",function(){return s});var n=r(68),o=r(271),a=r(267);r(302);function i(){i=function(){return e};var t,e={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(t,e,r){t[e]=r.value},a="function"==typeof Symbol?Symbol:{},c=a.iterator||"@@iterator",u=a.asyncIterator||"@@asyncIterator",l=a.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 h(t,e,r,n){var a=e&&e.prototype instanceof m?e:m,i=Object.create(a.prototype),c=new N(n||[]);return o(i,"_invoke",{value:S(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=h;var p="suspendedStart",d="suspendedYield",y="executing",v="completed",g={};function m(){}function w(){}function b(){}var E={};s(E,c,function(){return this});var O=Object.getPrototypeOf,L=O&&O(O(D([])));L&&L!==r&&n.call(L,c)&&(E=L);var j=b.prototype=m.prototype=Object.create(E);function x(t){["next","throw","return"].forEach(function(e){s(t,e,function(t){return this._invoke(e,t)})})}function _(t,e){function r(o,a,i,c){var u=f(t[o],t,a);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 a;o(this,"_invoke",{value:function(t,n){function o(){return new e(function(e,o){r(t,n,e,o)})}return a=a?a.then(o,o):o()}})}function S(e,r,n){var o=p;return function(a,i){if(o===y)throw new Error("Generator is already running");if(o===v){if("throw"===a)throw i;return{value:t,done:!0}}for(n.method=a,n.arg=i;;){var c=n.delegate;if(c){var u=A(c,n);if(u){if(u===g)continue;return u}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===p)throw o=v,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=y;var l=f(e,r,n);if("normal"===l.type){if(o=n.done?v:d,l.arg===g)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(o=v,n.method="throw",n.arg=l.arg)}}}function A(e,r){var n=r.method,o=e.iterator[n];if(o===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,A(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),g;var a=f(o,e.iterator,r.arg);if("throw"===a.type)return r.method="throw",r.arg=a.arg,r.delegate=null,g;var i=a.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,g):i:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,g)}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 k(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function N(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 o=-1,a=function r(){for(;++o<e.length;)if(n.call(e,o))return r.value=e[o],r.done=!1,r;return r.value=t,r.done=!0,r};return a.next=a}}throw new TypeError(typeof e+" is not iterable")}return w.prototype=b,o(j,"constructor",{value:b,configurable:!0}),o(b,"constructor",{value:w,configurable:!0}),w.displayName=s(b,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,b):(t.__proto__=b,s(t,l,"GeneratorFunction")),t.prototype=Object.create(j),t},e.awrap=function(t){return{__await:t}},x(_.prototype),s(_.prototype,u,function(){return this}),e.AsyncIterator=_,e.async=function(t,r,n,o,a){void 0===a&&(a=Promise);var i=new _(h(t,r,n,o),a);return e.isGeneratorFunction(r)?i:i.next().then(function(t){return t.done?t.value:i.next()})},x(j),s(j,l,"Generator"),s(j,c,function(){return this}),s(j,"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,N.prototype={constructor:N,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(k),!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 o(n,o){return c.type="throw",c.arg=e,r.next=n,o&&(r.method="next",r.arg=t),!!o}for(var a=this.tryEntries.length-1;a>=0;--a){var i=this.tryEntries[a],c=i.completion;if("root"===i.tryLoc)return o("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 o(i.catchLoc,!0);if(this.prev<i.finallyLoc)return o(i.finallyLoc)}else if(u){if(this.prev<i.catchLoc)return o(i.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return o(i.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var a=o;break}}a&&("break"===t||"continue"===t)&&a.tryLoc<=e&&e<=a.finallyLoc&&(a=null);var i=a?a.completion:{};return i.type=t,i.arg=e,a?(this.method="next",this.next=a.finallyLoc,g):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),g},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),k(r),g}},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 o=n.arg;k(r)}return o}}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),g}},e}var c=function(t){return function(){var e=Object(n.a)(i().mark(function e(r,n){var c,u,l,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,o.a.get("/app.php",{params:{a:"approvestudname",univcode:c.user.fcuruniv,type:t.correctionType,colfrom:t.collRangeFrom,colto:t.collRangeTo,regfrom:t.regrangefrom,regto:t.regrangeto,status:t.status,option:t.loadsub}});case 6:u=e.sent,r({type:"UNSET_LOADER"}),"object"!==typeof u.data?(l={header:"Error",content:"Something went wrong"},r(Object(a.A)(l))):-1===u.data.error_code?(s={header:"Error",content:u.data.data.msg},r(Object(a.A)(s))):r({type:"APPROVE_STUD_NAME",payload:u.data});case 9:case"end":return e.stop()}},e)}));return function(t,r){return e.apply(this,arguments)}}()},u=function(t,e,r,c,u,l,s){return function(){var h=Object(n.a)(i().mark(function n(h,f){var p,d,y,v,g;return i().wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return p=f(),n.next=3,o.a.post("/app.php?a=saveNameStatus&univcode="+p.univ.funivcode+"®no="+t+"&collname="+e+"&oldname="+r+"&newname="+c+"&status="+u+"&collcode="+l+"&updmobile="+s);case 3:d=n.sent,h({type:"UNSET_LOADER"}),"object"!==typeof d.data?(y={header:"Error",content:"Something went wrong"},h(Object(a.A)(y))):-1===d.data.error_code?(v={header:"Error",content:d.data.data.msg},h(Object(a.A)(v))):(g={header:"Success",content:d.data.data.msg},h(Object(a.A)(g)));case 6:case"end":return n.stop()}},n)}));return function(t,e){return h.apply(this,arguments)}}()},l=function(t){return function(){var e=Object(n.a)(i().mark(function e(r,n){var c,u,l,s;return i().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return c=n(),r({type:"SET_LOADER"}),e.next=4,o.a.get("/app.php",{params:{a:"getTeacherDet",techerid:t.changecoll,univcode:c.user.fcuruniv}});case 4:u=e.sent,r({type:"UNSET_LOADER"}),"object"!==typeof u.data?(l={header:"Error",content:"Something went wrong"},r(Object(a.A)(l))):-1===u.data.error_code?(s={header:"Error",content:u.data.data.msg},r(Object(a.A)(s))):r({type:"TEACH_DATA",payload:u.data});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,u,l,s;return i().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return n(),r({type:"SET_LOADER"}),e.next=4,o.a.post("/app.php?a=uploadDummy",t,{headers:{"Content-type":"multipart/form-data"}});case 4:c=e.sent,r({type:"UNSET_LOADER"}),"object"!==typeof c.data?(u={header:"Error",content:"Something went wrong"},r(Object(a.A)(u))):-1===c.data.error_code?(l={header:"Error",content:c.data.data.msg},r(Object(a.A)(l))):(s={header:"Success",content:c.data.data.msg},r(Object(a.A)(s)));case 7:case"end":return e.stop()}},e)}));return function(t,r){return e.apply(this,arguments)}}()}}}]);
//# sourceMappingURL=65.05b92db2.chunk.js.map
|