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.15.151.109
(window.webpackJsonp=window.webpackJsonp||[]).push([[110],{1218:function(e,t,n){"use strict";n.r(t);var r=n(0),a=n(68),o=n(100),i=n(101),u=n(103),s=n(102),c=n(104),l=n(2),p=n.n(l),f=n(941),h=n(1377),d=n(1343),g=n(272),m=n(1335),v=n(1337),y=n(105),w=(n(267),n(274)),E=n(273),b=n(407),k=n(287),O=n.n(k),x=n(275),S=n.n(x);function C(){C=function(){return t};var e,t={},n=Object.prototype,r=n.hasOwnProperty,a=Object.defineProperty||function(e,t,n){e[t]=n.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",u=o.asyncIterator||"@@asyncIterator",s=o.toStringTag||"@@toStringTag";function c(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{c({},"")}catch(e){c=function(e,t,n){return e[t]=n}}function l(e,t,n,r){var o=t&&t.prototype instanceof v?t:v,i=Object.create(o.prototype),u=new I(r||[]);return a(i,"_invoke",{value:L(e,n,u)}),i}function p(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}t.wrap=l;var f="suspendedStart",h="suspendedYield",d="executing",g="completed",m={};function v(){}function y(){}function w(){}var E={};c(E,i,function(){return this});var b=Object.getPrototypeOf,k=b&&b(b(Z([])));k&&k!==n&&r.call(k,i)&&(E=k);var O=w.prototype=v.prototype=Object.create(E);function x(e){["next","throw","return"].forEach(function(t){c(e,t,function(e){return this._invoke(t,e)})})}function S(e,t){function n(a,o,i,u){var s=p(e[a],e,o);if("throw"!==s.type){var c=s.arg,l=c.value;return l&&"object"==typeof l&&r.call(l,"__await")?t.resolve(l.__await).then(function(e){n("next",e,i,u)},function(e){n("throw",e,i,u)}):t.resolve(l).then(function(e){c.value=e,i(c)},function(e){return n("throw",e,i,u)})}u(s.arg)}var o;a(this,"_invoke",{value:function(e,r){function a(){return new t(function(t,a){n(e,r,t,a)})}return o=o?o.then(a,a):a()}})}function L(t,n,r){var a=f;return function(o,i){if(a===d)throw new Error("Generator is already running");if(a===g){if("throw"===o)throw i;return{value:e,done:!0}}for(r.method=o,r.arg=i;;){var u=r.delegate;if(u){var s=j(u,r);if(s){if(s===m)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(a===f)throw a=g,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);a=d;var c=p(t,n,r);if("normal"===c.type){if(a=r.done?g:h,c.arg===m)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(a=g,r.method="throw",r.arg=c.arg)}}}function j(t,n){var r=n.method,a=t.iterator[r];if(a===e)return n.delegate=null,"throw"===r&&t.iterator.return&&(n.method="return",n.arg=e,j(t,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),m;var o=p(a,t.iterator,n.arg);if("throw"===o.type)return n.method="throw",n.arg=o.arg,n.delegate=null,m;var i=o.arg;return i?i.done?(n[t.resultName]=i.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=e),n.delegate=null,m):i:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,m)}function D(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function _(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function I(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(D,this),this.reset(!0)}function Z(t){if(t||""===t){var n=t[i];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var a=-1,o=function n(){for(;++a<t.length;)if(r.call(t,a))return n.value=t[a],n.done=!1,n;return n.value=e,n.done=!0,n};return o.next=o}}throw new TypeError(typeof t+" is not iterable")}return y.prototype=w,a(O,"constructor",{value:w,configurable:!0}),a(w,"constructor",{value:y,configurable:!0}),y.displayName=c(w,s,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===y||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,w):(e.__proto__=w,c(e,s,"GeneratorFunction")),e.prototype=Object.create(O),e},t.awrap=function(e){return{__await:e}},x(S.prototype),c(S.prototype,u,function(){return this}),t.AsyncIterator=S,t.async=function(e,n,r,a,o){void 0===o&&(o=Promise);var i=new S(l(e,n,r,a),o);return t.isGeneratorFunction(n)?i:i.next().then(function(e){return e.done?e.value:i.next()})},x(O),c(O,s,"Generator"),c(O,i,function(){return this}),c(O,"toString",function(){return"[object Generator]"}),t.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},t.values=Z,I.prototype={constructor:I,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(_),!t)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var n=this;function a(r,a){return u.type="throw",u.arg=t,n.next=r,a&&(n.method="next",n.arg=e),!!a}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],u=i.completion;if("root"===i.tryLoc)return a("end");if(i.tryLoc<=this.prev){var s=r.call(i,"catchLoc"),c=r.call(i,"finallyLoc");if(s&&c){if(this.prev<i.catchLoc)return a(i.catchLoc,!0);if(this.prev<i.finallyLoc)return a(i.finallyLoc)}else if(s){if(this.prev<i.catchLoc)return a(i.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return a(i.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var a=this.tryEntries[n];if(a.tryLoc<=this.prev&&r.call(a,"finallyLoc")&&this.prev<a.finallyLoc){var o=a;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var i=o?o.completion:{};return i.type=e,i.arg=t,o?(this.method="next",this.next=o.finallyLoc,m):this.complete(i)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),m},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),_(n),m}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var a=r.arg;_(n)}return a}}throw new Error("illegal catch attempt")},delegateYield:function(t,n,r){return this.delegate={iterator:Z(t),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=e),m}},t}var L=function(e){function t(){var e,n;Object(o.a)(this,t);for(var i=arguments.length,c=new Array(i),l=0;l<i;l++)c[l]=arguments[l];return(n=Object(u.a)(this,(e=Object(s.a)(t)).call.apply(e,[this].concat(c)))).state={degfrom:"0",degto:"ZZZZZ",deggrpfrom:n.props.user.fdeggrp,deggrpto:n.props.user.fdeggrp,qpfrom:"0",qpto:"ZZZZZ",fdatefrom:O()().format("DD/MM/YYYY"),fdateto:O()().format("DD/MM/YYYY"),reporttype:"activestudDegreeWise",reporttypeact:"summary",Examno:"ABCDEF"},n.handleChangedegfrom=function(){var e=Object(a.a)(C().mark(function e(t,r){return C().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:n.setState({degfrom:r.value,degto:"ZZZZ",clgfrom:"0",clgto:"ZZZZ",reporttype:""});case 1:case"end":return e.stop()}},e)}));return function(t,n){return e.apply(this,arguments)}}(),n.handleChangedate=function(e){n.setState(Object(r.a)({},e.target.name,e.target.value))},n.handleChangeqpfrom=function(){var e=Object(a.a)(C().mark(function e(t,r){return C().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:n.setState({degfrom:"0",degto:"ZZZZ",clgfrom:"0",clgto:"ZZZZ",qpfrom:r.value});case 1:case"end":return e.stop()}},e)}));return function(t,n){return e.apply(this,arguments)}}(),n.handleChangeqpto=function(){var e=Object(a.a)(C().mark(function e(t,r){return C().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:n.setState({degfrom:"0",degto:"ZZZZ",clgfrom:"0",clgto:"ZZZZ",qpto:r.value});case 1:case"end":return e.stop()}},e)}));return function(t,n){return e.apply(this,arguments)}}(),n.handleChange=function(){var e=Object(a.a)(C().mark(function e(t,a){return C().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:n.setState(Object(r.a)({},a.name,a.value));case 1:case"end":return e.stop()}},e)}));return function(t,n){return e.apply(this,arguments)}}(),n.handleChangedegto=function(){var e=Object(a.a)(C().mark(function e(t,r){return C().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:n.setState({degto:r.value,clgfrom:"0",clgto:"ZZZZ",reporttype:""});case 1:case"end":return e.stop()}},e)}));return function(t,n){return e.apply(this,arguments)}}(),n.handleChangeclgfrom=function(){var e=Object(a.a)(C().mark(function e(t,r){return C().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:n.setState({clgfrom:r.value,clgto:"ZZZZ",reporttype:""});case 1:case"end":return e.stop()}},e)}));return function(t,n){return e.apply(this,arguments)}}(),n.handleChangeclgto=function(){var e=Object(a.a)(C().mark(function e(t,r){return C().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:n.setState({clgto:r.value,reporttype:""});case 1:case"end":return e.stop()}},e)}));return function(t,n){return e.apply(this,arguments)}}(),n.handleChangedeggrpfrom=function(){var e=Object(a.a)(C().mark(function e(t,r){return C().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:n.setState({deggrpfrom:r.value});case 1:case"end":return e.stop()}},e)}));return function(t,n){return e.apply(this,arguments)}}(),n.handleChangedeggrpto=function(){var e=Object(a.a)(C().mark(function e(t,r){return C().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:n.setState({deggrpto:r.value});case 1:case"end":return e.stop()}},e)}));return function(t,n){return e.apply(this,arguments)}}(),n.handleReporttype=function(){var e=Object(a.a)(C().mark(function e(t,r){return C().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:n.setState({reporttype:r.value});case 1:case"end":return e.stop()}},e)}));return function(t,n){return e.apply(this,arguments)}}(),n.handleReport=function(){var e=n.props.user,t=(e.fdeggrp,e.fcuruniv),r=n.state,a=r.degfrom,o=r.degto,i=r.deggrpfrom,u=(r.deggrpto,r.reporttype),s=(r.Examno,r.qpfrom),c=r.qpto,l=r.fdatefrom,p=r.fdateto,f=r.reporttypeact;if(""!==a)"activestudSemesterWise"==u?window.open(w.c+"ExamAppSumCourseWiseExcel°grp="+i+"&univcode="+t+"&fdegfrom="+a+"&fdegto="+o+"&fcollfrom=0&fcollto=ZZZZZ&format=PDF","_blank"):"activestudDegreeWise"==u?window.open(w.c+"exmapp_reg_rep_count°grp="+i+"&univcode="+t+"&fdegfrom="+a+"&fdegto="+o+"&fcollfrom=0&fcollto=ZZZZ","_blank"):"qpwiseactivestudcount"==u&&window.open(w.c+"qpwiseactivestudcount&qpfrom="+s+"&qpto="+c+"&fdatefrom="+l+"&fdateto="+p+"&univcode="+t+"&reporttypeact="+f+"&fdegto="+o,"_blank");else{n.props.showError({header:"Error",content:"Select Degree Group"})}},n.renderHeader=function(){return p.a.createElement(h.a.Header,{style:{display:"flex"}},p.a.createElement("h3",null,"Active Students List"),p.a.createElement("div",{className:"ml-auto"},p.a.createElement(d.a,{basic:!0,color:"green",icon:"save",content:"Report",onClick:n.handleReport}),p.a.createElement(d.a,{basic:!0,color:"black",icon:"ban",content:"Cancel"}),p.a.createElement(f.a,{to:"/dashboard"},p.a.createElement(d.a,{basic:!0,color:"red",content:"Exit",icon:"home"}))))},n}return Object(c.a)(t,e),Object(i.a)(t,[{key:"componentDidMount",value:function(){this.props.getstatsdeglist(),this.props.getstatsclglist()}},{key:"render",value:function(){var e=this.state,t=e.degfrom,n=e.degto,r=e.deggrpfrom,a=e.deggrpto,o=e.reporttype,i=e.reporttypeact,u=e.qpfrom,s=e.qpto,c=e.Examno,l=e.fdatefrom,f=e.fdateto,d=Object(E.i)(),y={n:"[0-1]",m:"[0-9]",e:"[0-3]",d:"[0-9]",z:"[1-2]",y:"[0-9]"};this.props.degreelist.map(function(e){return{value:e.fdegree,text:"".concat(e.fdegree," - ").concat(e.fdescpn)}}),this.props.collegelist.map(function(e){return{value:e.fcollcode,text:"".concat(e.fcollcode," - ").concat(e.fcollname)}});return p.a.createElement("div",{className:"animated fadeIn"},p.a.createElement(h.a,{fluid:!0},p.a.createElement(h.a.Content,null,this.renderHeader(),p.a.createElement(g.a,null),p.a.createElement(h.a.Description,{style:{overflowY:"auto",overflowX:"hidden",height:"".concat(d,"px")}},p.a.createElement("div",{className:"col-md-10"},p.a.createElement(m.a,null,p.a.createElement("div",null,p.a.createElement(m.a.Field,{width:16},p.a.createElement("label",null,"Report"),p.a.createElement(v.a,{placeholder:"Report Type",name:"reporttype",value:o,selection:!0,search:!0,options:[{value:"activestudDegreeWise",text:"Degree Wise"},{value:"activestudSemesterWise",text:"Semester Wise"},{value:"qpwiseactivestudcount",text:"QP Wise Active Student Count"}],onChange:this.handleChange})),"qpwiseactivestudcount"!=o?p.a.createElement(m.a.Group,null,p.a.createElement(m.a.Field,{width:12},p.a.createElement("label",null,"Degree Group"),p.a.createElement(m.a.Input,{type:"text",value:r,maxLength:8,placeholder:"Degree Group",name:"deggrpfrom",onChange:this.handleChangedeggrpfrom})),p.a.createElement(m.a.Field,{width:12},p.a.createElement(m.a.Input,{type:"text",value:a,maxLength:8,placeholder:"Degree To",name:"deggrpto",style:{marginTop:"1.6em"},onChange:this.handleChangedeggrpto}))):null,"qpwiseactivestudcount"!=o?p.a.createElement(m.a.Group,null,p.a.createElement(m.a.Field,{width:12},p.a.createElement("label",null,"Degree range"),p.a.createElement(m.a.Input,{type:"text",value:t,maxLength:8,placeholder:"Degree From",name:"degfrom",onChange:this.handleChangedegfrom})),p.a.createElement(m.a.Field,{width:12},p.a.createElement(m.a.Input,{type:"text",value:n,maxLength:8,placeholder:"Degree To",name:"degto",style:{marginTop:"1.6em"},onChange:this.handleChangedegto}))):null,"qpwiseactivestudcount"===o?p.a.createElement(m.a.Group,null,p.a.createElement(m.a.Field,{width:12},p.a.createElement("label",null,"QP code Range"),p.a.createElement(m.a.Input,{type:"text",value:u,maxLength:8,placeholder:"QP From",name:"qpfrom",onChange:this.handleChangeqpfrom})),p.a.createElement(m.a.Field,{width:12},p.a.createElement(m.a.Input,{type:"text",value:s,maxLength:8,placeholder:"Degree To",name:"qpto",style:{marginTop:"1.6em"},onChange:this.handleChangeqpto}))):null,"qpwiseactivestudcount"===o?p.a.createElement(m.a.Group,null,p.a.createElement(m.a.Field,{width:8},p.a.createElement("label",null," Date Range "),p.a.createElement(S.a,{formatChars:y,type:"text",value:l,mask:"ed/nm/zyyy",placeholder:"From",name:"fdatefrom",onChange:this.handleChangedate})),p.a.createElement(m.a.Field,{width:8},p.a.createElement(S.a,{formatChars:y,type:"text",value:f,mask:"ed/nm/zyyy",placeholder:"To",name:"fdateto",onChange:this.handleChangedate,style:{marginTop:"1.6em"}}))):null,"qpwiseactivestudcount"===o?p.a.createElement(m.a.Field,{width:16},p.a.createElement("label",null,"Report Type"),p.a.createElement(v.a,{placeholder:"Report Type",name:"reporttypeact",value:i,selection:!0,search:!0,options:[{value:"collegewise",text:"College Wise"},{value:"centerwise",text:"Center Wise"},{value:"summary",text:"Summary"}],onChange:this.handleChange})):null),"activestudSemesterWise"===o?p.a.createElement(m.a.Group,null,p.a.createElement(m.a.Field,{width:8},p.a.createElement("label",null," Examno "),p.a.createElement(m.a.Input,{type:"text",value:c,maxLength:8,placeholder:"Examno",name:"Examno",onChange:this.handleChange}))):null,p.a.createElement("br",null)))))))}}]),t}(l.Component);t.default=Object(y.b)(function(e){return{degreelist:e.resultStatsDegList,collegelist:e.resultStatsClgList,user:e.user}},{getstatsdeglist:b.b,getstatsclglist:b.a})(L)},275:function(e,t,n){e.exports=n(276)},276:function(e,t,n){"use strict";var r,a=(r=n(2))&&"object"==typeof r&&"default"in r?r.default:r,o=n(106);function i(){return(i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function u(e,t){e.prototype=Object.create(t.prototype),function(e,t){for(var n=Object.getOwnPropertyNames(t),r=0;r<n.length;r++){var a=n[r],o=Object.getOwnPropertyDescriptor(t,a);o&&o.configurable&&void 0===e[a]&&Object.defineProperty(e,a,o)}}(e.prototype.constructor=e,t)}function s(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}var c=function(e,t,n,r,a,o,i,u){if(!e){var s;if(void 0===t)s=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var c=[n,r,a,o,i,u],l=0;(s=new Error(t.replace(/%s/g,function(){return c[l++]}))).name="Invariant Violation"}throw s.framesToPop=1,s}};function l(e,t,n){if("selectionStart"in e&&"selectionEnd"in e)e.selectionStart=t,e.selectionEnd=n;else{var r=e.createTextRange();r.collapse(!0),r.moveStart("character",t),r.moveEnd("character",n-t),r.select()}}var p={9:"[0-9]",a:"[A-Za-z]","*":"[A-Za-z0-9]"},f="_";function h(e,t,n){var r="",a="",o=null,i=[];if(void 0===t&&(t=f),null==n&&(n=p),!e||"string"!=typeof e)return{maskChar:t,formatChars:n,mask:null,prefix:null,lastEditablePosition:null,permanents:[]};var u=!1;return e.split("").forEach(function(e){u=!u&&"\\"===e||(u||!n[e]?(i.push(r.length),r.length===i.length-1&&(a+=e)):o=r.length+1,r+=e,!1)}),{maskChar:t,formatChars:n,prefix:a,mask:r,lastEditablePosition:o,permanents:i}}function d(e,t){return-1!==e.permanents.indexOf(t)}function g(e,t,n){var r=e.mask,a=e.formatChars;if(!n)return!1;if(d(e,t))return r[t]===n;var o=a[r[t]];return new RegExp(o).test(n)}function m(e,t){return t.split("").every(function(t,n){return d(e,n)||!g(e,n,t)})}function v(e,t){var n=e.maskChar,r=e.prefix;if(!n){for(;t.length>r.length&&d(e,t.length-1);)t=t.slice(0,t.length-1);return t.length}for(var a=r.length,o=t.length;o>=r.length;o--){var i=t[o];if(!d(e,o)&&g(e,o,i)){a=o+1;break}}return a}function y(e,t){return v(e,t)===e.mask.length}function w(e,t){var n=e.maskChar,r=e.mask,a=e.prefix;if(!n){for((t=E(e,"",t,0)).length<a.length&&(t=a);t.length<r.length&&d(e,t.length);)t+=r[t.length];return t}if(t)return E(e,w(e,""),t,0);for(var o=0;o<r.length;o++)d(e,o)?t+=r[o]:t+=n;return t}function E(e,t,n,r){var a=e.mask,o=e.maskChar,i=e.prefix,u=n.split(""),s=y(e,t);return!o&&r>t.length&&(t+=a.slice(t.length,r)),u.every(function(n){for(;l=n,d(e,c=r)&&l!==a[c];){if(r>=t.length&&(t+=a[r]),u=n,o&&d(e,r)&&u===o)return!0;if(++r>=a.length)return!1}var u,c,l;return!g(e,r,n)&&n!==o||(r<t.length?t=o||s||r<i.length?t.slice(0,r)+n+t.slice(r+1):(t=t.slice(0,r)+n+t.slice(r),w(e,t)):o||(t+=n),++r<a.length)}),t}function b(e,t){for(var n=e.mask,r=t;r<n.length;++r)if(!d(e,r))return r;return null}function k(e){return e||0===e?e+"":""}function O(e,t,n,r,a){var o=e.mask,i=e.prefix,u=e.lastEditablePosition,s=t,c="",l=0,p=0,f=Math.min(a.start,n.start);return n.end>a.start?p=(l=function(e,t,n,r){var a=e.mask,o=e.maskChar,i=n.split(""),u=r;return i.every(function(t){for(;i=t,d(e,n=r)&&i!==a[n];)if(++r>=a.length)return!1;var n,i;return(g(e,r,t)||t===o)&&r++,r<a.length}),r-u}(e,0,c=s.slice(a.start,n.end),f))?a.length:0:s.length<r.length&&(p=r.length-s.length),s=r,p&&(1!==p||a.length||(f=a.start===n.start?b(e,n.start):function(e,t){for(var n=t;0<=n;--n)if(!d(e,n))return n;return null}(e,n.start)),s=function(e,t,n,r){var a=n+r,o=e.maskChar,i=e.mask,u=e.prefix,s=t.split("");if(o)return s.map(function(t,r){return r<n||a<=r?t:d(e,r)?i[r]:o}).join("");for(var c=a;c<s.length;c++)d(e,c)&&(s[c]="");return n=Math.max(u.length,n),s.splice(n,a-n),t=s.join(""),w(e,t)}(e,s,f,p)),s=E(e,s,c,f),(f+=l)>=o.length?f=o.length:f<i.length&&!l?f=i.length:f>=i.length&&f<u&&l&&(f=b(e,f)),c||(c=null),{value:s=w(e,s),enteredString:c,selection:{start:f,end:f}}}function x(e){return"function"==typeof e}function S(){return window.cancelAnimationFrame||window.webkitCancelRequestAnimationFrame||window.webkitCancelAnimationFrame||window.mozCancelAnimationFrame}function C(e){return(S()?window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame:function(){return setTimeout(e,1e3/60)})(e)}function L(e){(S()||clearTimeout)(e)}var j=function(e){function t(t){var n=e.call(this,t)||this;n.focused=!1,n.mounted=!1,n.previousSelection=null,n.selectionDeferId=null,n.saveSelectionLoopDeferId=null,n.saveSelectionLoop=function(){n.previousSelection=n.getSelection(),n.saveSelectionLoopDeferId=C(n.saveSelectionLoop)},n.runSaveSelectionLoop=function(){null===n.saveSelectionLoopDeferId&&n.saveSelectionLoop()},n.stopSaveSelectionLoop=function(){null!==n.saveSelectionLoopDeferId&&(L(n.saveSelectionLoopDeferId),n.saveSelectionLoopDeferId=null,n.previousSelection=null)},n.getInputDOMNode=function(){if(!n.mounted)return null;var e=o.findDOMNode(s(s(n))),t="undefined"!=typeof window&&e instanceof window.Element;if(e&&!t)return null;if("INPUT"!==e.nodeName&&(e=e.querySelector("input")),!e)throw new Error("react-input-mask: inputComponent doesn't contain input node");return e},n.getInputValue=function(){var e=n.getInputDOMNode();return e?e.value:null},n.setInputValue=function(e){var t=n.getInputDOMNode();t&&(n.value=e,t.value=e)},n.setCursorToEnd=function(){var e=v(n.maskOptions,n.value),t=b(n.maskOptions,e);null!==t&&n.setCursorPosition(t)},n.setSelection=function(e,t,r){void 0===r&&(r={});var a=n.getInputDOMNode(),o=n.isFocused();a&&o&&(r.deferred||l(a,e,t),null!==n.selectionDeferId&&L(n.selectionDeferId),n.selectionDeferId=C(function(){n.selectionDeferId=null,l(a,e,t)}),n.previousSelection={start:e,end:t,length:Math.abs(t-e)})},n.getSelection=function(){return function(e){var t=0,n=0;if("selectionStart"in e&&"selectionEnd"in e)t=e.selectionStart,n=e.selectionEnd;else{var r=document.selection.createRange();r.parentElement()===e&&(t=-r.moveStart("character",-e.value.length),n=-r.moveEnd("character",-e.value.length))}return{start:t,end:n,length:n-t}}(n.getInputDOMNode())},n.getCursorPosition=function(){return n.getSelection().start},n.setCursorPosition=function(e){n.setSelection(e,e)},n.isFocused=function(){return n.focused},n.getBeforeMaskedValueChangeConfig=function(){var e=n.maskOptions,t=e.mask,r=e.maskChar,a=e.permanents,o=e.formatChars;return{mask:t,maskChar:r,permanents:a,alwaysShowMask:!!n.props.alwaysShowMask,formatChars:o}},n.isInputAutofilled=function(e,t,r,a){var o=n.getInputDOMNode();try{if(o.matches(":-webkit-autofill"))return!0}catch(c){}return!n.focused||a.end<r.length&&t.end===e.length},n.onChange=function(e){var t=s(s(n)).beforePasteState,r=s(s(n)).previousSelection,a=n.props.beforeMaskedValueChange,o=n.getInputValue(),i=n.value,u=n.getSelection();n.isInputAutofilled(o,u,i,r)&&(i=w(n.maskOptions,""),r={start:0,end:0,length:0}),t&&(r=t.selection,i=t.value,u={start:r.start+o.length,end:r.start+o.length,length:0},o=i.slice(0,r.start)+o+i.slice(r.end),n.beforePasteState=null);var c=O(n.maskOptions,o,u,i,r),l=c.enteredString,p=c.selection,f=c.value;if(x(a)){var h=a({value:f,selection:p},{value:i,selection:r},l,n.getBeforeMaskedValueChangeConfig());f=h.value,p=h.selection}n.setInputValue(f),x(n.props.onChange)&&n.props.onChange(e),n.isWindowsPhoneBrowser?n.setSelection(p.start,p.end,{deferred:!0}):n.setSelection(p.start,p.end)},n.onFocus=function(e){var t=n.props.beforeMaskedValueChange,r=n.maskOptions,a=r.mask,o=r.prefix;if(n.focused=!0,n.mounted=!0,a){if(n.value)v(n.maskOptions,n.value)<n.maskOptions.mask.length&&n.setCursorToEnd();else{var i=w(n.maskOptions,o),u=w(n.maskOptions,i),s=v(n.maskOptions,u),c=b(n.maskOptions,s),l={start:c,end:c};if(x(t)){var p=t({value:u,selection:l},{value:n.value,selection:null},null,n.getBeforeMaskedValueChangeConfig());u=p.value,l=p.selection}var f=u!==n.getInputValue();f&&n.setInputValue(u),f&&x(n.props.onChange)&&n.props.onChange(e),n.setSelection(l.start,l.end)}n.runSaveSelectionLoop()}x(n.props.onFocus)&&n.props.onFocus(e)},n.onBlur=function(e){var t=n.props.beforeMaskedValueChange,r=n.maskOptions.mask;if(n.stopSaveSelectionLoop(),n.focused=!1,r&&!n.props.alwaysShowMask&&m(n.maskOptions,n.value)){var a="";x(t)&&(a=t({value:a,selection:null},{value:n.value,selection:n.previousSelection},null,n.getBeforeMaskedValueChangeConfig()).value);var o=a!==n.getInputValue();o&&n.setInputValue(a),o&&x(n.props.onChange)&&n.props.onChange(e)}x(n.props.onBlur)&&n.props.onBlur(e)},n.onMouseDown=function(e){if(!n.focused&&document.addEventListener){n.mouseDownX=e.clientX,n.mouseDownY=e.clientY,n.mouseDownTime=(new Date).getTime();document.addEventListener("mouseup",function e(t){if(document.removeEventListener("mouseup",e),n.focused){var r=Math.abs(t.clientX-n.mouseDownX),a=Math.abs(t.clientY-n.mouseDownY),o=Math.max(r,a),i=(new Date).getTime()-n.mouseDownTime;(o<=10&&i<=200||o<=5&&i<=300)&&n.setCursorToEnd()}})}x(n.props.onMouseDown)&&n.props.onMouseDown(e)},n.onPaste=function(e){x(n.props.onPaste)&&n.props.onPaste(e),e.defaultPrevented||(n.beforePasteState={value:n.getInputValue(),selection:n.getSelection()},n.setInputValue(""))},n.handleRef=function(e){null==n.props.children&&x(n.props.inputRef)&&n.props.inputRef(e)};var r=t.mask,a=t.maskChar,i=t.formatChars,u=t.alwaysShowMask,c=t.beforeMaskedValueChange,p=t.defaultValue,f=t.value;n.maskOptions=h(r,a,i),null==p&&(p=""),null==f&&(f=p);var d=k(f);if(n.maskOptions.mask&&(u||d)&&(d=w(n.maskOptions,d),x(c))){var g=t.value;null==t.value&&(g=p),d=c({value:d,selection:null},{value:g=k(g),selection:null},null,n.getBeforeMaskedValueChangeConfig()).value}return n.value=d,n}u(t,e);var n=t.prototype;return n.componentDidMount=function(){this.mounted=!0,this.getInputDOMNode()&&(this.isWindowsPhoneBrowser=function(){var e=new RegExp("windows","i"),t=new RegExp("phone","i"),n=navigator.userAgent;return e.test(n)&&t.test(n)}(),this.maskOptions.mask&&this.getInputValue()!==this.value&&this.setInputValue(this.value))},n.componentDidUpdate=function(){var e=this.previousSelection,t=this.props,n=t.beforeMaskedValueChange,r=t.alwaysShowMask,a=t.mask,o=t.maskChar,i=t.formatChars,u=this.maskOptions,s=r||this.isFocused(),c=null!=this.props.value,l=c?k(this.props.value):this.value,p=e?e.start:null;if(this.maskOptions=h(a,o,i),this.maskOptions.mask){!u.mask&&this.isFocused()&&this.runSaveSelectionLoop();var f=this.maskOptions.mask&&this.maskOptions.mask!==u.mask;if(u.mask||c||(l=this.getInputValue()),(f||this.maskOptions.mask&&(l||s))&&(l=w(this.maskOptions,l)),f){var d=v(this.maskOptions,l);(null===p||d<p)&&(p=y(this.maskOptions,l)?d:b(this.maskOptions,d))}!this.maskOptions.mask||!m(this.maskOptions,l)||s||c&&this.props.value||(l="");var g={start:p,end:p};if(x(n)){var E=n({value:l,selection:g},{value:this.value,selection:this.previousSelection},null,this.getBeforeMaskedValueChangeConfig());l=E.value,g=E.selection}this.value=l;var O=this.getInputValue()!==this.value;O?(this.setInputValue(this.value),this.forceUpdate()):f&&this.forceUpdate();var S=!1;null!=g.start&&null!=g.end&&(S=!e||e.start!==g.start||e.end!==g.end),(S||O)&&this.setSelection(g.start,g.end)}else u.mask&&(this.stopSaveSelectionLoop(),this.forceUpdate())},n.componentWillUnmount=function(){this.mounted=!1,null!==this.selectionDeferId&&L(this.selectionDeferId),this.stopSaveSelectionLoop()},n.render=function(){var e,t=this.props,n=(t.mask,t.alwaysShowMask,t.maskChar,t.formatChars,t.inputRef,t.beforeMaskedValueChange,t.children),r=function(e,t){if(null==e)return{};var n,r,a={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],0<=t.indexOf(n)||(a[n]=e[n]);return a}(t,["mask","alwaysShowMask","maskChar","formatChars","inputRef","beforeMaskedValueChange","children"]);if(n){x(n)||c(!1);var o=["onChange","onPaste","onMouseDown","onFocus","onBlur","value","disabled","readOnly"],u=i({},r);o.forEach(function(e){return delete u[e]}),e=n(u),o.filter(function(t){return null!=e.props[t]&&e.props[t]!==r[t]}).length&&c(!1)}else e=a.createElement("input",i({ref:this.handleRef},r));var s={onFocus:this.onFocus,onBlur:this.onBlur};return this.maskOptions.mask&&(r.disabled||r.readOnly||(s.onChange=this.onChange,s.onPaste=this.onPaste,s.onMouseDown=this.onMouseDown),null!=r.value&&(s.value=this.value)),e=a.cloneElement(e,s)},t}(a.Component);e.exports=j},407:function(e,t,n){"use strict";n.d(t,"d",function(){return u}),n.d(t,"e",function(){return s}),n.d(t,"c",function(){return c}),n.d(t,"b",function(){return l}),n.d(t,"a",function(){return p});var r=n(68),a=n(271),o=n(267);function i(){i=function(){return t};var e,t={},n=Object.prototype,r=n.hasOwnProperty,a=Object.defineProperty||function(e,t,n){e[t]=n.value},o="function"==typeof Symbol?Symbol:{},u=o.iterator||"@@iterator",s=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function l(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{l({},"")}catch(e){l=function(e,t,n){return e[t]=n}}function p(e,t,n,r){var o=t&&t.prototype instanceof y?t:y,i=Object.create(o.prototype),u=new I(r||[]);return a(i,"_invoke",{value:L(e,n,u)}),i}function f(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}t.wrap=p;var h="suspendedStart",d="suspendedYield",g="executing",m="completed",v={};function y(){}function w(){}function E(){}var b={};l(b,u,function(){return this});var k=Object.getPrototypeOf,O=k&&k(k(Z([])));O&&O!==n&&r.call(O,u)&&(b=O);var x=E.prototype=y.prototype=Object.create(b);function S(e){["next","throw","return"].forEach(function(t){l(e,t,function(e){return this._invoke(t,e)})})}function C(e,t){function n(a,o,i,u){var s=f(e[a],e,o);if("throw"!==s.type){var c=s.arg,l=c.value;return l&&"object"==typeof l&&r.call(l,"__await")?t.resolve(l.__await).then(function(e){n("next",e,i,u)},function(e){n("throw",e,i,u)}):t.resolve(l).then(function(e){c.value=e,i(c)},function(e){return n("throw",e,i,u)})}u(s.arg)}var o;a(this,"_invoke",{value:function(e,r){function a(){return new t(function(t,a){n(e,r,t,a)})}return o=o?o.then(a,a):a()}})}function L(t,n,r){var a=h;return function(o,i){if(a===g)throw new Error("Generator is already running");if(a===m){if("throw"===o)throw i;return{value:e,done:!0}}for(r.method=o,r.arg=i;;){var u=r.delegate;if(u){var s=j(u,r);if(s){if(s===v)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(a===h)throw a=m,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);a=g;var c=f(t,n,r);if("normal"===c.type){if(a=r.done?m:d,c.arg===v)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(a=m,r.method="throw",r.arg=c.arg)}}}function j(t,n){var r=n.method,a=t.iterator[r];if(a===e)return n.delegate=null,"throw"===r&&t.iterator.return&&(n.method="return",n.arg=e,j(t,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),v;var o=f(a,t.iterator,n.arg);if("throw"===o.type)return n.method="throw",n.arg=o.arg,n.delegate=null,v;var i=o.arg;return i?i.done?(n[t.resultName]=i.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=e),n.delegate=null,v):i:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,v)}function D(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function _(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function I(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(D,this),this.reset(!0)}function Z(t){if(t||""===t){var n=t[u];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var a=-1,o=function n(){for(;++a<t.length;)if(r.call(t,a))return n.value=t[a],n.done=!1,n;return n.value=e,n.done=!0,n};return o.next=o}}throw new TypeError(typeof t+" is not iterable")}return w.prototype=E,a(x,"constructor",{value:E,configurable:!0}),a(E,"constructor",{value:w,configurable:!0}),w.displayName=l(E,c,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===w||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,E):(e.__proto__=E,l(e,c,"GeneratorFunction")),e.prototype=Object.create(x),e},t.awrap=function(e){return{__await:e}},S(C.prototype),l(C.prototype,s,function(){return this}),t.AsyncIterator=C,t.async=function(e,n,r,a,o){void 0===o&&(o=Promise);var i=new C(p(e,n,r,a),o);return t.isGeneratorFunction(n)?i:i.next().then(function(e){return e.done?e.value:i.next()})},S(x),l(x,c,"Generator"),l(x,u,function(){return this}),l(x,"toString",function(){return"[object Generator]"}),t.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},t.values=Z,I.prototype={constructor:I,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(_),!t)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var n=this;function a(r,a){return u.type="throw",u.arg=t,n.next=r,a&&(n.method="next",n.arg=e),!!a}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],u=i.completion;if("root"===i.tryLoc)return a("end");if(i.tryLoc<=this.prev){var s=r.call(i,"catchLoc"),c=r.call(i,"finallyLoc");if(s&&c){if(this.prev<i.catchLoc)return a(i.catchLoc,!0);if(this.prev<i.finallyLoc)return a(i.finallyLoc)}else if(s){if(this.prev<i.catchLoc)return a(i.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return a(i.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var a=this.tryEntries[n];if(a.tryLoc<=this.prev&&r.call(a,"finallyLoc")&&this.prev<a.finallyLoc){var o=a;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var i=o?o.completion:{};return i.type=e,i.arg=t,o?(this.method="next",this.next=o.finallyLoc,v):this.complete(i)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),v},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),_(n),v}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var a=r.arg;_(n)}return a}}throw new Error("illegal catch attempt")},delegateYield:function(t,n,r){return this.delegate={iterator:Z(t),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=e),v}},t}var u=function(){return function(){var e=Object(r.a)(i().mark(function e(t,n){var r,u,s,c,l;return i().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return r=n(),t({type:"SET_LOADER"}),u=r.user.fcollcode?r.user.fcollcode:"",e.next=5,a.a.get("/app.php",{params:{a:"loaddeggrpexamcentre",univcode:r.user.fcuruniv,fcollcode:u}});case 5:s=e.sent,t({type:"UNSET_LOADER"}),"object"!==typeof s.data?(c={header:"Error",content:"Something went wrong"},t(Object(o.A)(c))):-1===s.data.error_code?(l={header:"Error",content:s.data.data.msg},t(Object(o.A)(l))):t({type:"LOAD_DEGGRP_EXAMCENTRE",payload:s.data});case 8:case"end":return e.stop()}},e)}));return function(t,n){return e.apply(this,arguments)}}()},s=function(e){return function(){var t=Object(r.a)(i().mark(function t(n,r){var u,s,c,l;return i().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return u=r(),n({type:"SET_LOADER"}),t.next=4,a.a.get("/app.php",{params:{a:"loaddegres",univcode:u.user.fcuruniv,deggrp:e}});case 4:s=t.sent,n({type:"UNSET_LOADER"}),"object"!==typeof s.data?(c={header:"Error",content:"Something went wrong"},n(Object(o.A)(c))):-1===s.data.error_code?(l={header:"Error",content:s.data.data.msg},n(Object(o.A)(l))):n({type:"LOAD_DEGREE_RES",payload:s.data});case 7:case"end":return t.stop()}},t)}));return function(e,n){return t.apply(this,arguments)}}()},c=function(e){return function(){var t=Object(r.a)(i().mark(function t(n,r){var u,s,c,l;return i().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return u=r(),n({type:"SET_LOADER"}),t.next=4,a.a.get("/app.php",{params:{a:"loadcollres",univcode:u.user.fcuruniv,deg:e}});case 4:s=t.sent,n({type:"UNSET_LOADER"}),"object"!==typeof s.data?(c={header:"Error",content:"Something went wrong"},n(Object(o.A)(c))):-1===s.data.error_code?(l={header:"Error",content:s.data.data.msg},n(Object(o.A)(l))):n({type:"LOAD_COLLEGE_RES",payload:s.data});case 7:case"end":return t.stop()}},t)}));return function(e,n){return t.apply(this,arguments)}}()},l=function(){return function(){var e=Object(r.a)(i().mark(function e(t,n){var r,u,s,c;return i().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return r=n(),e.next=3,a.a.get("app.php?a=getstatsdeglist&univcode="+r.univ.funivcode+"&fcollcode="+r.user.fcollcode+"&fdeggrp="+r.user.fdeggrp);case 3:"object"!==typeof(u=e.sent).data?(s={header:"Error",content:"Something went wrong"},t(Object(o.A)(s))):-1===u.data.error_code?(c={header:"Error",content:u.data.data.msg},t(Object(o.A)(c))):t({type:"RESULT_STATS_DEGREE_LIST",payload:u.data});case 5:case"end":return e.stop()}},e)}));return function(t,n){return e.apply(this,arguments)}}()},p=function(){return function(){var e=Object(r.a)(i().mark(function e(t,n){var r,u,s,c;return i().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return r=n(),e.next=3,a.a.get("app.php?a=getstatsclglist&univcode="+r.univ.funivcode+"&fcollcode="+r.user.fcollcode+"&fdeggrp="+r.user.fdeggrp);case 3:"object"!==typeof(u=e.sent).data?(s={header:"Error",content:"Something went wrong"},t(Object(o.A)(s))):-1===u.data.error_code?(c={header:"Error",content:u.data.data.msg},t(Object(o.A)(c))):t({type:"RESULT_STATS_COLLEGE_LIST",payload:u.data});case 5:case"end":return e.stop()}},e)}));return function(t,n){return e.apply(this,arguments)}}()}}}]);
//# sourceMappingURL=110.ebf1dd18.chunk.js.map
|