PageSourceSearch

https://snapask.com/ForgotPassword.cbda32b2cfd705225ede.js

js snapask.com collected 2026-10-02 03:22:14 UTC 5,818 bytes, 2 lines download raw bytes

1webpackJsonp([28],{1633:function(e,t){e.exports={title:"_1Jfuh",description:"_1mMpU",h4:"_2QmEy",field:"_bZvnY",btnContainer:"_2demG",contact:"_35Ofz",switcher:"_3l4RK"}},968:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(1),a=n.n(r),o=n(2),i=(n.n(o),n(19)),s=n(9),l=n(15),c=n(343),u=n(233),m=n(155),p=n(64),f=n(5),h=n(61),d=n(216),g=n(1007),b=n(1001),v=n(1019),y=n(103),E=n(1633),w=n.n(E),C=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}}();function P(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}var T=6e4,N=1e3,x=function(e){function t(){var e,n,r;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var a=arguments.length,o=Array(a),i=0;i<a;i++)o[i]=arguments[i];return n=r=P(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(o))),r.state={email:"",countryCode:null,phoneNumber:"",errorText:"",invalidPhoneNumber:!1,invalidEmail:!1,countDown:0,timeRemaining:{min:0,sec:0},intervalId:"",startTimer:!1},r.componentWillReceiveProps=function(e){var t=e.status;r.props.status===f.a&&t===f.c&&(r.setState({startTimer:!0,countDown:T}),r.setCountingDown())},r.componentWillUnmount=function(){var e=r.state.intervalId;r.props.resetForgotPassword(),e&&clearInterval(e)},r.onChangeEmail=function(e){r.setState({email:e})},r.onChangePhoneNumber=function(e){r.setState({phoneNumber:e})},r.onChangeCountryCode=function(e){r.setState({countryCode:e})},r.onClickSubmit=function(){var e=r.context.urlLocale,t=r.props.forgotPassword,n=r.state,a=n.email,o=n.countryCode;t({locale:e,email:a,phoneNumber:+n.phoneNumber,countryCode:o.value})},r.onChangeAuthType=function(e){e===p.c?r.setState({email:"",errorText:""}):r.setState({phoneNumber:"",errorText:""}),r.props.selectAuthType(e)},r.setCountingDown=function(){var e=setInterval(r.tick,N);r.setState({intervalId:e})},r.tick=function(){var e=r.state.countDown,t={min:"00",sec:"00"},n=Math.floor(e/1e3);if(n>=0){var a=Math.floor(n/60),o=n%60;a>0&&(t.min=a),o>0&&(t.sec=o),r.setState({timeRemaining:t,countDown:e-N})}else r.setState({startTimer:!1,countDown:T}),clearInterval(r.state.intervalId)},r.validateEmail=function(){var e=r.props.t,t=new y.a(r.state.email).isEmpty(e("error:error.fieldEmpty")).isEmail(e("error:error.must-be-email-pattern")),n=t.getFirstErrorMessage(),a=t.haveError();r.setState({errorText:n,invalidEmail:a})},r.validatePhoneNumber=function(){var e=r.props.t,t=new y.a(r.state.phoneNumber).isEmpty(e("error:error.fieldEmpty")),n=t.getFirstErrorMessage(),a=t.haveError();r.setState({errorText:n,invalidPhoneNumber:a})},r.enableButton=function(){var e=r.state,t=e.email,n=e.phoneNumber,a=e.errorText,o=e.startTimer,i=r.props.status;return!(a||!t&&!n||i===f.c||o)},P(r,n)}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,r["Component"]),C(t,[{key:"render",value:function(){var e=this,t=this.context.region,n=this.props,r=n.t,o=n.authType,i=n.status,s=n.openSocialWidget,u=this.state,m=u.countryCode,y=u.phoneNumber,E=u.email,C=u.errorText,P=u.invalidEmail,T=u.invalidPhoneNumber,N=u.timeRemaining,x=N.min,S=N.sec,_=function(e){return("0"+e).slice(-2)},k=x||S?"("+_(x)+":"+_(S)+")":"",O=a.a.createElement(d.a,{path:"forgot-password",title:r("seo:seo.forgotPassword.title"),robots:"noindex, nofollow"});return a.a.createElement(c.a,null,O,a.a.createElement(l.n,null,a.a.createElement(b.a,null,a.a.createElement("span",{className:w.a.title},r("forgotPassword.title")),a.a.createElement("span",{className:w.a.description},r("forgotPassword.subTitle."+o)),a.a.createElement(g.a,{activeCard:o},a.a.createElement(v.a,{key:p.c},a.a.createElement("div",{className:w.a.field},a.a.createElement(l.x,{defaultRegion:t,value:m,onChange:this.onChangeCountryCode}),a.a.createElement(h.a,{floatingLabelText:r("login:login.phoneNumber"),type:"number",onChange:this.onChangePhoneNumber,onBlur:this.validatePhoneNumber,value:y,errorText:T&&C}))),a.a.createElement(v.a,{key:p.a},a.a.createElement("div",{className:w.a.field},a.a.createElement(h.a,{floatingLabelText:r("fieldLabel:fieldLabel.email"),onChange:this.onChangeEmail,value:E,errorText:P&&C})))),a.a.createElement("div",{className:w.a.btnContainer},a.a.createElement(l.k,{text:i===f.a?r("forgotPassword.submit"):r("forgotPassword.resend."+o)+" "+k,disabled:!this.enableButton(),onClick:this.onClickSubmit,primary:!0})),a.a.createElement("div",{className:w.a.switcher},o===p.a?a.a.createElement("a",{onClick:function(){return e.onChangeAuthType(p.c)}},r("forgotPassword.changeAuthType.phone")):a.a.createElement("a",{onClick:function(){return e.onChangeAuthType(p.a)}},r("forgotPassword.changeAuthType.email")))),a.a.createElement("div",{className:w.a.contact},a.a.createElement("span",null,r("forgotPassword.gotProblem"))," ",a.a.createElement("a",{href:"javascript:void()",onClick:s},r("forgotPassword.contactUs")))))}}]),t}();x.contextTypes={urlLocale:o.string.isRequired,region:o.string.isRequired},t.default=Object(s.d)(["forgotPassword","error","fieldLabel","seo"])(Object(i.b)(function(e){return{status:e.forgotPassword.status,authType:Object(m.f)(e)}},{forgotPassword:m.c,resetForgotPassword:m.g,selectAuthType:m.h,openSocialWidget:u.a.openSocialWidget})(x))}});
2//# sourceMappingURL=ForgotPassword.cbda32b2cfd705225ede.js.map

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.