{"version":3,"sources":["webpack:///../web-slot-module/constant/rewardType.js","webpack:///./src/assets/images/specialoffer/close.webp","webpack:///../web-slot-module/components/wallet/deposit.vue?a080","webpack:///./src/assets/images/wallet sync ^\\.\\/calculator.*\\.webp$","webpack:///../web-slot-module/components/wallet/promotionSelect.vue?efcc","webpack:///./src/assets/images/wallet/gifit.webp","webpack:///../web-slot-module/components/wallet/autoDeposit.vue?5be4","webpack:///../web-slot-module/mixins/wallet/autoDeposit.js","webpack:///../web-slot-module/components/wallet/autoDeposit.vue","webpack:///../web-slot-module/components/wallet/autoDeposit.vue?809d","webpack:///../web-slot-module/components/wallet/autoDeposit.vue?b77b","webpack:///./src/assets/images/wallet/gif/coin.gif","webpack:///./src/assets/images/wallet/calculator2.webp","webpack:///../web-slot-module/components/wallet/tpp.vue?d78f","webpack:///./src/assets/images/wallet/calculator3.webp","webpack:///../web-slot-module/components/wallet/promotionSelect.vue?8c31","webpack:///../web-slot-module/mixins/wallet/promotionSelect.js","webpack:///../web-slot-module/components/wallet/promotionSelect.vue","webpack:///../web-slot-module/components/wallet/promotionSelect.vue?677b","webpack:///../web-slot-module/components/wallet/promotionSelect.vue?d1cf","webpack:///./src/assets/images/wallet/arrow-left.webp","webpack:///./src/assets/images/wallet/calculator0.webp","webpack:///../web-slot-module/mixins/wallet/record.js","webpack:///./src/assets/images/wallet/calculator1.webp","webpack:///../web-slot-module/mixins/wallet/index.js","webpack:///../web-slot-module/components/wallet/promotionSelect.vue?5459","webpack:///./src/assets/images/wallet/calculator4.webp","webpack:///../web-slot-module/components/wallet/withdraw.vue?d031","webpack:///../web-slot-module/mixins/wallet/withdraw.js","webpack:///../web-slot-module/components/wallet/withdraw.vue","webpack:///../web-slot-module/components/wallet/withdraw.vue?2607","webpack:///../web-slot-module/components/wallet/withdraw.vue?535a","webpack:///../web-slot-module/components/wallet/tpp.vue?d756","webpack:///../web-slot-module/mixins/wallet/thirdDeposit.js","webpack:///../web-slot-module/components/wallet/tpp.vue","webpack:///../web-slot-module/components/wallet/tpp.vue?5bb5","webpack:///../web-slot-module/components/wallet/tpp.vue?3edd","webpack:///./src/assets/images/wallet/hourglass.svg","webpack:///../web-slot-module/components/wallet/deposit.vue?f39f","webpack:///../web-slot-module/mixins/wallet/deposit.js","webpack:///../web-slot-module/components/wallet/deposit.vue","webpack:///../web-slot-module/components/wallet/deposit.vue?4923","webpack:///../web-slot-module/components/wallet/deposit.vue?179c","webpack:///../web-slot-module/constant/missionType.js","webpack:///./src/assets/images/wallet/back.svg"],"names":["Object","freeze","coin","diamond","module","exports","map","webpackContext","req","id","webpackContextResolve","__webpack_require__","o","e","Error","code","keys","resolve","render","_vm","this","_c","_self","directives","name","rawName","value","isLoading","expression","staticClass","attrs","itemObject","Authority","isMemberBankEmpty","_e","isJoin","_v","_s","promotionList","IsFirst","$t","itemData","GroupID","Code","JoinedPromotion","PromotionID","on","handleQuit","require","activeAgentBank","icon","bankOptions","handleBankInputClick","model","bankValue","callback","$$v","staticStyle","copy","owner","account","bankName","_l","item","key","class","active","mask","IsMask","ItemTypeID","rewardType","RewardRate","numberFilter","Precision","divide","DepositAmount","$store","getters","CurrencyRate","_f","Reward","Flow","MissionType","missionType","netwin","$event","join","countdownTime","isGameView","preventDefault","goToSomething","apply","arguments","staticRenderFns","inject","props","type","Array","default","Boolean","data","result","activePromotion","PromotionGroupID","JoinTime","DueTime","Diff","Timer","computed","mapGetters","isEmpty","MemberBank","BankList","Info","label","moment","format","watch","mounted","rightBoxActive","find","currentPromotion","getJoinedPromotion","methods","val","$options","filters","toThousandFilter","submit","$emit","aux","document","createElement","setAttribute","body","appendChild","select","execCommand","removeChild","$message","success","message","confirm","confirmButtonText","cancelButtonText","showClose","closeOnClickModal","closeOnPressEscape","then","async","commit","res","API","Financial","AutoDepositCheck","catch","Data","ErrorCode","alert","Tip","dispatch","console","log","outPromotion","Activity","CancelJoinedAutoDepositPromotion","clearInterval","GetJoinedAutoDepositPromotion","response","GetActivityDeposit","Mission","dueTime","utc","currentTime","local","diff","setInterval","components","BaseSelect","mixins","component","swiperBreakpoints","setSwiper","pageChange","PromotionGroup","index","nativeOn","slideTo","joinedGroupID","lock","style","backgroundImage","PromotionCardPath","joinBtnLoading","swiper","realIndex","stopPropagation","handleInfoClick","swiperPagination","activeInfo","Name","Content","Number","740","height","slidesPerView","844","851","896","1023","1366","activeIndex","length","RawPromotionGroup","filter","allowTouchMove","$nextTick","setInitialSlide","updateSwiperStatus","dsiable","enable","fetchDepositListData","formData","findIndex","action","Swiper","SwiperSlide","selectType","options","table","headers","columns","accounting","locale","fields","cashIn","cashOut","setTable","PassbookRecord","formatter","row","column","cellValue","undefined","diamondFilter","clearTable","CashInRecord","CashOutRecord","$refs","$el","scrollTop","refresh","getCashIn","getCashOut","getAccounting","err","title","String","dialogName","show","closeCallback","Function","isShowCheckPromotion","tabKey","subTabKey","tabList","tabItemInfo","activeIdx","mainTabs","subTabs","joinedPromotionGroupID","handler","Keyword","depositTab","subTab","from","to","openDeposit","changeView","immediate","deep","componentKey","includes","CheckPromotion","DepositPromotion","PaymentCheckData","isPromotionShow","checkPromotion","PromotionList","joinPromotion","tab","close","GetHasPromotionCanFinish","IsJoin","NormalRelieve","CanRelease","MissionClass","ID","Finish_Promotion","SettleWaitTime","showPromotionHint","step","isInfoShow","ref","CashFlow","shake","isTextShake","numberInputFocus","WithdrawLowerLimit","WithdrawUpperLimit","scopedSlots","_u","fn","failed","errors","form","Amount","AmountPlaceholder","domProps","target","composing","$set","amountKey","idx","handleCalculatorClick","CurrencyID","handleAmountSubmit","activeMemberBank","MemberBankIcon","memberBankOptions","handleMemberBankChange","Memo","handleBack","MemberBankID","MemberBankAccount","prefix_coin_word","memberBankList","bankInfo","amounts","getMemberBank","getMemberBankInfo","validate","valid","k_amount","thb_amount","multiply","Withdraw","$track","event_category","event_label","dash","obj_WithdrawLowerLimit","obj_WithdrawUpperLimit","CurrencyName","num","setTimeout","v","findBank","bank","DepositLowerLimit","DepositUpperLimit","placeholder","DailyLimit","Fee","handleStep1Submit","columnData","filterPromotionList","Label","InputType","Validator","dynamicForm","InputName","CanCopy","Require","op","Value","ChooseAmount","ActivityID","activeAmount","LowerLimit","UpperLimit","lower","upper","amount","lowerCondition","upperConfition","allData","TabID","reduce","acc","curr","randomSelectBank","refName","isValid","validateForm","CheckActivityDeposit","MethodType","GetTppURL","IsNeedRedirect","window","open","PaymentUrl","Promise","reject","randomList","cloneDeep","Math","floor","random","formAmount","handlePromotionClick","disabledAmount","handleAmountClick","handleAmoutInput","checkStep2Form","Image","depositLimit","Lower","Upper","amountPlaceholder","handleNext","agentBankList","getAgentBank","agentBankModel","AgentBankRealName","memberBankModel","image","click","accept","onFileChange","AgentBankID","AgentBank","max","min","rate","AgentBankAccount","files","dataTransfer","isIMAGE","isLt1M","size","error","createImage","reader","FileReader","readAsDataURL","onload","openFile","compressImage","file","self","maxSizeMB","initialQuality","imageCompression","onloadend","base64data","event","vm","removeImage","getElementById","Deposit","form1","AgentBankSelect","MemberBankSelect","MessageDialog","bet"],"mappings":"yIAAeA,cAAOC,OAAO,CAC3BC,KAAM,EACNC,QAAS,K,qBCFXC,EAAOC,QAAU,2hG,oCCAjB,W,uBCAA,IAAIC,EAAM,CACT,qBAAsB,OACtB,qBAAsB,OACtB,qBAAsB,OACtB,qBAAsB,OACtB,qBAAsB,QAIvB,SAASC,EAAeC,GACvB,IAAIC,EAAKC,EAAsBF,GAC/B,OAAOG,EAAoBF,GAE5B,SAASC,EAAsBF,GAC9B,IAAIG,EAAoBC,EAAEN,EAAKE,GAAM,CACpC,IAAIK,EAAI,IAAIC,MAAM,uBAAyBN,EAAM,KAEjD,MADAK,EAAEE,KAAO,mBACHF,EAEP,OAAOP,EAAIE,GAEZD,EAAeS,KAAO,WACrB,OAAOhB,OAAOgB,KAAKV,IAEpBC,EAAeU,QAAUP,EACzBN,EAAOC,QAAUE,EACjBA,EAAeE,GAAK,Q,oCC1BpB,W,gDCAAL,EAAOC,QAAU,IAA0B,kC,6DCA3C,IAAIa,E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EAEdzR,KAAKuS,KAAK8D,WAAa,QCnQhB,GACfxM,YACA6R,uBACAC,wBACAC,sBAEA7R,YC7F+W,I,wBCQ3WC,EAAY,eACd,EACAlK,EACA2E,GACA,EACA,KACA,WACA,MAIa,OAAAuF,E,2CCnBApL,cAAOC,OAAO,CAC3Bgd,IAAK,EACL7X,OAAQ,K,qBCFVhF,EAAOC,QAAU,IAA0B","file":"static/js/chunk-735ac7b9.js","sourcesContent":["export default Object.freeze({\n coin: 1,\n diamond: 2\n})\n","module.exports = \"data:image/webp;base64,UklGRvgIAABXRUJQVlA4WAoAAAAQAAAAZwAAZgAAQUxQSKgDAAABoITtnyFJ+o3W3r21/dh299i2Z9a2bds+2WPbtm2zrf+hqjIifhF1j4gJgPq1XV9fUH309/sz4Pbb10ngy7+U2HBdtzcW7pv/WpdrDMXMEsX32drct14Cr73bxOhqUV6WTtVxs3jfUKjtddFZX0T0oqg/relN0VufzxI2Q3ROCtHxtuiuzeOIXCp6J2l4V/RX5zDEbhDdXyi9JyYvZplL2Cn631R4X8yeTzeVclhMPuXpfTF9Nt1M1hkxe6+HcWL+VKqJgstiekyA+DoCOZ6sr7xRzHf0N1cojybq6iqMu672GSukhxL19BXOn31Wssj+BB3DhHUAcIXw7olTmyi0c4AqItkVq/KAELfBS0yyLdbbU8JcitlUsjnay+tC/QxOccnGyECfCvc0bCOTdZH+fhLyS/iWTVZGAgiZJOzVGE0ny8IRNlPoZyCKT5ZELhH+54AjfLJOLCwHPrPAynZAYlBYCgCvBoORPpjjvj/hN+6M647e5g/p5x3XB4GzLjntTnjNqXbYKHjPq3XWAKjm1zuqO9SLmlzUUgWdJS3uqS2C3rJW15zLhu4KxxxPg/6OTtmbCJOdHbI5Fma7OWNVJEz3cMS8cJjv7YTJoWDs64BJIeAcaN3XoB1s2bsgHmbVC6AeYdFjIB9rzV1gH2LLKLCPkyBxn9g7jOsJsXkI06ti90Cej8X2fiw/iP29KUImiQt7EoRNEzd2MxaxSFzZxVD0GnFnRyP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LSPgqWO6gsU7S6UxJwf+lv2mI85eNCcEGJCsl33M9HLdaCS2R4g3p8/suu1pyEgrmpYOLyDVzjf/R9FS2vpql4dreso5dcBqYo57lA2cdUTx3HCVXz4AA\"","export * from \"-!../../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--9-oneOf-1-0!../../../../node_modules/css-loader/dist/cjs.js??ref--9-oneOf-1-1!../../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../../node_modules/postcss-loader/src/index.js??ref--9-oneOf-1-2!../../../../node_modules/sass-loader/dist/cjs.js??ref--9-oneOf-1-3!../../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./deposit.vue?vue&type=style&index=0&id=ec21cad8&prod&scoped=true&lang=scss&\"","var map = {\n\t\"./calculator0.webp\": \"a4e0\",\n\t\"./calculator1.webp\": \"b68d\",\n\t\"./calculator2.webp\": \"7150\",\n\t\"./calculator3.webp\": \"8463\",\n\t\"./calculator4.webp\": \"c528\"\n};\n\n\nfunction webpackContext(req) {\n\tvar id = webpackContextResolve(req);\n\treturn __webpack_require__(id);\n}\nfunction webpackContextResolve(req) {\n\tif(!__webpack_require__.o(map, req)) {\n\t\tvar e = new Error(\"Cannot find module '\" + req + \"'\");\n\t\te.code = 'MODULE_NOT_FOUND';\n\t\tthrow e;\n\t}\n\treturn map[req];\n}\nwebpackContext.keys = function webpackContextKeys() {\n\treturn Object.keys(map);\n};\nwebpackContext.resolve = webpackContextResolve;\nmodule.exports = webpackContext;\nwebpackContext.id = \"3deb\";","export * from \"-!../../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--9-oneOf-1-0!../../../../node_modules/css-loader/dist/cjs.js??ref--9-oneOf-1-1!../../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../../node_modules/postcss-loader/src/index.js??ref--9-oneOf-1-2!../../../../node_modules/sass-loader/dist/cjs.js??ref--9-oneOf-1-3!../../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./promotionSelect.vue?vue&type=style&index=1&id=24c88f31&prod&lang=scss&scoped=true&\"","module.exports = __webpack_public_path__ + \"static/img/gifit.d2012363.webp\";","var render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',{directives:[{name:\"loading\",rawName:\"v-loading\",value:(_vm.isLoading),expression:\"isLoading\"}],staticClass:\"autoDeposit\",attrs:{\"element-loading-background\":\"rgba(0, 0, 0, 0)\"}},[(_vm.itemObject.Authority && !_vm.isLoading && !_vm.isMemberBankEmpty)?[(_vm.isJoin)?_c('div',{staticClass:\"title\"},[_vm._v(_vm._s(_vm.promotionList[0] && _vm.promotionList[0].IsFirst ? 'First Deposit' : _vm.$t('Shared.Promotion')))]):_vm._e(),_c('div',{staticClass:\"left-box\"},[(_vm.isJoin && !(_vm.itemObject.itemData && _vm.itemObject.itemData.GroupID) && !(_vm.itemObject.itemData && _vm.itemObject.itemData.Code) && !_vm.JoinedPromotion.PromotionID)?_c('div',{staticClass:\"quit\",attrs:{\"data-at-element\":\"autoDeposit-quit\"},on:{\"click\":_vm.handleQuit}},[_c('img',{attrs:{\"src\":require(\"@/assets/images/wallet/arrow-left.webp\")}}),_c('span',[_vm._v(_vm._s(_vm.$t('Shared.Quit')))])]):_vm._e(),_c('div',{staticClass:\"form-block\"},[_c('img',{staticClass:\"icon\",attrs:{\"src\":_vm.activeAgentBank.icon}}),_c('BaseSelect',{attrs:{\"options\":_vm.bankOptions,\"useBankIcon\":true,\"data-at-element\":\"autoDeposit-bank-select\"},on:{\"change\":_vm.handleBankInputClick},model:{value:(_vm.bankValue),callback:function ($$v) {_vm.bankValue=$$v},expression:\"bankValue\"}}),_c('button',{staticClass:\"calculator-btn copy\",staticStyle:{\"margin-left\":\"15px\"},attrs:{\"data-at-element\":\"autoDeposit-copy\"},on:{\"click\":_vm.copy}})],1),_c('div',{staticClass:\"info-to-copy\"},[_c('div',[_c('div',{staticClass:\"form-block\"},[_c('label',[_vm._v(_vm._s(_vm.$t('Shared.Owner')))]),_c('p',[_vm._v(_vm._s(_vm.activeAgentBank.owner))])]),_c('div',{staticClass:\"form-block\"},[_c('label',[_vm._v(_vm._s(_vm.$t('Shared.BankAccount')))]),_c('p',[_vm._v(_vm._s(_vm.activeAgentBank.account))])]),_c('div',{staticClass:\"form-block\"},[_c('label',[_vm._v(_vm._s(_vm.$t('Shared.Bank')))]),_c('p',[_vm._v(_vm._s(_vm.activeAgentBank.bankName))])])])]),_c('div',{staticClass:\"hint\"},[_c('p',{staticClass:\"hint-title\"},[_vm._v(_vm._s(_vm.$t('Message.Msg.HowToDeposit')))]),_c('p',{staticClass:\"hint-content\"},[_vm._v(_vm._s(_vm.$t('Message.AutoDepositContent')))])])]),(_vm.isJoin)?_c('div',{staticClass:\"right-box\"},_vm._l((_vm.promotionList),function(item){return _c('div',{key:item.PromotionID,staticClass:\"promotion-card\",class:{ active: _vm.JoinedPromotion.PromotionID === item.PromotionID, mask: item.IsMask }},[(item.ItemTypeID === _vm.rewardType.coin)?_c('div',{staticClass:\"extra-box\"},[_c('b',[_vm._v(\"+ \"+_vm._s(item.RewardRate)+\"%\")]),_c('span',{staticClass:\"coin\"},[_vm._v(_vm._s(_vm.numberFilter(_vm.Precision.divide(item.DepositAmount, _vm.$store.getters.CurrencyRate))))])]):_c('div',{staticClass:\"extra-box\"},[_c('span',{staticClass:\"diamond\"},[_vm._v(_vm._s(_vm._f(\"diamondFilter\")(item.Reward)))]),_c('img',{staticClass:\"diamond\",attrs:{\"src\":require(\"@/assets/images/common/diamond.webp\"),\"alt\":\"diamond\"}}),_c('div',{staticClass:\"plus\"})]),_c('div',{staticClass:\"coin-box\"},[_c('img',{staticClass:\"icon\",attrs:{\"src\":require(\"@/assets/images/lobby/coin.webp\"),\"alt\":\"coin\"}}),(item.ItemTypeID === 1)?_c('span',[_vm._v(_vm._s(_vm.numberFilter(_vm.Precision.divide(item.Reward + item.DepositAmount, _vm.$store.getters.CurrencyRate))))]):_c('span',[_vm._v(_vm._s(_vm.numberFilter(_vm.Precision.divide(item.DepositAmount, _vm.$store.getters.CurrencyRate))))])]),_c('div',{staticClass:\"line\"}),(item.Flow)?_c('div',{staticClass:\"wager\"},[_c('span',[_vm._v(_vm._s(item.MissionType === _vm.missionType.netwin ? _vm.$t('Shared.Netwin') : _vm.$t('Shared.Flow'))+\":\")]),_c('span',[_vm._v(_vm._s(_vm.numberFilter(_vm.Precision.divide(item.Flow, _vm.$store.getters.CurrencyRate))))])]):_vm._e(),_c('button',{staticClass:\"primary\",attrs:{\"disabled\":(_vm.JoinedPromotion.PromotionID && _vm.JoinedPromotion.PromotionID !== item.PromotionID) || item.IsMask,\"data-at-element\":\"autoDeposit-promotion-join\"},on:{\"click\":function($event){return _vm.join(item)}}},[_vm._v(_vm._s(_vm.numberFilter(_vm.Precision.divide(item.DepositAmount, _vm.$store.getters.CurrencyRate))))]),(_vm.JoinedPromotion.PromotionID === item.PromotionID)?_c('div',{staticClass:\"count-down\"},[_c('img',{attrs:{\"src\":require(\"@/assets/images/wallet/hourglass.svg\")}}),_c('span',[_vm._v(_vm._s(_vm.countdownTime))])]):_vm._e()])}),0):_vm._e()]:_vm._e(),(!_vm.itemObject.Authority || _vm.isMemberBankEmpty)?_c('div',{staticClass:\"no-auhtority\"},[_c('p',{staticClass:\"no-authority-title\"},[_vm._v(_vm._s(_vm.$t('Shared.NoAuthority')))]),_c('p',{staticClass:\"no-authority-content\"},[_vm._v(_vm._s(_vm.$t('Shared.GoToBindMember')))]),(!_vm.$store.getters.isGameView)?_c('button',{staticClass:\"primary\",on:{\"click\":function($event){$event.preventDefault();return _vm.goToSomething.apply(null, arguments)}}},[_vm._v(_vm._s(_vm.$t('Shared.Confirm')))]):_vm._e()]):_vm._e()],2)\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","import API from '../../api'\nimport { MessageBox } from 'element-ui'\nimport { isEmpty } from 'lodash'\nimport { mapGetters } from 'vuex'\nimport rewardType from '../../constant/rewardType'\nimport missionType from '../../constant/missionType'\n\nexport default {\n inject: ['Precision', 'moment'],\n name: 'AutoDeposit',\n props: {\n itemObject: {\n type: Object || Array,\n default: () => {\n return []\n }\n },\n promotionList: {\n type: Array,\n default: () => []\n },\n isJoin: {\n type: Boolean,\n default: false\n }\n },\n data() {\n return {\n rewardType,\n missionType,\n isLoading: false,\n result: {\n itemObject: null\n },\n bankValue: '',\n activeAgentBank: {},\n activePromotion: {},\n JoinedPromotion: {\n PromotionGroupID: null,\n PromotionID: null,\n JoinTime: null,\n DueTime: null,\n Diff: 0,\n Timer: null\n }\n }\n },\n computed: {\n ...mapGetters('wallet', ['MemberBank']),\n isMemberBankEmpty() {\n return isEmpty(this.MemberBank.data?.BankList)\n },\n bankOptions() {\n return this.itemObject.Info.map(item => ({\n ...item,\n value: item.account + item.bankName,\n label: item.account\n }))\n },\n countdownTime() {\n return this.JoinedPromotion.Diff <= 0 ? '00:00' : this.moment(this.JoinedPromotion.Diff).format('mm:ss')\n }\n },\n watch: {\n isJoin(value) {\n if (value) {\n\n }\n }\n },\n mounted() {\n if (this.itemObject.Authority) {\n this.bankValue = this.itemObject.Info[0]?.account + this.itemObject.Info[0]?.bankName\n this.activeAgentBank = this.itemObject.Info[0]\n }\n if (this.itemObject && this.itemObject.itemData) {\n this.rightBoxActive = null\n const find = this.promotionList.find(item => item.PromotionID === this.itemObject.itemData?.PromotionID)\n if (find) this.currentPromotion = find\n return\n }\n this.currentPromotion = this.promotionList[0]\n this.getJoinedPromotion()\n },\n methods: {\n numberFilter(val) {\n return this.$options.filters.toThousandFilter(val, 0)\n },\n submit() {\n this.$emit('submit')\n },\n copy() {\n const aux = document.createElement('input')\n aux.setAttribute('value', this.activeAgentBank.account)\n document.body.appendChild(aux)\n aux.select()\n document.execCommand('copy')\n document.body.removeChild(aux)\n this.$message.success({\n message: this.$t('Shared.Copy') + this.$t('Shared.Success')\n })\n },\n goToSomething() {\n this.$emit('goToSomething')\n },\n async join(item) {\n if (item.PromotionID === this.JoinedPromotion.PromotionID) {\n this.outPromotion()\n return\n }\n MessageBox.confirm(this.$t('Shared.AskJoinAutoDepositPromotion'), '', {\n confirmButtonText: this.$t('Shared.Confirm'),\n cancelButtonText: this.$t('Shared.Cancel'),\n showClose: false,\n closeOnClickModal: false,\n closeOnPressEscape: false\n })\n .then(async () => {\n this.activePromotion = item\n this.$store.commit('app/SET_ISLOADING', true)\n const res = await API.Financial.AutoDepositCheck({\n PromotionID: this.activePromotion.PromotionID,\n Code: this.itemObject?.itemData?.Code\n }).catch(e => {\n this.$store.commit('app/SET_ISLOADING', false)\n throw e\n })\n this.$store.commit('app/SET_ISLOADING', false)\n const { Data, ErrorCode } = res\n if (ErrorCode === 0) {\n MessageBox.alert(Data?.Tip, {\n confirmButtonText: this.$t('Shared.Confirm')\n })\n if (this.itemObject?.itemData?.Code) {\n this.$store.dispatch('promotion/setJoinedPromoCode', this.itemObject?.itemData?.Code)\n }\n this.getJoinedPromotion()\n }\n })\n .catch(() => {\n console.log('cancel')\n })\n },\n async outPromotion(item) {\n MessageBox.confirm(this.$t('Shared.AskCancelJoinedPromotion'), '', {\n confirmButtonText: this.$t('Shared.Confirm'),\n cancelButtonText: this.$t('Shared.Cancel'),\n showClose: false,\n closeOnClickModal: false,\n closeOnPressEscape: false\n })\n .then(async () => {\n const { PromotionID } = this.JoinedPromotion\n API.Activity.CancelJoinedAutoDepositPromotion({\n PromotionID,\n Code: this.$store.getters['promotion/JoinedPromoCode']\n })\n .then(res => {\n if (res.ErrorCode === 0) {\n this.$message.success({\n message: this.$t('Shared.Success')\n })\n clearInterval(this.JoinedPromotion.Timer)\n this.JoinedPromotion = {\n Diff: 0,\n PromotionID: null,\n PromotionGroupID: null,\n Timer: null\n }\n this.$store.dispatch('promotion/setJoinedPromoCode', null)\n }\n })\n })\n .catch(() => {\n console.log('cancel')\n })\n },\n handleBankInputClick(data) {\n this.itemObject.Info.find(item => {\n if (item.account + item.bankName === data) {\n this.activeAgentBank = item\n return true\n }\n return false\n })\n },\n async getJoinedPromotion() {\n const res = await API.Activity.GetJoinedAutoDepositPromotion()\n .catch(() => {\n this.JoinedPromotion = {\n PromotionGroupID: null,\n PromotionID: null,\n JoinTime: null,\n DueTime: null,\n Diff: 0,\n Timer: null\n }\n })\n if (res.ErrorCode === 0) {\n this.JoinedPromotion = {\n ...this.JoinedPromotion,\n ...res.Data\n }\n } else {\n this.JoinedPromotion = {\n PromotionGroupID: null,\n PromotionID: null,\n JoinTime: null,\n DueTime: null,\n Diff: 0,\n Timer: null\n }\n }\n if (this.JoinedPromotion.PromotionGroupID) {\n const response = await API.Financial.GetActivityDeposit({\n PromotionGroupID: this.JoinedPromotion.PromotionGroupID,\n Code: this.$store.getters['promotion/JoinedPromoCode']\n })\n .catch(() => {\n console.log('error')\n })\n if (response.ErrorCode === 0) {\n this.$emit('joinPromotion', {\n id: this.JoinedPromotion.PromotionGroupID,\n data: response.Data.Mission\n })\n }\n } else {\n this.$store.dispatch('promotion/setJoinedPromoCode', null)\n }\n const dueTime = this.moment.utc(this.JoinedPromotion.DueTime)\n const currentTime = this.moment().local().utc()\n const diff = dueTime.diff(currentTime)\n this.JoinedPromotion.Diff = diff\n if (this.JoinedPromotion.Diff > 0) {\n this.JoinedPromotion.Timer = setInterval(() => {\n this.JoinedPromotion.Diff -= 1_000\n if (this.JoinedPromotion.Diff < 0) {\n clearInterval(this.JoinedPromotion.Timer)\n this.JoinedPromotion = {\n Diff: 0,\n PromotionID: null,\n PromotionGroupID: null,\n Timer: null\n }\n }\n }, 1_000)\n } else {\n this.JoinedPromotion = {\n Diff: 0,\n PromotionID: null,\n PromotionGroupID: null,\n Timer: null\n }\n }\n },\n handleQuit() {\n this.$emit('cancelJoin')\n }\n }\n}\n","\n.autoDeposit(v-loading=\"isLoading\" element-loading-background=\"rgba(0, 0, 0, 0)\")\n template(v-if=\"itemObject.Authority && !isLoading && !isMemberBankEmpty\")\n .title(v-if=\"isJoin\") {{ promotionList[0] && promotionList[0].IsFirst ? 'First Deposit' : $t('Shared.Promotion') }}\n .left-box\n .quit(v-if=\"isJoin && !(itemObject.itemData && itemObject.itemData.GroupID) && !(itemObject.itemData && itemObject.itemData.Code) && !JoinedPromotion.PromotionID\" @click=\"handleQuit\" data-at-element=\"autoDeposit-quit\")\n img(src=\"@/assets/images/wallet/arrow-left.webp\")\n span {{ $t('Shared.Quit') }}\n .form-block\n img.icon(:src=\"activeAgentBank.icon\")\n BaseSelect(v-model=\"bankValue\" :options=\"bankOptions\" :useBankIcon=\"true\" @change=\"handleBankInputClick\" data-at-element=\"autoDeposit-bank-select\")\n button.calculator-btn.copy(data-at-element=\"autoDeposit-copy\" style=\"margin-left: 15px\" @click=\"copy\")\n div.info-to-copy\n div\n .form-block\n label {{ $t('Shared.Owner') }}\n p {{ activeAgentBank.owner }}\n .form-block\n label {{ $t('Shared.BankAccount') }}\n p {{ activeAgentBank.account }}\n .form-block\n label {{ $t('Shared.Bank') }}\n p {{ activeAgentBank.bankName }}\n .hint\n p.hint-title {{ $t('Message.Msg.HowToDeposit') }}\n p.hint-content {{ $t('Message.AutoDepositContent') }}\n .right-box(v-if=\"isJoin\")\n .promotion-card(v-for=\"item in promotionList\", :key=\"item.PromotionID\", :class=\"{ active: JoinedPromotion.PromotionID === item.PromotionID, mask: item.IsMask }\")\n .extra-box(v-if=\"item.ItemTypeID === rewardType.coin\")\n b + {{ item.RewardRate }}%\n span.coin {{ numberFilter(Precision.divide(item.DepositAmount, $store.getters.CurrencyRate)) }}\n .extra-box(v-else)\n span.diamond {{ item.Reward | diamondFilter }}\n img.diamond(src=\"@/assets/images/common/diamond.webp\" alt=\"diamond\")\n .plus\n .coin-box\n img.icon(src=\"@/assets/images/lobby/coin.webp\" alt=\"coin\")\n span(v-if=\"item.ItemTypeID === 1\") {{ numberFilter(Precision.divide(item.Reward + item.DepositAmount, $store.getters.CurrencyRate)) }}\n span(v-else) {{ numberFilter(Precision.divide(item.DepositAmount, $store.getters.CurrencyRate)) }}\n .line\n .wager(v-if=\"item.Flow\")\n span {{ item.MissionType === missionType.netwin ? $t('Shared.Netwin') : $t('Shared.Flow') }}:\n span {{ numberFilter(Precision.divide(item.Flow, $store.getters.CurrencyRate)) }}\n button.primary(:disabled=\"(JoinedPromotion.PromotionID && JoinedPromotion.PromotionID !== item.PromotionID) || item.IsMask\", @click=\"join(item)\" data-at-element=\"autoDeposit-promotion-join\") {{ numberFilter(Precision.divide(item.DepositAmount, $store.getters.CurrencyRate)) }}\n .count-down(v-if=\"JoinedPromotion.PromotionID === item.PromotionID\")\n img(src=\"@/assets/images/wallet/hourglass.svg\")\n span {{ countdownTime }}\n .no-auhtority(v-if=\"!itemObject.Authority || isMemberBankEmpty\")\n p.no-authority-title {{ $t('Shared.NoAuthority') }}\n p.no-authority-content {{ $t('Shared.GoToBindMember') }}\n button.primary(v-if=\"!$store.getters.isGameView\" @click.prevent='goToSomething') {{ $t('Shared.Confirm') }}\n\n\n","import mod from \"-!../../../../node_modules/cache-loader/dist/cjs.js??ref--13-0!../../../../node_modules/thread-loader/dist/cjs.js!../../../../node_modules/babel-loader/lib/index.js!../../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./autoDeposit.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../node_modules/cache-loader/dist/cjs.js??ref--13-0!../../../../node_modules/thread-loader/dist/cjs.js!../../../../node_modules/babel-loader/lib/index.js!../../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./autoDeposit.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./autoDeposit.vue?vue&type=template&id=a09121ca&lang=pug&\"\nimport script from \"./autoDeposit.vue?vue&type=script&lang=js&\"\nexport * from \"./autoDeposit.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","module.exports = __webpack_public_path__ + \"static/img/coin.0e1db4e3.gif\";","module.exports = __webpack_public_path__ + \"static/img/calculator2.fed52c4c.webp\";","export * from \"-!../../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--9-oneOf-1-0!../../../../node_modules/css-loader/dist/cjs.js??ref--9-oneOf-1-1!../../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../../node_modules/postcss-loader/src/index.js??ref--9-oneOf-1-2!../../../../node_modules/sass-loader/dist/cjs.js??ref--9-oneOf-1-3!../../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./tpp.vue?vue&type=style&index=0&id=6e6721f9&prod&scoped=true&lang=scss&\"","module.exports = __webpack_public_path__ + \"static/img/calculator3.b3b35dbb.webp\";","var render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',{staticClass:\"promotion-select\"},[_c('swiper',{attrs:{\"centered-slides\":true,\"direction\":\"vertical\",\"height\":240,\"slides-per-view\":1.25,\"breakpoints\":_vm.swiperBreakpoints},on:{\"swiper\":_vm.setSwiper,\"slideChange\":_vm.pageChange}},_vm._l((_vm.PromotionGroup.data),function(item,index){return _c('swiper-slide',{key:item.PromotionGroupID,attrs:{\"data-at-element\":\"promotion-slide\"},nativeOn:{\"click\":function($event){return _vm.slideTo(index)}}},[_c('div',{staticClass:\"promotion-btn\",class:{ active: _vm.isJoin && (_vm.id === item.PromotionGroupID || _vm.joinedGroupID === item.PromotionGroupID), lock: item.IsMask },style:({ backgroundImage: `url(${item.PromotionCardPath})` })},[_c('div',{staticClass:\"title\"},[_vm._v(_vm._s(_vm.$t('Shared.Promotion')))]),_c('img',{staticClass:\"pig\",attrs:{\"src\":require(\"@/assets/images/wallet/gifit.webp\")}}),_c('button',{directives:[{name:\"show\",rawName:\"v-show\",value:(!_vm.isJoin),expression:\"!isJoin\"},{name:\"loading\",rawName:\"v-loading\",value:(_vm.joinBtnLoading),expression:\"joinBtnLoading\"}],staticClass:\"primary join\",attrs:{\"disabled\":_vm.joinBtnLoading,\"data-at-element\":\"promotion-join\"},on:{\"click\":function($event){return _vm.join(index)}}},[_vm._v(_vm._s(_vm.$t('Shared.Join')))]),(_vm.swiper && (index === _vm.swiper.realIndex))?_c('div',{staticClass:\"info\",attrs:{\"data-at-element\":\"promotion-info\"},on:{\"click\":function($event){$event.stopPropagation();return _vm.handleInfoClick('open', item)}}}):_vm._e()])])}),1),_c('div',{staticClass:\"swiper-pagination\"},[_vm._v(_vm._s(_vm.swiperPagination))]),(_vm.activeInfo)?_c('div',{staticClass:\"info-content\",on:{\"click\":function($event){$event.stopPropagation();}}},[_c('img',{staticClass:\"close\",attrs:{\"src\":require(\"@/assets/images/specialoffer/close.webp\"),\"data-at-element\":\"promotion-info-close\"},on:{\"click\":function($event){$event.stopPropagation();return _vm.handleInfoClick('close')}}}),_c('div',{staticClass:\"info-content-box\"},[_c('p',{staticClass:\"info-title\"},[_vm._v(_vm._s(_vm.activeInfo.Name))]),_c('p',[_vm._v(_vm._s(_vm.activeInfo.Content))])])]):_vm._e()],1)\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","import API from '../../api'\nimport { mapGetters } from 'vuex'\n\nexport default {\n props: {\n isJoin: {\n type: Boolean,\n default: false\n },\n id: {\n type: Number | null,\n default: null\n }\n },\n data() {\n return {\n swiper: null,\n swiperBreakpoints: {\n // samsung s8\n 740: {\n height: 230,\n slidesPerView: 1.25\n },\n // 12 pro\n 844: {\n height: 260,\n slidesPerView: 1.35\n },\n // pixel 5\n 851: {\n height: 270,\n slidesPerView: 1.4\n },\n // XR\n 896: {\n height: 280,\n slidesPerView: 1.4\n },\n 1023: {\n height: 350,\n slidesPerView: 1.2\n },\n 1366: {\n height: 500,\n slidesPerView: 1.2\n }\n },\n activeInfo: null,\n joinedGroupID: null,\n joinBtnLoading: false\n }\n },\n computed: {\n swiperPagination() {\n if (!this.swiper) return ''\n return `${this.swiper.activeIndex + 1} / ${\n this.PromotionGroup.data.length\n }`\n },\n ...mapGetters('wallet', {\n RawPromotionGroup: 'PromotionGroup'\n }),\n PromotionGroup() {\n return {\n ...this.RawPromotionGroup,\n data: this.RawPromotionGroup.data.filter(item => !item.IsMask)\n }\n }\n },\n watch: {\n isJoin(value) {\n this.swiper.allowTouchMove = !value\n },\n id(val) {\n if (val) {\n this.$nextTick(() => {\n this.setInitialSlide()\n })\n }\n }\n },\n methods: {\n setSwiper(swiper) {\n this.swiper = swiper\n if (this.id) this.setInitialSlide()\n this.updateSwiperStatus()\n },\n updateSwiperStatus() {\n if (this.isJoin) this.swiper.dsiable()\n else this.swiper.enable()\n },\n async join(index) {\n this.joinBtnLoading = true\n this.slideTo(index)\n const id = this.PromotionGroup.data[index].PromotionGroupID\n const data = await this.fetchDepositListData(id)\n this.joinedGroupID = id\n this.$emit('join', { id, data })\n this.updateSwiperStatus()\n this.joinBtnLoading = false\n },\n fetchDepositListData(id) {\n const formData = { PromotionGroupID: id }\n return API.Financial.GetActivityDeposit(formData)\n .then((response) =>\n response?.ErrorCode === 0 ? response.Data.Mission : []\n )\n .catch(() => {\n console.log('error')\n return []\n })\n },\n pageChange() {\n this.handleInfoClick('close')\n this.$emit('handlePageChange', this.swiper.realIndex)\n },\n setInitialSlide() {\n const index = this.PromotionGroup.data.findIndex(\n (data) => data.PromotionGroupID === this.id\n )\n this.swiper.slideTo(index)\n },\n slideTo(index) {\n if (this.isJoin) return\n this.swiper.slideTo(index)\n },\n handleInfoClick(action, item) {\n this.activeInfo = action === 'open' ? item : null\n }\n }\n}\n","\n.promotion-select\n swiper(\n :centered-slides='true',\n direction='vertical',\n :height='240',\n :slides-per-view='1.25',\n :breakpoints='swiperBreakpoints',\n @swiper='setSwiper',\n @slideChange='pageChange'\n )\n swiper-slide(v-for='(item, index) in PromotionGroup.data', :key='item.PromotionGroupID' data-at-element=\"promotion-slide\" @click.native='slideTo(index)')\n .promotion-btn(:class='{ active: isJoin && (id === item.PromotionGroupID || joinedGroupID === item.PromotionGroupID), lock: item.IsMask }', :style='{ backgroundImage: `url(${item.PromotionCardPath})` }')\n .title {{ $t('Shared.Promotion') }}\n img.pig(src=\"@/assets/images/wallet/gifit.webp\")\n button.primary.join(v-show='!isJoin',v-loading='joinBtnLoading', :disabled='joinBtnLoading', data-at-element=\"promotion-join\" @click='join(index)') {{ $t('Shared.Join') }}\n .info(v-if=\"swiper && (index === swiper.realIndex)\" data-at-element=\"promotion-info\" @click.stop=\"handleInfoClick('open', item)\")\n .swiper-pagination {{ swiperPagination }}\n .info-content(v-if=\"activeInfo\" @click.stop=\"\")\n img.close(src=\"@/assets/images/specialoffer/close.webp\" data-at-element=\"promotion-info-close\" @click.stop=\"handleInfoClick('close')\")\n .info-content-box\n p.info-title {{ activeInfo.Name }}\n p {{ activeInfo.Content }}\n\n\n\n\n\n\n\n","import mod from \"-!../../../../node_modules/cache-loader/dist/cjs.js??ref--13-0!../../../../node_modules/thread-loader/dist/cjs.js!../../../../node_modules/babel-loader/lib/index.js!../../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./promotionSelect.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../node_modules/cache-loader/dist/cjs.js??ref--13-0!../../../../node_modules/thread-loader/dist/cjs.js!../../../../node_modules/babel-loader/lib/index.js!../../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./promotionSelect.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./promotionSelect.vue?vue&type=template&id=24c88f31&scoped=true&lang=pug&\"\nimport script from \"./promotionSelect.vue?vue&type=script&lang=js&\"\nexport * from \"./promotionSelect.vue?vue&type=script&lang=js&\"\nimport style0 from \"./promotionSelect.vue?vue&type=style&index=0&id=24c88f31&prod&lang=scss&\"\nimport style1 from \"./promotionSelect.vue?vue&type=style&index=1&id=24c88f31&prod&lang=scss&scoped=true&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"24c88f31\",\n null\n \n)\n\nexport default component.exports","module.exports = \"data:image/webp;base64,UklGRgAIAABXRUJQVlA4WAoAAAAQAAAATAAAkwAAQUxQSAEEAAANGQNp22x7/Ju+iYj+Z+9dKTgTEBHhZQYIwv+6gYgJmABL1rYtbyPdz/cLkhiKYVrNzMzMsJxaUzPNecS4BebugCRH+r978CuZvN8CImICZI+cN5SPhIAG6xHIxz7/cuzBcib8effyd4iClQlwc+v6yzcuKS5ht9+vHr4oirWiOeUprv/2zEKsDMe2hXb3iSidygZO3gL6gycRKR2Z908CeO9JQK0E/d6FZ3ZXAhQScnPrhmU/XCAEm0hfd856uB3EUAqQfU488rg2lA3icTPxSOe1psxyxyWPOU/BKgJ9/zSPawxVI31+mnHOh9X8WKaOMX1zZJTmuG6M0GB4sD4yRoOH9cwYo9n3ZxijxO6mDyLSvAjDPNxcMEhjjhd9FJj7FwxRIOzafgxBnLedce5WWwYpnLxwDAZy80wYY+S0u2Kc3a2DELJfMcrI/y73QxAg84UMMYjzIYzzeHySMQrM7Q6DjBzYMtCbWw5CyIOnO4OM3N8cGKEAmTeMMYinUwax3G3uMEaB42rLICP97tOMc56f6sMwhy2DlPCw3YzBRE5bGaFBuLvpDDECh2nDMD09fIExCuR40QcRk3kdhnk6TjJGwXsXR0ZoAG+e7IzRwP12YogJyeXH/vGjqxEkpl1+8PTDDQMMZFq/Pz95wABD0tbveu5ndzOAkKS94TU//1OoH5Lkpbf99o8MMBDap174469XI4Bkyld/8NfbjDAksP/6hhHGhOQHT7z1zggkBn/x4eu7NwMAg9686u7ppo8AVFfc8eAIVDvmsp/quehIskmvZlRRYD1psSCqJEBLMUAEYxKSXksACQRCtBQgZ2OQVm4ZOdszaT2JYRmw3CMDnTDQpDFbLQaBSE8rZ4RwPsZ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au2iefH8mgcawklmBWZ4Bwd71f+IM6ibJaUYCvLspFlNiXrk4VXFH181XyRY9H4Bs1BD4iKq2/JE2exk6j3uS5Y9fHFCG+kafH9XhykzEPCqa1gY4B8wP5hzOewziXkcXONlH/OwZfz21PQZkofBt93cLbRghPI/JSZ9yTmUY7a4n+7fnHiL2/Pbsct6dZ1yB8nXDyJszmY2RfPdEbvhwog7xQ1ckwmXfURWxqhMx4EUM+IGWWI8BinelypIv18TnVb3JO7nHMF5TCfO//TKtZp3UFOodVMSJ+MKB4MHz5rysFv2wsrp3A7VLCmItyWSwgx/1Ye5T8diyvWUScmeAUfee9Jj6XpCIZXv29UDuyxD1bK9dfe0ASxEzzUdLXGTHrCLUTRIbekEPSSIRws4oNbFrk+8pvXMbaOkO4jUXi6e4PheoT/YbCtCOgkPoZ0V6UsVLL35nErqEW3uqSn/DeZxbCyG4zJfyjfEgMLK1bc9copjl1Ntf87/Wz//iZNCDxb5DaSX1oAeS95OsHeb1YMb42FgZiw7tf95BeAvi2JCCt4XQ4yk/RhLMG5EcUk4IBYiYO/yBEQTGBaqKybgP7YKWhcmUm4bNkT4U6GikzT1vKOumb1rhcu+CPcGCdP870mOL3xkGsIdlHZdby9ooAFicHMAnc6ARjB8Y91CpLxITs9nMBf0Bp4YHK0bJDaGq/Ji3G629eRxWSvAAAAAA==\"","module.exports = __webpack_public_path__ + \"static/img/calculator0.0894cf82.webp\";","import { mapGetters } from 'vuex'\nimport API from '../../api'\n\nexport default {\n inject: ['moment', 'Precision'],\n name: 'Records',\n props: {\n itemObject: {\n type: Object || Array,\n default: () => {\n return []\n }\n }\n },\n data() {\n return {\n isLoading: false,\n selectType: 1,\n options: [\n {\n label: this.$t('Shared.Passbook'),\n value: 1\n },\n {\n label: this.$t('Shared.DepositRecord'),\n value: 2\n },\n {\n label: this.$t('Shared.WithdrawalRecord'),\n value: 3\n }\n ],\n table: {\n Data: [],\n headers: [],\n columns: []\n },\n accounting: {\n headers: [\n {\n label: 'Source',\n locale: this.$t('Accounting.Fields.Source')\n },\n {\n label: 'ItemTypeID',\n locale: this.$t('Accounting.Fields.Type')\n },\n {\n label: 'Quantity',\n locale: this.$t('Accounting.Fields.Quantity')\n },\n {\n label: 'CreateTime',\n locale: this.$t('Accounting.Fields.CreateTime')\n }\n ],\n fields: [\n {\n key: 'Source',\n value: null\n },\n {\n key: 'ItemTypeID',\n value: null\n },\n {\n key: 'Quantity',\n value: null\n },\n {\n key: 'CreateTime',\n value: null\n }\n ]\n },\n cashIn: {\n headers: [\n {\n label: 'OrderNumber',\n locale: this.$t('CashIn.Fields.OrderNumber')\n },\n {\n label: 'AuditAmount',\n locale: this.$t('CashIn.Fields.AuditAmount')\n },\n {\n label: 'Status',\n locale: this.$t('CashIn.Fields.Status')\n },\n {\n label: 'CreateTime',\n locale: this.$t('CashIn.Fields.CreateTime')\n }\n ],\n fields: [\n {\n key: 'OrderNumber',\n value: null\n },\n {\n key: 'AuditAmount',\n value: null\n },\n {\n key: 'Status',\n value: null\n },\n {\n key: 'CreateTime',\n value: null\n }\n ]\n },\n cashOut: {\n headers: [\n {\n label: 'OrderNumber',\n locale: this.$t('CashOut.Fields.OrderNumber')\n },\n {\n label: 'AuditAmount',\n locale: this.$t('CashOut.Fields.AuditAmount')\n },\n {\n label: 'Status',\n locale: this.$t('CashOut.Fields.Status')\n },\n {\n label: 'CreateTime',\n locale: this.$t('CashOut.Fields.CreateTime')\n }\n ],\n fields: [\n {\n key: 'OrderNumber',\n value: null\n },\n {\n key: 'AuditAmount',\n value: null\n },\n {\n key: 'Status',\n value: null\n },\n {\n key: 'CreateTime',\n value: null\n }\n ]\n }\n }\n },\n computed: {\n ...mapGetters('wallet', [\n 'PassbookRecord',\n 'CashInRecord',\n 'CashOutRecord'\n ])\n },\n mounted() {\n this.setTable(this.accounting.headers, this.accounting.fields)\n this.table.Data = this.PassbookRecord.data\n },\n methods: {\n formatter(row, column, cellValue, index) {\n switch (column.key) {\n case 'Status':\n if (cellValue !== null) {\n cellValue = this.$t('Cash.Status.' + cellValue)\n }\n break\n case 'ItemTypeID':\n if (cellValue !== null) {\n cellValue = this.$t('Accounting.Type.' + cellValue)\n }\n break\n case 'CreateTime':\n if (cellValue !== null) {\n cellValue = this.moment(cellValue).format('YYYY-MM-DD HH:mm:ss')\n }\n break\n case 'AuditAmount':\n case 'Quantity':\n if (cellValue !== null && cellValue !== undefined) {\n cellValue = !row.ItemTypeID || row.ItemTypeID === 1\n ? this.$options.filters.toThousandFilter(this.Precision.divide(cellValue, this.$store.getters.CurrencyRate))\n : this.$options.filters.diamondFilter(cellValue)\n }\n break\n case 'Source':\n if (cellValue !== null) {\n cellValue = this.$t('Accounting.Passbook.' + cellValue)\n }\n break\n default:\n break\n }\n return cellValue\n },\n async onSelectChange($event) {\n this.clearTable()\n switch (this.selectType) {\n case 2:\n this.setTable(this.cashIn.headers, this.cashIn.fields)\n this.table.Data = this.CashInRecord.data\n break\n case 3:\n this.setTable(this.cashOut.headers, this.cashOut.fields)\n this.table.Data = this.CashOutRecord.data\n break\n default:\n this.setTable(this.accounting.headers, this.accounting.fields)\n this.table.Data = this.PassbookRecord.data\n break\n }\n this.$nextTick(() => {\n this.$refs['table'].$el.scrollTop = 0\n })\n },\n clearTable() {\n this.table.Data = []\n this.table.headers = []\n this.table.columns = []\n },\n setTable(headers, fields) {\n this.table.headers = headers\n this.table.columns = fields\n },\n refresh(type) {\n switch (this.selectType) {\n case 2:\n this.getCashIn()\n break\n case 3:\n this.getCashOut()\n break\n default:\n this.getAccounting()\n break\n }\n },\n async getAccounting() {\n this.setTable(this.accounting.headers, this.accounting.fields)\n this.isLoading = true\n const result = await this.$store.dispatch('wallet/getPassbookRecord').catch(err => {\n this.isLoading = false\n })\n this.isLoading = false\n if (result.ErrorCode === 0) {\n this.table.Data = result.Data\n }\n },\n async getCashIn() {\n this.setTable(this.cashIn.headers, this.cashIn.fields)\n this.isLoading = true\n const result = await this.$store.dispatch('wallet/getCashInRecord').catch(err => {\n this.isLoading = false\n })\n this.isLoading = false\n if (result.ErrorCode === 0) {\n this.table.Data = result.Data\n }\n },\n async getCashOut() {\n this.setTable(this.cashOut.headers, this.cashOut.fields)\n this.isLoading = true\n const result = await this.$store.dispatch('wallet/getCashOutRecord').catch(err => {\n this.isLoading = false\n })\n this.isLoading = false\n if (result.ErrorCode === 0) {\n this.table.Data = result.Data\n }\n }\n }\n}","module.exports = __webpack_public_path__ + \"static/img/calculator1.823433a7.webp\";","import { MessageBox } from 'element-ui'\nimport { mapGetters } from 'vuex'\nimport { isEmpty } from 'lodash'\nimport API from '../../api'\n\nexport default {\n inject: ['Precision'],\n name: 'Wallet',\n props: {\n title: {\n type: String,\n default: ''\n },\n dialogName: {\n type: String,\n default: ''\n },\n show: {\n type: Boolean,\n default: false\n },\n itemObject: {\n type: Object || Array,\n default: () => {\n return []\n }\n },\n closeCallback: {\n type: Function,\n default: () => {}\n }\n },\n data() {\n return {\n isLoading: false,\n isShowCheckPromotion: false,\n result: {\n itemObject: null\n },\n tabKey: null,\n subTabKey: null,\n tabList: [],\n tabItemInfo: null,\n activeIdx: 0,\n mainTabs: [],\n subTabs: [],\n isJoin: false,\n joinedPromotionGroupID: null,\n promotionList: []\n }\n },\n watch: {\n 'PaymentCheckData.data': {\n handler(val) {\n if (!isEmpty(val) && isEmpty(this.mainTabs)) {\n if (this.isGameView) {\n this.mainTabs = val.filter(item => item.Keyword === 'Deposit')\n } else {\n this.mainTabs = val\n }\n const depositTab = this.mainTabs.find(item => item.Keyword === 'Deposit') ?? {}\n const subTab = depositTab.Info?.map(item => ({ ...item, Authority: depositTab.Authority }))\n this.subTabs = subTab ?? []\n // 特殊需求 如果是從其他地方傳過來\n if (this.itemObject && this.itemObject.itemData && this.itemObject.from === 'SpecialOffer') {\n this.openDeposit(val)\n } else if (this.itemObject?.from === 'profile') {\n this.openDeposit(val)\n } else if (this.itemObject?.from === 'lobby' && this.itemObject.to === 'deposit') {\n this.openDeposit(val)\n } else {\n // 一開始開啟第一個tab\n this.changeView(this.mainTabs[0])\n }\n }\n },\n immediate: true,\n deep: true\n }\n },\n computed: {\n isGameView() {\n return this.$store.getters.isGameView\n },\n componentKey() {\n const key = this.subTabKey || this.tabKey\n if (!['Deposit', 'ManualDeposit', 'Withdraw', 'AutoDeposit', 'Records'].includes(key)) {\n return 'Tpp'\n }\n return key\n },\n ...mapGetters('wallet', {\n CheckPromotion: 'CheckPromotion',\n DepositPromotion: 'DepositPromotion',\n PromotionGroup: 'PromotionGroup',\n PaymentCheckData: 'PaymentCheck'\n }),\n isPromotionShow() {\n if (this.tabKey !== 'Deposit') return false\n return !isEmpty(this.PromotionGroup.data)\n }\n },\n mounted() {\n this.$store.dispatch('wallet/getAllDataWithoutCheck')\n this.checkPromotion()\n if (this.itemObject?.itemData) {\n this.promotionList = this.itemObject.itemData.PromotionList\n this.isJoin = true\n }\n },\n methods: {\n joinPromotion({ id, data }) {\n this.isJoin = true\n this.joinedPromotionGroupID = id\n this.promotionList = data\n },\n changeView(tab, subTab = null) {\n if (!subTab) {\n this.tabKey = tab.Keyword\n this.tabItemInfo = tab\n if (tab.Keyword === 'Deposit') {\n this.subTabKey = this.subTabs[0]?.Keyword\n this.tabItemInfo = this.subTabs[0]\n } else this.subTabKey = null\n } else {\n this.subTabKey = subTab.Keyword\n this.tabItemInfo = subTab\n }\n\n if (this.itemObject && this.itemObject.itemData && this.itemObject.from === 'SpecialOffer') {\n this.tabItemInfo.itemData = { ...this.itemObject.itemData, Code: this.itemObject.Code }\n }\n },\n submit() {\n this.$emit('submit')\n },\n close() {\n if (this.isLoading) return\n this.closeCallback()\n this.$emit('closeDialog', this.dialogName, this.result)\n this.$emit('update:show', false)\n },\n openDeposit(result) {\n if (this.subTabs.length === 0) {\n this.changeView(this.mainTabs[0])\n return\n }\n const tab = this.subTabs[0]\n this.tabKey = 'Deposit'\n this.changeView(tab, tab)\n },\n goToSomething() {\n this.result.itemObject = {\n action: 'openDialog',\n from: 'wallet',\n to: 'DetailInfo'\n }\n this.close()\n },\n async checkPromotion() {\n const res = await API.Activity.GetHasPromotionCanFinish().catch(e => {\n return e\n })\n if (res?.ErrorCode === 0) {\n this.$store.commit('wallet/SET_CHECKPROMOTION', { data: res.Data, isLoading: false })\n const { IsJoin, NormalRelieve, CanRelease, MissionClass, PromotionID } = res.Data\n if (IsJoin && !this.isShowCheckPromotion) {\n if (NormalRelieve) {\n // 達到最低解除值 自動解除\n this.isShowCheckPromotion = true\n const formData = {\n MissionClass: MissionClass,\n ID: PromotionID\n }\n const result = await API.Activity.Finish_Promotion(formData).catch(() => {\n console.log('error')\n })\n\n if (result?.ErrorCode === 0) return\n\n if (result.Data?.SettleWaitTime) {\n this.showPromotionHint(1)\n }\n return\n }\n this.showPromotionHint(CanRelease ? 1 : 0)\n }\n }\n },\n showPromotionHint(type = 1) {\n if (!this.show) return // 防止彈窗關閉才觸發\n this.isShowCheckPromotion = true // 只show一次\n if (type === 1) {\n // 有參加活動、可過招\n MessageBox.confirm(this.$t('Message.Msg.PromotionCheckMsg'), '', {\n confirmButtonText: this.$t('Shared.Yes'),\n cancelButtonText: this.$t('Message.Msg.RelievePromotion'),\n showClose: false,\n closeOnClickModal: false,\n closeOnPressEscape: false\n })\n .then(() => {\n })\n .catch(() => {\n this.result.itemObject = {\n action: 'openDialog',\n from: 'wallet',\n to: 'promotion'\n }\n this.close()\n })\n } else {\n // 有參加活動、不可過招\n MessageBox.confirm(this.$t('Message.Msg.PromotionCheckMsg'), '', {\n confirmButtonText: this.$t('Shared.Yes'),\n cancelButtonText: this.$t('Shared.No'),\n showClose: false,\n closeOnClickModal: false,\n closeOnPressEscape: false\n })\n .then(() => {\n })\n .catch(() => {\n this.close()\n })\n }\n }\n }\n}\n","export * from \"-!../../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--9-oneOf-1-0!../../../../node_modules/css-loader/dist/cjs.js??ref--9-oneOf-1-1!../../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../../node_modules/postcss-loader/src/index.js??ref--9-oneOf-1-2!../../../../node_modules/sass-loader/dist/cjs.js??ref--9-oneOf-1-3!../../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./promotionSelect.vue?vue&type=style&index=0&id=24c88f31&prod&lang=scss&\"","module.exports = __webpack_public_path__ + \"static/img/calculator4.b1e5ea0e.webp\";","var render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',{directives:[{name:\"loading\",rawName:\"v-loading\",value:(_vm.isLoading),expression:\"isLoading\"}],staticClass:\"withdraw\",attrs:{\"id\":\"withdraw\",\"element-loading-background\":\"rgba(0, 0, 0, 0)\"}},[(_vm.itemObject.Authority && !_vm.isLoading && !_vm.isMemberBankEmpty)?[(_vm.step === 1)?[_c('div',{staticClass:\"left-box step1\",on:{\"click\":function($event){_vm.isInfoShow = false}}},[_c('validation-observer',{ref:\"form\",attrs:{\"tag\":\"form\",\"autocomplete\":\"off\"}},[(_vm.itemObject.CashFlow)?_c('div',{staticClass:\"form-block wager-block\"},[_c('label',[_vm._v(_vm._s(_vm.$t('Shared.WagerLimit')))]),_c('span',{class:{ shake: _vm.isTextShake }},[_vm._v(_vm._s(_vm._f(\"toThousandFilter\")(_vm.Precision.divide(_vm.itemObject.CashFlow, _vm.$store.getters.CurrencyRate))))]),_c('div',{staticClass:\"info-btn\",on:{\"click\":function($event){$event.stopPropagation();_vm.isInfoShow = true}}}),(_vm.isInfoShow)?_c('div',{staticClass:\"info-content\",on:{\"click\":function($event){$event.stopPropagation();}}},[_c('img',{staticClass:\"close\",attrs:{\"src\":require(\"@/assets/images/specialoffer/close.webp\")},on:{\"click\":function($event){$event.stopPropagation();_vm.isInfoShow = false}}}),_c('div',{staticClass:\"info-content-box\"},[_c('p',{staticClass:\"info-title\"},[_vm._v(_vm._s(_vm.$t('Shared.WagerLimit')))]),_c('p',[_vm._v(_vm._s(_vm.$t('Shared.WagerLimitDesc')))])])]):_vm._e()]):_vm._e(),_c('div',{staticClass:\"form-block\"},[_c('label',[_vm._v(_vm._s(_vm.$t('Shared.Amount')))]),_c('validation-provider',{class:{ 'number-input': true, active: _vm.numberInputFocus },attrs:{\"tag\":\"div\",\"rules\":'required|Withdraw_Amount:' + _vm.WithdrawLowerLimit + ',' + _vm.WithdrawUpperLimit},scopedSlots:_vm._u([{key:\"default\",fn:function({failed,errors}){return [_c('img',{attrs:{\"src\":require(\"@/assets/images/wallet/gif/coin.gif\")}}),_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.form.Amount),expression:\"form.Amount\"}],attrs:{\"autocomplete\":\"off\",\"data-at-element\":\"deposit-amount\",\"type\":\"text\",\"name\":\"Amount\",\"placeholder\":_vm.AmountPlaceholder},domProps:{\"value\":(_vm.form.Amount)},on:{\"focus\":function($event){_vm.numberInputFocus = true},\"blur\":function($event){_vm.numberInputFocus = false},\"input\":function($event){if($event.target.composing)return;_vm.$set(_vm.form, \"Amount\", $event.target.value)}}}),_c('sub-tool-tip',{attrs:{\"show\":failed,\"msg\":errors[0],\"position\":'LeftBottom'}})]}}],null,false,4204928518)})],1)])],1),_c('div',{staticClass:\"right-box\",on:{\"click\":function($event){_vm.isInfoShow = false}}},[_c('div',{staticClass:\"calculator\"},[_vm._l((_vm.amountKey),function(item,idx){return _c('button',{staticClass:\"calculator-btn\",on:{\"click\":function($event){return _vm.handleCalculatorClick(item)}}},[_c('img',{attrs:{\"src\":require(`@/assets/images/wallet/calculator${idx}.webp`)}}),_c('p',[_vm._v(\"+\"+_vm._s(item)+_vm._s(_vm.$store.getters.CurrencyID === 5 ? 'K' : ''))])])}),_c('button',{staticClass:\"calculator-btn--cancel\",on:{\"click\":function($event){return _vm.handleCalculatorClick()}}},[_vm._v(\"C\")])],2),_c('button',{staticClass:\"primary submit\",attrs:{\"disabled\":!_vm.form.Amount},on:{\"click\":_vm.handleAmountSubmit}},[_vm._v(_vm._s(_vm.$t('Shared.Next')))])])]:_vm._e(),(_vm.step === 2)?[_c('div',{staticClass:\"left-box w-full step2\"},[_c('validation-observer',{ref:\"form-step2\",attrs:{\"tag\":\"form\",\"autocomplete\":\"off\"}},[_c('div',{staticClass:\"form-block\"},[_c('label',[_vm._v(_vm._s(_vm.$t('Shared.MemberBank')))]),_c('div',{staticClass:\"member-bank-select\"},[_c('img',{attrs:{\"src\":_vm.activeMemberBank.MemberBankIcon}}),_c('BaseSelect',{attrs:{\"options\":_vm.memberBankOptions,\"useBankIcon\":true},on:{\"change\":_vm.handleMemberBankChange},model:{value:(_vm.form.MemberBank),callback:function ($$v) {_vm.$set(_vm.form, \"MemberBank\", $$v)},expression:\"form.MemberBank\"}})],1)]),_c('div',{staticClass:\"form-block\"},[_c('label',[_vm._v(_vm._s(_vm.$t('Shared.Memo')))]),_c('validation-provider',{staticClass:\"memo\",attrs:{\"tag\":\"div\",\"rules\":\"DepositMemo\"}},[_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.form.Memo),expression:\"form.Memo\"}],attrs:{\"name\":\"Memo\",\"data-at-element\":\"deposit-memo\"},domProps:{\"value\":(_vm.form.Memo)},on:{\"input\":function($event){if($event.target.composing)return;_vm.$set(_vm.form, \"Memo\", $event.target.value)}}})])],1)]),_c('div',{staticClass:\"submit-block\"},[_c('img',{staticClass:\"back\",attrs:{\"src\":require(\"@/assets/images/wallet/back.svg\")},on:{\"click\":function($event){return _vm.handleBack()}}}),_c('img',{staticClass:\"coin\",attrs:{\"src\":require(\"@/assets/images/wallet/gif/coin.gif\")}}),_c('p',[_vm._v(_vm._s(`${_vm.form.Amount}${_vm.$store.getters.CurrencyID === 5 ? 'K' : ''}`))]),_c('button',{staticClass:\"primary\",attrs:{\"type\":\"button\"},on:{\"click\":function($event){return _vm.submit()}}},[_vm._v(_vm._s(_vm.$t('Shared.Submit')))])])],1)]:_vm._e()]:_vm._e(),(!_vm.itemObject.Authority || _vm.isMemberBankEmpty)?_c('div',{staticClass:\"no-auhtority\"},[_c('p',{staticClass:\"no-authority-title\"},[_vm._v(_vm._s(_vm.$t('Shared.NoAuthority')))]),_c('p',{staticClass:\"no-authority-content\"},[_vm._v(_vm._s(_vm.$t('Shared.GoToBindMember')))]),(!_vm.$store.getters.isGameView)?_c('button',{staticClass:\"primary\",on:{\"click\":function($event){$event.preventDefault();return _vm.goToSomething.apply(null, arguments)}}},[_vm._v(_vm._s(_vm.$t('Shared.Confirm')))]):_vm._e()]):_vm._e()],2)\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","import API from '../../api'\nimport { MessageBox } from 'element-ui'\nimport { mapGetters } from 'vuex'\nimport { isEmpty } from 'lodash'\n\nexport default {\n inject: ['Precision'],\n name: 'Withdraw',\n props: {\n itemObject: {\n type: Object || Array,\n default: () => {\n return []\n }\n }\n },\n data() {\n return {\n isTextShake: false,\n isInfoShow: false,\n result: {\n itemObject: null\n },\n form: {\n MemberBank: '',\n MemberBankID: null,\n MemberBankAccount: null,\n Amount: null,\n Memo: null\n },\n numberInputFocus: false,\n WithdrawLowerLimit: null,\n WithdrawUpperLimit: null,\n AmountPlaceholder: null,\n prefix_coin_word: '',\n isLoading: false,\n memberBankList: [],\n activeMemberBank: {},\n bankInfo: {},\n step: 1\n }\n },\n computed: {\n amountKey() {\n const amounts = [\n 1,\n 10,\n 100,\n 500,\n 1000\n ]\n return this.$store.getters.CurrencyID === 5\n ? amounts\n : amounts.map(item => this.Precision.divide(item, this.$store.getters.CurrencyRate))\n },\n ...mapGetters('wallet', ['MemberBank']),\n memberBankOptions() {\n return this.memberBankList.map(item => ({\n ...item,\n value: `${item.MemberBankID}${item.MemberBankAccount}`,\n label: item.MemberBankAccount,\n icon: item.MemberBankIcon\n }))\n },\n isMemberBankEmpty() {\n return isEmpty(this.MemberBank.data?.BankList)\n }\n },\n watch: {\n 'MemberBank.data': {\n handler(val) {\n if (isEmpty(this.memberBankList) && !isEmpty(val.BankList)) {\n this.memberBankList = val.BankList\n this.activeMemberBank = val.BankList[0]\n this.form.MemberBank = `${this.activeMemberBank.MemberBankID}${this.activeMemberBank.MemberBankAccount}`\n this.getMemberBank(val.BankList[0])\n this.getMemberBankInfo(val)\n }\n },\n immediate: true,\n deep: true\n }\n },\n methods: {\n getMemberBank(val) {\n this.activeMemberBank = this.memberBankList.find(item => item.MemberBankID === val.MemberBankID &&\n item.MemberBankAccount === val.MemberBankAccount)\n this.form.MemberBankID = this.activeMemberBank.MemberBankID\n this.form.MemberBankAccount = this.activeMemberBank.MemberBankAccount\n },\n submit() {\n this.$refs['form-step2'].validate().then(async valid => {\n if (valid) {\n var k_amount = 0\n var thb_amount = 0\n switch (this.$store.getters.CurrencyID) {\n case 5:\n // 存提款特規需求 KVND\n k_amount = this.Precision.multiply(this.form.Amount, 1000) // KVND\n thb_amount = this.Precision.multiply(k_amount, this.$store.getters.CurrencyRate) // THB\n break\n default:\n thb_amount = this.Precision.multiply(this.form.Amount, this.$store.getters.CurrencyRate) // THB\n break\n }\n var formData = {\n MemberBankID: this.form.MemberBankID,\n MemberBankAccount: this.form.MemberBankAccount,\n Amount: thb_amount,\n Memo: this.form.Memo\n }\n this.$store.commit('app/SET_ISLOADING', true)\n const { ErrorCode, Data } = await API.Financial.Withdraw(formData)\n this.$track('提款成功', {\n event_category: 'withdraw',\n event_label: '提款成功'\n })\n this.$store.commit('app/SET_ISLOADING', false)\n if (ErrorCode === 0 && Data) {\n this.$message.success({\n message: this.$t('Shared.Success')\n })\n this.$emit('closeDialog')\n }\n } else {\n console.log('error')\n return false\n }\n })\n },\n goToSomething() {\n this.$emit('goToSomething')\n },\n getMemberBankInfo(data) {\n this.bankInfo = data\n this.WithdrawLowerLimit = this.$store.getters.CurrencyID === 5 ? data.WithdrawLowerLimit : this.Precision.divide(data.WithdrawLowerLimit, this.$store.getters.CurrencyRate)\n this.WithdrawUpperLimit = this.$store.getters.CurrencyID === 5 ? data.WithdrawUpperLimit : this.Precision.divide(data.WithdrawUpperLimit, this.$store.getters.CurrencyRate)\n // 特規 越南幣 前綴\n this.prefix_coin_word = this.$store.getters.CurrencyID === 5 ? 'K' : ''\n var dash = (data.WithdrawLowerLimit !== 0 && data.WithdrawUpperLimit !== 0) ? '~' : ''\n\n // 特規 轉換\n const filter = this.$options.filters.toThousandFilter\n var obj_WithdrawLowerLimit = 0\n var obj_WithdrawUpperLimit = 0\n switch (this.$store.getters.CurrencyID) {\n case 5:\n obj_WithdrawLowerLimit = data.WithdrawLowerLimit\n obj_WithdrawUpperLimit = data.WithdrawUpperLimit\n break\n default:\n obj_WithdrawLowerLimit = filter(this.Precision.divide(data.WithdrawLowerLimit, this.$store.getters.CurrencyRate))\n obj_WithdrawUpperLimit = filter(this.Precision.divide(data.WithdrawUpperLimit, this.$store.getters.CurrencyRate))\n break\n }\n if (Number(data.WithdrawLowerLimit) !== 0 && Number(data.WithdrawUpperLimit) !== 0) {\n this.AmountPlaceholder =\n obj_WithdrawLowerLimit +\n dash +\n obj_WithdrawUpperLimit +\n ' ' + this.prefix_coin_word + this.$store.getters.CurrencyName\n } else {\n this.AmountPlaceholder = ''\n }\n },\n handleCalculatorClick(num) {\n if (!num) {\n this.form.Amount = null\n return\n }\n this.form.Amount = Number(this.form.Amount) + num\n },\n handleAmountSubmit() {\n if (this.itemObject.CashFlow) {\n if (!this.isTextShake) {\n this.isTextShake = true\n setTimeout(() => {\n this.isTextShake = false\n }, 2_000)\n }\n } else {\n this.$refs.form.validate()\n .then(valid => {\n if (valid) {\n this.step = 2\n }\n })\n }\n },\n handleBack() {\n this.step = 1\n },\n handleMemberBankChange(v) {\n const findBank = this.memberBankList.find(bank => {\n return `${bank.MemberBankID}${bank.MemberBankAccount}` === v\n })\n this.getMemberBank(findBank)\n this.getMemberBankInfo(findBank)\n }\n }\n}\n","\n#withdraw.withdraw(v-loading=\"isLoading\" element-loading-background=\"rgba(0, 0, 0, 0)\")\n template(v-if=\"itemObject.Authority && !isLoading && !isMemberBankEmpty\")\n template(v-if=\"step === 1\")\n .left-box.step1(@click=\"isInfoShow = false\")\n validation-observer(tag=\"form\", ref=\"form\" autocomplete=\"off\")\n .form-block.wager-block(v-if=\"itemObject.CashFlow\")\n label {{ $t('Shared.WagerLimit') }}\n span(:class=\"{ shake: isTextShake }\") {{ Precision.divide(itemObject.CashFlow, $store.getters.CurrencyRate) | toThousandFilter }}\n .info-btn(@click.stop=\"isInfoShow = true\")\n .info-content(v-if=\"isInfoShow\" @click.stop=\"\")\n img.close(src=\"@/assets/images/specialoffer/close.webp\" @click.stop=\"isInfoShow = false\")\n .info-content-box\n p.info-title {{ $t('Shared.WagerLimit') }}\n p {{ $t('Shared.WagerLimitDesc') }}\n .form-block\n label {{ $t('Shared.Amount') }}\n validation-provider(:class=\"{ 'number-input': true, active: numberInputFocus }\" tag=\"div\", :rules=\"'required|Withdraw_Amount:' + WithdrawLowerLimit + ',' + WithdrawUpperLimit\", v-slot=\"{failed,errors}\")\n img(src=\"@/assets/images/wallet/gif/coin.gif\")\n input(autocomplete=\"off\" data-at-element=\"deposit-amount\" v-model=\"form.Amount\", type=\"text\" name=\"Amount\" :placeholder=\"AmountPlaceholder\" @focus=\"numberInputFocus = true\" @blur=\"numberInputFocus = false\")\n sub-tool-tip(:show=\"failed\", :msg=\"errors[0]\", :position=\"'LeftBottom'\")\n .right-box(@click=\"isInfoShow = false\")\n .calculator\n button.calculator-btn(v-for=\"(item, idx) in amountKey\" @click=\"handleCalculatorClick(item)\")\n img(:src=\"require(`@/assets/images/wallet/calculator${idx}.webp`)\")\n p +{{ item }}{{ $store.getters.CurrencyID === 5 ? 'K' : '' }}\n button.calculator-btn--cancel(@click=\"handleCalculatorClick()\") C\n button.primary.submit(:disabled=\"!form.Amount\" @click=\"handleAmountSubmit\") {{ $t('Shared.Next') }}\n template(v-if=\"step === 2\")\n .left-box.w-full.step2\n validation-observer(tag=\"form\", ref=\"form-step2\" autocomplete=\"off\")\n .form-block\n label {{ $t('Shared.MemberBank') }}\n .member-bank-select\n img(:src=\"activeMemberBank.MemberBankIcon\")\n BaseSelect(v-model=\"form.MemberBank\" :options=\"memberBankOptions\" :useBankIcon=\"true\" @change=\"handleMemberBankChange\")\n .form-block\n label {{ $t('Shared.Memo') }}\n validation-provider(tag=\"div\", class=\"memo\" rules=\"DepositMemo\")\n input(v-model=\"form.Memo\", name=\"Memo\" data-at-element=\"deposit-memo\")\n .submit-block\n img.back(@click=\"handleBack()\" src=\"@/assets/images/wallet/back.svg\")\n img.coin(src=\"@/assets/images/wallet/gif/coin.gif\")\n p {{ `${form.Amount}${$store.getters.CurrencyID === 5 ? 'K' : ''}` }}\n button.primary(@click=\"submit()\" type=\"button\") {{ $t('Shared.Submit') }}\n .no-auhtority(v-if=\"!itemObject.Authority || isMemberBankEmpty\")\n p.no-authority-title {{ $t('Shared.NoAuthority') }}\n p.no-authority-content {{ $t('Shared.GoToBindMember') }}\n button.primary(v-if=\"!$store.getters.isGameView\" @click.prevent='goToSomething') {{ $t('Shared.Confirm') }}\n\n\n","import mod from \"-!../../../../node_modules/cache-loader/dist/cjs.js??ref--13-0!../../../../node_modules/thread-loader/dist/cjs.js!../../../../node_modules/babel-loader/lib/index.js!../../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./withdraw.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../node_modules/cache-loader/dist/cjs.js??ref--13-0!../../../../node_modules/thread-loader/dist/cjs.js!../../../../node_modules/babel-loader/lib/index.js!../../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./withdraw.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./withdraw.vue?vue&type=template&id=d8dba1f6&lang=pug&\"\nimport script from \"./withdraw.vue?vue&type=script&lang=js&\"\nexport * from \"./withdraw.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","var render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',{directives:[{name:\"loading\",rawName:\"v-loading\",value:(_vm.isLoading),expression:\"isLoading\"}],staticClass:\"third\",attrs:{\"element-loading-background\":\"rgba(0, 0, 0, 0)\"}},[(_vm.itemObject && _vm.itemObject.Authority && !_vm.isLoading && !_vm.isMemberBankEmpty)?[(_vm.step === 1)?[_c('div',{staticClass:\"left-box step1\"},[_c('validation-observer',{ref:\"form\",attrs:{\"tag\":\"form\",\"autocomplete\":\"off\"}},[_c('div',{staticClass:\"form-block\"},[_c('label',[_vm._v(_vm._s(_vm.$t('Shared.Amount')))]),_c('validation-provider',{class:{ 'number-input': true, active: _vm.numberInputFocus },attrs:{\"tag\":\"div\",\"rules\":'required|Deposit_Amount:' + _vm.DepositLowerLimit + ',' + _vm.DepositUpperLimit},scopedSlots:_vm._u([{key:\"default\",fn:function({failed,errors}){return [_c('img',{attrs:{\"src\":require(\"@/assets/images/wallet/gif/coin.gif\")}}),_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.form.Amount),expression:\"form.Amount\"}],attrs:{\"autocomplete\":\"off\",\"data-at-element\":\"tpp-amount\",\"type\":\"text\",\"name\":\"Amount\",\"placeholder\":_vm.placeholder},domProps:{\"value\":(_vm.form.Amount)},on:{\"focus\":function($event){_vm.numberInputFocus = true},\"blur\":function($event){_vm.numberInputFocus = false},\"input\":function($event){if($event.target.composing)return;_vm.$set(_vm.form, \"Amount\", $event.target.value)}}}),_c('sub-tool-tip',{attrs:{\"show\":failed,\"msg\":errors[0],\"position\":'LeftBottom'}})]}}],null,false,4028261742)})],1),(_vm.activeAgentBank)?_c('div',{staticClass:\"info\"},[_c('p',[_c('span',[_vm._v(_vm._s(`${_vm.$t('ThirdPartPayment.DailyLimit')}: `))]),(_vm.activeAgentBank.DailyLimit > 0)?_c('span',[_vm._v(_vm._s(_vm._f(\"toThousandFilter\")(_vm.activeAgentBank.DailyLimit))+\" \"+_vm._s(_vm.$store.getters.CurrencyName))]):_c('span',[_vm._v(_vm._s(_vm.$t('Shared.NoLimit')))])]),_c('p',[_c('span',[_vm._v(_vm._s(`${_vm.$t('ThirdPartPayment.HandingFee')}: `))]),_c('span',[_vm._v(_vm._s(_vm.activeAgentBank.Fee)+\"%\")])])]):_vm._e()])],1),_c('div',{staticClass:\"right-box\"},[_c('div',{staticClass:\"calculator\"},[_vm._l((_vm.amountKey),function(item,idx){return _c('button',{staticClass:\"calculator-btn\",attrs:{\"data-at-element\":`tpp-calculator-btn-${item}`},on:{\"click\":function($event){return _vm.handleCalculatorClick(item)}}},[_c('img',{attrs:{\"src\":require(`@/assets/images/wallet/calculator${idx}.webp`)}}),_c('p',[_vm._v(\"+\"+_vm._s(item)+_vm._s(_vm.$store.getters.CurrencyID === 5 ? 'K' : ''))])])}),_c('button',{staticClass:\"calculator-btn--cancel\",attrs:{\"data-at-element\":`tpp-calculator-btn-clear`},on:{\"click\":function($event){return _vm.handleCalculatorClick()}}},[_vm._v(\"C\")])],2),_c('button',{staticClass:\"primary submit\",attrs:{\"disabled\":!_vm.form.Amount,\"data-at-element\":\"tpp-calculator-btn-clear\"},on:{\"click\":_vm.handleStep1Submit}},[_vm._v(_vm._s(_vm.columnData.length ? _vm.$t('Shared.Next') : _vm.$t('Shared.Submit')))])])]:_vm._e(),(_vm.step === 'promotion')?[_c('div',{staticClass:\"promotion-box\"},[(!(_vm.itemObject.itemData && _vm.itemObject.itemData.GroupID) && !(_vm.itemObject.itemData && _vm.itemObject.itemData.Code))?_c('div',{staticClass:\"quit\",attrs:{\"data-at-element\":\"tpp-quit\"},on:{\"click\":_vm.handleQuit}},[_c('img',{attrs:{\"src\":require(\"@/assets/images/wallet/arrow-left.webp\")}}),_c('span',[_vm._v(_vm._s(_vm.$t('Shared.Quit')))])]):_vm._e(),_c('div',{staticClass:\"title\"},[_vm._v(_vm._s(_vm.filterPromotionList[0] && _vm.filterPromotionList[0].IsFirst ? 'First Deposit' : _vm.$t('Shared.Promotion')))]),_c('div',{staticClass:\"card-box\"},[(_vm.isEmpty(_vm.filterPromotionList))?_c('p',{staticClass:\"no-promotion\"},[_vm._v(_vm._s(_vm.$t('Shared.NoPromotionItem')))]):_vm._e(),_vm._l((_vm.filterPromotionList),function(item){return _c('div',{staticClass:\"promotion-card\",class:{ mask: item.IsMask }},[(item.ItemTypeID === _vm.rewardType.coin)?_c('div',{staticClass:\"extra-box\"},[_c('b',[_vm._v(\"+ \"+_vm._s(item.RewardRate)+\"%\")]),_c('span',{staticClass:\"coin\"},[_vm._v(_vm._s(_vm.numberFilter(_vm.Precision.divide(item.DepositAmount, _vm.$store.getters.CurrencyRate))))])]):_c('div',{staticClass:\"extra-box\"},[_c('span',{staticClass:\"diamond\"},[_vm._v(_vm._s(_vm._f(\"diamondFilter\")(item.Reward)))]),_c('img',{staticClass:\"diamond\",attrs:{\"src\":require(\"@/assets/images/common/diamond.webp\"),\"alt\":\"diamond\"}}),_c('div',{staticClass:\"plus\"})]),_c('div',{staticClass:\"coin-box\"},[_c('img',{staticClass:\"icon\",attrs:{\"src\":require(\"@/assets/images/lobby/coin.webp\"),\"alt\":\"coin\"}}),(item.ItemTypeID === _vm.rewardType.coin)?_c('span',[_vm._v(_vm._s(_vm.numberFilter(_vm.Precision.divide(item.Reward + item.DepositAmount, _vm.$store.getters.CurrencyRate))))]):_c('span',[_vm._v(_vm._s(_vm.numberFilter(_vm.Precision.divide(item.DepositAmount, _vm.$store.getters.CurrencyRate))))])]),_c('div',{staticClass:\"line\"}),(item.Flow)?_c('div',{staticClass:\"wager\"},[_c('span',[_vm._v(_vm._s(item.MissionType === _vm.missionType.netwin ? _vm.$t('Shared.Netwin') : _vm.$t('Shared.Flow'))+\":\")]),_c('span',[_vm._v(_vm._s(_vm.numberFilter(_vm.Precision.divide(item.Flow, _vm.$store.getters.CurrencyRate))))])]):_vm._e(),_c('button',{staticClass:\"primary\",attrs:{\"disabled\":item.IsMask,\"data-at-element\":\"tpp-promotion-join\"},on:{\"click\":function($event){return _vm.join(item)}}},[_vm._v(_vm._s(_vm.numberFilter(_vm.Precision.divide(item.DepositAmount, _vm.$store.getters.CurrencyRate))))])])})],2)])]:_vm._e(),(_vm.step === 2)?[_c('div',{staticClass:\"left-box w-full step2\"},[_c('validation-observer',{ref:\"form-step2\",attrs:{\"tag\":\"form\",\"autocomplete\":\"off\"}},_vm._l((_vm.columnData),function(item){return _c('div',{staticClass:\"form-block\"},[_c('label',[_vm._v(_vm._s(_vm.$t(`ThirdPartPayment.Fields.${item.Label }`)))]),(item.InputType === 'string')?_c('div',{staticClass:\"flex items-center\"},[(item.InputType === 'string')?_c('validation-provider',{staticClass:\"input-container\",attrs:{\"tag\":\"div\",\"rules\":item.Validator ? item.Validator.join('|') : ''},scopedSlots:_vm._u([{key:\"default\",fn:function({failed, errors}){return [_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.dynamicForm[item.InputName]),expression:\"dynamicForm[item.InputName]\"}],attrs:{\"autocomplete\":\"off\",\"data-at-element\":`tpp-${item.InputName}`,\"type\":\"text\",\"name\":item.InputName},domProps:{\"value\":(_vm.dynamicForm[item.InputName])},on:{\"input\":function($event){if($event.target.composing)return;_vm.$set(_vm.dynamicForm, item.InputName, $event.target.value)}}}),_c('sub-tool-tip',{attrs:{\"show\":failed,\"msg\":errors[0]}})]}}],null,true)}):_vm._e(),(item.CanCopy)?_c('button',{staticClass:\"calculator-btn copy\",attrs:{\"type\":\"button\",\"data-at-element\":\"tpp-copy\"},on:{\"click\":function($event){return _vm.copy(item)}}}):_vm._e()],1):(item.InputType === 'select')?_c('div',{staticClass:\"flex items-center\"},[_c('validation-provider',{staticClass:\"tpp-select-box flex items-center\",attrs:{\"tag\":\"div\",\"rules\":item.Require ? 'required' : ''},scopedSlots:_vm._u([{key:\"default\",fn:function({failed, errors}){return [_c('base-select',{attrs:{\"data-at-element\":`tpp-${item.InputName}`,\"options\":item.Data.map(op => ({ label: op.Name, value: op.Value }))},model:{value:(_vm.dynamicForm[item.InputName]),callback:function ($$v) {_vm.$set(_vm.dynamicForm, item.InputName, $$v)},expression:\"dynamicForm[item.InputName]\"}}),_c('sub-tool-tip',{attrs:{\"show\":failed,\"msg\":errors[0]}})]}}],null,true)}),(item.CanCopy)?_c('button',{staticClass:\"calculator-btn copy\",attrs:{\"type\":\"button\",\"data-at-element\":\"tpp-copy\"},on:{\"click\":function($event){return _vm.copy(item)}}}):_vm._e()],1):_c('div',{staticClass:\"flex items-center\"},[_c('p',[_vm._v(_vm._s(_vm.dynamicForm[item.InputName]))]),(item.CanCopy)?_c('button',{staticClass:\"calculator-btn copy\",attrs:{\"type\":\"button\",\"data-at-element\":\"tpp-copy\"},on:{\"click\":function($event){return _vm.copy(item)}}}):_vm._e()])])}),0),_c('div',{staticClass:\"submit-block\"},[_c('img',{staticClass:\"back\",attrs:{\"src\":require(\"@/assets/images/wallet/back.svg\"),\"data-at-element\":\"tpp-back\"},on:{\"click\":function($event){return _vm.handleBack()}}}),_c('img',{staticClass:\"coin\",attrs:{\"src\":require(\"@/assets/images/wallet/gif/coin.gif\")}}),_c('p',[_vm._v(_vm._s(`${_vm.form.Amount}${_vm.$store.getters.CurrencyID === 5 ? 'K' : ''}`))]),_c('button',{staticClass:\"primary\",attrs:{\"type\":\"button\",\"data-at-element\":\"tpp-submit\"},on:{\"click\":function($event){return _vm.submit('form-step2')}}},[_vm._v(_vm._s(_vm.$t('Shared.Submit')))])])],1)]:_vm._e()]:_vm._e(),((_vm.itemObject && !_vm.itemObject.Authority) || _vm.isMemberBankEmpty)?_c('div',{staticClass:\"no-auhtority\"},[_c('p',{staticClass:\"no-authority-title\"},[_vm._v(_vm._s(_vm.$t('Shared.NoAuthority')))]),_c('p',{staticClass:\"no-authority-content\"},[_vm._v(_vm._s(_vm.$t('Shared.GoToBindMember')))]),(!_vm.$store.getters.isGameView)?_c('button',{staticClass:\"primary\",on:{\"click\":function($event){$event.preventDefault();return _vm.goToSomething.apply(null, arguments)}}},[_vm._v(_vm._s(_vm.$t('Shared.Confirm')))]):_vm._e()]):_vm._e()],2)\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","import API from '../../api'\nimport { isEmpty, cloneDeep } from 'lodash'\nimport { mapGetters } from 'vuex'\nimport rewardType from '../../constant/rewardType'\nimport missionType from '../../constant/missionType'\n\nexport default {\n inject: ['Precision'],\n name: 'ThirdDeposit',\n props: {\n itemObject: {\n type: Object || Array,\n default: () => {\n return []\n }\n },\n promotionList: {\n type: Array,\n default: () => []\n },\n isJoin: {\n type: Boolean,\n default: false\n }\n },\n data() {\n return {\n isEmpty,\n rewardType,\n missionType,\n isLoading: false,\n numberInputFocus: false,\n result: {\n itemObject: null\n },\n activeAgentBank: {\n ChooseAmount: []\n },\n form: {\n ActivityID: null,\n Amount: null\n },\n dynamicForm: {},\n activePromotion: {},\n activeInfo: null,\n activeAmount: null,\n step: 1\n }\n },\n computed: {\n ...mapGetters('wallet', ['MemberBank']),\n isMemberBankEmpty() {\n return isEmpty(this.MemberBank.data?.BankList)\n },\n DepositLowerLimit() {\n return this.activeAgentBank.LowerLimit === 0 ? '' : this.$store.getters.CurrencyID === 5 ? this.Precision.multiply(this.activeAgentBank.LowerLimit, this.$store.getters.CurrencyRate) : this.activeAgentBank.LowerLimit\n },\n DepositUpperLimit() {\n return this.activeAgentBank.UpperLimit === 0 ? '' : this.$store.getters.CurrencyID === 5 ? this.Precision.multiply(this.activeAgentBank.UpperLimit, this.$store.getters.CurrencyRate) : this.activeAgentBank.UpperLimit\n },\n placeholder() {\n if (Number(this.activeAgentBank.LowerLimit) === 0 || Number(this.activeAgentBank.UpperLimit) === 0) {\n return ''\n }\n const lower = this.$store.getters.CurrencyID === 5\n ? this.Precision.multiply(this.activeAgentBank.LowerLimit, this.$store.getters.CurrencyRate)\n : this.$options.filters.toThousandFilter(this.activeAgentBank.LowerLimit)\n const upper = this.$store.getters.CurrencyID === 5\n ? this.Precision.multiply(this.activeAgentBank.UpperLimit, this.$store.getters.CurrencyRate)\n : this.$options.filters.toThousandFilter(this.activeAgentBank.UpperLimit)\n return `${lower} ~ ${upper} ${this.$store.getters.CurrencyID === 5 ? 'K' : ''}${this.$store.getters.CurrencyName}`\n },\n filterPromotionList() {\n return this.promotionList.filter(item => {\n const amount = this.Precision.divide(item.DepositAmount, this.$store.getters.CurrencyRate)\n const lowerCondition = this.activeAgentBank.LowerLimit === 0 ? true : amount >= this.activeAgentBank.LowerLimit\n const upperConfition = this.activeAgentBank.UpperLimit === 0 ? true : amount <= this.activeAgentBank.UpperLimit\n return lowerCondition && upperConfition\n })\n },\n columnData() {\n const allData = this.$store.getters['wallet/ColumnData']\n const result = allData[`${this.itemObject.TabID}_${this.activeAgentBank.ID}`]\n return result ?? []\n },\n amountKey() {\n const amounts = [\n 1,\n 10,\n 100,\n 500,\n 1000\n ]\n return this.$store.getters.CurrencyID === 5\n ? amounts\n : amounts.map(item => this.Precision.divide(item, this.$store.getters.CurrencyRate))\n }\n },\n watch: {\n columnData: {\n handler(val) {\n this.dynamicForm = val.reduce((acc, curr) => {\n if (curr.InputType === 'string') {\n acc[curr.InputName] = ''\n } else if (curr.InputType === 'select') {\n acc[curr.InputName] = curr.Data[0]?.Value\n } else {\n acc[curr.InputName] = curr.Data\n }\n return acc\n }, {})\n },\n deep: true\n },\n filterPromotionList: {\n handler(val) {\n if (this.itemObject && this.itemObject.itemData) return\n this.currentPromotion = val[0]\n },\n deep: true,\n immediate: true\n },\n isJoin: {\n handler(val) {\n if (val) {\n this.step = 'promotion'\n }\n },\n immediate: true\n },\n 'itemObject.Info': {\n handler() {\n this.randomSelectBank()\n },\n immediate: true,\n deep: true\n }\n },\n methods: {\n async submit(refName) {\n const isValid = await this.validateForm(refName)\n if (isValid) {\n if (this.form.ActivityID) {\n this.$store.commit('app/SET_ISLOADING', true)\n const result = await API.Financial.CheckActivityDeposit({\n PromotionID: this.form.ActivityID\n }).catch(err => {\n this.$store.commit('app/SET_ISLOADING', false)\n throw err\n })\n if (result.ErrorCode !== 0) {\n this.$store.commit('app/SET_ISLOADING', false)\n return false\n }\n }\n\n const formData = {\n Code: this.itemObject?.itemData?.Code,\n ActivityID: this.form.ActivityID ? this.form.ActivityID : undefined,\n MethodType: this.itemObject.MethodType,\n ID: this.activeAgentBank.ID,\n ChooseAmount: this.$store.getters.CurrencyID === 5 ? this.Precision.divide(this.form.Amount, this.$store.getters.CurrencyRate) : this.form.Amount,\n ...this.dynamicForm\n }\n this.$store.commit('app/SET_ISLOADING', true)\n API.Financial.GetTppURL(formData).then(res => {\n this.$store.commit('app/SET_ISLOADING', false)\n const { Data, ErrorCode } = res\n if (ErrorCode === 0 && Data) {\n this.$track('三方存款成功', {\n event_category: 'third-part-deposit',\n event_label: '三方存款成功',\n value: this.$store.getters.CurrencyID === 5 ? this.Precision.divide(this.form.Amount, this.$store.getters.CurrencyRate) : this.form.Amount\n })\n if (!Data.IsNeedRedirect) {\n this.$message.success({\n message: this.$t('Shared.Success')\n })\n this.$emit('closeDialog')\n } else {\n window.open(Data.PaymentUrl, '_blank')\n }\n } else {\n this.randomSelectBank()\n if (this.isJoin) {\n this.handleQuit()\n this.form.ActivityID = null\n }\n }\n }).catch(err => {\n this.$store.commit('app/SET_ISLOADING', false)\n console.log('error', err)\n this.randomSelectBank()\n if (this.isJoin) {\n this.handleQuit()\n this.form.ActivityID = null\n }\n })\n } else {\n console.log('error')\n }\n },\n async validateForm(refName) {\n return new Promise((resolve, reject) => {\n if (!refName) resolve(true)\n if (!this.$refs[refName]) reject(new Error(`ref '${refName}' not found`))\n this.$refs[refName].validate().then(result => resolve(result))\n })\n },\n goToSomething() {\n this.$emit('goToSomething')\n },\n randomSelectBank() {\n let randomList = cloneDeep(this.itemObject.Info)\n if (!isEmpty(this.activeAgentBank) && randomList.length > 1) { // 已經選過渠道且渠道數量大於1則排除原本已選取的渠道\n randomList = randomList.filter(item => item.ID !== this.activeAgentBank.ID)\n }\n const index = Math.floor(Math.random() * randomList.length)\n const item = randomList[index]\n this.activeAgentBank = item\n\n if (this.form.Amount) { // 若輸入過金額,則檢查是否符合渠道上下限,不符合就清空金額\n const { LowerLimit, UpperLimit } = this.activeAgentBank\n const amount = this.$store.getters.CurrencyID === 5 ? this.activeAmount : this.Precision.multiply(this.form.Amount, this.$store.getters.CurrencyRate)\n if ((LowerLimit !== 0 && amount < LowerLimit) || (UpperLimit !== 0 && amount > UpperLimit)) {\n this.form.Amount = null\n this.activeAmount = null\n this.step = 1\n }\n } else {\n this.formAmount = null\n this.activeAmount = null\n }\n },\n handlePromotionClick(item) {\n if (item.IsMask) return\n this.activeAmount = null\n if (this.activePromotion.PromotionID === item.PromotionID) {\n this.activePromotion = {}\n this.form.Amount = null\n this.form.ActivityID = null\n this.disabledAmount = false\n } else {\n this.activePromotion = item\n this.form.Amount = this.$store.getters.CurrencyID === 5 ? item.DepositAmount : this.Precision.divide(item.DepositAmount, this.$store.getters.CurrencyRate)\n this.form.ActivityID = item.PromotionID\n this.disabledAmount = true\n }\n },\n handleAmountClick(item) {\n if (this.activePromotion.PromotionID) {\n this.activePromotion = {}\n this.form.Amount = this.$store.getters.CurrencyID === 5 ? this.Precision.multiply(item, this.$store.getters.CurrencyRate) : item\n this.activeAmount = item\n } else if (this.activeAmount === item) {\n this.form.Amount = null\n this.activeAmount = null\n } else {\n this.form.Amount = this.$store.getters.CurrencyID === 5 ? this.Precision.multiply(item, this.$store.getters.CurrencyRate) : item\n this.activeAmount = item\n }\n this.form.ActivityID = null\n this.disabledAmount = false\n },\n handleAmoutInput() {\n this.activePromotion = {}\n this.activeAmount = null\n },\n handleBankInputClick() {\n if (this.rightBoxActive !== 'agent') {\n this.rightBoxActive = 'agent'\n } else {\n if (this.itemObject.itemData && this.itemObject.itemData.PromotionID) {\n this.rightBoxActive = ''\n } else {\n this.rightBoxActive = 'amount'\n }\n }\n },\n copy(item) {\n const aux = document.createElement('input')\n aux.setAttribute('value', this.dynamicForm[item.InputName] ?? '')\n document.body.appendChild(aux)\n aux.select()\n document.execCommand('copy')\n document.body.removeChild(aux)\n this.$message.success({\n message: this.$t('Shared.Copy') + this.$t('Shared.Success')\n })\n },\n numberFilter(val) {\n return this.$options.filters.toThousandFilter(val, 0)\n },\n handleStep1Submit() {\n if (this.columnData.length) {\n this.$refs.form.validate()\n .then(valid => {\n if (valid) this.step = 2\n })\n } else this.submit('form')\n },\n handleCalculatorClick(num) {\n if (!num) {\n this.form.Amount = null\n return\n }\n this.form.Amount = Number(this.form.Amount) + Number(num)\n },\n join(item) {\n this.form.ActivityID = item.PromotionID\n this.form.Amount = this.$store.getters.CurrencyID === 5 // 越南幣不作轉換\n ? item.DepositAmount\n : this.Precision.divide(item.DepositAmount, this.$store.getters.CurrencyRate)\n if (this.columnData.length) this.step = 2\n else this.submit()\n },\n handleBack() {\n if (this.itemObject?.itemData) {\n const { itemData } = this.itemObject\n if (itemData.GroupID || itemData.Code) {\n this.step = 'promotion'\n this.form.Amount = null\n this.form.ActivityID = null\n }\n } else {\n if (this.form.ActivityID) {\n this.step = 'promotion'\n } else {\n this.step = 1\n }\n this.form.ActivityID = null\n }\n },\n handleQuit() {\n this.step = 1\n this.$emit('cancelJoin')\n },\n checkStep2Form() {\n if (!this.form.Image) return true\n return false\n }\n }\n}\n","\n.third(v-loading=\"isLoading\" element-loading-background=\"rgba(0, 0, 0, 0)\")\n template(v-if=\"itemObject && itemObject.Authority && !isLoading && !isMemberBankEmpty\")\n template(v-if=\"step === 1\")\n .left-box.step1\n validation-observer(tag=\"form\", ref=\"form\" autocomplete=\"off\")\n .form-block\n label {{ $t('Shared.Amount') }}\n validation-provider(:class=\"{ 'number-input': true, active: numberInputFocus }\" tag=\"div\", :rules=\"'required|Deposit_Amount:' + DepositLowerLimit + ',' + DepositUpperLimit\", v-slot=\"{failed,errors}\")\n img(src=\"@/assets/images/wallet/gif/coin.gif\")\n input(autocomplete=\"off\" data-at-element=\"tpp-amount\" v-model=\"form.Amount\", type=\"text\" name=\"Amount\" :placeholder=\"placeholder\" @focus=\"numberInputFocus = true\" @blur=\"numberInputFocus = false\")\n sub-tool-tip(:show=\"failed\", :msg=\"errors[0]\", :position=\"'LeftBottom'\")\n .info(v-if='activeAgentBank')\n p\n span {{ `${$t('ThirdPartPayment.DailyLimit')}: ` }}\n span(v-if=\"activeAgentBank.DailyLimit > 0\") {{ activeAgentBank.DailyLimit | toThousandFilter }} {{ $store.getters.CurrencyName }}\n span(v-else) {{ $t('Shared.NoLimit') }}\n p\n span {{ `${$t('ThirdPartPayment.HandingFee')}: ` }}\n span {{ activeAgentBank.Fee }}%\n .right-box\n .calculator\n button.calculator-btn(v-for=\"(item, idx) in amountKey\" :data-at-element=\"`tpp-calculator-btn-${item}`\" @click=\"handleCalculatorClick(item)\")\n img(:src=\"require(`@/assets/images/wallet/calculator${idx}.webp`)\")\n p +{{ item }}{{ $store.getters.CurrencyID === 5 ? 'K' : '' }}\n button.calculator-btn--cancel(@click=\"handleCalculatorClick()\" :data-at-element=\"`tpp-calculator-btn-clear`\") C\n button.primary.submit(:disabled=\"!form.Amount\" @click=\"handleStep1Submit\" data-at-element=\"tpp-calculator-btn-clear\") {{ columnData.length ? $t('Shared.Next') : $t('Shared.Submit') }}\n template(v-if=\"step === 'promotion'\")\n .promotion-box\n .quit(v-if=\"!(itemObject.itemData && itemObject.itemData.GroupID) && !(itemObject.itemData && itemObject.itemData.Code)\" @click=\"handleQuit\" data-at-element=\"tpp-quit\")\n img(src=\"@/assets/images/wallet/arrow-left.webp\")\n span {{ $t('Shared.Quit') }}\n .title {{ filterPromotionList[0] && filterPromotionList[0].IsFirst ? 'First Deposit' : $t('Shared.Promotion') }}\n .card-box\n p.no-promotion(v-if=\"isEmpty(filterPromotionList)\") {{ $t('Shared.NoPromotionItem') }}\n .promotion-card(v-for=\"item in filterPromotionList\" :class=\"{ mask: item.IsMask }\")\n .extra-box(v-if=\"item.ItemTypeID === rewardType.coin\")\n b + {{ item.RewardRate }}%\n span.coin {{ numberFilter(Precision.divide(item.DepositAmount, $store.getters.CurrencyRate)) }}\n .extra-box(v-else)\n span.diamond {{ item.Reward | diamondFilter }}\n img.diamond(src=\"@/assets/images/common/diamond.webp\" alt=\"diamond\")\n .plus\n .coin-box\n img.icon(src=\"@/assets/images/lobby/coin.webp\" alt=\"coin\")\n span(v-if=\"item.ItemTypeID === rewardType.coin\") {{ numberFilter(Precision.divide(item.Reward + item.DepositAmount, $store.getters.CurrencyRate)) }}\n span(v-else) {{ numberFilter(Precision.divide(item.DepositAmount, $store.getters.CurrencyRate)) }}\n .line\n .wager(v-if=\"item.Flow\")\n span {{ item.MissionType === missionType.netwin ? $t('Shared.Netwin') : $t('Shared.Flow') }}:\n span {{ numberFilter(Precision.divide(item.Flow, $store.getters.CurrencyRate)) }}\n button.primary(@click=\"join(item)\" :disabled=\"item.IsMask\" data-at-element=\"tpp-promotion-join\") {{ numberFilter(Precision.divide(item.DepositAmount, $store.getters.CurrencyRate)) }}\n template(v-if=\"step === 2\")\n .left-box.w-full.step2\n validation-observer(tag=\"form\", ref=\"form-step2\" autocomplete=\"off\")\n .form-block(v-for=\"item in columnData\")\n label {{ $t(`ThirdPartPayment.Fields.${item.Label }`) }}\n div.flex.items-center(v-if=\"item.InputType === 'string'\")\n validation-provider(v-if=\"item.InputType === 'string'\" class=\"input-container\" tag=\"div\", v-slot=\"{failed, errors}\" :rules=\"item.Validator ? item.Validator.join('|') : ''\")\n input(autocomplete=\"off\" :data-at-element=\"`tpp-${item.InputName}`\" v-model=\"dynamicForm[item.InputName]\" type=\"text\" :name=\"item.InputName\")\n sub-tool-tip(:show=\"failed\", :msg=\"errors[0]\")\n button.calculator-btn.copy(v-if=\"item.CanCopy\" @click=\"copy(item)\" type=\"button\" data-at-element=\"tpp-copy\")\n div.flex.items-center(v-else-if=\"item.InputType === 'select'\")\n validation-provider( class=\"tpp-select-box\" tag=\"div\", v-slot=\"{failed, errors}\" :rules=\"item.Require ? 'required' : ''\" class=\"flex items-center\")\n base-select(:data-at-element=\"`tpp-${item.InputName}`\" :options=\"item.Data.map(op => ({ label: op.Name, value: op.Value }))\" v-model=\"dynamicForm[item.InputName]\")\n sub-tool-tip(:show=\"failed\", :msg=\"errors[0]\")\n button.calculator-btn.copy(v-if=\"item.CanCopy\" @click=\"copy(item)\" type=\"button\" data-at-element=\"tpp-copy\")\n div.flex.items-center(v-else)\n p {{ dynamicForm[item.InputName] }}\n button.calculator-btn.copy(v-if=\"item.CanCopy\" @click=\"copy(item)\" type=\"button\" data-at-element=\"tpp-copy\")\n .submit-block\n img.back(@click=\"handleBack()\" src=\"@/assets/images/wallet/back.svg\" data-at-element=\"tpp-back\")\n img.coin(src=\"@/assets/images/wallet/gif/coin.gif\")\n p {{ `${form.Amount}${$store.getters.CurrencyID === 5 ? 'K' : ''}` }}\n button.primary(@click=\"submit('form-step2')\" type=\"button\" data-at-element=\"tpp-submit\") {{ $t('Shared.Submit') }}\n .no-auhtority(v-if=\"(itemObject && !itemObject.Authority) || isMemberBankEmpty\")\n p.no-authority-title {{ $t('Shared.NoAuthority') }}\n p.no-authority-content {{ $t('Shared.GoToBindMember') }}\n button.primary(v-if=\"!$store.getters.isGameView\" @click.prevent='goToSomething') {{ $t('Shared.Confirm') }}\n\n\n\n","import mod from \"-!../../../../node_modules/cache-loader/dist/cjs.js??ref--13-0!../../../../node_modules/thread-loader/dist/cjs.js!../../../../node_modules/babel-loader/lib/index.js!../../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./tpp.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../node_modules/cache-loader/dist/cjs.js??ref--13-0!../../../../node_modules/thread-loader/dist/cjs.js!../../../../node_modules/babel-loader/lib/index.js!../../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./tpp.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./tpp.vue?vue&type=template&id=6e6721f9&scoped=true&lang=pug&\"\nimport script from \"./tpp.vue?vue&type=script&lang=js&\"\nexport * from \"./tpp.vue?vue&type=script&lang=js&\"\nimport style0 from \"./tpp.vue?vue&type=style&index=0&id=6e6721f9&prod&scoped=true&lang=scss&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"6e6721f9\",\n null\n \n)\n\nexport default component.exports","module.exports = __webpack_public_path__ + \"static/img/hourglass.d3feae6a.svg\";","var render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',{directives:[{name:\"loading\",rawName:\"v-loading\",value:(_vm.isLoading),expression:\"isLoading\"}],staticClass:\"deposit\",attrs:{\"element-loading-background\":\"rgba(0, 0, 0, 0)\"}},[(_vm.itemObject.Authority && !_vm.isLoading && !_vm.isMemberBankEmpty)?[(_vm.step === 1)?[_c('div',{staticClass:\"left-box step1\"},[_c('validation-observer',{ref:\"form1\",attrs:{\"tag\":\"form\",\"autocomplete\":\"off\"}},[_c('div',{staticClass:\"form-block\"},[_c('label',[_vm._v(_vm._s(_vm.$t('Shared.Amount')))]),_c('validation-provider',{class:{ 'number-input': true, active: _vm.numberInputFocus },attrs:{\"tag\":\"div\",\"rules\":'required|Deposit_Amount:' + _vm.depositLimit.Lower + ',' + _vm.depositLimit.Upper},scopedSlots:_vm._u([{key:\"default\",fn:function({failed,errors}){return [_c('img',{attrs:{\"src\":require(\"@/assets/images/wallet/gif/coin.gif\")}}),_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.form.Amount),expression:\"form.Amount\"}],attrs:{\"autocomplete\":\"off\",\"data-at-element\":\"deposit-amount\",\"type\":\"text\",\"name\":\"Amount\",\"placeholder\":_vm.amountPlaceholder},domProps:{\"value\":(_vm.form.Amount)},on:{\"focus\":function($event){_vm.numberInputFocus = true},\"blur\":function($event){_vm.numberInputFocus = false},\"input\":function($event){if($event.target.composing)return;_vm.$set(_vm.form, \"Amount\", $event.target.value)}}}),_c('sub-tool-tip',{attrs:{\"show\":failed,\"msg\":errors[0],\"position\":'LeftBottom'}})]}}],null,false,3633854566)})],1)])],1),_c('div',{staticClass:\"right-box\"},[_c('div',{staticClass:\"calculator\"},[_vm._l((_vm.amountKey),function(item,idx){return _c('button',{staticClass:\"calculator-btn\",attrs:{\"data-at-element\":`deposit-calculator-btn-${item}`},on:{\"click\":function($event){return _vm.handleCalculatorClick(item)}}},[_c('img',{attrs:{\"src\":require(`@/assets/images/wallet/calculator${idx}.webp`)}}),_c('p',[_vm._v(\"+\"+_vm._s(item)+_vm._s(_vm.$store.getters.CurrencyID === 5 ? 'K' : ''))])])}),_c('button',{staticClass:\"calculator-btn--cancel\",attrs:{\"data-at-element\":\"deposit-calculator-btn-clear\"},on:{\"click\":function($event){return _vm.handleCalculatorClick()}}},[_vm._v(\"C\")])],2),_c('button',{staticClass:\"primary submit\",attrs:{\"disabled\":!_vm.form.Amount,\"data-at-element\":\"deposit-next\"},on:{\"click\":_vm.handleNext}},[_vm._v(_vm._s(_vm.$t('Shared.Next')))])])]:_vm._e(),(_vm.step === 'promotion')?[_c('div',{staticClass:\"promotion-box\"},[(!(_vm.itemObject.itemData && _vm.itemObject.itemData.GroupID) && !(_vm.itemObject.itemData && _vm.itemObject.itemData.Code))?_c('div',{staticClass:\"quit\",attrs:{\"data-at-element\":\"deposit-quit\"},on:{\"click\":_vm.handleQuit}},[_c('img',{attrs:{\"src\":require(\"@/assets/images/wallet/arrow-left.webp\")}}),_c('span',[_vm._v(_vm._s(_vm.$t('Shared.Quit')))])]):_vm._e(),_c('div',{staticClass:\"title\"},[_vm._v(_vm._s(_vm.filterPromotionList[0] && _vm.filterPromotionList[0].IsFirst ? 'First Deposit' : _vm.$t('Shared.Promotion')))]),_c('div',{staticClass:\"card-box\"},[(_vm.isEmpty(_vm.filterPromotionList))?_c('p',{staticClass:\"no-promotion\"},[_vm._v(_vm._s(_vm.$t('Shared.NoPromotionItem')))]):_vm._e(),_vm._l((_vm.filterPromotionList),function(item){return _c('div',{staticClass:\"promotion-card\",class:{ mask: item.IsMask }},[(item.ItemTypeID === 1)?_c('div',{staticClass:\"extra-box\"},[_c('b',[_vm._v(\"+ \"+_vm._s(item.RewardRate)+\"%\")]),_c('span',{staticClass:\"coin\"},[_vm._v(_vm._s(_vm.numberFilter(_vm.Precision.divide(item.DepositAmount, _vm.$store.getters.CurrencyRate))))])]):_c('div',{staticClass:\"extra-box\"},[_c('span',{staticClass:\"diamond\"},[_vm._v(_vm._s(_vm._f(\"diamondFilter\")(item.Reward)))]),_c('img',{staticClass:\"diamond\",attrs:{\"src\":require(\"@/assets/images/common/diamond.webp\"),\"alt\":\"diamond\"}}),_c('div',{staticClass:\"plus\"})]),_c('div',{staticClass:\"coin-box\"},[_c('img',{staticClass:\"icon\",attrs:{\"src\":require(\"@/assets/images/lobby/coin.webp\"),\"alt\":\"coin\"}}),(item.ItemTypeID === _vm.rewardType.coin)?_c('span',[_vm._v(_vm._s(_vm.numberFilter(_vm.Precision.divide(item.Reward + item.DepositAmount, _vm.$store.getters.CurrencyRate))))]):_c('span',[_vm._v(_vm._s(_vm.numberFilter(_vm.Precision.divide(item.DepositAmount, _vm.$store.getters.CurrencyRate))))])]),_c('div',{staticClass:\"line\"}),(item.Flow)?_c('div',{staticClass:\"wager\"},[_c('span',[_vm._v(_vm._s(item.MissionType === _vm.missionType.netwin ? _vm.$t('Shared.Netwin') : _vm.$t('Shared.Flow'))+\":\")]),_c('span',[_vm._v(_vm._s(_vm.numberFilter(_vm.Precision.divide(item.Flow, _vm.$store.getters.CurrencyRate))))])]):_vm._e(),_c('button',{staticClass:\"primary\",attrs:{\"disabled\":item.IsMask,\"data-at-element\":\"deposit-promotion-join\"},on:{\"click\":function($event){return _vm.join(item)}}},[_vm._v(_vm._s(_vm.numberFilter(_vm.Precision.divide(item.DepositAmount, _vm.$store.getters.CurrencyRate))))])])})],2)])]:_vm._e(),(_vm.step === 2)?[_c('div',{staticClass:\"left-box w-full step2\"},[_c('validation-observer',{ref:\"form-step2\",attrs:{\"tag\":\"form\",\"autocomplete\":\"off\"}},[(_vm.form.ActivityID)?_c('div',{staticClass:\"title\"},[_vm._v(_vm._s(_vm.promotionList[0] && _vm.promotionList[0].IsFirst ? 'First Deposit' : _vm.$t('Shared.Promotion')))]):_vm._e(),_c('div',{staticClass:\"form-block\"},[_c('label',[_vm._v(_vm._s(_vm.$t('Shared.AgentBank')))]),_c('AgentBankSelect',{attrs:{\"options\":_vm.agentBankList,\"activeAgentBank\":_vm.activeAgentBank,\"data-at-element\":\"deposit-agent-bank\"},on:{\"change\":_vm.getAgentBank},model:{value:(_vm.agentBankModel),callback:function ($$v) {_vm.agentBankModel=$$v},expression:\"agentBankModel\"}}),_c('button',{staticClass:\"calculator-btn copy\",attrs:{\"type\":\"button\",\"data-at-element\":\"deposit-copy\"},on:{\"click\":_vm.copy}})],1),_c('div',{staticClass:\"form-block\"},[_c('label',[_vm._v(_vm._s(_vm.$t('Shared.Owner')))]),_c('div',{staticClass:\"flex\"},[_c('p',{staticClass:\"text-white font-bold\"},[_vm._v(_vm._s(_vm.activeAgentBank.AgentBankRealName))])])]),_c('div',{staticClass:\"form-block\"},[_c('label',[_vm._v(_vm._s(_vm.$t('Shared.MemberBank')))]),_c('MemberBankSelect',{attrs:{\"options\":_vm.memberBankList,\"activeMemberBank\":_vm.activeMemberBank,\"data-at-element\":\"deposit-member-bank\"},on:{\"change\":_vm.getMemberBank},model:{value:(_vm.memberBankModel),callback:function ($$v) {_vm.memberBankModel=$$v},expression:\"memberBankModel\"}})],1),_c('div',{staticClass:\"form-block\"},[_c('label',[_vm._v(_vm._s(_vm.$t('Shared.Receipt')))]),_c('validation-provider',{staticClass:\"upload-block\",attrs:{\"tag\":\"div\",\"rules\":\"required\"},scopedSlots:_vm._u([{key:\"default\",fn:function({failed,errors}){return [_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.image),expression:\"image\"}],attrs:{\"type\":\"hidden\"},domProps:{\"value\":(_vm.image)},on:{\"input\":function($event){if($event.target.composing)return;_vm.image=$event.target.value}}}),_c('button',{staticClass:\"calculator-btn\",staticStyle:{\"margin\":\"0\"},attrs:{\"type\":\"button\"},on:{\"click\":function($event){return _vm.$refs['upload-input'].click()}}},[_c('i',{staticClass:\"el-icon-upload\"})]),_c('input',{ref:\"upload-input\",staticClass:\"hidden receiptfile\",attrs:{\"id\":\"file\",\"type\":\"file\",\"data-at-element\":\"deposit-pic\",\"name\":\"file\",\"accept\":_vm.accept},on:{\"change\":_vm.onFileChange}}),(_vm.image)?_c('img',{attrs:{\"src\":_vm.image,\"alt\":\"no image\",\"width\":\"100\",\"height\":\"100\"}}):_vm._e(),_c('sub-tool-tip',{attrs:{\"show\":failed,\"msg\":errors[0],\"position\":'LeftBottom'}})]}}],null,false,2178362131)})],1),_c('div',{staticClass:\"form-block\"},[_c('label',[_vm._v(_vm._s(_vm.$t('Shared.Memo')))]),_c('validation-provider',{staticClass:\"memo\",attrs:{\"tag\":\"div\",\"rules\":\"DepositMemo\"}},[_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.form.Memo),expression:\"form.Memo\"}],attrs:{\"name\":\"Memo\",\"data-at-element\":\"deposit-memo\"},domProps:{\"value\":(_vm.form.Memo)},on:{\"input\":function($event){if($event.target.composing)return;_vm.$set(_vm.form, \"Memo\", $event.target.value)}}})])],1)]),_c('div',{staticClass:\"submit-block\"},[_c('img',{staticClass:\"back\",attrs:{\"data-at-element\":\"deposit-back\",\"src\":require(\"@/assets/images/wallet/back.svg\")},on:{\"click\":function($event){return _vm.handleBack()}}}),_c('img',{staticClass:\"coin\",attrs:{\"src\":require(\"@/assets/images/wallet/gif/coin.gif\")}}),_c('p',[_vm._v(_vm._s(`${_vm.form.Amount}${_vm.$store.getters.CurrencyID === 5 ? 'K' : ''}`))]),_c('button',{staticClass:\"primary\",attrs:{\"disabled\":_vm.checkStep2Form(),\"type\":\"button\",\"data-at-element\":\"deposit-submit\"},on:{\"click\":function($event){return _vm.submit()}}},[_vm._v(_vm._s(_vm.$t('Shared.Submit')))])])],1)]:_vm._e()]:_vm._e(),(!_vm.itemObject.Authority || _vm.isMemberBankEmpty)?_c('div',{staticClass:\"no-auhtority\"},[_c('p',{staticClass:\"no-authority-title\"},[_vm._v(_vm._s(_vm.$t('Shared.NoAuthority')))]),_c('p',{staticClass:\"no-authority-content\"},[_vm._v(_vm._s(_vm.$t('Shared.GoToBindMember')))]),(!_vm.$store.getters.isGameView)?_c('button',{staticClass:\"primary\",on:{\"click\":function($event){$event.preventDefault();return _vm.goToSomething.apply(null, arguments)}}},[_vm._v(_vm._s(_vm.$t('Shared.Confirm')))]):_vm._e()]):_vm._e()],2)\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","import API from '../../api'\nimport imageCompression from 'browser-image-compression'\nimport { mapGetters } from 'vuex'\nimport { isEmpty, min, max, join } from 'lodash'\nimport rewardType from '../../constant/rewardType'\nimport missionType from '../../constant/missionType'\n\nexport default {\n inject: ['Precision'],\n name: 'VipDeposit',\n props: {\n itemObject: {\n type: Object || Array,\n default: () => {\n return []\n }\n },\n promotionList: {\n type: Array,\n default: () => []\n },\n isJoin: {\n type: Boolean,\n default: false\n }\n },\n data() {\n return {\n isEmpty,\n rewardType,\n missionType,\n isLoading: false,\n numberInputFocus: false,\n result: {\n itemObject: null\n },\n accept: 'image/jpeg,image/png',\n image: null,\n form: {\n ActivityID: null,\n AgentBankID: null,\n MemberBankID: null,\n MemberBankAccount: null,\n Amount: null,\n Memo: null,\n Image: null\n },\n agentBankModel: null,\n memberBankModel: null,\n agentBankList: [],\n memberBankList: [],\n activeAgentBank: {},\n activeMemberBank: {},\n step: 1\n }\n },\n computed: {\n amountKey() {\n const amounts = [\n 1,\n 10,\n 100,\n 500,\n 1000\n ]\n return this.$store.getters.CurrencyID === 5\n ? amounts\n : amounts.map(item => this.Precision.divide(item, this.$store.getters.CurrencyRate))\n },\n ...mapGetters('wallet', ['AgentBank', 'MemberBank']),\n isMemberBankEmpty() {\n return isEmpty(this.MemberBank.data?.BankList)\n },\n depositLimit() {\n if (isEmpty(this.AgentBank.data)) {\n return {\n Lower: '',\n Upper: ''\n }\n }\n const result = {\n Lower: max(this.AgentBank.data.map(item => item.DepositLowerLimit)) ? max(this.AgentBank.data.map(item => item.DepositLowerLimit)) : '',\n Upper: min(this.AgentBank.data.map(item => item.DepositUpperLimit)) ? min(this.AgentBank.data.map(item => item.DepositUpperLimit)) : ''\n }\n if (this.$store.getters.CurrencyID !== 5 && result.Lower && result.Upper) {\n result.Lower = this.Precision.divide(result.Lower, this.$store.getters.CurrencyRate)\n result.Upper = this.Precision.divide(result.Upper, this.$store.getters.CurrencyRate)\n }\n return result\n },\n amountPlaceholder() {\n if (!this.depositLimit.Lower || !this.depositLimit.Upper) return ''\n const filter = this.$options.filters.toThousandFilter\n const rate = this.$store.getters.CurrencyID === 5 ? 1000 : 1\n return `${filter(this.Precision.multiply(this.depositLimit.Lower, rate))} ~ ${filter(this.Precision.multiply(this.depositLimit.Upper, rate))} ${this.$store.getters.CurrencyID === 5 ? 'K' : ''}${this.$store.getters.CurrencyName}`\n },\n filterPromotionList() {\n return this.promotionList.filter(item => {\n const amount = this.Precision.divide(item.DepositAmount, this.$store.getters.CurrencyRate)\n const lowerCondition = !this.depositLimit.Lower ? true : amount >= this.depositLimit.Lower\n const upperConfition = !this.depositLimit.Upper ? true : amount <= this.depositLimit.Upper\n return lowerCondition && upperConfition\n })\n }\n },\n watch: {\n 'AgentBank.data': {\n handler(val) {\n if (isEmpty(this.agentBankList) && !isEmpty(val)) {\n this.agentBankList = val\n this.activeAgentBank = val[0]\n this.form.AgentBankID = val[0]?.AgentBankID\n }\n },\n immediate: true,\n deep: true\n },\n 'MemberBank.data': {\n handler(val) {\n if (isEmpty(this.memberBankList) && !isEmpty(val.BankList)) {\n this.memberBankList = val.BankList\n this.activeMemberBank = val.BankList[0]\n this.form.MemberBankID = this.activeMemberBank.MemberBankID\n this.form.MemberBankAccount = this.activeMemberBank.MemberBankAccount\n this.agentBankModel = `${this.activeAgentBank.AgentBankID}_${this.activeAgentBank.AgentBankAccount}`\n this.memberBankModel = `${this.activeMemberBank.MemberBankID}_${this.activeMemberBank.MemberBankAccount}`\n }\n },\n immediate: true,\n deep: true\n },\n isJoin: {\n handler(val) {\n if (val) {\n this.step = 'promotion'\n }\n },\n immediate: true\n }\n },\n mounted() {\n if (this.itemObject?.itemData) {\n const { itemData } = this.itemObject\n if (itemData.GroupID) {\n this.step = 'promotion'\n }\n }\n },\n methods: {\n numberFilter(val) {\n return this.$options.filters.toThousandFilter(val, 0)\n },\n handleQuit() {\n this.step = 1\n this.$emit('cancelJoin')\n },\n onFileChange(e) {\n var files = e.target.files || e.dataTransfer.files\n if (!files.length) {\n return\n }\n const isIMAGE = (files[0].type === 'image/jpeg' || files[0].type === 'image/png')\n const isLt1M = files[0].size / 1024 / 1024 < 0.8\n\n if (!isIMAGE) {\n this.$message.error('Only Upload jpg/png !')\n e.target.files = null\n return\n }\n\n if (!isLt1M) {\n this.compressImage(files[0])\n } else {\n this.createImage(files[0])\n const reader = new FileReader()\n reader.readAsDataURL(files[0])\n reader.onload = this.openFile\n }\n },\n compressImage(file) {\n const self = this\n const options = {\n maxSizeMB: 0.7,\n initialQuality: 0.6\n }\n this.$store.commit('app/SET_ISLOADING', true)\n imageCompression(file, options)\n .then(res => {\n this.$store.commit('app/SET_ISLOADING', false)\n const reader = new FileReader()\n reader.readAsDataURL(res)\n reader.onloadend = function() {\n const base64data = reader.result\n self.form.Image = base64data\n self.image = base64data\n }\n })\n .catch(err => {\n console.log(err)\n this.$store.commit('app/SET_ISLOADING', false)\n })\n },\n openFile(event) {\n this.form.Image = event.target.result\n },\n createImage(file) {\n // var image = new Image()\n var reader = new FileReader()\n var vm = this\n\n reader.onload = (e) => {\n vm.image = e.target.result\n }\n reader.readAsDataURL(file)\n },\n removeImage() {\n document.getElementById('file').value = null\n this.image = null\n },\n getAgentBank(val) {\n this.activeAgentBank = this.agentBankList.find(item => `${item.AgentBankID}_${item.AgentBankAccount}` === val)\n this.form.AgentBankID = this.activeAgentBank.AgentBankID\n },\n getMemberBank(val) {\n this.activeMemberBank = this.memberBankList.find(item => `${item.MemberBankID}_${item.MemberBankAccount}` === val)\n this.form.MemberBankID = this.activeMemberBank.MemberBankID\n this.form.MemberBankAccount = this.activeMemberBank.MemberBankAccount\n },\n submit() {\n this.$refs['form-step2'].validate().then(async valid => {\n if (valid) {\n if (this.form.ActivityID) {\n this.$store.commit('app/SET_ISLOADING', true)\n const result = await API.Financial.CheckActivityDeposit({\n PromotionID: this.form.ActivityID\n }).catch(err => {\n this.$store.commit('app/SET_ISLOADING', false)\n throw err\n })\n if (result.ErrorCode !== 0) {\n this.$store.commit('app/SET_ISLOADING', false)\n return false\n }\n }\n\n var k_amount = 0\n var thb_amount = 0\n switch (this.$store.getters.CurrencyID) {\n case 5:\n // 存提款特規需求 KVND\n k_amount = this.Precision.multiply(this.form.Amount, 1000) // KVND\n thb_amount = this.Precision.multiply(k_amount, this.$store.getters.CurrencyRate) // THB\n break\n default:\n thb_amount = this.Precision.multiply(this.form.Amount, this.$store.getters.CurrencyRate) // THB\n break\n }\n\n var formData = {\n Code: this.itemObject?.itemData?.Code,\n ActivityID: this.form.ActivityID,\n Amount: thb_amount,\n Image: this.form.Image,\n MemberBankID: this.form.MemberBankID,\n MemberBankAccount: this.form.MemberBankAccount,\n AgentBankID: this.form.AgentBankID,\n Memo: this.form.Memo\n }\n if (this.form.Image === null) {\n this.$message.error({\n message: this.$t('Message.Msg.PleaseUploadImage')\n })\n return false\n }\n this.$store.commit('app/SET_ISLOADING', true)\n const { ErrorCode, Data } = await API.Financial.Deposit(formData)\n this.$store.commit('app/SET_ISLOADING', false)\n if (ErrorCode === 0 && Data) {\n this.$track('存款成功', {\n event_category: 'Deposit',\n event_label: '存款成功',\n value: thb_amount\n })\n this.$message.success({\n message: this.$t('Shared.Success')\n })\n this.$emit('closeDialog')\n }\n } else {\n console.log('error')\n return false\n }\n })\n },\n goToSomething() {\n this.$emit('goToSomething')\n },\n copy() {\n const aux = document.createElement('input')\n aux.setAttribute('value', this.activeAgentBank.AgentBankAccount)\n document.body.appendChild(aux)\n aux.select()\n document.execCommand('copy')\n document.body.removeChild(aux)\n this.$message.success({\n message: this.$t('Shared.Copy') + this.$t('Shared.Success')\n })\n },\n handleCalculatorClick(num) {\n if (!num) {\n this.form.Amount = null\n return\n }\n this.form.Amount = Number(this.form.Amount) + Number(num)\n },\n join(item) {\n this.form.ActivityID = item.PromotionID\n this.form.Amount = this.$store.getters.CurrencyID === 5 // 越南幣不作轉換\n ? item.DepositAmount\n : this.Precision.divide(item.DepositAmount, this.$store.getters.CurrencyRate)\n this.step = 2\n },\n checkStep2Form() {\n if (!this.form.Image) return true\n return false\n },\n handleNext() {\n this.$refs.form1.validate()\n .then(valid => {\n if (valid) this.step = 2\n })\n },\n handleBack() {\n if (this.itemObject?.itemData) {\n const { itemData } = this.itemObject\n if (itemData.GroupID || itemData.Code) {\n this.step = 'promotion'\n this.form.Amount = null\n this.form.ActivityID = null\n }\n } else {\n if (this.form.ActivityID) {\n this.step = 'promotion'\n } else {\n this.step = 1\n }\n this.form.ActivityID = null\n }\n }\n }\n}\n","\n.deposit(v-loading=\"isLoading\" element-loading-background=\"rgba(0, 0, 0, 0)\")\n template(v-if=\"itemObject.Authority && !isLoading && !isMemberBankEmpty\")\n template(v-if=\"step === 1\")\n .left-box.step1\n validation-observer(tag=\"form\", ref=\"form1\" autocomplete=\"off\")\n .form-block\n label {{ $t('Shared.Amount') }}\n validation-provider(:class=\"{ 'number-input': true, active: numberInputFocus }\" tag=\"div\", :rules=\"'required|Deposit_Amount:' + depositLimit.Lower + ',' + depositLimit.Upper\", v-slot=\"{failed,errors}\")\n img(src=\"@/assets/images/wallet/gif/coin.gif\")\n input(autocomplete=\"off\" data-at-element=\"deposit-amount\" v-model=\"form.Amount\", type=\"text\" name=\"Amount\" :placeholder=\"amountPlaceholder\" @focus=\"numberInputFocus = true\" @blur=\"numberInputFocus = false\")\n sub-tool-tip(:show=\"failed\", :msg=\"errors[0]\", :position=\"'LeftBottom'\")\n .right-box\n .calculator\n button.calculator-btn(v-for=\"(item, idx) in amountKey\" :data-at-element=\"`deposit-calculator-btn-${item}`\" @click=\"handleCalculatorClick(item)\")\n img(:src=\"require(`@/assets/images/wallet/calculator${idx}.webp`)\")\n p +{{ item }}{{ $store.getters.CurrencyID === 5 ? 'K' : '' }}\n button.calculator-btn--cancel(@click=\"handleCalculatorClick()\" data-at-element=\"deposit-calculator-btn-clear\") C\n button.primary.submit(:disabled=\"!form.Amount\" @click=\"handleNext\" data-at-element=\"deposit-next\") {{ $t('Shared.Next') }}\n template(v-if=\"step === 'promotion'\")\n .promotion-box\n .quit(v-if=\"!(itemObject.itemData && itemObject.itemData.GroupID) && !(itemObject.itemData && itemObject.itemData.Code)\" data-at-element=\"deposit-quit\" @click=\"handleQuit\")\n img(src=\"@/assets/images/wallet/arrow-left.webp\")\n span {{ $t('Shared.Quit') }}\n .title {{ filterPromotionList[0] && filterPromotionList[0].IsFirst ? 'First Deposit' : $t('Shared.Promotion') }}\n .card-box\n p.no-promotion(v-if=\"isEmpty(filterPromotionList)\") {{ $t('Shared.NoPromotionItem') }}\n .promotion-card(v-for=\"item in filterPromotionList\" :class=\"{ mask: item.IsMask }\")\n .extra-box(v-if=\"item.ItemTypeID === 1\")\n b + {{ item.RewardRate }}%\n span.coin {{ numberFilter(Precision.divide(item.DepositAmount, $store.getters.CurrencyRate)) }}\n .extra-box(v-else)\n span.diamond {{ item.Reward | diamondFilter }}\n img.diamond(src=\"@/assets/images/common/diamond.webp\" alt=\"diamond\")\n .plus\n .coin-box\n img.icon(src=\"@/assets/images/lobby/coin.webp\" alt=\"coin\")\n span(v-if=\"item.ItemTypeID === rewardType.coin\") {{ numberFilter(Precision.divide(item.Reward + item.DepositAmount, $store.getters.CurrencyRate)) }}\n span(v-else) {{ numberFilter(Precision.divide(item.DepositAmount, $store.getters.CurrencyRate)) }}\n .line\n .wager(v-if=\"item.Flow\")\n span {{ item.MissionType === missionType.netwin ? $t('Shared.Netwin') : $t('Shared.Flow') }}:\n span {{ numberFilter(Precision.divide(item.Flow, $store.getters.CurrencyRate)) }}\n button.primary(:disabled=\"item.IsMask\" @click=\"join(item)\" data-at-element=\"deposit-promotion-join\") {{ numberFilter(Precision.divide(item.DepositAmount, $store.getters.CurrencyRate)) }}\n template(v-if=\"step === 2\")\n .left-box.w-full.step2\n validation-observer(tag=\"form\", ref=\"form-step2\" autocomplete=\"off\")\n .title(v-if=\"form.ActivityID\") {{ promotionList[0] && promotionList[0].IsFirst ? 'First Deposit' : $t('Shared.Promotion') }}\n .form-block\n label {{ $t('Shared.AgentBank') }}\n AgentBankSelect(v-model=\"agentBankModel\" :options=\"agentBankList\" :activeAgentBank=\"activeAgentBank\" @change=\"getAgentBank\" data-at-element=\"deposit-agent-bank\")\n button.calculator-btn.copy(@click=\"copy\" type=\"button\" data-at-element=\"deposit-copy\")\n .form-block\n label {{ $t('Shared.Owner') }}\n .flex\n p.text-white.font-bold {{ activeAgentBank.AgentBankRealName }}\n .form-block\n label {{ $t('Shared.MemberBank') }}\n MemberBankSelect(v-model=\"memberBankModel\" :options=\"memberBankList\" :activeMemberBank=\"activeMemberBank\" @change=\"getMemberBank\" data-at-element=\"deposit-member-bank\")\n .form-block\n label {{ $t('Shared.Receipt') }}\n validation-provider(tag=\"div\", class=\"upload-block\" rules=\"required\", v-slot=\"{failed,errors}\")\n input(type=\"hidden\", v-model=\"image\")\n button.calculator-btn(type=\"button\" @click=\"$refs['upload-input'].click()\" style=\"margin: 0\")\n i.el-icon-upload\n input.hidden(id=\"file\", ref=\"upload-input\" type=\"file\", data-at-element=\"deposit-pic\" class=\"receiptfile\", name=\"file\", :accept=\"accept\", @change=\"onFileChange\")\n img(v-if=\"image\" :src=\"image\", alt=\"no image\", width=\"100\", height=\"100\")\n sub-tool-tip(:show=\"failed\", :msg=\"errors[0]\", :position=\"'LeftBottom'\")\n .form-block\n label {{ $t('Shared.Memo') }}\n validation-provider(class=\"memo\" tag=\"div\", rules=\"DepositMemo\")\n input(v-model=\"form.Memo\", name=\"Memo\" data-at-element=\"deposit-memo\")\n .submit-block\n img.back(@click=\"handleBack()\" data-at-element=\"deposit-back\" src=\"@/assets/images/wallet/back.svg\")\n img.coin(src=\"@/assets/images/wallet/gif/coin.gif\")\n p {{ `${form.Amount}${$store.getters.CurrencyID === 5 ? 'K' : ''}` }}\n button.primary(:disabled=\"checkStep2Form()\" @click=\"submit()\" type=\"button\" data-at-element=\"deposit-submit\") {{ $t('Shared.Submit') }}\n .no-auhtority(v-if=\"!itemObject.Authority || isMemberBankEmpty\")\n p.no-authority-title {{ $t('Shared.NoAuthority') }}\n p.no-authority-content {{ $t('Shared.GoToBindMember') }}\n button.primary(v-if=\"!$store.getters.isGameView\" @click.prevent='goToSomething') {{ $t('Shared.Confirm') }}\n\n\n\n","import mod from \"-!../../../../node_modules/cache-loader/dist/cjs.js??ref--13-0!../../../../node_modules/thread-loader/dist/cjs.js!../../../../node_modules/babel-loader/lib/index.js!../../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./deposit.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../node_modules/cache-loader/dist/cjs.js??ref--13-0!../../../../node_modules/thread-loader/dist/cjs.js!../../../../node_modules/babel-loader/lib/index.js!../../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./deposit.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./deposit.vue?vue&type=template&id=ec21cad8&scoped=true&lang=pug&\"\nimport script from \"./deposit.vue?vue&type=script&lang=js&\"\nexport * from \"./deposit.vue?vue&type=script&lang=js&\"\nimport style0 from \"./deposit.vue?vue&type=style&index=0&id=ec21cad8&prod&scoped=true&lang=scss&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"ec21cad8\",\n null\n \n)\n\nexport default component.exports","export default Object.freeze({\n bet: 1,\n netwin: 2\n})\n","module.exports = __webpack_public_path__ + \"static/img/back.9d5add36.svg\";"],"sourceRoot":""}