card-Select.981192d8.js 27 KB

1
  1. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["card-Select"],{"32f7":function(e,t){e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMQAAACACAYAAABUb8YRAAAPA0lEQVR4Aeyd2ZXcOBJFWTWGqWRAm6DfmTNWZJUVc3p+ZYIMKMmw7ux3mWCK4L6AAEGEDqNIglgiHuJhI5J6rRL9+//3H59/fv9xl7wnUsGKNQR6CCQhBCS4V9Vb9fh3+9/3H831I8T+GgKJEEhCiK6tUsII0QXF7pMgIF9MUq4VagicEgEjxCmrxZRKhUBGhEgFkZVbEgKHE6K1msSKUi0C+CZpHzdNtOtnrbOtPrURsusoCBxKCDn3e2s1aa1Btvq0FjGLvxuBQwnxd1X9rHb8+++3P3al31G0JS0UgUMJ4Rz6Q9h+vIgcjejeO5rw9llk+upFshtDIAIChxIC/f/z7Y935N/f/vjaiMIhiU6PQ8OqX82z5uzI9IgQ+S8vChGGfJvk+4/33NNhf2TYT1Hc4YQ4hZULlMCBmwUAgfKJKBmT/yIF+4XJ3WFSzAKH7Fa1F3zQElLpguB2/72dRLd2gIDDpFkFvDwxiiaEWsB3AfDpKp36N5lGAGJcmhTyh2kEjniqCbO3esQc44hypvKEDHrOcEgnO1YgcGlSJCGEmzAzsf4QOVKtJo2Sob3adfXrMftmCHLZd0RJCAHY9AqIIwdB0cT1Dr3ycA4I2qx0lXxW3bwgAomGSyf/kON8+iHXuJNd1zBkpRVDvcMHBEhB0JW6R40uUjBnGCQFCxJRlYlQWHGEGKtEV/ERIM+vCLCh9+xq/q+qGmpYutE231NXCKuA9OoI95szXJCwOELI4N6PkYYqewF2RUXRStyvmAZDAtVV/T5IZVNnkO9GGM+OIobyj2nmOcsS4FEr+5woTGuluZW3Mkhs4YajchlMcHT1BPeBvJ9l8EyOy2/yGc49w0NcKN8Q2eSTh3qDL/loW56mcsg1k/Xgq10qvzzQzeJzIqCeodfiqwH7qd7pKyKte5N7OfAaAimL6UP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yQS5INqWjC6QZrCXTmmX6iVl8enLXkqKNZoyX/i7qr4qzWyFO2LVPYfiF3OAkcP+VDYXTwhqg4qRqI6qWQcm/pgog58QgY2OTN6VJ3OQpXlGIwV6SrfnD7lSXIPRGI4pw40QLfTlGHynVf5SrdrOrgQeEVpZVuTJ83bYxHU0UkzoUPQjI8RA9ePEtGA6v9DiKwqtvCeEI8QhLj2C4oU4VpIiRJGWR4NA1oRgpaYx5Kgzji6np+fwhHDkoHKNFAcBO5dtNoRYMeyYszn6c02ct+z5CUIKld17a66wLfpExy1FgdkQYggcKf8Zo5cYKntNGD3MRkLvIkXBy7lrqseLK5/y7k97M7YH6ajt26GBGNN/QTmbSOHIMPjiC4IuKLfIKIOEoNXdI0cgyXh9qJVV9/+mymdPTf3/RO/R+8i0YDKkP+ELpCbFUv142ac8B8mgcBYHdEpwZFCkRwgAB0wF1m9Rt54bBx2zvynHxcOZFwnOP5anwnEA7y3wVv2PSjejv0yYPBbbNlMO5ALvugGZLLHAh6r731brZnS35u9Yi69uOP5QbJXzNlNpQ8ksLCwCdQMSNsv8c5NvPowYc97H021/lXlvhcOVQ2Vsy9RSBUXA1UfQPHPOTD57nPpDk7exucBxWljOUwhQH1PPS3v2JIQDhgkXsgsHJo+8xR3LxK247C5nLH8Ln0dgro7mc7hmjIYQtXW06E52bfya28oA+UKUozx26XmW9AJ/T+NQ/+eBNEBrZK6OpFORh0eIIhE4gdEi5ppdsZ7Gaum/0MCsFS8Tu3kiYIR4QpH2AlLQwqfVwko3QpzIB2jl15JCy9e2LylgHRohAoIZIqstpAhRruXxQCBDQjwUv/LfNaRgqHVlLGLbZoSIjfjC8uZIocl0/Su9hdlZtIUIGCEWApUiGqRQDyDf//2TVt3wgeEPWzY9pkb+AQAA//94zpsHAAAABklEQVQDAN/DFdDq2t54AAAAAElFTkSuQmCC"},"34e1":function(e,t,a){"use strict";var r=a("c65b"),s=a("825a"),i=a("46c4"),n=a("35a1");e.exports=function(e,t){t&&"string"===typeof e||s(e);var a=n(e);return i(s(void 0!==a?r(a,e):e))}},"5db7":function(e,t,a){"use strict";var r=a("23e7"),s=a("a2bf"),i=a("59ed"),n=a("7b0b"),c=a("07fa"),o=a("65f0");r({target:"Array",proto:!0},{flatMap:function(e){var t,a=n(this),r=c(a);return i(e),t=o(a,0),t.length=s(t,a,a,r,0,1,e,arguments.length>1?arguments[1]:void 0),t}})},"73d9":function(e,t,a){"use strict";var r=a("44d2");r("flatMap")},"796d":function(e,t,a){"use strict";var r=a("23e7"),s=a("c65b"),i=a("59ed"),n=a("825a"),c=a("46c4"),o=a("34e1"),l=a("c5cc"),d=a("2a62"),u=a("c430"),p=a("f99f"),m=!u&&p("flatMap",TypeError),g=l((function(){var e,t,a=this.iterator,r=this.mapper;while(1){if(t=this.inner)try{if(e=n(s(t.next,t.iterator)),!e.done)return e.value;this.inner=null}catch(i){d(a,"throw",i)}if(e=n(s(this.next,a)),this.done=!!e.done)return;try{this.inner=o(r(e.value,this.counter++),!1)}catch(i){d(a,"throw",i)}}}));r({target:"Iterator",proto:!0,real:!0,forced:u||m},{flatMap:function(e){n(this);try{i(e)}catch(t){d(this,"throw",t)}return m?s(m,this,e):new g(c(this),{mapper:e,inner:null})}})},"7db0":function(e,t,a){"use strict";var r=a("23e7"),s=a("b727").find,i=a("44d2"),n="find",c=!0;n in[]&&Array(1)[n]((function(){c=!1})),r({target:"Array",proto:!0,forced:c},{find:function(e){return s(this,e,arguments.length>1?arguments[1]:void 0)}}),i(n)},a2bf:function(e,t,a){"use strict";var r=a("e8b5"),s=a("07fa"),i=a("3511"),n=a("0366"),c=function(e,t,a,o,l,d,u,p){var m,g,v=l,b=0,h=!!u&&n(u,p);while(b<o)b in a&&(m=h?h(a[b],b,t):a[b],d>0&&r(m)?(g=s(m),v=c(e,t,m,g,v,d-1)-1):(i(v+1),e[v]=m),v++),b++;return v};e.exports=c},aea3:function(e,t,a){"use strict";a.r(t);a("b0c0");var r=function(){var e=this,t=e._self._c;return t("div",{directives:[{name:"loading",rawName:"v-loading",value:e.pictLoading,expression:"pictLoading"}],staticClass:"views",attrs:{id:"documentary_index","element-loading-background":"rgba(43, 48, 67, 0.1)","element-loading-spinner":"el-icon-loading"}},[t("div",{staticClass:"accounts"},[t("div",{staticClass:"account-top crm-title-box"},[t("span",{staticClass:"tit"},[t("span",{directives:[{name:"t",rawName:"v-t",value:"card.tab9",expression:"'card.tab9'"}]})]),t("div",{staticClass:"btn crm-cursor",on:{click:e.backActivity}},[t("i",{staticClass:"el-icon-back"}),t("span",{directives:[{name:"t",rawName:"v-t",value:"Custom.Settings.Title",expression:"'Custom.Settings.Title'"}]})])])]),e.pictViews?e._e():[e.typesList.length||e.cardTypeId?t("div",{staticClass:"account-info"},[t("div",{staticClass:"step"},e._l(e.stepList,(function(a){return t("div",{key:a.id,class:e.step>=a.id?"step-item step-active":"step-item"},[t("div",{directives:[{name:"t",rawName:"v-t",value:e.$t(a.name),expression:"$t(item.name)"}],staticClass:"step-item-content"})])})),0),1===e.step?[e.typesList.length?t("div",{staticClass:"list-box"},e._l(e.typesList,(function(a){return t("div",{key:a.id,staticClass:"list-item",on:{click:function(t){return e.selectType(a)}}},[t("img",{attrs:{src:"",alt:"",srcset:""}}),t("div",{staticClass:"type"},[e._v(e._s(a.cardName))]),t("p",[e._v(e._s(a.cardDesc))]),t("div",{staticClass:"i"},[t("span",{directives:[{name:"t",rawName:"v-t",value:"card.New.n4",expression:"'card.New.n4'"}],staticClass:"k"}),t("span",{staticClass:"v"},[e._v(e._s(a.cardPrice)+" USD")])]),t("div",{staticClass:"i"},[t("span",{directives:[{name:"t",rawName:"v-t",value:"card.New.n5",expression:"'card.New.n5'"}],staticClass:"k"}),t("span",{staticClass:"v"},[e._v(e._s(a.needCardHolder))])]),t("div",{staticClass:"i"},[t("span",{directives:[{name:"t",rawName:"v-t",value:"card.New.n6",expression:"'card.New.n6'"}],staticClass:"k"}),t("span",{staticClass:"v"},[e._v(e._s(a.rechargeCurrency||"USD"))])]),t("div",{staticClass:"i"},[t("span",{directives:[{name:"t",rawName:"v-t",value:"card.New.n7",expression:"'card.New.n7'"}],staticClass:"k"}),t("span",{staticClass:"v"},[e._v(e._s(a.rechargeMinQuota))])]),t("div",{staticClass:"i"},[t("span",{directives:[{name:"t",rawName:"v-t",value:"card.New2.n8",expression:"'card.New2.n8'"}],staticClass:"k"}),t("span",{staticClass:"v"},[e._v(e._s(a.rechargeMaxQuota))])]),t("div",{staticClass:"i"},[t("span",{directives:[{name:"t",rawName:"v-t",value:"card.New.n9",expression:"'card.New.n9'"}],staticClass:"k"}),t("span",{staticClass:"v"},[e._v(e._s(a.rechargeFeeRate)+"%")])])])})),0):e._e(),0==e.typesList.length?t("div",{staticClass:"no-data"},[t("img",{attrs:{src:a("32f7"),alt:""}}),t("p",{directives:[{name:"t",rawName:"v-t",value:"card.Msg.m11",expression:"'card.Msg.m11'"}],staticStyle:{"text-align":"center","margin-top":"20px"}})]):e._e()]:[t("div",[t("el-row",{staticClass:"card-bottom"},[t("el-form",{ref:"businessForm",staticClass:"form",attrs:{model:e.businessForm,rules:e.rules,"label-position":"top"}},[t("el-row",{attrs:{gutter:20}},[[t("el-col",{staticClass:"crm-h",attrs:{span:12}},[t("el-form-item",{attrs:{prop:"login",label:e.$t("card.New.n10")}},[t("el-select",{staticClass:"crm_select_icon",attrs:{filterable:"",placeholder:e.$t("placeholder.choose")},on:{change:e.changeLogin},model:{value:e.businessForm.login,callback:function(t){e.$set(e.businessForm,"login",t)},expression:"businessForm.login"}},e._l(e.loginOptions,(function(e,a){return t("el-option",{key:a,attrs:{label:e.lable,value:e.login,disabled:e.disabled}})})),1)],1)],1),t("el-col",{staticClass:"crm-h",attrs:{span:12}}),t("el-col",{staticClass:"crm-h",attrs:{span:12}},[t("el-form-item",{attrs:{prop:"lastName",label:e.$t("card.Form.f4")}},[t("el-input",{attrs:{disabled:""},model:{value:e.businessForm.lastName,callback:function(t){e.$set(e.businessForm,"lastName",t)},expression:"businessForm.lastName"}})],1)],1),t("el-col",{staticClass:"crm-h",attrs:{span:12}},[t("el-form-item",{attrs:{prop:"firstName",label:e.$t("card.Form.f5")}},[t("el-input",{attrs:{disabled:""},model:{value:e.businessForm.firstName,callback:function(t){e.$set(e.businessForm,"firstName",t)},expression:"businessForm.firstName"}})],1)],1),t("el-col",{attrs:{span:12}},[t("el-col",{staticClass:"crm-padding-0",attrs:{span:6}},[t("el-form-item",{attrs:{prop:"mailingAreaCode",label:e.$t("card.New1.d13")}},[t("el-select",{attrs:{filterable:"",placeholder:e.$t("card.vaildate.v1")},model:{value:e.businessForm.mailingAreaCode,callback:function(t){e.$set(e.businessForm,"mailingAreaCode",t)},expression:"businessForm.mailingAreaCode"}},e._l(e.filteredCountryCityList,(function(e){return t("el-option",{key:e.id,attrs:{label:e.areaCode+" "+e.enName,value:e.areaCode}})})),1)],1)],1),t("el-col",{staticClass:"crm-padding-0",attrs:{span:18}},[t("el-form-item",{staticClass:"crm-label-none",attrs:{prop:"mailingMobile",label:" "}},[t("el-input",{attrs:{placeholder:e.$t("card.vaildate.v2")},model:{value:e.businessForm.mailingMobile,callback:function(t){e.$set(e.businessForm,"mailingMobile",t)},expression:"businessForm.mailingMobile"}})],1)],1)],1),t("el-col",{staticClass:"crm-h",attrs:{span:12}},[t("el-form-item",{attrs:{prop:"email",label:e.$t("card.Form.f3")}},[t("el-input",{attrs:{disabled:""},model:{value:e.businessForm.email,callback:function(t){e.$set(e.businessForm,"email",t)},expression:"businessForm.email"}})],1)],1),t("el-col",{staticClass:"crm-h",attrs:{span:12}},[t("el-form-item",{attrs:{prop:"birthday",label:e.$t("card.Form.f6")}},[t("el-date-picker",{attrs:{disabled:"",type:"date","value-format":"yyyy-MM-dd"},model:{value:e.businessForm.birthday,callback:function(t){e.$set(e.businessForm,"birthday",t)},expression:"businessForm.birthday"}})],1)],1),t("el-col",{staticClass:"crm-h",attrs:{span:12}},[t("el-form-item",{attrs:{prop:"gender",label:e.$t("card.Form.f8")}},[t("el-select",{attrs:{disabled:"",placeholder:e.$t("Ucard.Business.p14")},model:{value:e.businessForm.gender,callback:function(t){e.$set(e.businessForm,"gender",t)},expression:"businessForm.gender"}},[t("el-option",{attrs:{label:e.$t("Ucard.Business.p15"),value:"M"}}),t("el-option",{attrs:{label:e.$t("Ucard.Business.p16"),value:"F"}})],1)],1)],1),t("el-col",{attrs:{span:12}},[t("el-form-item",{attrs:{prop:"mailingCountry",label:e.$t("card.New1.d8")}},[t("el-select",{attrs:{filterable:"",placeholder:e.$t("card.vaildate.v6")},on:{change:e.getMailingCountry},model:{value:e.businessForm.mailingCountry,callback:function(t){e.$set(e.businessForm,"mailingCountry",t)},expression:"businessForm.mailingCountry"}},e._l(e.countryCityList,(function(e){return t("el-option",{key:e.id,attrs:{label:e.cnName,value:e.code}})})),1)],1)],1),t("el-col",{attrs:{span:12}},[t("el-form-item",{attrs:{prop:"mailingTown",label:e.$t("card.New1.d9")}},[t("el-select",{attrs:{filterable:"",placeholder:e.$t("card.vaildate.v7")},model:{value:e.businessForm.mailingTown,callback:function(t){e.$set(e.businessForm,"mailingTown",t)},expression:"businessForm.mailingTown"}},e._l(e.cityList,(function(e){return t("el-option",{key:e.id,attrs:{label:e.enName,value:e.code}})})),1)],1)],1),t("el-col",{attrs:{span:12}},[t("el-form-item",{attrs:{prop:"addressCn",label:e.$t("card.New1.d10")}},[t("el-input",{attrs:{placeholder:e.$t("card.vaildate.v27")},on:{change:e.setAddress},model:{value:e.businessForm.addressCn,callback:function(t){e.$set(e.businessForm,"addressCn",t)},expression:"businessForm.addressCn"}})],1)],1),t("el-col",{attrs:{span:12}},[t("el-form-item",{attrs:{prop:"mailingPostCode",disabled:"",label:e.$t("card.New1.d12")}},[t("el-input",{attrs:{placeholder:e.$t("card.vaildate.v8")},model:{value:e.businessForm.mailingPostCode,callback:function(t){e.$set(e.businessForm,"mailingPostCode",t)},expression:"businessForm.mailingPostCode"}})],1)],1),t("el-col",{attrs:{span:12}},[t("el-form-item",{attrs:{prop:"address",label:e.$t("card.New1.d11")}},[t("el-input",{attrs:{placeholder:e.$t("card.vaildate.v27")},model:{value:e.businessForm.address,callback:function(t){e.$set(e.businessForm,"address",t)},expression:"businessForm.address"}})],1)],1),t("el-col",{attrs:{span:24}},[t("div",{staticClass:"btn-box"},[t("el-form-item",[t("el-button",{directives:[{name:"t",rawName:"v-t",value:"card.Btn.Previous",expression:"'card.Btn.Previous'"}],staticClass:"s-btn g-btn",attrs:{type:"primary"},on:{click:function(t){return e.btnClick(1)}}})],1),t("el-form-item",[t("el-button",{directives:[{name:"t",rawName:"v-t",value:"card.Btn.Submit",expression:"'card.Btn.Submit'"}],staticClass:"s-btn",attrs:{type:"primary"},on:{click:function(t){return e.btnClick(2)}}})],1)],1)])]],2)],1)],1)],1)]],2):e._e(),0!=e.typesList.length||e.cardTypeId?e._e():t("div",{staticClass:"account-info"},[t("div",{staticClass:"no-data"},[t("img",{attrs:{src:a("32f7"),alt:""}}),t("p",{directives:[{name:"t",rawName:"v-t",value:"card.Msg.m11",expression:"'card.Msg.m11'"}],staticStyle:{"text-align":"center","margin-top":"20px"}})])])]],2)},s=[],i=a("3835"),n=a("c7eb"),c=a("1da1"),o=a("5530"),l=(a("d9e2"),a("4de4"),a("7db0"),a("5db7"),a("caad"),a("d81d"),a("14d9"),a("73d9"),a("e9f5"),a("910d"),a("f665"),a("796d"),a("ab43"),a("b64b"),a("d3b7"),a("ac1f"),a("00b4"),a("6062"),a("1e70"),a("79a4"),a("c1a1"),a("8b00"),a("a4e7"),a("1e5a"),a("72c3"),a("2532"),a("3ca3"),a("5319"),a("ddb0"),a("c6e4")),d=a("6df7"),u=a("f121"),p=a.n(u),m=a("4371"),g=p.a.Code,v=p.a.Host80,b={name:"Index",components:{},inject:["reload"],data:function(){var e=this;return{Host80:v,isAuthInfo:!1,pictLoading:!1,pictViews:!1,authInfo:{},typesList:[],step:1,stepList:[{id:1,name:"card.tab18",status:"finish"},{id:2,name:"card.tab19",status:"process"}],businessForm:{merchantOrderNo:"",cardTypeId:"",type:"",mailingAreaCode:"",login:"",mailingMobile:"",email:"",firstName:"",lastName:"",birthday:"",mailingCountry:"",country:"",mailingTown:"",address:"",mailingPostCode:"",gender:""},cardTypeId:"",cardTypes:"",rules:{password:[{validator:function(t,a,r){e.Config.Pattern.Password.test(a)?r():r(new Error(e.$i18n.t("vaildate.password.format")))},trigger:"blur",required:!0}],mailingAreaCode:[{required:!0,message:this.$i18n.t("card.vaildate.v1"),trigger:"blur"}],mailingMobile:[{required:!0,message:this.$i18n.t("card.vaildate.v2"),trigger:"blur"}],email:[{required:!0,message:this.$i18n.t("card.vaildate.v28"),trigger:"blur"}],firstName:[{required:!0,message:this.$i18n.t("card.vaildate.v3"),trigger:"blur"},{validator:this.validateName,trigger:"blur"}],lastName:[{required:!0,message:this.$i18n.t("card.vaildate.v4"),trigger:"blur"},{validator:this.validateName,trigger:"blur"}],birthday:[{required:!0,message:this.$i18n.t("card.vaildate.v5"),trigger:"change"},{validator:function(t,a,r){if(a){var s=new Date,i=new Date(a),n=s.getFullYear()-i.getFullYear(),c=s.getMonth()-i.getMonth();(c<0||0===c&&s.getDate()<i.getDate())&&n--,n<18?r(new Error(e.$i18n.t("card.New.n3"))):r()}else r(new Error(e.$i18n.t("card.vaildate.v5")))},trigger:"change"}],mailingCountry:[{required:!0,message:this.$i18n.t("card.vaildate.v6"),trigger:"change"}],country:[{required:!0,message:this.$i18n.t("card.vaildate.v6"),trigger:"change"}],mailingTown:[{required:!0,message:this.$i18n.t("card.vaildate.v7"),trigger:"change"}],address:[{required:!0,message:this.$i18n.t("card.vaildate.v27"),trigger:"blur"},{validator:function(t,a,r){var s=/^[A-Za-z0-9\- ]+$/;a.length<2||a.length>200?r(new Error(e.$i18n.t("card.New.n1"))):s.test(a)?r():r(new Error(e.$i18n.t("card.New.n1")))},trigger:"blur"}],addressCn:[{required:!0,message:this.$i18n.t("card.vaildate.v27"),trigger:"blur"}],gender:[{required:!0,message:this.$i18n.t("card.vaildate.v9"),trigger:"change"}],occupation:[{required:!0,message:this.$i18n.t("card.vaildate.v10"),trigger:"change"}],annualSalary:[{required:!0,message:this.$i18n.t("card.vaildate.v11"),trigger:"blur"}],accountPurpose:[{required:!0,message:this.$i18n.t("card.vaildate.v12"),trigger:"blur"}],expectedMonthlyVolume:[{required:!0,message:this.$i18n.t("card.vaildate.v13"),trigger:"blur"}],idType:[{required:!0,message:this.$i18n.t("card.vaildate.v14"),trigger:"change"}],idNumber:[{required:!0,message:this.$i18n.t("card.vaildate.v15"),trigger:"blur"}],ssn:[{required:!0,message:this.$i18n.t("card.vaildate.v16"),trigger:"blur"}],issueDate:[{required:!0,message:this.$i18n.t("card.vaildate.v17"),trigger:"change"}],idNoExpiryDate:[{required:!0,message:this.$i18n.t("card.vaildate.v18"),trigger:"change"}],idFrontUrl:[{required:!0,message:this.$i18n.t("card.vaildate.v19"),trigger:"change"}],idBackUrl:[{required:!0,message:this.$i18n.t("card.vaildate.v20"),trigger:"change"}],idHoldUrl:[{required:!0,message:this.$i18n.t("card.vaildate.v21"),trigger:"change"}],login:[{required:!0,message:this.$i18n.t("placeholder.choose"),trigger:"change"}],mailingPostCode:[{required:!0,message:this.$i18n.t("card.vaildate.v8"),trigger:"blur"},{validator:function(t,a,r){var s=/^[a-zA-Z0-9]{1,15}$/;s.test(a)?r():r(new Error(e.$i18n.t("card.New.n2")))},trigger:"blur"}]},reductionData:[],loginOptions:[],cityList:[],countryCityList:[]}},computed:{getInfoId:function(){return JSON.parse(this.Session.Get("user",!0)).customInfo.cId},lang:function(){return this.Session.Get("lang")},filteredCountryCityList:function(){return this.countryCityList&&this.countryCityList.length?this.countryCityList.filter((function(e){return null!==e.areaCode&&"-"!==e.areaCode})):[]}},methods:{getMailingCountry:function(e){e?(this.businessForm.mailingTown="",this.getCityListForSelect(e)):this.cityList=[]},setAddress:function(e){var t=function(e){return/[\u4e00-\u9fa5]/.test(e)};t(e)?this.businessForm.address=this.formatText(e):this.businessForm.address=e},formatText:function(e){var t=/[\u4e00-\u9fa5]+/g,a=e.replace(t,(function(e){return" "+Object(m["a"])(e,{toneType:"none",type:"capitalize"})+" "}));return a},backActivity:function(){this.$router.push({path:"/card/index"}).catch((function(e){return e}))},flatData:function(e){return e.flatMap((function(e){return e.rechargeCurrencyInfoList&&0!==e.rechargeCurrencyInfoList.length?e.rechargeCurrencyInfoList.map((function(t){return Object(o["a"])(Object(o["a"])({},e),t)})):[Object(o["a"])(Object(o["a"])({},e),{},{currency:null,rechargeFeeRate:null,rechargeFixedFee:null,rechargeMaxQuota:null,rechargeMinQuota:null})]}))},getCountryListForSelect:function(){var e=this;return Object(c["a"])(Object(n["a"])().mark((function t(){var a;return Object(n["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,l["a"].ucardCountryCity({code:""});case 2:a=t.sent,200===a.code&&(e.countryCityList=a.data||[]);case 4:case"end":return t.stop()}}),t)})))()},getCityListForSelect:function(e){var t=this;return Object(c["a"])(Object(n["a"])().mark((function a(){var r;return Object(n["a"])().wrap((function(a){while(1)switch(a.prev=a.next){case 0:return a.next=2,l["a"].ucardCountryCity({code:e});case 2:r=a.sent,200===r.code&&(t.cityList=r.data||[]);case 4:case"end":return a.stop()}}),a)})))()},changeLogin:function(e){if(-1==e)this.businessForm.discountType=2;else{var t=this.loginOptions.find((function(t){return t.login==e}));this.businessForm.discountType=1,this.businessForm.platform=t.platform}},selectType:function(e){this.cardTypeId=e.cardTypeId,this.businessForm.type=e.type,this.step=2},reductionNum:function(){var e=this;return Object(c["a"])(Object(n["a"])().mark((function t(){var a;return Object(n["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,l["a"].reductionNum({cId:e.getInfoId});case 3:a=t.sent,200===a.code?e.reductionData=a.data:e.$message.error(a.msg),t.next=10;break;case 7:t.prev=7,t.t0=t["catch"](0),e.$message.error(t.t0);case 10:case"end":return t.stop()}}),t,null,[[0,7]])})))()},cardTypesList:function(){var e=this;return Object(c["a"])(Object(n["a"])().mark((function t(){var a,r,s,c,o,d,u,p,m,g,v,b;return Object(n["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,Promise.all([l["a"].cardTypesList(),l["a"].applyList({page:{current:1,row:10},cId:e.getInfoId})]);case 3:return a=t.sent,r=Object(i["a"])(a,2),s=r[0],c=r[1],t.next=9,Promise.all([s.data,c.data]);case 9:o=t.sent,d=Object(i["a"])(o,2),u=d[0],p=d[1],m=new Set(p.map((function(e){if("fail"!=e.status&&"cancel"!=e.status)return e.cardTypeId}))),g=u,v=g.filter((function(e){return!m.has(e.cardTypeId)})),b=v.filter((function(t){return t.supportHolderRegin.includes(e.businessForm.country)})),e.typesList=b,e.pictLoading=!1,e.pictViews=!1,t.next=28;break;case 22:t.prev=22,t.t0=t["catch"](0),console.log(t.t0),e.typesList=[],e.pictLoading=!1,e.pictViews=!1;case 28:case"end":return t.stop()}}),t,null,[[0,22]])})))()},cardTypesList1:function(){var e=this;return Object(c["a"])(Object(n["a"])().mark((function t(){var a;return Object(n["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,l["a"].cardTypesList();case 3:a=t.sent,e.typesList=e.flatData(a.data)||[],t.next=10;break;case 7:t.prev=7,t.t0=t["catch"](0),e.typesList=[];case 10:case"end":return t.stop()}}),t,null,[[0,7]])})))()},getSingle:function(){var e=this;return Object(c["a"])(Object(n["a"])().mark((function t(){var a;return Object(n["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,l["a"].getSingle();case 3:a=t.sent,200===a.code?(e.businessForm=Object(o["a"])(Object(o["a"])({},e.businessForm),a.data),e.getCountryListForSelect(),e.businessForm.mailingCountry&&e.getCityListForSelect(e.businessForm.mailingCountry)):e.$message.error(a.msg),t.next=10;break;case 7:t.prev=7,t.t0=t["catch"](0),e.$message.error(t.t0);case 10:case"end":return t.stop()}}),t,null,[[0,7]])})))()},btnClick:function(e){var t=this;return Object(c["a"])(Object(n["a"])().mark((function a(){var r,s;return Object(n["a"])().wrap((function(a){while(1)switch(a.prev=a.next){case 0:if(1===e&&(t.step=e),2!==e){a.next=18;break}return a.prev=2,a.next=5,t.$refs.businessForm.validate();case 5:if(r=a.sent,!r){a.next=13;break}return a.next=9,l["a"].addressUpdate(Object(o["a"])(Object(o["a"])({},t.businessForm),{},{mailingAddress:t.businessForm.address,mailingAddressCn:t.businessForm.addressCn}));case 9:return a.next=11,l["a"].ucardApply(Object(o["a"])(Object(o["a"])({},t.businessForm),{},{cardTypeId:t.cardTypeId}));case 11:s=a.sent,200===s.code?(t.$pigeon.MessageOK(t.$i18n.t("card.Msg.m1")),t.backActivity()):t.$message.error(s.msg);case 13:a.next=18;break;case 15:a.prev=15,a.t0=a["catch"](2),console.log(a.t0);case 18:case"end":return a.stop()}}),a,null,[[2,15]])})))()},getDateList:function(){var e=this;return Object(c["a"])(Object(n["a"])().mark((function t(){var a;return Object(n["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,d["a"].CustomDropdown({platform:""});case 3:a=t.sent,a.code==g.StatusOK?(e.loginOptions=a.data.map((function(t){var a;return t.discountType=1,t.currency=e.groupCurrency(t.currency),t.lable=t.login+" - "+e.groupTypeName(t.type)+" - "+e.$t("Custom.Deposit.AvailableBalance")+t.currency+t.balance,t.disabled=null===(a=t.closeFunctions)||void 0===a?void 0:a.includes("2"),0==t.balance&&(t.disabled=!0),t})),e.loginOptions.push({discountType:2,lable:e.$t("Custom.Deposit.AvailableBalance")+e.reductionData,currency:"",login:-1,disabled:0==e.reductionData})):(e.loginOptions=[],e.$pigeon.MessageError(a.msg)),t.next=10;break;case 7:t.prev=7,t.t0=t["catch"](0),e.loginOptions=[];case 10:case"end":return t.stop()}}),t,null,[[0,7]])})))()},groupTypeName:function(e){return"1"==e?this.$i18n.t("AccountType.ClassicAccount"):"2"==e?this.$i18n.t("AccountType.SeniorAccount"):"5"==e||"6"==e?this.$i18n.t("AccountType.SpeedAccount"):"7"==e?this.$i18n.t("AccountType.StandardAccount"):"8"==e?this.$i18n.t("AccountType.CentAccount"):void 0},groupCurrency:function(e){return"GBP"==e?": £":"USD"==e?": $":"EUR"==e?": €":"USC"==e?": ¢":": $"}},mounted:function(){this.pictLoading=!0,this.pictViews=!0,this.getSingle(),this.cardTypesList(),this.reductionNum(),this.getDateList();var e=this.$route.query,t=e.cardTypeId,a=e.type;t&&(this.cardTypeId=t,this.cardTypes=a,this.step=2)}},h=b,f=(a("d65d"),a("2877")),C=Object(f["a"])(h,r,s,!1,null,"4b660fc5",null);t["default"]=C.exports},d65d:function(e,t,a){"use strict";a("ea00")},ea00:function(e,t,a){},f665:function(e,t,a){"use strict";var r=a("23e7"),s=a("c65b"),i=a("2266"),n=a("59ed"),c=a("825a"),o=a("46c4"),l=a("2a62"),d=a("f99f"),u=d("find",TypeError);r({target:"Iterator",proto:!0,real:!0,forced:u},{find:function(e){c(this);try{n(e)}catch(r){l(this,"throw",r)}if(u)return s(u,this,e);var t=o(this),a=0;return i(t,(function(t,r){if(e(t,a++))return r(t)}),{IS_RECORD:!0,INTERRUPTED:!0}).result}})}}]);