1"use strict";(self.webpackChunksaas_web=self.webpackChunksaas_web||[]).push([[9053],{19053:function(e,t,s){s.r(t);s(59304);var n,a=s(59491),r=(s(88301),s(32697)),i=(s(98995),s(12008)),o=(s(29955),s(66672)),l=s(74165),c=(s(78235),s(55291)),u=s(4942),m=s(15861),d=s(15671),h=s(43144),p=s(60136),f=s(27277),x=s(47313),g=s(66135),j=s(38803),Z=s(72231),v=s(10781),b=s(49074),y=s(82429),I=s(18894),k=s(46417),w=(0,g.$j)(null,{saveUserInfo:y.c3,_login:y.o})(n=(0,j.Q)()(n=function(e){(0,p.Z)(s,e);var t=(0,f.Z)(s);function s(e){var n;(0,d.Z)(this,s),(n=t.call(this,e)).onFinish=function(){var e=(0,m.Z)((0,l.Z)().mark((function e(t){var s;return(0,l.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return s=t.userAccount.includes("@")?"email":"tel",e.prev=1,e.next=4,(0,v.SB)((0,u.Z)({},s,t.userAccount));case 4:n._login(t),e.next=10;break;case 7:e.prev=7,e.t0=e.catch(1),"tel"===s&&/^1\d{10}$/.test(t.userAccount)?c.ZP.warning("\u624b\u673a\u53f7\u7801\u5c1a\u672a\u6ce8\u518c\uff0c\u8bf7\u5148\u53bb\u6ce8\u518c\uff01"):c.ZP.warning("\u8d26\u53f7\u8f93\u5165\u9519\u8bef\uff01");case 10:case"end":return e.stop()}}),e,null,[[1,7]])})));return function(t){return e.apply(this,arguments)}}(),n._login=function(e){var t={userAccount:(0,b.HI)(e.userAccount),password:(0,b.HI)(e.password),remember:e.remember};2===n.state.type&&(t.linkCode=n.state.teamInfo.linkCode),n.setState({loading:!0}),n.state.teamInfo&&n.state.teamInfo.mailbox?(t.telNum=(0,b.HI)(e.userAccount),(0,I.lF)(t).then((function(e){c.ZP.success("\u52a0\u5165\u56e2\u961f\u6210\u529f"),n.setState({loading:!1})})).catch((function(e){c.ZP.error(e.result),n.setState({loading:!1})}))):n.props._login(t).then((function(){n.setState({loading:!1})}))};var a=n.props.location.state&&n.props.location.state.teamInfo;return n.state={teamInfo:a,loading:!1,type:1},n}return(0,h.Z)(s,[{key:"render",value:function(){var e=this,t=this.state.teamInfo;return(0,k.jsxs)(k.Fragment,{children:[t?(0,k.jsxs)("div",{className:"join-title",children:[t.userName," ",(0,k.jsx)("span",{children:"\u9080\u8bf7\u4f60\u52a0\u5165"})," ",t.teamName]}):(0,k.jsxs)("div",{className:"title",children:[(0,k.jsx)("span",{children:"\u767b\u5f55"}),(0,k.jsxs)("div",{className:"link",children:["\u6ca1\u6709\u8d26\u53f7\uff0c\u5feb\u901f",(0,k.jsx)(Z.rU,{to:"/register",children:"\u6ce8\u518c"})]})]}),t&&t.mailbox&&(0,k.jsx)("div",{className:"mailbox",children:t.mailbox}),(0,k.jsxs)(i.Z,{onFinish:this.onFinish,initialValues:{remember:!0},children:[(0,k.jsx)(i.Z.Item,{name:"userAccount",rules:[{required:!0,message:"\u8bf7\u8f93\u5165\u624b\u673a\u53f7"}],children:(0,k.jsx)(o.Z,{placeholder:"\u8bf7\u8f93\u5165\u624b\u673a\u53f7"})}),(0,k.jsx)(i.Z.Item,{name:"password",validateFirst:!0,rules:[{required:!0,message:"\u5bc6\u7801\u4e0d\u80fd\u4e3a\u7a7a"},{validator:function(e,t){return/^.{6,20}$/.test(t)?Promise.resolve():Promise.reject("\u8bf7\u8f93\u51656-20\u4f4d\u5bc6\u7801")}}],children:(0,k.jsx)(o.Z.Password,{placeholder:"\u8bf7\u8f93\u5165\u5bc6\u7801"})}),(0,k.jsxs)(i.Z.Item,{className:"custom-item",children:[(0,k.jsx)(i.Z.Item,{noStyle:!0,name:"remember",valuePropName:"checked",children:(0,k.jsx)(r.Z,{children:"\u81ea\u52a8\u767b\u5f55"})}),(0,k.jsx)(Z.rU,{className:"right",to:"/forgetPassword",children:"\u5fd8\u8bb0\u5bc6\u7801"})]}),(0,k.jsx)(i.Z.Item,{children:t?(0,k.jsxs)(k.Fragment,{children:[!t.mailbox&&(0,k.jsx)(a.Z,{loading:1===this.state.type&&this.state.loading,onClick:function(){return e.setState({type:1})},htmlType:"submit",className:"auth-form-button only-login",children:"\u4ec5\u767b\u5f55"}),(0,k.jsx)(a.Z,{onClick:function(){return e.setState({type:2})},type:"primary",loading:2===this.state.type&&this.state.loading,htmlType:"submit",className:"auth-form-button",children:"\u767b\u5f55\u5e76\u52a0\u5165"})]}):(0,k.jsx)(a.Z,{type:"primary",loading:this.state.loading,htmlType:"submit",className:"auth-form-button",children:"\u7acb\u5373\u767b\u5f55"})})]})]})}}]),s}(x.Component))||n)||n;t.default=w}}]);
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.