(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["cus-index"],{"0e9c":function(t,e,a){},"23d6":function(t,e,a){"use strict";a.r(e);var s=function(){var t=this,e=t._self._c;return e("div",{staticClass:"views",attrs:{id:"custom_index"}},[e("div",{staticClass:"chartSetting",class:{active:t.isChart}},[e("div",[e("i",{staticClass:"el-icon-close crm-cursor",on:{click:function(e){t.isChart=!1}}})]),e("div",{staticClass:"tit"},[e("span",{directives:[{name:"t",rawName:"v-t",value:"Custom.Index.ChartSet",expression:"'Custom.Index.ChartSet'"}]})]),e("el-form",{ref:"form",staticClass:"form",attrs:{model:t.ChartSet,"label-width":"0","label-position":"top"}},[e("el-form-item",{attrs:{label:t.$t("Label.ChartType")}},[e("el-select",{staticClass:"crm_select_icon_w",attrs:{filterable:"",placeholder:t.$t("placeholder.choose")},model:{value:t.ChartSet.type,callback:function(e){t.$set(t.ChartSet,"type",e)},expression:"ChartSet.type"}},[e("el-option",{attrs:{label:t.$t("Custom.Index.TradingVolumeStatistics"),value:4}}),e("el-option",{attrs:{label:t.$t("Custom.Index.DepositStatistical"),value:2}}),e("el-option",{attrs:{label:t.$t("Custom.Index.WithdrawalsStatistical"),value:3}}),e("el-option",{attrs:{label:t.$t("Custom.Index.ProfitLoss"),value:6}})],1)],1),e("el-form-item",{attrs:{label:t.$t("Label.PlatformType")}},[e("el-select",{staticClass:"crm_select_icon_w",attrs:{filterable:"",placeholder:t.$t("placeholder.choose")},model:{value:t.ChartSet.platform,callback:function(e){t.$set(t.ChartSet,"platform",e)},expression:"ChartSet.platform"}},[e("el-option",{attrs:{label:"MT4",value:"MT4"}}),e("el-option",{attrs:{label:"MT5",value:"MT5"}})],1)],1),e("el-form-item",{attrs:{label:t.$t("Label.TradingAccount")}},[e("el-select",{staticClass:"crm_select_icon_w",attrs:{filterable:"",placeholder:t.$t("placeholder.choose")},model:{value:t.ChartSet.login,callback:function(e){t.$set(t.ChartSet,"login",e)},expression:"ChartSet.login"}},t._l(t.dropDown,(function(t){return e("el-option",{key:t.login,attrs:{label:t.login,value:t.login}})})),1)],1),e("el-form-item",[e("el-button",{directives:[{name:"t",rawName:"v-t",value:"Btn.Confirm",expression:"'Btn.Confirm'"}],staticClass:"s-btn",attrs:{type:"primary"},on:{click:t.getChart}})],1)],1)],1),e("div",{staticClass:"account-summary"},[e("el-row",[e("el-col",{attrs:{span:12}},[e("div",{staticClass:"custom-number"},[e("div",{staticClass:"title"},[e("div",{staticStyle:{display:"flex","align-items":"center"}},[e("img",{staticStyle:{width:"16px"},attrs:{src:a("8868"),alt:""}}),e("span",{directives:[{name:"t",rawName:"v-t",value:"wallet.item4",expression:"'wallet.item4'"}],staticClass:"tit"})])]),e("div",{staticClass:"content"},[e("div",{staticClass:"con crm-cursor"},[e("div",{staticClass:"num"},[t._v("CID:"+t._s(t.cId))])])])])]),e("el-col",{attrs:{span:12}},[e("div",{staticClass:"custom-money"},[e("div",{staticClass:"title"},[e("div",[e("i",{staticClass:"icon iconfont iconwallet"}),e("span",{directives:[{name:"t",rawName:"v-t",value:"wallet.item5",expression:"'wallet.item5'"}],staticClass:"tit"})]),e("div",[e("el-dropdown",{attrs:{trigger:"click"},on:{command:t.handleCommand}},[e("i",{staticClass:"el-icon-more crm-cursor"}),e("el-dropdown-menu",{attrs:{slot:"dropdown"},slot:"dropdown"},[e("el-dropdown-item",{attrs:{command:"1"}},[e("span",{directives:[{name:"t",rawName:"v-t",value:"wallet.item6",expression:"'wallet.item6'"}]})]),e("el-dropdown-item",{attrs:{command:"2"}},[e("span",{directives:[{name:"t",rawName:"v-t",value:"wallet.item7",expression:"'wallet.item7'"}]})])],1)],1)],1)]),e("div",{staticClass:"content"},[e("div",{staticClass:"con"},[e("div",{staticClass:"num"},[t._v(" $ "),e("span",[t._v(t._s(t._f("NumberFormat")(t._f("NumberDecimal")(t.walletbalance||"0"))))])])]),e("div",{staticClass:"con crm-cursor",on:{click:t.toPaymentHistory}},[e("div",{staticClass:"num pending-withdraw"},[t._v(" $ "),e("span",[t._v(t._s(t._f("NumberFormat")(t._f("NumberDecimal")(t.pendingWithdrawAmount||"0"))))])]),e("div",{directives:[{name:"t",rawName:"v-t",value:"wallet.pendingWithdraw",expression:"'wallet.pendingWithdraw'"}],staticClass:"des"})])])])])],1)],1),e("div",{staticClass:"accounts"},[e("div",{staticClass:"account-top crm-title-box"},[e("span",{staticClass:"tit"},[e("span",{directives:[{name:"t",rawName:"v-t",value:"Custom.Index.AccountList",expression:"'Custom.Index.AccountList'"}]})]),e("span",{staticClass:"btn crm-cursor",on:{click:t.toNewAccount}},[e("i",{staticClass:"el-icon-plus"}),e("span",{directives:[{name:"t",rawName:"v-t",value:"Custom.Index.AddAccount",expression:"'Custom.Index.AddAccount'"}]})])]),e("div",{staticClass:"search-container"},[e("div",{staticClass:"search"},[e("span",{staticClass:"crm-cursor",class:{active:"MT4"==t.platform},on:{click:function(e){return t.tableSearch("MT4")}}},[t._v("MT4")]),e("span",{staticClass:"crm-cursor",class:{active:"MT5"==t.platform},on:{click:function(e){return t.tableSearch("MT5")}}},[t._v("MT5")])]),e("div",{staticClass:"delete-account"},[e("el-button",{attrs:{type:"danger",size:"small"},on:{click:t.showDeleteDialog}},[e("i",{staticClass:"el-icon-delete"}),e("span",{directives:[{name:"t",rawName:"v-t",value:"Tips.DeleteAccount",expression:"'Tips.DeleteAccount'"}]})])],1)]),e("div",{staticClass:"tab"},[e("div",{directives:[{name:"loading",rawName:"v-loading",value:t.pictLoading,expression:"pictLoading"}],staticClass:"account-card-list",attrs:{"element-loading-background":"rgba(43, 48, 67, 0.05)","element-loading-spinner":"el-icon-loading"}},[t.pictLoading||t.tableData.length?t._e():e("div",{staticClass:"account-card-list__empty"},[e("span",{directives:[{name:"t",rawName:"v-t",value:"placeholder.Not",expression:"'placeholder.Not'"}]})]),t._l(t.tableData,(function(a){return e("div",{key:String(a.login)+"-"+(a.platform||t.platform),staticClass:"account-card"},[e("div",{staticClass:"account-card__row account-card__row--head"},[e("div",{staticClass:"account-card__head-left"},[e("span",{staticClass:"account-card__login"},[t._v(t._s(a.login||"—"))]),1==a.del?e("el-popover",{attrs:{placement:"top",trigger:"hover"}},[e("div",[t._v(" "+t._s(t.$t("Tips.item1"))),e("span",{staticStyle:{color:"red"}},[t._v(t._s(a.markDelTime))]),t._v(t._s(t.$t("Tips.item2"))+" ")]),e("i",{staticClass:"el-icon-error account-card__state-icon",style:{color:"#F56C6C",cursor:"pointer"},attrs:{slot:"reference"},slot:"reference"})]):e("el-tooltip",{attrs:{effect:"dark",content:t.$t("Tips.item3"),placement:"top"}},[e("i",{staticClass:"el-icon-success account-card__state-icon",style:{color:"#67C23A",cursor:"pointer"}})]),1!=a.del?e("el-tag",{staticClass:"account-card__tag",attrs:{size:"small",effect:"plain",type:"success"}},[t._v(t._s(t.$t("Blockchain.enabled")))]):t._e(),e("el-tag",{staticClass:"account-card__tag account-card__tag--platform",attrs:{size:"small",effect:"plain",type:"info"},nativeOn:{click:function(e){return t.copyPlatformServer(a)}}},[t._v(t._s(t.platformWithServer(a)))]),a.groupName?e("el-tag",{staticClass:"account-card__tag",attrs:{size:"small",effect:"plain",type:"info"}},[t._v(t._s(a.groupName))]):t._e(),t.accountTypeText(a)?e("el-tag",{staticClass:"account-card__tag account-card__tag--type",attrs:{size:"small",effect:"plain",type:"info"}},[t._v(t._s(t.accountTypeText(a)))]):t._e()],1),e("div",{staticClass:"account-card__actions tab-act-btn"},[t.closeFunctionOpen(a,"1")?e("span",{staticClass:"crm-font-btn",on:{click:function(e){return t.toDeposit(a)}}},[e("i",{staticClass:"el-icon-arrow-right"}),e("span",{directives:[{name:"t",rawName:"v-t",value:"Custom.Index.Deposit",expression:"'Custom.Index.Deposit'"}]})]):e("span",{staticClass:"crm-font-btn",on:{click:t.tips}},[e("i",{staticClass:"el-icon-arrow-right",staticStyle:{opacity:"0.6 !important"}}),e("span",{directives:[{name:"t",rawName:"v-t",value:"Custom.Index.Deposit",expression:"'Custom.Index.Deposit'"}],staticStyle:{color:"#909399",opacity:"1 !important"}})]),t.closeFunctionOpen(a,"2")?e("span",{staticClass:"crm-font-btn",on:{click:function(e){return t.toWithdraw(a)}}},[e("i",{staticClass:"el-icon-arrow-left"}),e("span",{directives:[{name:"t",rawName:"v-t",value:"Custom.Index.Withdrawals",expression:"'Custom.Index.Withdrawals'"}]})]):e("span",{staticClass:"crm-font-btn",on:{click:t.tips}},[e("i",{staticClass:"el-icon-arrow-left",staticStyle:{opacity:"0.6 !important"}}),e("span",{directives:[{name:"t",rawName:"v-t",value:"Custom.Index.Withdrawals",expression:"'Custom.Index.Withdrawals'"}],staticStyle:{color:"#909399",opacity:"1 !important"}})]),t.closeFunctionOpen(a,"5")&&t.closeFunctionOpen(a,"6")&&t.closeFunctionOpen(a,"3")?e("span",{staticClass:"crm-font-btn",on:{click:function(e){return t.toTransfer(a)}}},[e("i",{staticClass:"el-icon-sort"}),e("span",{directives:[{name:"t",rawName:"v-t",value:"Custom.Index.Transfer",expression:"'Custom.Index.Transfer'"}]})]):e("span",{staticClass:"crm-font-btn",on:{click:t.tips}},[e("i",{staticClass:"el-icon-sort",staticStyle:{opacity:"0.6 !important"}}),e("span",{directives:[{name:"t",rawName:"v-t",value:"Custom.Index.Transfer",expression:"'Custom.Index.Transfer'"}],staticStyle:{color:"#909399",opacity:"1 !important"}})]),e("span",{staticClass:"crm-font-btn",on:{click:function(e){return t.toSettings(a)}}},[e("i",{staticClass:"el-icon-setting"}),e("span",{directives:[{name:"t",rawName:"v-t",value:"Custom.Index.Settings",expression:"'Custom.Index.Settings'"}]})]),7==a.type?e("span",{staticClass:"crm-font-btn",on:{click:function(e){return t.toStandardRebate(a)}}},[e("i",{staticClass:"el-icon-s-order"}),e("span",{directives:[{name:"t",rawName:"v-t",value:"standardRebate.item1",expression:"'standardRebate.item1'"}]})]):t._e()])]),e("div",{staticClass:"account-card__row account-card__row--metrics"},[e("div",{staticClass:"account-card__metric account-card__metric--equity"},[e("span",{staticClass:"account-card__metric-label"},[t._v(t._s(t.$t("Label.Equity")))]),e("span",{staticClass:"account-card__metric-value"},[t._v(t._s(a.equityWithSymbol||"0"))])]),e("div",{staticClass:"account-card__metric"},[e("span",{staticClass:"account-card__metric-label"},[t._v(t._s(t.$t("Label.Currency")))]),e("span",{staticClass:"account-card__metric-value"},[t._v(t._s(a.currency||"—"))])]),e("div",{staticClass:"account-card__metric"},[e("span",{staticClass:"account-card__metric-label"},[t._v(t._s(t.$t("Label.Balance")))]),e("span",{staticClass:"account-card__metric-value"},[t._v(t._s(a.balanceWithSymbol||"0"))])]),e("div",{staticClass:"account-card__metric"},[e("span",{staticClass:"account-card__metric-label"},[t._v(t._s(t.$t("Label.Credit")))]),e("span",{staticClass:"account-card__metric-value"},[t._v(t._s(a.creditWithSymbol||"0"))])]),e("div",{staticClass:"account-card__metric"},[e("span",{staticClass:"account-card__metric-label"},[t._v(t._s(t.$t("Label.Leverage")))]),e("span",{staticClass:"account-card__metric-value"},[a.leverage?[t._v("1:"+t._s(a.leverage))]:[t._v("—")]],2)]),e("div",{staticClass:"account-card__metric"},[e("span",{staticClass:"account-card__metric-label"},[t._v(t._s(t.$t("Label.FloatingPL")))]),e("span",{staticClass:"account-card__metric-value"},[t._v(t._s(t.formatFloatingDisplay(a)))])])])])}))],2),t.pagerInfo.rowTotal?e("div",{staticClass:"crm_pagination"},[e("el-pagination",{staticClass:"page",attrs:{background:"",layout:"prev, pager, next","page-size":10,total:t.pagerInfo.rowTotal},on:{"current-change":t.handleCurrentChange}})],1):t._e()])]),e("div",{staticClass:"chart-box crm-border-radius"},[e("div",{staticClass:"chart-title"},[e("div",{staticClass:"time",on:{click:t.toReload}},[e("i",{staticClass:"el-icon-refresh crm-cursor"}),e("span",{staticClass:"crm-cursor"},[t._v(" GMT+3 "+t._s(t.time))])]),e("div",{staticClass:"title"},[e("div",{staticClass:"name"},[4==t.ChartSet.type?e("span",{directives:[{name:"t",rawName:"v-t",value:"Custom.Index.TradingVolumeStatistics",expression:"'Custom.Index.TradingVolumeStatistics'"}]}):t._e(),2==t.ChartSet.type?e("span",{directives:[{name:"t",rawName:"v-t",value:"Custom.Index.DepositStatistical",expression:"'Custom.Index.DepositStatistical'"}]}):t._e(),3==t.ChartSet.type?e("span",{directives:[{name:"t",rawName:"v-t",value:"Custom.Index.WithdrawalsStatistical",expression:"'Custom.Index.WithdrawalsStatistical'"}]}):t._e(),6==t.ChartSet.type?e("span",{directives:[{name:"t",rawName:"v-t",value:"Custom.Index.ProfitLoss",expression:"'Custom.Index.ProfitLoss'"}]}):t._e()]),t.ChartSet.login?e("div",{staticClass:"account"},[e("span",{directives:[{name:"t",rawName:"v-t",value:"Custom.Index.TradingAccount",expression:"'Custom.Index.TradingAccount'"}]}),e("span",[t._v(" — ")]),e("span",[t._v(t._s(t.ChartSet.login))])]):t._e(),e("div",{staticClass:"date"},[e("el-date-picker",{attrs:{type:"daterange",size:"small","unlink-panels":"","value-format":"yyyy-MM-dd","range-separator":"—","start-placeholder":t.$t("placeholder.Start"),"end-placeholder":t.$t("placeholder.End")},on:{change:t.getSearchDate},model:{value:t.isDate,callback:function(e){t.isDate=e},expression:"isDate"}})],1)]),e("div",{staticClass:"operation"},[e("span",{directives:[{name:"t",rawName:"v-t",value:"Custom.Index.Parameter",expression:"'Custom.Index.Parameter'"}],staticStyle:{"font-size":"14px"}}),e("i",{staticClass:"iconfont iconcanshu crm-cursor",on:{click:function(e){t.isChart=!0}}})])]),e("div",{attrs:{id:"myChart"}})]),e("el-dialog",{attrs:{visible:t.dialogCheck,center:"","show-close":!1,"custom-class":"dialog_header_w"},on:{"update:visible":function(e){t.dialogCheck=e}}},[e("div",{staticClass:"dia-content"},[e("div",{directives:[{name:"t",rawName:"v-t",value:"Home.msg.content1",expression:"'Home.msg.content1'"}],staticClass:"des1"}),e("div",{staticClass:"icon"},[e("i",{staticClass:"iconfont iconziliaobuchong",staticStyle:{"font-size":"60px"}})]),e("div",{directives:[{name:"t",rawName:"v-t",value:"Home.msg.content2",expression:"'Home.msg.content2'"}],staticClass:"des2"}),e("div",{directives:[{name:"t",rawName:"v-t",value:"Home.msg.content3",expression:"'Home.msg.content3'"}],staticClass:"des2"}),e("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[e("el-button",{directives:[{name:"t",rawName:"v-t",value:"Btn.Cancel",expression:"'Btn.Cancel'"}],on:{click:function(e){t.dialogCheck=!1}}}),e("el-button",{directives:[{name:"t",rawName:"v-t",value:"Home.msg.btnImmediately",expression:"'Home.msg.btnImmediately'"}],attrs:{type:"primary"},on:{click:t.immediately}})],1)])]),e("el-dialog",{attrs:{title:t.$t("Tips.DeleteAccount"),visible:t.deleteDialogVisible,width:"50%","before-close":t.handleClose},on:{"update:visible":function(e){t.deleteDialogVisible=e}}},[e("div",{staticClass:"delete-account-list",staticStyle:{height:"40vh","overflow-y":"auto"}},[e("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.deleteLoading,expression:"deleteLoading"}],staticStyle:{width:"100%"},attrs:{data:t.tableData1}},[e("el-table-column",{attrs:{prop:"login",label:t.$t("Label.TradingAccount"),align:"center"}}),e("el-table-column",{attrs:{prop:"platform",label:t.$t("Label.PlatformType"),align:"center"}}),e("el-table-column",{attrs:{prop:"type",label:t.$t("Label.AccountType"),align:"center"},scopedSlots:t._u([{key:"default",fn:function(a){return[1==a.row.type?e("span",{directives:[{name:"t",rawName:"v-t",value:"AccountType.ClassicAccount",expression:"'AccountType.ClassicAccount'"}]}):t._e(),2==a.row.type?e("span",{directives:[{name:"t",rawName:"v-t",value:"AccountType.SeniorAccount",expression:"'AccountType.SeniorAccount'"}]}):t._e(),3!=a.row.type||t.isAfterJuly28()?t._e():e("span",{directives:[{name:"t",rawName:"v-t",value:"AccountType.AgencyAccount",expression:"'AccountType.AgencyAccount'"}]}),5==a.row.type?e("span",{directives:[{name:"t",rawName:"v-t",value:"AccountType.SpeedAccount",expression:"'AccountType.SpeedAccount'"}]}):t._e(),6==a.row.type?e("span",{directives:[{name:"t",rawName:"v-t",value:"AccountType.SpeedAccount",expression:"'AccountType.SpeedAccount'"}]}):t._e(),7==a.row.type?e("span",{directives:[{name:"t",rawName:"v-t",value:"AccountType.StandardAccount",expression:"'AccountType.StandardAccount'"}]}):t._e(),8==a.row.type?e("span",{directives:[{name:"t",rawName:"v-t",value:"AccountType.CentAccount",expression:"'AccountType.CentAccount'"}]}):t._e()]}}])}),e("el-table-column",{attrs:{align:"center",label:t.$t("Label.Action"),width:"220"},scopedSlots:t._u([{key:"default",fn:function(a){return[e("el-button",{attrs:{type:"danger",size:"small"},on:{click:function(e){return t.doDetail(a.row)}}},[t._v(t._s(t.$t("Tips.TransactionRecord")))])]}}])})],1)],1),t.pagerInfo1.rowTotal?e("div",{staticClass:"crm_pagination"},[e("el-pagination",{staticClass:"page",attrs:{background:"",layout:"prev, pager, next","page-size":t.pagerInfo1.row,total:t.pagerInfo1.rowTotal},on:{"current-change":t.handleCurrentChange1}})],1):t._e()]),e("el-dialog",{attrs:{title:t.$t("Tips.TransactionRecord"),visible:t.transactionDialogVisible,width:"50%","before-close":t.handleTransactionClose},on:{"update:visible":function(e){t.transactionDialogVisible=e}}},[e("div",{staticClass:"transaction-history-list",staticStyle:{height:"40vh","overflow-y":"auto"}},[e("div",{staticClass:"date-filter"},[e("el-date-picker",{attrs:{type:"daterange",size:"small","unlink-panels":"","value-format":"yyyy-MM-dd","range-separator":"—","picker-options":t.pickerOptions,"start-placeholder":t.$t("placeholder.Start"),"end-placeholder":t.$t("placeholder.End")},model:{value:t.transactionDate,callback:function(e){t.transactionDate=e},expression:"transactionDate"}}),e("el-button",{staticStyle:{"margin-left":"10px"},attrs:{type:"primary",size:"small"},on:{click:t.handleTransactionSearch}},[t._v(" "+t._s(t.$t("placeholder.searchAcc"))+" ")])],1),e("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.pictLoading,expression:"pictLoading"}],staticStyle:{width:"100%"},attrs:{data:t.tableData2}},[e("el-table-column",{attrs:{prop:"login",label:t.$t("Label.TradingAccount"),align:"center"}}),e("el-table-column",{attrs:{prop:"openPrice",label:t.$t("Label.OpenPrice"),align:"center"}}),e("el-table-column",{attrs:{prop:"closePrice",label:t.$t("Label.ClosePrice"),align:"center"}}),e("el-table-column",{attrs:{prop:"openTime",label:t.$t("Label.OpenTime"),align:"center"}}),e("el-table-column",{attrs:{prop:"closeTime",label:t.$t("Label.CloseTime"),align:"center"}})],1)],1),t.pagerInfo2.rowTotal?e("div",{staticClass:"crm_pagination"},[e("el-pagination",{staticClass:"page",attrs:{background:"",layout:"prev, pager, next","page-size":t.pagerInfo2.row,total:t.pagerInfo2.rowTotal},on:{"current-change":t.handleTransactionPageChange}})],1):t._e()])],1)},i=[],n=(a("14d9"),a("e9f5"),a("7d54"),a("fa1c")),o=a("eec4"),r=a.n(o),c=a("6df7"),l=a("18a4"),u=a("f121"),d=a.n(u);let{Code:p}=d.a;var m={name:"Customer",components:{},inject:["reload"],data(){return{flag:!1,flag1:!1,pictLoading:!1,deleteDialogVisible:!1,deleteLoading:!1,selectedAccounts:[],currentRow:null,platform:"MT4",ChartSet:{type:4,platform:"MT4",login:"",startDate:"",endDate:""},isChart:!1,isDate:[],dropDown:[],time:"",value:"",input:"",tableData:[],tableData1:[],tableData2:[],form:{},chartDates:[],chartTimes:[],dialogCheck:!1,walletbalance:"",pendingWithdrawAmount:"",pagerInfo:{row:10,current:1,pageTotal:0,rowTotal:0},pagerInfo1:{row:10,current:1,pageTotal:0,rowTotal:0},pagerInfo2:{row:10,current:1,pageTotal:0,rowTotal:0},transactionDialogVisible:!1,transactionDate:[],pickerOptions:{shortcuts:[],disabledDate(t){return t.getTime()>Date.now()}}}},computed:{cId(){return JSON.parse(this.Session.Get("user",!0)).customInfo.cId.toString()},lang(){return"en"==this.Session.Get("lang")&&document.body.clientWidth<1300}},methods:{isAfterJuly28(){return Object(n["a"])()},groupCurrency(t){return"GBP"==t?": £":"USD"==t?": $":"EUR"==t?": €":"USC"==t?": ¢":": $"},groupCurrency1(t){return"GBP"==t?"£":"USD"==t?"$":"EUR"==t?"€":"USC"==t?"¢":"$"},platformWithServer(t){const e=String(t&&t.platform||this.platform||"MT4").toUpperCase();return e.includes("MT5")?"MT5 CWGMarketsSVG-Live":"MT4 CWGMarketsLtd-Live"},platformServerCopyValue(t){const e=this.platformWithServer(t),a=String(e).trim().split(/\s+/);return a[a.length-1]||e},async copyPlatformServer(t){const e=this.platformServerCopyValue(t);try{if(navigator.clipboard&&navigator.clipboard.writeText)await navigator.clipboard.writeText(e);else{const t=document.createElement("textarea");t.value=e,t.setAttribute("readonly",""),t.style.position="fixed",t.style.left="-9999px",document.body.appendChild(t),t.select(),document.execCommand("copy"),document.body.removeChild(t)}this.$pigeon.MessageOK(this.$i18n.t("card.Msg.m8"))}catch(a){this.$pigeon.MessageError(this.$i18n.t("card.Msg.m9"))}},closeFunctionOpen(t,e){return!t||null==t.closeFunctions||""===t.closeFunctions||-1===String(t.closeFunctions).indexOf(String(e))},accountTypeText(t){if(!t)return"";const e=t.type;return 1==e?this.$t("AccountType.ClassicAccount"):2==e?this.$t("AccountType.SeniorAccount"):3!=e||this.isAfterJuly28()?5==e||6==e?this.$t("AccountType.SpeedAccount"):7==e?this.$t("AccountType.StandardAccount"):8==e?this.$t("AccountType.CentAccount"):"":this.$t("AccountType.AgencyAccount")},formatFloatingDisplay(t){if(!t)return"—";if(null!=t.floatingWithSymbol&&""!==t.floatingWithSymbol)return t.floatingWithSymbol;const e=t.floating;if(null!=e&&""!==e&&"object"!==typeof e){const a=this.groupCurrency1(t.currency),s=this.$options.filters.NumberFormat?this.$options.filters.NumberFormat(e):e;return a+s}return"—"},toStandardRebate(t){this.$router.push({path:"/customer/standard/rebate",query:{login:t.login}}).catch(t=>t)},tableSearch(t){this.platform=t,this.tableData=[],this.pagerInfo.rowTotal=0,this.pagerInfo.current=1,this.getDateList()},getSearchDate(t){this.ChartSet.startDate=t[0],this.ChartSet.endDate=t[1],this.getChart()},getDateList:async function(){this.pictLoading=!0;let t=await c["a"].AccountList({platform:this.platform,page:{current:this.pagerInfo.current,row:10}});if(t.code==p.StatusOK){const e=Array.isArray(t.data)?t.data:[];this.tableData=e,e.forEach(t=>{if(t.markDelTime){const e=new Date(t.markDelTime),a=new Date,s=Math.abs(a-e),i=Math.ceil(s/864e5);t.markDelTime=i}}),t.page&&(this.pagerInfo.rowTotal=t.page.rowTotal,this.pagerInfo.pageTotal=t.page.pageTotal),this.pictLoading=!1}else this.$pigeon.MessageError(t.msg),this.pictLoading=!1},getAccountList:async function(){let t=await c["a"].CustomDropdown({platform:this.ChartSet.platform});t.code==p.StatusOK?this.dropDown=t.data:this.$pigeon.MessageError(t.msg)},getChart:async function(){if(this.flag)return;this.flag=!0,this.chartDates=[],this.chartTimes=[];let t=await c["a"].getChartInfo({...this.ChartSet});t.code==p.StatusOK?(t.data.forEach(t=>{this.chartDates.push(t.amount),this.chartTimes.push(t.date.split(" ")[0])}),this.drawLine(),this.$pigeon.MessageOK(this.$i18n.t("Msg.SearchSuccess")),this.flag=!1):(this.$pigeon.MessageError(t.msg),this.flag=!1)},async getLoginInfo(){let t=await c["a"].CustomLoginInfo();t.code==p.StatusOK?(this.$store.commit("InitInfo",t.data),2==t.data.customInfo.status&&2==t.data.customInfo.applyRealStatus?(this.$router.push({path:"/customer/new"}).catch(t=>t),this.$store.commit("isActiveTab","0")):this.dialogCheck=!0):this.$pigeon.MessageError(this.$i18n.t("Msg.SystemError"))},immediately(){this.$router.push({path:"/improve/immediately"}).catch(t=>t),this.dialogCheck=!1},tips(){this.$pigeon.MessageWarning(this.$i18n.t("news_add_field.Des.item1"))},toNewAccount(){this.getLoginInfo()},toSettings(t){let e=0;t.closeFunctions&&"-1"!=t.closeFunctions.indexOf("4")&&(e=1),this.$router.push({path:"/customer/settings",query:{login:t.login,platform:t.platform,type:t.type,currency:t.currency,leverage:t.leverage,close:e}}).catch(t=>t),this.$store.commit("isActiveTab","0")},toDeposit(t){this.$router.push({path:"/customer/deposit",query:{login:t.login,type:t.type,balance:t.balance,currency:t.currency}}).catch(t=>t),this.$store.commit("isActiveTab","2")},toWithdraw(t){this.$router.push({path:"/customer/withdraw",query:{login:t.login,type:t.type,balance:t.balance,currency:t.currency}}).catch(t=>t),this.$store.commit("isActiveTab","3")},toTransfer(t){this.$router.push({path:"/customer/transfer",query:{login:t.login,type:t.type,balance:t.balance,currency:t.currency}}).catch(t=>t),this.$store.commit("isActiveTab","5")},toWalletTransfer(){this.$router.push({path:"/customer/wallet/transfer"}).catch(t=>t)},toWalletHistory(){this.$router.push({path:"/customer/wallet/history"}).catch(t=>t)},toPaymentHistory(){this.$router.push({path:"/customer/history",query:{fromPending:"true"}}).catch(t=>t),this.$store.commit("isActiveTab","4")},getDate(){let t,e=2,a=(new Date).getTimezoneOffset(),s=(new Date).getTime(),i=new Date(s+60*a*1e3+60*e*60*1e3),n=i.getMonth()+1,o=i.getDate(),r=i.getHours(),c=i.getMinutes();n<10&&(n="0"+n),o<10&&(o="0"+o),r<10&&(r="0"+r),c<10&&(c="0"+c),t=" "+r+":"+c+" "+n+"/"+o,this.time=t},goTime(){this.getDate();let t=2,e=(new Date).getTimezoneOffset(),a=(new Date).getTime(),s=new Date(a+60*e*1e3+60*t*60*1e3),i=s.setDate(1),n=s.setMonth(s.getMonth()+1),o=new Date(i).getFullYear(),r=new Date(i).getMonth()+1,c=new Date(i).getDate(),l=new Date(n).getFullYear(),u=new Date(n).getMonth()+1,d=1;this.ChartSet.startDate=o+"-"+(r<10?"0"+r:r)+"-"+(c<10?"0"+c:c),this.ChartSet.endDate=l+"-"+(u<10?"0"+u:u)+"-"+(d<10?"0"+d:d),this.isDate=[this.ChartSet.startDate,this.ChartSet.endDate],this.getChart()},toReload(){this.flag1||(this.flag1=!0,this.goTime(),this.getDateList(),this.getWalletList(),this.getPendingWithdrawAmount(),this.getAccountList(),this.divInit(),setTimeout(()=>{this.flag1=!1},2e3))},drawLine(){let t=this.$echarts.init(document.getElementById("myChart")),e=this.chartTimes,a=this.chartDates,s={title:{text:"",subtext:"",left:"center"},tooltip:{trigger:"axis",axisPointer:{animation:!1}},axisPointer:{link:{xAxisIndex:"all"}},grid:[{left:50,right:50,bottom:50,height:"75%"}],xAxis:[{type:"category",boundaryGap:!1,axisLine:{onZero:!0},data:e}],yAxis:[{name:"",type:"value"}],series:[{name:"",type:"line",symbolSize:8,hoverAnimation:!1,data:a}]};t.setOption(s)},divInit(){const t=this,e=r()({strategy:"scroll"});e.listenTo(document.getElementById("custom_index"),()=>{t.$nextTick(()=>{t.chart=t.$echarts.init(document.getElementById("myChart")),t.chart.resize()})})},handleCurrentChange(t){this.pagerInfo.current=t,this.getDateList()},handleCurrentChange1(t){this.pagerInfo1.current=t,this.showDeleteDialog()},getWalletList:async function(){let t=await l["a"].walletbalance({});t.code==p.StatusOK?null!=t.data&&(this.walletbalance=t.data):this.$pigeon.MessageError(t.msg)},getPendingWithdrawAmount:async function(){let t=await l["a"].pendingWithdrawAmount({});t.code==p.StatusOK?null!=t.data&&(this.pendingWithdrawAmount=t.data):this.$pigeon.MessageError(t.msg)},handleCommand(t){1==t?this.toWalletTransfer():2==t&&this.toWalletHistory()},showDeleteDialog:async function(){let t=await c["a"].deleteAccountList({page:{current:this.pagerInfo1.current,row:this.pagerInfo1.row}});t.code==p.StatusOK?(this.deleteDialogVisible=!0,null!=t.data?(this.tableData1=t.data,this.pagerInfo1.rowTotal=t.page.rowTotal,this.pagerInfo1.pageTotal=t.page.pageTotal,this.pictLoading=!1):(this.tableData1=t.data,this.pictLoading=!1)):this.$pigeon.MessageError(t.msg)},doDetail:async function(t){if(this.currentRow=t,this.transactionDialogVisible=!0,!this.transactionDate||0===this.transactionDate.length){const t=new Date,e=new Date(t.getFullYear(),t.getMonth(),1),a=new Date(t.getFullYear(),t.getMonth()+1,0);this.transactionDate=[e.toISOString().split("T")[0],a.toISOString().split("T")[0]]}let e=await c["a"].historyList({login:t.login,platform:t.platform,startDate:this.transactionDate[0],endDate:this.transactionDate[1],page:{current:this.pagerInfo2.current,row:this.pagerInfo2.row}});e.code==p.StatusOK?null!=e.data?(this.tableData2=e.data,this.pagerInfo2.rowTotal=e.page.rowTotal,this.pagerInfo2.pageTotal=e.page.pageTotal,this.pictLoading=!1):(this.tableData2=e.data,this.pictLoading=!1):this.$pigeon.MessageError(e.msg)},handleTransactionClose(t){t()},handleTransactionPageChange(t){this.pagerInfo2.current=t,this.doDetail(this.currentRow)},handleClose(t){t()},handleTransactionSearch(){const[t,e]=this.transactionDate,a=new Date(t),s=new Date(e);a.getMonth()===s.getMonth()&&a.getFullYear()===s.getFullYear()&&(this.pagerInfo2.current=1,this.doDetail(this.currentRow))}},mounted(){this.goTime(),this.getDateList(),this.getWalletList(),this.getPendingWithdrawAmount(),this.getAccountList(),this.divInit()},beforeDestroy:function(){this.getDate&&clearInterval(this.getDate)},watch:{"ChartSet.platform":function(){this.ChartSet.login="",this.getAccountList()}}},h=m,g=(a("9dbf"),a("6775"),a("2877")),v=Object(g["a"])(h,s,i,!1,null,"8d7590a0",null);e["default"]=v.exports},"5987b":function(t,e,a){},6775:function(t,e,a){"use strict";a("5987b")},8868:function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAAAXNSR0IArs4c6QAAArBJREFUaEPtWW1y6jAMjLlY2xsQLlS4EOEGTS+GO87EGVdI3vUHpcyQP++VJLZ2tfqI7IYnv9yT2z+8ADzag909sN/v3yOo3W63/f96vc7h98vlsvzb6+oCIBjtnPschmEzOGegc+4U7p/P52MrkCYAh8Ph6L0PhldfAUwLkCoAgPFNIs6574jMe/+W81AtkGIAButzMDboHGk8gA+xoXmuBkQRgHEcvwSLs/f+hIy29GWRMU3TB6tJGsA4jj5dtIatEiDTNFG2UQ9J5nsaH0Ep3pgZT0AAcmHv/UeUTLzXC9CaHIJMl4tZNwtAGi8XTGXFuhxpO0eY9m4WQGqgxkZvDxhyykrJBCCZ6MUw8kC8n8ZdTkomAMR+2CiAjBum1TT9XTOYqbwyHiwCVQAs+1YMyJRrsY6CNPVCmjx+pXNt8RRAbpNWAOveZjEURKqxoHogNcxCHjZnAMTOMyVKayM0iTAyugHAvJQE2ladUwOY9MoWLiQjBCCbwhgP5LKXJEvzdjEAVv+shFD6Reny3wMQXrjxOCL0RkLohTQYWyWEYinWmhj0WkZ8aAwEA7t7AC3Y2wPI48Ux8NcAUMuCatLdC1kuC6GWhalJFoDt27e1lZAA4uBLzpFy7Xru40YFwMqIyUJM+2yRhOS1ALM2QNpjCxkCYPVaSF7bZ6e1AdMJVnpgGXyhcQzDftYDK8NULCCWS++z7EMANVOCUmPl82iQIJ9vGqu0GivfryEMApBSyqW0FkDs90GxB7SGqzcIbUaK2nCYhTQ2leEuNT2zPGOM6amRYhUA2d6mhoViVDhevzkvQFMKjQgqBlCmUBZezgvi7+vhRvxTO4aqHtNXAYiWPO0Rk+aRtbqy52XVjFdnITZFxm5TO2INa9Se5lj7N0mIBXXP514A7skus/bTe+AHlN32T3NvoJUAAAAASUVORK5CYII="},"9dbf":function(t,e,a){"use strict";a("0e9c")},fa1c:function(t,e,a){"use strict";function s(){const t=new Date,e=new Date(2025,6,28,0,0,0);return t>=e}a.d(e,"a",(function(){return s}))}}]);