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.149.24.70
(window.webpackJsonp=window.webpackJsonp||[]).push([[79],{1121:function(e,t,n){"use strict";n.r(t);var a=n(3),r=n(99),o=n(100),l=n(102),s=n(101),i=n(103),u=n(1),c=n.n(u),p=n(104),f=n(1139),m=n(1106),d=n(272),h=n(1098),g=n(1100),v=n(858),C=n(266),k=n(41),E=n.n(k),y=n(68),w=n(269),b=n(271),S=n(1e3),O=n(1101),D=(n(167),function(e){function t(){var e,n;Object(r.a)(this,t);for(var a=arguments.length,o=new Array(a),i=0;i<a;i++)o[i]=arguments[i];return(n=Object(l.a)(this,(e=Object(s.a)(t)).call.apply(e,[this].concat(o)))).state={tdata:!1,cntrdet:[],searchVal:""},n.searchTable=function(e,t){var a=t.value,r=n.props.tblData.filter(function(e){return Object.keys(e).some(function(t){return e[t].toLowerCase().includes(a.toLowerCase())})});n.setState({cntrdet:r,searchVal:t.value})},n}return Object(i.a)(t,e),Object(o.a)(t,[{key:"componentDidMount",value:function(){this.setState({cntrdet:this.props.tblData})}},{key:"componentDidUpdate",value:function(e){this.props.tblData!==e.tblData&&this.setState({cntrdet:this.props.tblData})}},{key:"render",value:function(){var e=this.state.cntrdet;if(!(e.lenght=0))return c.a.createElement("div",null,c.a.createElement(d.a,null),c.a.createElement("div",{style:{marginBottom:"1em",backgroundColor:"white"},className:"stick"},c.a.createElement(S.a,{icon:"search",fluid:!0,placeholder:"Search...",onChange:this.searchTable,value:this.state.searchVal,style:{fontSize:"1.1em"}})),c.a.createElement("div",null,c.a.createElement(O.a,{celled:!0,padded:!0,selectable:!0,size:"small",color:"olive",className:"sticky",unstackable:!0},c.a.createElement(O.a.Header,null,c.a.createElement(O.a.Row,{textAlign:"center"},c.a.createElement(O.a.HeaderCell,null,"Sl.No."),c.a.createElement(O.a.HeaderCell,null,"QP Code"),c.a.createElement(O.a.HeaderCell,null,"Subject Name "),c.a.createElement(O.a.HeaderCell,null,"Center Code"),c.a.createElement(O.a.HeaderCell,null,"Center Name"),c.a.createElement(O.a.HeaderCell,null,"Session"),c.a.createElement(O.a.HeaderCell,null,"Date of Exam"),c.a.createElement(O.a.HeaderCell,null,"Total Count"),c.a.createElement(O.a.HeaderCell,null,"Absent Count"),c.a.createElement(O.a.HeaderCell,null,"MalPractice Count"),c.a.createElement(O.a.HeaderCell,null,"Present Count "))),c.a.createElement(O.a.Body,null,e.map(function(e,t){return c.a.createElement(O.a.Row,{key:t,style:{overflow:"hidden"}},c.a.createElement(O.a.Cell,{textAlign:"center"},t+1),c.a.createElement(O.a.Cell,{textAlign:"center"},e.fqpcode),c.a.createElement(O.a.Cell,null,e.fsubname),c.a.createElement(O.a.Cell,{textAlign:"center"},e.fcntrcode),c.a.createElement(O.a.Cell,null,e.collegecenter),c.a.createElement(O.a.Cell,null,e.fdescpn),c.a.createElement(O.a.Cell,null,e.fdoe),c.a.createElement(O.a.Cell,null,e.tcount),c.a.createElement(O.a.Cell,null,e.abcount),c.a.createElement(O.a.Cell,null,e.mpcount),c.a.createElement(O.a.Cell,null,e.prcount))})))))}}]),t}(u.Component)),x=n(273),M=n.n(x),I=n(288),j=n(270),R=n(284),P=n.n(R),T=function(e){function t(){var e,n;Object(r.a)(this,t);for(var o=arguments.length,i=new Array(o),u=0;u<o;u++)i[u]=arguments[u];return(n=Object(l.a)(this,(e=Object(s.a)(t)).call.apply(e,[this].concat(i)))).state={cntrdata:!1,fqpfrm:"0",fqpto:"ZZZZZ",fdatefrom:P()().format("DD/MM/YYYY"),fdateto:P()().format("DD/MM/YYYY"),rtype:"QPCode wise",stype:"b",fcntrfrom:"0",fcntrto:"ZZZZ",fyear:"",fexamtype:"",fdeggrp:"",fexamdate:""},n.handleCancel=function(){n.setState({cntrdata:!1,fqpfrm:"0",fqpto:"ZZZZZ",fdatefrom:P()().format("DD/MM/YYYY"),fdateto:P()().format("DD/MM/YYYY"),rtype:"QPCode wise",stype:"b",fcntrfrom:"0",fcntrto:"ZZZZ"})},n.changeDeggrp=function(e,t){console.log(t.value);var a=n.props.deggrp.filter(function(e,n){return e.fdeggrp===t.value})[0];n.setState({fyear:a.fyear,fexamtype:a.fexamtype,fexamdate:a.fexamdate,fdeggrp:t.value,frmSubmit:!1})},n.handleChangedate=function(e){n.setState(Object(a.a)({},e.target.name,e.target.value))},n.handleChange=function(e,t){n.setState(Object(a.a)({},t.name,t.value))},n.handleReport=function(){var e=n.state,t=e.fqpfrm,a=e.fqpto,r=e.fdatefrom,o=e.fdateto,l=e.rtype,s=e.stype,i=e.fcntrfrom,u=e.fcntrto,c=e.fdeggrp;if(""!==c)window.open(b.c+"examCntr&univcode="+n.props.univcode+"&dgp="+c+"&qpfrm="+t+"&qpto="+a+"&fdatefrom="+r+"&fdateto="+o+"&rtype="+l+"&fcntrfrom="+i+"&fcntrto="+u+"&stype="+s+"&user="+JSON.stringify(n.props.user),"_blank");else{n.props.showError({header:"Error",content:"Select Degree Group"})}},n.handleTable=function(){var e=n.state,t=e.fdeggrp,a=e.fqpfrm,r=e.fqpto,o=e.fdatefrom,l=e.fdateto,s=e.rtype,i=e.stype,u=e.fcntrfrom,c=e.fcntrto;if(""!==t)n.props.getExmCntr(a,r,o,l,s,i,u,c,t),n.setState({cntrdata:!0});else{n.props.showError({header:"Error",content:"Select Degree Group"})}},n}return Object(i.a)(t,e),Object(o.a)(t,[{key:"componentDidMount",value:function(){this.props.fetchDegGrp()}},{key:"render",value:function(){var e=this.state,t=e.fqpto,n=e.fqpfrm,a=e.fdatefrom,r=e.fdateto,o=e.rtype,l=e.stype,s=e.fcntrfrom,i=e.fcntrto,u=e.fyear,p=e.fexamtype,C=e.fdeggrp,k=e.fexamdate,E={n:"[0-1]",m:"[0-9]",e:"[0-3]",d:"[0-9]",z:"[1-2]",y:"[0-9]"},y=Object(j.i)();return c.a.createElement("div",{className:"animated fadeIn"},c.a.createElement(f.a,{fluid:!0},c.a.createElement(f.a.Content,null,c.a.createElement(f.a.Header,{style:{display:"flex"}},c.a.createElement("h4",null,"Exam Center Report"),c.a.createElement("div",{className:"ml-auto"},c.a.createElement(m.a,{basic:!0,color:"blue",onClick:this.handleReport,content:"Report",icon:"file"}),c.a.createElement(m.a,{basic:!0,color:"black",icon:"ban",onClick:this.handleCancel,content:"Cancel"}),c.a.createElement(v.a,{to:"/dashboard"},c.a.createElement(m.a,{basic:!0,color:"red",content:"Exit",icon:"home"})))),c.a.createElement(d.a,null),c.a.createElement(f.a.Description,{style:{height:"".concat(y,"px"),overflowY:"auto"}},c.a.createElement("div",{className:"col-md-8 col-lg-8 col-sm-12"},c.a.createElement(h.a,null,c.a.createElement(I.a,{pdeggrp:{fdeggrp:C,fyear:u,fexamtype:p,fexamdate:k},changeDeggrp:this.changeDeggrp}),c.a.createElement(h.a.Group,null,c.a.createElement(h.a.Field,{width:9},c.a.createElement("label",null," Date Range "),c.a.createElement(M.a,{formatChars:E,type:"text",value:a,mask:"ed/nm/zyyy",placeholder:"From",name:"fdatefrom",onChange:this.handleChangedate})),c.a.createElement(h.a.Field,{width:9},c.a.createElement(M.a,{formatChars:E,type:"text",value:r,mask:"ed/nm/zyyy",placeholder:"To",name:"fdateto",onChange:this.handleChangedate,style:{marginTop:"1.6em"}}))),c.a.createElement(h.a.Group,null,c.a.createElement(h.a.Input,{placeholder:"From",value:n,width:9,name:"fqpfrm",onChange:this.handleChange,maxLength:"5",label:"QPCode Range"}),c.a.createElement(h.a.Input,{placeholder:"To",name:"fqpto",value:t,width:9,onChange:this.handleChange,maxLength:"5",style:{marginTop:"1.6em"}})),this.props.user.fcurtype<500?c.a.createElement(h.a.Group,null,c.a.createElement(h.a.Input,{placeholder:"From",value:s,width:9,name:"fcntrfrom",onChange:this.handleChange,maxLength:"5",label:"Centre Range"}),c.a.createElement(h.a.Input,{placeholder:"To",name:"fcntrto",value:i,width:9,onChange:this.handleChange,maxLength:"5",style:{marginTop:"1.6em"}})):null,c.a.createElement(h.a.Group,null,c.a.createElement(h.a.Field,{width:9},c.a.createElement("label",null,"Session Type"),c.a.createElement(g.a,{placeholder:"Report",search:!0,selection:!0,name:"stype",value:l,options:[{key:"b",value:"b",text:"Both"},{key:"m",value:"m",text:"Morning Session"},{key:"n",value:"n",text:"Afternoon Session"}],onChange:this.handleChange})),c.a.createElement(h.a.Field,{width:9},c.a.createElement("label",null,"Report Type"),c.a.createElement(g.a,{placeholder:"Report",search:!0,selection:!0,name:"rtype",value:o,options:[{key:"QPCode wise",value:"QPCode wise",text:"QPCode wise"},{key:"Center Wise",value:"Center Wise",text:"Center Wise"}],onChange:this.handleChange}))),c.a.createElement(m.a,{color:"blue",onClick:this.handleTable,content:"Submit"}))),this.state.cntrdata?c.a.createElement(D,{tblData:this.props.getExmCntrs}):null))))}}]),t}(u.Component);t.default=Object(p.b)(function(e){return{deggrp:e.deggrp,univcode:e.univ.funivcode,getExmCntrs:e.getExmCntrs,user:e.user}},{showError:C.w,getExmCntr:function(e,t,n,a,r,o,l,s,i){return function(){var u=Object(y.a)(E.a.mark(function u(c,p){var f,m;return E.a.wrap(function(u){for(;;)switch(u.prev=u.next){case 0:return f=p(),c({type:"SET_LOADER"}),u.next=4,w.a.get("/app.php",{params:{a:"getExmCntr",univcode:f.univ.funivcode,fqpfrm:e,fqpto:t,fdatefrom:n,fdateto:a,rtype:r,stype:o,fcntrfrom:l,fcntrto:s,fdeggrp:i,user:f.user}});case 4:m=u.sent,c({type:"UNSET_LOADER"}),console.log("exmCntr",m.data,typeof m.data),"object"!==typeof m.data?c({type:"SET_ERROR",payload:{error_code:-1,data:{msg:"Something went wrong"},status:"failure"}}):0===m.data.error_code?c({type:"GET_EXM_CNTR",payload:m.data}):c({type:"SET_ERROR",payload:m.data});case 8:case"end":return u.stop()}},u)}));return function(e,t){return u.apply(this,arguments)}}()},fetchDegGrp:C.j})(T)},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 l(){return(l=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 s(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 i(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}var u=function(e,t,n,a,r,o,l,s){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 u=[n,a,r,o,l,s],c=0;(i=new Error(t.replace(/%s/g,function(){return u[c++]}))).name="Invariant Violation"}throw i.framesToPop=1,i}};function c(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 m(e,t,n){var a="",r="",o=null,l=[];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 s=!1;return e.split("").forEach(function(e){s=!s&&"\\"===e||(s||!n[e]?(l.push(a.length),a.length===l.length-1&&(r+=e)):o=a.length+1,a+=e,!1)}),{maskChar:t,formatChars:n,prefix:r,mask:a,lastEditablePosition:o,permanents:l}}function d(e,t){return-1!==e.permanents.indexOf(t)}function h(e,t,n){var a=e.mask,r=e.formatChars;if(!n)return!1;if(d(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 d(e,n)||!h(e,n,t)})}function v(e,t){var n=e.maskChar,a=e.prefix;if(!n){for(;t.length>a.length&&d(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 l=t[o];if(!d(e,o)&&h(e,o,l)){r=o+1;break}}return r}function C(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=E(e,"",t,0)).length<r.length&&(t=r);t.length<a.length&&d(e,t.length);)t+=a[t.length];return t}if(t)return E(e,k(e,""),t,0);for(var o=0;o<a.length;o++)d(e,o)?t+=a[o]:t+=n;return t}function E(e,t,n,a){var r=e.mask,o=e.maskChar,l=e.prefix,s=n.split(""),i=C(e,t);return!o&&a>t.length&&(t+=r.slice(t.length,a)),s.every(function(n){for(;c=n,d(e,u=a)&&c!==r[u];){if(a>=t.length&&(t+=r[a]),s=n,o&&d(e,a)&&s===o)return!0;if(++a>=r.length)return!1}var s,u,c;return!h(e,a,n)&&n!==o||(a<t.length?t=o||i||a<l.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 y(e,t){for(var n=e.mask,a=t;a<n.length;++a)if(!d(e,a))return a;return null}function w(e){return e||0===e?e+"":""}function b(e,t,n,a,r){var o=e.mask,l=e.prefix,s=e.lastEditablePosition,i=t,u="",c=0,p=0,f=Math.min(r.start,n.start);return n.end>r.start?p=(c=function(e,t,n,a){var r=e.mask,o=e.maskChar,l=n.split(""),s=a;return l.every(function(t){for(;l=t,d(e,n=a)&&l!==r[n];)if(++a>=r.length)return!1;var n,l;return(h(e,a,t)||t===o)&&a++,a<r.length}),a-s}(e,0,u=i.slice(r.start,n.end),f))?r.length:0:i.length<a.length&&(p=a.length-i.length),i=a,p&&(1!==p||r.length||(f=r.start===n.start?y(e,n.start):function(e,t){for(var n=t;0<=n;--n)if(!d(e,n))return n;return null}(e,n.start)),i=function(e,t,n,a){var r=n+a,o=e.maskChar,l=e.mask,s=e.prefix,i=t.split("");if(o)return i.map(function(t,a){return a<n||r<=a?t:d(e,a)?l[a]:o}).join("");for(var u=r;u<i.length;u++)d(e,u)&&(i[u]="");return n=Math.max(s.length,n),i.splice(n,r-n),t=i.join(""),k(e,t)}(e,i,f,p)),i=E(e,i,u,f),(f+=c)>=o.length?f=o.length:f<l.length&&!c?f=l.length:f>=l.length&&f<s&&c&&(f=y(e,f)),u||(u=null),{value:i=k(e,i),enteredString:u,selection:{start:f,end:f}}}function S(e){return"function"==typeof e}function O(){return window.cancelAnimationFrame||window.webkitCancelRequestAnimationFrame||window.webkitCancelAnimationFrame||window.mozCancelAnimationFrame}function D(e){return(O()?window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame:function(){return setTimeout(e,1e3/60)})(e)}function x(e){(O()||clearTimeout)(e)}var M=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=D(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(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,a){void 0===a&&(a={});var r=n.getInputDOMNode(),o=n.isFocused();r&&o&&(a.deferred||c(r,e,t),null!==n.selectionDeferId&&x(n.selectionDeferId),n.selectionDeferId=D(function(){n.selectionDeferId=null,c(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(u){}return!n.focused||r.end<a.length&&t.end===e.length},n.onChange=function(e){var t=i(i(n)).beforePasteState,a=i(i(n)).previousSelection,r=n.props.beforeMaskedValueChange,o=n.getInputValue(),l=n.value,s=n.getSelection();n.isInputAutofilled(o,s,l,a)&&(l=k(n.maskOptions,""),a={start:0,end:0,length:0}),t&&(a=t.selection,l=t.value,s={start:a.start+o.length,end:a.start+o.length,length:0},o=l.slice(0,a.start)+o+l.slice(a.end),n.beforePasteState=null);var u=b(n.maskOptions,o,s,l,a),c=u.enteredString,p=u.selection,f=u.value;if(S(r)){var m=r({value:f,selection:p},{value:l,selection:a},c,n.getBeforeMaskedValueChangeConfig());f=m.value,p=m.selection}n.setInputValue(f),S(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 l=k(n.maskOptions,o),s=k(n.maskOptions,l),i=v(n.maskOptions,s),u=y(n.maskOptions,i),c={start:u,end:u};if(S(t)){var p=t({value:s,selection:c},{value:n.value,selection:null},null,n.getBeforeMaskedValueChangeConfig());s=p.value,c=p.selection}var f=s!==n.getInputValue();f&&n.setInputValue(s),f&&S(n.props.onChange)&&n.props.onChange(e),n.setSelection(c.start,c.end)}n.runSaveSelectionLoop()}S(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="";S(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&&S(n.props.onChange)&&n.props.onChange(e)}S(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),l=(new Date).getTime()-n.mouseDownTime;(o<=10&&l<=200||o<=5&&l<=300)&&n.setCursorToEnd()}})}S(n.props.onMouseDown)&&n.props.onMouseDown(e)},n.onPaste=function(e){S(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&&S(n.props.inputRef)&&n.props.inputRef(e)};var a=t.mask,r=t.maskChar,l=t.formatChars,s=t.alwaysShowMask,u=t.beforeMaskedValueChange,p=t.defaultValue,f=t.value;n.maskOptions=m(a,r,l),null==p&&(p=""),null==f&&(f=p);var d=w(f);if(n.maskOptions.mask&&(s||d)&&(d=k(n.maskOptions,d),S(u))){var h=t.value;null==t.value&&(h=p),d=u({value:d,selection:null},{value:h=w(h),selection:null},null,n.getBeforeMaskedValueChangeConfig()).value}return n.value=d,n}s(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,l=t.formatChars,s=this.maskOptions,i=a||this.isFocused(),u=null!=this.props.value,c=u?w(this.props.value):this.value,p=e?e.start:null;if(this.maskOptions=m(r,o,l),this.maskOptions.mask){!s.mask&&this.isFocused()&&this.runSaveSelectionLoop();var f=this.maskOptions.mask&&this.maskOptions.mask!==s.mask;if(s.mask||u||(c=this.getInputValue()),(f||this.maskOptions.mask&&(c||i))&&(c=k(this.maskOptions,c)),f){var d=v(this.maskOptions,c);(null===p||d<p)&&(p=C(this.maskOptions,c)?d:y(this.maskOptions,d))}!this.maskOptions.mask||!g(this.maskOptions,c)||i||u&&this.props.value||(c="");var h={start:p,end:p};if(S(n)){var E=n({value:c,selection:h},{value:this.value,selection:this.previousSelection},null,this.getBeforeMaskedValueChangeConfig());c=E.value,h=E.selection}this.value=c;var b=this.getInputValue()!==this.value;b?(this.setInputValue(this.value),this.forceUpdate()):f&&this.forceUpdate();var O=!1;null!=h.start&&null!=h.end&&(O=!e||e.start!==h.start||e.end!==h.end),(O||b)&&this.setSelection(h.start,h.end)}else s.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){S(n)||u(!1);var o=["onChange","onPaste","onMouseDown","onFocus","onBlur","value","disabled","readOnly"],s=l({},a);o.forEach(function(e){return delete s[e]}),e=n(s),o.filter(function(t){return null!=e.props[t]&&e.props[t]!==a[t]}).length&&u(!1)}else e=r.createElement("input",l({ref:this.handleRef},a));var i={onFocus:this.onFocus,onBlur:this.onBlur};return this.maskOptions.mask&&(a.disabled||a.readOnly||(i.onChange=this.onChange,i.onPaste=this.onPaste,i.onMouseDown=this.onMouseDown),null!=a.value&&(i.value=this.value)),e=r.cloneElement(e,i)},t}(r.Component);e.exports=M},288:function(e,t,n){"use strict";var a=n(41),r=n.n(a),o=n(68),l=n(99),s=n(100),i=n(102),u=n(101),c=n(103),p=n(1),f=n.n(p),m=n(104),d=n(1098),h=n(1100),g=n(266),v=function(e){function t(){return Object(l.a)(this,t),Object(i.a)(this,Object(u.a)(t).apply(this,arguments))}return Object(c.a)(t,e),Object(s.a)(t,[{key:"componentDidMount",value:function(){var e=Object(o.a)(r.a.mark(function e(){return r.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,a=t.fyear,r=t.fexamtype,o=t.fexamdate;return f.a.createElement("div",null,f.a.createElement(d.a.Field,null,f.a.createElement("label",null,"Degree Group"),f.a.createElement(h.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(d.a.Group,null,f.a.createElement(d.a.Input,{placeholder:"Year",value:a,width:4,label:"Year",readOnly:!0}),f.a.createElement(d.a.Input,{placeholder:"Type",value:r,width:3,label:"Type",readOnly:!0}),f.a.createElement(d.a.Input,{placeholder:"Exam Date",label:"Exam Date",width:10,value:o,readOnly:!0})))}}]),t}(p.Component);t.a=Object(m.b)(function(e){return{deggrp:e.deggrp,user:e.user}},{fetchDegGrp:g.j})(v)}}]);
//# sourceMappingURL=79.bc13560e.chunk.js.map
|