You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
NewEduCoderBuild/p__User__ResetPassword.91d1...

2 lines
29 KiB

(window.webpackJsonp=window.webpackJsonp||[]).push([[205],{LsG1:function(oe,H,v){"use strict";v.r(H);var X=v("9og8"),N=v("q1tI"),y=v.n(N),ne=v("+L6B"),Z=v("2/Rp"),ee=v("5NDa"),V=v("5rEg"),he=v("y8nQ"),$=v("Vl3Y"),q=v("tJVT"),W=v("k1fw"),je=v("tJYU"),pe=v("bRQS"),ce=v("VTBJ"),me={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M533.2 492.3L277.9 166.1c-3-3.9-7.7-6.1-12.6-6.1H188c-6.7 0-10.4 7.7-6.3 12.9L447.1 512 181.7 851.1A7.98 7.98 0 00188 864h77.3c4.9 0 9.6-2.3 12.6-6.1l255.3-326.1c9.1-11.7 9.1-27.9 0-39.5zm304 0L581.9 166.1c-3-3.9-7.7-6.1-12.6-6.1H492c-6.7 0-10.4 7.7-6.3 12.9L751.1 512 485.7 851.1A7.98 7.98 0 00492 864h77.3c4.9 0 9.6-2.3 12.6-6.1l255.3-326.1c9.1-11.7 9.1-27.9 0-39.5z"}}]},name:"double-right",theme:"outlined"},ve=me,ye=v("6VBw"),le=function(E,g){return N.createElement(ye.a,Object(ce.a)(Object(ce.a)({},E),{},{ref:g,icon:ve}))};le.displayName="DoubleRightOutlined";var ge=N.forwardRef(le),ae=v("1vsH");function ie(){"use strict";/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */ie=function(){return s};var s={},E=Object.prototype,g=E.hasOwnProperty,T=typeof Symbol=="function"?Symbol:{},R=T.iterator||"@@iterator",F=T.asyncIterator||"@@asyncIterator",U=T.toStringTag||"@@toStringTag";function l(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(t){l=function(r,n,o){return r[n]=o}}function B(t,e,r,n){var o=e&&e.prototype instanceof j?e:j,a=Object.create(o.prototype),u=new I(n||[]);return a._invoke=function(f,h,i){var c="suspendedStart";return function(m,Y){if(c==="executing")throw new Error("Generator is already running");if(c==="completed"){if(m==="throw")throw Y;return k()}for(i.method=m,i.arg=Y;;){var x=i.delegate;if(x){var D=J(x,i);if(D){if(D===d)continue;return D}}if(i.method==="next")i.sent=i._sent=i.arg;else if(i.method==="throw"){if(c==="suspendedStart")throw c="completed",i.arg;i.dispatchException(i.arg)}else i.method==="return"&&i.abrupt("return",i.arg);c="executing";var S=O(f,h,i);if(S.type==="normal"){if(c=i.done?"completed":"suspendedYield",S.arg===d)continue;return{value:S.arg,done:i.done}}S.type==="throw"&&(c="completed",i.method="throw",i.arg=S.arg)}}}(t,r,u),a}function O(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(n){return{type:"throw",arg:n}}}s.wrap=B;var d={};function j(){}function b(){}function p(){}var _={};l(_,R,function(){return this});var A=Object.getPrototypeOf,L=A&&A(A(G([])));L&&L!==E&&g.call(L,R)&&(_=L);var w=p.prototype=j.prototype=Object.create(_);function M(t){["next","throw","return"].forEach(function(e){l(t,e,function(r){return this._invoke(e,r)})})}function C(t,e){function r(o,a,u,f){var h=O(t[o],t,a);if(h.type!=="throw"){var i=h.arg,c=i.value;return c&&typeof c=="object"&&g.call(c,"__await")?e.resolve(c.__await).then(function(m){r("next",m,u,f)},function(m){r("throw",m,u,f)}):e.resolve(c).then(function(m){i.value=m,u(i)},function(m){return r("throw",m,u,f)})}f(h.arg)}var n;this._invoke=function(o,a){function u(){return new e(function(f,h){r(o,a,f,h)})}return n=n?n.then(u,u):u()}}function J(t,e){var r=t.iterator[e.method];if(r===void 0){if(e.delegate=null,e.method==="throw"){if(t.iterator.return&&(e.method="return",e.arg=void 0,J(t,e),e.method==="throw"))return d;e.method="throw",e.arg=new TypeError("The iterator does not provide a 'throw' method")}return d}var n=O(r,t.iterator,e.arg);if(n.type==="throw")return e.method="throw",e.arg=n.arg,e.delegate=null,d;var o=n.arg;return o?o.done?(e[t.resultName]=o.value,e.next=t.nextLoc,e.method!=="return"&&(e.method="next",e.arg=void 0),e.delegate=null,d):o:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,d)}function Q(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function P(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function I(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(Q,this),this.reset(!0)}function G(t){if(t){var e=t[R];if(e)return e.call(t);if(typeof t.next=="function")return t;if(!isNaN(t.length)){var r=-1,n=function o(){for(;++r<t.length;)if(g.call(t,r))return o.value=t[r],o.done=!1,o;return o.value=void 0,o.done=!0,o};return n.next=n}}return{next:k}}function k(){return{value:void 0,done:!0}}return b.prototype=p,l(w,"constructor",p),l(p,"constructor",b),b.displayName=l(p,U,"GeneratorFunction"),s.isGeneratorFunction=function(t){var e=typeof t=="function"&&t.constructor;return!!e&&(e===b||(e.displayName||e.name)==="GeneratorFunction")},s.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,p):(t.__proto__=p,l(t,U,"GeneratorFunction")),t.prototype=Object.create(w),t},s.awrap=function(t){return{__await:t}},M(C.prototype),l(C.prototype,F,function(){return this}),s.AsyncIterator=C,s.async=function(t,e,r,n,o){o===void 0&&(o=Promise);var a=new C(B(t,e,r,n),o);return s.isGeneratorFunction(e)?a:a.next().then(function(u){return u.done?u.value:a.next()})},M(w),l(w,U,"Generator"),l(w,R,function(){return this}),l(w,"toString",function(){return"[object Generator]"}),s.keys=function(t){var e=[];for(var r in t)e.push(r);return e.reverse(),function n(){for(;e.length;){var o=e.pop();if(o in t)return n.value=o,n.done=!1,n}return n.done=!0,n}},s.values=G,I.prototype={constructor:I,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(P),!e)for(var r in this)r.charAt(0)==="t"&&g.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if(e.type==="throw")throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function n(i,c){return u.type="throw",u.arg=e,r.next=i,c&&(r.method="next",r.arg=void 0),!!c}for(var o=this.tryEntries.length-1;o>=0;--o){var a=this.tryEntries[o],u=a.completion;if(a.tryLoc==="root")return n("end");if(a.tryLoc<=this.prev){var f=g.call(a,"catchLoc"),h=g.call(a,"finallyLoc");if(f&&h){if(this.prev<a.catchLoc)return n(a.catchLoc,!0);if(this.prev<a.finallyLoc)return n(a.finallyLoc)}else if(f){if(this.prev<a.catchLoc)return n(a.catchLoc,!0)}else{if(!h)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return n(a.finallyLoc)}}}},abrupt:function(e,r){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&g.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var a=o;break}}a&&(e==="break"||e==="continue")&&a.tryLoc<=r&&r<=a.finallyLoc&&(a=null);var u=a?a.completion:{};return u.type=e,u.arg=r,a?(this.method="next",this.next=a.finallyLoc,d):this.complete(u)},complete:function(e,r){if(e.type==="throw")throw e.arg;return e.type==="break"||e.type==="continue"?this.next=e.arg:e.type==="return"?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):e.type==="normal"&&r&&(this.next=r),d},finish:function(e){for(var r=this.tryEntries.length-1;r>=0;--r){var n=this.tryEntries[r];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),P(n),d}},catch:function(e){for(var r=this.tryEntries.length-1;r>=0;--r){var n=this.tryEntries[r];if(n.tryLoc===e){var o=n.completion;if(o.type==="throw"){var a=o.arg;P(n)}return a}}throw new Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:G(e),resultName:r,nextLoc:n},this.method==="next"&&(this.arg=void 0),d}},s}var Ee={moveX:0,verify:!1},K;(function(s){s[s.SET_MOVEX=0]="SET_MOVEX",s[s.VERIFY=1]="VERIFY"})(K||(K={}));function we(s,E){switch(E.type){case K.SET_MOVEX:return Object(W.a)(Object(W.a)({},s),{},{moveX:E.payload});case K.VERIFY:return Object(W.a)(Object(W.a)({},s),E.payload);default:throw new Error}}var Le=function(s){var E=s.value,g=s.onChange,T=s.onValidate,R=Object(N.useReducer)(we,Ee),F=Object(q.a)(R,2),U=F[0],l=F[1],B=U.moveX,O=U.verify,d=Object(N.useRef)(),j=Object(N.useRef)(),b=Object(N.useRef)(),p=Object(N.useRef)(),_=Object(N.useMemo)(function(){if(j.current)return j.current.getBoundingClientRect()},[j.current]);Object(N.useEffect)(function(){if(_){var L=function(){var I=Object(X.a)(ie().mark(function G(k){var t;return ie().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:if(!p.current){r.next=15;break}if(t=k.pageX-J,P&&(t=k.changedTouches[0].pageX-J),t<0&&(t=0),!(t>=Q)){r.next=14;break}return p.current=!1,t=Q,r.next=9,T();case 9:M=r.sent,l({type:K.VERIFY,payload:{moveX:t,verify:M}}),g(M),r.next=15;break;case 14:l({type:K.SET_MOVEX,payload:t});case 15:case"end":return r.stop()}},G)}));return function(k){return I.apply(this,arguments)}}(),w=function(){p.current=!1,M||(d.current.style.transition="left .5s ease",b.current.style.transition="width .5s ease",l({type:K.VERIFY,payload:{moveX:0}}))},M=!1,C=_.width,J=_.left,Q=C-40,P=!Object(ae.x)();return P?(window.addEventListener("touchmove",L),window.addEventListener("touchend",w)):(window.addEventListener("mousemove",L),window.addEventListener("mouseup",w)),function(){P?(window.removeEventListener("touchmove",L),window.removeEventListener("touchend",w)):(window.removeEventListener("mousemove",L),window.removeEventListener("mouseup",w))}}},[_,ae.x]),Object(N.useEffect)(function(){l({type:K.VERIFY,payload:{verify:E,moveX:E?(_==null?void 0:_.width)-40:0}})},[E]);function A(){O||(p.current=!0,d.current.style.transition="",b.current.style.transition="")}return y.a.createElement("div",{ref:j,className:"unlock-wrapper"},y.a.createElement("div",{ref:b,className:"unlock-bg",style:{width:B}}),y.a.createElement("div",{className:"unlock-text"},O?"\u9A8C\u8BC1\u901A\u8FC7":"\u62D6\u52A8\u6ED1\u5757\u9A8C\u8BC1"),y.a.createElement("div",{ref:d,onTouchStart:A,onMouseDown:A,style:{left:B},className:"unlock-handler"},O?y.a.createElement(pe.a,null):y.a.createElement(ge,null)))},Oe=v("Ty5D"),fe=v("9kvl"),be=v("55Ip");function te(){"use strict";/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */te=function(){return s};var s={},E=Object.prototype,g=E.hasOwnProperty,T=typeof Symbol=="function"?Symbol:{},R=T.iterator||"@@iterator",F=T.asyncIterator||"@@asyncIterator",U=T.toStringTag||"@@toStringTag";function l(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(t){l=function(r,n,o){return r[n]=o}}function B(t,e,r,n){var o=e&&e.prototype instanceof j?e:j,a=Object.create(o.prototype),u=new I(n||[]);return a._invoke=function(f,h,i){var c="suspendedStart";return function(m,Y){if(c==="executing")throw new Error("Generator is already running");if(c==="completed"){if(m==="throw")throw Y;return k()}for(i.method=m,i.arg=Y;;){var x=i.delegate;if(x){var D=J(x,i);if(D){if(D===d)continue;return D}}if(i.method==="next")i.sent=i._sent=i.arg;else if(i.method==="throw"){if(c==="suspendedStart")throw c="completed",i.arg;i.dispatchException(i.arg)}else i.method==="return"&&i.abrupt("return",i.arg);c="executing";var S=O(f,h,i);if(S.type==="normal"){if(c=i.done?"completed":"suspendedYield",S.arg===d)continue;return{value:S.arg,done:i.done}}S.type==="throw"&&(c="completed",i.method="throw",i.arg=S.arg)}}}(t,r,u),a}function O(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(n){return{type:"throw",arg:n}}}s.wrap=B;var d={};function j(){}function b(){}function p(){}var _={};l(_,R,function(){return this});var A=Object.getPrototypeOf,L=A&&A(A(G([])));L&&L!==E&&g.call(L,R)&&(_=L);var w=p.prototype=j.prototype=Object.create(_);function M(t){["next","throw","return"].forEach(function(e){l(t,e,function(r){return this._invoke(e,r)})})}function C(t,e){function r(o,a,u,f){var h=O(t[o],t,a);if(h.type!=="throw"){var i=h.arg,c=i.value;return c&&typeof c=="object"&&g.call(c,"__await")?e.resolve(c.__await).then(function(m){r("next",m,u,f)},function(m){r("throw",m,u,f)}):e.resolve(c).then(function(m){i.value=m,u(i)},function(m){return r("throw",m,u,f)})}f(h.arg)}var n;this._invoke=function(o,a){function u(){return new e(function(f,h){r(o,a,f,h)})}return n=n?n.then(u,u):u()}}function J(t,e){var r=t.iterator[e.method];if(r===void 0){if(e.delegate=null,e.method==="throw"){if(t.iterator.return&&(e.method="return",e.arg=void 0,J(t,e),e.method==="throw"))return d;e.method="throw",e.arg=new TypeError("The iterator does not provide a 'throw' method")}return d}var n=O(r,t.iterator,e.arg);if(n.type==="throw")return e.method="throw",e.arg=n.arg,e.delegate=null,d;var o=n.arg;return o?o.done?(e[t.resultName]=o.value,e.next=t.nextLoc,e.method!=="return"&&(e.method="next",e.arg=void 0),e.delegate=null,d):o:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,d)}function Q(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function P(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function I(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(Q,this),this.reset(!0)}function G(t){if(t){var e=t[R];if(e)return e.call(t);if(typeof t.next=="function")return t;if(!isNaN(t.length)){var r=-1,n=function o(){for(;++r<t.length;)if(g.call(t,r))return o.value=t[r],o.done=!1,o;return o.value=void 0,o.done=!0,o};return n.next=n}}return{next:k}}function k(){return{value:void 0,done:!0}}return b.prototype=p,l(w,"constructor",p),l(p,"constructor",b),b.displayName=l(p,U,"GeneratorFunction"),s.isGeneratorFunction=function(t){var e=typeof t=="function"&&t.constructor;return!!e&&(e===b||(e.displayName||e.name)==="GeneratorFunction")},s.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,p):(t.__proto__=p,l(t,U,"GeneratorFunction")),t.prototype=Object.create(w),t},s.awrap=function(t){return{__await:t}},M(C.prototype),l(C.prototype,F,function(){return this}),s.AsyncIterator=C,s.async=function(t,e,r,n,o){o===void 0&&(o=Promise);var a=new C(B(t,e,r,n),o);return s.isGeneratorFunction(e)?a:a.next().then(function(u){return u.done?u.value:a.next()})},M(w),l(w,U,"Generator"),l(w,R,function(){return this}),l(w,"toString",function(){return"[object Generator]"}),s.keys=function(t){var e=[];for(var r in t)e.push(r);return e.reverse(),function n(){for(;e.length;){var o=e.pop();if(o in t)return n.value=o,n.done=!1,n}return n.done=!0,n}},s.values=G,I.prototype={constructor:I,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(P),!e)for(var r in this)r.charAt(0)==="t"&&g.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if(e.type==="throw")throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function n(i,c){return u.type="throw",u.arg=e,r.next=i,c&&(r.method="next",r.arg=void 0),!!c}for(var o=this.tryEntries.length-1;o>=0;--o){var a=this.tryEntries[o],u=a.completion;if(a.tryLoc==="root")return n("end");if(a.tryLoc<=this.prev){var f=g.call(a,"catchLoc"),h=g.call(a,"finallyLoc");if(f&&h){if(this.prev<a.catchLoc)return n(a.catchLoc,!0);if(this.prev<a.finallyLoc)return n(a.finallyLoc)}else if(f){if(this.prev<a.catchLoc)return n(a.catchLoc,!0)}else{if(!h)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return n(a.finallyLoc)}}}},abrupt:function(e,r){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&g.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var a=o;break}}a&&(e==="break"||e==="continue")&&a.tryLoc<=r&&r<=a.finallyLoc&&(a=null);var u=a?a.completion:{};return u.type=e,u.arg=r,a?(this.method="next",this.next=a.finallyLoc,d):this.complete(u)},complete:function(e,r){if(e.type==="throw")throw e.arg;return e.type==="break"||e.type==="continue"?this.next=e.arg:e.type==="return"?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):e.type==="normal"&&r&&(this.next=r),d},finish:function(e){for(var r=this.tryEntries.length-1;r>=0;--r){var n=this.tryEntries[r];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),P(n),d}},catch:function(e){for(var r=this.tryEntries.length-1;r>=0;--r){var n=this.tryEntries[r];if(n.tryLoc===e){var o=n.completion;if(o.type==="throw"){var a=o.arg;P(n)}return a}}throw new Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:G(e),resultName:r,nextLoc:n},this.method==="next"&&(this.arg=void 0),d}},s}var re={height:40},de=/(\b[\w\.-]+@[\w\.-]+\.\w{2,4}\b)|([1][3,4,5,6,7,8,9][0-9]{9})/i,_e={timer:0,verifyCodeMessage:"",verifyNameMessage:""},z;(function(s){s[s.setTimer=0]="setTimer",s[s.setVerifyCodeMessage=1]="setVerifyCodeMessage",s[s.setVerifyNameMessage=2]="setVerifyNameMessage"})(z||(z={}));function Re(s,E){switch(E.type){case z.setTimer:return Object(W.a)(Object(W.a)({},s),{},{timer:E.payload});case z.setVerifyCodeMessage:return Object(W.a)(Object(W.a)({},s),{},{verifyCodeMessage:E.payload});case z.setVerifyNameMessage:return Object(W.a)(Object(W.a)({},s),{},{verifyNameMessage:E.payload});default:throw new Error}}var Ne=function(s){var E=s.validateName,g=s.getCode,T=s.callback,R=s.style,F=R===void 0?{}:R,U=Object(Oe.l)(),l=$.a.useForm(),B=Object(q.a)(l,1),O=B[0],d=Object(N.useReducer)(Re,_e),j=Object(q.a)(d,2),b=j[0],p=j[1],_=b.verifyCodeMessage,A=b.verifyNameMessage,L=b.timer,w=Object(N.useState)("/rucaptcha"),M=Object(q.a)(w,2),C=M[0],J=M[1];function Q(r){return P.apply(this,arguments)}function P(){return P=Object(X.a)(te().mark(function r(n){var o,a,u,f,h,i,c,m,Y;return te().wrap(function(D){for(;;)switch(D.prev=D.next){case 0:return o=n.login,a=n.new_password,u=n.code,f=n.new_password_confirmation,D.next=3,T({login:o,new_password_confirmation:f,new_password:a,code:u});case 3:h=D.sent,i=h.message,c=h.status,c>0?(Y=(m=U.query)===null||m===void 0?void 0:m.from,Y&&Y.indexOf("login")<0?fe.c.replace(Y):fe.c.replace("/")):p({type:z.setVerifyCodeMessage,payload:i});case 7:case"end":return D.stop()}},r)})),P.apply(this,arguments)}function I(){O.setFieldsValue({verify:!1}),p({type:z.setVerifyNameMessage,payload:""})}function G(){return k.apply(this,arguments)}function k(){return k=Object(X.a)(te().mark(function r(){var n,o,a,u,f;return te().wrap(function(i){for(;;)switch(i.prev=i.next){case 0:if(n=O.getFieldValue("login"),!de.test(n)){i.next=10;break}return i.next=4,E({login:n,type:2});case 4:return o=i.sent,a=o.status,u=o.message,f=a>0,f||p({type:z.setVerifyNameMessage,payload:u}),i.abrupt("return",f);case 10:return i.abrupt("return",!1);case 11:case"end":return i.stop()}},r)})),k.apply(this,arguments)}function t(){var r=O.getFieldValue("verify"),n=O.getFieldValue("login");if(!r)O.validateFields(["verify"]);else{p({type:z.setVerifyCodeMessage,payload:""});var o=g({login:n,type:2,smscode:Object(ae.D)(n)}),a=o.status,u=o.message;a<0&&p({type:z.setVerifyCodeMessage,payload:u}),p({type:z.setTimer,payload:60})}}function e(r,n){var o=n.length;return o>=8&&o<=16?Promise.resolve():Promise.reject("\u5BC6\u7801\u7684\u957F\u5EA6\u57288\u523016\u4F4D\u4E4B\u95F4")}return Object(N.useEffect)(function(){L>0&&setTimeout(function(){p({type:z.setTimer,payload:L-1})},1e3)},[L]),y.a.createElement($.a,{layout:"vertical",form:O,style:F,initialValues:{autologin:!0,protool:!0},onFinish:Q},y.a.createElement($.a.Item,{name:"login",extra:A?y.a.createElement("span",{className:"error"},A):null,rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u6709\u6548\u7684\u624B\u673A\u53F7/\u90AE\u7BB1"},{pattern:de,message:"\u624B\u673A\u53F7\u6216\u8005\u90AE\u7BB1\u683C\u5F0F\u6709\u8BEF"}]},y.a.createElement(V.a,{style:re,size:"large",placeholder:"\u8BF7\u8F93\u5165\u6709\u6548\u7684\u624B\u673A\u53F7/\u90AE\u7BB1\u53F7",onChange:I})),y.a.createElement($.a.Item,{name:"verify",rules:[{validator:function(n,o){return o?Promise.resolve():Promise.reject("\u8BF7\u62D6\u52A8\u6ED1\u5757\u9A8C\u8BC1")}}]},y.a.createElement(Le,{onValidate:G})),y.a.createElement($.a.Item,{extra:_?y.a.createElement("span",{className:"error"},_):null},y.a.createElement("div",{className:"flex-container"},y.a.createElement($.a.Item,{name:"code",noStyle:!0,rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u9A8C\u8BC1\u7801"}]},y.a.createElement(V.a,{style:{width:"calc(100% - 100px)",height:40,marginRight:6},placeholder:"\u8BF7\u8F93\u5165\u9A8C\u8BC1\u7801",size:"large"})),y.a.createElement(Z.a,{size:"large",type:"primary",style:re,onClick:t,disabled:L>0}," ",L===0?"\u83B7\u53D6\u9A8C\u8BC1\u7801":"\u91CD\u65B0\u53D1\u9001".concat(L,"s")))),y.a.createElement($.a.Item,{name:"new_password",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5BC6\u7801"},{validator:e}]},y.a.createElement(V.a.Password,{style:re,size:"large",placeholder:"\u8F93\u51658\uFF5E16\u4F4D\u5BC6\u7801\uFF0C\u533A\u5206\u5927\u5C0F\u5199",visibilityToggle:!1})),y.a.createElement($.a.Item,{name:"new_password_confirmation",rules:[{required:!0,message:"\u8BF7\u518D\u6B21\u8F93\u5165\u65B0\u5BC6\u7801"},function(r){var n=r.getFieldValue;return{validator:function(a,u){return!u||n("new_password")===u?Promise.resolve():Promise.reject("\u4E24\u6B21\u5BC6\u7801\u4E0D\u4E00\u81F4")}}}]},y.a.createElement(V.a.Password,{style:re,size:"large",placeholder:"\u518D\u6B21\u8F93\u5165\u65B0\u5BC6\u7801",visibilityToggle:!1})),y.a.createElement($.a.Item,null,y.a.createElement(Z.a,{size:"large",type:"primary",htmlType:"submit",block:!0,style:re}," \u5B8C\u6210 ")),y.a.createElement($.a.Item,null,y.a.createElement(be.Link,{to:"/user/login"},"\u8FD4\u56DE\u767B\u5F55")))},ue=v("YrPe");function se(){"use strict";/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */se=function(){return s};var s={},E=Object.prototype,g=E.hasOwnProperty,T=typeof Symbol=="function"?Symbol:{},R=T.iterator||"@@iterator",F=T.asyncIterator||"@@asyncIterator",U=T.toStringTag||"@@toStringTag";function l(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(t){l=function(r,n,o){return r[n]=o}}function B(t,e,r,n){var o=e&&e.prototype instanceof j?e:j,a=Object.create(o.prototype),u=new I(n||[]);return a._invoke=function(f,h,i){var c="suspendedStart";return function(m,Y){if(c==="executing")throw new Error("Generator is already running");if(c==="completed"){if(m==="throw")throw Y;return k()}for(i.method=m,i.arg=Y;;){var x=i.delegate;if(x){var D=J(x,i);if(D){if(D===d)continue;return D}}if(i.method==="next")i.sent=i._sent=i.arg;else if(i.method==="throw"){if(c==="suspendedStart")throw c="completed",i.arg;i.dispatchException(i.arg)}else i.method==="return"&&i.abrupt("return",i.arg);c="executing";var S=O(f,h,i);if(S.type==="normal"){if(c=i.done?"completed":"suspendedYield",S.arg===d)continue;return{value:S.arg,done:i.done}}S.type==="throw"&&(c="completed",i.method="throw",i.arg=S.arg)}}}(t,r,u),a}function O(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(n){return{type:"throw",arg:n}}}s.wrap=B;var d={};function j(){}function b(){}function p(){}var _={};l(_,R,function(){return this});var A=Object.getPrototypeOf,L=A&&A(A(G([])));L&&L!==E&&g.call(L,R)&&(_=L);var w=p.prototype=j.prototype=Object.create(_);function M(t){["next","throw","return"].forEach(function(e){l(t,e,function(r){return this._invoke(e,r)})})}function C(t,e){function r(o,a,u,f){var h=O(t[o],t,a);if(h.type!=="throw"){var i=h.arg,c=i.value;return c&&typeof c=="object"&&g.call(c,"__await")?e.resolve(c.__await).then(function(m){r("next",m,u,f)},function(m){r("throw",m,u,f)}):e.resolve(c).then(function(m){i.value=m,u(i)},function(m){return r("throw",m,u,f)})}f(h.arg)}var n;this._invoke=function(o,a){function u(){return new e(function(f,h){r(o,a,f,h)})}return n=n?n.then(u,u):u()}}function J(t,e){var r=t.iterator[e.method];if(r===void 0){if(e.delegate=null,e.method==="throw"){if(t.iterator.return&&(e.method="return",e.arg=void 0,J(t,e),e.method==="throw"))return d;e.method="throw",e.arg=new TypeError("The iterator does not provide a 'throw' method")}return d}var n=O(r,t.iterator,e.arg);if(n.type==="throw")return e.method="throw",e.arg=n.arg,e.delegate=null,d;var o=n.arg;return o?o.done?(e[t.resultName]=o.value,e.next=t.nextLoc,e.method!=="return"&&(e.method="next",e.arg=void 0),e.delegate=null,d):o:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,d)}function Q(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function P(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function I(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(Q,this),this.reset(!0)}function G(t){if(t){var e=t[R];if(e)return e.call(t);if(typeof t.next=="function")return t;if(!isNaN(t.length)){var r=-1,n=function o(){for(;++r<t.length;)if(g.call(t,r))return o.value=t[r],o.done=!1,o;return o.value=void 0,o.done=!0,o};return n.next=n}}return{next:k}}function k(){return{value:void 0,done:!0}}return b.prototype=p,l(w,"constructor",p),l(p,"constructor",b),b.displayName=l(p,U,"GeneratorFunction"),s.isGeneratorFunction=function(t){var e=typeof t=="function"&&t.constructor;return!!e&&(e===b||(e.displayName||e.name)==="GeneratorFunction")},s.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,p):(t.__proto__=p,l(t,U,"GeneratorFunction")),t.prototype=Object.create(w),t},s.awrap=function(t){return{__await:t}},M(C.prototype),l(C.prototype,F,function(){return this}),s.AsyncIterator=C,s.async=function(t,e,r,n,o){o===void 0&&(o=Promise);var a=new C(B(t,e,r,n),o);return s.isGeneratorFunction(e)?a:a.next().then(function(u){return u.done?u.value:a.next()})},M(w),l(w,U,"Generator"),l(w,R,function(){return this}),l(w,"toString",function(){return"[object Generator]"}),s.keys=function(t){var e=[];for(var r in t)e.push(r);return e.reverse(),function n(){for(;e.length;){var o=e.pop();if(o in t)return n.value=o,n.done=!1,n}return n.done=!0,n}},s.values=G,I.prototype={constructor:I,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(P),!e)for(var r in this)r.charAt(0)==="t"&&g.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if(e.type==="throw")throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function n(i,c){return u.type="throw",u.arg=e,r.next=i,c&&(r.method="next",r.arg=void 0),!!c}for(var o=this.tryEntries.length-1;o>=0;--o){var a=this.tryEntries[o],u=a.completion;if(a.tryLoc==="root")return n("end");if(a.tryLoc<=this.prev){var f=g.call(a,"catchLoc"),h=g.call(a,"finallyLoc");if(f&&h){if(this.prev<a.catchLoc)return n(a.catchLoc,!0);if(this.prev<a.finallyLoc)return n(a.finallyLoc)}else if(f){if(this.prev<a.catchLoc)return n(a.catchLoc,!0)}else{if(!h)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return n(a.finallyLoc)}}}},abrupt:function(e,r){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&g.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var a=o;break}}a&&(e==="break"||e==="continue")&&a.tryLoc<=r&&r<=a.finallyLoc&&(a=null);var u=a?a.completion:{};return u.type=e,u.arg=r,a?(this.method="next",this.next=a.finallyLoc,d):this.complete(u)},complete:function(e,r){if(e.type==="throw")throw e.arg;return e.type==="break"||e.type==="continue"?this.next=e.arg:e.type==="return"?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):e.type==="normal"&&r&&(this.next=r),d},finish:function(e){for(var r=this.tryEntries.length-1;r>=0;--r){var n=this.tryEntries[r];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),P(n),d}},catch:function(e){for(var r=this.tryEntries.length-1;r>=0;--r){var n=this.tryEntries[r];if(n.tryLoc===e){var o=n.completion;if(o.type==="throw"){var a=o.arg;P(n)}return a}}throw new Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:G(e),resultName:r,nextLoc:n},this.method==="next"&&(this.arg=void 0),d}},s}var Pe=H.default=function(){var s={getCode:ue.a,callback:function(){var E=Object(X.a)(se().mark(function T(R){var F;return se().wrap(function(l){for(;;)switch(l.prev=l.next){case 0:return l.next=2,Object(ue.c)(R);case 2:return F=l.sent,l.abrupt("return",F);case 4:case"end":return l.stop()}},T)}));function g(T){return E.apply(this,arguments)}return g}(),validateName:ue.d};return y.a.createElement(Ne,s)}},YrPe:function(oe,H,v){"use strict";v.d(H,"d",function(){return N}),v.d(H,"a",function(){return y}),v.d(H,"b",function(){return ne}),v.d(H,"e",function(){return Z}),v.d(H,"c",function(){return ee});var X=v("ErOA");function N(V){return Object(X.c)("accounts/valid_email_and_phone.json",V)}function y(V){return Object(X.c)("accounts/get_verification_code.json",V)}function ne(V){return Object(X.f)("accounts/register.json",V)}function Z(V){return Object(X.f)("weapps/register.json",V)}function ee(V){return Object(X.f)("accounts/reset_password.json",V)}},bRQS:function(oe,H,v){"use strict";var X=v("VTBJ"),N=v("q1tI"),y={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M912 190h-69.9c-9.8 0-19.1 4.5-25.1 12.2L404.7 724.5 207 474a32 32 0 00-25.1-12.2H112c-6.7 0-10.4 7.7-6.3 12.9l273.9 347c12.8 16.2 37.4 16.2 50.3 0l488.4-618.9c4.1-5.1.4-12.8-6.3-12.8z"}}]},name:"check",theme:"outlined"},ne=y,Z=v("6VBw"),ee=function($,q){return N.createElement(Z.a,Object(X.a)(Object(X.a)({},$),{},{ref:q,icon:ne}))};ee.displayName="CheckOutlined";var V=H.a=N.forwardRef(ee)},tJYU:function(oe,H,v){}}]);