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.226.166.207


Current Path : /var/www/egov/build/static/js/
Upload File :
Current File : /var/www/egov/build/static/js/48.eefa878e.chunk.js

(window.webpackJsonp=window.webpackJsonp||[]).push([[48],{1035:function(e,t,n){"use strict";n.r(t);var a=n(3),r=n(41),o=n.n(r),s=n(68),i=n(99),l=n(100),u=n(102),c=n(101),p=n(103),h=n(1),d=n.n(h),f=n(1139),m=n(1135),v=n(1106),g=n(272),b=n(1098),k=n(1100),w=n(273),E=n.n(w),C=n(858),S=n(351),y=n(266),O=n(104),D=n(270),x=function(e){function t(){var e,n;Object(i.a)(this,t);for(var r=arguments.length,l=new Array(r),p=0;p<r;p++)l[p]=arguments[p];return(n=Object(u.a)(this,(e=Object(c.a)(t)).call.apply(e,[this].concat(l)))).state={fdob:"",shwDet:!1,fmobileno:"",sendSms:!1},n.handleSubmit=Object(s.a)(o.a.mark(function e(){var t;return o.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(t={header:"Error",content:"Please enter valid Mobile No."},!(n.state.fmobileno.length<10)){e.next=7;break}return e.next=4,n.props.showError(t);case 4:e.t0=e.sent,e.next=15;break;case 7:return e.next=9,n.props.getUserDetails(n.state.fmobileno);case 9:return e.next=11,n.props.getUserType("CreateUser");case 11:return e.next=13,n.props.fetchUnivs();case 13:n.setState({disabled:!0}),e.t0=""!=n.props.userDetails?n.setState({shwDet:!0}):""==n.props.userDetails.fname?alert(n.props.userDetails.fname):n.setState({shwDet:!1});case 15:e.t0;case 16:case"end":return e.stop()}},e)})),n.handleChangedate=function(){var e=Object(s.a)(o.a.mark(function e(t){return o.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:n.setState({fdob:t.target.value},function(){return n.props.changeUserDetails("fdob",n.state.fdob)});case 1:case"end":return e.stop()}},e)}));return function(t){return e.apply(this,arguments)}}(),n.handleChange=function(){var e=Object(s.a)(o.a.mark(function e(t,r){var s,i;return o.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:s=r.name,i=r.value,"fmobileno"==s?n.setState(Object(a.a)({},s,i)):n.props.changeUserDetails(s,i);case 2:case"end":return e.stop()}},e)}));return function(t,n){return e.apply(this,arguments)}}(),n.handleMultiple=function(e,t){var a=t.name,r=t.value,o="";r.map(function(e,t){return t<r.length&&""!=e?o="".concat(e,"*").concat(o):null}),n.props.changeUserDetails(a,o)},n.changeCheckBox=function(){n.state.sendSms?n.setState({sendSms:!1}):n.setState({sendSms:!0})},n.handleCreate=Object(s.a)(o.a.mark(function e(){var t,a;return o.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(t=n.props.userDetails,n.state.shwDet||(a={header:"Error",content:"No Details to Update."}),""==t.fname&&(a={header:"Error",content:"Please enter Degree Despcription."}),""!=t.fmobileno&&""!=t.femail||(a={header:"Error",content:"Contact Number or Email cannot be empty."}),""==t.priusertype&&(a={header:"Error",content:"Please enter Primary User Type."}),"undefined"!=typeof a){e.next=11;break}return e.next=8,n.props.saveUserDetails(n.state.sendSms);case 8:n.setState({shwDet:!1}),e.next=13;break;case 11:return e.next=13,n.props.showError(a);case 13:case"end":return e.stop()}},e)})),n.handleCancel=function(){n.setState({shwDet:!1,disabled:!1,fmobileno:""})},n}return Object(p.a)(t,e),Object(l.a)(t,[{key:"render",value:function(){var e=this.props.userTypeList,t=this.props.userDetails,n=this.props.user,a=e.filter(function(e,t){return e.FUSERTYPE>n.fcurtype}).map(function(e,t){return{key:t,value:e.FUSERTYPE,text:"".concat(e.FUSERTYPE," - ").concat(e.FTYPEDESC)}}),r=e.filter(function(e,a){return e.FUSERTYPE!=t.priusertype&&e.FUSERTYPE>n.fcurtype}).map(function(e,t){return{key:t,value:e.FUSERTYPE,text:"".concat(e.FUSERTYPE," - ").concat(e.FTYPEDESC)}});if(null!=t.addiusertype)var o=t.addiusertype.split("*");o=void 0==o?[]:o;var s=Object(D.i)(),i=this.props.univs.map(function(e,t){return{key:t,value:e.funivcode,text:"".concat(e.funivcode," - ").concat(e.funivname)}});return d.a.createElement(d.a.Fragment,null,d.a.createElement(f.a,{fluid:!0},d.a.createElement(f.a.Content,null,d.a.createElement(f.a.Header,{style:{display:"flex"}},d.a.createElement(m.a,{as:"h3"},"Create User"),d.a.createElement("div",{className:"ml-auto"},d.a.createElement(v.a,{basic:!0,color:"blue",content:"Create / Update",onClick:this.handleCreate,icon:"upload"}),d.a.createElement(v.a,{basic:!0,color:"black",icon:"ban",onClick:this.handleCancel,content:"Cancel"}),d.a.createElement(C.a,{to:"/dashboard"},d.a.createElement(v.a,{basic:!0,color:"red",content:"Exit",icon:"home"})))),d.a.createElement(g.a,null),d.a.createElement(f.a.Description,{style:{overflowY:"auto",height:"".concat(s,"px"),width:"100%"}},d.a.createElement(b.a,null,d.a.createElement(b.a.Field,{width:4},d.a.createElement(b.a.Input,{id:"fmobileno",label:"Enter Contact No.",placeholder:"Contact No.",name:"fmobileno",value:this.state.fmobileno,readOnly:this.state.disabled,onChange:this.handleChange})),d.a.createElement(v.a,{content:"Submit",color:"blue",onClick:this.handleSubmit})),d.a.createElement(g.a,null),this.state.shwDet&&d.a.createElement(b.a,null,d.a.createElement(b.a.Group,null,d.a.createElement(b.a.Field,{width:8},d.a.createElement(b.a.Input,{type:"text",placeholder:"Name",label:"User Name",name:"fname",value:t.fname,onChange:this.handleChange})),d.a.createElement(b.a.Field,{width:2},d.a.createElement("label",null,"Date of Birth"),d.a.createElement(E.a,{type:"text",placeholder:"DOB",name:"fdob",mask:"ed/nm/zyyy",formatChars:{n:"[0-1]",m:"[0-9]",e:"[0-3]",d:"[0-9]",z:"[1-2]",y:"[0-9]"},value:t.fdob,onChange:this.handleChangedate}))),d.a.createElement(b.a.Group,null,d.a.createElement(b.a.Field,{width:4},d.a.createElement(b.a.Input,{id:"fmobileno",name:"fmobileno",maxLength:"10",minLength:"10",value:t.fmobileno,onChange:this.handleChange,label:"Contact No.",placeholder:"Contact No.",readOnly:!0})),d.a.createElement(b.a.Field,{width:6},d.a.createElement(b.a.Input,{id:"femail",name:"femail",value:t.femail,onChange:this.handleChange,label:"Email ID",placeholder:"abc@xyz.com"}))),d.a.createElement(b.a.Group,{inline:!0,width:4},d.a.createElement("label",null,"Gender"),d.a.createElement(b.a.Radio,{label:"Male",value:"M",name:"fsex",onChange:this.handleChange,checked:"M"==t.fsex}),d.a.createElement(b.a.Radio,{label:"Female",value:"F",name:"fsex",checked:"F"==t.fsex,onChange:this.handleChange}),d.a.createElement("label",null,"Active Status"),d.a.createElement(b.a.Radio,{label:"Active",value:"T",name:"factive",onChange:this.handleChange,checked:"T"==t.factive}),d.a.createElement(b.a.Radio,{label:"Inactive",value:"F",name:"factive",checked:"F"==t.factive,onChange:this.handleChange})),d.a.createElement(b.a.Field,{width:10},d.a.createElement("label",null,"Select University"),d.a.createElement(k.a,{placeholder:"Universities",search:!0,selection:!0,id:"funivcode",name:"funivcode",value:t.funivcode,onChange:this.handleChange,options:i})),d.a.createElement(b.a.Field,{width:10},d.a.createElement("label",null,"Primary User Type"),d.a.createElement(k.a,{placeholder:"Primary User Type",search:!0,selection:!0,id:"priusertype",name:"priusertype",value:t.priusertype,options:a,onChange:this.handleChange})),d.a.createElement(b.a.Field,{width:10},d.a.createElement("label",null,"Additional User Type"),d.a.createElement(k.a,{placeholder:"Additional User Type",search:!0,selection:!0,multiple:!0,id:"addiusertype",name:"addiusertype",value:o,onChange:this.handleMultiple,options:r})),d.a.createElement(b.a.Field,{width:10},d.a.createElement("label",null,"Send login credentials to this user by SMS. "),d.a.createElement("input",{type:"checkbox",checked:this.state.sendSms,onClick:this.changeCheckBox,tabindex:"0",class:"hidden"})))))))}}]),t}(h.Component);t.default=Object(O.b)(function(e){return{userTypeList:e.userTypeList,userDetails:e.userDetails,user:e.user,univs:e.univs}},{fetchUnivs:y.o,getUserType:S.c,getUserDetails:S.b,changeUserDetails:S.a,saveUserDetails:S.d,showError:y.w})(x)},272:function(e,t,n){"use strict";var a=n(268),r=n.n(a),o=n(265),s=n.n(o),i=n(1),l=n.n(i),u=n(333),c=n(551),p=n(549),h=n(267);function d(e){var t=e.children,n=e.className,a=e.clearing,o=e.content,i=e.fitted,f=e.hidden,m=e.horizontal,v=e.inverted,g=e.section,b=e.vertical,k=s()("ui",Object(u.a)(a,"clearing"),Object(u.a)(i,"fitted"),Object(u.a)(f,"hidden"),Object(u.a)(m,"horizontal"),Object(u.a)(v,"inverted"),Object(u.a)(g,"section"),Object(u.a)(b,"vertical"),"divider",n),w=Object(c.a)(d,e),E=Object(p.a)(d,e);return l.a.createElement(E,r()({},w,{className:k}),h.a.isNil(t)?o:t)}d.handledProps=["as","children","className","clearing","content","fitted","hidden","horizontal","inverted","section","vertical"],d.propTypes={},t.a=d},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 i(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 l(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,s,i){if(!e){var l;if(void 0===t)l=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,s,i],c=0;(l=new Error(t.replace(/%s/g,function(){return u[c++]}))).name="Invariant Violation"}throw l.framesToPop=1,l}};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]"},h="_";function d(e,t,n){var a="",r="",o=null,s=[];if(void 0===t&&(t=h),null==n&&(n=p),!e||"string"!=typeof e)return{maskChar:t,formatChars:n,mask:null,prefix:null,lastEditablePosition:null,permanents:[]};var i=!1;return e.split("").forEach(function(e){i=!i&&"\\"===e||(i||!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 f(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(f(e,t))return a[t]===n;var o=r[a[t]];return new RegExp(o).test(n)}function v(e,t){return t.split("").every(function(t,n){return f(e,n)||!m(e,n,t)})}function g(e,t){var n=e.maskChar,a=e.prefix;if(!n){for(;t.length>a.length&&f(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(!f(e,o)&&m(e,o,s)){r=o+1;break}}return r}function b(e,t){return g(e,t)===e.mask.length}function k(e,t){var n=e.maskChar,a=e.mask,r=e.prefix;if(!n){for((t=w(e,"",t,0)).length<r.length&&(t=r);t.length<a.length&&f(e,t.length);)t+=a[t.length];return t}if(t)return w(e,k(e,""),t,0);for(var o=0;o<a.length;o++)f(e,o)?t+=a[o]:t+=n;return t}function w(e,t,n,a){var r=e.mask,o=e.maskChar,s=e.prefix,i=n.split(""),l=b(e,t);return!o&&a>t.length&&(t+=r.slice(t.length,a)),i.every(function(n){for(;c=n,f(e,u=a)&&c!==r[u];){if(a>=t.length&&(t+=r[a]),i=n,o&&f(e,a)&&i===o)return!0;if(++a>=r.length)return!1}var i,u,c;return!m(e,a,n)&&n!==o||(a<t.length?t=o||l||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 E(e,t){for(var n=e.mask,a=t;a<n.length;++a)if(!f(e,a))return a;return null}function C(e){return e||0===e?e+"":""}function S(e,t,n,a,r){var o=e.mask,s=e.prefix,i=e.lastEditablePosition,l=t,u="",c=0,p=0,h=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,s=n.split(""),i=a;return s.every(function(t){for(;s=t,f(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-i}(e,0,u=l.slice(r.start,n.end),h))?r.length:0:l.length<a.length&&(p=a.length-l.length),l=a,p&&(1!==p||r.length||(h=r.start===n.start?E(e,n.start):function(e,t){for(var n=t;0<=n;--n)if(!f(e,n))return n;return null}(e,n.start)),l=function(e,t,n,a){var r=n+a,o=e.maskChar,s=e.mask,i=e.prefix,l=t.split("");if(o)return l.map(function(t,a){return a<n||r<=a?t:f(e,a)?s[a]:o}).join("");for(var u=r;u<l.length;u++)f(e,u)&&(l[u]="");return n=Math.max(i.length,n),l.splice(n,r-n),t=l.join(""),k(e,t)}(e,l,h,p)),l=w(e,l,u,h),(h+=c)>=o.length?h=o.length:h<s.length&&!c?h=s.length:h>=s.length&&h<i&&c&&(h=E(e,h)),u||(u=null),{value:l=k(e,l),enteredString:u,selection:{start:h,end:h}}}function y(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 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=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(l(l(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=g(n.maskOptions,n.value),t=E(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=l(l(n)).beforePasteState,a=l(l(n)).previousSelection,r=n.props.beforeMaskedValueChange,o=n.getInputValue(),s=n.value,i=n.getSelection();n.isInputAutofilled(o,i,s,a)&&(s=k(n.maskOptions,""),a={start:0,end:0,length:0}),t&&(a=t.selection,s=t.value,i={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 u=S(n.maskOptions,o,i,s,a),c=u.enteredString,p=u.selection,h=u.value;if(y(r)){var d=r({value:h,selection:p},{value:s,selection:a},c,n.getBeforeMaskedValueChangeConfig());h=d.value,p=d.selection}n.setInputValue(h),y(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)g(n.maskOptions,n.value)<n.maskOptions.mask.length&&n.setCursorToEnd();else{var s=k(n.maskOptions,o),i=k(n.maskOptions,s),l=g(n.maskOptions,i),u=E(n.maskOptions,l),c={start:u,end:u};if(y(t)){var p=t({value:i,selection:c},{value:n.value,selection:null},null,n.getBeforeMaskedValueChangeConfig());i=p.value,c=p.selection}var h=i!==n.getInputValue();h&&n.setInputValue(i),h&&y(n.props.onChange)&&n.props.onChange(e),n.setSelection(c.start,c.end)}n.runSaveSelectionLoop()}y(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&&v(n.maskOptions,n.value)){var r="";y(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&&y(n.props.onChange)&&n.props.onChange(e)}y(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()}})}y(n.props.onMouseDown)&&n.props.onMouseDown(e)},n.onPaste=function(e){y(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&&y(n.props.inputRef)&&n.props.inputRef(e)};var a=t.mask,r=t.maskChar,s=t.formatChars,i=t.alwaysShowMask,u=t.beforeMaskedValueChange,p=t.defaultValue,h=t.value;n.maskOptions=d(a,r,s),null==p&&(p=""),null==h&&(h=p);var f=C(h);if(n.maskOptions.mask&&(i||f)&&(f=k(n.maskOptions,f),y(u))){var m=t.value;null==t.value&&(m=p),f=u({value:f,selection:null},{value:m=C(m),selection:null},null,n.getBeforeMaskedValueChangeConfig()).value}return n.value=f,n}i(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,i=this.maskOptions,l=a||this.isFocused(),u=null!=this.props.value,c=u?C(this.props.value):this.value,p=e?e.start:null;if(this.maskOptions=d(r,o,s),this.maskOptions.mask){!i.mask&&this.isFocused()&&this.runSaveSelectionLoop();var h=this.maskOptions.mask&&this.maskOptions.mask!==i.mask;if(i.mask||u||(c=this.getInputValue()),(h||this.maskOptions.mask&&(c||l))&&(c=k(this.maskOptions,c)),h){var f=g(this.maskOptions,c);(null===p||f<p)&&(p=b(this.maskOptions,c)?f:E(this.maskOptions,f))}!this.maskOptions.mask||!v(this.maskOptions,c)||l||u&&this.props.value||(c="");var m={start:p,end:p};if(y(n)){var w=n({value:c,selection:m},{value:this.value,selection:this.previousSelection},null,this.getBeforeMaskedValueChangeConfig());c=w.value,m=w.selection}this.value=c;var S=this.getInputValue()!==this.value;S?(this.setInputValue(this.value),this.forceUpdate()):h&&this.forceUpdate();var O=!1;null!=m.start&&null!=m.end&&(O=!e||e.start!==m.start||e.end!==m.end),(O||S)&&this.setSelection(m.start,m.end)}else i.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){y(n)||u(!1);var o=["onChange","onPaste","onMouseDown","onFocus","onBlur","value","disabled","readOnly"],i=s({},a);o.forEach(function(e){return delete i[e]}),e=n(i),o.filter(function(t){return null!=e.props[t]&&e.props[t]!==a[t]}).length&&u(!1)}else e=r.createElement("input",s({ref:this.handleRef},a));var l={onFocus:this.onFocus,onBlur:this.onBlur};return this.maskOptions.mask&&(a.disabled||a.readOnly||(l.onChange=this.onChange,l.onPaste=this.onPaste,l.onMouseDown=this.onMouseDown),null!=a.value&&(l.value=this.value)),e=r.cloneElement(e,l)},t}(r.Component);e.exports=j},351:function(e,t,n){"use strict";n.d(t,"b",function(){return l}),n.d(t,"a",function(){return u}),n.d(t,"c",function(){return c}),n.d(t,"d",function(){return p}),n.d(t,"e",function(){return h});var a=n(41),r=n.n(a),o=n(68),s=n(269),i=n(266),l=function(e){return function(){var t=Object(o.a)(r.a.mark(function t(n,a){var o,l,u,c;return r.a.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return o=a(),n({type:"SET_LOADER"}),t.next=4,s.a.get("/app.php",{params:{a:"getUserDetails",univcode:o.univ.funivcode,fmobileno:e,fusertype:o.user.fusertype,fcurtype:o.user.fcurtype}});case 4:l=t.sent,n({type:"UNSET_LOADER"}),"object"!==typeof l.data?(u={header:"Error",content:"Something went wrong"},n(Object(i.w)(u))):-1===l.data.error_code?n({type:"NEW_USER_DETAILS",payload:e}):1===l.data.error_code?(c={header:"Error",content:l.data.data.msg},n(Object(i.w)(c))):n({type:"USER_DETAILS",payload:l.data});case 7:case"end":return t.stop()}},t)}));return function(e,n){return t.apply(this,arguments)}}()},u=function(e,t){return{type:"CHANGE_USER_DETAILS",payload:{name:e,value:t}}},c=function(e){return function(){var t=Object(o.a)(r.a.mark(function t(n,a){var o,l,u,c;return r.a.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return o=a(),t.next=3,s.a.get("/app.php",{params:{a:"getUserType",type:e,univcode:o.univ.funivcode}});case 3:"object"!==typeof(l=t.sent).data?(u={header:"Error",content:"Something went wrong"},n(Object(i.w)(u))):-1===l.data.error_code?(c={header:"Error",content:l.data.data.msg},n(Object(i.w)(c))):n({type:"USER_TYPE_LIST",payload:l.data});case 5:case"end":return t.stop()}},t)}));return function(e,n){return t.apply(this,arguments)}}()},p=function(){return function(){var e=Object(o.a)(r.a.mark(function e(t,n){var a,o,l,u,c;return r.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return a=n(),e.next=3,s.a.post("/app.php?a=saveUserDetails",{data:a.userDetails});case 3:"object"!==typeof(o=e.sent).data?(l={header:"Error",content:"Something went wrong"},t(Object(i.w)(l))):-1===o.data.error_code?(u={header:"Error",content:o.data.data.msg},t(Object(i.w)(u))):(c={header:"Success",content:o.data.data.msg},t(Object(i.w)(c)));case 5:case"end":return e.stop()}},e)}));return function(t,n){return e.apply(this,arguments)}}()},h=function(){return function(){var e=Object(o.a)(r.a.mark(function e(t,n){var a,o,l,u,c;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.post("/app.php?a=saveUserTypeList",{data:a.userTypeList});case 4:o=e.sent,t({type:"UNSET_LOADER"}),"object"!==typeof o.data?(l={header:"Error",content:"Something went wrong"},t(Object(i.w)(l))):-1===o.data.error_code?(u={header:"Error",content:o.data.data.msg},t(Object(i.w)(u))):(c={header:"Success",content:o.data.data.msg},t(Object(i.w)(c)));case 7:case"end":return e.stop()}},e)}));return function(t,n){return e.apply(this,arguments)}}()}}}]);
//# sourceMappingURL=48.eefa878e.chunk.js.map