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



Your IP : 18.116.118.214


Current Path : /var/www/egov/build/static/js/
Upload File :
Current File : /var/www/egov/build/static/js/44.12df618b.chunk.js

(window.webpackJsonp=window.webpackJsonp||[]).push([[44],{1082:function(e,t,n){"use strict";n.r(t);var r=n(41),a=n.n(r),o=n(68),s=n(3),l=n(99),i=n(100),c=n(102),u=n(101),p=n(103),f=n(1),d=n.n(f),g=n(858),m=n(1139),h=n(1106),v=n(272),w=n(1098),E=n(1100),k=n(104),y=n(271),b=n(266),x=(n(270),n(323),n(288)),C=(n(273),n(284),function(e){function t(){var e,n,r;Object(l.a)(this,t);for(var i=arguments.length,p=new Array(i),f=0;f<i;f++)p[f]=arguments[f];return(r=Object(c.a)(this,(e=Object(u.a)(t)).call.apply(e,[this].concat(p)))).state=(n={fdeggrp:"",fyear:"",fexamtype:"",fexamdate:"",fcollfrm:"00000",fcollto:"ZZZZZ",fdegfrm:"00000",fdegto:"ZZZZZ",degree:"",examNoRange:"ABCDEF",moduleType:"",range:!1,moduleTypeOptions:[]},Object(s.a)(n,"examNoRange","ABCDEF"),Object(s.a)(n,"showPdf",!0),Object(s.a)(n,"showExcel",!0),Object(s.a)(n,"reportType",""),n),r.handleChangeclgfrom=function(){var e=Object(o.a)(a.a.mark(function e(t,n){return a.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:r.setState({fcollfrm:n.value});case 1:case"end":return e.stop()}},e)}));return function(t,n){return e.apply(this,arguments)}}(),r.changeDeggrp=function(e,t){var n=r.props.deggrp.filter(function(e,n){return e.fdeggrp===t.value})[0];r.setState({fyear:n.fyear,fexamtype:n.fexamtype,fexamdate:n.fexamdate,fdeggrp:t.value,frmSubmit:!0})},r.handleChangeclgto=function(){var e=Object(o.a)(a.a.mark(function e(t,n){return a.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:r.setState({fcollto:n.value});case 1:case"end":return e.stop()}},e)}));return function(t,n){return e.apply(this,arguments)}}(),r.handleChangeDeg=function(e,t){console.log("de",e,t),r.setState(Object(s.a)({},t,e))},r.handleChangeReport=function(e){console.log(e),r.setState({rformat:e})},r.handleReport=function(){var e=r.state,t=e.fyear,n=e.fexamtype,a=(e.fexamdate,e.fdeggrp),o=e.fcollfrm,s=e.fcollto,l=e.fdegfrm,i=e.fdegto,c=e.rformat,u=(e.rtype,e.range),p=(e.rftype,e.artype,e.moduleType,e.examNoRange);if(""!==a){if(u){if(""===o||""===s){return void r.props.showError({header:"Error",content:"Enter College Range"})}if(""===l||""===i){return void r.props.showError({header:"Error",content:"Enter Degree range"})}}if(""!==c)"examfeedetailexcel"==c?window.open(y.c+"ExamFeeDetailsExcel&deggrp="+a+"&univcode="+r.props.univcode+"&fdegfrom="+l+"&fdegto="+i+"&fcollfrom="+o+"&fcollto="+s,"_blank"):"examfeedetailnewexcel"==c?window.open(y.c+"exmfeedetnewexcel&deggrp="+a+"&univcode="+r.props.univcode+"&fdegfrom="+l+"&fdegto="+i+"&fcollfrom="+o+"&fcollto="+s,"_blank"):"centerwisesemisterwise"==c?window.open(y.c+"centerwisesemisterwise&deggrp="+a+"&univcode="+r.props.univcode+"&fdegfrom="+l+"&fdegto="+i+"&fcollfrom="+o+"&fcollto="+s+"&fexamrange="+p+"&fyear="+t+"&fexamtype="+n+"&rformat="+c,"_blank"):"collegewisesemisterwise"==c?window.open(y.c+"centerwisesemisterwise&deggrp="+a+"&univcode="+r.props.univcode+"&fdegfrom="+l+"&fdegto="+i+"&fcollfrom="+o+"&fcollto="+s+"&fexamrange="+p+"&fyear="+t+"&fexamtype="+n+"&rformat="+c,"_blank"):"centerwisestudentcount"==c?window.open(y.c+"centerwisestudentcount&deggrp="+a+"&univcode="+r.props.univcode+"&fdegfrom="+l+"&fdegto="+i+"&fcollfrom="+o+"&fcollto="+s+"&fexamrange="+p+"&fyear="+t+"&fexamtype="+n+"&rformat="+c,"_blank"):"collegewisestudentcount"==c?window.open(y.c+"centerwisestudentcount&deggrp="+a+"&univcode="+r.props.univcode+"&fdegfrom="+l+"&fdegto="+i+"&fcollfrom="+o+"&fcollto="+s+"&fexamrange="+p+"&fyear="+t+"&fexamtype="+n+"&rformat="+c,"_blank"):"qpcodewisestudentcount"==c?window.open(y.c+"qpcodewisestudentcount&deggrp="+a+"&univcode="+r.props.univcode+"&fdegfrom="+l+"&fdegto="+i+"&fcollfrom="+o+"&fcollto="+s+"&fexamrange="+p+"&fyear="+t+"&fexamtype="+n,"_blank"):"centerwiseqpwisestudentcount"==c?window.open(y.c+"centerwiseqpwisestudentcount&deggrp="+a+"&univcode="+r.props.univcode+"&fdegfrom="+l+"&fdegto="+i+"&fcollfrom="+o+"&fcollto="+s+"&fexamrange="+p+"&fyear="+t+"&fexamtype="+n+"&rformat="+c,"_blank"):"centerwisedegreewiseqpwise"==c?window.open(y.c+"centerwisedegreewiseqpwise&deggrp="+a+"&univcode="+r.props.univcode+"&fdegfrom="+l+"&fdegto="+i+"&fcollfrom="+o+"&fcollto="+s+"&fexamrange="+p+"&fyear="+t+"&fexamtype="+n+"&rformat="+c,"_blank"):"degreewiseqpwise"==c?window.open(y.c+"degreewiseqpwise&deggrp="+a+"&univcode="+r.props.univcode+"&fdegfrom="+l+"&fdegto="+i+"&fcollfrom="+o+"&fcollto="+s+"&fexamrange="+p+"&fyear="+t+"&fexamtype="+n,"_blank"):"collegewisedegreewiseqpwise"==c?window.open(y.c+"centerwisedegreewiseqpwise&deggrp="+a+"&univcode="+r.props.univcode+"&fdegfrom="+l+"&fdegto="+i+"&fcollfrom="+o+"&fcollto="+s+"&fexamrange="+p+"&fyear="+t+"&fexamtype="+n+"&rformat="+c,"_blank"):"collegewiseqpwise"==c?window.open(y.c+"centerwiseqpwisestudentcount&deggrp="+a+"&univcode="+r.props.univcode+"&fdegfrom="+l+"&fdegto="+i+"&fcollfrom="+o+"&fcollto="+s+"&fexamrange="+p+"&fyear="+t+"&fexamtype="+n+"&rformat="+c,"_blank"):"centerdegreesemister"==c?window.open(y.c+"centerdegreesemister&deggrp="+a+"&univcode="+r.props.univcode+"&fdegfrom="+l+"&fdegto="+i+"&fcollfrom="+o+"&fcollto="+s+"&fexamrange="+p+"&fyear="+t+"&fexamtype="+n+"&rformat="+c,"_blank"):"collegedegreesemister"==c?window.open(y.c+"centerdegreesemister&deggrp="+a+"&univcode="+r.props.univcode+"&fdegfrom="+l+"&fdegto="+i+"&fcollfrom="+o+"&fcollto="+s+"&fexamrange="+p+"&fyear="+t+"&fexamtype="+n+"&rformat="+c,"_blank"):(console.log("rformat",c,a),window.open(y.c+c+"&univcode="+r.props.univcode+"&cntr_from="+o+"&cntr_end="+s+"&degree_from="+l+"&degree_to="+i+"&Degree="+a+"&examno_from="+p+"&user="+JSON.stringify(r.props.degdet),"_blank")),console.log("rformat",c,r.props.degdet.fdeggrp);else{r.props.showError({header:"Error",content:"Select Report Format"})}}else{r.props.showError({header:"Error",content:"Select Degree Group"})}},r}return Object(p.a)(t,e),Object(i.a)(t,[{key:"componentDidMount",value:function(){this.props.fetchDegGrp()}},{key:"render",value:function(){var e=this,t=this.state,n=t.fdeggrp,r=t.fyear,a=t.fexamtype,o=t.fexamdate,s=t.fcollfrm,l=t.fcollto,i=t.fdegfrm,c=t.fdegto,u=t.rformat,p=(t.rtype,t.rftype,t.artype,t.moduleType,t.examNoRange);return d.a.createElement(m.a,{fluid:!0},d.a.createElement(m.a.Content,null,d.a.createElement(m.a.Header,{style:{display:"flex"}},d.a.createElement("h4",null,"Exam Application Reports"),d.a.createElement("div",{className:"ml-auto"},d.a.createElement(h.a,{basic:!0,color:"blue",onClick:this.handleReport,content:"Report",icon:"file"}),d.a.createElement(h.a,{basic:!0,color:"black",icon:"ban",content:"Cancel"}),d.a.createElement(g.a,{to:"/dashboard"},d.a.createElement(h.a,{basic:!0,color:"red",content:"Exit",icon:"home"})))),d.a.createElement(v.a,null),d.a.createElement(m.a.Description,{style:{overflowY:"auto",height:"70vh"}},d.a.createElement("div",{className:"col-md-7"},d.a.createElement(w.a,null,d.a.createElement(x.a,{pdeggrp:{fdeggrp:n,fyear:r,fexamtype:a,fexamdate:o},changeDeggrp:this.changeDeggrp}),d.a.createElement("div",null,d.a.createElement(w.a.Field,{width:16},d.a.createElement("label",null,"Report"),d.a.createElement(E.a,{fluid:!0,search:!0,selection:!0,onChange:function(t,n){e.handleChangeReport(n.value)},value:u,name:"rformat",placeholder:"Select Report",options:[{value:"centerwisesemisterwise",text:"Center wise, Semester wise Student Count (Excel)"},{value:"collegewisesemisterwise",text:"College wise, Semester wise Student Count (Excel)"},{value:"centerwisestudentcount",text:"Center Wise Student Count (Excel)"},{value:"collegewisestudentcount",text:"College Wise Student Count (Excel)"},{value:"qpcodewisestudentcount",text:"QP wise Student Count (Excel)"},{value:"centerwiseqpwisestudentcount",text:"Center wise, QP wise, Student Count (Excel)"},{value:"centerwisedegreewiseqpwise",text:"Center wise, Degree wise, QP wise Student Count (Excel)"},{value:"degreewiseqpwise",text:"Degree wise, QP wise, Student Count (Excel)"},{value:"collegewisedegreewiseqpwise",text:"College wise, Degree wise, QP wise Student count (Excel)"},{value:"collegewiseqpwise",text:"College wise, QP wise Student count (Excel)"},{value:"centerdegreesemister",text:"Center wise, Degreewise ,Semester wise Student count (Excel)"},{value:"collegedegreesemister",text:"College wise, Degreewise ,Semester wise Student count (Excel)"}]})),d.a.createElement(w.a.Group,null,d.a.createElement(w.a.Field,{width:8},d.a.createElement("label",null,"College Range"),d.a.createElement(w.a.Input,{placeholder:"From",name:"fcollfrm",value:s,onChange:this.handleChangeclgfrom,maxLength:"5"})),d.a.createElement(w.a.Field,{width:8},d.a.createElement(w.a.Input,{placeholder:"To",name:"fcollto",value:l,onChange:this.handleChangeclgto,maxLength:"5",style:{marginTop:"1.6em"}})))),d.a.createElement(w.a.Group,null,d.a.createElement(w.a.Field,{width:8},d.a.createElement(w.a.Input,{placeholder:"From",name:"fdegfrm",value:i,onChange:function(t,n){e.handleChangeDeg(n.value,n.name)},maxLength:"5",label:"Degree Range"})),d.a.createElement(w.a.Field,{width:8},d.a.createElement(w.a.Input,{placeholder:"To",name:"fdegto",value:c,onChange:function(t,n){e.handleChangeDeg(n.value,n.name)},maxLength:"5",style:{marginTop:"1.6em"}}))),d.a.createElement(w.a.Group,null,d.a.createElement(w.a.Field,{width:16},d.a.createElement("label",null,"Exam No Range"),d.a.createElement(w.a.Input,{placeholder:"Exam No Range",name:"examNoRange",value:p,onChange:this.handleChange,maxLength:"6"}))))))))}}]),t}(f.Component));t.default=Object(k.b)(function(e){return console.log(e),{degdet:e.user,univcode:e.univ.funivcode,fetchDropDownOptions:e.fetchDropDownOptions,deggrp:e.deggrp}},{showError:b.w,fetchDegGrp:b.j})(C)},273:function(e,t,n){e.exports=n(274)},274:function(e,t,n){"use strict";var r,a=(r=n(1))&&"object"==typeof r&&"default"in r?r.default:r,o=n(105);function s(){return(s=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 l(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 i(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,s,l){if(!e){var i;if(void 0===t)i=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,s,l],u=0;(i=new Error(t.replace(/%s/g,function(){return c[u++]}))).name="Invariant Violation"}throw i.framesToPop=1,i}};function u(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 d(e,t,n){var r="",a="",o=null,s=[];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 l=!1;return e.split("").forEach(function(e){l=!l&&"\\"===e||(l||!n[e]?(s.push(r.length),r.length===s.length-1&&(a+=e)):o=r.length+1,r+=e,!1)}),{maskChar:t,formatChars:n,prefix:a,mask:r,lastEditablePosition:o,permanents:s}}function g(e,t){return-1!==e.permanents.indexOf(t)}function m(e,t,n){var r=e.mask,a=e.formatChars;if(!n)return!1;if(g(e,t))return r[t]===n;var o=a[r[t]];return new RegExp(o).test(n)}function h(e,t){return t.split("").every(function(t,n){return g(e,n)||!m(e,n,t)})}function v(e,t){var n=e.maskChar,r=e.prefix;if(!n){for(;t.length>r.length&&g(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 s=t[o];if(!g(e,o)&&m(e,o,s)){a=o+1;break}}return a}function w(e,t){return v(e,t)===e.mask.length}function E(e,t){var n=e.maskChar,r=e.mask,a=e.prefix;if(!n){for((t=k(e,"",t,0)).length<a.length&&(t=a);t.length<r.length&&g(e,t.length);)t+=r[t.length];return t}if(t)return k(e,E(e,""),t,0);for(var o=0;o<r.length;o++)g(e,o)?t+=r[o]:t+=n;return t}function k(e,t,n,r){var a=e.mask,o=e.maskChar,s=e.prefix,l=n.split(""),i=w(e,t);return!o&&r>t.length&&(t+=a.slice(t.length,r)),l.every(function(n){for(;u=n,g(e,c=r)&&u!==a[c];){if(r>=t.length&&(t+=a[r]),l=n,o&&g(e,r)&&l===o)return!0;if(++r>=a.length)return!1}var l,c,u;return!m(e,r,n)&&n!==o||(r<t.length?t=o||i||r<s.length?t.slice(0,r)+n+t.slice(r+1):(t=t.slice(0,r)+n+t.slice(r),E(e,t)):o||(t+=n),++r<a.length)}),t}function y(e,t){for(var n=e.mask,r=t;r<n.length;++r)if(!g(e,r))return r;return null}function b(e){return e||0===e?e+"":""}function x(e,t,n,r,a){var o=e.mask,s=e.prefix,l=e.lastEditablePosition,i=t,c="",u=0,p=0,f=Math.min(a.start,n.start);return n.end>a.start?p=(u=function(e,t,n,r){var a=e.mask,o=e.maskChar,s=n.split(""),l=r;return s.every(function(t){for(;s=t,g(e,n=r)&&s!==a[n];)if(++r>=a.length)return!1;var n,s;return(m(e,r,t)||t===o)&&r++,r<a.length}),r-l}(e,0,c=i.slice(a.start,n.end),f))?a.length:0:i.length<r.length&&(p=r.length-i.length),i=r,p&&(1!==p||a.length||(f=a.start===n.start?y(e,n.start):function(e,t){for(var n=t;0<=n;--n)if(!g(e,n))return n;return null}(e,n.start)),i=function(e,t,n,r){var a=n+r,o=e.maskChar,s=e.mask,l=e.prefix,i=t.split("");if(o)return i.map(function(t,r){return r<n||a<=r?t:g(e,r)?s[r]:o}).join("");for(var c=a;c<i.length;c++)g(e,c)&&(i[c]="");return n=Math.max(l.length,n),i.splice(n,a-n),t=i.join(""),E(e,t)}(e,i,f,p)),i=k(e,i,c,f),(f+=u)>=o.length?f=o.length:f<s.length&&!u?f=s.length:f>=s.length&&f<l&&u&&(f=y(e,f)),c||(c=null),{value:i=E(e,i),enteredString:c,selection:{start:f,end:f}}}function C(e){return"function"==typeof e}function O(){return window.cancelAnimationFrame||window.webkitCancelRequestAnimationFrame||window.webkitCancelAnimationFrame||window.mozCancelAnimationFrame}function S(e){return(O()?window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame:function(){return setTimeout(e,1e3/60)})(e)}function D(e){(O()||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=S(n.saveSelectionLoop)},n.runSaveSelectionLoop=function(){null===n.saveSelectionLoopDeferId&&n.saveSelectionLoop()},n.stopSaveSelectionLoop=function(){null!==n.saveSelectionLoopDeferId&&(D(n.saveSelectionLoopDeferId),n.saveSelectionLoopDeferId=null,n.previousSelection=null)},n.getInputDOMNode=function(){if(!n.mounted)return null;var e=o.findDOMNode(i(i(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=y(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||u(a,e,t),null!==n.selectionDeferId&&D(n.selectionDeferId),n.selectionDeferId=S(function(){n.selectionDeferId=null,u(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=i(i(n)).beforePasteState,r=i(i(n)).previousSelection,a=n.props.beforeMaskedValueChange,o=n.getInputValue(),s=n.value,l=n.getSelection();n.isInputAutofilled(o,l,s,r)&&(s=E(n.maskOptions,""),r={start:0,end:0,length:0}),t&&(r=t.selection,s=t.value,l={start:r.start+o.length,end:r.start+o.length,length:0},o=s.slice(0,r.start)+o+s.slice(r.end),n.beforePasteState=null);var c=x(n.maskOptions,o,l,s,r),u=c.enteredString,p=c.selection,f=c.value;if(C(a)){var d=a({value:f,selection:p},{value:s,selection:r},u,n.getBeforeMaskedValueChangeConfig());f=d.value,p=d.selection}n.setInputValue(f),C(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 s=E(n.maskOptions,o),l=E(n.maskOptions,s),i=v(n.maskOptions,l),c=y(n.maskOptions,i),u={start:c,end:c};if(C(t)){var p=t({value:l,selection:u},{value:n.value,selection:null},null,n.getBeforeMaskedValueChangeConfig());l=p.value,u=p.selection}var f=l!==n.getInputValue();f&&n.setInputValue(l),f&&C(n.props.onChange)&&n.props.onChange(e),n.setSelection(u.start,u.end)}n.runSaveSelectionLoop()}C(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&&h(n.maskOptions,n.value)){var a="";C(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&&C(n.props.onChange)&&n.props.onChange(e)}C(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),s=(new Date).getTime()-n.mouseDownTime;(o<=10&&s<=200||o<=5&&s<=300)&&n.setCursorToEnd()}})}C(n.props.onMouseDown)&&n.props.onMouseDown(e)},n.onPaste=function(e){C(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&&C(n.props.inputRef)&&n.props.inputRef(e)};var r=t.mask,a=t.maskChar,s=t.formatChars,l=t.alwaysShowMask,c=t.beforeMaskedValueChange,p=t.defaultValue,f=t.value;n.maskOptions=d(r,a,s),null==p&&(p=""),null==f&&(f=p);var g=b(f);if(n.maskOptions.mask&&(l||g)&&(g=E(n.maskOptions,g),C(c))){var m=t.value;null==t.value&&(m=p),g=c({value:g,selection:null},{value:m=b(m),selection:null},null,n.getBeforeMaskedValueChangeConfig()).value}return n.value=g,n}l(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,s=t.formatChars,l=this.maskOptions,i=r||this.isFocused(),c=null!=this.props.value,u=c?b(this.props.value):this.value,p=e?e.start:null;if(this.maskOptions=d(a,o,s),this.maskOptions.mask){!l.mask&&this.isFocused()&&this.runSaveSelectionLoop();var f=this.maskOptions.mask&&this.maskOptions.mask!==l.mask;if(l.mask||c||(u=this.getInputValue()),(f||this.maskOptions.mask&&(u||i))&&(u=E(this.maskOptions,u)),f){var g=v(this.maskOptions,u);(null===p||g<p)&&(p=w(this.maskOptions,u)?g:y(this.maskOptions,g))}!this.maskOptions.mask||!h(this.maskOptions,u)||i||c&&this.props.value||(u="");var m={start:p,end:p};if(C(n)){var k=n({value:u,selection:m},{value:this.value,selection:this.previousSelection},null,this.getBeforeMaskedValueChangeConfig());u=k.value,m=k.selection}this.value=u;var x=this.getInputValue()!==this.value;x?(this.setInputValue(this.value),this.forceUpdate()):f&&this.forceUpdate();var O=!1;null!=m.start&&null!=m.end&&(O=!e||e.start!==m.start||e.end!==m.end),(O||x)&&this.setSelection(m.start,m.end)}else l.mask&&(this.stopSaveSelectionLoop(),this.forceUpdate())},n.componentWillUnmount=function(){this.mounted=!1,null!==this.selectionDeferId&&D(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){C(n)||c(!1);var o=["onChange","onPaste","onMouseDown","onFocus","onBlur","value","disabled","readOnly"],l=s({},r);o.forEach(function(e){return delete l[e]}),e=n(l),o.filter(function(t){return null!=e.props[t]&&e.props[t]!==r[t]}).length&&c(!1)}else e=a.createElement("input",s({ref:this.handleRef},r));var i={onFocus:this.onFocus,onBlur:this.onBlur};return this.maskOptions.mask&&(r.disabled||r.readOnly||(i.onChange=this.onChange,i.onPaste=this.onPaste,i.onMouseDown=this.onMouseDown),null!=r.value&&(i.value=this.value)),e=a.cloneElement(e,i)},t}(a.Component);e.exports=j},288:function(e,t,n){"use strict";var r=n(41),a=n.n(r),o=n(68),s=n(99),l=n(100),i=n(102),c=n(101),u=n(103),p=n(1),f=n.n(p),d=n(104),g=n(1098),m=n(1100),h=n(266),v=function(e){function t(){return Object(s.a)(this,t),Object(i.a)(this,Object(c.a)(t).apply(this,arguments))}return Object(u.a)(t,e),Object(l.a)(t,[{key:"componentDidMount",value:function(){var e=Object(o.a)(a.a.mark(function e(){return a.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:case"end":return e.stop()}},e)}));return function(){return e.apply(this,arguments)}}()},{key:"render",value:function(){var e=this.props.deggrp.map(function(e,t){return{key:t,value:e.fdeggrp,text:"".concat(e.fdeggrp," - ").concat(e.fdescpn)}});console.log(this.props.pdeggrp);var t=this.props.pdeggrp,n=t.fdeggrp,r=t.fyear,a=t.fexamtype,o=t.fexamdate;return f.a.createElement("div",null,f.a.createElement(g.a.Field,null,f.a.createElement("label",null,"Degree Group"),f.a.createElement(m.a,{size:"mini",fluid:!0,search:!0,selection:!0,value:n,onChange:this.props.changeDeggrp,placeholder:"Select Degree Group",disabled:this.props.disabled,openOnFocus:!1,options:e,selectOnBlur:!1})),f.a.createElement(g.a.Group,null,f.a.createElement(g.a.Input,{placeholder:"Year",value:r,width:4,label:"Year",readOnly:!0}),f.a.createElement(g.a.Input,{placeholder:"Type",value:a,width:3,label:"Type",readOnly:!0}),f.a.createElement(g.a.Input,{placeholder:"Exam Date",label:"Exam Date",width:10,value:o,readOnly:!0})))}}]),t}(p.Component);t.a=Object(d.b)(function(e){return{deggrp:e.deggrp,user:e.user}},{fetchDegGrp:h.j})(v)},323:function(e,t,n){"use strict";n.d(t,"g",function(){return i}),n.d(t,"d",function(){return c}),n.d(t,"f",function(){return u}),n.d(t,"a",function(){return p}),n.d(t,"i",function(){return f}),n.d(t,"c",function(){return d}),n.d(t,"e",function(){return g}),n.d(t,"b",function(){return m}),n.d(t,"h",function(){return h});var r=n(41),a=n.n(r),o=n(68),s=n(269),l=n(266),i=function(){return function(){var e=Object(o.a)(a.a.mark(function e(t,n){var r,o,i,c;return a.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return r=n(),t({type:"SET_LOADER"}),e.next=4,s.a.get("/app.php",{params:{a:"getdeggrprvrt",univcode:r.user.fcuruniv}});case 4:o=e.sent,t({type:"UNSET_LOADER"}),"object"!==typeof o.data?(i={header:"Error",content:"Something went wrong"},t(Object(l.w)(i))):-1===o.data.error_code?(c={header:"Error",content:o.data.data.msg},t(Object(l.w)(c))):t({type:"RVRT_DEGGRP",payload:o.data});case 7:case"end":return e.stop()}},e)}));return function(t,n){return e.apply(this,arguments)}}()},c=function(e){return function(){var t=Object(o.a)(a.a.mark(function t(n,r){var o,i,c,u;return a.a.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return o=r(),console.log(o),t.next=4,s.a.get("app.php?a=PracticalCenterDegreeList&univcode="+o.univ.funivcode+"&deggrp="+e);case 4:"object"!==typeof(i=t.sent).data?(c={header:"Error",content:"Something went wrong"},n(Object(l.w)(c))):-1===i.data.error_code?(u={header:"Error",content:i.data.data.msg},n(Object(l.w)(u))):(console.log(i.data),n({type:"ALL_DEGREE_LIST",payload:i.data}));case 6:case"end":return t.stop()}},t)}));return function(e,n){return t.apply(this,arguments)}}()},u=function(e,t,n,r,i,c,u){return function(){var p=Object(o.a)(a.a.mark(function o(p,f){var d,g,m,h;return a.a.wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return d=f(),console.log(d),a.next=4,s.a.get("app.php?a=PracticalCenterData&univcode="+d.univ.funivcode+"&fcollcode="+d.user.fcollcode+"&deggrpfrom="+n+"&deggrpto="+r+"&subfrom="+e+"&subto="+t+"&degree="+i+"&clgfrom="+c+"&clgto="+u);case 4:"object"!==typeof(g=a.sent).data?(m={header:"Error",content:"Something went wrong"},p(Object(l.w)(m))):-1===g.data.error_code?(h={header:"Error",content:g.data.data.msg},p(Object(l.w)(h))):(console.log(g.data),p({type:"PRACTICAL_CENTERS",payload:g.data}));case 6:case"end":return a.stop()}},o)}));return function(e,t){return p.apply(this,arguments)}}()},p=function(e,t){return console.log(e,t),{type:"PRACTICAL_CENTERS_CHANGE",payload:{el:e,i:t}}},f=function(e,t,n,r,i){return function(){var c=Object(o.a)(a.a.mark(function o(c,u){var p,f,d,g,m;return a.a.wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return p=u(),console.log(e,t,n),c({type:"SET_LOADER"}),a.next=5,s.a.post("/app.php?a=updatepracticalcenter&univcode="+p.univ.funivcode,{data:{fdeggrp:n,univcode:p.univ.funivcode,updcntr:e,subfrom:r,subto:i,user:p.user,deg:t}});case 5:f=a.sent,c({type:"UNSET_LOADER"}),"object"!==typeof f.data?c({type:"SET_ERROR",payload:{error_code:-1,data:{msg:"Something went wrong"},status:"failure"}}):-1===f.data.error_code?(console.log(f.data),d={header:"Error",content:f.data.data.msg},c(Object(l.w)(d))):0===f.data.error_code?(g={header:"Success",content:f.data.data.msg},c(Object(l.w)(g))):(m={header:"Error",content:"Something went wrong"},c(Object(l.w)(m)));case 8:case"end":return a.stop()}},o)}));return function(e,t){return c.apply(this,arguments)}}()},d=function(e){return function(){var t=Object(o.a)(a.a.mark(function t(n,r){var o,i,c,u;return a.a.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return o=r(),console.log(o),t.next=4,s.a.get("/app.php",{params:{a:"PracticalCenterCollegeList",univcode:o.user.fcuruniv,degree:e}});case 4:"object"!==typeof(i=t.sent).data?(c={header:"Error",content:"Something went wrong"},n(Object(l.w)(c))):-1===i.data.error_code?(u={header:"Error",content:i.data.data.msg},n(Object(l.w)(u))):(console.log(i.data),n({type:"ALL_COLLEGE_LIST",payload:i.data}));case 6:case"end":return t.stop()}},t)}));return function(e,n){return t.apply(this,arguments)}}()},g=function(e){return function(){var t=Object(o.a)(a.a.mark(function t(n,r){var o,i,c,u;return a.a.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return o=r(),console.log(o),t.next=4,s.a.get("/app.php",{params:{a:"PracticalCenterSubjectList",univcode:o.user.fcuruniv,degree:e.degree,college:e.college}});case 4:"object"!==typeof(i=t.sent).data?(c={header:"Error",content:"Something went wrong"},n(Object(l.w)(c))):-1===i.data.error_code?(u={header:"Error",content:i.data.data.msg},n(Object(l.w)(u))):(console.log(i.data),n({type:"ALL_SUBJECT_LIST",payload:i.data}));case 6:case"end":return t.stop()}},t)}));return function(e,n){return t.apply(this,arguments)}}()},m=function(e){return function(){var e=Object(o.a)(a.a.mark(function e(t,n){var r,o,i,c;return a.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return r=n(),console.log(r),e.next=4,s.a.get("/app.php",{params:{a:"PracticalCenterCodeList",univcode:r.user.fcuruniv}});case 4:"object"!==typeof(o=e.sent).data?(i={header:"Error",content:"Something went wrong"},t(Object(l.w)(i))):-1===o.data.error_code?(c={header:"Error",content:o.data.data.msg},t(Object(l.w)(c))):(console.log(o.data),t({type:"ALL_CENTRE_LIST",payload:o.data}));case 6:case"end":return e.stop()}},e)}));return function(t,n){return e.apply(this,arguments)}}()},h=function(e){return function(){var t=Object(o.a)(a.a.mark(function t(n,r){var o,i,c,u,p;return a.a.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return o=r(),console.log(o),t.next=4,s.a.get("/app.php",{params:{a:"savePracticalExamCentre",univcode:o.user.fcuruniv,deg:e.degree,sub:e.subject,cen:e.centre,col:e.college}});case 4:"object"!==typeof(i=t.sent).data?(c={header:"Error",content:"Something went wrong"},n(Object(l.w)(c))):-1===i.data.error_code?(u={header:"Error",content:i.data.data.msg},n(Object(l.w)(u))):(p={header:"Success",content:i.data.data.msg},n(Object(l.w)(p)));case 6:case"end":return t.stop()}},t)}));return function(e,n){return t.apply(this,arguments)}}()}}}]);
//# sourceMappingURL=44.12df618b.chunk.js.map