%PDF- %PDF-
Direktori : /home/opti/public_html/ezone-accounting.optisoft.com.ng/static/js/ |
Current File : /home/opti/public_html/ezone-accounting.optisoft.com.ng/static/js/50.20b40e94.chunk.js |
(this["webpackJsonpfuse-react-app"]=this["webpackJsonpfuse-react-app"]||[]).push([[50],{1046:function(e,t,n){"use strict";function r(e,t,n,r,o){return null}n.d(t,"a",(function(){return r}))},1047:function(e,t,n){"use strict";n.r(t);var r=n(15);n.d(t,"capitalize",(function(){return r.a}));var o=n(78);n.d(t,"createChainedFunction",(function(){return o.a}));var i=n(85);n.d(t,"createSvgIcon",(function(){return i.a}));var a=n(97);n.d(t,"debounce",(function(){return a.a}));var u=n(130);n.d(t,"deprecatedPropType",(function(){return u.a}));var s=n(159);n.d(t,"isMuiElement",(function(){return s.a}));var l=n(47);n.d(t,"ownerDocument",(function(){return l.a}));var c=n(160);n.d(t,"ownerWindow",(function(){return c.a}));var f=n(1134);n.d(t,"requirePropFactory",(function(){return f.a}));var p=n(87);n.d(t,"setRef",(function(){return p.a}));var d=n(1046);n.d(t,"unsupportedProp",(function(){return d.a}));var h=n(104);n.d(t,"useControlled",(function(){return h.a}));var v=n(38);n.d(t,"useEventCallback",(function(){return v.a}));var m=n(25);n.d(t,"useForkRef",(function(){return m.a}));var g=n(224);n.d(t,"unstable_useId",(function(){return g.a}));var y=n(158);n.d(t,"useIsFocusVisible",(function(){return y.a}))},1127:function(e,t,n){var r=n(373).default;function o(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(o=function(e){return e?n:t})(e)}e.exports=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=r(e)&&"function"!=typeof e)return{default:e};var n=o(t);if(n&&n.has(e))return n.get(e);var i={__proto__:null},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var u in e)if("default"!==u&&Object.prototype.hasOwnProperty.call(e,u)){var s=a?Object.getOwnPropertyDescriptor(e,u):null;s&&(s.get||s.set)?Object.defineProperty(i,u,s):i[u]=e[u]}return i.default=e,n&&n.set(e,i),i},e.exports.__esModule=!0,e.exports.default=e.exports},1128:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return r.createSvgIcon}});var r=n(1047)},1129:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.FrameContextConsumer=t.FrameContextProvider=t.FrameContext=void 0;var r,o=n(0),i=(r=o)&&r.__esModule?r:{default:r};var a=void 0,u=void 0;"undefined"!==typeof document&&(a=document),"undefined"!==typeof window&&(u=window);var s=t.FrameContext=i.default.createContext({document:a,window:u}),l=s.Provider,c=s.Consumer;t.FrameContextProvider=l,t.FrameContextConsumer=c},1131:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.FrameContextConsumer=t.FrameContext=void 0;var r=n(1129);Object.defineProperty(t,"FrameContext",{enumerable:!0,get:function(){return r.FrameContext}}),Object.defineProperty(t,"FrameContextConsumer",{enumerable:!0,get:function(){return r.FrameContextConsumer}});var o,i=n(1132),a=(o=i)&&o.__esModule?o:{default:o};t.default=a.default},1132:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=n(0),a=f(i),u=f(n(22)),s=f(n(553)),l=n(1129),c=f(n(1133));function f(e){return e&&e.__esModule?e:{default:e}}var p=function(e){function t(e,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var r=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n));return r.handleLoad=function(){r.forceUpdate()},r._isMounted=!1,r}return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),o(t,[{key:"componentDidMount",value:function(){this._isMounted=!0;var e=this.getDoc();e&&"complete"===e.readyState?this.forceUpdate():this.node.addEventListener("load",this.handleLoad)}},{key:"componentWillUnmount",value:function(){this._isMounted=!1,this.node.removeEventListener("load",this.handleLoad)}},{key:"getDoc",value:function(){return this.node?this.node.contentDocument:null}},{key:"getMountTarget",value:function(){var e=this.getDoc();return this.props.mountTarget?e.querySelector(this.props.mountTarget):e.body.children[0]}},{key:"renderFrameContents",value:function(){if(!this._isMounted)return null;var e=this.getDoc();if(!e)return null;var t=this.props.contentDidMount,n=this.props.contentDidUpdate,r=e.defaultView||e.parentView,o=a.default.createElement(c.default,{contentDidMount:t,contentDidUpdate:n},a.default.createElement(l.FrameContextProvider,{value:{document:e,window:r}},a.default.createElement("div",{className:"frame-content"},this.props.children)));e.body.children.length<1&&(e.open("text/html","replace"),e.write(this.props.initialContent),e.close());var i=this.getMountTarget();return[u.default.createPortal(this.props.head,this.getDoc().head),u.default.createPortal(o,i)]}},{key:"render",value:function(){var e=this,t=r({},this.props,{children:void 0});return delete t.head,delete t.initialContent,delete t.mountTarget,delete t.contentDidMount,delete t.contentDidUpdate,a.default.createElement("iframe",r({},t,{ref:function(t){e.node=t}}),this.renderFrameContents())}}]),t}(i.Component);p.propTypes={style:s.default.object,head:s.default.node,initialContent:s.default.string,mountTarget:s.default.string,contentDidMount:s.default.func,contentDidUpdate:s.default.func,children:s.default.oneOfType([s.default.element,s.default.arrayOf(s.default.element)])},p.defaultProps={style:{},head:null,children:void 0,mountTarget:void 0,contentDidMount:function(){},contentDidUpdate:function(){},initialContent:'<!DOCTYPE html><html><head></head><body><div class="frame-root"></div></body></html>'},t.default=p},1133:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),o=n(0),i=(a(o),a(n(553)));function a(e){return e&&e.__esModule?e:{default:e}}var u=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),r(t,[{key:"componentDidMount",value:function(){this.props.contentDidMount()}},{key:"componentDidUpdate",value:function(){this.props.contentDidUpdate()}},{key:"render",value:function(){return o.Children.only(this.props.children)}}]),t}(o.Component);u.propTypes={children:i.default.element.isRequired,contentDidMount:i.default.func.isRequired,contentDidUpdate:i.default.func.isRequired},t.default=u},1134:function(e,t,n){"use strict";function r(e){return function(){return null}}n.d(t,"a",(function(){return r}))},1164:function(e,t,n){"use strict";var r=n(552),o=n(1127);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=o(n(0)),a=(0,r(n(1128)).default)(i.createElement("path",{d:"M3 18h18v-2H3v2zm0-5h18v-2H3v2zm0-7v2h18V6H3z"}),"Menu");t.default=a},1172:function(e,t,n){"use strict";var r=n(7),o=n(2),i=n(0),a=n(8),u=n(11),s=[0,1,2,3,4,5,6,7,8,9,10],l=["auto",!0,1,2,3,4,5,6,7,8,9,10,11,12];function c(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=parseFloat(e);return"".concat(n/t).concat(String(e).replace(String(n),"")||"px")}var f=i.forwardRef((function(e,t){var n=e.alignContent,u=void 0===n?"stretch":n,s=e.alignItems,l=void 0===s?"stretch":s,c=e.classes,f=e.className,p=e.component,d=void 0===p?"div":p,h=e.container,v=void 0!==h&&h,m=e.direction,g=void 0===m?"row":m,y=e.item,b=void 0!==y&&y,x=e.justify,w=e.justifyContent,S=void 0===w?"flex-start":w,C=e.lg,P=void 0!==C&&C,O=e.md,M=void 0!==O&&O,j=e.sm,_=void 0!==j&&j,k=e.spacing,T=void 0===k?0:k,E=e.wrap,D=void 0===E?"wrap":E,F=e.xl,N=void 0!==F&&F,V=e.xs,R=void 0!==V&&V,A=e.zeroMinWidth,I=void 0!==A&&A,B=Object(r.a)(e,["alignContent","alignItems","classes","className","component","container","direction","item","justify","justifyContent","lg","md","sm","spacing","wrap","xl","xs","zeroMinWidth"]),U=Object(a.a)(c.root,f,v&&[c.container,0!==T&&c["spacing-xs-".concat(String(T))]],b&&c.item,I&&c.zeroMinWidth,"row"!==g&&c["direction-xs-".concat(String(g))],"wrap"!==D&&c["wrap-xs-".concat(String(D))],"stretch"!==l&&c["align-items-xs-".concat(String(l))],"stretch"!==u&&c["align-content-xs-".concat(String(u))],"flex-start"!==(x||S)&&c["justify-content-xs-".concat(String(x||S))],!1!==R&&c["grid-xs-".concat(String(R))],!1!==_&&c["grid-sm-".concat(String(_))],!1!==M&&c["grid-md-".concat(String(M))],!1!==P&&c["grid-lg-".concat(String(P))],!1!==N&&c["grid-xl-".concat(String(N))]);return i.createElement(d,Object(o.a)({className:U,ref:t},B))})),p=Object(u.a)((function(e){return Object(o.a)({root:{},container:{boxSizing:"border-box",display:"flex",flexWrap:"wrap",width:"100%"},item:{boxSizing:"border-box",margin:"0"},zeroMinWidth:{minWidth:0},"direction-xs-column":{flexDirection:"column"},"direction-xs-column-reverse":{flexDirection:"column-reverse"},"direction-xs-row-reverse":{flexDirection:"row-reverse"},"wrap-xs-nowrap":{flexWrap:"nowrap"},"wrap-xs-wrap-reverse":{flexWrap:"wrap-reverse"},"align-items-xs-center":{alignItems:"center"},"align-items-xs-flex-start":{alignItems:"flex-start"},"align-items-xs-flex-end":{alignItems:"flex-end"},"align-items-xs-baseline":{alignItems:"baseline"},"align-content-xs-center":{alignContent:"center"},"align-content-xs-flex-start":{alignContent:"flex-start"},"align-content-xs-flex-end":{alignContent:"flex-end"},"align-content-xs-space-between":{alignContent:"space-between"},"align-content-xs-space-around":{alignContent:"space-around"},"justify-content-xs-center":{justifyContent:"center"},"justify-content-xs-flex-end":{justifyContent:"flex-end"},"justify-content-xs-space-between":{justifyContent:"space-between"},"justify-content-xs-space-around":{justifyContent:"space-around"},"justify-content-xs-space-evenly":{justifyContent:"space-evenly"}},function(e,t){var n={};return s.forEach((function(r){var o=e.spacing(r);0!==o&&(n["spacing-".concat(t,"-").concat(r)]={margin:"-".concat(c(o,2)),width:"calc(100% + ".concat(c(o),")"),"& > $item":{padding:c(o,2)}})})),n}(e,"xs"),e.breakpoints.keys.reduce((function(t,n){return function(e,t,n){var r={};l.forEach((function(e){var t="grid-".concat(n,"-").concat(e);if(!0!==e)if("auto"!==e){var o="".concat(Math.round(e/12*1e8)/1e6,"%");r[t]={flexBasis:o,flexGrow:0,maxWidth:o}}else r[t]={flexBasis:"auto",flexGrow:0,maxWidth:"none"};else r[t]={flexBasis:0,flexGrow:1,maxWidth:"100%"}})),"xs"===n?Object(o.a)(e,r):e[t.breakpoints.up(n)]=r}(t,e,n),t}),{}))}),{name:"MuiGrid"})(f);t.a=p},1249:function(e,t,n){"use strict";var r=n(552),o=n(1127);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=o(n(0)),a=(0,r(n(1128)).default)(i.createElement("path",{d:"M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z"}),"Search");t.default=a},1293:function(e,t,n){"use strict";var r=n(552),o=n(1127);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=o(n(0)),a=(0,r(n(1128)).default)(i.createElement("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 3c1.66 0 3 1.34 3 3s-1.34 3-3 3-3-1.34-3-3 1.34-3 3-3zm0 14.2c-2.5 0-4.71-1.28-6-3.22.03-1.99 4-3.08 6-3.08 1.99 0 5.97 1.09 6 3.08-1.29 1.94-3.5 3.22-6 3.22z"}),"AccountCircle");t.default=a},130:function(e,t,n){"use strict";function r(e,t){return function(){return null}}n.d(t,"a",(function(){return r}))},2359:function(e,t,n){"use strict";var r=n(552),o=n(1127);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=o(n(0)),a=(0,r(n(1128)).default)(i.createElement("path",{d:"M12 4.5C7 4.5 2.73 7.61 1 12c1.73 4.39 6 7.5 11 7.5s9.27-3.11 11-7.5c-1.73-4.39-6-7.5-11-7.5zM12 17c-2.76 0-5-2.24-5-5s2.24-5 5-5 5 2.24 5 5-2.24 5-5 5zm0-8c-1.66 0-3 1.34-3 3s1.34 3 3 3 3-1.34 3-3-1.34-3-3-3z"}),"Visibility");t.default=a},2360:function(e,t,n){"use strict";var r=n(552),o=n(1127);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=o(n(0)),a=(0,r(n(1128)).default)(i.createElement("path",{d:"M12 7c2.76 0 5 2.24 5 5 0 .65-.13 1.26-.36 1.83l2.92 2.92c1.51-1.26 2.7-2.89 3.43-4.75-1.73-4.39-6-7.5-11-7.5-1.4 0-2.74.25-3.98.7l2.16 2.16C10.74 7.13 11.35 7 12 7zM2 4.27l2.28 2.28.46.46C3.08 8.3 1.78 10.02 1 12c1.73 4.39 6 7.5 11 7.5 1.55 0 3.03-.3 4.38-.84l.42.42L19.73 22 21 20.73 3.27 3 2 4.27zM7.53 9.8l1.55 1.55c-.05.21-.08.43-.08.65 0 1.66 1.34 3 3 3 .22 0 .44-.03.65-.08l1.55 1.55c-.67.33-1.41.53-2.2.53-2.76 0-5-2.24-5-5 0-.79.2-1.53.53-2.2zm4.31-.78l3.15 3.15.02-.16c0-1.66-1.34-3-3-3l-.17.01z"}),"VisibilityOff");t.default=a},2377:function(e,t,n){"use strict";var r=n(552),o=n(1127);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=o(n(0)),a=(0,r(n(1128)).default)(i.createElement("path",{d:"M21.71 11.29l-9-9a.9959.9959 0 00-1.41 0l-9 9c-.39.39-.39 1.02 0 1.41l9 9c.39.39 1.02.39 1.41 0l9-9c.39-.38.39-1.01 0-1.41zM14 14.5V12h-4v3H8v-4c0-.55.45-1 1-1h5V7.5l3.5 3.5-3.5 3.5z"}),"Directions");t.default=a},2380:function(e,t,n){var r;e.exports=(r=n(0),function(e){function t(r){if(n[r])return n[r].exports;var o=n[r]={exports:{},id:r,loaded:!1};return e[r].call(o.exports,o,o.exports,t),o.loaded=!0,o.exports}var n={};return t.m=e,t.c=n,t.p="",t(0)}([function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function u(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0}),t.conformToMask=void 0;var s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},l=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),c=n(3);Object.defineProperty(t,"conformToMask",{enumerable:!0,get:function(){return r(c).default}});var f=r(n(11)),p=r(n(9)),d=r(n(5)),h=n(2),v=function(e){function t(){var e;i(this,t);for(var n=arguments.length,r=Array(n),o=0;o<n;o++)r[o]=arguments[o];var u=a(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(r)));return u.setRef=u.setRef.bind(u),u.onBlur=u.onBlur.bind(u),u.onChange=u.onChange.bind(u),u}return u(t,e),l(t,[{key:"setRef",value:function(e){this.inputElement=e}},{key:"initTextMask",value:function(){var e=this.props,t=this.props.value;this.textMaskInputElement=(0,d.default)(s({inputElement:this.inputElement},e)),this.textMaskInputElement.update(t)}},{key:"componentDidMount",value:function(){this.initTextMask()}},{key:"componentDidUpdate",value:function(e){var t=this.props,n=t.value,r=t.pipe,o=t.mask,i={guide:t.guide,placeholderChar:t.placeholderChar,showMask:t.showMask},a="function"==typeof r&&"function"==typeof e.pipe?r.toString()!==e.pipe.toString():(0,h.isNil)(r)&&!(0,h.isNil)(e.pipe)||!(0,h.isNil)(r)&&(0,h.isNil)(e.pipe),u=o.toString()!==e.mask.toString(),s=Object.keys(i).some((function(t){return i[t]!==e[t]}))||u||a;(n!==this.inputElement.value||s)&&this.initTextMask()}},{key:"render",value:function(){var e=this.props,t=e.render,n=o(e,["render"]);return delete n.mask,delete n.guide,delete n.pipe,delete n.placeholderChar,delete n.keepCharPositions,delete n.value,delete n.onBlur,delete n.onChange,delete n.showMask,t(this.setRef,s({onBlur:this.onBlur,onChange:this.onChange,defaultValue:this.props.value},n))}},{key:"onChange",value:function(e){this.textMaskInputElement.update(),"function"==typeof this.props.onChange&&this.props.onChange(e)}},{key:"onBlur",value:function(e){"function"==typeof this.props.onBlur&&this.props.onBlur(e)}}]),t}(f.default.PureComponent);t.default=v,v.propTypes={mask:p.default.oneOfType([p.default.array,p.default.func,p.default.bool,p.default.shape({mask:p.default.oneOfType([p.default.array,p.default.func]),pipe:p.default.func})]).isRequired,guide:p.default.bool,value:p.default.oneOfType([p.default.string,p.default.number]),pipe:p.default.func,placeholderChar:p.default.string,keepCharPositions:p.default.bool,showMask:p.default.bool},v.defaultProps={render:function(e,t){return f.default.createElement("input",s({ref:e},t))}}},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.placeholderChar="_",t.strFunction="function"},function(e,t,n){"use strict";function r(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:c,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:l.placeholderChar;if(!o(e))throw new Error("Text-mask:convertMaskToPlaceholder; The mask property must be an array.");if(-1!==e.indexOf(t))throw new Error("Placeholder character must not be used as part of the mask. Please specify a character that is not present in your mask as your placeholder character.\n\nThe placeholder character that was received is: "+JSON.stringify(t)+"\n\nThe mask that was received is: "+JSON.stringify(e));return e.map((function(e){return e instanceof RegExp?t:e})).join("")}function o(e){return Array.isArray&&Array.isArray(e)||e instanceof Array}function i(e){return"string"==typeof e||e instanceof String}function a(e){return"number"==typeof e&&void 0===e.length&&!isNaN(e)}function u(e){return"undefined"==typeof e||null===e}function s(e){for(var t=[],n=void 0;-1!==(n=e.indexOf(f));)t.push(n),e.splice(n,1);return{maskWithoutCaretTraps:e,indexes:t}}Object.defineProperty(t,"__esModule",{value:!0}),t.convertMaskToPlaceholder=r,t.isArray=o,t.isString=i,t.isNumber=a,t.isNil=u,t.processCaretTraps=s;var l=n(1),c=[],f="[]"},function(e,t,n){"use strict";function r(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:s,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:u,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(!(0,i.isArray)(t)){if(("undefined"==typeof t?"undefined":o(t))!==a.strFunction)throw new Error("Text-mask:conformToMask; The mask property must be an array.");t=t(e,n),t=(0,i.processCaretTraps)(t).maskWithoutCaretTraps}var r=n.guide,l=void 0===r||r,c=n.previousConformedValue,f=void 0===c?s:c,p=n.placeholderChar,d=void 0===p?a.placeholderChar:p,h=n.placeholder,v=void 0===h?(0,i.convertMaskToPlaceholder)(t,d):h,m=n.currentCaretPosition,g=n.keepCharPositions,y=!1===l&&void 0!==f,b=e.length,x=f.length,w=v.length,S=t.length,C=b-x,P=C>0,O=m+(P?-C:0),M=O+Math.abs(C);if(!0===g&&!P){for(var j=s,_=O;_<M;_++)v[_]===d&&(j+=d);e=e.slice(0,O)+j+e.slice(O,b)}for(var k=e.split(s).map((function(e,t){return{char:e,isNew:t>=O&&t<M}})),T=b-1;T>=0;T--){var E=k[T].char;E!==d&&E===v[T>=O&&x===S?T-C:T]&&k.splice(T,1)}var D=s,F=!1;e:for(var N=0;N<w;N++){var V=v[N];if(V===d){if(k.length>0)for(;k.length>0;){var R=k.shift(),A=R.char,I=R.isNew;if(A===d&&!0!==y){D+=d;continue e}if(t[N].test(A)){if(!0===g&&!1!==I&&f!==s&&!1!==l&&P){for(var B=k.length,U=null,z=0;z<B;z++){var W=k[z];if(W.char!==d&&!1===W.isNew)break;if(W.char===d){U=z;break}}null!==U?(D+=A,k.splice(U,1)):N--}else D+=A;continue e}F=!0}!1===y&&(D+=v.substr(N,w));break}D+=V}if(y&&!1===P){for(var L=null,q=0;q<D.length;q++)v[q]===d&&(L=q);D=null!==L?D.substr(0,L+1):s}return{conformedValue:D,meta:{someCharsRejected:F}}}Object.defineProperty(t,"__esModule",{value:!0});var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};t.default=r;var i=n(2),a=n(1),u=[],s=""},function(e,t){"use strict";function n(e){var t=e.previousConformedValue,n=void 0===t?o:t,i=e.previousPlaceholder,a=void 0===i?o:i,u=e.currentCaretPosition,s=void 0===u?0:u,l=e.conformedValue,c=e.rawValue,f=e.placeholderChar,p=e.placeholder,d=e.indexesOfPipedChars,h=void 0===d?r:d,v=e.caretTrapIndexes,m=void 0===v?r:v;if(0===s||!c.length)return 0;var g=c.length,y=n.length,b=p.length,x=l.length,w=g-y,S=w>0;if(w>1&&!S&&0!==y)return s;var C=0,P=void 0,O=void 0;if(!S||n!==l&&l!==p){var M=l.toLowerCase(),j=c.toLowerCase().substr(0,s).split(o).filter((function(e){return-1!==M.indexOf(e)}));O=j[j.length-1];var _=a.substr(0,j.length).split(o).filter((function(e){return e!==f})).length,k=p.substr(0,j.length).split(o).filter((function(e){return e!==f})).length,T=k!==_,E=void 0!==a[j.length-1]&&void 0!==p[j.length-2]&&a[j.length-1]!==f&&a[j.length-1]!==p[j.length-1]&&a[j.length-1]===p[j.length-2];!S&&(T||E)&&_>0&&p.indexOf(O)>-1&&void 0!==c[s]&&(P=!0,O=c[s]);for(var D=h.map((function(e){return M[e]})),F=D.filter((function(e){return e===O})).length,N=j.filter((function(e){return e===O})).length,V=p.substr(0,p.indexOf(f)).split(o).filter((function(e,t){return e===O&&c[t]!==e})).length,R=V+N+F+(P?1:0),A=0,I=0;I<x&&(C=I+1,M[I]===O&&A++,!(A>=R));I++);}else C=s-w;if(S){for(var B=C,U=C;U<=b;U++)if(p[U]===f&&(B=U),p[U]===f||-1!==m.indexOf(U)||U===b)return B}else if(P){for(var z=C-1;z>=0;z--)if(l[z]===O||-1!==m.indexOf(z)||0===z)return z}else for(var W=C;W>=0;W--)if(p[W-1]===f||-1!==m.indexOf(W)||0===W)return W}Object.defineProperty(t,"__esModule",{value:!0}),t.default=n;var r=[],o=""},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e){var t={previousConformedValue:void 0,previousPlaceholder:void 0};return{state:t,update:function(n){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e,o=r.inputElement,h=r.mask,m=r.guide,g=r.pipe,y=r.placeholderChar,b=void 0===y?p.placeholderChar:y,x=r.keepCharPositions,w=void 0!==x&&x,S=r.showMask,C=void 0!==S&&S;if("undefined"==typeof n&&(n=o.value),n!==t.previousConformedValue){("undefined"==typeof h?"undefined":s(h))===v&&void 0!==h.pipe&&void 0!==h.mask&&(g=h.pipe,h=h.mask);var P=void 0,O=void 0;if(h instanceof Array&&(P=(0,f.convertMaskToPlaceholder)(h,b)),!1!==h){var M=a(n),j=o.selectionEnd,_=t.previousConformedValue,k=t.previousPlaceholder,T=void 0;if(("undefined"==typeof h?"undefined":s(h))===p.strFunction){if(!1===(O=h(M,{currentCaretPosition:j,previousConformedValue:_,placeholderChar:b})))return;var E=(0,f.processCaretTraps)(O);O=E.maskWithoutCaretTraps,T=E.indexes,P=(0,f.convertMaskToPlaceholder)(O,b)}else O=h;var D={previousConformedValue:_,guide:m,placeholderChar:b,pipe:g,placeholder:P,currentCaretPosition:j,keepCharPositions:w},F=(0,c.default)(M,O,D).conformedValue,N=("undefined"==typeof g?"undefined":s(g))===p.strFunction,V={};N&&(!1===(V=g(F,u({rawValue:M},D)))?V={value:_,rejected:!0}:(0,f.isString)(V)&&(V={value:V}));var R=N?V.value:F,A=(0,l.default)({previousConformedValue:_,previousPlaceholder:k,conformedValue:R,placeholder:P,rawValue:M,currentCaretPosition:j,placeholderChar:b,indexesOfPipedChars:V.indexesOfPipedChars,caretTrapIndexes:T}),I=R===P&&0===A?C?P:d:R;t.previousConformedValue=I,t.previousPlaceholder=P,o.value!==I&&(o.value=I,i(o,A))}}}}}function i(e,t){document.activeElement===e&&(m?g((function(){return e.setSelectionRange(t,t,h)}),0):e.setSelectionRange(t,t,h))}function a(e){if((0,f.isString)(e))return e;if((0,f.isNumber)(e))return String(e);if(void 0===e||null===e)return d;throw new Error("The 'value' provided to Text Mask needs to be a string or a number. The value received was:\n\n "+JSON.stringify(e))}Object.defineProperty(t,"__esModule",{value:!0});var u=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};t.default=o;var l=r(n(4)),c=r(n(3)),f=n(2),p=n(1),d="",h="none",v="object",m="undefined"!=typeof navigator&&/Android/i.test(navigator.userAgent),g="undefined"!=typeof requestAnimationFrame?requestAnimationFrame:setTimeout},function(e,t){"use strict";function n(e){return function(){return e}}var r=function(){};r.thatReturns=n,r.thatReturnsFalse=n(!1),r.thatReturnsTrue=n(!0),r.thatReturnsNull=n(null),r.thatReturnsThis=function(){return this},r.thatReturnsArgument=function(e){return e},e.exports=r},function(e,t,n){"use strict";function r(e,t,n,r,i,a,u,s){if(o(t),!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 c=[n,r,i,a,u,s],f=0;(l=new Error(t.replace(/%s/g,(function(){return c[f++]})))).name="Invariant Violation"}throw l.framesToPop=1,l}}var o=function(e){};e.exports=r},function(e,t,n){"use strict";var r=n(6),o=n(7),i=n(10);e.exports=function(){function e(e,t,n,r,a,u){u!==i&&o(!1,"Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types")}function t(){return e}e.isRequired=e;var n={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t};return n.checkPropTypes=r,n.PropTypes=n,n}},function(e,t,n){"use strict";"function"==typeof Symbol&&Symbol.iterator,e.exports=n(8)()},function(e,t){"use strict";var n="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";e.exports=n},function(e,t){e.exports=r}]))},2381:function(e,t,n){"use strict";var r=n(0),o=n.n(r);function i(){}function a(e){return!!(e||"").match(/\d/)}function u(e){return null===e||void 0===e}function s(e){return e.replace(/[-[\]/{}()*+?.\\^$|]/g,"\\$&")}function l(e,t){void 0===t&&(t=!0);var n="-"===e[0],r=n&&t,o=(e=e.replace("-","")).split(".");return{beforeDecimal:o[0],afterDecimal:o[1]||"",hasNagation:n,addNegation:r}}function c(e,t,n){for(var r="",o=n?"0":"",i=0;i<=t-1;i++)r+=e[i]||o;return r}function f(e,t){return Array(t+1).join(e)}function p(e,t){if(e.value=e.value,null!==e){if(e.createTextRange){var n=e.createTextRange();return n.move("character",t),n.select(),!0}return e.selectionStart||0===e.selectionStart?(e.focus(),e.setSelectionRange(t,t),!0):(e.focus(),!1)}}function d(e,t,n){return Math.min(Math.max(e,t),n)}function h(e){return Math.max(e.selectionStart,e.selectionEnd)}var v={displayType:"input",decimalSeparator:".",thousandsGroupStyle:"thousand",fixedDecimalScale:!1,prefix:"",suffix:"",allowNegative:!0,allowEmptyFormatting:!1,allowLeadingZeros:!1,isNumericString:!1,type:"text",onValueChange:i,onChange:i,onKeyDown:i,onMouseUp:i,onFocus:i,onBlur:i,isAllowed:function(){return!0}},m=function(e){function t(t){e.call(this,t);var n=t.defaultValue;this.validateProps();var r=this.formatValueProp(n);this.state={value:r,numAsString:this.removeFormatting(r),mounted:!1},this.selectionBeforeInput={selectionStart:0,selectionEnd:0},this.onChange=this.onChange.bind(this),this.onKeyDown=this.onKeyDown.bind(this),this.onMouseUp=this.onMouseUp.bind(this),this.onFocus=this.onFocus.bind(this),this.onBlur=this.onBlur.bind(this)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.componentDidMount=function(){this.setState({mounted:!0})},t.prototype.componentDidUpdate=function(e){this.updateValueIfRequired(e)},t.prototype.componentWillUnmount=function(){clearTimeout(this.focusTimeout),clearTimeout(this.caretPositionTimeout)},t.prototype.updateValueIfRequired=function(e){var t=this,n=t.props,r=t.state,o=t.focusedElm,i=r.value,a=r.numAsString;if(void 0===a&&(a=""),e!==n){this.validateProps();var s=this.formatNumString(a),l=u(n.value)?s:this.formatValueProp(),c=this.removeFormatting(l),f=parseFloat(c),p=parseFloat(a);(isNaN(f)&&isNaN(p)||f===p)&&s===i&&(null!==o||l===i)||this.updateValue({formattedValue:l,numAsString:c,input:o})}},t.prototype.getFloatString=function(e){void 0===e&&(e="");var t=this.props.decimalScale,n=this.getSeparators().decimalSeparator,r=this.getNumberRegex(!0),o="-"===e[0];o&&(e=e.replace("-","")),n&&0===t&&(e=e.split(n)[0]);var i=(e=(e.match(r)||[]).join("").replace(n,".")).indexOf(".");return-1!==i&&(e=e.substring(0,i)+"."+e.substring(i+1,e.length).replace(new RegExp(s(n),"g"),"")),o&&(e="-"+e),e},t.prototype.getNumberRegex=function(e,t){var n=this.props,r=n.format,o=n.decimalScale,i=n.customNumerals,a=this.getSeparators().decimalSeparator;return new RegExp("[0-9"+(i?i.join(""):"")+"]"+(!a||0===o||t||r?"":"|"+s(a)),e?"g":void 0)},t.prototype.getSeparators=function(){var e=this.props.decimalSeparator,t=this.props,n=t.thousandSeparator,r=t.allowedDecimalSeparators;return!0===n&&(n=","),r||(r=[e,"."]),{decimalSeparator:e,thousandSeparator:n,allowedDecimalSeparators:r}},t.prototype.getMaskAtIndex=function(e){var t=this.props.mask;return void 0===t&&(t=" "),"string"===typeof t?t:t[e]||" "},t.prototype.getValueObject=function(e,t){var n=parseFloat(t);return{formattedValue:e,value:t,floatValue:isNaN(n)?void 0:n}},t.prototype.validateProps=function(){var e=this.props.mask,t=this.getSeparators(),n=t.decimalSeparator,r=t.thousandSeparator;if(n===r)throw new Error("\n Decimal separator can't be same as thousand separator.\n thousandSeparator: "+r+' (thousandSeparator = {true} is same as thousandSeparator = ",")\n decimalSeparator: '+n+" (default value for decimalSeparator is .)\n ");if(e&&("string"===e?e:e.toString()).match(/\d/g))throw new Error("\n Mask "+e+" should not contain numeric character;\n ")},t.prototype.setPatchedCaretPosition=function(e,t,n){p(e,t),this.caretPositionTimeout=setTimeout((function(){e.value===n&&p(e,t)}),0)},t.prototype.correctCaretPosition=function(e,t,n){var r=this.props,o=r.prefix,i=r.suffix,u=r.format;if(""===e)return 0;if(t=d(t,0,e.length),!u){var s="-"===e[0];return d(t,o.length+(s?1:0),e.length-i.length)}if("function"===typeof u)return t;if("#"===u[t]&&a(e[t]))return t;if("#"===u[t-1]&&a(e[t-1]))return t;var l=u.indexOf("#");t=d(t,l,u.lastIndexOf("#")+1);for(var c=u.substring(t,u.length).indexOf("#"),f=t,p=t+(-1===c?0:c);f>l&&("#"!==u[f]||!a(e[f]));)f-=1;return!a(e[p])||"left"===n&&t!==l||t-f<p-t?a(e[f])?f+1:f:p},t.prototype.getCaretPosition=function(e,t,n){var r,o,i=this.props.format,a=this.state.value,u=this.getNumberRegex(!0),s=(e.match(u)||[]).join(""),l=(t.match(u)||[]).join("");for(r=0,o=0;o<n;o++){var c=e[o]||"",f=t[r]||"";if((c.match(u)||c===f)&&("0"!==c||!f.match(u)||"0"===f||s.length===l.length)){for(;c!==t[r]&&r<t.length;)r++;r++}}return"string"!==typeof i||a||(r=t.length),r=this.correctCaretPosition(t,r)},t.prototype.removePrefixAndSuffix=function(e){var t=this.props,n=t.format,r=t.prefix,o=t.suffix;if(!n&&e){var i="-"===e[0];i&&(e=e.substring(1,e.length));var a=(e=r&&0===e.indexOf(r)?e.substring(r.length,e.length):e).lastIndexOf(o);e=o&&-1!==a&&a===e.length-o.length?e.substring(0,a):e,i&&(e="-"+e)}return e},t.prototype.removePatternFormatting=function(e){for(var t=this.props.format.split("#").filter((function(e){return""!==e})),n=0,r="",o=0,i=t.length;o<=i;o++){var a=t[o]||"",u=o===i?e.length:e.indexOf(a,n);if(-1===u){r=e;break}r+=e.substring(n,u),n=u+a.length}return(r.match(/\d/g)||[]).join("")},t.prototype.removeFormatting=function(e){var t=this.props,n=t.format,r=t.removeFormatting;return e?(n?e="string"===typeof n?this.removePatternFormatting(e):"function"===typeof r?r(e):(e.match(/\d/g)||[]).join(""):(e=this.removePrefixAndSuffix(e),e=this.getFloatString(e)),e):e},t.prototype.formatWithPattern=function(e){for(var t=this.props.format,n=0,r=t.split(""),o=0,i=t.length;o<i;o++)"#"===t[o]&&(r[o]=e[n]||this.getMaskAtIndex(n),n+=1);return r.join("")},t.prototype.formatAsNumber=function(e){var t=this.props,n=t.decimalScale,r=t.fixedDecimalScale,o=t.prefix,i=t.suffix,a=t.allowNegative,u=t.thousandsGroupStyle,s=this.getSeparators(),f=s.thousandSeparator,p=s.decimalSeparator,d=-1!==e.indexOf(".")||n&&r,h=l(e,a),v=h.beforeDecimal,m=h.afterDecimal,g=h.addNegation;return void 0!==n&&(m=c(m,n,r)),f&&(v=function(e,t,n){var r=function(e){switch(e){case"lakh":return/(\d+?)(?=(\d\d)+(\d)(?!\d))(\.\d+)?/g;case"wan":return/(\d)(?=(\d{4})+(?!\d))/g;default:return/(\d)(?=(\d{3})+(?!\d))/g}}(n),o=e.search(/[1-9]/);return o=-1===o?e.length:o,e.substring(0,o)+e.substring(o,e.length).replace(r,"$1"+t)}(v,f,u)),o&&(v=o+v),i&&(m+=i),g&&(v="-"+v),e=v+(d&&p||"")+m},t.prototype.formatNumString=function(e){void 0===e&&(e="");var t=this.props,n=t.format,r=t.allowEmptyFormatting,o=t.customNumerals,i=e;if(o&&10===o.length){var a=new RegExp("["+o.join("")+"]","g");i=e.replace(a,(function(e){return o.indexOf(e).toString()}))}return i=""!==e||r?"-"!==e||n?"string"===typeof n?this.formatWithPattern(i):"function"===typeof n?n(i):this.formatAsNumber(i):"-":""},t.prototype.formatValueProp=function(e){var t=this.props,n=t.format,r=t.decimalScale,o=t.fixedDecimalScale,i=t.allowEmptyFormatting,a=this.props,s=a.value,p=a.isNumericString,d=!(s=u(s)?e:s)&&0!==s;return d&&i&&(s=""),d&&!i?"":("number"===typeof s&&(s=function(e){var t="-"===(e+="")[0]?"-":"";t&&(e=e.substring(1));var n=e.split(/[eE]/g),r=n[0],o=n[1];if(!(o=Number(o)))return t+r;var i=1+o,a=(r=r.replace(".","")).length;return i<0?r="0."+f("0",Math.abs(i))+r:i>=a?r+=f("0",i-a):r=(r.substring(0,i)||"0")+"."+r.substring(i),t+r}(s),p=!0),"Infinity"===s&&p&&(s=""),p&&!n&&"number"===typeof r&&(s=function(e,t,n){if(-1!==["","-"].indexOf(e))return e;var r=-1!==e.indexOf(".")&&t,o=l(e),i=o.beforeDecimal,a=o.afterDecimal,u=o.hasNagation,s=parseFloat("0."+(a||"0")),f=(a.length<=t?"0."+a:s.toFixed(t)).split(".");return(u?"-":"")+i.split("").reverse().reduce((function(e,t,n){return e.length>n?(Number(e[0])+Number(t)).toString()+e.substring(1,e.length):t+e}),f[0])+(r?".":"")+c(f[1]||"",Math.min(t,a.length),n)}(s,r,o)),p?this.formatNumString(s):this.formatInput(s))},t.prototype.formatNegation=function(e){void 0===e&&(e="");var t=this.props.allowNegative,n=new RegExp("(-)"),r=new RegExp("(-)(.)*(-)"),o=n.test(e),i=r.test(e);return e=e.replace(/-/g,""),o&&!i&&t&&(e="-"+e),e},t.prototype.formatInput=function(e){return void 0===e&&(e=""),this.props.format||(e=this.removePrefixAndSuffix(e),e=this.formatNegation(e)),e=this.removeFormatting(e),this.formatNumString(e)},t.prototype.isCharacterAFormat=function(e,t){var n=this.props,r=n.format,o=n.prefix,i=n.suffix,a=n.decimalScale,u=n.fixedDecimalScale,s=this.getSeparators().decimalSeparator;return"string"===typeof r&&"#"!==r[e]||!(r||!(e<o.length||e>=t.length-i.length||a&&u&&t[e]===s))},t.prototype.correctInputValue=function(e,t,n){var r=this,o=this.props,i=o.format,a=o.allowNegative,u=o.prefix,s=o.suffix,c=o.decimalScale,f=this.getSeparators(),p=f.allowedDecimalSeparators,d=f.decimalSeparator,h=this.state.numAsString||"",v=this.selectionBeforeInput,m=v.selectionStart,g=v.selectionEnd,y=function(e,t){for(var n=0,r=0,o=e.length,i=t.length;e[n]===t[n]&&n<o;)n++;for(;e[o-1-r]===t[i-1-r]&&i-r>n&&o-r>n;)r++;return{start:n,end:o-r}}(t,n),b=y.start,x=y.end;if(!i&&b===x&&-1!==p.indexOf(n[m])){var w=0===c?"":d;return n.substr(0,m)+w+n.substr(m+1,n.length)}var S=i?0:u.length,C=t.length-(i?0:s.length);if(n.length>t.length||!n.length||b===x||0===m&&g===t.length||0===b&&x===t.length||m===S&&g===C)return n;var P=t.substr(b,x-b);if(!![].concat(P).find((function(e,n){return r.isCharacterAFormat(n+b,t)}))){var O=t.substr(b),M={},j=[];[].concat(O).forEach((function(e,n){r.isCharacterAFormat(n+b,t)?M[n]=e:n>P.length-1&&j.push(e)})),Object.keys(M).forEach((function(e){j.length>e?j.splice(e,0,M[e]):j.push(M[e])})),n=t.substr(0,b)+j.join("")}if(!i){var _=this.removeFormatting(n),k=l(_,a),T=k.beforeDecimal,E=k.afterDecimal,D=k.addNegation,F=e<n.indexOf(d)+1;if(_.length<h.length&&F&&""===T&&!parseFloat(E))return D?"-":""}return n},t.prototype.updateValue=function(e){var t=e.formattedValue,n=e.input,r=e.setCaretPosition;void 0===r&&(r=!0);var o=e.numAsString,i=e.caretPos,a=this.props.onValueChange,u=this.state.value;if(n)if(r){if(!i){var s=e.inputValue||n.value,l=h(n);n.value=t,i=this.getCaretPosition(s,t,l)}this.setPatchedCaretPosition(n,i,t)}else n.value=t;void 0===o&&(o=this.removeFormatting(t)),t!==u&&(this.setState({value:t,numAsString:o}),a(this.getValueObject(t,o)))},t.prototype.onChange=function(e){var t=e.target,n=t.value,r=this.state,o=this.props,i=o.isAllowed,a=r.value||"",u=h(t);n=this.correctInputValue(u,a,n);var s=this.formatInput(n)||"",l=this.removeFormatting(s),c=i(this.getValueObject(s,l));c||(s=a),this.updateValue({formattedValue:s,numAsString:l,inputValue:n,input:t}),c&&o.onChange(e)},t.prototype.onBlur=function(e){var t=this.props,n=this.state,r=t.format,o=t.onBlur,i=t.allowLeadingZeros,a=n.numAsString,u=n.value;if(this.focusedElm=null,clearTimeout(this.focusTimeout),clearTimeout(this.caretPositionTimeout),!r){isNaN(parseFloat(a))&&(a=""),i||(a=function(e){if(!e)return e;var t="-"===e[0];t&&(e=e.substring(1,e.length));var n=e.split("."),r=n[0].replace(/^0+/,"")||"0",o=n[1]||"";return(t?"-":"")+r+(o?"."+o:"")}(a));var s=this.formatNumString(a);if(s!==u)return this.updateValue({formattedValue:s,numAsString:a,input:e.target,setCaretPosition:!1}),void o(e)}o(e)},t.prototype.onKeyDown=function(e){var t,n=e.target,r=e.key,o=n.selectionStart,i=n.selectionEnd,a=n.value;void 0===a&&(a="");var u=this.props,s=u.decimalScale,l=u.fixedDecimalScale,c=u.prefix,f=u.suffix,p=u.format,d=u.onKeyDown,h=void 0!==s&&l,v=this.getNumberRegex(!1,h),m=new RegExp("-"),g="string"===typeof p;if(this.selectionBeforeInput={selectionStart:o,selectionEnd:i},"ArrowLeft"===r||"Backspace"===r?t=o-1:"ArrowRight"===r?t=o+1:"Delete"===r&&(t=o),void 0!==t&&o===i){var y=t,b=g?p.indexOf("#"):c.length,x=g?p.lastIndexOf("#")+1:a.length-f.length;if("ArrowLeft"===r||"ArrowRight"===r){var w="ArrowLeft"===r?"left":"right";y=this.correctCaretPosition(a,t,w)}else if("Delete"!==r||v.test(a[t])||m.test(a[t])){if("Backspace"===r&&!v.test(a[t]))if(o<=b+1&&"-"===a[0]&&"undefined"===typeof p){var S=a.substring(1);this.updateValue({formattedValue:S,caretPos:y,input:n})}else if(!m.test(a[t])){for(;!v.test(a[y-1])&&y>b;)y--;y=this.correctCaretPosition(a,y,"left")}}else for(;!v.test(a[y])&&y<x;)y++;(y!==t||t<b||t>x)&&(e.preventDefault(),this.setPatchedCaretPosition(n,y,a)),e.isUnitTestRun&&this.setPatchedCaretPosition(n,y,a),d(e)}else d(e)},t.prototype.onMouseUp=function(e){var t=e.target,n=t.selectionStart,r=t.selectionEnd,o=t.value;if(void 0===o&&(o=""),n===r){var i=this.correctCaretPosition(o,n);i!==n&&this.setPatchedCaretPosition(t,i,o)}this.props.onMouseUp(e)},t.prototype.onFocus=function(e){var t=this;e.persist(),this.focusedElm=e.target,this.focusTimeout=setTimeout((function(){var n=e.target,r=n.selectionStart,o=n.selectionEnd,i=n.value;void 0===i&&(i="");var a=t.correctCaretPosition(i,r);a===r||0===r&&o===i.length||t.setPatchedCaretPosition(n,a,i),t.props.onFocus(e)}),0)},t.prototype.render=function(){var e=this.props,t=e.type,n=e.displayType,r=e.customInput,i=e.renderText,a=e.getInputRef,u=e.format,s=(e.thousandSeparator,e.decimalSeparator,e.allowedDecimalSeparators,e.thousandsGroupStyle,e.decimalScale,e.fixedDecimalScale,e.prefix,e.suffix,e.removeFormatting,e.mask,e.defaultValue,e.isNumericString,e.allowNegative,e.allowEmptyFormatting,e.allowLeadingZeros,e.onValueChange,e.isAllowed,e.customNumerals,e.onChange,e.onKeyDown,e.onMouseUp,e.onFocus,e.onBlur,e.value,function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&-1===t.indexOf(r)&&(n[r]=e[r]);return n}(e,["type","displayType","customInput","renderText","getInputRef","format","thousandSeparator","decimalSeparator","allowedDecimalSeparators","thousandsGroupStyle","decimalScale","fixedDecimalScale","prefix","suffix","removeFormatting","mask","defaultValue","isNumericString","allowNegative","allowEmptyFormatting","allowLeadingZeros","onValueChange","isAllowed","customNumerals","onChange","onKeyDown","onMouseUp","onFocus","onBlur","value"])),l=this.state,c=l.value,f=l.mounted&&function(e){return e||"undefined"!==typeof navigator&&!(navigator.platform&&/iPhone|iPod/.test(navigator.platform))}(u)?"numeric":void 0,p=Object.assign({inputMode:f},s,{type:t,value:c,onChange:this.onChange,onKeyDown:this.onKeyDown,onMouseUp:this.onMouseUp,onFocus:this.onFocus,onBlur:this.onBlur});if("text"===n)return i?i(c,s)||null:o.a.createElement("span",Object.assign({},s,{ref:a}),c);if(r){var d=r;return o.a.createElement(d,Object.assign({},p,{ref:a}))}return o.a.createElement("input",Object.assign({},p,{ref:a}))},t}(o.a.Component);m.defaultProps=v,t.a=m}}]);