@jetthai/cuora 1.1.20 → 1.1.21

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -2,6 +2,8 @@
2
2
 
3
3
  All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
4
4
 
5
+ ### [1.1.21](https://github.com/jetthai/cuora-module/compare/v1.1.20...v1.1.21) (2022-12-30)
6
+
5
7
  ### [1.1.20](https://github.com/jetthai/cuora-module/compare/v1.1.19...v1.1.20) (2022-12-30)
6
8
 
7
9
  ### [1.1.19](https://github.com/jetthai/cuora-module/compare/v1.1.18...v1.1.19) (2022-12-29)
package/dist/bundle.mjs CHANGED
@@ -13013,13 +13013,7 @@ function reward (request) {
13013
13013
  rewardList: [],
13014
13014
  activityNo: null,
13015
13015
  receiveNo: null,
13016
- turnoverLimitStatus: 'NEW',
13017
- originalTurnoverLimit: 0,
13018
- originalMaxWithdrawAmount: 0,
13019
- originalLimitGameDetail: [],
13020
- newTurnoverLimit: 0,
13021
- newMaxWithdrawAmount: 0,
13022
- newLimitGameDetail: [],
13016
+ withdrawRule: {},
13023
13017
  callback: () => {},
13024
13018
  },
13025
13019
  states: {
@@ -13150,7 +13144,7 @@ function reward (request) {
13150
13144
  },
13151
13145
  setWithdrawRulePreview: (context, event) => {
13152
13146
  return {
13153
- ...event.data,
13147
+ withdrawRule: event.data,
13154
13148
  }
13155
13149
  },
13156
13150
  },
@@ -16720,7 +16714,7 @@ function loadcard_vn (request) {
16720
16714
  },
