| 1 |
- (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["card-Select"],{"06c5":function(e,t,a){"use strict";a.d(t,"a",(function(){return s}));a("a630"),a("fb6a"),a("b0c0"),a("d3b7"),a("ac1f"),a("00b4"),a("25f0"),a("3ca3");var r=a("6b75");function s(e,t){if(e){if("string"==typeof e)return Object(r["a"])(e,t);var a={}.toString.call(e).slice(8,-1);return"Object"===a&&e.constructor&&(a=e.constructor.name),"Map"===a||"Set"===a?Array.from(e):"Arguments"===a||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a)?Object(r["a"])(e,t):void 0}}},"1b31":function(e,t,a){"use strict";a("8ed1")},"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))}},3835:function(e,t,a){"use strict";function r(e){if(Array.isArray(e))return e}a.d(t,"a",(function(){return c}));a("a4d3"),a("e01a"),a("d28b"),a("14d9"),a("d3b7"),a("3ca3"),a("ddb0");function s(e,t){var a=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=a){var r,s,i,n,c=[],o=!0,l=!1;try{if(i=(a=a.call(e)).next,0===t){if(Object(a)!==a)return;o=!1}else for(;!(o=(r=i.call(a)).done)&&(c.push(r.value),c.length!==t);o=!0);}catch(e){l=!0,s=e}finally{try{if(!o&&null!=a["return"]&&(n=a["return"](),Object(n)!==n))return}finally{if(l)throw s}}return c}}var i=a("06c5");a("d9e2");function n(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function c(e,t){return r(e)||s(e,t)||Object(i["a"])(e,t)||n()}},"4df4":function(e,t,a){"use strict";var r=a("0366"),s=a("c65b"),i=a("7b0b"),n=a("9bdd"),c=a("e95a"),o=a("68ee"),l=a("07fa"),u=a("8418"),d=a("9a1f"),m=a("35a1"),g=Array;e.exports=function(e){var t=i(e),a=o(this),p=arguments.length,b=p>1?arguments[1]:void 0,v=void 0!==b;v&&(b=r(b,p>2?arguments[2]:void 0));var f,h,y,C,w,F,A=m(t),x=0;if(!A||this===g&&c(A))for(f=l(t),h=a?new this(f):g(f);f>x;x++)F=v?b(t[x],x):t[x],u(h,x,F);else for(h=a?new this:[],C=d(t,A),w=C.next;!(y=s(w,C)).done;x++)F=v?n(C,b,[y.value,x],!0):y.value,u(h,x,F);return h.length=x,h}},"5c1d":function(e,t,a){},"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}})},"6b75":function(e,t,a){"use strict";function r(e,t){(null==t||t>e.length)&&(t=e.length);for(var a=0,r=Array(t);a<t;a++)r[a]=e[a];return r}a.d(t,"a",(function(){return r}))},"6cc3":function(e,t){e.exports="data:image/png;base64,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"},"734c":function(e,t,a){"use strict";a("5c1d")},"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"),u=a("2a62"),d=a("c430"),m=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){u(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){u(a,"throw",i)}}}));r({target:"Iterator",proto:!0,real:!0,forced:d},{flatMap:function(e){return n(this),i(e),new m(c(this),{mapper:e,inner:null})}})},"8ed1":function(e,t,a){},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,u,d,m){var g,p,b=l,v=0,f=!!d&&n(d,m);while(v<o)v in a&&(g=f?f(a[v],v,t):a[v],u>0&&r(g)?(p=s(g),b=c(e,t,g,p,b,u-1)-1):(i(b+1),e[b]=g),b++),v++;return b};e.exports=c},a630:function(e,t,a){"use strict";var r=a("23e7"),s=a("4df4"),i=a("1c7e"),n=!i((function(e){Array.from(e)}));r({target:"Array",stat:!0,forced:n},{from:s})},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",{attrs:{id:"card-select"}},[t("div",{staticClass:"promotion-box pb-3 mt-1"},[t("div",{staticClass:"container"},[t("div",{staticClass:"row"},[t("div",{staticClass:"col-12"},[t("div",{staticClass:"promotion-box-white mt-0"},[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),t("div",{attrs:{id:"tabs"}},[t("div",{},[t("div",{staticClass:"row"},[t("div",{staticClass:"col-12"},[t("div",{},[1===e.step?[e.typesList.length>0?t("div",{staticClass:"list-box"},e._l(e.typesList,(function(r){return t("div",{key:r.id,staticClass:"list-item",on:{click:function(t){return e.selectType(r)}}},[t("img",{attrs:{src:"",alt:"",srcset:""}}),t("div",{staticClass:"type"},[e._v(e._s(r.cardName))]),t("div",{staticClass:"desc"},[e._v(e._s(r.cardDesc))]),t("div",{staticClass:"i"},[t("img",{staticClass:"status-img",attrs:{src:a("6cc3"),alt:""}}),t("span",{directives:[{name:"t",rawName:"v-t",value:"card.New.n4",expression:"'card.New.n4'"}],staticClass:"k"}),t("span",{staticClass:"v"},[r.originalCardFee>r.cardFee?t("span",{staticClass:"strike"},[e._v(e._s(r.originalCardFee))]):e._e(),t("span",{staticClass:"strike1"},[e._v(e._s(r.cardFee||"--")+" USD")])])]),e.isPromotionActive?t("div",{staticClass:"i"},[t("span",{staticClass:"k"}),t("span",{directives:[{name:"t",rawName:"v-t",value:"card.New3.p13",expression:"'card.New3.p13'"}],staticClass:"v strike1"})]):e._e(),t("div",{staticClass:"i"},[t("img",{staticClass:"status-img",attrs:{src:a("6cc3"),alt:""}}),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(r.rechargeCurrency||"USD"))])]),t("div",{staticClass:"i"},[t("img",{staticClass:"status-img",attrs:{src:a("6cc3"),alt:""}}),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(r.rechargeMinQuota))])]),t("div",{staticClass:"i"},[t("img",{staticClass:"status-img",attrs:{src:a("6cc3"),alt:""}}),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(r.rechargeMaxQuota))])]),t("div",{staticClass:"i"},[t("img",{staticClass:"status-img",attrs:{src:a("6cc3"),alt:""}}),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(r.rechargeFeeRate)+"%")])])])})),0):e._e()]:t("el-form",{ref:"businessForm",staticClass:"form",attrs:{model:e.businessForm,rules:e.rules,"label-position":"top"}},[t("el-form-item",{attrs:{prop:"login",label:e.$t("card.New.n10")}},[t("el-select",{staticClass:"crm-select",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),t("el-form-item",{attrs:{prop:"lastName",label:e.$t("card.Form.f4")}},[t("el-input",{staticClass:"crm-input",attrs:{disabled:""},model:{value:e.businessForm.lastName,callback:function(t){e.$set(e.businessForm,"lastName",t)},expression:"businessForm.lastName"}})],1),t("el-form-item",{attrs:{prop:"firstName",label:e.$t("card.Form.f5")}},[t("el-input",{staticClass:"crm-input",attrs:{disabled:""},model:{value:e.businessForm.firstName,callback:function(t){e.$set(e.businessForm,"firstName",t)},expression:"businessForm.firstName"}})],1),t("el-form-item",{attrs:{prop:"mailingAreaCode",label:e.$t("card.Form.f1")}},[t("el-select",{staticClass:"crm-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),t("el-form-item",{attrs:{prop:"mailingMobile",label:e.$t("card.New1.d13")}},[t("el-input",{staticClass:"crm-input",model:{value:e.businessForm.mailingMobile,callback:function(t){e.$set(e.businessForm,"mailingMobile",t)},expression:"businessForm.mailingMobile"}})],1),t("el-form-item",{attrs:{prop:"email",label:e.$t("card.Form.f3")}},[t("el-input",{staticClass:"crm-input",attrs:{disabled:""},model:{value:e.businessForm.email,callback:function(t){e.$set(e.businessForm,"email",t)},expression:"businessForm.email"}})],1),t("el-form-item",{attrs:{prop:"birthday",label:e.$t("card.Form.f6")}},[t("el-date-picker",{staticClass:"crm-date",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),t("el-form-item",{attrs:{prop:"gender",label:e.$t("card.Form.f8")}},[t("el-select",{staticClass:"crm-select",attrs:{disabled:"",placeholder:e.$t("card.Form.f14")},model:{value:e.businessForm.gender,callback:function(t){e.$set(e.businessForm,"gender",t)},expression:"businessForm.gender"}},[t("el-option",{attrs:{label:e.$t("card.Form.f15"),value:"M"}}),t("el-option",{attrs:{label:e.$t("card.Form.f16"),value:"F"}})],1)],1),t("el-form-item",{attrs:{prop:"mailingCountry",label:e.$t("card.New1.d8")}},[t("el-select",{staticClass:"crm-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),t("el-form-item",{attrs:{prop:"mailingTown",label:e.$t("card.New1.d9")}},[t("el-select",{staticClass:"crm-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),t("el-form-item",{attrs:{prop:"addressCn",label:e.$t("card.New1.d10")}},[t("el-input",{staticClass:"crm-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),t("el-form-item",{staticClass:"crm-label-none",attrs:{prop:"address",label:e.$t("card.New1.d11")}},[t("el-input",{staticClass:"crm-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),t("el-form-item",{attrs:{prop:"mailingPostCode",label:e.$t("card.New1.d12")}},[t("el-input",{staticClass:"crm-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),2==e.step?[t("div",{staticClass:"form-group text-center mt-5 mb-5"},[t("a",{directives:[{name:"t",rawName:"v-t",value:"card.Btn.Previous",expression:"'card.Btn.Previous'"}],staticClass:"btn-signing",attrs:{href:"javascript:;"},on:{click:function(t){return e.btnClick(1)}}})]),t("div",{staticClass:"form-group text-center mt-5 mb-5"},[t("a",{directives:[{name:"t",rawName:"v-t",value:"card.Btn.Submit",expression:"'card.Btn.Submit'"}],staticClass:"btn-signing",attrs:{href:"javascript:;"},on:{click:function(t){return e.btnClick(2)}}})])]:e._e()],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("f121")),u=a.n(l),d=a("c6e4"),m=a("6df7"),g=a("4371"),p=u.a.Code,b=u.a.Host80,v={name:"card-select",data:function(){var e=this;return{Host80:b,isAuthInfo:!1,pictLoading:!1,authInfo:{},typesList:[],step:1,stepList:[{id:1,name:"card.tab18",status:"finish"},{id:2,name:"card.tab19",status:"process"}],businessForm:{merchantOrderNo:"",cardNumber:"",cardTypeId:"",type:"",mailingAreaCode:"",login:"",mailingMobile:"",email:"",firstName:"",lastName:"",birthday:"",mailingCountry:"",country:"",mailingTown:"",address:"",mailingPostCode:"",gender:""},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"}],login:[{required:!0,message:this.$i18n.t("placeholder.choose"),trigger:"change"}],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"}],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:[],promotionEndDate:new Date("2026-01-31T23:59:59"),loginOptions:[],countryCityList:[],cityList:[]}},computed:{getInfoId:function(){return JSON.parse(this.Session.Get("user",!0)).customInfo.id},lang:function(){return this.Session.Get("lang")},filteredCountryCityList:function(){return this.countryCityList.length?this.countryCityList.filter((function(e){return null!==e.areaCode&&"-"!==e.areaCode})):[]},isPromotionActive:function(){var e=new Date;return e<=this.promotionEndDate}},methods:{getMailingCountry:function(e){e?(console.log(24324234,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(g["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,d["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,d["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,d["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,l,u,m,g,p,b,v;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([d["a"].cardTypesList(),d["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,l=Object(i["a"])(o,2),u=l[0],m=l[1],g=new Set(m.map((function(e){if("fail"!=e.status&&"cancel"!=e.status)return e.cardTypeId}))),p=u,b=p.filter((function(e){return!g.has(e.cardTypeId)})),v=b.filter((function(t){return t.supportHolderRegin.includes(e.businessForm.country)})),e.typesList=v,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,d["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,d["a"].getSingle();case 3:a=t.sent,200===a.code?(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,d["a"].addressUpdate(Object(o["a"])(Object(o["a"])({},t.businessForm),{},{mailingAddress:t.businessForm.address,mailingAddressCn:t.businessForm.addressCn}));case 9:return a.next=11,d["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.next=2,m["a"].CustomDropdown({platform:""});case 2:a=t.sent,a.code==p.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}),console.log(e.loginOptions,123)):e.$pigeon.MessageError(a.msg);case 4:case"end":return t.stop()}}),t)})))()},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)}},f=v,h=(a("1b31"),a("734c"),a("2877")),y=Object(h["a"])(f,r,s,!1,null,"45dab614",null);t["default"]=y.exports}}]);
|