@jetthai/cuora 1.1.65-doubleWallet → 1.1.65-doubleWallet-2
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 +4 -0
- package/dist/bundle.mjs +316 -317
- package/package.json +1 -1
- package/src/machine/deposit/crypto_button.js +44 -52
- package/src/machine/deposit/float.js +61 -62
- package/src/machine/deposit/loadcard_vn.js +64 -52
- package/src/machine/deposit/qrcode_v2.js +86 -88
- package/src/machine/deposit/vpay.js +60 -62
- package/src/machine/promotions.js +1 -1
package/dist/bundle.mjs
CHANGED
|
@@ -23141,7 +23141,7 @@ function loadcard_vn (request) {
|
|
|
23141
23141
|
invoke: {
|
|
23142
23142
|
src: 'fetchInitData',
|
|
23143
23143
|
onDone: {
|
|
23144
|
-
target: '
|
|
23144
|
+
target: 'checking',
|
|
23145
23145
|
actions: 'setInitData',
|
|
23146
23146
|
},
|
|
23147
23147
|
onError: {
|
|
@@ -23149,59 +23149,60 @@ function loadcard_vn (request) {
|
|
|
23149
23149
|
},
|
|
23150
23150
|
},
|
|
23151
23151
|
},
|
|
23152
|
+
checking: {
|
|
23153
|
+
always: [
|
|
23154
|
+
{
|
|
23155
|
+
target: 'fetching',
|
|
23156
|
+
cond: (context, event) => {
|
|
23157
|
+
const { siteConfig = {}, promotion = {} } = context;
|
|
23158
|
+
const { walletMode = '', bonusPreviewEnable = '0' } = siteConfig;
|
|
23159
|
+
return walletMode === '4' && bonusPreviewEnable === '1' && promotion.activityNo != 'none'
|
|
23160
|
+
},
|
|
23161
|
+
},
|
|
23162
|
+
{ target: 'loaded' },
|
|
23163
|
+
],
|
|
23164
|
+
},
|
|
23165
|
+
fetching: {
|
|
23166
|
+
invoke: {
|
|
23167
|
+
src: 'fetchBonusPreview',
|
|
23168
|
+
onDone: {
|
|
23169
|
+
target: 'loaded',
|
|
23170
|
+
actions: 'setBonusPreview',
|
|
23171
|
+
},
|
|
23172
|
+
onError: {
|
|
23173
|
+
target: 'loaded',
|
|
23174
|
+
},
|
|
23175
|
+
},
|
|
23176
|
+
},
|
|
23152
23177
|
fail: {},
|
|
23153
23178
|
loaded: {
|
|
23154
|
-
type: 'parallel',
|
|
23155
23179
|
entry: 'reset',
|
|
23156
|
-
|
|
23157
|
-
|
|
23158
|
-
|
|
23159
|
-
|
|
23160
|
-
|
|
23161
|
-
|
|
23162
|
-
|
|
23163
|
-
|
|
23164
|
-
|
|
23165
|
-
const { siteConfig = {}, promotion = {} } = context;
|
|
23166
|
-
return siteConfig.bonusPreviewEnable === '1' && promotion.activityNo != 'none'
|
|
23167
|
-
},
|
|
23168
|
-
},
|
|
23169
|
-
{ target: 'end' },
|
|
23170
|
-
],
|
|
23171
|
-
},
|
|
23172
|
-
fetching: {
|
|
23173
|
-
invoke: {
|
|
23174
|
-
src: 'fetchBonusPreview',
|
|
23175
|
-
onDone: {
|
|
23176
|
-
target: 'end',
|
|
23177
|
-
actions: 'setBonusPreview',
|
|
23178
|
-
},
|
|
23179
|
-
onError: {
|
|
23180
|
-
target: 'end',
|
|
23181
|
-
},
|
|
23182
|
-
},
|
|
23180
|
+
on: {
|
|
23181
|
+
SELECT_CARD: [
|
|
23182
|
+
{
|
|
23183
|
+
target: 'fetching',
|
|
23184
|
+
actions: 'setCard',
|
|
23185
|
+
cond: (context, event) => {
|
|
23186
|
+
const { siteConfig = {}, promotion = {} } = context;
|
|
23187
|
+
const { walletMode = '', bonusPreviewEnable = '0' } = siteConfig;
|
|
23188
|
+
return walletMode === '4' && bonusPreviewEnable === '1' && promotion.activityNo != 'none'
|
|
23183
23189
|
},
|
|
23184
|
-
end: {},
|
|
23185
23190
|
},
|
|
23186
|
-
|
|
23187
|
-
|
|
23188
|
-
on: {
|
|
23189
|
-
SELECT_CARD: {
|
|
23190
|
-
actions: 'setCard',
|
|
23191
|
-
},
|
|
23192
|
-
SELECT_AMOUNT: [
|
|
23193
|
-
{
|
|
23194
|
-
target: '#loadcard.pending',
|
|
23195
|
-
actions: 'setAmount',
|
|
23196
|
-
cond: 'isFreeWalletMode',
|
|
23197
|
-
},
|
|
23198
|
-
{
|
|
23199
|
-
target: '#loadcard.debouncing',
|
|
23200
|
-
actions: 'setAmount',
|
|
23201
|
-
},
|
|
23202
|
-
],
|
|
23191
|
+
{
|
|
23192
|
+
actions: 'setCard',
|
|
23203
23193
|
},
|
|
23204
|
-
|
|
23194
|
+
],
|
|
23195
|
+
SELECT_AMOUNT: [
|
|
23196
|
+
{
|
|
23197
|
+
target: 'pending',
|
|
23198
|
+
actions: 'setAmount',
|
|
23199
|
+
cond: 'isFreeWalletMode',
|
|
23200
|
+
},
|
|
23201
|
+
{
|
|
23202
|
+
target: 'debouncing',
|
|
23203
|
+
actions: 'setAmount',
|
|
23204
|
+
},
|
|
23205
|
+
],
|
|
23205
23206
|
},
|
|
23206
23207
|
},
|
|
23207
23208
|
pending: {
|
|
@@ -23293,10 +23294,21 @@ function loadcard_vn (request) {
|
|
|
23293
23294
|
target: 'submitting',
|
|
23294
23295
|
cond: 'isSubmittable',
|
|
23295
23296
|
},
|
|
23296
|
-
SELECT_CARD:
|
|
23297
|
-
|
|
23298
|
-
|
|
23299
|
-
|
|
23297
|
+
SELECT_CARD: [
|
|
23298
|
+
{
|
|
23299
|
+
target: 'fetching',
|
|
23300
|
+
actions: 'setCard',
|
|
23301
|
+
cond: (context, event) => {
|
|
23302
|
+
const { siteConfig = {}, promotion = {} } = context;
|
|
23303
|
+
const { walletMode = '', bonusPreviewEnable = '0' } = siteConfig;
|
|
23304
|
+
return walletMode === '4' && bonusPreviewEnable === '1' && promotion.activityNo != 'none'
|
|
23305
|
+
},
|
|
23306
|
+
},
|
|
23307
|
+
{
|
|
23308
|
+
target: 'loaded',
|
|
23309
|
+
actions: 'setCard',
|
|
23310
|
+
},
|
|
23311
|
+
],
|
|
23300
23312
|
},
|
|
23301
23313
|
},
|
|
23302
23314
|
submitting: {
|
|
@@ -23495,98 +23507,91 @@ function qrcode_v2 (request) {
|
|
|
23495
23507
|
checking: {
|
|
23496
23508
|
always: [
|
|
23497
23509
|
{
|
|
23498
|
-
target: '
|
|
23499
|
-
cond:
|
|
23510
|
+
target: 'fetching',
|
|
23511
|
+
cond: (context, event) => {
|
|
23512
|
+
const { siteConfig = {}, promotion = {} } = context;
|
|
23513
|
+
const { walletMode = '', bonusPreviewEnable = '0' } = siteConfig;
|
|
23514
|
+
return walletMode === '4' && bonusPreviewEnable === '1' && promotion.activityNo != 'none'
|
|
23515
|
+
},
|
|
23500
23516
|
},
|
|
23501
23517
|
{
|
|
23502
23518
|
target: 'debouncing',
|
|
23503
23519
|
actions: 'setPromotionDefaultAmount',
|
|
23504
|
-
cond:
|
|
23520
|
+
cond: (context, event) => {
|
|
23521
|
+
const { siteConfig = {}, promotion = {} } = context;
|
|
23522
|
+
return siteConfig.walletMode === '3' && !!promotion?.minimumAmount
|
|
23523
|
+
},
|
|
23505
23524
|
},
|
|
23506
23525
|
{ target: 'loaded' },
|
|
23507
23526
|
],
|
|
23508
23527
|
},
|
|
23528
|
+
fetching: {
|
|
23529
|
+
invoke: {
|
|
23530
|
+
src: 'fetchBonusPreview',
|
|
23531
|
+
onDone: {
|
|
23532
|
+
target: 'loaded',
|
|
23533
|
+
actions: 'setBonusPreview',
|
|
23534
|
+
},
|
|
23535
|
+
onError: {
|
|
23536
|
+
target: 'loaded',
|
|
23537
|
+
},
|
|
23538
|
+
},
|
|
23539
|
+
},
|
|
23509
23540
|
fail: {},
|
|
23510
23541
|
loaded: {
|
|
23511
|
-
type: 'parallel',
|
|
23512
23542
|
entry: 'reset',
|
|
23513
|
-
|
|
23514
|
-
|
|
23515
|
-
|
|
23516
|
-
|
|
23517
|
-
|
|
23518
|
-
|
|
23519
|
-
|
|
23520
|
-
|
|
23521
|
-
|
|
23522
|
-
const { siteConfig = {}, promotion = {} } = context;
|
|
23523
|
-
return siteConfig.bonusPreviewEnable === '1' && promotion.activityNo != 'none'
|
|
23524
|
-
},
|
|
23525
|
-
},
|
|
23526
|
-
{ target: 'end' },
|
|
23527
|
-
],
|
|
23528
|
-
},
|
|
23529
|
-
fetching: {
|
|
23530
|
-
invoke: {
|
|
23531
|
-
src: 'fetchBonusPreview',
|
|
23532
|
-
onDone: {
|
|
23533
|
-
target: 'end',
|
|
23534
|
-
actions: 'setBonusPreview',
|
|
23535
|
-
},
|
|
23536
|
-
onError: {
|
|
23537
|
-
target: 'end',
|
|
23538
|
-
},
|
|
23539
|
-
},
|
|
23543
|
+
on: {
|
|
23544
|
+
SELECT_QRCODE: [
|
|
23545
|
+
{
|
|
23546
|
+
target: 'fetching',
|
|
23547
|
+
actions: 'setQrcode',
|
|
23548
|
+
cond: (context, event) => {
|
|
23549
|
+
const { siteConfig = {}, promotion = {} } = context;
|
|
23550
|
+
const { walletMode = '', bonusPreviewEnable = '0' } = siteConfig;
|
|
23551
|
+
return walletMode === '4' && bonusPreviewEnable === '1' && promotion.activityNo != 'none'
|
|
23540
23552
|
},
|
|
23541
|
-
end: {},
|
|
23542
23553
|
},
|
|
23543
|
-
|
|
23544
|
-
|
|
23545
|
-
|
|
23546
|
-
|
|
23547
|
-
{
|
|
23548
|
-
target: '#qrcode.debouncing',
|
|
23549
|
-
actions: ['setQrcode', 'setPromotionDefaultAmount'],
|
|
23550
|
-
cond: (context, event) => context.siteConfig?.walletMode === '3' && context.promotion?.minimumAmount,
|
|
23551
|
-
},
|
|
23552
|
-
{
|
|
23553
|
-
actions: 'setQrcode',
|
|
23554
|
-
},
|
|
23555
|
-
],
|
|
23556
|
-
SELECT_AMOUNT: [
|
|
23557
|
-
{
|
|
23558
|
-
target: '#qrcode.pending',
|
|
23559
|
-
actions: 'addAmount',
|
|
23560
|
-
cond: (context, event) => context.siteConfig?.walletMode === '2' && context.grandTotalEnable === 1,
|
|
23561
|
-
},
|
|
23562
|
-
{
|
|
23563
|
-
target: '#qrcode.pending',
|
|
23564
|
-
actions: 'setAmount',
|
|
23565
|
-
cond: 'isFreeWalletMode',
|
|
23566
|
-
},
|
|
23567
|
-
{
|
|
23568
|
-
target: '#qrcode.debouncing',
|
|
23569
|
-
actions: 'addAmount',
|
|
23570
|
-
cond: 'isGrandTotalEnable',
|
|
23571
|
-
},
|
|
23572
|
-
{
|
|
23573
|
-
target: '#qrcode.debouncing',
|
|
23574
|
-
actions: 'setAmount',
|
|
23575
|
-
},
|
|
23576
|
-
],
|
|
23577
|
-
KEY_IN: [
|
|
23578
|
-
{
|
|
23579
|
-
target: '#qrcode.pending',
|
|
23580
|
-
actions: 'setAmount',
|
|
23581
|
-
cond: 'isFreeWalletMode',
|
|
23582
|
-
},
|
|
23583
|
-
{
|
|
23584
|
-
target: '#qrcode.calculating',
|
|
23585
|
-
actions: 'setAmount',
|
|
23586
|
-
},
|
|
23587
|
-
],
|
|
23554
|
+
{
|
|
23555
|
+
target: 'debouncing',
|
|
23556
|
+
actions: ['setQrcode', 'setPromotionDefaultAmount'],
|
|
23557
|
+
cond: (context, event) => context.siteConfig?.walletMode === '3' && context.promotion?.minimumAmount,
|
|
23588
23558
|
},
|
|
23589
|
-
|
|
23559
|
+
{
|
|
23560
|
+
actions: 'setQrcode',
|
|
23561
|
+
},
|
|
23562
|
+
],
|
|
23563
|
+
SELECT_AMOUNT: [
|
|
23564
|
+
{
|
|
23565
|
+
target: 'pending',
|
|
23566
|
+
actions: 'addAmount',
|
|
23567
|
+
cond: (context, event) => context.siteConfig?.walletMode === '2' && context.grandTotalEnable === 1,
|
|
23568
|
+
},
|
|
23569
|
+
{
|
|
23570
|
+
target: 'pending',
|
|
23571
|
+
actions: 'setAmount',
|
|
23572
|
+
cond: 'isFreeWalletMode',
|
|
23573
|
+
},
|
|
23574
|
+
{
|
|
23575
|
+
target: 'debouncing',
|
|
23576
|
+
actions: 'addAmount',
|
|
23577
|
+
cond: 'isGrandTotalEnable',
|
|
23578
|
+
},
|
|
23579
|
+
{
|
|
23580
|
+
target: 'debouncing',
|
|
23581
|
+
actions: 'setAmount',
|
|
23582
|
+
},
|
|
23583
|
+
],
|
|
23584
|
+
KEY_IN: [
|
|
23585
|
+
{
|
|
23586
|
+
target: 'pending',
|
|
23587
|
+
actions: 'setAmount',
|
|
23588
|
+
cond: 'isFreeWalletMode',
|
|
23589
|
+
},
|
|
23590
|
+
{
|
|
23591
|
+
target: 'calculating',
|
|
23592
|
+
actions: 'setAmount',
|
|
23593
|
+
},
|
|
23594
|
+
],
|
|
23590
23595
|
},
|
|
23591
23596
|
},
|
|
23592
23597
|
pending: {
|
|
@@ -23749,10 +23754,21 @@ function qrcode_v2 (request) {
|
|
|
23749
23754
|
},
|
|
23750
23755
|
submitted: {
|
|
23751
23756
|
on: {
|
|
23752
|
-
SELECT_QRCODE:
|
|
23753
|
-
|
|
23754
|
-
|
|
23755
|
-
|
|
23757
|
+
SELECT_QRCODE: [
|
|
23758
|
+
{
|
|
23759
|
+
target: 'fetching',
|
|
23760
|
+
actions: 'setQrcode',
|
|
23761
|
+
cond: (context, event) => {
|
|
23762
|
+
const { siteConfig = {}, promotion = {} } = context;
|
|
23763
|
+
const { walletMode = '', bonusPreviewEnable = '0' } = siteConfig;
|
|
23764
|
+
return walletMode === '4' && bonusPreviewEnable === '1' && promotion.activityNo != 'none'
|
|
23765
|
+
},
|
|
23766
|
+
},
|
|
23767
|
+
{
|
|
23768
|
+
target: 'loaded',
|
|
23769
|
+
actions: 'setQrcode',
|
|
23770
|
+
},
|
|
23771
|
+
],
|
|
23756
23772
|
},
|
|
23757
23773
|
},
|
|
23758
23774
|
},
|
|
@@ -23834,15 +23850,9 @@ function qrcode_v2 (request) {
|
|
|
23834
23850
|
isFreeWalletMode: (context, event) => {
|
|
23835
23851
|
return context.siteConfig?.walletMode === '2'
|
|
23836
23852
|
},
|
|
23837
|
-
isDoubleWalletMode: (context, event) => {
|
|
23838
|
-
return context.siteConfig?.walletMode === '4'
|
|
23839
|
-
},
|
|
23840
23853
|
isGrandTotalEnable: (context, event) => {
|
|
23841
23854
|
return context.grandTotalEnable === 1
|
|
23842
23855
|
},
|
|
23843
|
-
hasMinPromotionDeposit: (context, event) => {
|
|
23844
|
-
return context.promotion?.minimumAmount
|
|
23845
|
-
},
|
|
23846
23856
|
},
|
|
23847
23857
|
services: {
|
|
23848
23858
|
fetchInitData: async (context, event) => {
|
|
@@ -24814,58 +24824,48 @@ function crypto_button (request) {
|
|
|
24814
24824
|
},
|
|
24815
24825
|
},
|
|
24816
24826
|
},
|
|
24817
|
-
|
|
24818
|
-
|
|
24819
|
-
|
|
24820
|
-
|
|
24821
|
-
|
|
24822
|
-
|
|
24823
|
-
|
|
24824
|
-
|
|
24825
|
-
{
|
|
24826
|
-
target: 'fetching',
|
|
24827
|
-
cond: (context, event) => {
|
|
24828
|
-
const { siteConfig = {}, promotion = {} } = context;
|
|
24829
|
-
return siteConfig.bonusPreviewEnable === '1' && promotion.activityNo != 'none'
|
|
24830
|
-
},
|
|
24831
|
-
},
|
|
24832
|
-
{ target: 'end' },
|
|
24833
|
-
],
|
|
24834
|
-
},
|
|
24835
|
-
fetching: {
|
|
24836
|
-
invoke: {
|
|
24837
|
-
src: 'fetchBonusPreview',
|
|
24838
|
-
onDone: {
|
|
24839
|
-
target: 'end',
|
|
24840
|
-
actions: 'setBonusPreview',
|
|
24841
|
-
},
|
|
24842
|
-
onError: {
|
|
24843
|
-
target: 'end',
|
|
24844
|
-
},
|
|
24845
|
-
},
|
|
24846
|
-
},
|
|
24847
|
-
end: {},
|
|
24827
|
+
checking: {
|
|
24828
|
+
always: [
|
|
24829
|
+
{
|
|
24830
|
+
target: 'fetching',
|
|
24831
|
+
cond: (context, event) => {
|
|
24832
|
+
const { siteConfig = {}, promotion = {} } = context;
|
|
24833
|
+
const { walletMode = '', bonusPreviewEnable = '0' } = siteConfig;
|
|
24834
|
+
return walletMode === '4' && bonusPreviewEnable === '1' && promotion.activityNo != 'none'
|
|
24848
24835
|
},
|
|
24849
24836
|
},
|
|
24850
|
-
|
|
24851
|
-
|
|
24852
|
-
|
|
24853
|
-
|
|
24854
|
-
|
|
24855
|
-
|
|
24856
|
-
|
|
24857
|
-
|
|
24858
|
-
|
|
24859
|
-
|
|
24860
|
-
|
|
24861
|
-
|
|
24862
|
-
|
|
24863
|
-
|
|
24864
|
-
|
|
24865
|
-
|
|
24866
|
-
|
|
24867
|
-
|
|
24868
|
-
|
|
24837
|
+
{ target: 'loaded' },
|
|
24838
|
+
],
|
|
24839
|
+
},
|
|
24840
|
+
fetching: {
|
|
24841
|
+
invoke: {
|
|
24842
|
+
src: 'fetchBonusPreview',
|
|
24843
|
+
onDone: {
|
|
24844
|
+
target: 'loaded',
|
|
24845
|
+
actions: 'setBonusPreview',
|
|
24846
|
+
},
|
|
24847
|
+
onError: {
|
|
24848
|
+
target: 'loaded',
|
|
24849
|
+
},
|
|
24850
|
+
},
|
|
24851
|
+
},
|
|
24852
|
+
loaded: {
|
|
24853
|
+
on: {
|
|
24854
|
+
SET_CHANNEL: {
|
|
24855
|
+
actions: 'setChannel',
|
|
24856
|
+
},
|
|
24857
|
+
SET_CRYPTO: {
|
|
24858
|
+
actions: 'setCrypto',
|
|
24859
|
+
},
|
|
24860
|
+
SET_NETWORK: {
|
|
24861
|
+
actions: 'setNetwork',
|
|
24862
|
+
},
|
|
24863
|
+
SET_ADDRESS: {
|
|
24864
|
+
actions: 'setAddress',
|
|
24865
|
+
},
|
|
24866
|
+
CONFIRM: {
|
|
24867
|
+
target: 'selecting',
|
|
24868
|
+
cond: 'isConfirmable',
|
|
24869
24869
|
},
|
|
24870
24870
|
},
|
|
24871
24871
|
},
|
|
@@ -25173,17 +25173,18 @@ function crypto_button (request) {
|
|
|
25173
25173
|
})
|
|
25174
25174
|
},
|
|
25175
25175
|
fetchCalculation: async (context, event) => {
|
|
25176
|
-
const { selectedCrypto, selectedAmount } = context;
|
|
25176
|
+
const { selectedCrypto, selectedAmount, promotion } = context;
|
|
25177
25177
|
return await request.send(
|
|
25178
25178
|
payment.getDepositExpectedResult({
|
|
25179
25179
|
method: selectedCrypto.method,
|
|
25180
25180
|
amount: selectedAmount,
|
|
25181
25181
|
cryptoCurrency: selectedCrypto.channel,
|
|
25182
|
+
promotionsNo: promotion?.activityNo,
|
|
25182
25183
|
})
|
|
25183
25184
|
)
|
|
25184
25185
|
},
|
|
25185
25186
|
submitDeposit: async (context, event) => {
|
|
25186
|
-
const { selectedCrypto, selectedNetwork, calculation, sourceAddress } = context;
|
|
25187
|
+
const { selectedCrypto, selectedNetwork, calculation, sourceAddress, promotion } = context;
|
|
25187
25188
|
return await request.send(
|
|
25188
25189
|
payment.submitDepositTransactionCrypto({
|
|
25189
25190
|
method: selectedCrypto.method,
|
|
@@ -25191,6 +25192,7 @@ function crypto_button (request) {
|
|
|
25191
25192
|
cryptoCurrency: selectedCrypto.channel,
|
|
25192
25193
|
cryptoNetwork: selectedNetwork.value,
|
|
25193
25194
|
sourceAddress: sourceAddress,
|
|
25195
|
+
promotionsNo: promotion?.activityNo,
|
|
25194
25196
|
})
|
|
25195
25197
|
)
|
|
25196
25198
|
},
|
|
@@ -25656,58 +25658,51 @@ function float (request) {
|
|
|
25656
25658
|
},
|
|
25657
25659
|
},
|
|
25658
25660
|
},
|
|
25659
|
-
|
|
25660
|
-
|
|
25661
|
-
|
|
25662
|
-
|
|
25663
|
-
|
|
25664
|
-
|
|
25665
|
-
|
|
25666
|
-
|
|
25667
|
-
always: [
|
|
25668
|
-
{
|
|
25669
|
-
target: 'fetching',
|
|
25670
|
-
cond: (context, event) => {
|
|
25671
|
-
const { siteConfig = {}, promotion = {} } = context;
|
|
25672
|
-
return siteConfig.bonusPreviewEnable === '1' && promotion.activityNo != 'none'
|
|
25673
|
-
},
|
|
25674
|
-
},
|
|
25675
|
-
{ target: 'end' },
|
|
25676
|
-
],
|
|
25677
|
-
},
|
|
25678
|
-
fetching: {
|
|
25679
|
-
invoke: {
|
|
25680
|
-
src: 'fetchBonusPreview',
|
|
25681
|
-
onDone: {
|
|
25682
|
-
target: 'end',
|
|
25683
|
-
actions: 'setBonusPreview',
|
|
25684
|
-
},
|
|
25685
|
-
onError: {
|
|
25686
|
-
target: 'end',
|
|
25687
|
-
},
|
|
25688
|
-
},
|
|
25689
|
-
},
|
|
25690
|
-
end: {},
|
|
25661
|
+
checking: {
|
|
25662
|
+
always: [
|
|
25663
|
+
{
|
|
25664
|
+
target: 'fetching',
|
|
25665
|
+
cond: (context, event) => {
|
|
25666
|
+
const { siteConfig = {}, promotion = {} } = context;
|
|
25667
|
+
const { walletMode = '', bonusPreviewEnable = '0' } = siteConfig;
|
|
25668
|
+
return walletMode === '4' && bonusPreviewEnable === '1' && promotion.activityNo != 'none'
|
|
25691
25669
|
},
|
|
25692
25670
|
},
|
|
25693
|
-
|
|
25694
|
-
|
|
25695
|
-
|
|
25696
|
-
|
|
25697
|
-
|
|
25698
|
-
|
|
25699
|
-
|
|
25700
|
-
|
|
25701
|
-
|
|
25702
|
-
|
|
25703
|
-
|
|
25704
|
-
|
|
25705
|
-
|
|
25706
|
-
|
|
25707
|
-
|
|
25708
|
-
|
|
25709
|
-
|
|
25671
|
+
{ target: 'loaded' },
|
|
25672
|
+
],
|
|
25673
|
+
},
|
|
25674
|
+
fetching: {
|
|
25675
|
+
invoke: {
|
|
25676
|
+
src: 'fetchBonusPreview',
|
|
25677
|
+
onDone: {
|
|
25678
|
+
target: 'loaded',
|
|
25679
|
+
actions: 'setBonusPreview',
|
|
25680
|
+
},
|
|
25681
|
+
onError: {
|
|
25682
|
+
target: 'loaded',
|
|
25683
|
+
},
|
|
25684
|
+
},
|
|
25685
|
+
},
|
|
25686
|
+
loaded: {
|
|
25687
|
+
on: {
|
|
25688
|
+
SELECT_AMOUNT: [
|
|
25689
|
+
{
|
|
25690
|
+
target: 'debouncing',
|
|
25691
|
+
actions: 'addAmount',
|
|
25692
|
+
cond: 'isGrandTotalEnable',
|
|
25693
|
+
},
|
|
25694
|
+
{
|
|
25695
|
+
target: 'debouncing',
|
|
25696
|
+
actions: 'setAmount',
|
|
25710
25697
|
},
|
|
25698
|
+
],
|
|
25699
|
+
KEY_IN: {
|
|
25700
|
+
target: 'calculating',
|
|
25701
|
+
actions: 'setAmount',
|
|
25702
|
+
},
|
|
25703
|
+
CLEAR_CALCULATION: {
|
|
25704
|
+
target: 'debouncing',
|
|
25705
|
+
actions: 'clearCalculation',
|
|
25711
25706
|
},
|
|
25712
25707
|
},
|
|
25713
25708
|
},
|
|
@@ -25717,7 +25712,7 @@ function float (request) {
|
|
|
25717
25712
|
{
|
|
25718
25713
|
target: 'debouncing',
|
|
25719
25714
|
actions: 'addAmount',
|
|
25720
|
-
cond:
|
|
25715
|
+
cond: 'isGrandTotalEnable',
|
|
25721
25716
|
},
|
|
25722
25717
|
{
|
|
25723
25718
|
target: 'debouncing',
|
|
@@ -25728,9 +25723,6 @@ function float (request) {
|
|
|
25728
25723
|
target: 'debouncing',
|
|
25729
25724
|
actions: 'setAmount',
|
|
25730
25725
|
},
|
|
25731
|
-
BACK: {
|
|
25732
|
-
target: 'loaded',
|
|
25733
|
-
},
|
|
25734
25726
|
},
|
|
25735
25727
|
after: {
|
|
25736
25728
|
1000: {
|
|
@@ -25745,7 +25737,7 @@ function float (request) {
|
|
|
25745
25737
|
{
|
|
25746
25738
|
target: 'debouncing',
|
|
25747
25739
|
actions: 'addAmount',
|
|
25748
|
-
cond:
|
|
25740
|
+
cond: 'isGrandTotalEnable',
|
|
25749
25741
|
},
|
|
25750
25742
|
{
|
|
25751
25743
|
target: 'debouncing',
|
|
@@ -25756,11 +25748,12 @@ function float (request) {
|
|
|
25756
25748
|
target: 'debouncing',
|
|
25757
25749
|
actions: 'setAmount',
|
|
25758
25750
|
},
|
|
25759
|
-
|
|
25751
|
+
CLEAR_CALCULATION: {
|
|
25760
25752
|
target: 'debouncing',
|
|
25753
|
+
actions: 'clearCalculation',
|
|
25761
25754
|
},
|
|
25762
|
-
|
|
25763
|
-
|
|
25755
|
+
CLEAR: {
|
|
25756
|
+
actions: 'setAmount',
|
|
25764
25757
|
},
|
|
25765
25758
|
},
|
|
25766
25759
|
},
|
|
@@ -25782,7 +25775,7 @@ function float (request) {
|
|
|
25782
25775
|
{
|
|
25783
25776
|
target: 'debouncing',
|
|
25784
25777
|
actions: 'addAmount',
|
|
25785
|
-
cond:
|
|
25778
|
+
cond: 'isGrandTotalEnable',
|
|
25786
25779
|
},
|
|
25787
25780
|
{
|
|
25788
25781
|
target: 'debouncing',
|
|
@@ -25796,8 +25789,8 @@ function float (request) {
|
|
|
25796
25789
|
CONFIRM: {
|
|
25797
25790
|
target: 'submitting',
|
|
25798
25791
|
},
|
|
25799
|
-
|
|
25800
|
-
|
|
25792
|
+
CLEAR: {
|
|
25793
|
+
actions: 'setAmount',
|
|
25801
25794
|
},
|
|
25802
25795
|
CLEAR_CALCULATION: {
|
|
25803
25796
|
target: 'debouncing',
|
|
@@ -25808,7 +25801,10 @@ function float (request) {
|
|
|
25808
25801
|
submitting: {
|
|
25809
25802
|
invoke: {
|
|
25810
25803
|
src: 'submitDeposit',
|
|
25811
|
-
onDone: {
|
|
25804
|
+
onDone: {
|
|
25805
|
+
target: 'countdown',
|
|
25806
|
+
actions: 'setHouseBank',
|
|
25807
|
+
},
|
|
25812
25808
|
onError: {
|
|
25813
25809
|
target: 'calculated',
|
|
25814
25810
|
},
|
|
@@ -25883,7 +25879,9 @@ function float (request) {
|
|
|
25883
25879
|
}
|
|
25884
25880
|
}),
|
|
25885
25881
|
setAmount: assign((context, event) => {
|
|
25886
|
-
return {
|
|
25882
|
+
return {
|
|
25883
|
+
amount: event.data,
|
|
25884
|
+
}
|
|
25887
25885
|
}),
|
|
25888
25886
|
setCalculation: assign((context, event) => {
|
|
25889
25887
|
return {
|
|
@@ -25906,6 +25904,9 @@ function float (request) {
|
|
|
25906
25904
|
hasUserAccount: (context, event) => {
|
|
25907
25905
|
return event.data.bankInfo?.[0]
|
|
25908
25906
|
},
|
|
25907
|
+
isGrandTotalEnable: (context, event) => {
|
|
25908
|
+
return context.grandTotalEnable === 1
|
|
25909
|
+
},
|
|
25909
25910
|
},
|
|
25910
25911
|
services: {
|
|
25911
25912
|
fetchPaymentInfo: async (context, event) => {
|
|
@@ -26009,7 +26010,7 @@ function vpay (request) {
|
|
|
26009
26010
|
actions: ['setInitialization', 'setPreviousOrder'],
|
|
26010
26011
|
cond: 'hasPreviousOrder',
|
|
26011
26012
|
},
|
|
26012
|
-
{ target: '#vpay.
|
|
26013
|
+
{ target: '#vpay.checking', actions: 'setInitialization' },
|
|
26013
26014
|
],
|
|
26014
26015
|
onError: {
|
|
26015
26016
|
target: '#vpay.unavailable',
|
|
@@ -26018,58 +26019,52 @@ function vpay (request) {
|
|
|
26018
26019
|
},
|
|
26019
26020
|
},
|
|
26020
26021
|
},
|
|
26022
|
+
checking: {
|
|
26023
|
+
always: [
|
|
26024
|
+
{
|
|
26025
|
+
target: 'fetching',
|
|
26026
|
+
cond: (context, event) => {
|
|
26027
|
+
const { siteConfig = {}, promotion = {} } = context;
|
|
26028
|
+
const { walletMode = '', bonusPreviewEnable = '0' } = siteConfig;
|
|
26029
|
+
return walletMode === '4' && bonusPreviewEnable === '1' && promotion.activityNo != 'none'
|
|
26030
|
+
},
|
|
26031
|
+
},
|
|
26032
|
+
{ target: 'loaded' },
|
|
26033
|
+
],
|
|
26034
|
+
},
|
|
26035
|
+
fetching: {
|
|
26036
|
+
invoke: {
|
|
26037
|
+
src: 'fetchBonusPreview',
|
|
26038
|
+
onDone: {
|
|
26039
|
+
target: 'loaded',
|
|
26040
|
+
actions: 'setBonusPreview',
|
|
26041
|
+
},
|
|
26042
|
+
onError: {
|
|
26043
|
+
target: 'loaded',
|
|
26044
|
+
},
|
|
26045
|
+
},
|
|
26046
|
+
},
|
|
26021
26047
|
loaded: {
|
|
26022
|
-
type: 'parallel',
|
|
26023
26048
|
entry: 'reset',
|
|
26024
|
-
|
|
26025
|
-
|
|
26026
|
-
|
|
26027
|
-
|
|
26028
|
-
|
|
26029
|
-
|
|
26030
|
-
{
|
|
26031
|
-
target: 'fetching',
|
|
26032
|
-
cond: (context, event) => {
|
|
26033
|
-
const { siteConfig = {}, promotion = {} } = context;
|
|
26034
|
-
return siteConfig.bonusPreviewEnable === '1' && promotion.activityNo != 'none'
|
|
26035
|
-
},
|
|
26036
|
-
},
|
|
26037
|
-
{ target: 'end' },
|
|
26038
|
-
],
|
|
26039
|
-
},
|
|
26040
|
-
fetching: {
|
|
26041
|
-
invoke: {
|
|
26042
|
-
src: 'fetchBonusPreview',
|
|
26043
|
-
onDone: {
|
|
26044
|
-
target: 'end',
|
|
26045
|
-
actions: 'setBonusPreview',
|
|
26046
|
-
},
|
|
26047
|
-
onError: {
|
|
26048
|
-
target: 'end',
|
|
26049
|
-
},
|
|
26050
|
-
},
|
|
26051
|
-
},
|
|
26052
|
-
end: {},
|
|
26049
|
+
on: {
|
|
26050
|
+
SELECT_AMOUNT: [
|
|
26051
|
+
{
|
|
26052
|
+
target: 'debouncing',
|
|
26053
|
+
actions: 'addAmount',
|
|
26054
|
+
cond: 'isGrandTotalEnable',
|
|
26053
26055
|
},
|
|
26054
|
-
|
|
26055
|
-
|
|
26056
|
-
|
|
26057
|
-
SELECT_AMOUNT: [
|
|
26058
|
-
{
|
|
26059
|
-
target: '#vpay.debouncing',
|
|
26060
|
-
actions: 'addAmount',
|
|
26061
|
-
cond: (context, event) => context.grandTotalEnable === 1,
|
|
26062
|
-
},
|
|
26063
|
-
{
|
|
26064
|
-
target: '#vpay.debouncing',
|
|
26065
|
-
actions: 'setAmount',
|
|
26066
|
-
},
|
|
26067
|
-
],
|
|
26068
|
-
KEY_IN: {
|
|
26069
|
-
target: '#vpay.calculating',
|
|
26070
|
-
actions: 'setAmount',
|
|
26071
|
-
},
|
|
26056
|
+
{
|
|
26057
|
+
target: 'debouncing',
|
|
26058
|
+
actions: 'setAmount',
|
|
26072
26059
|
},
|
|
26060
|
+
],
|
|
26061
|
+
KEY_IN: {
|
|
26062
|
+
target: 'calculating',
|
|
26063
|
+
actions: 'setAmount',
|
|
26064
|
+
},
|
|
26065
|
+
CLEAR_CALCULATION: {
|
|
26066
|
+
target: 'debouncing',
|
|
26067
|
+
actions: 'clearCalculation',
|
|
26073
26068
|
},
|
|
26074
26069
|
},
|
|
26075
26070
|
},
|
|
@@ -26079,7 +26074,7 @@ function vpay (request) {
|
|
|
26079
26074
|
{
|
|
26080
26075
|
target: 'debouncing',
|
|
26081
26076
|
actions: 'addAmount',
|
|
26082
|
-
cond:
|
|
26077
|
+
cond: 'isGrandTotalEnable',
|
|
26083
26078
|
},
|
|
26084
26079
|
{
|
|
26085
26080
|
target: 'debouncing',
|
|
@@ -26090,9 +26085,6 @@ function vpay (request) {
|
|
|
26090
26085
|
target: 'debouncing',
|
|
26091
26086
|
actions: 'setAmount',
|
|
26092
26087
|
},
|
|
26093
|
-
BACK: {
|
|
26094
|
-
target: 'loaded',
|
|
26095
|
-
},
|
|
26096
26088
|
},
|
|
26097
26089
|
after: {
|
|
26098
26090
|
1000: {
|
|
@@ -26107,7 +26099,7 @@ function vpay (request) {
|
|
|
26107
26099
|
{
|
|
26108
26100
|
target: 'debouncing',
|
|
26109
26101
|
actions: 'addAmount',
|
|
26110
|
-
cond:
|
|
26102
|
+
cond: 'isGrandTotalEnable',
|
|
26111
26103
|
},
|
|
26112
26104
|
{
|
|
26113
26105
|
target: 'debouncing',
|
|
@@ -26118,11 +26110,12 @@ function vpay (request) {
|
|
|
26118
26110
|
target: 'debouncing',
|
|
26119
26111
|
actions: 'setAmount',
|
|
26120
26112
|
},
|
|
26121
|
-
|
|
26113
|
+
CLEAR_CALCULATION: {
|
|
26122
26114
|
target: 'debouncing',
|
|
26115
|
+
actions: 'clearCalculation',
|
|
26123
26116
|
},
|
|
26124
|
-
|
|
26125
|
-
|
|
26117
|
+
CLEAR: {
|
|
26118
|
+
actions: 'setAmount',
|
|
26126
26119
|
},
|
|
26127
26120
|
},
|
|
26128
26121
|
},
|
|
@@ -26144,7 +26137,7 @@ function vpay (request) {
|
|
|
26144
26137
|
{
|
|
26145
26138
|
target: 'debouncing',
|
|
26146
26139
|
actions: 'addAmount',
|
|
26147
|
-
cond:
|
|
26140
|
+
cond: 'isGrandTotalEnable',
|
|
26148
26141
|
},
|
|
26149
26142
|
{
|
|
26150
26143
|
target: 'debouncing',
|
|
@@ -26158,19 +26151,22 @@ function vpay (request) {
|
|
|
26158
26151
|
CONFIRM: {
|
|
26159
26152
|
target: 'submitting',
|
|
26160
26153
|
},
|
|
26161
|
-
BACK: {
|
|
26162
|
-
target: 'loaded',
|
|
26163
|
-
},
|
|
26164
26154
|
CLEAR_CALCULATION: {
|
|
26165
26155
|
target: 'debouncing',
|
|
26166
26156
|
actions: 'clearCalculation',
|
|
26167
26157
|
},
|
|
26158
|
+
CLEAR: {
|
|
26159
|
+
actions: 'setAmount',
|
|
26160
|
+
},
|
|
26168
26161
|
},
|
|
26169
26162
|
},
|
|
26170
26163
|
submitting: {
|
|
26171
26164
|
invoke: {
|
|
26172
26165
|
src: 'submitDeposit',
|
|
26173
|
-
onDone: {
|
|
26166
|
+
onDone: {
|
|
26167
|
+
target: 'submitted',
|
|
26168
|
+
actions: 'setOrder',
|
|
26169
|
+
},
|
|
26174
26170
|
onError: {
|
|
26175
26171
|
target: 'calculated',
|
|
26176
26172
|
},
|
|
@@ -26259,6 +26255,9 @@ function vpay (request) {
|
|
|
26259
26255
|
hasPreviousOrder: (context, event) => {
|
|
26260
26256
|
return event.data.order?.qrcode
|
|
26261
26257
|
},
|
|
26258
|
+
isGrandTotalEnable: (context, event) => {
|
|
26259
|
+
return context.grandTotalEnable === 1
|
|
26260
|
+
},
|
|
26262
26261
|
},
|
|
26263
26262
|
services: {
|
|
26264
26263
|
fetchPaymentInfo: async (context, event) => {
|
|
@@ -27236,7 +27235,7 @@ function promotions (request) {
|
|
|
27236
27235
|
}
|
|
27237
27236
|
return {
|
|
27238
27237
|
promotionsList,
|
|
27239
|
-
selectedPromo: noBonus,
|
|
27238
|
+
selectedPromo: siteConfig?.walletMode === '4' ? promotionsList[0] : noBonus,
|
|
27240
27239
|
}
|
|
27241
27240
|
}),
|
|
27242
27241
|
setSelectedPromo: assign((context, event) => {
|