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 : 3.14.254.103


Current Path : /var/www/egov/build/static/js/
Upload File :
Current File : /var/www/egov/build/static/js/124.2de4e225.chunk.js

(window.webpackJsonp=window.webpackJsonp||[]).push([[124],{1131:function(e,t,n){"use strict";n.r(t);var a=n(41),o=n.n(a),r=n(68),l=n(3),s=n(99),i=n(100),u=n(102),c=n(101),p=n(103),d=n(1),h=n.n(d),f=n(858),m=n(1139),v=n(1106),g=n(272),w=n(1098),k=n(1100),C=n(104),E=n(271),b=n(266),S=n(269),y=function(e,t){return console.log("fromDATA",e,t),function(){var n=Object(r.a)(o.a.mark(function n(a,r){var l,s,i,u;return o.a.wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return l=r(),a({type:"SET_LOADER"}),n.next=4,S.a.get("/app.php",{params:{a:"valuatordet",univcode:l.univ.funivcode,techfrom:e.tcodefrom,teachto:e.tcodeto,collfrom:e.vdatefrom,collto:e.vdateto,type:e.reportType,user:t,board:e.boardType}});case 4:s=n.sent,console.log("daatfromdd",s),a({type:"UNSET_LOADER"}),"object"!==typeof s.data?(i={header:"Error",content:"Something went wrong"},a(Object(b.w)(i))):-1===s.data.error_code?(u={header:"Error",content:s.data.data.msg},a(Object(b.w)(u))):a({type:"GET_NOT_VAL",payload:s.data.data});case 8:case"end":return n.stop()}},n)}));return function(e,t){return n.apply(this,arguments)}}()},O=(n(273),n(270)),D=(n(284),n(1e3)),x=n(1101),T=function(e){function t(){var e,n;Object(s.a)(this,t);for(var a=arguments.length,o=new Array(a),r=0;r<a;r++)o[r]=arguments[r];return(n=Object(u.a)(this,(e=Object(c.a)(t)).call.apply(e,[this].concat(o)))).state={qpstat:[],searchVal:""},n.searchTable=function(e,t){var a=t.value,o=n.props.qpstat.valuatordet.filter(function(e){return Object.keys(e).some(function(t){return e[t].toLowerCase().includes(a.toLowerCase())})});n.setState({qpstat:o,searchVal:t.value})},n}return Object(p.a)(t,e),Object(i.a)(t,[{key:"componentDidMount",value:function(){console.log(this.props.qpstat,"sssss"),this.setState({qpstat:this.props.qpstat.valuatordet,searchVal:""})}},{key:"componentDidUpdate",value:function(e){this.props.qpstat!==e.qpstat&&this.setState({qpstat:this.props.qpstat,searchVal:""})}},{key:"render",value:function(){var e=this.props.qpstat.valuatordet;return h.a.createElement("div",null,h.a.createElement("div",{style:{margin:"1em 0em",backgroundColor:"white"},className:"stick"},h.a.createElement(D.a,{icon:"search",fluid:!0,placeholder:"Search...",value:this.state.searchVal,onChange:this.searchTable})),h.a.createElement(x.a,{celled:!0,compact:!0},h.a.createElement(x.a.Header,null," ",h.a.createElement(h.a.Fragment,null,h.a.createElement(x.a.Row,null,h.a.createElement(x.a.HeaderCell,{style:{width:"0.1%"},singleLine:!0,rowSpan:"2",textAlign:"center"},"Sl. No."),h.a.createElement(x.a.HeaderCell,{style:{width:"15%"},rowSpan:"2",textAlign:"center"},"Board Name"),h.a.createElement(x.a.HeaderCell,{style:{width:"3%"},rowSpan:"2",textAlign:"center"},"Teacher Code"),h.a.createElement(x.a.HeaderCell,{style:{width:"10%"},rowSpan:"2",textAlign:"center"},"Teacher Name"),h.a.createElement(x.a.HeaderCell,{style:{width:"3%"},rowSpan:"2",textAlign:"center"},"Gender"),h.a.createElement(x.a.HeaderCell,{style:{width:"7%"},rowSpan:"2",textAlign:"center"},"Scale"),h.a.createElement(x.a.HeaderCell,{style:{width:"7%"},rowSpan:"2",textAlign:"center"},"Contact No."),h.a.createElement(x.a.HeaderCell,{style:{width:"2%"},rowSpan:"2",textAlign:"center"},"E-mail ID"),h.a.createElement(x.a.HeaderCell,{style:{width:"30%"},rowSpan:"2",textAlign:"center"},"College Name")))),h.a.createElement(x.a.Body,null,e.map(function(e,t){return h.a.createElement(x.a.Row,{key:t},h.a.createElement(x.a.Cell,{textAlign:"center"},t+1),h.a.createElement(x.a.Cell,{textAlign:"left"},e.fboard+"-"+e.fboardname),h.a.createElement(x.a.Cell,{textAlign:"center"},e.fteachcode),h.a.createElement(x.a.Cell,{textAlign:"left"},e.fteachname),h.a.createElement(x.a.Cell,{textAlign:"center"},e.fgender),h.a.createElement(x.a.Cell,{textAlign:"center"},e.fscale),h.a.createElement(x.a.Cell,{textAlign:"center"},e.fmobile),h.a.createElement(x.a.Cell,{textAlign:"left"},e.femail),h.a.createElement(x.a.Cell,null,e.fcollcode+"-"+e.fcollname))}))))}}]),t}(d.Component),A=Object(C.b)(function(e){return{qpstat:e.getNotvalData,user:e.user}},{showError:b.w,getNotval:y})(T),I=[],M=function(e){function t(){var e,n;Object(s.a)(this,t);for(var a=arguments.length,i=new Array(a),p=0;p<a;p++)i[p]=arguments[p];return(n=Object(u.a)(this,(e=Object(c.a)(t)).call.apply(e,[this].concat(i)))).state={frmDeggrp:"",boardType:"",dropdownType:"",reportType:"ALL",frmSubmit:!1,showtable:!1,rftype:"PDF",tcodefrom:"0000",tcodeto:"zzzz",vdatefrom:"0000",vdateto:"zzzz"},n.getDegrees=function(e,t){n.setState({frmDeggrp:t.value})},n.handleChange=function(e,t){switch(t.type){case"text":n.setState(Object(l.a)({},t.name,t.value));default:n.setState(Object(l.a)({},t.name,t.value))}console.log("statetee",n.state),n.setState({frmSubmit:!1})},n.handleSubmit=Object(r.a)(o.a.mark(function e(){return o.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return console.log("submitttt",n.state),n.props.user.fdeggrp,n.state.reportType,console.log(n.state),e.next=6,n.props.getNotval(n.state,n.props.user);case 6:n.setState({frmSubmit:!0}),n.setState({showtable:!0});case 8:case"end":return e.stop()}},e)})),n.handleReport=function(){var e=n.props.user,t=e.fdeggrp,a=e.fcuruniv,o=n.state,r=o.reportType,l=o.rftype,s=o.tcodefrom,i=o.tcodeto,u=o.vdatefrom,c=o.vdateto,p=o.boardType;window.open(E.c+"valuatorReport&univcode="+a+"&deggrp="+t+"&techfrom="+s+"&teachto="+i+"&collfrom="+u+"&collto="+c+"&board="+p+"&type="+r+"&format="+l+"&user="+JSON.stringify(n.props.user),"_blank")},n.handleChangedate=function(e){n.setState(Object(l.a)({},e.target.name,e.target.value))},n.handleCancel=function(){n.setState({reportType:"",reportFormat:"",frmDeggrp:""})},n.renderHeader=function(){return I=[{value:"All",text:"All"}],console.log(n.props.dropdownData),n.props.dropdownData.board.map(function(e){I.push({value:e.fboardcode,text:e.fboardname})}),console.log("DropdownBordOption",I),h.a.createElement(m.a.Header,{style:{display:"flex"}},h.a.createElement("h3",null,"Valuator Details"),h.a.createElement("div",{className:"ml-auto"},h.a.createElement(v.a,{basic:!0,color:"black",icon:"file",onClick:n.handleReport,content:"Report"}),h.a.createElement(v.a,{basic:!0,color:"blue",icon:"ban",onClick:n.handleCancel,content:"Cancel"}),h.a.createElement(f.a,{to:"/dashboard"},h.a.createElement(v.a,{basic:!0,color:"red",content:"Exit",icon:"home"}))))},n}return Object(p.a)(t,e),Object(i.a)(t,[{key:"componentDidMount",value:function(){var e=Object(r.a)(o.a.mark(function e(){return o.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.props.getDropDownValue(this.state,this.props.user);case 2:case"end":return e.stop()}},e,this)}));return function(){return e.apply(this,arguments)}}()},{key:"render",value:function(){var e=this.state,t=e.frmSubmit,n=e.reportType,a=e.boardType,o=(e.dropdownType,e.rftype,e.tcodefrom),r=e.tcodeto,l=e.vdatefrom,s=e.vdateto,i=Object(O.i)();return console.log(n,t),h.a.createElement("div",{className:"animated fadeIn"},h.a.createElement(m.a,{fluid:!0},h.a.createElement(m.a.Content,null,this.renderHeader(),h.a.createElement(g.a,null),h.a.createElement(m.a.Description,{style:{overflowY:"auto",height:"".concat(i,"px")}},h.a.createElement("div",{className:"col-md-6"},h.a.createElement(w.a,null,h.a.createElement(w.a.Group,null,h.a.createElement(w.a.Field,{width:8},h.a.createElement("label",null," College Range "),h.a.createElement(w.a.Input,{type:"text",value:l,placeholder:"College From",name:"vdatefrom",onChange:this.handleChangedate})),h.a.createElement(w.a.Field,{width:8},h.a.createElement(w.a.Input,{type:"text",value:s,placeholder:"To",name:"vdateto",onChange:this.handleChangedate,style:{marginTop:"1.6em"}}))),h.a.createElement(w.a.Group,null,h.a.createElement(w.a.Input,{placeholder:"From",value:o,width:8,name:"tcodefrom",onChange:this.handleChange,maxLength:"5",label:"Teacher code Range"}),h.a.createElement(w.a.Input,{placeholder:"To",name:"tcodeto",value:r,width:8,onChange:this.handleChange,maxLength:"5",style:{marginTop:"1.6em"}})),h.a.createElement(w.a.Field,null,h.a.createElement("label",null," Select Board"),h.a.createElement(k.a,{placeholder:"Select Report Type",name:"boardType",value:a,selection:!0,search:!0,options:I,onChange:this.handleChange})),h.a.createElement(w.a.Field,null,h.a.createElement("label",null," Type"),h.a.createElement(k.a,{placeholder:"Select Report Type",name:"reportType",value:n,selection:!0,search:!0,options:[{value:"ALL",text:"ALL"},{value:"val",text:"Doing Valuations"},{value:"nval",text:"Not Doing Valuation"}],onChange:this.handleChange})),h.a.createElement(v.a,{color:"blue",onClick:this.handleSubmit},"Submit"),h.a.createElement("br",null))),this.state.showtable?h.a.createElement(A,null):null))))}}]),t}(d.Component);t.default=Object(C.b)(function(e){return console.log(e),{user:e.user,dropdownData:e.fetchDropNotValued}},{showError:b.w,getNotval:y,getDropDownValue:function(e,t){return console.log("fromDATA",e,t),function(){var e=Object(r.a)(o.a.mark(function e(n,a){var r,l,s,i;return o.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return r=a(),n({type:"SET_LOADER"}),e.next=4,S.a.get("/app.php",{params:{a:"getBoard",univcode:r.univ.funivcode,user:t}});case 4:l=e.sent,console.log("GET_DROP_DOWN_VALUE",l),n({type:"UNSET_LOADER"}),"object"!==typeof l.data?(s={header:"Error",content:"Something went wrong"},n(Object(b.w)(s))):-1===l.data.error_code?(i={header:"Error",content:l.data.data.msg},n(Object(b.w)(i))):n({type:"GET_DROP_DOWN_VALUE",payload:l.data});case 8:case"end":return e.stop()}},e)}));return function(t,n){return e.apply(this,arguments)}}()}})(M)},273:function(e,t,n){e.exports=n(274)},274:function(e,t,n){"use strict";var a,o=(a=n(1))&&"object"==typeof a&&"default"in a?a.default:a,r=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 o=n[a],r=Object.getOwnPropertyDescriptor(t,o);r&&r.configurable&&void 0===e[o]&&Object.defineProperty(e,o,r)}}(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,o,r,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,o,r,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]"},d="_";function h(e,t,n){var a="",o="",r=null,l=[];if(void 0===t&&(t=d),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&&(o+=e)):r=a.length+1,a+=e,!1)}),{maskChar:t,formatChars:n,prefix:o,mask:a,lastEditablePosition:r,permanents:l}}function f(e,t){return-1!==e.permanents.indexOf(t)}function m(e,t,n){var a=e.mask,o=e.formatChars;if(!n)return!1;if(f(e,t))return a[t]===n;var r=o[a[t]];return new RegExp(r).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 o=a.length,r=t.length;r>=a.length;r--){var l=t[r];if(!f(e,r)&&m(e,r,l)){o=r+1;break}}return o}function w(e,t){return g(e,t)===e.mask.length}function k(e,t){var n=e.maskChar,a=e.mask,o=e.prefix;if(!n){for((t=C(e,"",t,0)).length<o.length&&(t=o);t.length<a.length&&f(e,t.length);)t+=a[t.length];return t}if(t)return C(e,k(e,""),t,0);for(var r=0;r<a.length;r++)f(e,r)?t+=a[r]:t+=n;return t}function C(e,t,n,a){var o=e.mask,r=e.maskChar,l=e.prefix,s=n.split(""),i=w(e,t);return!r&&a>t.length&&(t+=o.slice(t.length,a)),s.every(function(n){for(;c=n,f(e,u=a)&&c!==o[u];){if(a>=t.length&&(t+=o[a]),s=n,r&&f(e,a)&&s===r)return!0;if(++a>=o.length)return!1}var s,u,c;return!m(e,a,n)&&n!==r||(a<t.length?t=r||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)):r||(t+=n),++a<o.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 b(e){return e||0===e?e+"":""}function S(e,t,n,a,o){var r=e.mask,l=e.prefix,s=e.lastEditablePosition,i=t,u="",c=0,p=0,d=Math.min(o.start,n.start);return n.end>o.start?p=(c=function(e,t,n,a){var o=e.mask,r=e.maskChar,l=n.split(""),s=a;return l.every(function(t){for(;l=t,f(e,n=a)&&l!==o[n];)if(++a>=o.length)return!1;var n,l;return(m(e,a,t)||t===r)&&a++,a<o.length}),a-s}(e,0,u=i.slice(o.start,n.end),d))?o.length:0:i.length<a.length&&(p=a.length-i.length),i=a,p&&(1!==p||o.length||(d=o.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)),i=function(e,t,n,a){var o=n+a,r=e.maskChar,l=e.mask,s=e.prefix,i=t.split("");if(r)return i.map(function(t,a){return a<n||o<=a?t:f(e,a)?l[a]:r}).join("");for(var u=o;u<i.length;u++)f(e,u)&&(i[u]="");return n=Math.max(s.length,n),i.splice(n,o-n),t=i.join(""),k(e,t)}(e,i,d,p)),i=C(e,i,u,d),(d+=c)>=r.length?d=r.length:d<l.length&&!c?d=l.length:d>=l.length&&d<s&&c&&(d=E(e,d)),u||(u=null),{value:i=k(e,i),enteredString:u,selection:{start:d,end:d}}}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 T=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=r.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=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 o=n.getInputDOMNode(),r=n.isFocused();o&&r&&(a.deferred||c(o,e,t),null!==n.selectionDeferId&&x(n.selectionDeferId),n.selectionDeferId=D(function(){n.selectionDeferId=null,c(o,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,o=e.permanents,r=e.formatChars;return{mask:t,maskChar:a,permanents:o,alwaysShowMask:!!n.props.alwaysShowMask,formatChars:r}},n.isInputAutofilled=function(e,t,a,o){var r=n.getInputDOMNode();try{if(r.matches(":-webkit-autofill"))return!0}catch(u){}return!n.focused||o.end<a.length&&t.end===e.length},n.onChange=function(e){var t=i(i(n)).beforePasteState,a=i(i(n)).previousSelection,o=n.props.beforeMaskedValueChange,r=n.getInputValue(),l=n.value,s=n.getSelection();n.isInputAutofilled(r,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+r.length,end:a.start+r.length,length:0},r=l.slice(0,a.start)+r+l.slice(a.end),n.beforePasteState=null);var u=S(n.maskOptions,r,s,l,a),c=u.enteredString,p=u.selection,d=u.value;if(y(o)){var h=o({value:d,selection:p},{value:l,selection:a},c,n.getBeforeMaskedValueChangeConfig());d=h.value,p=h.selection}n.setInputValue(d),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,o=a.mask,r=a.prefix;if(n.focused=!0,n.mounted=!0,o){if(n.value)g(n.maskOptions,n.value)<n.maskOptions.mask.length&&n.setCursorToEnd();else{var l=k(n.maskOptions,r),s=k(n.maskOptions,l),i=g(n.maskOptions,s),u=E(n.maskOptions,i),c={start:u,end:u};if(y(t)){var p=t({value:s,selection:c},{value:n.value,selection:null},null,n.getBeforeMaskedValueChangeConfig());s=p.value,c=p.selection}var d=s!==n.getInputValue();d&&n.setInputValue(s),d&&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 o="";y(t)&&(o=t({value:o,selection:null},{value:n.value,selection:n.previousSelection},null,n.getBeforeMaskedValueChangeConfig()).value);var r=o!==n.getInputValue();r&&n.setInputValue(o),r&&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),o=Math.abs(t.clientY-n.mouseDownY),r=Math.max(a,o),l=(new Date).getTime()-n.mouseDownTime;(r<=10&&l<=200||r<=5&&l<=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,o=t.maskChar,l=t.formatChars,s=t.alwaysShowMask,u=t.beforeMaskedValueChange,p=t.defaultValue,d=t.value;n.maskOptions=h(a,o,l),null==p&&(p=""),null==d&&(d=p);var f=b(d);if(n.maskOptions.mask&&(s||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=b(m),selection:null},null,n.getBeforeMaskedValueChangeConfig()).value}return n.value=f,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,o=t.mask,r=t.maskChar,l=t.formatChars,s=this.maskOptions,i=a||this.isFocused(),u=null!=this.props.value,c=u?b(this.props.value):this.value,p=e?e.start:null;if(this.maskOptions=h(o,r,l),this.maskOptions.mask){!s.mask&&this.isFocused()&&this.runSaveSelectionLoop();var d=this.maskOptions.mask&&this.maskOptions.mask!==s.mask;if(s.mask||u||(c=this.getInputValue()),(d||this.maskOptions.mask&&(c||i))&&(c=k(this.maskOptions,c)),d){var f=g(this.maskOptions,c);(null===p||f<p)&&(p=w(this.maskOptions,c)?f:E(this.maskOptions,f))}!this.maskOptions.mask||!v(this.maskOptions,c)||i||u&&this.props.value||(c="");var m={start:p,end:p};if(y(n)){var C=n({value:c,selection:m},{value:this.value,selection:this.previousSelection},null,this.getBeforeMaskedValueChangeConfig());c=C.value,m=C.selection}this.value=c;var S=this.getInputValue()!==this.value;S?(this.setInputValue(this.value),this.forceUpdate()):d&&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 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,o={},r=Object.keys(e);for(a=0;a<r.length;a++)n=r[a],0<=t.indexOf(n)||(o[n]=e[n]);return o}(t,["mask","alwaysShowMask","maskChar","formatChars","inputRef","beforeMaskedValueChange","children"]);if(n){y(n)||u(!1);var r=["onChange","onPaste","onMouseDown","onFocus","onBlur","value","disabled","readOnly"],s=l({},a);r.forEach(function(e){return delete s[e]}),e=n(s),r.filter(function(t){return null!=e.props[t]&&e.props[t]!==a[t]}).length&&u(!1)}else e=o.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=o.cloneElement(e,i)},t}(o.Component);e.exports=T}}]);
//# sourceMappingURL=124.2de4e225.chunk.js.map