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