|
|
(window.webpackJsonp=window.webpackJsonp||[]).push([[34],{"0NIp":
|
|
|
/*!********************************************************!*\
|
|
|
!*** ./src/pages/Account/Secure/index.tsx + 1 modules ***!
|
|
|
\********************************************************/
|
|
|
/*! exports provided: default */
|
|
|
/*! all exports used */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/@umijs/babel-preset-umi/node_modules/@babel/runtime/helpers/esm/asyncToGenerator.js */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/@umijs/babel-preset-umi/node_modules/@babel/runtime/helpers/esm/objectDestructuringEmpty.js */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/@umijs/babel-preset-umi/node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/@umijs/babel-preset-umi/node_modules/@babel/runtime/helpers/esm/slicedToArray.js */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/@umijs/babel-preset-umi/node_modules/@babel/runtime/regenerator/index.js (<- Module is not an ECMAScript module) */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./src/pages/Account/Secure/index.less?modules (<- Module is not an ECMAScript module) */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./src/.umi-production/core/umiExports.ts */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./src/utils/fetch.ts */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./src/utils/util.tsx */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/antd/es/button/index.js */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/antd/es/button/style/index.js */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/antd/es/form/index.js */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/antd/es/form/style/index.js */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/antd/es/input/index.js */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/antd/es/input/style/index.js */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/antd/es/message/index.js */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/antd/es/message/style/index.js */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/antd/es/modal/index.js */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/antd/es/modal/style/index.js */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/antd/es/tooltip/index.js */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/antd/es/tooltip/style/index.js */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/react-router-dom/esm/react-router-dom.js */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/react-router/esm/react-router.js */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/react/index.js (<- Module is not an ECMAScript module) */function(e,t,a){"use strict";a.r(t);a("2qtc");var n=a("kLXV"),r=(a("5Dmo"),a("3S7+")),o=(a("+L6B"),a("2/Rp")),i=(a("5NDa"),a("5rEg")),l=a("CiB2"),c=(a("miYZ"),a("tsqr")),s=a("9og8"),u=(a("y8nQ"),a("Vl3Y")),f=a("tJVT"),d=a("PpiC"),p=a("WmNS"),m=a.n(p),v=a("q1tI"),b=a.n(v),h=a("Ty5D"),g=a("55Ip"),y=a("9kvl"),E=a("bu1o"),x=a.n(E);var w,O=a("1vsH"),j=a("ErOA");!function(e){e[e.Phone=1]="Phone",e[e.Email=2]="Email",e[e.Password=3]="Password"}(w||(w={}));var C,I=/^1\d{10}$/,S=/^[a-zA-Z0-9]+([.\-_\\]*[a-zA-Z0-9])*@([a-z0-9]+[-a-z0-9]*[a-z0-9]+.){1,63}[a-z0-9]+$/,_=/^(?![\d]+$)(?![a-zA-Z]+$)(?![^\da-zA-Z]+$).{8,16}$/,z=function(e,t,a){t?t.indexOf(" ")>-1?a("请输入8-16位密码,区分大小写、不能使用空格"):t.length<8||t.length>16?a("请输入8-16位字符的新密码,区分大小写!"):_.test(t)?a():a("请输入8~16位字符,字母、数字和特殊符号至少包含2种"):a("请输入8-16位字符的新密码,区分大小写!")};!function(e){e.Wechat="wechat",e.QQ="qq"}(C||(C={}));t.default=Object(y.a)((function(e){var t=e.user,a=e.account,n=e.loading;return{user:t,account:a,globalSetting:e.globalSetting,loading:n.models.index}}))((function(e){var t,a,p,y,E,_,N,k,A,R,P,T,V,D,F,B,W,H,q,M,L,Z,K=e.user,X=e.account,Y=e.globalSetting,Q=(e.loading,e.dispatch),G=(Object(d.a)(e,["user","account","globalSetting","loading","dispatch"]),u.a.useForm()),$=Object(f.a)(G,1)[0],J=Object(v.useState)(),U=Object(f.a)(J,2),ee=U[0],te=U[1],ae=Object(v.useState)(60),ne=Object(f.a)(ae,2),re=ne[0],oe=ne[1],ie=Object(v.useState)(),le=Object(f.a)(ie,2),ce=le[0],se=le[1],ue=Object(v.useRef)(),fe=Object(v.useState)({}),de=Object(f.a)(fe,2),pe=de[0],me=de[1],ve=Object(v.useState)({}),be=Object(f.a)(ve,2),he=be[0],ge=be[1],ye=Object(v.useState)(!1),Ee=Object(f.a)(ye,2),xe=Ee[0],we=Ee[1],Oe=Object(v.useState)(!1),je=Object(f.a)(Oe,2),Ce=je[0],Ie=je[1],Se=Object(v.useState)(!1),_e=Object(f.a)(Se,2),ze=_e[0],Ne=_e[1],ke=Object(v.useState)(!1),Ae=Object(f.a)(ke,2),Re=Ae[0],Pe=Ae[1],Te=Object(v.useState)(""),Ve=Object(f.a)(Te,2),De=Ve[0],Fe=Ve[1],Be=Object(v.useState)(""),We=Object(f.a)(Be,2),He=We[0],qe=We[1],Me=Object(h.h)();Object(v.useEffect)((function(){var e,t,a=(null===(e=X.basicInfo)||void 0===e?void 0:e.open_users.find((function(e){return e.en_type===C.Wechat})))||{};me(a);var n=(null===(t=X.basicInfo)||void 0===t?void 0:t.open_users.find((function(e){return e.en_type===C.QQ})))||{};ge(n)}),[X.basicInfo]),Object(v.useEffect)((function(){return function(){ue.current&&clearInterval(ue.current)}}),[]),Object(v.useEffect)((function(){te(parseInt(Me.query.active))}),[Me]),q=function(){ce&&(oe(60),re>0?oe(re-1):(oe(60),se(!1),ue.current&&clearInterval(ue.current)))},M=1e3,L=Object(v.useRef)(),Z=Object(v.useRef)(),Object(v.useEffect)((function(){L.current=q})),Object(v.useEffect)((function(){if(null!==M){var e=setInterval((function(){L.current()}),M);return Z.current=e,function(){return clearInterval(e)}}}),[M]);var Le=function(){var e=Object(s.a)(m.a.mark((function e(t){var a,n,r,o,i;return m.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!t){e.next=16;break}if(n=3,a=$.getFieldValue("phone"),I.test(a)){e.next=6;break}return c.b.info("请先输入正确的手机号码"),e.abrupt("return");case 6:return e.next=8,Object(j.a)("/api/users/accounts/".concat(null===(r=K.userInfo)||void 0===r?void 0:r.login,"/valid_phone.json"),{method:"get",params:{phone:a}});case 8:if(-1!==(null==(o=e.sent)?void 0:o.status)){e.next=11;break}return e.abrupt("return");case 11:if(null==o||!o.is_exists){e.next=14;break}return Ne(!0),e.abrupt("return");case 14:e.next=21;break;case 16:if(n=4,a=$.getFieldValue("email"),S.test(a)){e.next=21;break}return c.b.info("请先输入正确的邮箱地址"),e.abrupt("return");case 21:return i=Object(O.X)(a),e.next=24,Q({type:"account/getCode",payload:{login:a,type:n,smscode:i}});case 24:1===e.sent.status&&(c.b.info("验证码已发送,请注意查收"),se(!0));case 26:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),Ze=function(){var e=Object(s.a)(m.a.mark((function e(t){var a,n,r,o,i,l,s;return m.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=(a=t||{}).phone,r=a.phoneValidateCode,o=K.userInfo||{},i=o.login,I.test(n)){e.next=5;break}return c.b.info("请输入有效的11位手机号码"),e.abrupt("return");case 5:return e.next=7,Q({type:"account/bindPhone",payload:{login:i,phone:n,code:r}});case 7:0===(null==(l=e.sent)?void 0:l.status)&&(c.b.info("手机号码绑定成功!"),te(null),se(!1),Q({type:"account/getBasicInfo",payload:{login:null===(s=K.userInfo)||void 0===s?void 0:s.login}}));case 9:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),Ke=function(){var e=Object(s.a)(m.a.mark((function e(t){var a,n,r,o,i,l,s;return m.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=(a=t||{}).email,r=a.emailValidateCode,o=K.userInfo||{},i=o.login,S.test(n)){e.next=5;break}return c.b.info("请输入正确的邮箱地址"),e.abrupt("return");case 5:return e.next=7,Q({type:"account/bindEmail",payload:{login:i,email:n,code:r}});case 7:0===(null==(l=e.sent)?void 0:l.status)&&(c.b.info("邮箱地址绑定成功!"),te(null),se(!1),Q({type:"account/getBasicInfo",payload:{login:null===(s=K.userInfo)||void 0===s?void 0:s.login}}));case 9:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),Xe=function(){var e=Object(s.a)(m.a.mark((function e(t){var a,n,r,o,i,l,s,u,f;return m.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=(n=t||{}).oldPassword,o=n.newPassword,i=n.againPassword,l=K.userInfo||{},s=l.login,null===(a=X.basicInfo)||void 0===a||!a.has_password||r!==o){e.next=5;break}return c.b.info("新密码不能与旧密码相同!"),e.abrupt("return");case 5:if(o===i){e.next=8;break}return c.b.info("两次输入的新密码必须一致!"),e.abrupt("return");case 8:return e.next=10,Q({type:"account/updatePassword",payload:{login:s,old_password:r,password:o}});case 10:0===(null==(u=e.sent)?void 0:u.status)&&(c.b.info("密码更新成功!"),te(null),Q({type:"account/getBasicInfo",payload:{login:null===(f=K.userInfo)||void 0===f?void 0:f.login}}));case 12:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}();return Object(v.useEffect)((function(){ee||$.setFieldsValue({phone:"",phoneValidateCode:"",email:"",emailValidateCode:"",oldPassword:"",newPassword:"",againPassword:""})}),[ee]),b.a.createElement("section",{className:x.a.wrap},b.a.createElement("div",null,b.a.createElement("div",{className:x.a.content},b.a.createElement("div",{className:"".concat(x.a.titleWrap," mt10")},b.a.createElement("div",{className:x.a.title},"安全设置")),(null===(t=X.basicInfo)||void 0===t?void 0:t.alert_pwd_strength)&&b.a.createElement("div",{style:{background:"#f9d0d5",width:"100%",height:"40px",color:"#b53a7f",lineHeight:"40px",padding:"0px 10px"}},"系统检测到你的密码强度不够,为了确保您的数据安全,请修改密码!"),b.a.createElement(u.a,{form:$,className:x.a.formWrap,labelCol:{span:6},wrapperCol:{span:10},onFinish:function(e){var t=e||{};Object(l.a)(t),console.log("handleFinish values: ",e),ee===w.Phone&&Ze(e),ee===w.Email&&Ke(e),ee===w.Password&&Xe(e)}},b.a.createElement("div",{className:"".concat(x.a.row," ").concat(ee===w.Phone?"":x.a.rowBorder)},b.a.createElement("span",{className:"".concat(x.a.name," ").concat(x.a.color999)},"手机"),b.a.createElement("div",{className:"".concat(x.a.description," ").concat(x.a.colorCDCDCD)},null!==(a=X.basicInfo)&&void 0!==a&&a.phone?b.a.createElement("span",{className:"".concat(x.a.status," mr20")},null===(p=X.basicInfo)||void 0===p?void 0:p.phone):b.a.createElement("span",{className:"".concat(x.a.status," ").concat(x.a.colorRed," mr20")},"未绑定"),null!==(y=X.basicInfo)&&void 0!==y&&y.phone?"仅自己可见,可用手机号码登录EduCoder":"绑定手机号码,将获得500金币的奖励哟~,手机号码仅自己可见~"),(null===(E=X.basicInfo)||void 0===E?void 0:E.phone)&&ee!==w.Phone&&b.a.createElement("span",{className:x.a.active,style:{marginRight:"30px",cursor:"pointer"},onClick:function(){var e;null!=pe&&pe.id||null!=he&&he.id||null!==(e=X.basicInfo)&&void 0!==e&&e.mail?Ie(!0):we(!0)}},"解绑手机号"),ee!==w.Phone&&b.a.createElement("span",{className:x.a.active,onClick:function(){return te(w.Phone)}},null!==(_=X.basicInfo)&&void 0!==_&&_.phone?"更换":"立即绑定")),ee===w.Phone&&b.a.createElement(b.a.Fragment,null,b.a.createElement(u.a.Item,{label:"你的手机号",name:"phone",rules:[{required:!0,message:"请输入要".concat(null!==(N=X.basicInfo)&&void 0!==N&&N.phone?"更换":"绑定","的手机号码")},{validator:function(e,t,a){I.test(t)&&a(),a("请输入有效的11位手机号码")}}]},b.a.createElement(i.a,{placeholder:"请输入要".concat(null!==(k=X.basicInfo)&&void 0!==k&&k.phone?"更换":"绑定","的手机号码")})),!(null!=Y&&null!==(A=Y.setting)&&void 0!==A&&A.is_local)&&b.a.createElement(u.a.Item,{label:"手机验证码"},b.a.createElement(u.a.Item,{name:"phoneValidateCode",rules:[{required:!0,message:"请输入手机获取的验证码"}],noStyle:!0},b.a.createElement(i.a,{placeholder:"请输入手机获取的验证码"})),b.a.createElement(o.a,{type:"primary",className:"ml5",disabled:ce,onClick:function(){return Le(!0)}},ce?"重新发送".concat(re,"s"):"获取验证码")),b.a.createElement(u.a.Item,{noStyle:!0},b.a.createElement("div",{className:x.a.buttonWrap},b.a.createElement(o.a,{className:"".concat(x.a.submitButton),size:"large",type:"primary",htmlType:"submit"},"确定"),b.a.createElement(o.a,{className:x.a.submitButton,size:"large",onClick:function(){return te(null)}},"取消")))),b.a.createElement("div",{className:"".concat(x.a.row," ").concat(ee===w.Email?"":x.a.rowBorder)},b.a.createElement("span",{className:"".concat(x.a.name," ").concat(x.a.color999)},"邮箱"),b.a.createElement("div",{className:"".concat(x.a.description," ").concat(x.a.colorCDCDCD)},null!==(R=X.basicInfo)&&void 0!==R&&R.mail?b.a.createElement("span",{className:"".concat(x.a.status," mr20")},null===(P=X.basicInfo)||void 0===P?void 0:P.mail):b.a.createElement("span",{className:"".concat(x.a.status," ").concat(x.a.colorRed," mr20")},"未绑定"),"邮箱账号仅自己可见,可用于邮箱账号登录",!(null!=Y&&null!==(T=Y.setting)&&void 0!==T&&T.is_local)&&"EduCoder"),ee!==w.Email&&b.a.createElement("span",{className:x.a.active,onClick:function(){return te(w.Email)}},null!==(V=X.basicInfo)&&void 0!==V&&V.mail?"更换":"立即绑定")),ee===w.Email&&b.a.createElement(b.a.Fragment,null,b.a.createElement(u.a.Item,{label:"邮箱地址",name:"email",rules:[{required:!0,message:null!==(D=X.basicInfo)&&void 0!==D&&D.mail?"请输入要更换的新邮箱地址":"请输入邮箱地址"}]},b.a.createElement(i.a,{placeholder:null!==(F=X.basicInfo)&&void 0!==F&&F.mail?"请输入要更换的新邮箱地址":"请输入邮箱地址"})),!(null!=Y&&null!==(B=Y.setting)&&void 0!==B&&B.is_local)&&b.a.createElement(u.a.Item,{label:"邮箱验证码"},b.a.createElement(u.a.Item,{name:"emailValidateCode",rules:[{required:!0,message:"请输入邮箱收到的验证码"}],noStyle:!0},b.a.createElement(i.a,{placeholder:"请输入邮箱收到的验证码"})),b.a.createElement(o.a,{type:"primary",className:"ml5",disabled:ce,onClick:function(){return Le(!1)}},ce?"重新发送".concat(re,"s"):"获取验证码")),b.a.createElement(u.a.Item,{noStyle:!0},b.a.createElement("div",{className:x.a.buttonWrap},b.a.createElement(o.a,{className:"".concat(x.a.submitButton),size:"large",type:"primary",htmlType:"submit"},"确定"),b.a.createElement(o.a,{className:x.a.submitButton,size:"large",onClick:function(){return te(null)}},"取消")))),b.a.createElement("div",{className:x.a.row},b.a.createElement("span",{className:"".concat(x.a.name," ").concat(x.a.color999)},"密码"),b.a.createElement("div",{className:"".concat(x.a.description," ").concat(x.a.colorCDCDCD)},b.a.createElement("span",{className:"".concat(x.a.status," mr20")},"**********"),"用于保护账户信息和登录安全"),ee!==w.Password&&b.a.createElement("span",{className:x.a.active,onClick:function(){return te(w.Password)}},"修改")),ee===w.Password&&b.a.createElement(b.a.Fragment,null,(null===(W=X.basicInfo)||void 0===W?void 0:W.has_password)&&b.a.createElement(u.a.Item,{label:"旧密码",name:"oldPassword",rules:[{required:!0,message:"请设置8~16位密码,区分大小写"}]},b.a.createElement(i.a,{type:"password",placeholder:"请设置8~16位密码,区分大小写"})),b.a.createElement(r.a,{title:b.a.createElement("div",null,b.a.createElement("span",null,"长度为8-16位字符"),b.a.createElement("br",null),b.a.createElement("span",null,"字母/数字以及标点符号至少包含2种"),b.a.createElement("br",null),b.a.createElement("span",null,"不允许有空格、中文")),placement:"top"},b.a.createElement(u.a.Item,{label:"新密码",name:"newPassword",rules:[{},{validator:z}]},b.a.createElement(i.a,{type:"password",placeholder:"请输入8~16位的新密码,区分大小写"}))),b.a.createElement(r.a,{title:b.a.createElement("div",null,b.a.createElement("span",null,"长度为8-16位字符"),b.a.createElement("br",null),b.a.createElement("span",null,"字母/数字以及标点符号至少包含2种"),b.a.createElement("br",null),b.a.createElement("span",null,"不允许有空格、中文")),placement:"top"},b.a.createElement(u.a.Item,{label:"再次输入",name:"againPassword",rules:[{required:!0,message:"请再次输入新密码"},{validator:function(e,t,a){t!=$.getFieldsValue().newPassword?a("两次输入的新密码必须一致!"):a()}}]},b.a.createElement(i.a,{type:"password",placeholder:"请再次输入新密码"}))),b.a.createElement(u.a.Item,{noStyle:!0},b.a.createElement("div",{className:x.a.buttonWrap},b.a.createElement(o.a,{className:"".concat(x.a.submitButton),size:"large",type:"primary",htmlType:"submit"},"确定"),b.a.createElement(o.a,{className:x.a.submitButton,size:"large",onClick:function(){return te(null)}},"取消")))))),b.a.createElement("div",{className:"".concat(x.a.hint," font14")},"* 我们确保你所提供的信息均处于严格保密状态,不会泄露")),b.a.createElement(n.a,{title:"提示",visible:xe,onCancel:function(){we(!1)},footer:b.a.createElement("div",null,b.a.createElement(o.a,{style:{textAlign:"end"},type:"primary",onClick:function(){return we(!1)}},"确 定"))},b.a.createElement("div",{style:{padding:"7px 24px"}},b.a.createElement("span",null,"您目前只有手机号登录一种方式,解绑后将无法正常使用平台,需要您先绑定以下的任意一种登录方式,再进行解绑。"),b.a.createElement("br",null),b.a.createElement("p",{style:{marginTop:"1em",display:"flex"}},b.a.createElement("span",{style:{flex:"1"}},"1、绑定邮箱 ")," ",b.a.createElement(o.a,{type:"primary",ghost:!0,onClick:function(){return we(!1)},style:{borderRadius:"12px",height:"26px",width:"93px",cursor:"pointer"}},"前往绑定")),b.a.createElement("p",{style:{marginTop:"1em",display:"flex"}},b.a.createElement("span",{style:{flex:"1"}},"2、绑定微信 ")," ",b.a.createElement(o.a,{type:"primary",ghost:!0,style:{borderRadius:"12px",height:"26px",width:"93px"}},b.a.createElement(g.a,{to:"/account/binding"},"前往绑定"))),b.a.createElement("p",{style:{marginTop:"1em",display:"flex"}},b.a.createElement("span",{style:{flex:"1"}},"3、绑定QQ ")," ",b.a.createElement(o.a,{type:"primary",ghost:!0,style:{borderRadius:"12px",height:"26px",width:"93px"}},b.a.createElement(g.a,{to:"/account/binding"},"前往绑定"))))),b.a.createElement(n.a,{title:"手机号解绑",visible:Ce,onCancel:function(){return Ie(!1)},onOk:Object(s.a)(m.a.mark((function e(){var t,a,n;return m.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(De){e.next=3;break}return c.b.info("验证码不能为空"),e.abrupt("return");case 3:return e.next=5,Object(j.a)("/api/users/accounts/".concat(null==K||null===(t=K.userInfo)||void 0===t?void 0:t.login,"/phone_unbind.json"),{method:"POST",body:{code:De}});case 5:0===(null==(a=e.sent)?void 0:a.status)&&(c.b.info("解绑成功"),se(!1),Ie(!1),Fe(""),Q({type:"account/getBasicInfo",payload:{login:null===(n=K.userInfo)||void 0===n?void 0:n.login}}));case 7:case"end":return e.stop()}}),e)})))},b.a.createElement("div",{style:{padding:"8px 24px"}},b.a.createElement("p",null,"手机号解绑后,将无法使用该手机号登录平台,请知悉"),b.a.createElement("p",null,"你的手机号:",null===(H=X.basicInfo)||void 0===H?void 0:H.phone),b.a.createElement("p",null,"手机验证码:",b.a.createElement(i.a,{size:"large",value:De,onChange:function(e){return Fe(e.target.value)},style:{width:"240px"}})," ",b.a.createElement(o.a,{disabled:ce,type:"primary",size:"large",onClick:Object(s.a)(m.a.mark((function e(){var t,a;return m.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Object(j.a)("/api/users/accounts/".concat(null==K||null===(t=K.userInfo)||void 0===t?void 0:t.login,"/get_phone_code.json"),{method:"get"});case 2:0===(null==(a=e.sent)?void 0:a.status)&&(c.b.info("验证码发送成功"),se(!0));case 4:case"end":return e.stop()}}),e)})))},ce?"重新发送".concat(re,"s"):"获取验证码")))),b.a.createElement(n.a,{title:"强制解绑",visible:Re,onCancel:function(){return Pe(!1)},onOk:Object(s.a)(m.a.mark((function e(){var t,a,n;return m.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(He){e.next=3;break}return c.b.info("验证码不能为空"),e.abrupt("return");case 3:return e.next=5,Object(j.a)("/api/users/accounts/".concat(null==K||null===(t=K.userInfo)||void 0===t?void 0:t.login,"/phone_force_unbind.json"),{method:"POST",body:{code:He,phone:$.getFieldValue("phone")}});case 5:0===(null==(a=e.sent)?void 0:a.status)&&(c.b.info("解绑成功"),se(!1),Pe(!1),te(null),qe(""),Q({type:"account/getBasicInfo",payload:{login:null===(n=K.userInfo)||void 0===n?void 0:n.login}}));case 7:case"end":return e.stop()}}),e)})))},b.a.createElement("div",{style:{padding:"8px 24px"}},b.a.createElement("p",null,"若原账号只有绑定了手机号一种登录方式,强制解绑后会导致原账号无法登录,请确定是否强制解绑"),b.a.createElement("p",null,"你的手机号:",$.getFieldValue("phone")),b.a.createElement("p",null,"手机验证码:",b.a.createElement(i.a,{value:He,size:"large",onChange:function(e){return qe(e.target.value)},style:{width:"240px"}})," ",b.a.createElement(o.a,{disabled:ce,type:"primary",size:"large",onClick:Object(s.a)(m.a.mark((function e(){var t;return m.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=Object(O.X)($.getFieldValue("phone")),e.next=3,Q({type:"account/getCode",payload:{login:$.getFieldValue("phone"),type:10,smscode:t}});case 3:1===e.sent.status&&(c.b.info("验证码已发送,请注意查收"),se(!0));case 5:case"end":return e.stop()}}),e)})))},ce?"重新发送".concat(re,"s"):"获取验证码")))),b.a.createElement(n.a,{title:"提示",visible:ze,onCancel:function(){Ne(!1)},okText:"进行强制解绑",okButtonProps:{type:"primary",ghost:!0,style:{width:"124px"}},onOk:function(){Pe(!0),Ne(!1)}},b.a.createElement("div",{style:{padding:"7px 24px"}},b.a.createElement("span",null,"该手机号已经被绑定账号,如果需要将该手机号绑定在当前账号上,你可以进行下方任意一种解绑操作:"),b.a.createElement("br",null),b.a.createElement("p",{style:{marginTop:"1em",display:"flex"}},b.a.createElement("span",{style:{flex:"1"}},"1、使用该手机号登录平台进行解绑,再将手机号绑定当前账号上。")),b.a.createElement("p",{style:{marginTop:"1em",display:"flex"}},b.a.createElement("span",{style:{flex:"1"}},"2、强制解绑(强制解绑可能会导致解绑账号无法登录)")))))}))},"55Ip":
|
|
|
/*!***************************************************************!*\
|
|
|
!*** ./node_modules/react-router-dom/esm/react-router-dom.js ***!
|
|
|
\***************************************************************/
|
|
|
/*! exports provided: MemoryRouter, Prompt, Redirect, Route, Router, StaticRouter, Switch, generatePath, matchPath, useHistory, useLocation, useParams, useRouteMatch, withRouter, BrowserRouter, HashRouter, Link, NavLink */
|
|
|
/*! exports used: Link, NavLink */function(e,t,a){"use strict";a.d(t,"a",(function(){return b})),a.d(t,"b",(function(){return y}));var n=a(/*! react-router */"Ty5D"),r=a(/*! @babel/runtime/helpers/esm/inheritsLoose */"dI71"),o=a(/*! react */"q1tI"),i=a.n(o),l=a(/*! history */"YS25"),c=(a(/*! prop-types */"17x9"),a(/*! @babel/runtime/helpers/esm/extends */"wx14")),s=a(/*! @babel/runtime/helpers/esm/objectWithoutPropertiesLoose */"zLVn"),u=a(/*! tiny-invariant */"9R94");i.a.Component;i.a.Component;var f=function(e,t){return"function"==typeof e?e(t):e},d=function(e,t){return"string"==typeof e?Object(l.c)(e,null,null,t):e},p=function(e){return e},m=i.a.forwardRef;void 0===m&&(m=p);var v=m((function(e,t){var a=e.innerRef,n=e.navigate,r=e.onClick,o=Object(s.a)(e,["innerRef","navigate","onClick"]),l=o.target,u=Object(c.a)({},o,{onClick:function(e){try{r&&r(e)}catch(t){throw e.preventDefault(),t}e.defaultPrevented||0!==e.button||l&&"_self"!==l||function(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}(e)||(e.preventDefault(),n())}});return u.ref=p!==m&&t||a,i.a.createElement("a",u)}));var b=m((function(e,t){var a=e.component,r=void 0===a?v:a,o=e.replace,l=e.to,b=e.innerRef,h=Object(s.a)(e,["component","replace","to","innerRef"]);return i.a.createElement(n.e.Consumer,null,(function(e){e||Object(u.a)(!1);var a=e.history,n=d(f(l,e.location),e.location),s=n?a.createHref(n):"",v=Object(c.a)({},h,{href:s,navigate:function(){var t=f(l,e.location);(o?a.replace:a.push)(t)}});return p!==m?v.ref=t||b:v.innerRef=b,i.a.createElement(r,v)}))})),h=function(e){return e},g=i.a.forwardRef;void 0===g&&(g=h);var y=g((function(e,t){var a=e["aria-current"],r=void 0===a?"page":a,o=e.activeClassName,l=void 0===o?"active":o,p=e.activeStyle,m=e.className,v=e.exact,y=e.isActive,E=e.location,x=e.sensitive,w=e.strict,O=e.style,j=e.to,C=e.innerRef,I=Object(s.a)(e,["aria-current","activeClassName","activeStyle","className","exact","isActive","location","sensitive","strict","style","to","innerRef"]);return i.a.createElement(n.e.Consumer,null,(function(e){e||Object(u.a)(!1);var a=E||e.location,o=d(f(j,a),a),s=o.pathname,S=s&&s.replace(/([.+*?=^!:${}()[\]|/\\])/g,"\\$1"),_=S?Object(n.f)(a.pathname,{path:S,exact:v,sensitive:x,strict:w}):null,z=!!(y?y(_,a):_),N=z?function(){for(var e=arguments.length,t=new Array(e),a=0;a<e;a++)t[a]=arguments[a];return t.filter((function(e){return e})).join(" ")}(m,l):m,k=z?Object(c.a)({},O,{},p):O,A=Object(c.a)({"aria-current":z&&r||null,className:N,style:k,to:o},I);return h!==g?A.ref=t||C:A.innerRef=C,i.a.createElement(b,A)}))}))},"7ixt":
|
|
|
/*!**************************************************!*\
|
|
|
!*** ./node_modules/rc-tooltip/es/placements.js ***!
|
|
|
\**************************************************/
|
|
|
/*! exports provided: placements, default */
|
|
|
/*! exports used: placements */function(e,t,a){"use strict";a.d(t,"a",(function(){return o}));var n={adjustX:1,adjustY:1},r=[0,0],o={left:{points:["cr","cl"],overflow:n,offset:[-4,0],targetOffset:r},right:{points:["cl","cr"],overflow:n,offset:[4,0],targetOffset:r},top:{points:["bc","tc"],overflow:n,offset:[0,-4],targetOffset:r},bottom:{points:["tc","bc"],overflow:n,offset:[0,4],targetOffset:r},topLeft:{points:["bl","tl"],overflow:n,offset:[0,-4],targetOffset:r},leftTop:{points:["tr","tl"],overflow:n,offset:[-4,0],targetOffset:r},topRight:{points:["br","tr"],overflow:n,offset:[0,-4],targetOffset:r},rightTop:{points:["tl","tr"],overflow:n,offset:[4,0],targetOffset:r},bottomRight:{points:["tr","br"],overflow:n,offset:[0,4],targetOffset:r},rightBottom:{points:["bl","br"],overflow:n,offset:[4,0],targetOffset:r},bottomLeft:{points:["tl","bl"],overflow:n,offset:[0,4],targetOffset:r},leftBottom:{points:["br","bl"],overflow:n,offset:[-4,0],targetOffset:r}}},Gytx:
|
|
|
/*!********************************************!*\
|
|
|
!*** ./node_modules/shallowequal/index.js ***!
|
|
|
\********************************************/
|
|
|
/*! no static exports found */
|
|
|
/*! exports used: default */
|
|
|
/*! ModuleConcatenation bailout: Module is not an ECMAScript module */function(e,t){e.exports=function(e,t,a,n){var r=a?a.call(n,e,t):void 0;if(void 0!==r)return!!r;if(e===t)return!0;if("object"!=typeof e||!e||"object"!=typeof t||!t)return!1;var o=Object.keys(e),i=Object.keys(t);if(o.length!==i.length)return!1;for(var l=Object.prototype.hasOwnProperty.bind(t),c=0;c<o.length;c++){var s=o[c];if(!l(s))return!1;var u=e[s],f=t[s];if(!1===(r=a?a.call(n,u,f,s):void 0)||void 0===r&&u!==f)return!1}return!0}},OLES:
|
|
|
/*!*********************************************************!*\
|
|
|
!*** ./node_modules/rc-tooltip/es/index.js + 2 modules ***!
|
|
|
\*********************************************************/
|
|
|
/*! exports provided: default */
|
|
|
/*! exports used: default */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/@babel/runtime/helpers/esm/objectSpread2.js */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/@babel/runtime/helpers/esm/typeof.js */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/rc-tooltip/es/placements.js because of ./node_modules/antd/es/tooltip/placements.js */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/rc-trigger/es/index.js */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/react/index.js (<- Module is not an ECMAScript module) */function(e,t,a){"use strict";var n=a("U8pU"),r=a("VTBJ"),o=a("Ff2n"),i=a("q1tI"),l=a("uciX"),c=a("7ixt"),s=function(e){var t=e.overlay,a=e.prefixCls,n=e.id,r=e.overlayInnerStyle;return i.createElement("div",{className:"".concat(a,"-inner"),id:n,role:"tooltip",style:r},"function"==typeof t?t():t)},u=Object(i.forwardRef)((function(e,t){var a=e.overlayClassName,u=e.trigger,f=void 0===u?["hover"]:u,d=e.mouseEnterDelay,p=void 0===d?0:d,m=e.mouseLeaveDelay,v=void 0===m?.1:m,b=e.overlayStyle,h=e.prefixCls,g=void 0===h?"rc-tooltip":h,y=e.children,E=e.onVisibleChange,x=e.afterVisibleChange,w=e.transitionName,O=e.animation,j=e.placement,C=void 0===j?"right":j,I=e.align,S=void 0===I?{}:I,_=e.destroyTooltipOnHide,z=void 0!==_&&_,N=e.defaultVisible,k=e.getTooltipContainer,A=e.overlayInnerStyle,R=Object(o.a)(e,["overlayClassName","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle","prefixCls","children","onVisibleChange","afterVisibleChange","transitionName","animation","placement","align","destroyTooltipOnHide","defaultVisible","getTooltipContainer","overlayInnerStyle"]),P=Object(i.useRef)(null);Object(i.useImperativeHandle)(t,(function(){return P.current}));var T=Object(r.a)({},R);"visible"in e&&(T.popupVisible=e.visible);var V=!1,D=!1;if("boolean"==typeof z)V=z;else if(z&&"object"===Object(n.a)(z)){var F=z.keepParent;V=!0===F,D=!1===F}return i.createElement(l.a,Object.assign({popupClassName:a,prefixCls:g,popup:function(){var t=e.arrowContent,a=void 0===t?null:t,n=e.overlay,r=e.id;return[i.createElement("div",{className:"".concat(g,"-arrow"),key:"arrow"},a),i.createElement(s,{key:"content",prefixCls:g,id:r,overlay:n,overlayInnerStyle:A})]},action:f,builtinPlacements:c.a,popupPlacement:C,ref:P,popupAlign:S,getPopupContainer:k,onPopupVisibleChange:E,afterPopupVisibleChange:x,popupTransitionName:w,popupAnimation:O,defaultPopupVisible:N,destroyPopupOnHide:V,autoDestroy:D,mouseLeaveDelay:v,popupStyle:b,mouseEnterDelay:p},T),y)}));t.a=u},Y1PL:
|
|
|
/*!**********************************************************!*\
|
|
|
!*** ./node_modules/rc-textarea/es/index.js + 7 modules ***!
|
|
|
\**********************************************************/
|
|
|
/*! exports provided: ResizableTextArea, default */
|
|
|
/*! all exports used */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/@babel/runtime/helpers/esm/classCallCheck.js */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/@babel/runtime/helpers/esm/createClass.js */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/@babel/runtime/helpers/esm/createSuper.js */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/@babel/runtime/helpers/esm/defineProperty.js */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/@babel/runtime/helpers/esm/extends.js */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/@babel/runtime/helpers/esm/inherits.js */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/@babel/runtime/helpers/esm/objectSpread2.js */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/classnames/index.js (<- Module is not an ECMAScript module) */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/rc-util/es/Children/toArray.js */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/rc-util/es/Dom/findDOMNode.js */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/rc-util/es/omit.js */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/rc-util/es/ref.js */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/rc-util/es/warning.js */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/react/index.js (<- Module is not an ECMAScript module) */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/resize-observer-polyfill/dist/ResizeObserver.es.js (<- Module uses injected variables (global)) */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/shallowequal/index.js (<- Module is not an ECMAScript module) */function(e,t,a){"use strict";a.r(t),a.d(t,"ResizableTextArea",(function(){return R}));var n=a("wx14"),r=a("1OyB"),o=a("vuIU"),i=a("Ji7U"),l=a("LK+K"),c=a("q1tI"),s=a("VTBJ"),u=a("rePB"),f=a("Zm9Q"),d=(a("Kwbf"),a("c+Xe")),p=a("m+aA"),m=a("bdgK"),v=new Map;var b=new m.default((function(e){e.forEach((function(e){var t,a=e.target;null===(t=v.get(a))||void 0===t||t.forEach((function(e){return e(a)}))}))}));var h=function(e){Object(i.a)(a,e);var t=Object(l.a)(a);function a(){return Object(r.a)(this,a),t.apply(this,arguments)}return Object(o.a)(a,[{key:"render",value:function(){return this.props.children}}]),a}(c.Component),g=c.createContext(null);function y(e){var t=e.children,a=e.disabled,n=c.useRef(null),r=c.useRef(null),o=c.useContext(g),i=c.useRef({width:-1,height:-1,offsetWidth:-1,offsetHeight:-1}),l=c.isValidElement(t)&&Object(d.c)(t),u=l?t.ref:null,f=c.useMemo((function(){return Object(d.a)(u,n)}),[u,n]),m=c.useRef(e);m.current=e;var y=c.useCallback((function(e){var t=m.current,a=t.onResize,n=t.data,r=e.getBoundingClientRect(),l=r.width,c=r.height,u=e.offsetWidth,f=e.offsetHeight,d=Math.floor(l),p=Math.floor(c);if(i.current.width!==d||i.current.height!==p||i.current.offsetWidth!==u||i.current.offsetHeight!==f){var v={width:d,height:p,offsetWidth:u,offsetHeight:f};i.current=v;var b=u===Math.round(l)?l:u,h=f===Math.round(c)?c:f,g=Object(s.a)(Object(s.a)({},v),{},{offsetWidth:b,offsetHeight:h});null==o||o(g,e,n),a&&Promise.resolve().then((function(){a(g,e)}))}}),[]);return c.useEffect((function(){var e,t,o=Object(p.a)(n.current)||Object(p.a)(r.current);return o&&!a&&(e=o,t=y,v.has(e)||(v.set(e,new Set),b.observe(e)),v.get(e).add(t)),function(){return function(e,t){v.has(e)&&(v.get(e).delete(t),v.get(e).size||(b.unobserve(e),v.delete(e)))}(o,y)}}),[n.current,a]),c.createElement(h,{ref:r},l?c.cloneElement(t,{ref:f}):t)}function E(e){var t=e.children;return Object(f.a)(t).map((function(t,a){var r=(null==t?void 0:t.key)||"".concat("rc-observer-key","-").concat(a);return c.createElement(y,Object(n.a)({},e,{key:r}),t)}))}E.Collection=function(e){var t=e.children,a=e.onBatchResize,n=c.useRef(0),r=c.useRef([]),o=c.useContext(g),i=c.useCallback((function(e,t,i){n.current+=1;var l=n.current;r.current.push({size:e,element:t,data:i}),Promise.resolve().then((function(){l===n.current&&(null==a||a(r.current),r.current=[])})),null==o||o(e,t,i)}),[a,o]);return c.createElement(g.Provider,{value:i},t)};var x,w=E,O=a("bT9E"),j=a("TSYQ"),C=a.n(j),I="\n min-height:0 !important;\n max-height:none !important;\n height:0 !important;\n visibility:hidden !important;\n overflow:hidden !important;\n position:absolute !important;\n z-index:-1000 !important;\n top:0 !important;\n right:0 !important\n",S=["letter-spacing","line-height","padding-top","padding-bottom","font-family","font-weight","font-size","font-variant","text-rendering","text-transform","width","text-indent","padding-left","padding-right","border-width","box-sizing","word-break"],_={};function z(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],a=e.getAttribute("id")||e.getAttribute("data-reactid")||e.getAttribute("name");if(t&&_[a])return _[a];var n=window.getComputedStyle(e),r=n.getPropertyValue("box-sizing")||n.getPropertyValue("-moz-box-sizing")||n.getPropertyValue("-webkit-box-sizing"),o=parseFloat(n.getPropertyValue("padding-bottom"))+parseFloat(n.getPropertyValue("padding-top")),i=parseFloat(n.getPropertyValue("border-bottom-width"))+parseFloat(n.getPropertyValue("border-top-width")),l=S.map((function(e){return"".concat(e,":").concat(n.getPropertyValue(e))})).join(";"),c={sizingStyle:l,paddingSize:o,borderSize:i,boxSizing:r};return t&&a&&(_[a]=c),c}var N,k=a("Gytx"),A=a.n(k);!function(e){e[e.NONE=0]="NONE",e[e.RESIZING=1]="RESIZING",e[e.RESIZED=2]="RESIZED"}(N||(N={}));var R=function(e){Object(i.a)(a,e);var t=Object(l.a)(a);function a(e){var o;return Object(r.a)(this,a),(o=t.call(this,e)).nextFrameActionId=void 0,o.resizeFrameId=void 0,o.textArea=void 0,o.saveTextArea=function(e){o.textArea=e},o.handleResize=function(e){var t=o.state.resizeStatus,a=o.props,n=a.autoSize,r=a.onResize;t===N.NONE&&("function"==typeof r&&r(e),n&&o.resizeOnNextFrame())},o.resizeOnNextFrame=function(){cancelAnimationFrame(o.nextFrameActionId),o.nextFrameActionId=requestAnimationFrame(o.resizeTextarea)},o.resizeTextarea=function(){var e=o.props.autoSize;if(e&&o.textArea){var t=e.minRows,a=e.maxRows,n=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;x||((x=document.createElement("textarea")).setAttribute("tab-index","-1"),x.setAttribute("aria-hidden","true"),document.body.appendChild(x)),e.getAttribute("wrap")?x.setAttribute("wrap",e.getAttribute("wrap")):x.removeAttribute("wrap");var r=z(e,t),o=r.paddingSize,i=r.borderSize,l=r.boxSizing,c=r.sizingStyle;x.setAttribute("style","".concat(c,";").concat(I)),x.value=e.value||e.placeholder||"";var s,u=Number.MIN_SAFE_INTEGER,f=Number.MAX_SAFE_INTEGER,d=x.scrollHeight;if("border-box"===l?d+=i:"content-box"===l&&(d-=o),null!==a||null!==n){x.value=" ";var p=x.scrollHeight-o;null!==a&&(u=p*a,"border-box"===l&&(u=u+o+i),d=Math.max(u,d)),null!==n&&(f=p*n,"border-box"===l&&(f=f+o+i),s=d>f?"":"hidden",d=Math.min(f,d))}return{height:d,minHeight:u,maxHeight:f,overflowY:s,resize:"none"}}(o.textArea,!1,t,a);o.setState({textareaStyles:n,resizeStatus:N.RESIZING},(function(){cancelAnimationFrame(o.resizeFrameId),o.resizeFrameId=requestAnimationFrame((function(){o.setState({resizeStatus:N.RESIZED},(function(){o.resizeFrameId=requestAnimationFrame((function(){o.setState({resizeStatus:N.NONE}),o.fixFirefoxAutoScroll()}))}))}))}))}},o.renderTextArea=function(){var e=o.props,t=e.prefixCls,a=void 0===t?"rc-textarea":t,r=e.autoSize,i=e.onResize,l=e.className,f=e.disabled,d=o.state,p=d.textareaStyles,m=d.resizeStatus,v=Object(O.a)(o.props,["prefixCls","onPressEnter","autoSize","defaultValue","onResize"]),b=C()(a,l,Object(u.a)({},"".concat(a,"-disabled"),f));"value"in v&&(v.value=v.value||"");var h=Object(s.a)(Object(s.a)(Object(s.a)({},o.props.style),p),m===N.RESIZING?{overflowX:"hidden",overflowY:"hidden"}:null);return c.createElement(w,{onResize:o.handleResize,disabled:!(r||i)},c.createElement("textarea",Object(n.a)({},v,{className:b,style:h,ref:o.saveTextArea})))},o.state={textareaStyles:{},resizeStatus:N.NONE},o}return Object(o.a)(a,[{key:"componentDidUpdate",value:function(e){e.value===this.props.value&&A()(e.autoSize,this.props.autoSize)||this.resizeTextarea()}},{key:"componentWillUnmount",value:function(){cancelAnimationFrame(this.nextFrameActionId),cancelAnimationFrame(this.resizeFrameId)}},{key:"fixFirefoxAutoScroll",value:function(){try{if(document.activeElement===this.textArea){var e=this.textArea.selectionStart,t=this.textArea.selectionEnd;this.textArea.setSelectionRange(e,t)}}catch(e){}}},{key:"render",value:function(){return this.renderTextArea()}}]),a}(c.Component),P=function(e){Object(i.a)(a,e);var t=Object(l.a)(a);function a(e){var n;Object(r.a)(this,a),(n=t.call(this,e)).resizableTextArea=void 0,n.focus=function(){n.resizableTextArea.textArea.focus()},n.saveTextArea=function(e){n.resizableTextArea=e},n.handleChange=function(e){var t=n.props.onChange;n.setValue(e.target.value,(function(){n.resizableTextArea.resizeTextarea()})),t&&t(e)},n.handleKeyDown=function(e){var t=n.props,a=t.onPressEnter,r=t.onKeyDown;13===e.keyCode&&a&&a(e),r&&r(e)};var o=void 0===e.value||null===e.value?e.defaultValue:e.value;return n.state={value:o},n}return Object(o.a)(a,[{key:"setValue",value:function(e,t){"value"in this.props||this.setState({value:e},t)}},{key:"blur",value:function(){this.resizableTextArea.textArea.blur()}},{key:"render",value:function(){return c.createElement(R,Object(n.a)({},this.props,{value:this.state.value,onKeyDown:this.handleKeyDown,onChange:this.handleChange,ref:this.saveTextArea}))}}],[{key:"getDerivedStateFromProps",value:function(e){return"value"in e?{value:e.value}:null}}]),a}(c.Component);t.default=P},ZpRC:
|
|
|
/*!*************************************************************************!*\
|
|
|
!*** ./node_modules/scroll-into-view-if-needed/es/index.js + 1 modules ***!
|
|
|
\*************************************************************************/
|
|
|
/*! exports provided: default */
|
|
|
/*! exports used: default */function(e,t,a){"use strict";function n(e){return"object"==typeof e&&null!=e&&1===e.nodeType}function r(e,t){return(!t||"hidden"!==e)&&"visible"!==e&&"clip"!==e}function o(e,t){if(e.clientHeight<e.scrollHeight||e.clientWidth<e.scrollWidth){var a=getComputedStyle(e,null);return r(a.overflowY,t)||r(a.overflowX,t)||function(e){var t=function(e){if(!e.ownerDocument||!e.ownerDocument.defaultView)return null;try{return e.ownerDocument.defaultView.frameElement}catch(e){return null}}(e);return!!t&&(t.clientHeight<e.scrollHeight||t.clientWidth<e.scrollWidth)}(e)}return!1}function i(e,t,a,n,r,o,i,l){return o<e&&i>t||o>e&&i<t?0:o<=e&&l<=a||i>=t&&l>=a?o-e-n:i>t&&l<a||o<e&&l>a?i-t+r:0}var l=function(e,t){var a=window,r=t.scrollMode,l=t.block,c=t.inline,s=t.boundary,u=t.skipOverflowHiddenElements,f="function"==typeof s?s:function(e){return e!==s};if(!n(e))throw new TypeError("Invalid target");for(var d=document.scrollingElement||document.documentElement,p=[],m=e;n(m)&&f(m);){if((m=m.parentElement)===d){p.push(m);break}null!=m&&m===document.body&&o(m)&&!o(document.documentElement)||null!=m&&o(m,u)&&p.push(m)}for(var v=a.visualViewport?a.visualViewport.width:innerWidth,b=a.visualViewport?a.visualViewport.height:innerHeight,h=window.scrollX||pageXOffset,g=window.scrollY||pageYOffset,y=e.getBoundingClientRect(),E=y.height,x=y.width,w=y.top,O=y.right,j=y.bottom,C=y.left,I="start"===l||"nearest"===l?w:"end"===l?j:w+E/2,S="center"===c?C+x/2:"end"===c?O:C,_=[],z=0;z<p.length;z++){var N=p[z],k=N.getBoundingClientRect(),A=k.height,R=k.width,P=k.top,T=k.right,V=k.bottom,D=k.left;if("if-needed"===r&&w>=0&&C>=0&&j<=b&&O<=v&&w>=P&&j<=V&&C>=D&&O<=T)return _;var F=getComputedStyle(N),B=parseInt(F.borderLeftWidth,10),W=parseInt(F.borderTopWidth,10),H=parseInt(F.borderRightWidth,10),q=parseInt(F.borderBottomWidth,10),M=0,L=0,Z="offsetWidth"in N?N.offsetWidth-N.clientWidth-B-H:0,K="offsetHeight"in N?N.offsetHeight-N.clientHeight-W-q:0;if(d===N)M="start"===l?I:"end"===l?I-b:"nearest"===l?i(g,g+b,b,W,q,g+I,g+I+E,E):I-b/2,L="start"===c?S:"center"===c?S-v/2:"end"===c?S-v:i(h,h+v,v,B,H,h+S,h+S+x,x),M=Math.max(0,M+g),L=Math.max(0,L+h);else{M="start"===l?I-P-W:"end"===l?I-V+q+K:"nearest"===l?i(P,V,A,W,q+K,I,I+E,E):I-(P+A/2)+K/2,L="start"===c?S-D-B:"center"===c?S-(D+R/2)+Z/2:"end"===c?S-T+H+Z:i(D,T,R,B,H+Z,S,S+x,x);var X=N.scrollLeft,Y=N.scrollTop;I+=Y-(M=Math.max(0,Math.min(Y+M,N.scrollHeight-A+K))),S+=X-(L=Math.max(0,Math.min(X+L,N.scrollWidth-R+Z)))}_.push({el:N,top:M,left:L})}return _};function c(e){return e===Object(e)&&0!==Object.keys(e).length}t.a=function(e,t){var a=!e.ownerDocument.documentElement.contains(e);if(c(t)&&"function"==typeof t.behavior)return t.behavior(a?[]:l(e,t));if(!a){var n=function(e){return!1===e?{block:"end",inline:"nearest"}:c(e)?e:{block:"start",inline:"nearest"}}(t);return function(e,t){void 0===t&&(t="auto");var a="scrollBehavior"in document.body.style;e.forEach((function(e){var n=e.el,r=e.top,o=e.left;n.scroll&&a?n.scroll({top:r,left:o,behavior:t}):(n.scrollTop=r,n.scrollLeft=o)}))}(l(e,n),n.behavior)}}},bT9E:
|
|
|
/*!*****************************************!*\
|
|
|
!*** ./node_modules/rc-util/es/omit.js ***!
|
|
|
\*****************************************/
|
|
|
/*! exports provided: default */
|
|
|
/*! exports used: default */function(e,t,a){"use strict";a.d(t,"a",(function(){return r}));var n=a(/*! @babel/runtime/helpers/esm/objectSpread2 */"VTBJ");function r(e,t){var a=Object(n.a)({},e);return Array.isArray(t)&&t.forEach((function(e){delete a[e]})),a}},bu1o:
|
|
|
/*!*****************************************************!*\
|
|
|
!*** ./src/pages/Account/Secure/index.less?modules ***!
|
|
|
\*****************************************************/
|
|
|
/*! no static exports found */
|
|
|
/*! exports used: default */
|
|
|
/*! ModuleConcatenation bailout: Module is not an ECMAScript module */function(e,t,a){e.exports={wrap:"wrap___L0XY0",content:"content___1FZI4",hint:"hint___2Mhin",titleWrap:"titleWrap___3-5ea",title:"title___3dpg1",formWrap:"formWrap___1-_oA",row:"row___10m9D",rowBorder:"rowBorder___1KLaz",name:"name___3A1ha",status:"status___jLEgn",description:"description___GYT0j",active:"active___UNwEo",color999:"color999___1O3Pw",colorCDCDCD:"colorCDCDCD___Xw3Dl",colorRed:"colorRed___Tupja",submitButton:"submitButton___1_t-q",buttonWrap:"buttonWrap___Q18CA"}}}]); |