webpackJsonp(["auth"],{"+jv6":function(t,e,r){"use strict";var n=r("GiK3"),o=r.n(n),i=r("AN6t"),u=r.n(i),a=["className","children"];function c(t){"@babel/helpers - typeof";return(c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function s(){return(s=Object.assign?Object.assign.bind():function(t){for(var e=1;e=0||(o[r]=t[r]);return o}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(o[r]=t[r])}return o}function f(t,e){for(var r=0;r0&&void 0!==arguments[0]?arguments[0]:"";if(arguments.length>1&&void 0!==arguments[1]&&arguments[1]||!Object(a.v)(e.state.details[t])){var r,n=e.state,o=n.error,i=n.details;switch(t){case"mobile":r=Object(c.d)(i.mobile);break;case"password":r=Object(c.isValidPassword)(i.password)}return o[t]!==r&&e._setState({error:v(v({},o),{},S({},t,r))}),r}}),S(P(e),"renderInput",function(t,r){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=Object(a.d)(e.state.error[t]||y.g[t.toUpperCase()]);return o.a.createElement(s.a,{ref:t,key:r,name:t,autoFocus:n,isValid:Object(a.v)(e.state.error[t]),tabIndex:r,label:i,value:e.state.details[t],onBlur:e.validateField,onInputChange:e.onInputChange,action:e.getAction(t),className:p.a.authInputField,maxLength:C[t]})}),e.state=e.defaultState,e}return e=f,(r=[{key:"componentDidMount",value:function(){this._isMounted=!0,Object(b.b)()}},{key:"componentWillUnmount",value:function(){this._isMounted=!1}},{key:"getTransformedValue",value:function(t,e){var r=this.state.details[e];return"mobile"===e?Object(c.b)(t,r):t}},{key:"UNSAFE_componentWillReceiveProps",value:function(t){var e=this.state.error,r=t.auth;if(r!==this.props.auth&&!Object(a.v)(r))if(this._setState({inProgress:!1}),r.error){var n=r.error;1==n.statusCode?this._setState({error:v(v({},n),{},{password:r.error.statusMessage})}):(n.statusCode,this._setState({error:v(v({},n),{},{mobile:r.error.statusMessage})}))}else r.verified?void 0!==this.context.close&&this.context.close():r.registered?r.active?r.passwordEnabled&&r.verified||this.onClickForgot():this._setState({error:v(v({},e),{},{mobile:y.g.ACCOUNT_DEACTIVATED})}):this.props.changeScreen(y.f.SIGNUP,this.state.details.mobile)}},{key:"render",value:function(){var t=this,e=this.state,r=e.inProgress,n=e.smsOtpInProgress;return o.a.createElement("form",{onSubmit:this.onSubmitLogin},o.a.createElement("div",null,E.map(function(e,r){return t.renderInput(e,r+1,"mobile"===e)})),o.a.createElement(l.b,{inProgress:r||n,containerClassName:p.a.authButtonContainer,className:this.props.buttonClass,onClick:this.onClickForgot},y.g.LOGIN),o.a.createElement("div",{className:p.a.authTnc},y.g.ACCEPT_TERMS_LOGIN,o.a.createElement("a",{className:p.a.authTncLink,href:y.h},y.g.TnC),y.g.AND,o.a.createElement("a",{className:p.a.authTncLink,href:y.e},y.g.PRIVACY)))}}])&&h(e.prototype,r),i&&h(e,i),Object.defineProperty(e,"prototype",{writable:!1}),f}();T.contextTypes={close:u.a.func},e.a=T},DAOu:function(t,e,r){"use strict";r.d(e,"a",function(){return y});var n=r("GiK3"),o=r.n(n),i=r("9ThW"),u=r("c1i8"),a=r.n(u);function c(t){"@babel/helpers - typeof";return(c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function s(t,e){for(var r=0;r0&&void 0!==arguments[0]?arguments[0]:function(){},e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"overlay-enabled",r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"overlay",n=document.querySelector(".".concat(r));if(null!==n)return void n.addEventListener("click",t);var o=document.querySelector("body"),i=a();o.classList.add(e),0===i&&o.classList.add(c);var u=document.createElement("div");u.className=r,u.addEventListener("click",function(n){return s(t,e,r)}),window.onkeyup=function(n){27==n.keyCode&&(s(t,e,r),window.onkeyup=null)},o.appendChild(u)},e.g=s,r.d(e,"e",function(){return f}),r.d(e,"f",function(){return p}),r.d(e,"b",function(){return y});var n={37:1,38:1,39:1,40:1};function o(t){(t=t||window.event).preventDefault&&t.preventDefault(),t.returnValue=!1}function i(t){if(n[t.keyCode])return o(t),!1}var u=!1;function a(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;if(!1!==u)return u;if("undefined"!=typeof document){var e=document.createElement("div");e.className=t,e.style.width="100px",e.style.height="100px",e.style.position="absolute",e.style.overflow="scroll",e.style.top="-9999px",document.body.appendChild(e),u=e.offsetWidth-e.clientWidth,document.body.removeChild(e)}else u=0;return u||0}var c="overlay-no-margin";function s(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:function(){},e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"overlay-enabled",r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"overlay",n=document.querySelector("body");n.classList.remove(e),n.classList.remove(c);var o=document.querySelector(".".concat(r));null!==o&&o.parentNode.removeChild(o),t()}var l,f=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;if(t.createTextRange){var r=t.createTextRange();r.move("character",e),r.select()}else t.selectionStart||0===t.selectionStart?(t.focus(),t.setSelectionRange(e,e)):t.focus()},p=function(t){if(void 0!==l)return l;if("undefined"==typeof document||"undefined"==typeof window)return!1;var e=document.createElement("input"),r=window.getComputedStyle(e);return l=!(!r||void 0===r.webkitTextSecurity)};var y=function(t){var e=document.createElement("textarea");e.style.position="fixed",e.style.top="-100%",e.style.left="-100%",e.style.width="2em",e.style.height="2em",e.style.padding=0,e.style.border="none",e.style.outline="none",e.style.boxShadow="none",e.style.background="transparent",e.value=t,document.body.appendChild(e),e.select();try{document.execCommand("copy")}catch(t){}document.body.removeChild(e)}},JW5l:function(t,e,r){"use strict";r.d(e,"a",function(){return P});var n=r("GiK3"),o=r.n(n),i=r("KSGD"),u=r.n(i),a=r("unsw"),c=r("DNzg"),s=["position","children"];function l(t){"@babel/helpers - typeof";return(l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function f(){return(f=Object.assign?Object.assign.bind():function(t){for(var e=1;e=0||(o[r]=t[r]);return o}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(o[r]=t[r])}return o}function y(t,e){for(var r=0;r1&&void 0!==arguments[1]?arguments[1]:{};return n.a.post(Object(o.J)(t),e)}var v=function(t){return function(e){return m(b.SIGN_IN_CHECK,{mobile:t}).then(function(r){r.statusCode===o.a?e({type:a.h,payload:f({mobile:t},r.data)}):e({type:a.g,payload:{error:{msg:r.statusMessage,statusCode:1}}})}).catch(function(){e({type:a.g,payload:{error:{msg:y,statusCode:999}}})})}},h=function(t,e){return function(r,n){return m(b.SIGN_IN_WITH_CHECK,{mobile:t,password:e}).then(function(e){return e.statusCode===o.a?(r({type:a.j,payload:f(f({},e.data),{},{mobile:t})}),d(e.data,{dispatch:r,getState:n})):2===e.statusCode?r({type:a.g,payload:f(f({},e.data),{},{mobile:t})}):r({type:a.i,payload:{mobile:t,error:f({},e)}}),Promise.resolve()}).catch(function(){return r({type:a.i,payload:y}),Promise.reject()})}},O=function(t){return function(e){return m(b.SIGN_UP,t).then(function(r){return r.statusCode===o.a?(e({type:a.l,payload:f(f({},r),{},{data:t,mobile:t.mobile})}),Promise.resolve()):(e({type:a.k,payload:{mobile:t.mobile,error:f({},r)}}),Promise.resolve())}).catch(function(){return e({type:a.k,payload:y}),Promise.reject()})}},g=function(t){return function(e){return m(b.SMS_OTP,{mobile:t}).then(function(t){return t.statusCode===o.a?(e({type:a.n}),Promise.resolve()):Promise.reject({statusMessage:t.statusMessage})}).catch(function(t){e({type:a.m});var r=Object(c.v)(t)||Object(c.v)(t.statusMessage)?y:t.statusMessage;return Promise.reject(r)})}},P=function(t,e){return function(r,n){return m(b.VERIFY_OTP,{otp:t,newNumber:e}).then(function(t){return t.statusCode===o.a?d(t.data,{dispatch:r,getState:n}):r({type:a.d}),Promise.resolve(t)}).catch(function(){return r({type:a.d}),Promise.reject(y)})}},w=function(t,e){return function(r){return m(b.SET_PASSWORD,{mobile:t,password:e}).then(function(t){return t.statusCode===o.a?r({type:a.f}):r({type:a.e}),Promise.resolve(t)}).catch(function(){return r({type:a.e}),Promise.reject(y)})}},S=function(){return function(t){return m(b.INIT_CALL).then(function(e){if(0===e.statusCode)return t({type:a.c}),Promise.resolve();throw new Error(e.statusMessage)}).catch(function(){return t({type:a.b}),Promise.reject(y)})}},_=function(t){return function(e,r){d(t.data,{dispatch:e,getState:r})}}},NpRK:function(t,e,r){"use strict";var n=r("GiK3"),o=r.n(n),i=r("HW6M"),u=r.n(i),a=r("+jv6"),c=r("yyiv"),s=r.n(c),l=["disabled","className","inProgress","onClick","children","containerClassName"];function f(t){"@babel/helpers - typeof";return(f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function p(){return(p=Object.assign?Object.assign.bind():function(t){for(var e=1;e=0||(o[r]=t[r]);return o}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(o[r]=t[r])}return o}function b(t,e){for(var r=0;r0&&void 0!==arguments[0]?arguments[0]:"";if(arguments.length>1&&void 0!==arguments[1]&&arguments[1]||!Object(a.v)(e.state.details[t])){var r,n=e.state,o=n.error,i=n.details;switch(t){case"mobile":r=Object(s.d)(i.mobile);break;case"name":r=Object(s.e)(i.name);break;case"email":r=Object(s.c)(i.email)}return o[t]!==r&&e._setState({error:h(h({},o),{},_({},t,r))}),r}}),_(w(e),"isValidForm",function(){var t=!0,r=h({},e.state.error);return E.forEach(function(n){r[n]=e.validateField(n,!0),Object(a.v)(r[n])||(t=!1)}),e._setState({error:r}),t}),_(w(e),"showReferral",function(){return e._setState({showReferral:!0})}),_(w(e),"renderInput",function(t,r){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return o.a.createElement(l.a,{ref:t,key:r,name:t,autoFocus:n,isValid:Object(a.v)(e.state.error[t]),tabIndex:r,label:e.state.error[t]||y.g[t.toUpperCase()],value:e.state.details[t],onBlur:e.validateField,onInputChange:e.onInputChange,className:p.a.authInputField,maxLength:T[t]})}),_(w(e),"_renderSignupForm",function(){return E.map(function(t,r){return e.renderInput(t,r+1,t===I)})}),_(w(e),"_renderVerifyForm",function(){return C.map(function(t,r){return e.renderInput(t,r+1)})});var r=h(h({},e.defaultState.details),{},{mobile:t.mobile?t.mobile:""});return e.state=h(h({},e.defaultState),{},{details:r}),e}return e=f,(r=[{key:"componentDidMount",value:function(){this._isMounted=!0,Object(b.e)()}},{key:"componentWillUnmount",value:function(){this._isMounted=!1}},{key:"UNSAFE_componentWillReceiveProps",value:function(t){var e=t.auth;e!==this.props.auth&&(e.error?this.props.showToast(e.error.statusMessage):this._setState({showVerify:!0}))}},{key:"getTransformedValue",value:function(t,e){var r=this.state.details[e];return"mobile"===e?Object(s.b)(t,r):t}},{key:"render",value:function(){return this.state.showVerify?o.a.createElement("form",{onSubmit:this.onSubmitVerify},o.a.createElement("div",null,this._renderVerifyForm()),o.a.createElement(c.b,{inProgress:this.state.verifyOtpInProgress,containerClassName:p.a.authButtonContainer,className:this.props.buttonClass,onClick:this.onClickVerifyOTP},y.g.VERIFY_OTP)):o.a.createElement("form",{onSubmit:this.onSubmitSignup},o.a.createElement("div",null,this._renderSignupForm(),this.state.showReferral&&this.renderInput("referral",E.length+1)),!this.state.showReferral&&o.a.createElement("button",{className:p.a.authReferral,onClick:this.showReferral},"Have a referral code?"),o.a.createElement(c.b,{inProgress:this.state.inProgress,containerClassName:p.a.authButtonContainer,className:this.props.buttonClass,onClick:this.onClickSignup},y.g.CONTINUE),o.a.createElement("div",{className:p.a.authTnc},y.g.ACCEPT_TERMS,o.a.createElement("a",{className:p.a.authTncLink,href:y.h},y.g.TnC),y.g.AND,o.a.createElement("a",{className:p.a.authTncLink,href:y.e},y.g.PRIVACY)))}}])&&O(e.prototype,r),i&&O(e,i),Object.defineProperty(e,"prototype",{writable:!1}),f}();k.defaultProps={mobile:""},k.contextTypes={close:u.a.func},e.a=k},c1i8:function(t,e){t.exports={sidebarContainer:"_3vi_e",sidebarContent:"_12S7_",sidebarHeader:"_1L8WG",sidebarHeaderIcon:"SSFcO",sidebarHeaderTitle:"_2Joay",dummyContainer:"FYlIl",loader:"_1XVo9",stickySentinel:"_1OTcX",stickySentinelTop:"_3btQx",stickySentinelBottom:"_2MUP_",stickyWrapper:"_255pY",stickyWrapperTop:"_3RbEL",stickyWrapperBottom:"_3Za6N",lineProgressBar:"UgefB"}},is44:function(t,e,r){"use strict";r.d(e,"a",function(){return y}),r.d(e,"g",function(){return b}),r.d(e,"h",function(){return d}),r.d(e,"f",function(){return m}),r.d(e,"d",function(){return v}),r.d(e,"c",function(){return h}),r.d(e,"b",function(){return O}),r.d(e,"e",function(){return g});var n=r("xs3w"),o=r("Lhml"),i="click-forgot-password",u="click-verify-otp",a="click-verify-via-call",c="click-signup-verify",s="click-set-password",l="otp-verify",f="login",p="signup",y=function(){var t={category:o.a.getCurrentScreen(),action:i};n.b.clickEvent(t)},b=function(){var t={category:o.a.getCurrentScreen(),action:u};n.b.clickEvent(t)},d=function(){var t={category:o.a.getCurrentScreen(),action:a};n.b.clickEvent(t)},m=function(){var t={category:o.a.getCurrentScreen(),action:c};n.b.clickEvent(t)},v=function(){var t={category:o.a.getCurrentScreen(),action:s};n.b.clickEvent(t)},h=function(){var t={category:o.a.getCurrentScreen(),action:l};n.b.impressionEvent(t)},O=function(){var t={category:o.a.getCurrentScreen(),action:f};n.b.impressionEvent(t)},g=function(){var t={category:o.a.getCurrentScreen(),action:p};n.b.impressionEvent(t)}},jlBN:function(t,e,r){"use strict";var n=r("GiK3"),o=r.n(n),i=r("KSGD"),u=r.n(i),a=r("PQQc"),c=r("sUnA"),s=r("NwPn"),l=r("mARP");function f(t){"@babel/helpers - typeof";return(f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function p(){return(p=Object.assign?Object.assign.bind():function(t){for(var e=1;e0&&void 0!==arguments[0]?arguments[0]:e.props;return!Object(a.v)(t.value)||!Object(a.v)(t.attrs.placeholder)||null!==e._input&&(e._input===document.activeElement||!Object(a.v)(e._input.value))}),e.state={isLabelActive:!1},e}return e=f,(r=[{key:"UNSAFE_componentWillMount",value:function(){this.setState({isLabelActive:this._isLabelActive()})}},{key:"UNSAFE_componentWillReceiveProps",value:function(t,e){this.setState({isLabelActive:this._isLabelActive(t)})}},{key:"componentDidMount",value:function(){(this.props.autoFocus||this.props.attrs.autoFocus)&&(this.setFocus(),this.setState({isLabelActive:this._isLabelActive()}))}},{key:"setFocus",value:function(){this._input.focus()}},{key:"setFocusAtEnd",value:function(){Object(c.e)(this._input,this.props.value.length)}},{key:"getInput",value:function(){return this._input}},{key:"render",value:function(){var t,e,r,n,i=this,c=this.props,s=c.className,f=c.disabled,y=c.error,b=c.inputClassName,d=c.labelClassName,m=c.style,v=c.type,O=c.value,g=c.action,P=c.name,w=c.showClear,S=c.clearButtonText,_=c.clearAction,j=w&&!Object(a.v)(S)&&!Object(a.v)(O),E=u()((h(t={},l.a.inputField,!0),h(t,s,void 0!==s),t)),C=u()((h(e={},l.a.input,!0),h(e,l.a.inputClear,j),h(e,b,void 0!==b),e)),T=u()((h(r={},l.a.label,!0),h(r,l.a.labelActive,this.state.isLabelActive),h(r,l.a.labelError,y),h(r,d,void 0!==d),r)),I=u()((h(n={},l.a.action,!0),h(n,l.a.actionActive,this.state.isLabelActive),n));return o.a.createElement("div",{ref:function(t){return i._inputContainer=t},className:E,style:m},o.a.createElement("input",p({ref:function(t){return i._input=t},className:C,onFocus:this.onInputFocus,onBlur:this.onInputBlur,onChange:this.onInputChange,onKeyDown:this.onKeyDown,disabled:f,value:O,type:v,name:P,id:this.getInputId()},this.props.attrs)),!Object(a.v)(g)&&o.a.createElement("div",{className:I,onClick:g.onClick},g.text),o.a.createElement("label",{className:T,htmlFor:this.getInputId()},this.props.label),j&&o.a.createElement("div",{className:l.a.clearButton,onClick:_},S))}}])&&y(e.prototype,r),i&&y(e,i),Object.defineProperty(e,"prototype",{writable:!1}),f}();g.defaultProps={attrs:{},type:"text",style:{},value:"",name:"",label:"",autoFocus:!1,inline:!1,error:!1,disabled:!1,scrollIntoView:!1,onChange:function(){},action:{text:"",onClick:function(){}},showClear:!1,clearAction:function(){},clearButtonText:""},e.a=g},py4t:function(t,e,r){"use strict";var n=r("GiK3"),o=r.n(n),i=r("sdpm"),u=r("lW6Z"),a=r.n(u),c=r("mARP");function s(t){"@babel/helpers - typeof";return(s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function l(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)}return r}function f(t,e){for(var r=0;r0?this._setState({timer:t-1}):(this.props.stopPolling(),this.stopTimer())}},{key:"render",value:function(){return o.a.createElement("div",null,o.a.createElement("div",{className:a.a.calling},o.a.createElement("span",{className:a.a.callingText},c.g.CALLING),o.a.createElement("span",{className:a.a.callingTimer},this.getTimer())),o.a.createElement(i.b,{inProgress:!0},c.g.CALLING_NUMBER))}}])&&f(e.prototype,r),u&&f(e,u),Object.defineProperty(e,"prototype",{writable:!1}),d}();h.defaultProps={},e.a=h},s04s:function(t,e,r){"use strict";var n=r("NpRK");r.d(e,"a",function(){return n.a})},sUnA:function(t,e,r){"use strict";var n=r("GiK3"),o=r.n(n),i=r("KSGD"),u=r.n(i),a=r("M9f5"),c=r("NaEU"),s=r("MWu+"),l=r("lW6Z"),f=r.n(l),p=r("mARP");function y(t){"@babel/helpers - typeof";return(y="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function b(t,e){for(var r=0;r2&&void 0!==arguments[2]&&arguments[2],i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];return o.a.createElement(p.a,{ref:t,key:"".concat(t,"_").concat(r),name:t,autoFocus:n,isValid:Object(s.v)(e.state.error[t]),tabIndex:r,label:e.state.error[t]||d.g[t.toUpperCase()],value:e.state.details[t],onBlur:e.validateField,onInputChange:e.onInputChange,disabled:i,maxLength:T[t]})}),j(S(e),"_renderVerifyForm",function(){return Object(m.c)(),C.map(function(t,r){var n=!1,o=!1;return"mobile"===t&&(n=!0),"otp"===t&&(o=!0),e.renderInput(t,r+1,o,n)})});var r=O(O({},e.defaultState.details),{},{mobile:t.mobile?t.mobile:""});return e.state=O(O({},e.defaultState),{},{details:r}),e}return e=v,(r=[{key:"componentDidMount",value:function(){this._isMounted=!0}},{key:"componentWillUnmount",value:function(){this._isMounted=!1,this.stopPolling()}},{key:"verifyCall",value:function(){var t=this;this.state.verifyCallInProgress&&(a.a.post(Object(c.J)(l.a.VERIFY_CALL),{}).then(function(e){0===e.statusCode&&(t.props.updateCallVerifyStatus(e),void 0!==t.context.close&&t.context.close())}).catch(function(){t.stopPolling()}),Object(m.h)())}},{key:"initCallVerifyPoll",value:function(){var t=this;this.pollIntervalId=setInterval(function(){t.verifyCall()},d.d)}},{key:"isOtpValid",value:function(){var t=Object(f.f)(this.state.details.otp),e=this.state.error;if(t)return this._setState({error:O(O({},e),{},j({},"otp",""))}),!0;var r=d.g.ENTER_OTP;return this._setState({error:O(O({},e),{},j({},"otp",r))}),!1}},{key:"isPasswordValid",value:function(){var t=Object(f.isValidPassword)(this.state.details.new_password),e=this.state.error;if(t)return this._setState({error:O(O({},e),{},j({},"new_password",t))}),!1;if(this.state.details.new_password!==this.state.details.re_enter_password){var r=d.g.PASSWORD_MISMATCH;return this._setState({error:O(O({},e),{},j({},"re_enter_password",r))}),!1}return!0}},{key:"getTransformedValue",value:function(t,e){var r=this.state.details[e];return"mobile"===e?Object(f.b)(t,r):t}},{key:"render",value:function(){return o.a.createElement("div",null,o.a.createElement("form",{onSubmit:this.onSubmitVerify},o.a.createElement("div",null,this._renderVerifyForm()),this.state.callInProgress?o.a.createElement(y.a,{stopPolling:this.stopPolling}):o.a.createElement(b.a,{inProgress:this.state.inProgress,buttonClass:this.props.buttonClass,verifyOtp:this.onClickVerify,initCall:this.initiateCall})))}}])&&g(e.prototype,r),i&&g(e,i),Object.defineProperty(e,"prototype",{writable:!1}),v}();I.defaultProps={},I.contextTypes={close:u.a.func},e.a=I},yyiv:function(t,e){t.exports={submitBtn:"_1ike9",submitBtnContainer:"_25qBi",submitBtnDisabled:"_3jW_K",submitBtnProgress:"TAplo",lineProgressBar:"_1alK3"}}}); //# sourceMappingURL=auth.8e2d1c24258e304.js.map