@jetthai/cuora 1.1.35-roulette → 1.1.36

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/dist/bundle.mjs CHANGED
@@ -1,6 +1,6 @@
1
1
  import payment$1 from '@jetthai/cuora/src/api/payment.js';
2
2
 
3
- var api = {
3
+ var activity$2 = {
4
4
  getActivityTypes: ({ appSecret }) => ({ url: 'activities/types', method: 'get', params: { appSecret } }),
5
5
  getActivityList: ({ appSecret, include = 'cl' }) => ({
6
6
  url: 'activities/list',
@@ -3917,7 +3917,7 @@ var form = {
3917
3917
  upload: (formData) => ({ url: 'upload', method: 'post', params: formData, isFormData: true }),
3918
3918
  };
3919
3919
 
3920
- var index$2 = { activity: api, auth: auth$1, common: common$1, game: game$1, mailbox, payment, user, form };
3920
+ var index$2 = { activity: activity$2, auth: auth$1, common: common$1, game: game$1, mailbox, payment, user, form };
3921
3921
 
3922
3922
  /*! *****************************************************************************
3923
3923
  Copyright (c) Microsoft Corporation.
@@ -7175,12 +7175,12 @@ function continue_deposit_activity (request) {
7175
7175
  services: {
7176
7176
  fetchActivityDetail: async (context, event) => {
7177
7177
  const { activityNo } = context;
7178
- const { data } = await request.send(api.getActivityDetail({ activityNo, appSecret }));
7178
+ const { data } = await request.send(activity$2.getActivityDetail({ activityNo, appSecret }));
7179
7179
  return data
7180
7180
  },
7181
7181
  receiveReward: async (context, event) => {
7182
7182
  const { activityNo, receiveNo } = context;
7183
- const { data } = await request.send(api.getReward({ activityNo, receiveNo, appSecret }));
7183
+ const { data } = await request.send(activity$2.getReward({ activityNo, receiveNo, appSecret }));
7184
7184
  return data
7185
7185
  },
7186
7186
  },
@@ -7264,7 +7264,7 @@ function deposit_activity (request) {
7264
7264
  services: {
7265
7265
  fetchActivityDetail: async (context, event) => {
7266
7266
  const { activityNo } = context;
7267
- const { data } = await request.send(api.getActivityDetail({ activityNo, appSecret }));
7267
+ const { data } = await request.send(activity$2.getActivityDetail({ activityNo, appSecret }));
7268
7268
  return data
7269
7269
  },
7270
7270
  },
@@ -7436,12 +7436,12 @@ function diamond_shop_activity_fc (request) {
7436
7436
  },
7437
7437
  services: {
7438
7438
  fetchActivityList: async (context, event) => {
7439
- const { data } = await request.send(api.getActivityList({ appSecret }));
7439
+ const { data } = await request.send(activity$2.getActivityList({ appSecret }));
7440
7440
  return data
7441
7441
  },
7442
7442
  fetchActivityDetail: async (context, event) => {
7443
7443
  const { activityNo } = context;
7444
- const { data } = await request.send(api.getActivityDetail({ activityNo, appSecret }));
7444
+ const { data } = await request.send(activity$2.getActivityDetail({ activityNo, appSecret }));
7445
7445
  return data
7446
7446
  },
7447
7447
  exchange: async (context, event) => {
@@ -7449,7 +7449,7 @@ function diamond_shop_activity_fc (request) {
7449
7449
  return await Promise.all(
7450
7450
  exchangeList.map((item) =>
7451
7451
  request.send(
7452
- api.exchange({
7452
+ activity$2.exchange({
7453
7453
  exchangeType: 1,
7454
7454
  activityNo,
7455
7455
  exchangeAward: item.award,
@@ -7459,7 +7459,7 @@ function diamond_shop_activity_fc (request) {
7459
7459
  )
7460
7460
  },
7461
7461
  collect: async (context, event) => {
7462
- return await request.send(api.collect({ appSecret }))
7462
+ return await request.send(activity$2.collect({ appSecret }))
7463
7463
  },
7464
7464
  },
7465
7465
  }
@@ -7651,18 +7651,18 @@ function diamond_shop_activity_vn (request) {
7651
7651
  },
7652
7652
  services: {
7653
7653
  fetchActivityList: async (context, event) => {
7654
- const { data } = await request.send(api.getActivityList({ appSecret }));
7654
+ const { data } = await request.send(activity$2.getActivityList({ appSecret }));
7655
7655
  return data
7656
7656
  },
7657
7657
  fetchActivityDetail: async (context, event) => {
7658
7658
  const { activityNo } = context;
7659
- const { data } = await request.send(api.getActivityDetail({ activityNo, appSecret }));
7659
+ const { data } = await request.send(activity$2.getActivityDetail({ activityNo, appSecret }));
7660
7660
  return data
7661
7661
  },
7662
7662
  exchange: async (context, event) => {
7663
7663
  const { activityNo } = context;
7664
7664
  return await request.send(
7665
- api.exchange({
7665
+ activity$2.exchange({
7666
7666
  exchangeType: 1,
7667
7667
  activityNo,
7668
7668
  exchangeAward: event.data,
@@ -7670,7 +7670,7 @@ function diamond_shop_activity_vn (request) {
7670
7670
  )
7671
7671
  },
7672
7672
  collect: async (context, event) => {
7673
- return await request.send(api.collect({ appSecret }))
7673
+ return await request.send(activity$2.collect({ appSecret }))
7674
7674
  },
7675
7675
  },
7676
7676
  }
@@ -7851,17 +7851,17 @@ function fafafa_activity (request) {
7851
7851
  services: {
7852
7852
  fetchActivityDetail: async (context, event) => {
7853
7853
  const { activityNo } = context;
7854
- const { data } = await request.send(api.getActivityDetail({ activityNo, appSecret }));
7854
+ const { data } = await request.send(activity$2.getActivityDetail({ activityNo, appSecret }));
7855
7855
  return data
7856
7856
  },
7857
7857
  awardPrize: async (context, event) => {
7858
7858
  const { activityNo } = context;
7859
- const { data } = await request.send(api.sentAward({ activityNo, appSecret }));
7859
+ const { data } = await request.send(activity$2.sentAward({ activityNo, appSecret }));
7860
7860
  return data
7861
7861
  },
7862
7862
  receiveReward: async (context, event) => {
7863
7863
  const { activityNo, receiveNo } = context;
7864
- const { data } = await request.send(api.getReward({ activityNo, receiveNo, appSecret }));
7864
+ const { data } = await request.send(activity$2.getReward({ activityNo, receiveNo, appSecret }));
7865
7865
  return data
7866
7866
  },
7867
7867
  },
@@ -7972,7 +7972,7 @@ function invite_friends_activity (request) {
7972
7972
  },
7973
7973
  awardPrize: async (context, event) => {
7974
7974
  const { activityNo, uidSite, bindingCode } = context;
7975
- const { data } = await request.send(api.sentAward({ activityNo, uidSite, affiliateCode: bindingCode, appSecret }));
7975
+ const { data } = await request.send(activity$2.sentAward({ activityNo, uidSite, affiliateCode: bindingCode, appSecret }));
7976
7976
  return data
7977
7977
  },
7978
7978
  },
@@ -8170,7 +8170,7 @@ function affiliate_invite_friends_activity (request) {
8170
8170
  },
8171
8171
  awardPrize: async (context, event) => {
8172
8172
  const { activityNo, uidSite, bindingCode } = context;
8173
- const { data } = await request.send(api.sentAward({ activityNo, uidSite, affiliateCode: bindingCode, appSecret }));
8173
+ const { data } = await request.send(activity$2.sentAward({ activityNo, uidSite, affiliateCode: bindingCode, appSecret }));
8174
8174
  return data
8175
8175
  },
8176
8176
  fetchLevelDownLineList: async (context, event) => {
@@ -8279,7 +8279,7 @@ function ranking_activity (request) {
8279
8279
  services: {
8280
8280
  fetchActivityDetail: async (context, event) => {
8281
8281
  const { activityNo } = context;
8282
- const { data } = await request.send(api.getActivityDetail({ activityNo, appSecret }));
8282
+ const { data } = await request.send(activity$2.getActivityDetail({ activityNo, appSecret }));
8283
8283
  return data
8284
8284
  },
8285
8285
  },
@@ -8419,16 +8419,16 @@ function return_bonus_activity (request) {
8419
8419
  services: {
8420
8420
  fetchActivityDetail: async (context, event) => {
8421
8421
  const { activityNo } = context;
8422
- const { data } = await request.send(api.getActivityDetail({ activityNo, appSecret }));
8422
+ const { data } = await request.send(activity$2.getActivityDetail({ activityNo, appSecret }));
8423
8423
  return data
8424
8424
  },
8425
8425
  receiveReward: async (context, event) => {
8426
8426
  const { activityNo, receiveNo } = context.rewardList[0];
8427
- const { data } = await request.send(api.getReward({ activityNo, receiveNo, appSecret }));
8427
+ const { data } = await request.send(activity$2.getReward({ activityNo, receiveNo, appSecret }));
8428
8428
  return data
8429
8429
  },
8430
8430
  fetchRewardList: async (context, event) => {
8431
- const { data } = await request.send(api.getRewardList({ appSecret, count: 30 }));
8431
+ const { data } = await request.send(activity$2.getRewardList({ appSecret, count: 30 }));
8432
8432
  return data
8433
8433
  },
8434
8434
  },
@@ -8534,12 +8534,12 @@ function specify_bets_activity (request) {
8534
8534
  services: {
8535
8535
  fetchActivityDetail: async (context, event) => {
8536
8536
  const { activityNo } = context;
8537
- const { data } = await request.send(api.getActivityDetail({ activityNo, appSecret }));
8537
+ const { data } = await request.send(activity$2.getActivityDetail({ activityNo, appSecret }));
8538
8538
  return data
8539
8539
  },
8540
8540
  receiveReward: async (context, event) => {
8541
8541
  const { activityNo, receiveNo } = context.activityDetail;
8542
- const { data } = await request.send(api.getReward({ activityNo, receiveNo, appSecret }));
8542
+ const { data } = await request.send(activity$2.getReward({ activityNo, receiveNo, appSecret }));
8543
8543
  return data
8544
8544
  },
8545
8545
  },
@@ -8645,12 +8645,12 @@ function specify_turnover_activity (request) {
8645
8645
  services: {
8646
8646
  fetchActivityDetail: async (context, event) => {
8647
8647
  const { activityNo } = context;
8648
- const { data } = await request.send(api.getActivityDetail({ activityNo, appSecret }));
8648
+ const { data } = await request.send(activity$2.getActivityDetail({ activityNo, appSecret }));
8649
8649
  return data
8650
8650
  },
8651
8651
  receiveReward: async (context, event) => {
8652
8652
  const { activityNo, receiveNo } = context.activityDetail;
8653
- const { data } = await request.send(api.getReward({ activityNo, receiveNo, appSecret }));
8653
+ const { data } = await request.send(activity$2.getReward({ activityNo, receiveNo, appSecret }));
8654
8654
  return data
8655
8655
  },
8656
8656
  },
@@ -8792,12 +8792,12 @@ function sign_in_activity (request) {
8792
8792
  services: {
8793
8793
  fetchActivityDetail: async (context, event) => {
8794
8794
  const { activityNo } = context;
8795
- const { data } = await request.send(api.getActivityDetail({ activityNo, appSecret }));
8795
+ const { data } = await request.send(activity$2.getActivityDetail({ activityNo, appSecret }));
8796
8796
  return data
8797
8797
  },
8798
8798
  receiveReward: async (context, event) => {
8799
8799
  const { activityNo, receiveNo } = context;
8800
- const { data } = await request.send(api.getReward({ activityNo, receiveNo, appSecret }));
8800
+ const { data } = await request.send(activity$2.getReward({ activityNo, receiveNo, appSecret }));
8801
8801
  return data
8802
8802
  },
8803
8803
  },
@@ -8875,7 +8875,7 @@ function time_bomb_activity (request) {
8875
8875
  services: {
8876
8876
  fetchActivityDetail: async (context, event) => {
8877
8877
  const { activityNo } = context;
8878
- const { data } = await request.send(api.getActivityDetail({ activityNo, appSecret }));
8878
+ const { data } = await request.send(activity$2.getActivityDetail({ activityNo, appSecret }));
8879
8879
  return data
8880
8880
  },
8881
8881
  },
@@ -8941,86 +8941,7 @@ function mini_game_activity (request) {
8941
8941
  services: {
8942
8942
  fetchActivityDetail: async (context, event) => {
8943
8943
  const { activityNo } = context;
8944
- const { data } = await request.send(api.getActivityDetail({ activityNo, appSecret }));
8945
- return data
8946
- },
8947
- },
8948
- }
8949
- )
8950
- }
8951
-
8952
- function roulette_activity_v2 (request) {
8953
- const { appSecret } = request.config;
8954
- return createMachine(
8955
- {
8956
- id: 'roulette_activity_v2',
8957
- context: {
8958
- activityNo: null,
8959
- activityDetail: null,
8960
- duration: null,
8961
- },
8962
- initial: 'idle',
8963
- states: {
8964
- idle: {
8965
- on: {
8966
- SET_ACTIVITY_NO: {
8967
- target: 'loading',
8968
- actions: 'setActivityNo',
8969
- },
8970
- },
8971
- },
8972
- loading: {
8973
- invoke: {
8974
- src: 'fetchActivityDetail',
8975
- onDone: {
8976
- target: 'loaded',
8977
- actions: 'setActivityDetail',
8978
- },
8979
- onError: {
8980
- target: 'idle',
8981
- },
8982
- },
8983
- },
8984
- loaded: {
8985
- entry: 'setDuration',
8986
- always: [{ target: 'expired', cond: 'isExpired' }],
8987
- after: {
8988
- 1000: {
8989
- target: 'loaded',
8990
- },
8991
- },
8992
- },
8993
- expired: {},
8994
- },
8995
- },
8996
- {
8997
- actions: {
8998
- setActivityNo: assign((context, event) => {
8999
- return {
9000
- activityNo: event.data,
9001
- }
9002
- }),
9003
- setActivityDetail: assign((context, event) => {
9004
- return {
9005
- activityDetail: event.data,
9006
- }
9007
- }),
9008
- setDuration: assign((context, event) => {
9009
- const { activityDetail = {} } = context;
9010
- return {
9011
- duration: activityDetail.periodEndTime - new Date().getTime() / 1000,
9012
- }
9013
- }),
9014
- },
9015
- guards: {
9016
- isExpired: (context, event) => {
9017
- return context.duration <= 0
9018
- },
9019
- },
9020
- services: {
9021
- fetchActivityDetail: async (context, event) => {
9022
- const { activityNo } = context;
9023
- const { data } = await request.send(api.getActivityDetail({ activityNo, appSecret }));
8944
+ const { data } = await request.send(activity$2.getActivityDetail({ activityNo, appSecret }));
9024
8945
  return data
9025
8946
  },
9026
8947
  },
@@ -9036,8 +8957,6 @@ function activity$1 (request) {
9036
8957
  initial: 'fetchingActivityList',
9037
8958
  context: {
9038
8959
  tick: 2000,
9039
- specifyActivities: [29],
9040
- activitiesDetailList: [],
9041
8960
  activityList: [],
9042
8961
  activityMap: {},
9043
8962
  tournamentList: [],
@@ -9049,49 +8968,23 @@ function activity$1 (request) {
9049
8968
  invoke: {
9050
8969
  src: 'fetchActivityList',
9051
8970
  onDone: {
9052
- target: 'idle',
8971
+ target: 'pending',
9053
8972
  actions: ['setActivityList', 'setTournamentList'],
9054
8973
  },
9055
8974
  onError: {
9056
- target: 'idle',
8975
+ target: 'pending',
9057
8976
  },
9058
8977
  },
9059
8978
  },
9060
- idle: {
9061
- type: 'parallel',
9062
- states: {
9063
- activitiesDetail: {
9064
- initial: 'checking',
9065
- states: {
9066
- checking: {
9067
- always: [{ target: 'fetchActivityDetail', cond: 'hasSpecifyActivities' }, { target: 'end' }],
9068
- },
9069
- fetchActivityDetail: {
9070
- invoke: {
9071
- src: 'fetchActivitiesDetail',
9072
- onDone: {
9073
- target: 'end',
9074
- actions: 'setActivitiesDetailList',
9075
- },
9076
- onError: {
9077
- target: 'end',
9078
- },
9079
- },
9080
- },
9081
- end: {},
9082
- },
8979
+ pending: {
8980
+ after: {
8981
+ TIMEOUT: {
8982
+ target: 'fetchingActivityList',
9083
8983
  },
9084
- pending: {
9085
- after: {
9086
- TIMEOUT: {
9087
- target: '#activity.fetchingActivityList',
9088
- },
9089
- },
9090
- on: {
9091
- SET_UNREAD: {
9092
- actions: 'setUnread',
9093
- },
9094
- },
8984
+ },
8985
+ on: {
8986
+ SET_UNREAD: {
8987
+ actions: 'setUnread',
9095
8988
  },
9096
8989
  },
9097
8990
  },
@@ -9123,11 +9016,6 @@ function activity$1 (request) {
9123
9016
  activityList: list,
9124
9017
  }
9125
9018
  }),
9126
- setActivitiesDetailList: assign((context, event) => {
9127
- return {
9128
- activitiesDetailList: event.data.map((item) => item.data),
9129
- }
9130
- }),
9131
9019
  setUnread: assign((context, event) => {
9132
9020
  const { uidSite, activityNo, unread } = event.data;
9133
9021
  const list = JSON.parse(JSON.stringify(context.activityList));
@@ -9144,13 +9032,6 @@ function activity$1 (request) {
9144
9032
  }
9145
9033
  }),
9146
9034
  },
9147
- guards: {
9148
- hasSpecifyActivities: (context, event) => {
9149
- const { activityList = [], specifyActivities = [] } = context;
9150
- const filterActivityList = activityList.filter((activity) => specifyActivities.includes(activity.activityType));
9151
- return filterActivityList.length > 0
9152
- },
9153
- },
9154
9035
  delays: {
9155
9036
  TIMEOUT: (context, event) => {
9156
9037
  const { tick } = context;
@@ -9159,18 +9040,9 @@ function activity$1 (request) {
9159
9040
  },
9160
9041
  services: {
9161
9042
  fetchActivityList: async (context, event) => {
9162
- const { data } = await request.send(api.getActivityList({ appSecret }));
9043
+ const { data } = await request.send(activity$2.getActivityList({ appSecret }));
9163
9044
  return data
9164
9045
  },
9165
- fetchActivitiesDetail: async (context, event) => {
9166
- const { activityList = [], specifyActivities = [] } = context;
9167
- const filterActivityList = activityList.filter((activity) => specifyActivities.includes(activity.activityType));
9168
- const promiseArray = filterActivityList.map((activity) => {
9169
- return request.send(api.getActivityDetail({ activityNo: activity.activityNo, appSecret }))
9170
- });
9171
- const activitiesDetail = await Promise.all(promiseArray);
9172
- return activitiesDetail
9173
- },
9174
9046
  },
9175
9047
  }
9176
9048
  )
@@ -9191,7 +9063,6 @@ var activity = {
9191
9063
  sign_in_activity,
9192
9064
  time_bomb_activity,
9193
9065
  mini_game_activity,
9194
- roulette_activity_v2,
9195
9066
  activity: activity$1,
9196
9067
  };
9197
9068
 
@@ -12901,7 +12772,7 @@ function inbox (request) {
12901
12772
  fetchMessages: async (context, event) => {
12902
12773
  const { isRewardListEnable, currentTab, inbox } = JSON.parse(JSON.stringify(context));
12903
12774
  if (isRewardListEnable && (currentTab === 'REWARD' || currentTab === 'DIAMOND')) {
12904
- const { data } = await request.send(api.getRewardList({ count: 30, appSecret }));
12775
+ const { data } = await request.send(activity$2.getRewardList({ count: 30, appSecret }));
12905
12776
  inbox[currentTab] = { data, page: 0, totalPage: 1 };
12906
12777
  } else {
12907
12778
  const { page = -1 } = inbox[currentTab] || {};
@@ -13146,12 +13017,12 @@ function reward_fc (request) {
13146
13017
  },
13147
13018
  services: {
13148
13019
  fetchRewardList: async (context, event) => {
13149
- const { data } = await request.send(api.getRewardList({ count: 30, appSecret }));
13020
+ const { data } = await request.send(activity$2.getRewardList({ count: 30, appSecret }));
13150
13021
  return data
13151
13022
  },
13152
13023
  receiveReward: async (context, event) => {
13153
13024
  const { activityNo, receiveNo, attended } = event.data;
13154
- return await request.send(api.getReward({ activityNo, receiveNo, appSecret, attended }))
13025
+ return await request.send(activity$2.getReward({ activityNo, receiveNo, appSecret, attended }))
13155
13026
  },
13156
13027
  },
13157
13028
  }
@@ -13309,9 +13180,9 @@ function reward (request) {
13309
13180
  },
13310
13181
  services: {
13311
13182
  fetchRewardList: async (context, event) => {
13312
- const getRewardAPI = request.send(api.getRewardList({ count: 30, appSecret }));
13313
- const getPointsRewardAPI = request.send(api.getRewardList({ rewardType: 'POINTS', count: 30, appSecret }));
13314
- const getOtherRewardAPI = request.send(api.getRewardList({ rewardType: 'CASH,FREE', count: 30, appSecret }));
13183
+ const getRewardAPI = request.send(activity$2.getRewardList({ count: 30, appSecret }));
13184
+ const getPointsRewardAPI = request.send(activity$2.getRewardList({ rewardType: 'POINTS', count: 30, appSecret }));
13185
+ const getOtherRewardAPI = request.send(activity$2.getRewardList({ rewardType: 'CASH,FREE', count: 30, appSecret }));
13315
13186
  const [otherRewardList, pointsRewardList, rewardList] = await Promise.all([getOtherRewardAPI, getPointsRewardAPI, getRewardAPI]);
13316
13187
  return [otherRewardList, pointsRewardList, rewardList]
13317
13188
  },
@@ -13322,10 +13193,10 @@ function reward (request) {
13322
13193
  },
13323
13194
  receiveReward: async (context, event) => {
13324
13195
  const { activityNo, receiveNo, attended } = event.data;
13325
- return await request.send(api.getReward({ activityNo, receiveNo, appSecret, attended }))
13196
+ return await request.send(activity$2.getReward({ activityNo, receiveNo, appSecret, attended }))
13326
13197
  },
13327
13198
  receiveAllPoints: async (context, event) => {
13328
- return await request.send(api.collect({ collectType: 'collectPoints', appSecret }))
13199
+ return await request.send(activity$2.collect({ collectType: 'collectPoints', appSecret }))
13329
13200
  },
13330
13201
  },
13331
13202
  }
@@ -17030,349 +16901,145 @@ function loadcard_vn (request) {
17030
16901
  )
17031
16902
  }
17032
16903
 
17033
- function qrcode_vn (request) {
16904
+ function qrcode_v2 (request) {
16905
+ const { appSecret } = request.config;
17034
16906
  return createMachine(
17035
16907
  {
17036
16908
  id: 'qrcode',
17037
16909
  initial: 'loading',
17038
16910
  context: {
17039
- qrcodes: [],
17040
- options: [],
16911
+ siteConfig: null,
16912
+ qrcodes: null,
16913
+ options: null,
17041
16914
 
17042
16915
  selectedQrcode: null,
17043
16916
  selectedAmount: null,
17044
16917
 
17045
16918
  calculation: null,
17046
16919
 
17047
- paymentDetails: [],
16920
+ paymentDetail: [],
17048
16921
  currentCategory: 'qrcode',
17049
16922
  currentMethod: null,
17050
16923
 
17051
16924
  result: null,
16925
+
16926
+ grandTotalEnable: 1,
17052
16927
  },
17053
16928
  states: {
17054
16929
  loading: {
17055
16930
  invoke: {
17056
16931
  src: 'fetchInitData',
17057
16932
  onDone: {
17058
- target: 'loaded',
17059
- actions: 'setInitData',
16933
+ target: 'checking',
16934
+ actions: ['setInitData', 'preset'],
17060
16935
  },
17061
16936
  onError: {
17062
16937
  target: 'fail',
17063
16938
  },
17064
16939
  },
17065
16940
  },
17066
- loaded: {
17067
- entry: 'reset',
17068
- on: {
17069
- SELECT_QRCODE: {
17070
- actions: 'setQrcode',
17071
- },
17072
- SELECT_AMOUNT: {
17073
- target: 'calculable',
17074
- actions: 'addAmount',
17075
- },
17076
- KEY_IN: {
17077
- target: 'calculable',
17078
- actions: 'setAmount',
17079
- },
17080
- },
16941
+ checking: {
16942
+ always: [{ target: 'newWalletMode', cond: 'isNewWalletMode' }, { target: 'defaultMode' }],
17081
16943
  },
17082
- fail: {},
17083
- calculable: {
17084
- entry: 'clearCalculation',
17085
- on: {
17086
- SELECT_AMOUNT: {
17087
- actions: 'addAmount',
17088
- },
17089
- KEY_IN: {
17090
- actions: 'setAmount',
16944
+ newWalletMode: {
16945
+ initial: 'loaded',
16946
+ states: {
16947
+ loaded: {
16948
+ entry: 'reset',
16949
+ on: {
16950
+ SELECT_QRCODE: {
16951
+ actions: 'setQrcode',
16952
+ },
16953
+ SELECT_AMOUNT: [
16954
+ {
16955
+ target: 'pending',
16956
+ actions: 'addAmount',
16957
+ cond: (context, event) => context.grandTotalEnable === 1,
16958
+ },
16959
+ {
16960
+ target: 'pending',
16961
+ actions: 'setAmount',
16962
+ },
16963
+ ],
16964
+ KEY_IN: {
16965
+ actions: 'setAmount',
16966
+ },
16967
+ },
17091
16968
  },
17092
- CALCULATE: {
17093
- target: 'calculating',
16969
+ pending: {
16970
+ on: {
16971
+ SELECT_AMOUNT: [
16972
+ {
16973
+ actions: 'addAmount',
16974
+ cond: (context, event) => context.grandTotalEnable === 1,
16975
+ },
16976
+ {
16977
+ actions: 'setAmount',
16978
+ },
16979
+ ],
16980
+ KEY_IN: {
16981
+ actions: 'setAmount',
16982
+ },
16983
+ CONFIRM: {
16984
+ target: 'debouncing',
16985
+ },
16986
+ BACK: {
16987
+ target: 'loaded',
16988
+ },
16989
+ },
17094
16990
  },
17095
- BACK: {
17096
- target: 'loaded',
16991
+ debouncing: {
16992
+ on: {
16993
+ SELECT_AMOUNT: [
16994
+ {
16995
+ target: 'debouncing',
16996
+ actions: 'addAmount',
16997
+ cond: (context, event) => context.grandTotalEnable === 1,
16998
+ },
16999
+ {
17000
+ target: 'debouncing',
17001
+ actions: 'setAmount',
17002
+ },
17003
+ ],
17004
+ KEY_IN: {
17005
+ target: 'debouncing',
17006
+ actions: 'setAmount',
17007
+ },
17008
+ BACK: {
17009
+ target: 'loaded',
17010
+ },
17011
+ },
17012
+ after: {
17013
+ 1000: {
17014
+ target: 'calculating',
17015
+ },
17016
+ },
17097
17017
  },
17098
- },
17099
- },
17100
- calculating: {
17101
- invoke: {
17102
- src: 'fetchCalculation',
17103
- onDone: {
17104
- target: 'calculated',
17105
- actions: 'setCalculation',
17106
- },
17107
- onError: {
17108
- target: 'calculable',
17109
- },
17110
- },
17111
- },
17112
- calculated: {
17113
- on: {
17114
- SELECT_AMOUNT: {
17115
- target: 'calculable',
17116
- actions: 'addAmount',
17117
- },
17118
- KEY_IN: {
17119
- target: 'calculable',
17120
- actions: 'setAmount',
17121
- },
17122
- CONFIRM: {
17123
- target: 'submitting',
17124
- },
17125
- BACK: {
17126
- target: 'loaded',
17127
- },
17128
- CLEAR_CALCULATION: {
17129
- target: 'calculable',
17130
- actions: 'clearCalculation',
17131
- },
17132
- },
17133
- },
17134
- submitting: {
17135
- invoke: {
17136
- src: 'submitDeposit',
17137
- onDone: {
17138
- target: 'submitted',
17139
- actions: 'setResult',
17140
- },
17141
- onError: {
17142
- target: 'calculated',
17143
- },
17144
- },
17145
- },
17146
- submitted: {
17147
- on: {
17148
- SELECT_QRCODE: {
17149
- target: 'loaded',
17150
- actions: 'setQrcode',
17151
- },
17152
- },
17153
- },
17154
- },
17155
- },
17156
- {
17157
- actions: {
17158
- reset: assign((context, event) => {
17159
- return {
17160
- selectedAmount: null,
17161
- calculation: null,
17162
- }
17163
- }),
17164
- setInitData: assign((context, event) => {
17165
- const paymentDetails = event.data;
17166
- const qrcodes = paymentDetails.filter((element) => element.category === context.currentCategory);
17167
-
17168
- return {
17169
- paymentDetails,
17170
- qrcodes,
17171
- selectedQrcode: qrcodes[0],
17172
- currentMethod: qrcodes[0].method,
17173
- options: qrcodes[0].optional,
17174
- }
17175
- }),
17176
- setQrcode: assign((context, event) => {
17177
- return {
17178
- selectedQrcode: event.data,
17179
- currentMethod: event.data.method,
17180
- options: event.data.optional,
17181
- }
17182
- }),
17183
- addAmount: assign((context, event) => {
17184
- return { selectedAmount: (context.selectedAmount || 0) + event.data }
17185
- }),
17186
- setAmount: assign((context, event) => {
17187
- return { selectedAmount: event.data }
17188
- }),
17189
- setCalculation: assign((context, event) => {
17190
- return {
17191
- calculation: event.data,
17192
- }
17193
- }),
17194
- clearCalculation: assign((context, event) => {
17195
- return {
17196
- calculation: null,
17197
- }
17198
- }),
17199
- setResult: assign((context, event) => {
17200
- return {
17201
- result: event.data,
17202
- }
17203
- }),
17204
- },
17205
- services: {
17206
- fetchInitData: async (context, event) => {
17207
- return await request.send(payment.getPaymentDetail({ transferType: 'DEPOSIT' }))
17208
- },
17209
- fetchBanksList: async (context, event) => {
17210
- const { paymentDetails, currentCategory } = context;
17211
- const method = paymentDetails.find((item) => item.category === currentCategory)?.method;
17212
- return await request.send(payment.getBankList(method))
17213
- },
17214
- fetchCalculation: async (context, event) => {
17215
- const { currentMethod, selectedAmount } = context;
17216
- return await request.send(
17217
- payment.getDepositExpectedResult({
17218
- method: currentMethod,
17219
- amount: selectedAmount,
17220
- })
17221
- )
17222
- },
17223
- submitDeposit: async (context, event) => {
17224
- const { currentMethod, selectedAmount } = context;
17225
- return await request.send(
17226
- payment.submitDepositTransaction({
17227
- method: currentMethod,
17228
- amount: selectedAmount,
17229
- })
17230
- )
17231
- },
17232
- },
17233
- }
17234
- )
17235
- }
17236
-
17237
- function qrcode_v2 (request) {
17238
- const { appSecret } = request.config;
17239
- return createMachine(
17240
- {
17241
- id: 'qrcode',
17242
- initial: 'loading',
17243
- context: {
17244
- siteConfig: null,
17245
- qrcodes: null,
17246
- options: null,
17247
-
17248
- selectedQrcode: null,
17249
- selectedAmount: null,
17250
-
17251
- calculation: null,
17252
-
17253
- paymentDetail: [],
17254
- currentCategory: 'qrcode',
17255
- currentMethod: null,
17256
-
17257
- result: null,
17258
-
17259
- grandTotalEnable: 1,
17260
- },
17261
- states: {
17262
- loading: {
17263
- invoke: {
17264
- src: 'fetchInitData',
17265
- onDone: {
17266
- target: 'checking',
17267
- actions: ['setInitData', 'preset'],
17268
- },
17269
- onError: {
17270
- target: 'fail',
17271
- },
17272
- },
17273
- },
17274
- checking: {
17275
- always: [{ target: 'newWalletMode', cond: 'isNewWalletMode' }, { target: 'defaultMode' }],
17276
- },
17277
- newWalletMode: {
17278
- initial: 'loaded',
17279
- states: {
17280
- loaded: {
17281
- entry: 'reset',
17282
- on: {
17283
- SELECT_QRCODE: {
17284
- actions: 'setQrcode',
17285
- },
17286
- SELECT_AMOUNT: [
17287
- {
17288
- target: 'pending',
17289
- actions: 'addAmount',
17290
- cond: (context, event) => context.grandTotalEnable === 1,
17291
- },
17292
- {
17293
- target: 'pending',
17294
- actions: 'setAmount',
17295
- },
17296
- ],
17297
- KEY_IN: {
17298
- actions: 'setAmount',
17299
- },
17300
- },
17301
- },
17302
- pending: {
17303
- on: {
17304
- SELECT_AMOUNT: [
17305
- {
17306
- actions: 'addAmount',
17307
- cond: (context, event) => context.grandTotalEnable === 1,
17308
- },
17309
- {
17310
- actions: 'setAmount',
17311
- },
17312
- ],
17313
- KEY_IN: {
17314
- actions: 'setAmount',
17315
- },
17316
- CONFIRM: {
17317
- target: 'debouncing',
17318
- },
17319
- BACK: {
17320
- target: 'loaded',
17321
- },
17322
- },
17323
- },
17324
- debouncing: {
17325
- on: {
17326
- SELECT_AMOUNT: [
17327
- {
17328
- target: 'debouncing',
17329
- actions: 'addAmount',
17330
- cond: (context, event) => context.grandTotalEnable === 1,
17331
- },
17332
- {
17333
- target: 'debouncing',
17334
- actions: 'setAmount',
17335
- },
17336
- ],
17337
- KEY_IN: {
17338
- target: 'debouncing',
17339
- actions: 'setAmount',
17340
- },
17341
- BACK: {
17342
- target: 'loaded',
17343
- },
17344
- },
17345
- after: {
17346
- 1000: {
17347
- target: 'calculating',
17348
- },
17349
- },
17350
- },
17351
- calculable: {
17352
- entry: 'clearCalculation',
17353
- on: {
17354
- SELECT_AMOUNT: [
17355
- {
17356
- target: 'debouncing',
17357
- actions: 'addAmount',
17358
- cond: (context, event) => context.grandTotalEnable === 1,
17359
- },
17360
- {
17361
- target: 'debouncing',
17362
- actions: 'setAmount',
17363
- },
17364
- ],
17365
- KEY_IN: {
17366
- target: 'debouncing',
17367
- actions: 'setAmount',
17368
- },
17369
- CALCULATE: {
17370
- target: 'debouncing',
17371
- },
17372
- BACK: {
17373
- target: 'loaded',
17374
- },
17375
- },
17018
+ calculable: {
17019
+ entry: 'clearCalculation',
17020
+ on: {
17021
+ SELECT_AMOUNT: [
17022
+ {
17023
+ target: 'debouncing',
17024
+ actions: 'addAmount',
17025
+ cond: (context, event) => context.grandTotalEnable === 1,
17026
+ },
17027
+ {
17028
+ target: 'debouncing',
17029
+ actions: 'setAmount',
17030
+ },
17031
+ ],
17032
+ KEY_IN: {
17033
+ target: 'debouncing',
17034
+ actions: 'setAmount',
17035
+ },
17036
+ CALCULATE: {
17037
+ target: 'debouncing',
17038
+ },
17039
+ BACK: {
17040
+ target: 'loaded',
17041
+ },
17042
+ },
17376
17043
  },
17377
17044
  calculating: {
17378
17045
  invoke: {
@@ -19834,10 +19501,135 @@ function vpay (request) {
19834
19501
  )
19835
19502
  }
19836
19503
 
19504
+ function usdt (request) {
19505
+ return createMachine(
19506
+ {
19507
+ id: 'usdt',
19508
+ initial: 'loading',
19509
+ context: {
19510
+ paymentDetails: [],
19511
+ currentCategory: 'usdt',
19512
+ currentPayment: null,
19513
+ networks: [],
19514
+ selectedNetwork: null,
19515
+
19516
+ result: {
19517
+ action: '',
19518
+ cdtime: null,
19519
+ accountNumber: '',
19520
+ currency: '',
19521
+ network: '',
19522
+ name: '',
19523
+ qrcode: '',
19524
+ },
19525
+ },
19526
+ states: {
19527
+ loading: {
19528
+ invoke: {
19529
+ src: 'fetchPayments',
19530
+ onDone: {
19531
+ target: 'fetching',
19532
+ actions: 'setPayment',
19533
+ },
19534
+ onError: {
19535
+ target: '#usdt.fail',
19536
+ },
19537
+ },
19538
+ },
19539
+ fetching: {
19540
+ invoke: {
19541
+ src: 'submitDeposit',
19542
+ onDone: {
19543
+ target: 'idle',
19544
+ actions: 'setResult',
19545
+ },
19546
+ onError: {
19547
+ target: 'idle',
19548
+ },
19549
+ },
19550
+ },
19551
+ idle: {},
19552
+ fail: {},
19553
+ },
19554
+ on: {
19555
+ SET_NETWORK: {
19556
+ target: '.fetching',
19557
+ actions: 'setNetwork',
19558
+ cond: 'isDifferent',
19559
+ },
19560
+ },
19561
+ },
19562
+ {
19563
+ actions: {
19564
+ setPayment: assign((context, event) => {
19565
+ const currentPayment = event.data.find((element) => element.category === context.currentCategory);
19566
+ const defaultNetworks = currentPayment.networkName.map((value, i) => {
19567
+ return {
19568
+ label: currentPayment.networkOptional?.[i],
19569
+ value,
19570
+ icon: value,
19571
+ }
19572
+ });
19573
+ return {
19574
+ networks: defaultNetworks,
19575
+ selectedNetwork: defaultNetworks[0],
19576
+ currentPayment,
19577
+ }
19578
+ }),
19579
+ setNetwork: assign((context, event) => {
19580
+ return { selectedNetwork: event.data }
19581
+ }),
19582
+ setResult: assign((context, event) => {
19583
+ const {
19584
+ action,
19585
+ cdtime,
19586
+ accountNumber, // crypto address
19587
+ currency,
19588
+ network,
19589
+ name,
19590
+ qrcode,
19591
+ } = event.data;
19592
+ return {
19593
+ result: {
19594
+ action,
19595
+ cdtime,
19596
+ accountNumber,
19597
+ currency,
19598
+ network,
19599
+ name,
19600
+ qrcode,
19601
+ },
19602
+ }
19603
+ }),
19604
+ },
19605
+ guards: {
19606
+ isDifferent: (context, event) => {
19607
+ const { selectedNetwork } = context;
19608
+ return selectedNetwork !== event.data
19609
+ },
19610
+ },
19611
+ services: {
19612
+ fetchPayments: async (context, event) => {
19613
+ return await request.send(payment$1.getPaymentDetail({ transferType: 'DEPOSIT' }))
19614
+ },
19615
+ submitDeposit: async (context, event) => {
19616
+ const { currentPayment, selectedNetwork } = context;
19617
+ return await request.send(
19618
+ payment$1.submitDepositTransactionCrypto({
19619
+ method: currentPayment.method,
19620
+ cryptoCurrency: currentPayment.channel,
19621
+ cryptoNetwork: selectedNetwork.value,
19622
+ })
19623
+ )
19624
+ },
19625
+ },
19626
+ }
19627
+ )
19628
+ }
19629
+
19837
19630
  var deposit = {
19838
19631
  manual_vn,
19839
19632
  loadcard_vn,
19840
- qrcode_vn,
19841
19633
  qrcode_v2,
19842
19634
  deposit_fc,
19843
19635
  crypto,
@@ -19846,6 +19638,7 @@ var deposit = {
19846
19638
  amb,
19847
19639
  float,
19848
19640
  vpay,
19641
+ usdt,
19849
19642
  };
19850
19643
 
19851
19644
  function bonus (request) {
@@ -20014,12 +19807,12 @@ function leaderboard (request) {
20014
19807
  },
20015
19808
  services: {
20016
19809
  fetchActivityList: async (context, event) => {
20017
- const { data } = await request.send(api.getActivityList({ appSecret }));
19810
+ const { data } = await request.send(activity$2.getActivityList({ appSecret }));
20018
19811
  return data
20019
19812
  },
20020
19813
  fetchActivityDetail: async (context, event) => {
20021
19814
  const { activityNo } = context;
20022
- const { data } = await request.send(api.getActivityDetail({ activityNo, appSecret }));
19815
+ const { data } = await request.send(activity$2.getActivityDetail({ activityNo, appSecret }));
20023
19816
  return data
20024
19817
  },
20025
19818
  },
@@ -20484,7 +20277,7 @@ function vip_table (request) {
20484
20277
  },
20485
20278
  services: {
20486
20279
  fetchVipTable: async (context, event) => {
20487
- const { viptable = {} } = await request.send(api.getVipTable());
20280
+ const { viptable = {} } = await request.send(activity$2.getVipTable());
20488
20281
  const { data = [] } = viptable;
20489
20282
  data.map((item) => {
20490
20283
  item.title = item.title.toLowerCase();
@@ -20654,275 +20447,6 @@ function promotions (request) {
20654
20447
  )
20655
20448
  }
20656
20449
 
20657
- function roulette_v2 (request) {
20658
- const { appSecret } = request.config;
20659
- return createMachine(
20660
- {
20661
- id: 'roulette_v2',
20662
- context: {
20663
- tick: 2000,
20664
- activityNo: null,
20665
- activityDetail: null,
20666
- duration: null,
20667
- spinCount: 0,
20668
- duration: null,
20669
- rewardList: [],
20670
- unCollectRewards: [],
20671
- unCollectPoints: 0,
20672
- unCollectPrize: 0,
20673
- unCollectFree: 0,
20674
- unCollectCash: 0,
20675
- latestSpinLeft: 0,
20676
- spinLeft: 0,
20677
- spinResult: {},
20678
- rouletteV2ExchangeAward: [],
20679
- calculatedNewSpinRewards: [],
20680
- awardedCashAmount: 0,
20681
- awardedFreeAmount: 0,
20682
- awardedPointsAmount: 0,
20683
- awardedPrizeCount: 0,
20684
- },
20685
- initial: 'idle',
20686
- states: {
20687
- idle: {
20688
- on: {
20689
- SET_ACTIVITY_NO: {
20690
- target: 'fetching',
20691
- actions: 'setActivityNo',
20692
- },
20693
- },
20694
- },
20695
- fetching: {
20696
- invoke: {
20697
- src: 'fetchActivityDetail',
20698
- onDone: {
20699
- target: 'loaded',
20700
- actions: ['setInitData', 'setUncollectRewardData'],
20701
- },
20702
- onError: {
20703
- target: 'loaded',
20704
- },
20705
- },
20706
- },
20707
- loaded: {
20708
- type: 'parallel',
20709
- states: {
20710
- prepare: {
20711
- initial: 'countdown',
20712
- states: {
20713
- countdown: {
20714
- entry: 'setDuration',
20715
- always: [{ target: 'expired', cond: 'isExpired' }],
20716
- after: {
20717
- 1000: {
20718
- target: 'countdown',
20719
- },
20720
- },
20721
- },
20722
- expired: {},
20723
- },
20724
- },
20725
- init: {
20726
- initial: 'pending',
20727
- states: {
20728
- pending: {
20729
- on: {
20730
- SPIN: {
20731
- target: 'spinning',
20732
- actions: 'setSpinCount',
20733
- },
20734
- GET_REWARD: {
20735
- target: 'awarding',
20736
- },
20737
- },
20738
- },
20739
- spinning: {
20740
- invoke: {
20741
- src: 'exchange',
20742
- onDone: {
20743
- target: 'animation',
20744
- actions: ['setSpinResult', 'setUncollectRewardData'],
20745
- },
20746
- onError: {
20747
- target: 'pending',
20748
- },
20749
- },
20750
- },
20751
- animation: {
20752
- on: {
20753
- FINISHED: {
20754
- target: 'finished',
20755
- },
20756
- },
20757
- },
20758
- finished: {
20759
- after: {
20760
- 0: {
20761
- target: 'pending',
20762
- },
20763
- },
20764
- },
20765
- awarding: {
20766
- invoke: {
20767
- src: 'collect',
20768
- onDone: {
20769
- target: 'awarded',
20770
- actions: 'setCollectResult',
20771
- },
20772
- onError: {
20773
- target: 'pending',
20774
- },
20775
- },
20776
- },
20777
- awarded: {
20778
- after: {
20779
- 0: {
20780
- target: 'pending',
20781
- },
20782
- },
20783
- },
20784
- },
20785
- },
20786
- },
20787
- },
20788
- },
20789
- },
20790
- {
20791
- actions: {
20792
- setActivityNo: assign((context, event) => {
20793
- return {
20794
- activityNo: event.data,
20795
- }
20796
- }),
20797
- setInitData: assign((context, event) => {
20798
- const { rewardList = [], latestSpinLeft = 0, spinLeft = 0, unCollectRewards = [], periodEndTime = '0' } = event.data || {};
20799
- const combindedRewardList = rewardList.reduce((arr, item, index) => {
20800
- if (index === 4) {
20801
- arr.push({ rewardType: 'Spin All', reward: '', withdrawRule: '' });
20802
- arr.push(item);
20803
- } else {
20804
- arr.push(item);
20805
- }
20806
- return arr
20807
- }, []);
20808
-
20809
- return {
20810
- activityDetail: event.data,
20811
- duration: parseInt(`${periodEndTime}`) - new Date().getTime() / 1000,
20812
- rewardList: combindedRewardList,
20813
- unCollectRewards,
20814
- latestSpinLeft,
20815
- spinLeft,
20816
- }
20817
- }),
20818
- setUncollectRewardData: assign((context, event) => {
20819
- const { unCollectRewards = [] } = context;
20820
- let unCollectPoints = 0;
20821
- let unCollectFree = 0;
20822
- let unCollectCash = 0;
20823
- let unCollectPrize = 0;
20824
-
20825
- unCollectRewards.forEach((item) => {
20826
- if (item.rewardType === 'POINTS') {
20827
- unCollectPoints += parseFloat(`${item.reward}`);
20828
- }
20829
- if (item.rewardType === 'FREE') {
20830
- unCollectFree += parseFloat(`${item.reward}`);
20831
- }
20832
- if (item.rewardType === 'CASH') {
20833
- unCollectCash += parseFloat(`${item.reward}`);
20834
- }
20835
- if (item.rewardType === 'PRIZE') {
20836
- unCollectPrize++;
20837
- }
20838
- });
20839
-
20840
- return {
20841
- unCollectPoints,
20842
- unCollectPrize,
20843
- unCollectFree,
20844
- unCollectCash,
20845
- }
20846
- }),
20847
- setDuration: assign((context, event) => {
20848
- const { activityDetail = {} } = context;
20849
- return {
20850
- duration: activityDetail.periodEndTime - new Date().getTime() / 1000,
20851
- }
20852
- }),
20853
- setSpinCount: assign((context, event) => {
20854
- return {
20855
- spinCount: event.data,
20856
- }
20857
- }),
20858
- setSpinResult: assign((context, event) => {
20859
- const { unCollectRewards = [], newSpinRewards = [], spinLeft = 0 } = JSON.parse(JSON.stringify(event.data || {}));
20860
- const calculatedNewSpinRewards = newSpinRewards
20861
- .map((item) => {
20862
- item.count = 1;
20863
- return item
20864
- })
20865
- .reduce((arr, spin) => {
20866
- let newIndex = 0;
20867
- let alreadyHave = false;
20868
- if (arr.length > 0) {
20869
- alreadyHave = arr.find((item, index) => {
20870
- if (item.rewardType === spin.rewardType && item.reward === spin.reward) {
20871
- newIndex = index;
20872
- return true
20873
- } else {
20874
- return false
20875
- }
20876
- });
20877
- }
20878
- if (alreadyHave) {
20879
- arr[newIndex].count++;
20880
- } else {
20881
- arr.push(spin);
20882
- }
20883
- return arr
20884
- }, []);
20885
-
20886
- return {
20887
- spinResult: event.data,
20888
- unCollectRewards,
20889
- calculatedNewSpinRewards,
20890
- spinLeft,
20891
- }
20892
- }),
20893
- setCollectResult: assign((context, event) => {
20894
- const { rouletteV2ExchangeAward } = event.data;
20895
- return {
20896
- rouletteV2ExchangeAward,
20897
- unCollectRewards: [],
20898
- }
20899
- }),
20900
- },
20901
- guards: {
20902
- isExpired: (context, event) => {
20903
- return context.duration <= 0
20904
- },
20905
- },
20906
- services: {
20907
- fetchActivityDetail: async (context, event) => {
20908
- const { activityNo } = context;
20909
- const { data } = await request.send(api.getActivityDetail({ activityNo, appSecret }));
20910
- return data
20911
- },
20912
- exchange: async (context, event) => {
20913
- const { activityNo, spinCount } = context;
20914
- const { data } = await request.send(api.exchange({ activityNo, exchangeType: 3, numberOfTimes: spinCount }));
20915
- return data
20916
- },
20917
- collect: async (context, event) => {
20918
- const { data } = await request.send(api.collect({ appSecret, collectType: 'roulettev2' }));
20919
- return data
20920
- },
20921
- },
20922
- }
20923
- )
20924
- }
20925
-
20926
20450
  var index$1 = {
20927
20451
  ...activity,
20928
20452
  auth,
@@ -20961,7 +20485,6 @@ var index$1 = {
20961
20485
  auth_otp_v3,
20962
20486
  vip_table,
20963
20487
  promotions,
20964
- roulette_v2,
20965
20488
  };
20966
20489
 
20967
20490
  // const pickBy = require('lodash/pickBy')