16721
16715
  guards: {
16722
16716
  isPromotionApplyMode: (context, event) => {
16723
- return context.siteConfig?.promotionApplyMode === '1'
16717
+ return context.siteConfig?.walletMode === '2'
16724
16718
  },
16725
16719
  isSubmittable: (context, event) => {
16726
16720
  const { cardNumber, serialNumber } = context;
@@ -17339,7 +17333,7 @@ function qrcode_v2 (request) {
17339
17333
  },
17340
17334
  guards: {
17341
17335
  isPromotionApplyMode: (context, event) => {
17342
- return context.siteConfig?.promotionApplyMode === '1'
17336
+ return context.siteConfig?.walletMode === '2'
17343
17337
  },
17344
17338
  },
17345
17339
  services: {
@@ -18640,7 +18634,7 @@ function crypto_button (request) {
18640
18634
  },
18641
18635
  guards: {
18642
18636
  isPromotionApplyMode: (context, event) => {
18643
- return context.siteConfig?.promotionApplyMode === '1'
18637
+ return context.siteConfig?.walletMode === '2'
18644
18638
  },
18645
18639
  isConfirmable: (context, event) => {
18646
18640
  const { selectedCrypto, selectedNetwork } = context;
@@ -20236,36 +20230,8 @@ function promotions (request) {
20236
20230
  id: 'promotions',
20237
20231
  initial: 'loading',
20238
20232
  context: {
20239
- noBonus: {
20240
- promotionsNo: 'No Bonus',
20241
- title: 'No Bonus',
20242
- adSmallUrl: [
20243
- {
20244
- url: '~/assets/images/deposit/deposit_img_nobonus_normal.png',
20245
- name: 'No Bonus',
20246
- },
20247
- ],
20248
- descrip: 'no_bonus',
20249
- minimumAmount: 0,
20250
- turnoverLimitMultiple: 1,
20251
- promotionDetail: [],
20252
- withdrawLimitDetail: [
20253
- {
20254
- greaterEqualThen: 0,
20255
- lessEqualThen: -1,
20256
- maxWithdrawAmount: -1,
20257
- turnoverLimitMultiple: 1,
20258
- },
20259
- ],
20260
- limitGameDetail: [],
20261
- },
20262
- turnoverLimitStatus: '',
20263
- originalTurnoverLimit: 0,
20264
- originalMaxWithdrawAmount: 0,
20265
- originalLimitGameDetail: [],
20266
- newTurnoverLimit: 0,
20267
- newMaxWithdrawAmount: 0,
20268
- newLimitGameDetail: [],
20233
+ noBonus: {},
20234
+ withdrawRule: {},
20269
20235
  promotionsList: [],
20270
20236
  selectedPromo: {},
20271
20237
  },
@@ -20354,7 +20320,7 @@ function promotions (request) {
20354
20320
  }),
20355
20321
  setWithdrawRulePreview: assign((context, event) => {
20356
20322
  return {
20357
- ...event.data,
20323
+ withdrawRule: event.data,
20358
20324
  }
20359
20325
  }),
20360
20326
  reset: assign((context, event) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jetthai/cuora",
3
- "version": "1.1.20",
3
+ "version": "1.1.21",
4
4
  "description": "",
5
5
  "main": "./src/index.js",
6
6
  "type": "module",
@@ -401,7 +401,7 @@ export default function (request) {
401
401
  },
402
402
  guards: {
403
403
  isPromotionApplyMode: (context, event) => {
404
- return context.siteConfig?.promotionApplyMode === '1'
404
+ return context.siteConfig?.walletMode === '2'
405
405
  },
406
406
  isConfirmable: (context, event) => {
407
407
  const { selectedCrypto, selectedNetwork } = context
@@ -322,7 +322,7 @@ export default function (request) {
322
322
  },
323
323
  guards: {
324
324
  isPromotionApplyMode: (context, event) => {
325
- return context.siteConfig?.promotionApplyMode === '1'
325
+ return context.siteConfig?.walletMode === '2'
326
326
  },
327
327
  isSubmittable: (context, event) => {
328
328
  const { cardNumber, serialNumber } = context
@@ -375,7 +375,7 @@ export default function (request) {
375
375
  },
376
376
  guards: {
377
377
  isPromotionApplyMode: (context, event) => {
378
- return context.siteConfig?.promotionApplyMode === '1'
378
+ return context.siteConfig?.walletMode === '2'
379
379
  },
380
380
  },
381
381
  services: {
@@ -7,36 +7,8 @@ export default function (request) {
7
7
  id: 'promotions',
8
8
  initial: 'loading',
9
9
  context: {
10
- noBonus: {
11
- promotionsNo: 'No Bonus',
12
- title: 'No Bonus',
13
- adSmallUrl: [
14
- {
15
- url: '~/assets/images/deposit/deposit_img_nobonus_normal.png',
16
- name: 'No Bonus',
17
- },
18
- ],
19
- descrip: 'no_bonus',
20
- minimumAmount: 0,
21
- turnoverLimitMultiple: 1,
22
- promotionDetail: [],
23
- withdrawLimitDetail: [
24
- {
25
- greaterEqualThen: 0,
26
- lessEqualThen: -1,
27
- maxWithdrawAmount: -1,
28
- turnoverLimitMultiple: 1,
29
- },
30
- ],
31
- limitGameDetail: [],
32
- },
33
- turnoverLimitStatus: '',
34
- originalTurnoverLimit: 0,
35
- originalMaxWithdrawAmount: 0,
36
- originalLimitGameDetail: [],
37
- newTurnoverLimit: 0,
38
- newMaxWithdrawAmount: 0,
39
- newLimitGameDetail: [],
10
+ noBonus: {},
11
+ withdrawRule: {},
40
12
  promotionsList: [],
41
13
  selectedPromo: {},
42
14
  },
@@ -125,7 +97,7 @@ export default function (request) {
125
97
  }),
126
98
  setWithdrawRulePreview: assign((context, event) => {
127
99
  return {
128
- ...event.data,
100
+ withdrawRule: event.data,
129
101
  }
130
102
  }),
131
103
  reset: assign((context, event) => {
@@ -14,13 +14,7 @@ export default function (request) {
14
14
  rewardList: [],
15
15
  activityNo: null,
16
16
  receiveNo: null,
17
- turnoverLimitStatus: 'NEW',
18
- originalTurnoverLimit: 0,
19
- originalMaxWithdrawAmount: 0,
20
- originalLimitGameDetail: [],
21
- newTurnoverLimit: 0,
22
- newMaxWithdrawAmount: 0,
23
- newLimitGameDetail: [],
17
+ withdrawRule: {},
24
18
  callback: () => {},
25
19
  },
26
20
  states: {
@@ -151,7 +145,7 @@ export default function (request) {
151
145
  },
152
146
  setWithdrawRulePreview: (context, event) => {
153
147
  return {
154
- ...event.data,
148
+ withdrawRule: event.data,
155
149
  }
156
150
  },
157
151
  },