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.147.51.72
(window.webpackJsonp=window.webpackJsonp||[]).push([[74],{1066:function(e,t,n){"use strict";n.r(t);var a=n(0),r=n(3),o=n(41),s=n.n(o),l=n(68),c=n(99),i=n(100),u=n(102),p=n(101),f=n(103),d=n(1),h=n.n(d),m=n(858),g=n(1139),v=n(1106),w=n(272),k=n(1098),b=n(1100),C=n(999),E=n(104),y=n(266),O=n(271),S=n(270),j=n(323),x=n(284),D=n.n(x),M=n(273),R=n.n(M),L=function(e){function t(){var e,n;Object(c.a)(this,t);for(var o=arguments.length,i=new Array(o),f=0;f<o;f++)i[f]=arguments[f];return(n=Object(u.a)(this,(e=Object(p.a)(t)).call.apply(e,[this].concat(i)))).state={degfrom:"0",degto:"ZZZZZ",clgfrom:"0",clgto:"ZZZZZ",regfrom:"0",regto:"ZZZZZ",fdatefrom:D()().format("DD/MM/YYYY"),fdateto:D()().format("DD/MM/YYYY"),degree:"",fexamrange:"ABCDEF",table:!1,provider:"All",reportformat:"",rtype:""},n.handleChangedegfrom=function(){var e=Object(l.a)(s.a.mark(function e(t,a){return s.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:console.log(n.state),n.setState({degfrom:a.value});case 2:case"end":return e.stop()}},e)}));return function(t,n){return e.apply(this,arguments)}}(),n.handleCancel=function(){var e=Object(l.a)(s.a.mark(function e(t,a){return s.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:n.setState({degfrom:"0",degto:"ZZZZZ",clgfrom:"0",clgto:"ZZZZZ",regfrom:"0",regto:"ZZZZZ",fdatefrom:D()().format("DD/MM/YYYY"),fdateto:D()().format("DD/MM/YYYY"),degree:"",table:!1,provider:"All"});case 1:case"end":return e.stop()}},e)}));return function(t,n){return e.apply(this,arguments)}}(),n.handleChange=function(){var e=Object(l.a)(s.a.mark(function e(t,a){return s.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:n.setState(Object(r.a)({},a.name,a.value.toUpperCase()));case 1:case"end":return e.stop()}},e)}));return function(t,n){return e.apply(this,arguments)}}(),n.handleChangedegto=function(){var e=Object(l.a)(s.a.mark(function e(t,a){return s.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:console.log(n.state),n.setState({degto:a.value});case 2:case"end":return e.stop()}},e)}));return function(t,n){return e.apply(this,arguments)}}(),n.handleChangeclgfrom=function(){var e=Object(l.a)(s.a.mark(function e(t,a){return s.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:console.log(n.state),n.setState({clgfrom:a.value});case 2:case"end":return e.stop()}},e)}));return function(t,n){return e.apply(this,arguments)}}(),n.handleChangeclgto=function(){var e=Object(l.a)(s.a.mark(function e(t,a){return s.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:console.log(n.state),n.setState({clgto:a.value});case 2:case"end":return e.stop()}},e)}));return function(t,n){return e.apply(this,arguments)}}(),n.handleChangeregfrom=function(){var e=Object(l.a)(s.a.mark(function e(t,a){return s.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:console.log(n.state),n.setState({regfrom:a.value});case 2:case"end":return e.stop()}},e)}));return function(t,n){return e.apply(this,arguments)}}(),n.handleChangeregto=function(){var e=Object(l.a)(s.a.mark(function e(t,a){return s.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:console.log(n.state),n.setState({regto:a.value});case 2: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.handleChangeprovider=function(e,t){n.setState({provider:t.value})},n.handleChangeReportFormat=function(e,t){console.log(t.name,t.value),n.setState(Object(r.a)({},t.name,t.value))},n.handleChangeReportType=function(e,t){console.log(t.name,t.value),n.setState(Object(r.a)({},t.name,t.value))},n.changecenter=function(e,t,o){var s;console.log(e,t,o),s=Object(a.a)({},t,Object(r.a)({},e.name,e.value)),n.props.changecenterpractical(s,o)},n.handleReport=function(){var e=n.state.fexamrange;e=e.split("").join("','");var t=n.props.user,a=(t.fdeggrp,t.fcuruniv),r=n.state,o=r.degfrom,s=r.degto,l=r.regfrom,c=r.regto,i=r.fdatefrom,u=r.fdateto,p=(r.reporttype,r.Examno,r.degree,r.clgfrom),f=r.clgto,d=(r.fexamrange,r.table,r.provider),h=r.reportformat;"detailed"==r.rtype?"PDF"==h?window.open(O.c+"reconReport&univcode="+a+"®from="+l+"®to="+c+"&fcollfrom="+p+"&fcollto="+f+"&fdegfrom="+o+"&fdegto="+s+"&fdatefrom="+i+"&fdateto="+u+"&provider="+d+"&fexamrange="+e+"&fcollcode="+n.props.user.fcollcode,"_blank"):window.open(O.c+"reconReportExcel&univcode="+a+"®from="+l+"®to="+c+"&fcollfrom="+p+"&fcollto="+f+"&fdegfrom="+o+"&fdegto="+s+"&fdatefrom="+i+"&fdateto="+u+"&provider="+d+"&fexamrange="+e+"&fcollcode="+n.props.user.fcollcode,"_blank"):"PDF"==h?window.open(O.c+"reconReportSummary&univcode="+a+"®from="+l+"®to="+c+"&fcollfrom="+p+"&fcollto="+f+"&fdegfrom="+o+"&fdegto="+s+"&fdatefrom="+i+"&fdateto="+u+"&provider="+d+"&fexamrange="+e+"&fcollcode="+n.props.user.fcollcode,"_blank"):window.open(O.c+"reconReportSummaryExcel&univcode="+a+"®from="+l+"®to="+c+"&fcollfrom="+p+"&fcollto="+f+"&fdegfrom="+o+"&fdegto="+s+"&fdatefrom="+i+"&fdateto="+u+"&provider="+d+"&fexamrange="+e+"&fcollcode="+n.props.user.fcollcode,"_blank")},n.renderHeader=function(){return h.a.createElement(g.a.Header,{style:{display:"flex"}},h.a.createElement("h3",null,"Reconciliation Report"),h.a.createElement("div",{className:"ml-auto"},h.a.createElement(v.a,{basic:!0,color:"green",icon:"save",content:"Report",onClick:n.handleReport}),h.a.createElement(v.a,{basic:!0,color:"black",icon:"ban",content:"Cancel",onClick:n.handleCancel}),h.a.createElement(m.a,{to:"/dashboard"},h.a.createElement(v.a,{basic:!0,color:"red",content:"Exit",icon:"home"}))))},n}return Object(f.a)(t,e),Object(i.a)(t,[{key:"componentDidMount",value:function(){}},{key:"render",value:function(){var e=this.state,t=(e.degfrom,e.degto,e.regfrom,e.regto,e.fdatefrom),n=e.fdateto,a=(e.reporttype,e.Examno,e.degree,e.clgfrom,e.clgto,e.fexamrange,e.table,e.provider),r=e.reportformat,o=e.rtype,s={n:"[0-1]",m:"[0-9]",e:"[0-3]",d:"[0-9]",z:"[1-2]",y:"[0-9]"},l=Object(S.i)();this.props.degreeList.map(function(e){return{value:e.fdegree,text:"".concat(e.fdegree,"- ").concat(e.fdescpn)}});return h.a.createElement("div",{className:"animated fadeIn"},h.a.createElement(g.a,{fluid:!0},h.a.createElement(g.a.Content,null,this.renderHeader(),h.a.createElement(w.a,null),h.a.createElement(g.a.Description,{style:{overflowY:"auto",overflowX:"hidden",height:"".concat(l,"px")}},h.a.createElement("div",{className:"col-md-4"},h.a.createElement(k.a,null,h.a.createElement("div",null,h.a.createElement(k.a.Group,null,h.a.createElement(k.a.Field,{width:16},h.a.createElement("label",null,"Provider"),h.a.createElement(b.a,{placeholder:"Select Provider",name:"provider",value:a,selection:!0,search:!0,options:[{value:"All",text:"All"},{value:"paytm",text:"Paytm"},{value:"razorpay",text:"Razorpay"}],onChange:this.handleChangeprovider}))),h.a.createElement(k.a.Group,null,h.a.createElement(k.a.Field,{width:8},h.a.createElement("label",null," Date Range "),h.a.createElement(R.a,{formatChars:s,type:"text",value:t,mask:"ed/nm/zyyy",placeholder:"From",name:"fdatefrom",onChange:this.handleChangedate})),h.a.createElement(k.a.Field,{width:8},h.a.createElement(R.a,{formatChars:s,type:"text",value:n,mask:"ed/nm/zyyy",placeholder:"To",name:"fdateto",onChange:this.handleChangedate,style:{marginTop:"1.6em"}}))),h.a.createElement("label",null," Report Type "),h.a.createElement(k.a.Group,{inline:!0},h.a.createElement(k.a.Field,{width:8},h.a.createElement(k.a.Field,{control:C.a,name:"rtype",label:"Detailed",value:"detailed",checked:"detailed"===o,onChange:this.handleChangeReportType}),h.a.createElement(k.a.Field,{control:C.a,name:"rtype",label:"Summary",value:"summary",checked:"summary"===o,onChange:this.handleChangeReportType}))),h.a.createElement("label",null," Report Format "),h.a.createElement(k.a.Group,{inline:!0},h.a.createElement(k.a.Field,{width:8},h.a.createElement(k.a.Field,{control:C.a,name:"reportformat",label:"PDF",value:"PDF",checked:"PDF"===r,onChange:this.handleChangeReportFormat}),h.a.createElement(k.a.Field,{control:C.a,name:"reportformat",label:"EXCEL",value:"Excel",checked:"Excel"===r,onChange:this.handleChangeReportFormat}))))))))))}}]),t}(d.Component);t.default=Object(E.b)(function(e){return console.log(e),{degreelist:e.resultStatsDegList,collegelist:e.resultStatsClgList,user:e.user,degreeList:e.studyDegree,practicalTable:e.practicalCenter}},{getDegreeList:j.d,getpracticalcenters:j.f,changecenterpractical:j.a,showError:y.w,updatepracticalcenter:j.i})(L)},273:function(e,t,n){e.exports=n(274)},274:function(e,t,n){"use strict";var a,r=(a=n(1))&&"object"==typeof a&&"default"in a?a.default:a,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 a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e}).apply(this,arguments)}function l(e,t){e.prototype=Object.create(t.prototype),function(e,t){for(var n=Object.getOwnPropertyNames(t),a=0;a<n.length;a++){var r=n[a],o=Object.getOwnPropertyDescriptor(t,r);o&&o.configurable&&void 0===e[r]&&Object.defineProperty(e,r,o)}}(e.prototype.constructor=e,t)}function c(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}var i=function(e,t,n,a,r,o,s,l){if(!e){var c;if(void 0===t)c=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var i=[n,a,r,o,s,l],u=0;(c=new Error(t.replace(/%s/g,function(){return i[u++]}))).name="Invariant Violation"}throw c.framesToPop=1,c}};function u(e,t,n){if("selectionStart"in e&&"selectionEnd"in e)e.selectionStart=t,e.selectionEnd=n;else{var a=e.createTextRange();a.collapse(!0),a.moveStart("character",t),a.moveEnd("character",n-t),a.select()}}var p={9:"[0-9]",a:"[A-Za-z]","*":"[A-Za-z0-9]"},f="_";function d(e,t,n){var a="",r="",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(a.length),a.length===s.length-1&&(r+=e)):o=a.length+1,a+=e,!1)}),{maskChar:t,formatChars:n,prefix:r,mask:a,lastEditablePosition:o,permanents:s}}function h(e,t){return-1!==e.permanents.indexOf(t)}function m(e,t,n){var a=e.mask,r=e.formatChars;if(!n)return!1;if(h(e,t))return a[t]===n;var o=r[a[t]];return new RegExp(o).test(n)}function g(e,t){return t.split("").every(function(t,n){return h(e,n)||!m(e,n,t)})}function v(e,t){var n=e.maskChar,a=e.prefix;if(!n){for(;t.length>a.length&&h(e,t.length-1);)t=t.slice(0,t.length-1);return t.length}for(var r=a.length,o=t.length;o>=a.length;o--){var s=t[o];if(!h(e,o)&&m(e,o,s)){r=o+1;break}}return r}function w(e,t){return v(e,t)===e.mask.length}function k(e,t){var n=e.maskChar,a=e.mask,r=e.prefix;if(!n){for((t=b(e,"",t,0)).length<r.length&&(t=r);t.length<a.length&&h(e,t.length);)t+=a[t.length];return t}if(t)return b(e,k(e,""),t,0);for(var o=0;o<a.length;o++)h(e,o)?t+=a[o]:t+=n;return t}function b(e,t,n,a){var r=e.mask,o=e.maskChar,s=e.prefix,l=n.split(""),c=w(e,t);return!o&&a>t.length&&(t+=r.slice(t.length,a)),l.every(function(n){for(;u=n,h(e,i=a)&&u!==r[i];){if(a>=t.length&&(t+=r[a]),l=n,o&&h(e,a)&&l===o)return!0;if(++a>=r.length)return!1}var l,i,u;return!m(e,a,n)&&n!==o||(a<t.length?t=o||c||a<s.length?t.slice(0,a)+n+t.slice(a+1):(t=t.slice(0,a)+n+t.slice(a),k(e,t)):o||(t+=n),++a<r.length)}),t}function C(e,t){for(var n=e.mask,a=t;a<n.length;++a)if(!h(e,a))return a;return null}function E(e){return e||0===e?e+"":""}function y(e,t,n,a,r){var o=e.mask,s=e.prefix,l=e.lastEditablePosition,c=t,i="",u=0,p=0,f=Math.min(r.start,n.start);return n.end>r.start?p=(u=function(e,t,n,a){var r=e.mask,o=e.maskChar,s=n.split(""),l=a;return s.every(function(t){for(;s=t,h(e,n=a)&&s!==r[n];)if(++a>=r.length)return!1;var n,s;return(m(e,a,t)||t===o)&&a++,a<r.length}),a-l}(e,0,i=c.slice(r.start,n.end),f))?r.length:0:c.length<a.length&&(p=a.length-c.length),c=a,p&&(1!==p||r.length||(f=r.start===n.start?C(e,n.start):function(e,t){for(var n=t;0<=n;--n)if(!h(e,n))return n;return null}(e,n.start)),c=function(e,t,n,a){var r=n+a,o=e.maskChar,s=e.mask,l=e.prefix,c=t.split("");if(o)return c.map(function(t,a){return a<n||r<=a?t:h(e,a)?s[a]:o}).join("");for(var i=r;i<c.length;i++)h(e,i)&&(c[i]="");return n=Math.max(l.length,n),c.splice(n,r-n),t=c.join(""),k(e,t)}(e,c,f,p)),c=b(e,c,i,f),(f+=u)>=o.length?f=o.length:f<s.length&&!u?f=s.length:f>=s.length&&f<l&&u&&(f=C(e,f)),i||(i=null),{value:c=k(e,c),enteredString:i,selection:{start:f,end:f}}}function O(e){return"function"==typeof e}function S(){return window.cancelAnimationFrame||window.webkitCancelRequestAnimationFrame||window.webkitCancelAnimationFrame||window.mozCancelAnimationFrame}function j(e){return(S()?window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame:function(){return setTimeout(e,1e3/60)})(e)}function x(e){(S()||clearTimeout)(e)}var D=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=j(n.saveSelectionLoop)},n.runSaveSelectionLoop=function(){null===n.saveSelectionLoopDeferId&&n.saveSelectionLoop()},n.stopSaveSelectionLoop=function(){null!==n.saveSelectionLoopDeferId&&(x(n.saveSelectionLoopDeferId),n.saveSelectionLoopDeferId=null,n.previousSelection=null)},n.getInputDOMNode=function(){if(!n.mounted)return null;var e=o.findDOMNode(c(c(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=C(n.maskOptions,e);null!==t&&n.setCursorPosition(t)},n.setSelection=function(e,t,a){void 0===a&&(a={});var r=n.getInputDOMNode(),o=n.isFocused();r&&o&&(a.deferred||u(r,e,t),null!==n.selectionDeferId&&x(n.selectionDeferId),n.selectionDeferId=j(function(){n.selectionDeferId=null,u(r,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 a=document.selection.createRange();a.parentElement()===e&&(t=-a.moveStart("character",-e.value.length),n=-a.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,a=e.maskChar,r=e.permanents,o=e.formatChars;return{mask:t,maskChar:a,permanents:r,alwaysShowMask:!!n.props.alwaysShowMask,formatChars:o}},n.isInputAutofilled=function(e,t,a,r){var o=n.getInputDOMNode();try{if(o.matches(":-webkit-autofill"))return!0}catch(i){}return!n.focused||r.end<a.length&&t.end===e.length},n.onChange=function(e){var t=c(c(n)).beforePasteState,a=c(c(n)).previousSelection,r=n.props.beforeMaskedValueChange,o=n.getInputValue(),s=n.value,l=n.getSelection();n.isInputAutofilled(o,l,s,a)&&(s=k(n.maskOptions,""),a={start:0,end:0,length:0}),t&&(a=t.selection,s=t.value,l={start:a.start+o.length,end:a.start+o.length,length:0},o=s.slice(0,a.start)+o+s.slice(a.end),n.beforePasteState=null);var i=y(n.maskOptions,o,l,s,a),u=i.enteredString,p=i.selection,f=i.value;if(O(r)){var d=r({value:f,selection:p},{value:s,selection:a},u,n.getBeforeMaskedValueChangeConfig());f=d.value,p=d.selection}n.setInputValue(f),O(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,a=n.maskOptions,r=a.mask,o=a.prefix;if(n.focused=!0,n.mounted=!0,r){if(n.value)v(n.maskOptions,n.value)<n.maskOptions.mask.length&&n.setCursorToEnd();else{var s=k(n.maskOptions,o),l=k(n.maskOptions,s),c=v(n.maskOptions,l),i=C(n.maskOptions,c),u={start:i,end:i};if(O(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&&O(n.props.onChange)&&n.props.onChange(e),n.setSelection(u.start,u.end)}n.runSaveSelectionLoop()}O(n.props.onFocus)&&n.props.onFocus(e)},n.onBlur=function(e){var t=n.props.beforeMaskedValueChange,a=n.maskOptions.mask;if(n.stopSaveSelectionLoop(),n.focused=!1,a&&!n.props.alwaysShowMask&&g(n.maskOptions,n.value)){var r="";O(t)&&(r=t({value:r,selection:null},{value:n.value,selection:n.previousSelection},null,n.getBeforeMaskedValueChangeConfig()).value);var o=r!==n.getInputValue();o&&n.setInputValue(r),o&&O(n.props.onChange)&&n.props.onChange(e)}O(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 a=Math.abs(t.clientX-n.mouseDownX),r=Math.abs(t.clientY-n.mouseDownY),o=Math.max(a,r),s=(new Date).getTime()-n.mouseDownTime;(o<=10&&s<=200||o<=5&&s<=300)&&n.setCursorToEnd()}})}O(n.props.onMouseDown)&&n.props.onMouseDown(e)},n.onPaste=function(e){O(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&&O(n.props.inputRef)&&n.props.inputRef(e)};var a=t.mask,r=t.maskChar,s=t.formatChars,l=t.alwaysShowMask,i=t.beforeMaskedValueChange,p=t.defaultValue,f=t.value;n.maskOptions=d(a,r,s),null==p&&(p=""),null==f&&(f=p);var h=E(f);if(n.maskOptions.mask&&(l||h)&&(h=k(n.maskOptions,h),O(i))){var m=t.value;null==t.value&&(m=p),h=i({value:h,selection:null},{value:m=E(m),selection:null},null,n.getBeforeMaskedValueChangeConfig()).value}return n.value=h,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,a=t.alwaysShowMask,r=t.mask,o=t.maskChar,s=t.formatChars,l=this.maskOptions,c=a||this.isFocused(),i=null!=this.props.value,u=i?E(this.props.value):this.value,p=e?e.start:null;if(this.maskOptions=d(r,o,s),this.maskOptions.mask){!l.mask&&this.isFocused()&&this.runSaveSelectionLoop();var f=this.maskOptions.mask&&this.maskOptions.mask!==l.mask;if(l.mask||i||(u=this.getInputValue()),(f||this.maskOptions.mask&&(u||c))&&(u=k(this.maskOptions,u)),f){var h=v(this.maskOptions,u);(null===p||h<p)&&(p=w(this.maskOptions,u)?h:C(this.maskOptions,h))}!this.maskOptions.mask||!g(this.maskOptions,u)||c||i&&this.props.value||(u="");var m={start:p,end:p};if(O(n)){var b=n({value:u,selection:m},{value:this.value,selection:this.previousSelection},null,this.getBeforeMaskedValueChangeConfig());u=b.value,m=b.selection}this.value=u;var y=this.getInputValue()!==this.value;y?(this.setInputValue(this.value),this.forceUpdate()):f&&this.forceUpdate();var S=!1;null!=m.start&&null!=m.end&&(S=!e||e.start!==m.start||e.end!==m.end),(S||y)&&this.setSelection(m.start,m.end)}else l.mask&&(this.stopSaveSelectionLoop(),this.forceUpdate())},n.componentWillUnmount=function(){this.mounted=!1,null!==this.selectionDeferId&&x(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),a=function(e,t){if(null==e)return{};var n,a,r={},o=Object.keys(e);for(a=0;a<o.length;a++)n=o[a],0<=t.indexOf(n)||(r[n]=e[n]);return r}(t,["mask","alwaysShowMask","maskChar","formatChars","inputRef","beforeMaskedValueChange","children"]);if(n){O(n)||i(!1);var o=["onChange","onPaste","onMouseDown","onFocus","onBlur","value","disabled","readOnly"],l=s({},a);o.forEach(function(e){return delete l[e]}),e=n(l),o.filter(function(t){return null!=e.props[t]&&e.props[t]!==a[t]}).length&&i(!1)}else e=r.createElement("input",s({ref:this.handleRef},a));var c={onFocus:this.onFocus,onBlur:this.onBlur};return this.maskOptions.mask&&(a.disabled||a.readOnly||(c.onChange=this.onChange,c.onPaste=this.onPaste,c.onMouseDown=this.onMouseDown),null!=a.value&&(c.value=this.value)),e=r.cloneElement(e,c)},t}(r.Component);e.exports=D},323:function(e,t,n){"use strict";n.d(t,"g",function(){return c}),n.d(t,"d",function(){return i}),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 h}),n.d(t,"b",function(){return m}),n.d(t,"h",function(){return g});var a=n(41),r=n.n(a),o=n(68),s=n(269),l=n(266),c=function(){return function(){var e=Object(o.a)(r.a.mark(function e(t,n){var a,o,c,i;return r.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return a=n(),t({type:"SET_LOADER"}),e.next=4,s.a.get("/app.php",{params:{a:"getdeggrprvrt",univcode:a.user.fcuruniv}});case 4:o=e.sent,t({type:"UNSET_LOADER"}),"object"!==typeof o.data?(c={header:"Error",content:"Something went wrong"},t(Object(l.w)(c))):-1===o.data.error_code?(i={header:"Error",content:o.data.data.msg},t(Object(l.w)(i))):t({type:"RVRT_DEGGRP",payload:o.data});case 7:case"end":return e.stop()}},e)}));return function(t,n){return e.apply(this,arguments)}}()},i=function(e){return function(){var t=Object(o.a)(r.a.mark(function t(n,a){var o,c,i,u;return r.a.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return o=a(),console.log(o),t.next=4,s.a.get("app.php?a=PracticalCenterDegreeList&univcode="+o.univ.funivcode+"°grp="+e);case 4:"object"!==typeof(c=t.sent).data?(i={header:"Error",content:"Something went wrong"},n(Object(l.w)(i))):-1===c.data.error_code?(u={header:"Error",content:c.data.data.msg},n(Object(l.w)(u))):(console.log(c.data),n({type:"ALL_DEGREE_LIST",payload:c.data}));case 6:case"end":return t.stop()}},t)}));return function(e,n){return t.apply(this,arguments)}}()},u=function(e,t,n,a,c,i,u){return function(){var p=Object(o.a)(r.a.mark(function o(p,f){var d,h,m,g;return r.a.wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return d=f(),console.log(d),r.next=4,s.a.get("app.php?a=PracticalCenterData&univcode="+d.univ.funivcode+"&fcollcode="+d.user.fcollcode+"°grpfrom="+n+"°grpto="+a+"&subfrom="+e+"&subto="+t+"°ree="+c+"&clgfrom="+i+"&clgto="+u);case 4:"object"!==typeof(h=r.sent).data?(m={header:"Error",content:"Something went wrong"},p(Object(l.w)(m))):-1===h.data.error_code?(g={header:"Error",content:h.data.data.msg},p(Object(l.w)(g))):(console.log(h.data),p({type:"PRACTICAL_CENTERS",payload:h.data}));case 6:case"end":return r.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,a,c){return function(){var i=Object(o.a)(r.a.mark(function o(i,u){var p,f,d,h,m;return r.a.wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return p=u(),console.log(e,t,n),i({type:"SET_LOADER"}),r.next=5,s.a.post("/app.php?a=updatepracticalcenter&univcode="+p.univ.funivcode,{data:{fdeggrp:n,univcode:p.univ.funivcode,updcntr:e,subfrom:a,subto:c,user:p.user,deg:t}});case 5:f=r.sent,i({type:"UNSET_LOADER"}),"object"!==typeof f.data?i({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},i(Object(l.w)(d))):0===f.data.error_code?(h={header:"Success",content:f.data.data.msg},i(Object(l.w)(h))):(m={header:"Error",content:"Something went wrong"},i(Object(l.w)(m)));case 8:case"end":return r.stop()}},o)}));return function(e,t){return i.apply(this,arguments)}}()},d=function(e){return function(){var t=Object(o.a)(r.a.mark(function t(n,a){var o,c,i,u;return r.a.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return o=a(),console.log(o),t.next=4,s.a.get("/app.php",{params:{a:"PracticalCenterCollegeList",univcode:o.user.fcuruniv,degree:e}});case 4:"object"!==typeof(c=t.sent).data?(i={header:"Error",content:"Something went wrong"},n(Object(l.w)(i))):-1===c.data.error_code?(u={header:"Error",content:c.data.data.msg},n(Object(l.w)(u))):(console.log(c.data),n({type:"ALL_COLLEGE_LIST",payload:c.data}));case 6:case"end":return t.stop()}},t)}));return function(e,n){return t.apply(this,arguments)}}()},h=function(e){return function(){var t=Object(o.a)(r.a.mark(function t(n,a){var o,c,i,u;return r.a.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return o=a(),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(c=t.sent).data?(i={header:"Error",content:"Something went wrong"},n(Object(l.w)(i))):-1===c.data.error_code?(u={header:"Error",content:c.data.data.msg},n(Object(l.w)(u))):(console.log(c.data),n({type:"ALL_SUBJECT_LIST",payload:c.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)(r.a.mark(function e(t,n){var a,o,c,i;return r.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return a=n(),console.log(a),e.next=4,s.a.get("/app.php",{params:{a:"PracticalCenterCodeList",univcode:a.user.fcuruniv}});case 4:"object"!==typeof(o=e.sent).data?(c={header:"Error",content:"Something went wrong"},t(Object(l.w)(c))):-1===o.data.error_code?(i={header:"Error",content:o.data.data.msg},t(Object(l.w)(i))):(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)}}()},g=function(e){return function(){var t=Object(o.a)(r.a.mark(function t(n,a){var o,c,i,u,p;return r.a.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return o=a(),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(c=t.sent).data?(i={header:"Error",content:"Something went wrong"},n(Object(l.w)(i))):-1===c.data.error_code?(u={header:"Error",content:c.data.data.msg},n(Object(l.w)(u))):(p={header:"Success",content:c.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=74.decb39f6.chunk.js.map
|