(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["cus-settings"],{"28ae":function(e,t,a){"use strict";a.r(t);var s=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{attrs:{id:"custom_AccountSettings"}},[a("div",{staticClass:"crm-title-box"},[a("div",{staticClass:"tit"},[a("span",[e._v(" "+e._s(e.row.login)+" - "+e._s(e.row.platform)+" - "),1==e.row.type?a("span",{directives:[{name:"t",rawName:"v-t",value:"AccountType.ClassicAccount",expression:"'AccountType.ClassicAccount'"}]}):e._e(),2==e.row.type?a("span",{directives:[{name:"t",rawName:"v-t",value:"AccountType.SeniorAccount",expression:"'AccountType.SeniorAccount'"}]}):e._e(),3==e.row.type?a("span",{directives:[{name:"t",rawName:"v-t",value:"AccountType.AgencyAccount",expression:"'AccountType.AgencyAccount'"}]}):e._e(),5==e.row.type?a("span",{directives:[{name:"t",rawName:"v-t",value:"AccountType.SpeedAccount",expression:"'AccountType.SpeedAccount'"}]}):e._e(),6==e.row.type?a("span",{directives:[{name:"t",rawName:"v-t",value:"AccountType.SpeedAccount",expression:"'AccountType.SpeedAccount'"}]}):e._e(),7==e.row.type?a("span",{directives:[{name:"t",rawName:"v-t",value:"AccountType.StandardAccount",expression:"'AccountType.StandardAccount'"}]}):e._e(),8==e.row.type?a("span",{directives:[{name:"t",rawName:"v-t",value:"AccountType.CentAccount",expression:"'AccountType.CentAccount'"}]}):e._e()])]),a("div",{staticClass:"btn crm-cursor",on:{click:e.backIndex}},[a("i",{staticClass:"el-icon-back"}),a("span",{directives:[{name:"t",rawName:"v-t",value:"Custom.Settings.Title",expression:"'Custom.Settings.Title'"}]})])]),a("div",{staticClass:"main-content"},[a("el-tabs",{attrs:{"tab-position":"left"},on:{"tab-click":e.isTabs},model:{value:e.activeName,callback:function(t){e.activeName=t},expression:"activeName"}},[a("el-tab-pane",{attrs:{label:e.$t("Custom.Settings.TitLever"),name:"2"}},[2==e.activeName?a("el-form",{ref:"params",staticClass:"form",attrs:{model:e.params,rules:e.rules,"label-position":"top"}},[a("el-row",[a("el-col",{attrs:{span:12}},[a("el-form-item",{attrs:{prop:"",label:e.$t("Custom.Settings.OldLeverage")}},[a("el-input",{staticClass:"m-input",attrs:{disabled:""},model:{value:e.row.leverage,callback:function(t){e.$set(e.row,"leverage","string"===typeof t?t.trim():t)},expression:"row.leverage"}})],1)],1),a("el-col",{attrs:{span:12}},[a("el-form-item",{attrs:{prop:"newLeverage",label:e.$t("Custom.Settings.NewLeverage")}},[a("el-select",{staticClass:"crm_select_icon",attrs:{filterable:"",placeholder:e.$t("placeholder.choose")},model:{value:e.params.newLeverage,callback:function(t){e.$set(e.params,"newLeverage",t)},expression:"params.newLeverage"}},e._l(e.options,(function(e,t){return a("el-option",{key:t,attrs:{label:e,value:e}})})),1)],1)],1),a("el-col",{attrs:{span:24}},[a("el-form-item",[a("div",{staticClass:"tips"},[a("div",{directives:[{name:"t",rawName:"v-t",value:"Custom.Settings.Tips",expression:"'Custom.Settings.Tips'"}],staticClass:"title"}),a("div",{directives:[{name:"t",rawName:"v-t",value:"Custom.Settings.Tips1",expression:"'Custom.Settings.Tips1'"}]}),a("div",{directives:[{name:"t",rawName:"v-t",value:"Custom.Settings.Tips2",expression:"'Custom.Settings.Tips2'"}]}),a("div",{directives:[{name:"t",rawName:"v-t",value:"Custom.Settings.Tips3",expression:"'Custom.Settings.Tips3'"}]}),a("div",{directives:[{name:"t",rawName:"v-t",value:"Custom.Settings.Tips4",expression:"'Custom.Settings.Tips4'"}]})])])],1),a("el-col",{attrs:{span:24}},[a("el-form-item",[a("el-button",{directives:[{name:"t",rawName:"v-t",value:"Btn.Confirm",expression:"'Btn.Confirm'"}],staticClass:"s-btn",attrs:{type:"primary"},on:{click:e.updateLeverage}})],1)],1)],1)],1):e._e()],1),0==this.row.close?a("el-tab-pane",{attrs:{label:e.$t("Custom.Settings.TitUpdate"),name:"3"}},[a("div",{staticClass:"search"},[a("span",{directives:[{name:"t",rawName:"v-t",value:"Custom.Settings.LoginPwd",expression:"'Custom.Settings.LoginPwd'"}],staticClass:"crm-cursor",class:{active:"1"==e.pwd},on:{click:function(t){return e.tableSearch("1")}}}),a("span",{directives:[{name:"t",rawName:"v-t",value:"Custom.Settings.InvestorPwd",expression:"'Custom.Settings.InvestorPwd'"}],staticClass:"crm-cursor",class:{active:"2"==e.pwd},on:{click:function(t){return e.tableSearch("2")}}})]),3==e.activeName?a("el-form",{ref:"params",staticClass:"form",attrs:{model:e.params,rules:e.rules,"label-position":"top"}},[a("el-row",[a("el-col",{attrs:{span:12}},[a("el-form-item",{attrs:{prop:"oldPassword",label:1==e.pwd?e.$t("Custom.Settings.LoginPwdOld"):e.$t("Custom.Settings.InvestorPwdOld")}},[a("el-input",{staticClass:"m-input",attrs:{"show-password":"",autocomplete:"off",placeholder:1==e.pwd?e.$t("Custom.Settings.LoginPwdOld"):e.$t("Custom.Settings.InvestorPwdOld")},model:{value:e.params.oldPassword,callback:function(t){e.$set(e.params,"oldPassword","string"===typeof t?t.trim():t)},expression:"params.oldPassword"}})],1)],1),a("el-col",{attrs:{span:12}},[a("el-form-item",{attrs:{prop:"newPassword",label:e.$t("Custom.Settings.NewPwd")}},[a("el-input",{staticClass:"m-input",attrs:{"show-password":"",autocomplete:"off",placeholder:e.$t("Custom.Settings.NewPwd")},model:{value:e.params.newPassword,callback:function(t){e.$set(e.params,"newPassword","string"===typeof t?t.trim():t)},expression:"params.newPassword"}})],1)],1),a("el-col",{attrs:{span:12}},[a("el-form-item",[a("el-button",{directives:[{name:"t",rawName:"v-t",value:"Btn.Confirm",expression:"'Btn.Confirm'"}],staticClass:"s-btn",attrs:{type:"primary"},on:{click:e.updatePwd}})],1)],1),a("el-col",{attrs:{span:12}},[a("el-form-item",[a("ul",{staticClass:"pwd"},[a("li",{directives:[{name:"t",rawName:"v-t",value:"signup.form.rules.1st",expression:"'signup.form.rules.1st'"}],class:{fit:e.rule1}}),a("li",{directives:[{name:"t",rawName:"v-t",value:"signup.form.rules.2nd",expression:"'signup.form.rules.2nd'"}],class:{fit:e.rule2}}),a("li",{directives:[{name:"t",rawName:"v-t",value:"signup.form.rules.4rd",expression:"'signup.form.rules.4rd'"}],class:{fit:e.rule4}})])])],1)],1)],1):e._e()],1):e._e(),0==this.row.close?a("el-tab-pane",{attrs:{label:e.$t("Custom.Settings.TitReset"),name:"4"}},[4==e.activeName?a("el-form",{ref:"params",staticClass:"form",attrs:{model:e.params,rules:e.rules,"label-position":"top"}},[a("el-row",[a("el-col",{attrs:{span:12}},[a("el-form-item",{attrs:{prop:"",label:e.$t("Custom.Settings.Login")}},[a("el-input",{staticClass:"m-input",attrs:{disabled:"",placeholder:e.$t("placeholder.input")},model:{value:e.row.login,callback:function(t){e.$set(e.row,"login","string"===typeof t?t.trim():t)},expression:"row.login"}})],1)],1),a("el-col",{attrs:{span:24}},[a("el-form-item",[a("el-button",{directives:[{name:"t",rawName:"v-t",value:"Btn.ResetPassword",expression:"'Btn.ResetPassword'"}],staticClass:"s-btn",attrs:{type:"primary"},on:{click:e.resetPwd}})],1)],1)],1)],1):e._e()],1):e._e()],1)],1),a("el-dialog",{attrs:{visible:e.dialogCheck,center:"","close-on-click-modal":!1,"show-close":!1,"custom-class":"dialog_header_w"},on:{"update:visible":function(t){e.dialogCheck=t}}},[e.dialogVisible?a("div",{staticClass:"dia-content"},[a("div",{staticClass:"icon"},[a("i",{staticClass:"iconfont iconchenggong"})]),a("div",{directives:[{name:"t",rawName:"v-t",value:"ApplicationDialog.Des1",expression:"'ApplicationDialog.Des1'"}],staticClass:"des1"}),a("div",{directives:[{name:"t",rawName:"v-t",value:"ApplicationDialog.Des11",expression:"'ApplicationDialog.Des11'"}],staticClass:"des2"}),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{directives:[{name:"t",rawName:"v-t",value:"Btn.Confirm",expression:"'Btn.Confirm'"}],attrs:{type:"primary"},on:{click:e.closeDia}}),a("el-button",{directives:[{name:"t",rawName:"v-t",value:"Btn.Cancel",expression:"'Btn.Cancel'"}],on:{click:e.closeDia}})],1)]):e._e(),e.dialogVisible?e._e():a("div",{staticClass:"dia-content"},[a("div",{staticClass:"icon"},[a("i",{staticClass:"iconfont iconjingshi"})]),a("div",{staticClass:"des1"},[e._v(e._s(e.RES))]),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{directives:[{name:"t",rawName:"v-t",value:"Btn.Confirm",expression:"'Btn.Confirm'"}],attrs:{type:"primary"},on:{click:e.closeDia}}),a("el-button",{directives:[{name:"t",rawName:"v-t",value:"Btn.Cancel",expression:"'Btn.Cancel'"}],on:{click:e.closeDia}})],1)])]),a("el-dialog",{attrs:{visible:e.dialogCheckLeverage,center:"","close-on-click-modal":!1,"show-close":!1,"custom-class":"dialog_header_w"},on:{"update:visible":function(t){e.dialogCheckLeverage=t}}},[a("div",{staticClass:"dia-content"},[a("div",{staticClass:"des1"},[a("span",{directives:[{name:"t",rawName:"v-t",value:"Custom.Settings.Tips5",expression:"'Custom.Settings.Tips5'"}]}),a("a",{directives:[{name:"t",rawName:"v-t",value:"Custom.Settings.Tips6",expression:"'Custom.Settings.Tips6'"}],staticStyle:{color:"#dc3545"},attrs:{target:"_blank",href:"https://www."+e.ho+".com/leveragemargin"}})]),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{directives:[{name:"t",rawName:"v-t",value:"Btn.Confirm",expression:"'Btn.Confirm'"}],attrs:{type:"primary"},on:{click:e.toUpdateLeverage}}),a("el-button",{directives:[{name:"t",rawName:"v-t",value:"Btn.Cancel",expression:"'Btn.Cancel'"}],on:{click:function(t){e.dialogCheckLeverage=!1}}})],1)])])],1)},r=[],n=(a("4160"),a("b0c0"),a("a9e3"),a("ac1f"),a("1276"),a("159b"),a("5530")),i=(a("96cf"),a("1da1")),o=a("6df7"),c=a("f121"),l=a.n(c),u=l.a.Code,p={name:"Transfer",computed:{rule1:function(){return!!this.params.newPassword&&/^.{8,16}$/.test(this.params.newPassword)},rule2:function(){return/^(?=.*?[a-z])(?=.*?[A-Z]).*$/.test(this.params.newPassword)},rule4:function(){return/^(?=.*[A-Z])(?=.*[a-z])(?=.*[0-9])(?=.*[~!@&%$^*./\\(\\)\\+\\=#_-])[A-Za-z0-9~!@&%$^*./\\(\\)\\+\\=#_-]{8,16}$/.test(this.params.newPassword)}},data:function(){var e=this;return{ho:"",flag:!1,RES:"",dialogCheck:!1,dialogCheckLeverage:!1,dialogVisible:!1,row:{close:0},activeName:"2",pwd:"1",options:[],params:{currency:"USD"},showData:{},rules:{depositLogin:[{required:!0,message:this.$i18n.t("vaildate.select.empty"),trigger:"change"}],currency:[{required:!0,message:this.$i18n.t("vaildate.select.empty"),trigger:"change"}],oldPassword:[{validator:function(t,a,s){e.Config.Pattern.Password.test(a)?s():s(new Error(e.$i18n.t("vaildate.password.format")))},trigger:"blur"}],newPassword:[{validator:function(t,a,s){/^(?=.*[A-Z])(?=.*[a-z])(?=.*[0-9])(?=.*[~!@&%$^*./\\(\\)\\+\\=#_-])[A-Za-z0-9~!@&%$^*./\\(\\)\\+\\=#_-]{8,16}$/.test(a)?s():s(new Error(e.$i18n.t("vaildate.password.format")))},trigger:"blur"}],password2:[{validator:function(t,a,s){""===a?s(new Error(e.$i18n.t("vaildate.password.again"))):a!==e.params.newPassword?s(new Error(e.$i18n.t("vaildate.password.same"))):s()},trigger:"blur"}],newLeverage:[{required:!0,message:this.$i18n.t("vaildate.leverage.empty"),trigger:"change"}]}}},methods:{closeDia:function(){this.$refs["params"]&&this.$refs["params"].resetFields(),this.dialogCheck=!1,this.dialogVisible=!1},backIndex:function(){this.$router.push({path:"/customer/index"}).catch((function(e){return e}))},getMustData:function(){var e=this;return Object(i["a"])(regeneratorRuntime.mark((function t(){var a,s;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,o["a"].AccountApplyData({type:e.row.type});case 2:a=t.sent,a.code==u.StatusOK?(e.showData=a.data,s="MT4"==e.row.platform?"mt4s":"mt5s",e.showData[s].forEach((function(t){t.currency==e.row.currency&&e.options.push(t.leverage)}))):e.$pigeon.MessageError(a.msg);case 4:case"end":return t.stop()}}),t)})))()},resetPwd:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(){var t=this;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:this.$refs["params"].validate(function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(a){var s;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(!a){e.next=12;break}if(!t.flag){e.next=5;break}return e.abrupt("return");case 5:t.flag=!0;case 6:return e.next=8,o["a"].ResetDealPasswordEmail({login:t.row.login});case 8:s=e.sent,s.code==u.StatusOK?(t.dialogCheck=!0,t.dialogVisible=!0,t.flag=!1):(t.RES=s.msg,t.dialogCheck=!0,t.dialogVisible=!1,t.flag=!1),e.next=13;break;case 12:return e.abrupt("return",!1);case 13:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}());case 1:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}(),updatePwd:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(){var t=this;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:this.$refs["params"].validate(function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(a){var s,r;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(!a){e.next=19;break}if(!t.flag){e.next=5;break}return e.abrupt("return");case 5:t.flag=!0;case 6:if(1!=t.pwd){e.next=13;break}return e.next=9,o["a"].ChangeDealPassword(Object(n["a"])({login:t.row.login},t.params));case 9:s=e.sent,s.code==u.StatusOK?(t.dialogCheck=!0,t.dialogVisible=!0,t.flag=!1):(t.RES=s.msg,t.dialogCheck=!0,t.dialogVisible=!1,t.flag=!1),e.next=17;break;case 13:return e.next=15,o["a"].ChangeInvestorOassword(Object(n["a"])({login:t.row.login},t.params));case 15:r=e.sent,r.code==u.StatusOK?(t.dialogCheck=!0,t.dialogVisible=!0,t.flag=!1):(t.RES=r.msg,t.dialogCheck=!0,t.dialogVisible=!1,t.flag=!1);case 17:e.next=20;break;case 19:return e.abrupt("return",!1);case 20:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}());case 1:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}(),updateInvestorPwd:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(){var t=this;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:this.$refs["params2"].validate(function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(a){var s;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(!a){e.next=12;break}if(!t.flag){e.next=5;break}return e.abrupt("return");case 5:t.flag=!0;case 6:return e.next=8,o["a"].ChangeInvestorOassword(Object(n["a"])({login:t.num},t.params));case 8:s=e.sent,s.code==u.StatusOK?(t.$pigeon.MessageOK(t.$i18n.t("Msg.PwdSuccess")),t.cancel(),t.flag=!1):(t.$pigeon.MessageError(s.msg),t.flag=!1),e.next=13;break;case 12:return e.abrupt("return",!1);case 13:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}());case 1:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}(),updateLeverage:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(){var t=this;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:this.$refs["params"].validate(function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(a){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(!a){e.next=9;break}if(!t.flag){e.next=5;break}return e.abrupt("return");case 5:t.flag=!0;case 6:5==t.row.type?t.dialogCheckLeverage=!0:t.toUpdateLeverage(),e.next=10;break;case 9:return e.abrupt("return",!1);case 10:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}());case 1:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}(),toUpdateLeverage:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(){var t;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return this.dialogCheckLeverage=!1,e.next=3,o["a"].ChangeLeverageAdd(Object(n["a"])({login:this.row.login,oldLeverage:Number(this.row.leverage)},this.params));case 3:t=e.sent,t.code==u.StatusOK?(this.dialogCheck=!0,this.dialogVisible=!0,this.flag=!1):(this.RES=t.msg,this.dialogCheck=!0,this.dialogVisible=!1,this.flag=!1);case 5:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}(),isTabs:function(e){this.activeName=e.name,this.$refs["params"]&&this.$refs["params"].resetFields()},tableSearch:function(e){this.pwd=e}},mounted:function(){this.ho=window.location.host.split(".")[1],this.row.login=this.$route.query.login,this.row.type=this.$route.query.type,this.row.platform=this.$route.query.platform,this.row.currency=this.$route.query.currency,this.row.leverage=this.$route.query.leverage,this.row.close=this.$route.query.close||0,this.getMustData()}},m=p,d=(a("7f28"),a("5299"),a("2877")),v=Object(d["a"])(m,s,r,!1,null,"68fe5dc0",null);t["default"]=v.exports},5299:function(e,t,a){"use strict";var s=a("a234"),r=a.n(s);r.a},5899:function(e,t){e.exports="\t\n\v\f\r                 \u2028\u2029\ufeff"},"58a8":function(e,t,a){var s=a("1d80"),r=a("5899"),n="["+r+"]",i=RegExp("^"+n+n+"*"),o=RegExp(n+n+"*$"),c=function(e){return function(t){var a=String(s(t));return 1&e&&(a=a.replace(i,"")),2&e&&(a=a.replace(o,"")),a}};e.exports={start:c(1),end:c(2),trim:c(3)}},7156:function(e,t,a){var s=a("861d"),r=a("d2bb");e.exports=function(e,t,a){var n,i;return r&&"function"==typeof(n=t.constructor)&&n!==a&&s(i=n.prototype)&&i!==a.prototype&&r(e,i),e}},"7f28":function(e,t,a){"use strict";var s=a("cb7c"),r=a.n(s);r.a},a234:function(e,t,a){},a9e3:function(e,t,a){"use strict";var s=a("83ab"),r=a("da84"),n=a("94ca"),i=a("6eeb"),o=a("5135"),c=a("c6b6"),l=a("7156"),u=a("c04e"),p=a("d039"),m=a("7c73"),d=a("241c").f,v=a("06cf").f,g=a("9bf2").f,f=a("58a8").trim,w="Number",h=r[w],b=h.prototype,C=c(m(b))==w,x=function(e){var t,a,s,r,n,i,o,c,l=u(e,!1);if("string"==typeof l&&l.length>2)if(l=f(l),t=l.charCodeAt(0),43===t||45===t){if(a=l.charCodeAt(2),88===a||120===a)return NaN}else if(48===t){switch(l.charCodeAt(1)){case 66:case 98:s=2,r=49;break;case 79:case 111:s=8,r=55;break;default:return+l}for(n=l.slice(2),i=n.length,o=0;or)return NaN;return parseInt(n,s)}return+l};if(n(w,!h(" 0o1")||!h("0b1")||h("+0x1"))){for(var y,k=function(e){var t=arguments.length<1?0:e,a=this;return a instanceof k&&(C?p((function(){b.valueOf.call(a)})):c(a)!=w)?l(new h(x(t)),a,k):x(t)},S=s?d(h):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger".split(","),N=0;S.length>N;N++)o(h,y=S[N])&&!o(k,y)&&g(k,y,v(h,y));k.prototype=b,b.constructor=k,i(r,w,k)}},cb7c:function(e,t,a){}}]);