text: (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([[4],{"0evu":function(e,t,a){e.exports={main:"antd-pro-pages-account-settings-info-main",leftmenu:"antd-pro-pages-account-settings-info-leftmenu",right:"antd-pro-pages-account-settings-info-right",title:"antd-pro-pages-account-settings-info-title"}},"N01/":function(e,t,a){"use strict";a.r(t);var n,i,s,r=a("2Taf"),o=a.n(r),c=a("vZ4D"),u=a.n(c),p=a("l4Ni"),l=a.n(p),m=a("ujKo"),g=a.n(m),d=a("MhPg"),f=a.n(d),v=(a("lUTK"),a("BvKs")),h=a("q1tI"),y=a.n(h),M=a("MuoO"),w=a("usdK"),E=a("LLXN"),b=a("v99g"),O=a("0evu"),k=a.n(O),j=v["a"].Item,N=(n=Object(M["connect"])(function(e){var t=e.user;return{currentUser:t.currentUser}}),n((s=function(e){function t(e){var a;o()(this,t),a=l()(this,g()(t).call(this,e)),a.getmenu=function(){var e=a.state.menuMap;return Object.keys(e).map(function(t){return y.a.createElement(j,{key:t},e[t])})},a.getRightTitle=function(){var e=a.state,t=e.selectKey,n=e.menuMap;return n[t]},a.selectKey=function(e){var t=e.key;w["a"].push("/account/settings/".concat(t)),a.setState({selectKey:t})},a.resize=function(){a.main&&requestAnimationFrame(function(){var e="inline",t=a.main.offsetWidth;a.main.offsetWidth<641&&t>400&&(e="horizontal"),window.innerWidth<768&&t>400&&(e="horizontal"),a.setState({mode:e})})};var n=e.match,i=e.location,s={base:y.a.createElement(E["FormattedMessage"],{id:"app.settings.menuMap.basic",defaultMessage:"Basic Settings"})},r=i.pathname.replace("".concat(n.path,"/"),"");return a.state={mode:"inline",menuMap:s,selectKey:s[r]?r:"base"},a}return f()(t,e),u()(t,[{key:"componentDidMount",value:function(){window.addEventListener("resize",this.resize),this.resize()}},{key:"componentWillUnmount",value:function(){window.removeEventListener("resize",this.resize)}},{key:"render",value:function(){var e=this,t=this.props,a=t.children,n=t.currentUser;if(!n.userid)return"";var i=this.state,s=i.mode,r=i.selectKey;return y.a.createElement(b["a"],null,y.a.createElement("div",{className:k.a.main,ref:function(t){e.main=t}},y.a.createElement("div",{className:k.a.leftmenu},y.a.createElement(v["a"],{mode:s,selectedKeys:[r],onClick:this.selectKey},this.getmenu())),y.a.createElement("div",{className:k.a.right},y.a.createElement("div",{className:k.a.title},this.getRightTitle()),a)))}}],[{key:"getDerivedStateFromProps",value:function(e,t){var a=e.match,n=e.location,i=n.pathname.replace("".concat(a.path,"/"),"");return i=t.menuMap[i]?i:"base",i!==t.selectKey?{selectKey:i}:null}}]),t}(h["Component"]),i=s))||i);t["default"]=N},VGLV:function(e,t,a){e.exports={row:"antd-pro-pages-account-settings-geographic-view-row",item:"antd-pro-pages-account-settings-geographic-view-item"}},a4KE:function(e,t,a){"use strict";a.r(t);a("Mwp2");var n=a("VXEj"),i=a("2Taf"),s=a.n(i),r=a("vZ4D"),o=a.n(r),c=a("l4Ni"),u=a.n(c),p=a("ujKo"),l=a.n(p),m=a("MhPg"),g=a.n(m),d=a("q1tI"),f=a.n(d),v=a("LLXN"),h={strong:f.a.createElement("font",{className:"strong"},f.a.createElement(v["FormattedMessage"],{id:"app.settings.security.strong",defaultMessage:"Strong"})),medium:f.a.createElement("font",{className:"medium"},f.a.createElement(v["FormattedMessage"],{id:"app.settings.security.medium",defaultMessage:"Medium"})),weak:f.a.createElement("font",{className:"weak"},f.a.createElement(v["FormattedMessage"],{id:"app.settings.security.weak",defaultMessage:"Weak"}),"Weak")},y=function(e){function t(){var e,a;s()(this,t);for(var n=arguments.length,i=new Array(n),r=0;r<n;r++)i[r]=arguments[r];return a=u()(this,(e=l()(t)).call.apply(e,[this].concat(i))),a.getData=function(){return[{title:Object(v["formatMessage"])({id:"app.settings.security.password"},{}),description:f.a.createElement(d["Fragment"],null,Object(v["formatMessage"])({id:"app.settings.security.password-description"}),"\uff1a",h.strong),actions:[f.a.createElement("a",null,f.a.createElement(v["FormattedMessage"],{id:"app.settings.security.modify",defaultMessage:"Modify"}))]},{title:Object(v["formatMessage"])({id:"app.settings.security.phone"},{}),description:"".concat(Object(v["formatMessage"])({id:"app.settings.security.phone-description"},{}),"\uff1a138****8293"),actions:[f.a.createElement("a",null,f.a.createElement(v["FormattedMessage"],{id:"app.settings.security.modify",defaultMessage:"Modify"}))]},{title:Object(v["formatMessage"])({id:"app.settings.security.question"},{}),description:Object(v["formatMessage"])({id:"app.settings.security.question-description"},{}),actions:[f.a.createElement("a",null,f.a.createElement(v["FormattedMessage"],{id:"app.settings.security.set",defaultMessage:"Set"}))]},{title:Object(v["formatMessage"])({id:"app.settings.security.email"},{}),description:"".concat(Object(v["formatMessage"])({id:"app.settings.security.email-description"},{}),"\uff1aant***sign.com"),actions:[f.a.createElement("a",null,f.a.createElement(v["FormattedMessage"],{id:"app.settings.security.modify",defaultMessage:"Modify"}))]},{title:Object(v["formatMessage"])({id:"app.settings.security.mfa"},{}),description:Object(v["formatMessage"])({id:"app.settings.security.mfa-description"},{}),actions:[f.a.createElement("a",null,f.a.createElement(v["FormattedMessage"],{id:"app.settings.security.bind",defaultMessage:"Bind"}))]}]},a}return g()(t,e),o()(t,[{key:"render",value:function(){return f.a.createElement(d["Fragment"],null,f.a.createElement(n["a"],{itemLayout:"horizontal",dataSource:this.getData(),renderItem:function(e){return f.a.createElement(n["a"].Item,{actions:e.actions},f.a.createElement(n["a"].Item.Meta,{title:e.title,description:e.description}))}}))}}]),t}(d["Component"]);t["default"]=y},dzOB:function(e,t,a){"use strict";a.r(t);var n,i,s,r,o,c,u,p=a("2Taf"),l=a.n(p),m=a("vZ4D"),g=a.n(m),d=a("l4Ni"),f=a.n(d),v=a("ujKo"),h=a.n(v),y=a("MhPg"),M=a.n(y),w=(a("DZo9"),a("8z0m"),a("+L6B"),a("2/Rp"),a("fOrg"),a("+KLJ")),E=(a("OaEy"),a("2fM7")),b=(a("y8nQ"),a("Vl3Y")),O=a("q1tI"),k=a.n(O),j=(a("LLXN"),a("TUpT")),N=a("MuoO"),V=a("gJV7"),F=a.n(V),I=(a("T2oS"),a("W9HT")),K=a("VGLV"),L=a.n(K),C=E["a"].Option,D={label:"",key:""},z=(n=Object(N["connect"])(function(e){var t=e.geographic,a=t.province,n=t.isLoading,i=t.city;return{province:a,city:i,isLoading:n}}),n((s=function(e){function t(){var e,a;l()(this,t);for(var n=arguments.length,i=new Array(n),s=0;s<n;s++)i[s]=arguments[s];return a=f()(this,(e=h()(t)).call.apply(e,[this].concat(i))),a.componentDidMount=function(){var e=a.props.dispatch;e({type:"geographic/fetchProvince"})},a.getCityOption=function(){var e=a.props.city;return a.getOption(e)},a.getOption=function(e){return!e||e.length<1?k.a.createElement(C,{key:0,value:0},"\u6ca1\u6709\u627e\u5230\u9009\u9879"):e.map(function(e){return k.a.createElement(C,{key:e.id,value:e.id},e.name)})},a.selectProvinceItem=function(e){var t=a.props,n=t.dispatch,i=t.onChange;n({type:"geographic/fetchCity",payload:e.key}),i({province:e,city:D})},a.selectCityItem=function(e){var t=a.props,n=t.value,i=t.onChange;i({province:n.province,city:e})},a}return M()(t,e),g()(t,[{key:"componentDidUpdate",value:function(e){var t=this.props,a=t.dispatch,n=t.value;!e.value&&n&&n.province&&a({type:"geographic/fetchCity",payload:n.province.key})}},{key:"getProvinceOption",value:function(){var e=this.props.province;return this.getOption(e)}},{key:"conversionObject",value:function(){var e=this.props.value;if(!e)return{province:D,city:D};var t=e.province,a=e.city;return{province:t||D,city:a||D}}},{key:"render",value:function(){var e=this.conversionObject(),t=e.province,a=e.city,n=this.props.isLoading;return k.a.createElement(I["a"],{spinning:n,wrapperClassName:L.a.row},k.a.createElement(E["a"],{className:L.a.item,value:t,labelInValue:!0,showSearch:!0,onSelect:this.selectProvinceItem},this.getProvinceOption()),k.a.createElement(E["a"],{className:L.a.item,value:a,labelInValue:!0,showSearch:!0,onSelect:this.selectCityItem},this.getCityOption()))}}]),t}(O["PureComponent"]),i=s)),a("5NDa"),a("5rEg")),S=a("uy6Z"),U=a.n(S),P=(O["PureComponent"],b["a"].Item,E["a"].Option,Object(j["a"])("user"),k.a.createElement(w["a"],{message:"No permission.",type:"error",showIcon:!0}),r=Object(N["connect"])(function(e){var t=e.user;return{currentUser:t.currentUser}}),o=b["a"].create(),r(c=o((u=function(e){function t(){var e,a;l()(this,t);for(var n=arguments.length,i=new Array(n),s=0;s<n;s++)i[s]=arguments[s];return a=f()(this,(e=h()(t)).call.apply(e,[this].concat(i))),a.setBaseInfo=function(){var e=a.props,t=e.currentUser,n=e.form;Object.keys(n.getFieldsValue()).forEach(function(e){var a={};a[e]=t[e]||null,n.setFieldsValue(a)})},a.getViewDom=function(e){a.view=e},a}return M()(t,e),g()(t,[{key:"componentDidMount",value:function(){this.setBaseInfo()}},{key:"getAvatarURL",value:function(){var e=this.props.currentUser;if(e.avatar)return e.avatar;var t="https://gw.alipayobjects.com/zos/antfincdn/XAosXuNZyF/BiazfanxmamNRoxxVxka.png";return t}},{key:"render",value:function(){this.props.form.getFieldDecorator;return k.a.createElement("div",{className:F.a.baseView,ref:this.getViewDom},k.a.createElement("div",{className:F.a.left}))}}]),t}(O["Component"]),c=u))||c)||c);t["default"]=P},gJV7:function(e,t,a){e.exports={baseView:"antd-pro-pages-account-settings-base-view-baseView",left:"antd-pro-pages-account-settings-base-view-left",right:"antd-pro-pages-account-settings-base-view-right",avatar_title:"antd-pro-pages-account-settings-base-view-avatar_title",avatar:"antd-pro-pages-account-settings-base-view-avatar",button_view:"antd-pro-pages-account-settings-base-view-button_view"}},uy6Z:function(e,t,a){e.exports={area_code:"antd-pro-pages-account-settings-phone-view-area_code",phone_number:"antd-pro-pages-account-settings-phone-view-phone_number"}}}]);