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.227.140.152
(window.webpackJsonp=window.webpackJsonp||[]).push([[304],{1350: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(700),f=r.n(h),p=(r(701),r(105)),d=r(267),g=r(273),y=r(271);function v(){v=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 m?e:m,i=Object.create(a.prototype),c=new C(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",g="completed",y={};function m(){}function w(){}function E(){}var b={};l(b,i,function(){return this});var x=Object.getPrototypeOf,L=x&&x(x(A([])));L&&L!==r&&n.call(L,i)&&(b=L);var O=E.prototype=m.prototype=Object.create(b);function _(t){["next","throw","return"].forEach(function(e){l(t,e,function(t){return this._invoke(e,t)})})}function j(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===g){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=k(c,n);if(u){if(u===y)continue;return u}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===f)throw o=g,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?g:p,l.arg===y)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(o=g,n.method="throw",n.arg=l.arg)}}}function k(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,k(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),y;var a=h(o,e.iterator,r.arg);if("throw"===a.type)return r.method="throw",r.arg=a.arg,r.delegate=null,y;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,y):i:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,y)}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 N(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 A(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 w.prototype=E,o(O,"constructor",{value:E,configurable:!0}),o(E,"constructor",{value:w,configurable:!0}),w.displayName=l(E,u,"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,l(t,u,"GeneratorFunction")),t.prototype=Object.create(O),t},e.awrap=function(t){return{__await:t}},_(j.prototype),l(j.prototype,c,function(){return this}),e.AsyncIterator=j,e.async=function(t,r,n,o,a){void 0===a&&(a=Promise);var i=new j(s(t,r,n,o),a);return e.isGeneratorFunction(r)?i:i.next().then(function(t){return t.done?t.value:i.next()})},_(O),l(O,u,"Generator"),l(O,i,function(){return this}),l(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=A,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(N),!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,y):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),y},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),N(r),y}},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;N(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:A(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),y}},e}var m=function(t,e){return function(){var r=Object(n.a)(v().mark(function r(n,o){var a,i,c,u,l;return v().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return n({type:"SET_LOADER"}),a=o(),r.next=4,y.a.post("app.php?a=saveCropedPhoto&univcode="+a.univ.funivcode+"&collcode="+e,{data:t});case 4:i=r.sent,n({type:"UNSET_LOADER"}),"object"!==typeof i.data?(c={header:"Error",content:"Something went wrong"},n(Object(d.A)(c))):-1===i.data.error_code?(u={header:"Error",content:i.data.data.msg},n(Object(d.A)(u))):(l={header:"Success",content:i.data.data.msg},n(Object(d.A)(l)));case 7:case"end":return r.stop()}},r)}));return function(t,e){return r.apply(this,arguments)}}()},w=r(1377),E=r(1343),b=r(1333),x=r(1374);function L(){L=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 v?e:v,i=Object.create(a.prototype),c=new C(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",g="completed",y={};function v(){}function m(){}function w(){}var E={};l(E,i,function(){return this});var b=Object.getPrototypeOf,x=b&&b(b(A([])));x&&x!==r&&n.call(x,i)&&(E=x);var O=w.prototype=v.prototype=Object.create(E);function _(t){["next","throw","return"].forEach(function(e){l(t,e,function(t){return this._invoke(e,t)})})}function j(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===g){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=k(c,n);if(u){if(u===y)continue;return u}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===f)throw o=g,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?g:p,l.arg===y)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(o=g,n.method="throw",n.arg=l.arg)}}}function k(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,k(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),y;var a=h(o,e.iterator,r.arg);if("throw"===a.type)return r.method="throw",r.arg=a.arg,r.delegate=null,y;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,y):i:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,y)}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 N(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 A(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=w,o(O,"constructor",{value:w,configurable:!0}),o(w,"constructor",{value:m,configurable:!0}),m.displayName=l(w,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,w):(t.__proto__=w,l(t,u,"GeneratorFunction")),t.prototype=Object.create(O),t},e.awrap=function(t){return{__await:t}},_(j.prototype),l(j.prototype,c,function(){return this}),e.AsyncIterator=j,e.async=function(t,r,n,o,a){void 0===a&&(a=Promise);var i=new j(s(t,r,n,o),a);return e.isGeneratorFunction(r)?i:i.next().then(function(t){return t.done?t.value:i.next()})},_(O),l(O,u,"Generator"),l(O,i,function(){return this}),l(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=A,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(N),!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,y):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),y},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),N(r),y}},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;N(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:A(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),y}},e}var O={},_=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={path:"",checkboxvalue:"ALL",show_degree_drop:!1,clgcode:"",showCropImage:!1,showdrop:!1,showSubmitButton:!1,withoutDegree:!1,currentindex:0,last:!1,deggrp:"ALL",show:!1,arraystuddata:[],RangeTo:"",RangeFrom:"",Tabledata:!1,modalContent:!1,showimg:!1},r.handleSave=Object(n.a)(L().mark(function t(){var e;return L().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:e={fregno:O.fregno,img64:r.state.path},r.props.savePhtoto(e,r.props.collcode);case 2:case"end":return t.stop()}},t)})),r.showdata=Object(n.a)(L().mark(function t(){return L().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,r.props.cropImage(r.props.collcode,r.props.deggrp,r.props.item.fregno);case 2:return t.next=4,r.props.cropImagedata;case 4:if(!((O=t.sent).fregno.length>0)){t.next=8;break}return t.next=8,r.setState({showimg:!0});case 8:case"end":return t.stop()}},t)})),r.renderHeader=function(){return s.a.createElement(w.a.Header,{style:{display:"flex"}},s.a.createElement("div",{className:"ml-auto"},s.a.createElement(E.a,{basic:!0,color:"green",icon:"file",onClick:r.handleSave,content:"save"})))},r}return Object(u.a)(e,t),Object(a.a)(e,[{key:"_crop",value:function(){this.setState({path:this.refs.cropper.getCroppedCanvas().toDataURL()})}},{key:"render",value:function(){return s.a.createElement("div",null,s.a.createElement(b.a,{style:{width:"90%"},trigger:s.a.createElement(E.a,{onClick:this.showdata},"Select Image")},this.state.showimg&&s.a.createElement(s.a.Fragment,null,s.a.createElement(b.a.Header,null,s.a.createElement("div",{className:"row"},s.a.createElement("div",{className:"col-lg-6"},"Select area to crop"),s.a.createElement("div",{className:"col-lg-6"},this.renderHeader()," "))),s.a.createElement(b.a.Content,{image:!0},s.a.createElement(b.a.Description,null,s.a.createElement(x.a,null,s.a.createElement("b",{style:{margin:"0px 5px"}},"Student Name:"),this.props.item.fname," ",s.a.createElement("br",null),s.a.createElement("b",null,"Student Register Number :"),this.props.item.fregno),s.a.createElement("div",{className:"row"},s.a.createElement("div",{className:"col-lg-6"},s.a.createElement(f.a,{ref:"cropper",src:O.img64,style:{height:400,width:"100%"},guides:!1,crop:this._crop.bind(this)})),s.a.createElement("div",{className:"col-lg-6"},s.a.createElement("img",{src:this.state.path,style:{height:"400px",width:"400px"}}))))))))}}]),e}(l.Component),j=Object(p.b)(function(t){return{cropImagedata:t.cropImage}},{cropImage:function(t,e,r){return function(){var e=Object(n.a)(v().mark(function e(n,o){var a,i;return v().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return a=o(),n({type:"SET_LOADER"}),e.next=4,y.a.get("app.php?a=photoCropDet&univcode="+a.univ.funivcode+"&collcode="+t+"&fregno="+r);case 4:i=e.sent,n({type:"UNSET_LOADER"}),"object"!==typeof i.data?n({type:"SET_ERROR",payload:{error_code:-1,data:{msg:"Something went wrong"},status:"failure"}}):n({type:"CROP_IMAGE",payload:i.data});case 7:case"end":return e.stop()}},e)}));return function(t,r){return e.apply(this,arguments)}}()},savePhtoto:m})(_);function S(){S=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 v?e:v,i=Object.create(a.prototype),c=new C(n||[]);return o(i,"_invoke",{value:j(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",g="completed",y={};function v(){}function m(){}function w(){}var E={};l(E,i,function(){return this});var b=Object.getPrototypeOf,x=b&&b(b(A([])));x&&x!==r&&n.call(x,i)&&(E=x);var L=w.prototype=v.prototype=Object.create(E);function O(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 j(e,r,n){var o=f;return function(a,i){if(o===d)throw new Error("Generator is already running");if(o===g){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=k(c,n);if(u){if(u===y)continue;return u}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===f)throw o=g,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?g:p,l.arg===y)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(o=g,n.method="throw",n.arg=l.arg)}}}function k(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,k(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),y;var a=h(o,e.iterator,r.arg);if("throw"===a.type)return r.method="throw",r.arg=a.arg,r.delegate=null,y;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,y):i:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,y)}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 N(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 A(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=w,o(L,"constructor",{value:w,configurable:!0}),o(w,"constructor",{value:m,configurable:!0}),m.displayName=l(w,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,w):(t.__proto__=w,l(t,u,"GeneratorFunction")),t.prototype=Object.create(L),t},e.awrap=function(t){return{__await:t}},O(_.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()})},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=A,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(N),!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,y):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),y},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),N(r),y}},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;N(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:A(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),y}},e}var k=r(272),T=r(1335),N=r(930),C=r(1337),A=r(1338);function P(){P=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 v?e:v,i=Object.create(a.prototype),c=new N(n||[]);return o(i,"_invoke",{value:j(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",g="completed",y={};function v(){}function m(){}function w(){}var E={};l(E,i,function(){return this});var b=Object.getPrototypeOf,x=b&&b(b(C([])));x&&x!==r&&n.call(x,i)&&(E=x);var L=w.prototype=v.prototype=Object.create(E);function O(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 j(e,r,n){var o=f;return function(a,i){if(o===d)throw new Error("Generator is already running");if(o===g){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=S(c,n);if(u){if(u===y)continue;return u}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===f)throw o=g,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?g:p,l.arg===y)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(o=g,n.method="throw",n.arg=l.arg)}}}function S(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,S(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),y;var a=h(o,e.iterator,r.arg);if("throw"===a.type)return r.method="throw",r.arg=a.arg,r.delegate=null,y;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,y):i:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,y)}function k(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 N(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(k,this),this.reset(!0)}function C(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=w,o(L,"constructor",{value:w,configurable:!0}),o(w,"constructor",{value:m,configurable:!0}),m.displayName=l(w,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,w):(t.__proto__=w,l(t,u,"GeneratorFunction")),t.prototype=Object.create(L),t},e.awrap=function(t){return{__await:t}},O(_.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()})},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=C,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(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 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,y):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),y},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),y}},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;T(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:C(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),y}},e}var R=[],G=[{value:"Active College List",text:"Active colleges"},{value:"Center College List",text:"Center List"},{value:"Center List With Tagged Colleges",text:"Tagged colleges"}],D={f:"s",img64:""},F=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={path:"",clgdgerData:[],checkboxvalue:"ALL",show_degree_drop:!1,clgcode:"",showCropImage:!1,showdrop:!1,showSubmitButton:!1,withoutDegree:!1,currentindex:0,last:!1,deggrp:"ALL",show:!1,arraystuddata:[],RangeTo:"zzzzz",RangeFrom:"0",Tabledata:!1},r.getImageData=Object(n.a)(P().mark(function t(){return P().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,r.props.getStudentPhotosDegreeWise(r.state.clgcode,r.state.deggrp,r.state.RangeFrom,r.state.RangeTo);case 2:(R=r.props.degreeWiseStudentList).length>0&&r.setState({Tabledata:!0}),D.img64&&r.setState({showCropImage:!0});case 5:case"end":return t.stop()}},t)})),r.changeclg=function(){var t=Object(n.a)(P().mark(function t(e,n){var o;return P().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return n.name,o=n.value,t.next=3,r.setState({clgcode:o});case 3:return t.next=5,r.setState({withoutDegree:!0});case 5:return t.next=7,r.setState({checkboxvalue:"Specific"});case 7:return t.next=9,r.props.collegeWiseDegreeList(r.state.clgcode);case 9:case"end":return t.stop()}},t)}));return function(e,r){return t.apply(this,arguments)}}(),r.handleSave=Object(n.a)(P().mark(function t(){var e;return P().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:e={fregno:D.fregno,img64:r.state.path},r.props.savePhtoto(e,r.state.clgcode);case 2:case"end":return t.stop()}},t)})),r.renderHeader=function(){return s.a.createElement(w.a.Header,{style:{display:"flex"}},s.a.createElement("h3",null,"Crop image"))},r}return Object(u.a)(e,t),Object(a.a)(e,[{key:"_crop",value:function(){this.setState({path:this.refs.cropper.getCroppedCanvas().toDataURL()})}},{key:"componentDidMount",value:function(){var t=Object(n.a)(P().mark(function t(){var e;return P().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.props.getCollegeList();case 2:e=this.props.allclglist,G=[],e.length>0&&this.setState({showdrop:!0}),e.map(function(t){G.push({value:t.fcollcode,text:"".concat(t.fcollcode," ").concat(t.fcollname," ")})});case 6:case"end":return t.stop()}},t,this)}));return function(){return t.apply(this,arguments)}}()},{key:"render",value:function(){var t=this,e=Object(g.i)(),r=this.props.specificCollgeDregree.map(function(t,e){return{value:t.fdegree,text:"".concat(t.fdegree," ").concat(t.fdescpn," ")}});return s.a.createElement("div",null,s.a.createElement(w.a,{fluid:!0},s.a.createElement(w.a.Content,null,this.renderHeader(),s.a.createElement(k.a,null),s.a.createElement(w.a.Description,{style:{overflowY:"auto",height:"".concat(e,"px")}},s.a.createElement("div",{className:"col-md-12"},s.a.createElement(T.a,null,s.a.createElement(N.a,null,s.a.createElement(T.a.Field,{width:12},s.a.createElement("label",null,"Select College "),this.state.showdrop&&s.a.createElement(C.a,{placeholder:"Select college",name:"reportType",selection:!0,search:!0,options:G,onChange:this.changeclg}))),s.a.createElement(N.a,null,s.a.createElement(T.a.Field,{width:12},s.a.createElement("label",null,"Select Degree "),s.a.createElement(C.a,{placeholder:"Select degree",name:"reportType",selection:!0,search:!0,options:r,onChange:function(){var e=Object(n.a)(P().mark(function e(r,n){var o;return P().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return n.name,o=n.value,t.setState({show_degree_drop:!0}),e.next=4,t.setState({deggrp:o});case 4:case"end":return e.stop()}},e)}));return function(t,r){return e.apply(this,arguments)}}()}))),s.a.createElement(N.a,null,s.a.createElement(T.a.Field,{width:6},s.a.createElement(T.a.Input,{defaultValue:"0000",fluid:!0,onChange:function(){var e=Object(n.a)(P().mark(function e(r){return P().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,t.setState({RangeFrom:r.target.value});case 2:case"end":return e.stop()}},e)}));return function(t){return e.apply(this,arguments)}}(),placeholder:"Range From",label:"Reg. No. Range "})),s.a.createElement(T.a.Field,{width:6},s.a.createElement("br",null),s.a.createElement(T.a.Input,{defaultValue:"zzzz",onChange:function(){var e=Object(n.a)(P().mark(function e(r){return P().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,t.setState({RangeTo:r.target.value});case 2:case"end":return e.stop()}},e)}));return function(t){return e.apply(this,arguments)}}(),fluid:!0,placeholder:"Range To"}))),s.a.createElement(N.a,null,s.a.createElement(E.a,{style:{margin:"5px"},color:"green",onClick:this.getImageData},"Submit")))),s.a.createElement("div",{className:"col-md-12"},this.state.Tabledata&&s.a.createElement(A.a,{celled:!0},s.a.createElement(A.a.Header,null,s.a.createElement(A.a.Row,null,s.a.createElement(A.a.HeaderCell,{style:{width:"25%"},singleLine:!0,textAlign:"center"},"Sl. No."),s.a.createElement(A.a.HeaderCell,{style:{width:"25%"},singleLine:!0,textAlign:"center"},"Register No"),s.a.createElement(A.a.HeaderCell,{style:{width:"25%"},textAlign:"center"},"Student Name"),s.a.createElement(A.a.HeaderCell,{style:{width:"25%"},textAlign:"center"},"Photo"),s.a.createElement(A.a.HeaderCell,{style:{width:"25%"},textAlign:"center"},"Crop Data"))),s.a.createElement(A.a.Body,null,R.length>0&&R.map(function(e,r){return s.a.createElement(A.a.Row,{key:r},s.a.createElement(A.a.Cell,{textAlign:"center"},r+1),s.a.createElement(A.a.Cell,{textAlign:"center"},e.fregno),s.a.createElement(A.a.Cell,{textAlign:"center",singleLine:!0},e.fname),s.a.createElement(A.a.Cell,{textAlign:"center",singleLine:!0},s.a.createElement("img",{src:e.fphotopath,style:{height:"200px",width:"200px"}})),s.a.createElement(A.a.Cell,{textAlign:"center",singleLine:!0},s.a.createElement(j,{item:e,collcode:t.state.clgcode,deggrp:t.state.deggrp})))}))))))))}}]),e}(l.Component);e.default=Object(p.b)(function(t){return{allclglist:t.allcollegeList,specificCollgeDregree:t.collegeWiseDegreeList,degreeWiseStudentList:t.getStudentPhotosDegreeWise}},{showError:d.A,getCollegeList:function(){return function(){var t=Object(n.a)(S().mark(function t(e,r){var n,o,a,i;return S().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return n=r(),e({type:"SET_LOADER"}),t.next=4,y.a.get("app.php?a=GetAllCollegeList&univcode="+n.univ.funivcode);case 4:o=t.sent,e({type:"UNSET_LOADER"}),"object"!==typeof o.data?(a={header:"Error",content:"Something went wrong"},e(Object(d.A)(a))):-1===o.data.error_code?(i={header:"Error",content:o.data.data.msg},e(Object(d.A)(i))):e({type:"ALL_COLLEGE_LIST",payload:o.data});case 7:case"end":return t.stop()}},t)}));return function(e,r){return t.apply(this,arguments)}}()},savePhtoto:m,collegeWiseDegreeList:function(t){return function(){var e=Object(n.a)(v().mark(function e(r,n){var o,a;return v().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return o=n(),r({type:"SET_LOADER"}),e.next=4,y.a.get("app.php?a=getCollegeDegrees&univcode="+o.univ.funivcode+"&collcode="+t+"&fdeggrp="+o.user.fdeggrp);case 4:a=e.sent,r({type:"UNSET_LOADER"}),"object"!==typeof a.data?r({type:"SET_ERROR",payload:{error_code:-1,data:{msg:"Something went wrong"},status:"failure"}}):r({type:"COLLEGE_WISE_DEGREE_GROUP",payload:a.data});case 7:case"end":return e.stop()}},e)}));return function(t,r){return e.apply(this,arguments)}}()},getStudentPhotosDegreeWise:function(t,e,r,o){return function(){var a=Object(n.a)(v().mark(function n(a,i){var c,u;return v().wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return c=i(),a({type:"SET_LOADER"}),n.next=4,y.a.get("app.php?a=getStudentPhotosDegreeWise&univcode="+c.univ.funivcode+"&collcode="+t+"&fdeggrp="+c.user.fdeggrp+"&fdegree="+e+"®from="+r+"®to="+o);case 4:u=n.sent,a({type:"UNSET_LOADER"}),"object"!==typeof u.data?a({type:"SET_ERROR",payload:{error_code:-1,data:{msg:"Something went wrong"},status:"failure"}}):a({type:"GET_STUDENT_PHOTO_LIST",payload:u.data});case 7:case"end":return n.stop()}},n)}));return function(t,e){return a.apply(this,arguments)}}()}})(F)}}]);
//# sourceMappingURL=304.cbcd0959.chunk.js.map
|