@jetthai/cuora 1.1.375 → 1.1.376
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 +22 -0
- package/package.json +1 -1
- package/src/api/activity.js +3 -2
- package/src/api/auth.js +2 -2
- package/src/api/common.js +1 -1
- package/src/api/game.js +10 -10
- package/src/api/payment.js +5 -5
- package/src/api/ranking.js +6 -6
- package/src/api/user.js +14 -9
- package/src/machine/common.js +2 -3
- package/src/machine/deposit/amb.js +1 -1
- package/src/machine/deposit/crypto_bank.js +10 -2
- package/src/machine/deposit/crypto_bank_cash.js +10 -2
- package/src/machine/deposit/crypto_way.js +10 -2
- package/src/machine/deposit/crypto_way_cash.js +10 -2
- package/src/machine/deposit/deposit_fc.js +11 -3
- package/src/machine/deposit/direct.js +12 -4
- package/src/machine/deposit/direct_cash.js +12 -4
- package/src/machine/deposit/float.js +12 -4
- package/src/machine/deposit/loadcard_cash.js +11 -3
- package/src/machine/deposit/loadcard_vn.js +11 -3
- package/src/machine/deposit/manual_cash.js +12 -4
- package/src/machine/deposit/manual_vn.js +11 -3
- package/src/machine/deposit/qrcode_cash.js +11 -3
- package/src/machine/deposit/qrcode_v2.js +11 -3
- package/src/machine/deposit/virtual_bank_cash.js +11 -3
- package/src/machine/deposit/virtual_bank_vn.js +11 -3
- package/src/machine/deposit/vpay.js +12 -4
- package/src/machine/game_search_cash.js +4 -4
- package/src/machine/game_search_v2.js +9 -9
- package/src/machine/game_v2_1.js +8 -3
- package/src/machine/honor_board_cash.js +1 -1
- package/src/machine/ranking.js +4 -3
- package/src/machine/side_cash.js +3 -2
- package/src/machine/side_v2.js +3 -2
- package/src/machine/user_reset_password.js +5 -4
- package/src/machine/vip_table.js +11 -4
- package/src/machine/withdraw/withdraw_crypto_cash.js +10 -2
- package/src/machine/withdraw/withdraw_manual.js +10 -2
- package/src/request/request.js +198 -5
|
@@ -170,8 +170,16 @@ export default function (request, context) {
|
|
|
170
170
|
return { selectedAmount: event.data }
|
|
171
171
|
}),
|
|
172
172
|
setCalculation: assign((context, event) => {
|
|
173
|
-
|
|
174
|
-
|
|
173
|
+
// V2接口轉換中回傳的資料結構不同
|
|
174
|
+
const { data } = event.data
|
|
175
|
+
if (data) {
|
|
176
|
+
return {
|
|
177
|
+
calculation: data,
|
|
178
|
+
}
|
|
179
|
+
} else {
|
|
180
|
+
return {
|
|
181
|
+
calculation: event.data,
|
|
182
|
+
}
|
|
175
183
|
}
|
|
176
184
|
}),
|
|
177
185
|
clearCalculation: assign((context, event) => {
|
|
@@ -196,7 +204,7 @@ export default function (request, context) {
|
|
|
196
204
|
return await request.send(
|
|
197
205
|
payment.getDepositExpectedResult({
|
|
198
206
|
method: selectedQrcode.method,
|
|
199
|
-
amount: selectedAmount,
|
|
207
|
+
amount: Number(selectedAmount),
|
|
200
208
|
promotionsNo: promotion?.promotionsNo,
|
|
201
209
|
})
|
|
202
210
|
)
|
|
@@ -260,8 +260,16 @@ export default function (request) {
|
|
|
260
260
|
return { selectedAmount: event.data }
|
|
261
261
|
}),
|
|
262
262
|
setCalculation: assign((context, event) => {
|
|
263
|
-
|
|
264
|
-
|
|
263
|
+
// V2接口轉換中回傳的資料結構不同
|
|
264
|
+
const { data } = event.data
|
|
265
|
+
if (data) {
|
|
266
|
+
return {
|
|
267
|
+
calculation: data,
|
|
268
|
+
}
|
|
269
|
+
} else {
|
|
270
|
+
return {
|
|
271
|
+
calculation: event.data,
|
|
272
|
+
}
|
|
265
273
|
}
|
|
266
274
|
}),
|
|
267
275
|
clearCalculation: assign((context, event) => {
|
|
@@ -309,7 +317,7 @@ export default function (request) {
|
|
|
309
317
|
return await request.send(
|
|
310
318
|
payment.getDepositExpectedResult({
|
|
311
319
|
method: currentMethod,
|
|
312
|
-
amount: selectedAmount,
|
|
320
|
+
amount: Number(selectedAmount),
|
|
313
321
|
promotionsNo: promotion?.activityNo,
|
|
314
322
|
})
|
|
315
323
|
)
|
|
@@ -128,8 +128,16 @@ export default function (request, context) {
|
|
|
128
128
|
return { selectedAmount: event.data }
|
|
129
129
|
}),
|
|
130
130
|
setCalculation: assign((context, event) => {
|
|
131
|
-
|
|
132
|
-
|
|
131
|
+
// V2接口轉換中回傳的資料結構不同
|
|
132
|
+
const { data } = event.data
|
|
133
|
+
if (data) {
|
|
134
|
+
return {
|
|
135
|
+
calculation: data,
|
|
136
|
+
}
|
|
137
|
+
} else {
|
|
138
|
+
return {
|
|
139
|
+
calculation: event.data,
|
|
140
|
+
}
|
|
133
141
|
}
|
|
134
142
|
}),
|
|
135
143
|
setProcessing: assign((context, event) => {
|
|
@@ -179,7 +187,7 @@ export default function (request, context) {
|
|
|
179
187
|
return await request.send(
|
|
180
188
|
payment.getDepositExpectedResult({
|
|
181
189
|
method,
|
|
182
|
-
amount: selectedAmount,
|
|
190
|
+
amount: Number(selectedAmount),
|
|
183
191
|
promotionsNo: promotion?.promotionsNo,
|
|
184
192
|
})
|
|
185
193
|
)
|
|
@@ -190,8 +190,16 @@ export default function (request) {
|
|
|
190
190
|
}
|
|
191
191
|
}),
|
|
192
192
|
setCalculation: assign((context, event) => {
|
|
193
|
-
|
|
194
|
-
|
|
193
|
+
// V2接口轉換中回傳的資料結構不同
|
|
194
|
+
const { data } = event.data
|
|
195
|
+
if (data) {
|
|
196
|
+
return {
|
|
197
|
+
calculation: data,
|
|
198
|
+
}
|
|
199
|
+
} else {
|
|
200
|
+
return {
|
|
201
|
+
calculation: event.data,
|
|
202
|
+
}
|
|
195
203
|
}
|
|
196
204
|
}),
|
|
197
205
|
setProcessing: assign((context, event) => {
|
|
@@ -239,7 +247,7 @@ export default function (request) {
|
|
|
239
247
|
return await request.send(
|
|
240
248
|
payment.getDepositExpectedResult({
|
|
241
249
|
method,
|
|
242
|
-
amount,
|
|
250
|
+
amount: Number(amount),
|
|
243
251
|
promotionsNo: promotion?.activityNo,
|
|
244
252
|
})
|
|
245
253
|
)
|
|
@@ -267,7 +267,7 @@ export default function (request) {
|
|
|
267
267
|
options: optional,
|
|
268
268
|
minimum,
|
|
269
269
|
maximum,
|
|
270
|
-
bankList,
|
|
270
|
+
bankList: bankList?.data ? bankList.data : bankList,
|
|
271
271
|
grandTotalEnable,
|
|
272
272
|
}
|
|
273
273
|
}),
|
|
@@ -287,8 +287,16 @@ export default function (request) {
|
|
|
287
287
|
return { amount: event.data }
|
|
288
288
|
}),
|
|
289
289
|
setCalculation: assign((context, event) => {
|
|
290
|
-
|
|
291
|
-
|
|
290
|
+
// V2接口轉換中回傳的資料結構不同
|
|
291
|
+
const { data } = event.data
|
|
292
|
+
if (data) {
|
|
293
|
+
return {
|
|
294
|
+
calculation: data,
|
|
295
|
+
}
|
|
296
|
+
} else {
|
|
297
|
+
return {
|
|
298
|
+
calculation: event.data,
|
|
299
|
+
}
|
|
292
300
|
}
|
|
293
301
|
}),
|
|
294
302
|
clearCalculation: assign((context, event) => {
|
|
@@ -348,7 +356,7 @@ export default function (request) {
|
|
|
348
356
|
return await request.send(
|
|
349
357
|
payment.getDepositExpectedResult({
|
|
350
358
|
method,
|
|
351
|
-
amount,
|
|
359
|
+
amount: Number(amount),
|
|
352
360
|
promotionsNo: promotion?.activityNo,
|
|
353
361
|
})
|
|
354
362
|
)
|
|
@@ -27,9 +27,9 @@ export default function (request) {
|
|
|
27
27
|
recentlyGame: [],
|
|
28
28
|
youMayLike: [],
|
|
29
29
|
selectedType: null,
|
|
30
|
-
isYouMayLike:
|
|
31
|
-
isRecentlyGame:
|
|
32
|
-
isRecentlySearch:
|
|
30
|
+
isYouMayLike: false,
|
|
31
|
+
isRecentlyGame: false,
|
|
32
|
+
isRecentlySearch: false,
|
|
33
33
|
},
|
|
34
34
|
states: {
|
|
35
35
|
init: {
|
|
@@ -388,7 +388,7 @@ export default function (request) {
|
|
|
388
388
|
sendMayLikeTrace: async (context, event) => {
|
|
389
389
|
return await request.send(
|
|
390
390
|
game.setGameSearchTrace({
|
|
391
|
-
isYouMayLike:
|
|
391
|
+
isYouMayLike: true,
|
|
392
392
|
})
|
|
393
393
|
)
|
|
394
394
|
},
|
|
@@ -21,9 +21,9 @@ export default function (request) {
|
|
|
21
21
|
click: null,
|
|
22
22
|
clickDefault: null,
|
|
23
23
|
traceId: null,
|
|
24
|
-
isYouMayLike:
|
|
25
|
-
isRecentlyGame:
|
|
26
|
-
isRecentlySearch:
|
|
24
|
+
isYouMayLike: false,
|
|
25
|
+
isRecentlyGame: false,
|
|
26
|
+
isRecentlySearch: false,
|
|
27
27
|
gameCode: null,
|
|
28
28
|
lang: 'en-US',
|
|
29
29
|
},
|
|
@@ -119,9 +119,9 @@ export default function (request) {
|
|
|
119
119
|
data: {
|
|
120
120
|
tagId: context.tagList[0]?.id,
|
|
121
121
|
traceData: {
|
|
122
|
-
isYouMayLike:
|
|
123
|
-
isRecentlyGame:
|
|
124
|
-
isRecentlySearch:
|
|
122
|
+
isYouMayLike: false,
|
|
123
|
+
isRecentlyGame: false,
|
|
124
|
+
isRecentlySearch: false,
|
|
125
125
|
},
|
|
126
126
|
},
|
|
127
127
|
})),
|
|
@@ -319,9 +319,9 @@ export default function (request) {
|
|
|
319
319
|
tagIndex: null,
|
|
320
320
|
gameCode: null,
|
|
321
321
|
gameCodeIndex: null,
|
|
322
|
-
isYouMayLike:
|
|
323
|
-
isRecentlyGame:
|
|
324
|
-
isRecentlySearch:
|
|
322
|
+
isYouMayLike: false,
|
|
323
|
+
isRecentlyGame: false,
|
|
324
|
+
isRecentlySearch: false,
|
|
325
325
|
query: context.keyword,
|
|
326
326
|
click: null,
|
|
327
327
|
clickDefault: null,
|
package/src/machine/game_v2_1.js
CHANGED
|
@@ -5,6 +5,7 @@ import { GAME_SEARCH } from '../util/constant.js'
|
|
|
5
5
|
|
|
6
6
|
// 對應 intersectionObserver 版本
|
|
7
7
|
export default function (request) {
|
|
8
|
+
const { appSecret } = request.config
|
|
8
9
|
return createMachine(
|
|
9
10
|
{
|
|
10
11
|
id: 'game',
|
|
@@ -515,13 +516,14 @@ export default function (request) {
|
|
|
515
516
|
})
|
|
516
517
|
return list.filter((item) => item.downLine.length > 0).slice(0, 6)
|
|
517
518
|
} else if (additionEnable) {
|
|
518
|
-
const param = { categoryId: room.categoryId, index }
|
|
519
|
+
const param = { categoryId: room.categoryId, index, appSecret }
|
|
519
520
|
requestChain = event.data.list.map((category, b) => {
|
|
520
521
|
return request
|
|
521
522
|
.send(
|
|
522
523
|
api.getListCategory({
|
|
523
524
|
categoryId: category.id,
|
|
524
525
|
index: 0,
|
|
526
|
+
appSecret,
|
|
525
527
|
})
|
|
526
528
|
)
|
|
527
529
|
.then((res) => Object.assign({ downLine: res.data.filter((item) => item.isGame).slice(0, 20) }, category))
|
|
@@ -535,6 +537,7 @@ export default function (request) {
|
|
|
535
537
|
api.getListCategory({
|
|
536
538
|
categoryId: category.id,
|
|
537
539
|
index: 0,
|
|
540
|
+
appSecret,
|
|
538
541
|
})
|
|
539
542
|
)
|
|
540
543
|
.then((res) => Object.assign({ downLine: res.data.filter((item) => item.isGame).slice(0, 20) }, category))
|
|
@@ -558,10 +561,10 @@ export default function (request) {
|
|
|
558
561
|
},
|
|
559
562
|
]
|
|
560
563
|
} else if (additionEnable) {
|
|
561
|
-
const param = { categoryId: room.categoryId, index }
|
|
564
|
+
const param = { categoryId: room.categoryId, index, appSecret }
|
|
562
565
|
return await Promise.all([request.send(api.getListCategory(param)), request.send(api.getListAddition(param))])
|
|
563
566
|
} else {
|
|
564
|
-
const param = { categoryId: room.categoryId, index }
|
|
567
|
+
const param = { categoryId: room.categoryId, index, appSecret }
|
|
565
568
|
return await Promise.all([request.send(api.getListCategory(param))])
|
|
566
569
|
}
|
|
567
570
|
},
|
|
@@ -578,6 +581,7 @@ export default function (request) {
|
|
|
578
581
|
categoryId: room.categoryId,
|
|
579
582
|
end: index,
|
|
580
583
|
timestamp: content.timestamp,
|
|
584
|
+
appSecret,
|
|
581
585
|
})
|
|
582
586
|
),
|
|
583
587
|
request.send(
|
|
@@ -585,6 +589,7 @@ export default function (request) {
|
|
|
585
589
|
categoryId: room.categoryId,
|
|
586
590
|
end: index,
|
|
587
591
|
timestamp: content.timestamp,
|
|
592
|
+
appSecret,
|
|
588
593
|
})
|
|
589
594
|
),
|
|
590
595
|
])
|
|
@@ -80,7 +80,7 @@ export default function (request) {
|
|
|
80
80
|
},
|
|
81
81
|
services: {
|
|
82
82
|
fetchHonorBoardList: async (context, event) => {
|
|
83
|
-
const { data } = await request.send(activity.getHonorBroadcast(appSecret))
|
|
83
|
+
const { data } = await request.send(activity.getHonorBroadcast({ appSecret }))
|
|
84
84
|
return data
|
|
85
85
|
},
|
|
86
86
|
},
|
package/src/machine/ranking.js
CHANGED
|
@@ -2,6 +2,7 @@ import { createMachine, assign } from 'xstate'
|
|
|
2
2
|
import ranking from '../api/ranking.js'
|
|
3
3
|
|
|
4
4
|
export default function (request) {
|
|
5
|
+
const { appSecret } = request.config
|
|
5
6
|
const cycleMapping = ['DAILY', 'WEEKLY', 'MONTHLY']
|
|
6
7
|
const limit = { DAILY: 56, WEEKLY: 8, MONTHLY: 2, ALL: 2 }
|
|
7
8
|
|
|
@@ -194,12 +195,12 @@ export default function (request) {
|
|
|
194
195
|
services: {
|
|
195
196
|
fetchTournament: async (context) => {
|
|
196
197
|
const { activityNo, cycle, round, site } = context
|
|
197
|
-
const { data } = await request.send(ranking.getTournament({ activityNo, cycle, round, site }))
|
|
198
|
+
const { data } = await request.send(ranking.getTournament({ activityNo, cycle, round, site, appSecret }))
|
|
198
199
|
return data
|
|
199
200
|
},
|
|
200
201
|
fetchRankingOptions: async (context) => {
|
|
201
202
|
const { activityNo } = context
|
|
202
|
-
const { data } = await request.send(ranking.getRankingOptions({ activityNo }))
|
|
203
|
+
const { data } = await request.send(ranking.getRankingOptions({ activityNo, appSecret }))
|
|
203
204
|
return data
|
|
204
205
|
},
|
|
205
206
|
fetchRankingDetail: async (context, event) => {
|
|
@@ -209,7 +210,7 @@ export default function (request) {
|
|
|
209
210
|
},
|
|
210
211
|
fetchRankingGames: async (context) => {
|
|
211
212
|
const { activityNo } = context
|
|
212
|
-
const { data } = await request.send(ranking.getRankingGames({ activityNo }))
|
|
213
|
+
const { data } = await request.send(ranking.getRankingGames({ activityNo, appSecret }))
|
|
213
214
|
return data
|
|
214
215
|
},
|
|
215
216
|
},
|
package/src/machine/side_cash.js
CHANGED
|
@@ -2,6 +2,7 @@ import { assign, createMachine } from 'xstate'
|
|
|
2
2
|
import game from '../api/game.js'
|
|
3
3
|
|
|
4
4
|
export default function (request) {
|
|
5
|
+
const { appSecret } = request.config
|
|
5
6
|
return createMachine(
|
|
6
7
|
{
|
|
7
8
|
id: 'side',
|
|
@@ -78,10 +79,10 @@ export default function (request) {
|
|
|
78
79
|
},
|
|
79
80
|
services: {
|
|
80
81
|
getMenu: async (context, event) => {
|
|
81
|
-
return await request.send(game.getListRoot())
|
|
82
|
+
return await request.send(game.getListRoot({ appSecret }))
|
|
82
83
|
},
|
|
83
84
|
fetchUpdateMenu: async (context, event) => {
|
|
84
|
-
return await request.send(game.getListRoot({ timestamp: context.menu.timestamp }))
|
|
85
|
+
return await request.send(game.getListRoot({ timestamp: context.menu.timestamp, appSecret }))
|
|
85
86
|
},
|
|
86
87
|
},
|
|
87
88
|
}
|
package/src/machine/side_v2.js
CHANGED
|
@@ -2,6 +2,7 @@ import { assign, createMachine } from 'xstate'
|
|
|
2
2
|
import game from '../api/game.js'
|
|
3
3
|
|
|
4
4
|
export default function (request) {
|
|
5
|
+
const { appSecret } = request.config
|
|
5
6
|
return createMachine(
|
|
6
7
|
{
|
|
7
8
|
id: 'side',
|
|
@@ -160,10 +161,10 @@ export default function (request) {
|
|
|
160
161
|
},
|
|
161
162
|
services: {
|
|
162
163
|
getMenu: async (context, event) => {
|
|
163
|
-
return await request.send(game.getListRoot())
|
|
164
|
+
return await request.send(game.getListRoot({ appSecret }))
|
|
164
165
|
},
|
|
165
166
|
fetchUpdateMenu: async (context, event) => {
|
|
166
|
-
return await request.send(game.getListRoot({ timestamp: context.menu.timestamp }))
|
|
167
|
+
return await request.send(game.getListRoot({ timestamp: context.menu.timestamp, appSecret }))
|
|
167
168
|
},
|
|
168
169
|
},
|
|
169
170
|
}
|
|
@@ -2,6 +2,7 @@ import { assign, createMachine } from 'xstate'
|
|
|
2
2
|
import user from '../api/user.js'
|
|
3
3
|
|
|
4
4
|
export default function (request) {
|
|
5
|
+
const { appSecret } = request.config
|
|
5
6
|
return createMachine(
|
|
6
7
|
{
|
|
7
8
|
id: 'user_reset_password',
|
|
@@ -207,20 +208,20 @@ export default function (request) {
|
|
|
207
208
|
services: {
|
|
208
209
|
sendOtp: async (context, event) => {
|
|
209
210
|
const { provider, username, countryCode, phone, email } = context.otpParams
|
|
210
|
-
return await request.send(user.passwordV2RecoveryInit({ provider, username, countryCode, phone, email }))
|
|
211
|
+
return await request.send(user.passwordV2RecoveryInit({ provider, username, countryCode, phone, email, appSecret }))
|
|
211
212
|
},
|
|
212
213
|
resetOtp: async (context, event) => {
|
|
213
214
|
const { requestId, target } = context
|
|
214
|
-
return await request.send(user.passwordV2ResetOtp({ requestId, target }))
|
|
215
|
+
return await request.send(user.passwordV2ResetOtp({ requestId, target, appSecret }))
|
|
215
216
|
},
|
|
216
217
|
acknowledge: async (context, event) => {
|
|
217
218
|
const { requestId, target } = context
|
|
218
219
|
const code = event.data
|
|
219
|
-
return await request.send(user.passwordV2Acknowledge({ requestId, target, code }))
|
|
220
|
+
return await request.send(user.passwordV2Acknowledge({ requestId, target, code, appSecret }))
|
|
220
221
|
},
|
|
221
222
|
change: async (context, event) => {
|
|
222
223
|
const { requestId, target, newPassword } = context
|
|
223
|
-
return await request.send(user.passwordV2Change({ requestId, target, newPassword }))
|
|
224
|
+
return await request.send(user.passwordV2Change({ requestId, target, newPassword, appSecret }))
|
|
224
225
|
},
|
|
225
226
|
},
|
|
226
227
|
}
|
package/src/machine/vip_table.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { assign, createMachine } from 'xstate'
|
|
2
2
|
import activity from '../api/activity.js'
|
|
3
3
|
export default function (request) {
|
|
4
|
+
const { appSecret } = request.config
|
|
4
5
|
return createMachine(
|
|
5
6
|
{
|
|
6
7
|
id: 'vip_table',
|
|
@@ -35,14 +36,20 @@ export default function (request) {
|
|
|
35
36
|
},
|
|
36
37
|
services: {
|
|
37
38
|
fetchVipTable: async (context, event) => {
|
|
38
|
-
const
|
|
39
|
-
|
|
40
|
-
|
|
39
|
+
const result = await request.send(activity.getVipTable({ appSecret }))
|
|
40
|
+
let dataList = []
|
|
41
|
+
// V2接口轉換中回傳的資料結構不同
|
|
42
|
+
if (!result?.viptable) {
|
|
43
|
+
dataList = result.data
|
|
44
|
+
} else {
|
|
45
|
+
dataList = result.viptable?.data
|
|
46
|
+
}
|
|
47
|
+
dataList.map((item) => {
|
|
41
48
|
item.title = item.title.toLowerCase()
|
|
42
49
|
return item
|
|
43
50
|
})
|
|
44
51
|
|
|
45
|
-
return
|
|
52
|
+
return dataList
|
|
46
53
|
},
|
|
47
54
|
},
|
|
48
55
|
}
|
|
@@ -204,8 +204,16 @@ export default function (request, context) {
|
|
|
204
204
|
}
|
|
205
205
|
}),
|
|
206
206
|
setCalculation: assign((context, event) => {
|
|
207
|
-
|
|
208
|
-
|
|
207
|
+
// V2接口轉換中回傳的資料結構不同
|
|
208
|
+
const { data } = event.data
|
|
209
|
+
if (data) {
|
|
210
|
+
return {
|
|
211
|
+
calculation: data,
|
|
212
|
+
}
|
|
213
|
+
} else {
|
|
214
|
+
return {
|
|
215
|
+
calculation: event.data,
|
|
216
|
+
}
|
|
209
217
|
}
|
|
210
218
|
}),
|
|
211
219
|
resetCharge: assign((context, event) => {
|
|
@@ -384,8 +384,16 @@ export default function (request) {
|
|
|
384
384
|
}
|
|
385
385
|
}),
|
|
386
386
|
setCalculation: assign((context, event) => {
|
|
387
|
-
|
|
388
|
-
|
|
387
|
+
// V2接口轉換中回傳的資料結構不同
|
|
388
|
+
const { data } = event.data
|
|
389
|
+
if (data) {
|
|
390
|
+
return {
|
|
391
|
+
calculation: data,
|
|
392
|
+
}
|
|
393
|
+
} else {
|
|
394
|
+
return {
|
|
395
|
+
calculation: event.data,
|
|
396
|
+
}
|
|
389
397
|
}
|
|
390
398
|
}),
|
|
391
399
|
clearCalculation: assign((context, event) => {
|