@everymatrix/user-deposit-withdrawal 1.94.70 → 1.94.71
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/cjs/loader.cjs.js +1 -1
- package/dist/cjs/player-step-up-auth_2.cjs.entry.js +48 -10
- package/dist/cjs/user-deposit-withdrawal.cjs.js +1 -1
- package/dist/collection/components/user-deposit-withdrawal/user-deposit-withdrawal.js +69 -11
- package/dist/esm/loader.js +1 -1
- package/dist/esm/player-step-up-auth_2.entry.js +48 -10
- package/dist/esm/user-deposit-withdrawal.js +1 -1
- package/dist/types/components/user-deposit-withdrawal/user-deposit-withdrawal.d.ts +4 -0
- package/dist/types/components.d.ts +8 -0
- package/dist/user-deposit-withdrawal/player-step-up-auth_2.entry.js +1 -1
- package/dist/user-deposit-withdrawal/user-deposit-withdrawal.esm.js +1 -1
- package/package.json +1 -1
package/dist/cjs/loader.cjs.js
CHANGED
|
@@ -8,7 +8,7 @@ const appGlobals = require('./app-globals-3a1e7e63.js');
|
|
|
8
8
|
const defineCustomElements = async (win, options) => {
|
|
9
9
|
if (typeof window === 'undefined') return undefined;
|
|
10
10
|
await appGlobals.globalScripts();
|
|
11
|
-
return index.bootstrapLazy([["player-step-up-auth_2.cjs",[[1,"user-deposit-withdrawal",{"mbSource":[513,"mb-source"],"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"translationUrl":[513,"translation-url"],"endpoint":[513],"type":[513],"channel":[513],"language":[513],"productType":[513,"product-type"],"userId":[513,"user-id"],"session":[513],"successUrl":[513,"success-url"],"cancelUrl":[513,"cancel-url"],"failUrl":[513,"fail-url"],"sportsUrl":[513,"sports-url"],"casinoUrl":[513,"casino-url"],"contactUrl":[513,"contact-url"],"depositUrl":[513,"deposit-url"],"currency":[513],"showBonusSelectionInput":[513,"show-bonus-selection-input"],"isShortCashier":[516,"is-short-cashier"],"homeUrl":[513,"home-url"],"beforeRedirect":[16],"forwardCashierRedirects":[516,"forward-cashier-redirects"],"enableStepUpAuth":[516,"enable-step-up-auth"],"dynamicHeight":[32],"cashierInfoUrl":[32]},[[8,"otpSuccess","handleOtpSuccess"],[8,"manualClosePopup","handleManualClosePopup"],[8,"otpResendRequested","handleOtpResendRequested"],[8,"otpSetTimeout","handleOtpSetTimeout"]],{"clientStyling":["handleClientStylingChange"],"clientStylingUrl":["handleClientStylingChangeURL"],"enableStepUpAuth":["handleEnableStepUpAuthChange"]}],[1,"player-step-up-auth",{"mbSource":[513,"mb-source"],"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"language":[513],"endpoint":[513],"userSession":[513,"user-session"],"translationUrl":[513,"translation-url"],"mode":[513],"showPopup":[32],"otp":[32],"isLoading":[32],"config":[32],"timeLeft":[32],"expirationTime":[32],"serverTime":[32],"hasErrors":[32],"hasConfigErrors":[32],"errorMessage":[32],"token":[32],"flow":[32],"showResendOtp":[32],"isLastWarning":[32],"inputDisabled":[32],"isValidating":[32],"isSuccess":[32],"shakeError":[32]},[[8,"stepUpAuthRequired","handleStepUpAuthEvent"],[8,"closePopup","handleCloseWidget"]],{"translationUrl":["handleNewTranslations"],"clientStyling":["handleClientStylingChange"],"clientStylingUrl":["handleClientStylingUrlChange"]}]]]], options);
|
|
11
|
+
return index.bootstrapLazy([["player-step-up-auth_2.cjs",[[1,"user-deposit-withdrawal",{"mbSource":[513,"mb-source"],"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"translationUrl":[513,"translation-url"],"endpoint":[513],"type":[513],"channel":[513],"language":[513],"productType":[513,"product-type"],"userId":[513,"user-id"],"session":[513],"successUrl":[513,"success-url"],"cancelUrl":[513,"cancel-url"],"failUrl":[513,"fail-url"],"sportsUrl":[513,"sports-url"],"casinoUrl":[513,"casino-url"],"contactUrl":[513,"contact-url"],"depositUrl":[513,"deposit-url"],"currency":[513],"showBonusSelectionInput":[513,"show-bonus-selection-input"],"isShortCashier":[516,"is-short-cashier"],"homeUrl":[513,"home-url"],"beforeRedirect":[16],"forwardCashierRedirects":[516,"forward-cashier-redirects"],"enableStepUpAuth":[516,"enable-step-up-auth"],"showApiErrorMessage":[516,"show-api-error-message"],"dynamicHeight":[32],"cashierInfoUrl":[32],"errorMessage":[32],"errorFromApi":[32]},[[8,"otpSuccess","handleOtpSuccess"],[8,"manualClosePopup","handleManualClosePopup"],[8,"otpResendRequested","handleOtpResendRequested"],[8,"otpSetTimeout","handleOtpSetTimeout"]],{"clientStyling":["handleClientStylingChange"],"clientStylingUrl":["handleClientStylingChangeURL"],"enableStepUpAuth":["handleEnableStepUpAuthChange"]}],[1,"player-step-up-auth",{"mbSource":[513,"mb-source"],"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"language":[513],"endpoint":[513],"userSession":[513,"user-session"],"translationUrl":[513,"translation-url"],"mode":[513],"showPopup":[32],"otp":[32],"isLoading":[32],"config":[32],"timeLeft":[32],"expirationTime":[32],"serverTime":[32],"hasErrors":[32],"hasConfigErrors":[32],"errorMessage":[32],"token":[32],"flow":[32],"showResendOtp":[32],"isLastWarning":[32],"inputDisabled":[32],"isValidating":[32],"isSuccess":[32],"shakeError":[32]},[[8,"stepUpAuthRequired","handleStepUpAuthEvent"],[8,"closePopup","handleCloseWidget"]],{"translationUrl":["handleNewTranslations"],"clientStyling":["handleClientStylingChange"],"clientStylingUrl":["handleClientStylingUrlChange"]}]]]], options);
|
|
12
12
|
};
|
|
13
13
|
|
|
14
14
|
exports.setNonce = index.setNonce;
|
|
@@ -2122,7 +2122,27 @@ const UserDepositWithdrawal = class {
|
|
|
2122
2122
|
this.bindedHandler = this.handleMessage.bind(this);
|
|
2123
2123
|
this.userAgent = window.navigator.userAgent;
|
|
2124
2124
|
this.isMobile = isMobile(this.userAgent);
|
|
2125
|
-
|
|
2125
|
+
// Error codes from MM, refer to https://everymatrix.atlassian.net/wiki/x/YIDlgwE for more details
|
|
2126
|
+
// Translation can be added in operator player-profile.json formatted as errorCode{code}
|
|
2127
|
+
this.errorCodes = [
|
|
2128
|
+
'21123', '21122', '21121', '100003', '100007', '100020', '100102', '100103',
|
|
2129
|
+
'11010', '11020', '11100', '11204', '11408', '11505', '11506', '11601',
|
|
2130
|
+
'11704', '11754', '11755', '11772', '11776', '11778', '11779', '11780',
|
|
2131
|
+
'11781', '11802', '12006', '12126', '12127', '12135', '12136', '12137',
|
|
2132
|
+
'12138', '12139', '12140', '12502', '12503', '13501', '13502', '13503',
|
|
2133
|
+
'13504', '13505', '13506', '13507', '13550', '13555', '13573', '13575',
|
|
2134
|
+
'14006', '14007', '14008', '14009', '14010', '14011', '21050', '21051',
|
|
2135
|
+
'21052', '21054', '21056', '21070', '21073', '21074', '21077', '21079',
|
|
2136
|
+
'21082', '21083', '21104', '21105', '21108', '21116', '21117', '21202',
|
|
2137
|
+
'21289', '21292', '21293', '21294', '21295', '21296', '21297', '21298',
|
|
2138
|
+
'21299', '21301', '21302', '21303', '21304', '21305', '21306', '21307',
|
|
2139
|
+
'21308', '22007', '22011', '22012', '22013', '22014', '22015', '22016',
|
|
2140
|
+
'22017', '22018', '22021', '22022', '22023', '22024', '23601', '29107',
|
|
2141
|
+
'30100', '40003', '40004', '50000', '50001', '50002', '50003', '50004',
|
|
2142
|
+
'50005', '50006', '50007', '50008', '50009', '50010', '50011', '50012',
|
|
2143
|
+
'50013', '50014', '50015', '50100', '50101', '50102', '50103', '50104',
|
|
2144
|
+
'50105', '50106',
|
|
2145
|
+
];
|
|
2126
2146
|
this.toggleScreen = () => {
|
|
2127
2147
|
window.postMessage({ type: 'PlayerAccountMenuActive', isMobile: this.isMobile }, window.location.href);
|
|
2128
2148
|
};
|
|
@@ -2151,8 +2171,11 @@ const UserDepositWithdrawal = class {
|
|
|
2151
2171
|
this.beforeRedirect = emptyFunction;
|
|
2152
2172
|
this.forwardCashierRedirects = false;
|
|
2153
2173
|
this.enableStepUpAuth = false;
|
|
2174
|
+
this.showApiErrorMessage = false;
|
|
2154
2175
|
this.dynamicHeight = undefined;
|
|
2155
2176
|
this.cashierInfoUrl = undefined;
|
|
2177
|
+
this.errorMessage = '';
|
|
2178
|
+
this.errorFromApi = false;
|
|
2156
2179
|
}
|
|
2157
2180
|
get typeParameter() {
|
|
2158
2181
|
if (this.type === 'deposit') {
|
|
@@ -2199,13 +2222,16 @@ const UserDepositWithdrawal = class {
|
|
|
2199
2222
|
this.closeSSEStream();
|
|
2200
2223
|
}
|
|
2201
2224
|
render() {
|
|
2202
|
-
return (index.h(index.Host, { key: '
|
|
2225
|
+
return (index.h(index.Host, { key: '338fa8bd00485e7d7c1a92ddbc7622e4eb6bd020' }, this.enableStepUpAuth && (index.h("player-step-up-auth", { key: 'b0076f39d95d35b3cae6d6bb0a039feb39764f47', endpoint: this.endpoint, userSession: this.session, language: this.language, "client-styling-url": this.clientStylingUrl, "translation-url": this.translationUrl })), index.h("div", { key: '00f02636ed279a41dd203bdaea54f41eacaa8f86', ref: el => this.stylingContainer = el, class: "" }, index.h("div", { key: '120c160a3f0729e5aae360e9fc7b99e33c93e01c', class: `DepositWithdrawalWrapper ${this.isShortCashier ? 'ShortCashier' : ''}` }, (!(this.isMobile && !this.isShortCashier) && (index.h("h2", { key: '664216161b01c6e49bc36b738eb02ae622eeda09', class: "CategoryTitle" }, translate(this.typeParameter === 'Withdraw' ? 'Withdraw' : 'Deposit', this.language)))), index.h("div", { key: 'f57113548723235044ac51485b37e2e9b6e3ee4c', style: { marginTop: this.isShortCashier ? '30px' : '0' } }, (this.isMobile && !this.isShortCashier ?
|
|
2203
2226
|
index.h("div", { class: "MenuReturnButton", onClick: this.toggleScreen }, index.h("svg", { xmlns: "http://www.w3.org/2000/svg", width: "15", height: "15", viewBox: "0 0 15 15" }, index.h("defs", null), index.h("g", { transform: "translate(-20 -158)" }, index.h("g", { transform: "translate(20 158)" }, index.h("path", { class: "aaa", d: "M7.5,0,6.136,1.364,11.3,6.526H0V8.474H11.3L6.136,13.636,7.5,15,15,7.5Z", transform: "translate(15 15) rotate(180)" })))), index.h("h2", { class: "CategoryTitleMobile" }, translate(this.typeParameter === 'Withdraw' ? 'Withdraw' : 'Deposit', this.language)))
|
|
2204
2227
|
: null)), this.cashierInfoUrl ?
|
|
2205
2228
|
index.h("iframe", { ref: el => this.cashierIframeRef = el, width: "100%", allow: "payment", height: this.dynamicHeight, src: this.cashierInfoUrl }) :
|
|
2206
|
-
|
|
2207
|
-
|
|
2208
|
-
|
|
2229
|
+
this.errorFromApi ?
|
|
2230
|
+
index.h("h3", { class: "ErrorMessage" }, this.errorMessage) :
|
|
2231
|
+
index.h("h3", { innerHTML: this.errorMessage ||
|
|
2232
|
+
(this.type === 'deposit'
|
|
2233
|
+
? translate('denyDeposit', this.language)
|
|
2234
|
+
: translate('denyWithdrawal', this.language)), class: "ErrorMessage" })))));
|
|
2209
2235
|
}
|
|
2210
2236
|
async loadWidget() {
|
|
2211
2237
|
const requestObject = {
|
|
@@ -2234,11 +2260,13 @@ const UserDepositWithdrawal = class {
|
|
|
2234
2260
|
},
|
|
2235
2261
|
body: JSON.stringify(requestObject)
|
|
2236
2262
|
});
|
|
2263
|
+
const data = await response.json();
|
|
2237
2264
|
if (!response.ok) {
|
|
2238
|
-
|
|
2239
|
-
|
|
2265
|
+
console.error(data);
|
|
2266
|
+
if (!this.showApiErrorMessage) {
|
|
2267
|
+
return;
|
|
2268
|
+
}
|
|
2240
2269
|
}
|
|
2241
|
-
const data = await response.json();
|
|
2242
2270
|
if (data.CashierInfo) {
|
|
2243
2271
|
this.cashierInfoUrl = data.CashierInfo.Url;
|
|
2244
2272
|
}
|
|
@@ -2246,8 +2274,15 @@ const UserDepositWithdrawal = class {
|
|
|
2246
2274
|
let apiMessage;
|
|
2247
2275
|
if (data.ResponseMessage) {
|
|
2248
2276
|
let foundErrorCode = this.errorCodes.find(code => data.ResponseMessage.includes(code)) || null;
|
|
2249
|
-
|
|
2250
|
-
|
|
2277
|
+
const translatedMessage = foundErrorCode
|
|
2278
|
+
? translate(`errorCode${foundErrorCode}`, this.language)
|
|
2279
|
+
: undefined;
|
|
2280
|
+
if (translatedMessage) {
|
|
2281
|
+
apiMessage = translatedMessage;
|
|
2282
|
+
}
|
|
2283
|
+
else if (this.showApiErrorMessage) {
|
|
2284
|
+
apiMessage = data.ResponseMessage;
|
|
2285
|
+
this.errorFromApi = true;
|
|
2251
2286
|
}
|
|
2252
2287
|
else {
|
|
2253
2288
|
apiMessage = translate('notFoundErrorCode', this.language);
|
|
@@ -2258,6 +2293,9 @@ const UserDepositWithdrawal = class {
|
|
|
2258
2293
|
? translate('denyDeposit', this.language)
|
|
2259
2294
|
: translate('denyWithdrawal', this.language);
|
|
2260
2295
|
}
|
|
2296
|
+
if (this.showApiErrorMessage) {
|
|
2297
|
+
this.errorMessage = apiMessage;
|
|
2298
|
+
}
|
|
2261
2299
|
const messageOBj = { type: 'error', message: apiMessage };
|
|
2262
2300
|
window.postMessage({ type: 'DenyDepositOrWithdrawal', data: messageOBj }, window.location.href);
|
|
2263
2301
|
}
|
|
@@ -19,7 +19,7 @@ var patchBrowser = () => {
|
|
|
19
19
|
|
|
20
20
|
patchBrowser().then(async (options) => {
|
|
21
21
|
await appGlobals.globalScripts();
|
|
22
|
-
return index.bootstrapLazy([["player-step-up-auth_2.cjs",[[1,"user-deposit-withdrawal",{"mbSource":[513,"mb-source"],"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"translationUrl":[513,"translation-url"],"endpoint":[513],"type":[513],"channel":[513],"language":[513],"productType":[513,"product-type"],"userId":[513,"user-id"],"session":[513],"successUrl":[513,"success-url"],"cancelUrl":[513,"cancel-url"],"failUrl":[513,"fail-url"],"sportsUrl":[513,"sports-url"],"casinoUrl":[513,"casino-url"],"contactUrl":[513,"contact-url"],"depositUrl":[513,"deposit-url"],"currency":[513],"showBonusSelectionInput":[513,"show-bonus-selection-input"],"isShortCashier":[516,"is-short-cashier"],"homeUrl":[513,"home-url"],"beforeRedirect":[16],"forwardCashierRedirects":[516,"forward-cashier-redirects"],"enableStepUpAuth":[516,"enable-step-up-auth"],"dynamicHeight":[32],"cashierInfoUrl":[32]},[[8,"otpSuccess","handleOtpSuccess"],[8,"manualClosePopup","handleManualClosePopup"],[8,"otpResendRequested","handleOtpResendRequested"],[8,"otpSetTimeout","handleOtpSetTimeout"]],{"clientStyling":["handleClientStylingChange"],"clientStylingUrl":["handleClientStylingChangeURL"],"enableStepUpAuth":["handleEnableStepUpAuthChange"]}],[1,"player-step-up-auth",{"mbSource":[513,"mb-source"],"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"language":[513],"endpoint":[513],"userSession":[513,"user-session"],"translationUrl":[513,"translation-url"],"mode":[513],"showPopup":[32],"otp":[32],"isLoading":[32],"config":[32],"timeLeft":[32],"expirationTime":[32],"serverTime":[32],"hasErrors":[32],"hasConfigErrors":[32],"errorMessage":[32],"token":[32],"flow":[32],"showResendOtp":[32],"isLastWarning":[32],"inputDisabled":[32],"isValidating":[32],"isSuccess":[32],"shakeError":[32]},[[8,"stepUpAuthRequired","handleStepUpAuthEvent"],[8,"closePopup","handleCloseWidget"]],{"translationUrl":["handleNewTranslations"],"clientStyling":["handleClientStylingChange"],"clientStylingUrl":["handleClientStylingUrlChange"]}]]]], options);
|
|
22
|
+
return index.bootstrapLazy([["player-step-up-auth_2.cjs",[[1,"user-deposit-withdrawal",{"mbSource":[513,"mb-source"],"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"translationUrl":[513,"translation-url"],"endpoint":[513],"type":[513],"channel":[513],"language":[513],"productType":[513,"product-type"],"userId":[513,"user-id"],"session":[513],"successUrl":[513,"success-url"],"cancelUrl":[513,"cancel-url"],"failUrl":[513,"fail-url"],"sportsUrl":[513,"sports-url"],"casinoUrl":[513,"casino-url"],"contactUrl":[513,"contact-url"],"depositUrl":[513,"deposit-url"],"currency":[513],"showBonusSelectionInput":[513,"show-bonus-selection-input"],"isShortCashier":[516,"is-short-cashier"],"homeUrl":[513,"home-url"],"beforeRedirect":[16],"forwardCashierRedirects":[516,"forward-cashier-redirects"],"enableStepUpAuth":[516,"enable-step-up-auth"],"showApiErrorMessage":[516,"show-api-error-message"],"dynamicHeight":[32],"cashierInfoUrl":[32],"errorMessage":[32],"errorFromApi":[32]},[[8,"otpSuccess","handleOtpSuccess"],[8,"manualClosePopup","handleManualClosePopup"],[8,"otpResendRequested","handleOtpResendRequested"],[8,"otpSetTimeout","handleOtpSetTimeout"]],{"clientStyling":["handleClientStylingChange"],"clientStylingUrl":["handleClientStylingChangeURL"],"enableStepUpAuth":["handleEnableStepUpAuthChange"]}],[1,"player-step-up-auth",{"mbSource":[513,"mb-source"],"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"language":[513],"endpoint":[513],"userSession":[513,"user-session"],"translationUrl":[513,"translation-url"],"mode":[513],"showPopup":[32],"otp":[32],"isLoading":[32],"config":[32],"timeLeft":[32],"expirationTime":[32],"serverTime":[32],"hasErrors":[32],"hasConfigErrors":[32],"errorMessage":[32],"token":[32],"flow":[32],"showResendOtp":[32],"isLastWarning":[32],"inputDisabled":[32],"isValidating":[32],"isSuccess":[32],"shakeError":[32]},[[8,"stepUpAuthRequired","handleStepUpAuthEvent"],[8,"closePopup","handleCloseWidget"]],{"translationUrl":["handleNewTranslations"],"clientStyling":["handleClientStylingChange"],"clientStylingUrl":["handleClientStylingUrlChange"]}]]]], options);
|
|
23
23
|
});
|
|
24
24
|
|
|
25
25
|
exports.setNonce = index.setNonce;
|
|
@@ -21,7 +21,27 @@ export class UserDepositWithdrawal {
|
|
|
21
21
|
this.bindedHandler = this.handleMessage.bind(this);
|
|
22
22
|
this.userAgent = window.navigator.userAgent;
|
|
23
23
|
this.isMobile = isMobile(this.userAgent);
|
|
24
|
-
|
|
24
|
+
// Error codes from MM, refer to https://everymatrix.atlassian.net/wiki/x/YIDlgwE for more details
|
|
25
|
+
// Translation can be added in operator player-profile.json formatted as errorCode{code}
|
|
26
|
+
this.errorCodes = [
|
|
27
|
+
'21123', '21122', '21121', '100003', '100007', '100020', '100102', '100103',
|
|
28
|
+
'11010', '11020', '11100', '11204', '11408', '11505', '11506', '11601',
|
|
29
|
+
'11704', '11754', '11755', '11772', '11776', '11778', '11779', '11780',
|
|
30
|
+
'11781', '11802', '12006', '12126', '12127', '12135', '12136', '12137',
|
|
31
|
+
'12138', '12139', '12140', '12502', '12503', '13501', '13502', '13503',
|
|
32
|
+
'13504', '13505', '13506', '13507', '13550', '13555', '13573', '13575',
|
|
33
|
+
'14006', '14007', '14008', '14009', '14010', '14011', '21050', '21051',
|
|
34
|
+
'21052', '21054', '21056', '21070', '21073', '21074', '21077', '21079',
|
|
35
|
+
'21082', '21083', '21104', '21105', '21108', '21116', '21117', '21202',
|
|
36
|
+
'21289', '21292', '21293', '21294', '21295', '21296', '21297', '21298',
|
|
37
|
+
'21299', '21301', '21302', '21303', '21304', '21305', '21306', '21307',
|
|
38
|
+
'21308', '22007', '22011', '22012', '22013', '22014', '22015', '22016',
|
|
39
|
+
'22017', '22018', '22021', '22022', '22023', '22024', '23601', '29107',
|
|
40
|
+
'30100', '40003', '40004', '50000', '50001', '50002', '50003', '50004',
|
|
41
|
+
'50005', '50006', '50007', '50008', '50009', '50010', '50011', '50012',
|
|
42
|
+
'50013', '50014', '50015', '50100', '50101', '50102', '50103', '50104',
|
|
43
|
+
'50105', '50106',
|
|
44
|
+
];
|
|
25
45
|
this.toggleScreen = () => {
|
|
26
46
|
window.postMessage({ type: 'PlayerAccountMenuActive', isMobile: this.isMobile }, window.location.href);
|
|
27
47
|
};
|
|
@@ -50,8 +70,11 @@ export class UserDepositWithdrawal {
|
|
|
50
70
|
this.beforeRedirect = emptyFunction;
|
|
51
71
|
this.forwardCashierRedirects = false;
|
|
52
72
|
this.enableStepUpAuth = false;
|
|
73
|
+
this.showApiErrorMessage = false;
|
|
53
74
|
this.dynamicHeight = undefined;
|
|
54
75
|
this.cashierInfoUrl = undefined;
|
|
76
|
+
this.errorMessage = '';
|
|
77
|
+
this.errorFromApi = false;
|
|
55
78
|
}
|
|
56
79
|
get typeParameter() {
|
|
57
80
|
if (this.type === 'deposit') {
|
|
@@ -98,13 +121,16 @@ export class UserDepositWithdrawal {
|
|
|
98
121
|
this.closeSSEStream();
|
|
99
122
|
}
|
|
100
123
|
render() {
|
|
101
|
-
return (h(Host, { key: '
|
|
124
|
+
return (h(Host, { key: '338fa8bd00485e7d7c1a92ddbc7622e4eb6bd020' }, this.enableStepUpAuth && (h("player-step-up-auth", { key: 'b0076f39d95d35b3cae6d6bb0a039feb39764f47', endpoint: this.endpoint, userSession: this.session, language: this.language, "client-styling-url": this.clientStylingUrl, "translation-url": this.translationUrl })), h("div", { key: '00f02636ed279a41dd203bdaea54f41eacaa8f86', ref: el => this.stylingContainer = el, class: "" }, h("div", { key: '120c160a3f0729e5aae360e9fc7b99e33c93e01c', class: `DepositWithdrawalWrapper ${this.isShortCashier ? 'ShortCashier' : ''}` }, (!(this.isMobile && !this.isShortCashier) && (h("h2", { key: '664216161b01c6e49bc36b738eb02ae622eeda09', class: "CategoryTitle" }, translate(this.typeParameter === 'Withdraw' ? 'Withdraw' : 'Deposit', this.language)))), h("div", { key: 'f57113548723235044ac51485b37e2e9b6e3ee4c', style: { marginTop: this.isShortCashier ? '30px' : '0' } }, (this.isMobile && !this.isShortCashier ?
|
|
102
125
|
h("div", { class: "MenuReturnButton", onClick: this.toggleScreen }, h("svg", { xmlns: "http://www.w3.org/2000/svg", width: "15", height: "15", viewBox: "0 0 15 15" }, h("defs", null), h("g", { transform: "translate(-20 -158)" }, h("g", { transform: "translate(20 158)" }, h("path", { class: "aaa", d: "M7.5,0,6.136,1.364,11.3,6.526H0V8.474H11.3L6.136,13.636,7.5,15,15,7.5Z", transform: "translate(15 15) rotate(180)" })))), h("h2", { class: "CategoryTitleMobile" }, translate(this.typeParameter === 'Withdraw' ? 'Withdraw' : 'Deposit', this.language)))
|
|
103
126
|
: null)), this.cashierInfoUrl ?
|
|
104
127
|
h("iframe", { ref: el => this.cashierIframeRef = el, width: "100%", allow: "payment", height: this.dynamicHeight, src: this.cashierInfoUrl }) :
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
128
|
+
this.errorFromApi ?
|
|
129
|
+
h("h3", { class: "ErrorMessage" }, this.errorMessage) :
|
|
130
|
+
h("h3", { innerHTML: this.errorMessage ||
|
|
131
|
+
(this.type === 'deposit'
|
|
132
|
+
? translate('denyDeposit', this.language)
|
|
133
|
+
: translate('denyWithdrawal', this.language)), class: "ErrorMessage" })))));
|
|
108
134
|
}
|
|
109
135
|
async loadWidget() {
|
|
110
136
|
const requestObject = {
|
|
@@ -133,11 +159,13 @@ export class UserDepositWithdrawal {
|
|
|
133
159
|
},
|
|
134
160
|
body: JSON.stringify(requestObject)
|
|
135
161
|
});
|
|
162
|
+
const data = await response.json();
|
|
136
163
|
if (!response.ok) {
|
|
137
|
-
|
|
138
|
-
|
|
164
|
+
console.error(data);
|
|
165
|
+
if (!this.showApiErrorMessage) {
|
|
166
|
+
return;
|
|
167
|
+
}
|
|
139
168
|
}
|
|
140
|
-
const data = await response.json();
|
|
141
169
|
if (data.CashierInfo) {
|
|
142
170
|
this.cashierInfoUrl = data.CashierInfo.Url;
|
|
143
171
|
}
|
|
@@ -145,8 +173,15 @@ export class UserDepositWithdrawal {
|
|
|
145
173
|
let apiMessage;
|
|
146
174
|
if (data.ResponseMessage) {
|
|
147
175
|
let foundErrorCode = this.errorCodes.find(code => data.ResponseMessage.includes(code)) || null;
|
|
148
|
-
|
|
149
|
-
|
|
176
|
+
const translatedMessage = foundErrorCode
|
|
177
|
+
? translate(`errorCode${foundErrorCode}`, this.language)
|
|
178
|
+
: undefined;
|
|
179
|
+
if (translatedMessage) {
|
|
180
|
+
apiMessage = translatedMessage;
|
|
181
|
+
}
|
|
182
|
+
else if (this.showApiErrorMessage) {
|
|
183
|
+
apiMessage = data.ResponseMessage;
|
|
184
|
+
this.errorFromApi = true;
|
|
150
185
|
}
|
|
151
186
|
else {
|
|
152
187
|
apiMessage = translate('notFoundErrorCode', this.language);
|
|
@@ -157,6 +192,9 @@ export class UserDepositWithdrawal {
|
|
|
157
192
|
? translate('denyDeposit', this.language)
|
|
158
193
|
: translate('denyWithdrawal', this.language);
|
|
159
194
|
}
|
|
195
|
+
if (this.showApiErrorMessage) {
|
|
196
|
+
this.errorMessage = apiMessage;
|
|
197
|
+
}
|
|
160
198
|
const messageOBj = { type: 'error', message: apiMessage };
|
|
161
199
|
window.postMessage({ type: 'DenyDepositOrWithdrawal', data: messageOBj }, window.location.href);
|
|
162
200
|
}
|
|
@@ -912,13 +950,33 @@ export class UserDepositWithdrawal {
|
|
|
912
950
|
"attribute": "enable-step-up-auth",
|
|
913
951
|
"reflect": true,
|
|
914
952
|
"defaultValue": "false"
|
|
953
|
+
},
|
|
954
|
+
"showApiErrorMessage": {
|
|
955
|
+
"type": "boolean",
|
|
956
|
+
"mutable": false,
|
|
957
|
+
"complexType": {
|
|
958
|
+
"original": "boolean",
|
|
959
|
+
"resolved": "boolean",
|
|
960
|
+
"references": {}
|
|
961
|
+
},
|
|
962
|
+
"required": false,
|
|
963
|
+
"optional": false,
|
|
964
|
+
"docs": {
|
|
965
|
+
"tags": [],
|
|
966
|
+
"text": "Prefer errorCode{code} when a translation exists; otherwise show ResponseMessage instead of notFound/deny fallbacks."
|
|
967
|
+
},
|
|
968
|
+
"attribute": "show-api-error-message",
|
|
969
|
+
"reflect": true,
|
|
970
|
+
"defaultValue": "false"
|
|
915
971
|
}
|
|
916
972
|
};
|
|
917
973
|
}
|
|
918
974
|
static get states() {
|
|
919
975
|
return {
|
|
920
976
|
"dynamicHeight": {},
|
|
921
|
-
"cashierInfoUrl": {}
|
|
977
|
+
"cashierInfoUrl": {},
|
|
978
|
+
"errorMessage": {},
|
|
979
|
+
"errorFromApi": {}
|
|
922
980
|
};
|
|
923
981
|
}
|
|
924
982
|
static get watchers() {
|
package/dist/esm/loader.js
CHANGED
|
@@ -5,7 +5,7 @@ import { g as globalScripts } from './app-globals-0f993ce5.js';
|
|
|
5
5
|
const defineCustomElements = async (win, options) => {
|
|
6
6
|
if (typeof window === 'undefined') return undefined;
|
|
7
7
|
await globalScripts();
|
|
8
|
-
return bootstrapLazy([["player-step-up-auth_2",[[1,"user-deposit-withdrawal",{"mbSource":[513,"mb-source"],"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"translationUrl":[513,"translation-url"],"endpoint":[513],"type":[513],"channel":[513],"language":[513],"productType":[513,"product-type"],"userId":[513,"user-id"],"session":[513],"successUrl":[513,"success-url"],"cancelUrl":[513,"cancel-url"],"failUrl":[513,"fail-url"],"sportsUrl":[513,"sports-url"],"casinoUrl":[513,"casino-url"],"contactUrl":[513,"contact-url"],"depositUrl":[513,"deposit-url"],"currency":[513],"showBonusSelectionInput":[513,"show-bonus-selection-input"],"isShortCashier":[516,"is-short-cashier"],"homeUrl":[513,"home-url"],"beforeRedirect":[16],"forwardCashierRedirects":[516,"forward-cashier-redirects"],"enableStepUpAuth":[516,"enable-step-up-auth"],"dynamicHeight":[32],"cashierInfoUrl":[32]},[[8,"otpSuccess","handleOtpSuccess"],[8,"manualClosePopup","handleManualClosePopup"],[8,"otpResendRequested","handleOtpResendRequested"],[8,"otpSetTimeout","handleOtpSetTimeout"]],{"clientStyling":["handleClientStylingChange"],"clientStylingUrl":["handleClientStylingChangeURL"],"enableStepUpAuth":["handleEnableStepUpAuthChange"]}],[1,"player-step-up-auth",{"mbSource":[513,"mb-source"],"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"language":[513],"endpoint":[513],"userSession":[513,"user-session"],"translationUrl":[513,"translation-url"],"mode":[513],"showPopup":[32],"otp":[32],"isLoading":[32],"config":[32],"timeLeft":[32],"expirationTime":[32],"serverTime":[32],"hasErrors":[32],"hasConfigErrors":[32],"errorMessage":[32],"token":[32],"flow":[32],"showResendOtp":[32],"isLastWarning":[32],"inputDisabled":[32],"isValidating":[32],"isSuccess":[32],"shakeError":[32]},[[8,"stepUpAuthRequired","handleStepUpAuthEvent"],[8,"closePopup","handleCloseWidget"]],{"translationUrl":["handleNewTranslations"],"clientStyling":["handleClientStylingChange"],"clientStylingUrl":["handleClientStylingUrlChange"]}]]]], options);
|
|
8
|
+
return bootstrapLazy([["player-step-up-auth_2",[[1,"user-deposit-withdrawal",{"mbSource":[513,"mb-source"],"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"translationUrl":[513,"translation-url"],"endpoint":[513],"type":[513],"channel":[513],"language":[513],"productType":[513,"product-type"],"userId":[513,"user-id"],"session":[513],"successUrl":[513,"success-url"],"cancelUrl":[513,"cancel-url"],"failUrl":[513,"fail-url"],"sportsUrl":[513,"sports-url"],"casinoUrl":[513,"casino-url"],"contactUrl":[513,"contact-url"],"depositUrl":[513,"deposit-url"],"currency":[513],"showBonusSelectionInput":[513,"show-bonus-selection-input"],"isShortCashier":[516,"is-short-cashier"],"homeUrl":[513,"home-url"],"beforeRedirect":[16],"forwardCashierRedirects":[516,"forward-cashier-redirects"],"enableStepUpAuth":[516,"enable-step-up-auth"],"showApiErrorMessage":[516,"show-api-error-message"],"dynamicHeight":[32],"cashierInfoUrl":[32],"errorMessage":[32],"errorFromApi":[32]},[[8,"otpSuccess","handleOtpSuccess"],[8,"manualClosePopup","handleManualClosePopup"],[8,"otpResendRequested","handleOtpResendRequested"],[8,"otpSetTimeout","handleOtpSetTimeout"]],{"clientStyling":["handleClientStylingChange"],"clientStylingUrl":["handleClientStylingChangeURL"],"enableStepUpAuth":["handleEnableStepUpAuthChange"]}],[1,"player-step-up-auth",{"mbSource":[513,"mb-source"],"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"language":[513],"endpoint":[513],"userSession":[513,"user-session"],"translationUrl":[513,"translation-url"],"mode":[513],"showPopup":[32],"otp":[32],"isLoading":[32],"config":[32],"timeLeft":[32],"expirationTime":[32],"serverTime":[32],"hasErrors":[32],"hasConfigErrors":[32],"errorMessage":[32],"token":[32],"flow":[32],"showResendOtp":[32],"isLastWarning":[32],"inputDisabled":[32],"isValidating":[32],"isSuccess":[32],"shakeError":[32]},[[8,"stepUpAuthRequired","handleStepUpAuthEvent"],[8,"closePopup","handleCloseWidget"]],{"translationUrl":["handleNewTranslations"],"clientStyling":["handleClientStylingChange"],"clientStylingUrl":["handleClientStylingUrlChange"]}]]]], options);
|
|
9
9
|
};
|
|
10
10
|
|
|
11
11
|
export { defineCustomElements };
|
|
@@ -2118,7 +2118,27 @@ const UserDepositWithdrawal = class {
|
|
|
2118
2118
|
this.bindedHandler = this.handleMessage.bind(this);
|
|
2119
2119
|
this.userAgent = window.navigator.userAgent;
|
|
2120
2120
|
this.isMobile = isMobile(this.userAgent);
|
|
2121
|
-
|
|
2121
|
+
// Error codes from MM, refer to https://everymatrix.atlassian.net/wiki/x/YIDlgwE for more details
|
|
2122
|
+
// Translation can be added in operator player-profile.json formatted as errorCode{code}
|
|
2123
|
+
this.errorCodes = [
|
|
2124
|
+
'21123', '21122', '21121', '100003', '100007', '100020', '100102', '100103',
|
|
2125
|
+
'11010', '11020', '11100', '11204', '11408', '11505', '11506', '11601',
|
|
2126
|
+
'11704', '11754', '11755', '11772', '11776', '11778', '11779', '11780',
|
|
2127
|
+
'11781', '11802', '12006', '12126', '12127', '12135', '12136', '12137',
|
|
2128
|
+
'12138', '12139', '12140', '12502', '12503', '13501', '13502', '13503',
|
|
2129
|
+
'13504', '13505', '13506', '13507', '13550', '13555', '13573', '13575',
|
|
2130
|
+
'14006', '14007', '14008', '14009', '14010', '14011', '21050', '21051',
|
|
2131
|
+
'21052', '21054', '21056', '21070', '21073', '21074', '21077', '21079',
|
|
2132
|
+
'21082', '21083', '21104', '21105', '21108', '21116', '21117', '21202',
|
|
2133
|
+
'21289', '21292', '21293', '21294', '21295', '21296', '21297', '21298',
|
|
2134
|
+
'21299', '21301', '21302', '21303', '21304', '21305', '21306', '21307',
|
|
2135
|
+
'21308', '22007', '22011', '22012', '22013', '22014', '22015', '22016',
|
|
2136
|
+
'22017', '22018', '22021', '22022', '22023', '22024', '23601', '29107',
|
|
2137
|
+
'30100', '40003', '40004', '50000', '50001', '50002', '50003', '50004',
|
|
2138
|
+
'50005', '50006', '50007', '50008', '50009', '50010', '50011', '50012',
|
|
2139
|
+
'50013', '50014', '50015', '50100', '50101', '50102', '50103', '50104',
|
|
2140
|
+
'50105', '50106',
|
|
2141
|
+
];
|
|
2122
2142
|
this.toggleScreen = () => {
|
|
2123
2143
|
window.postMessage({ type: 'PlayerAccountMenuActive', isMobile: this.isMobile }, window.location.href);
|
|
2124
2144
|
};
|
|
@@ -2147,8 +2167,11 @@ const UserDepositWithdrawal = class {
|
|
|
2147
2167
|
this.beforeRedirect = emptyFunction;
|
|
2148
2168
|
this.forwardCashierRedirects = false;
|
|
2149
2169
|
this.enableStepUpAuth = false;
|
|
2170
|
+
this.showApiErrorMessage = false;
|
|
2150
2171
|
this.dynamicHeight = undefined;
|
|
2151
2172
|
this.cashierInfoUrl = undefined;
|
|
2173
|
+
this.errorMessage = '';
|
|
2174
|
+
this.errorFromApi = false;
|
|
2152
2175
|
}
|
|
2153
2176
|
get typeParameter() {
|
|
2154
2177
|
if (this.type === 'deposit') {
|
|
@@ -2195,13 +2218,16 @@ const UserDepositWithdrawal = class {
|
|
|
2195
2218
|
this.closeSSEStream();
|
|
2196
2219
|
}
|
|
2197
2220
|
render() {
|
|
2198
|
-
return (h(Host, { key: '
|
|
2221
|
+
return (h(Host, { key: '338fa8bd00485e7d7c1a92ddbc7622e4eb6bd020' }, this.enableStepUpAuth && (h("player-step-up-auth", { key: 'b0076f39d95d35b3cae6d6bb0a039feb39764f47', endpoint: this.endpoint, userSession: this.session, language: this.language, "client-styling-url": this.clientStylingUrl, "translation-url": this.translationUrl })), h("div", { key: '00f02636ed279a41dd203bdaea54f41eacaa8f86', ref: el => this.stylingContainer = el, class: "" }, h("div", { key: '120c160a3f0729e5aae360e9fc7b99e33c93e01c', class: `DepositWithdrawalWrapper ${this.isShortCashier ? 'ShortCashier' : ''}` }, (!(this.isMobile && !this.isShortCashier) && (h("h2", { key: '664216161b01c6e49bc36b738eb02ae622eeda09', class: "CategoryTitle" }, translate(this.typeParameter === 'Withdraw' ? 'Withdraw' : 'Deposit', this.language)))), h("div", { key: 'f57113548723235044ac51485b37e2e9b6e3ee4c', style: { marginTop: this.isShortCashier ? '30px' : '0' } }, (this.isMobile && !this.isShortCashier ?
|
|
2199
2222
|
h("div", { class: "MenuReturnButton", onClick: this.toggleScreen }, h("svg", { xmlns: "http://www.w3.org/2000/svg", width: "15", height: "15", viewBox: "0 0 15 15" }, h("defs", null), h("g", { transform: "translate(-20 -158)" }, h("g", { transform: "translate(20 158)" }, h("path", { class: "aaa", d: "M7.5,0,6.136,1.364,11.3,6.526H0V8.474H11.3L6.136,13.636,7.5,15,15,7.5Z", transform: "translate(15 15) rotate(180)" })))), h("h2", { class: "CategoryTitleMobile" }, translate(this.typeParameter === 'Withdraw' ? 'Withdraw' : 'Deposit', this.language)))
|
|
2200
2223
|
: null)), this.cashierInfoUrl ?
|
|
2201
2224
|
h("iframe", { ref: el => this.cashierIframeRef = el, width: "100%", allow: "payment", height: this.dynamicHeight, src: this.cashierInfoUrl }) :
|
|
2202
|
-
|
|
2203
|
-
|
|
2204
|
-
|
|
2225
|
+
this.errorFromApi ?
|
|
2226
|
+
h("h3", { class: "ErrorMessage" }, this.errorMessage) :
|
|
2227
|
+
h("h3", { innerHTML: this.errorMessage ||
|
|
2228
|
+
(this.type === 'deposit'
|
|
2229
|
+
? translate('denyDeposit', this.language)
|
|
2230
|
+
: translate('denyWithdrawal', this.language)), class: "ErrorMessage" })))));
|
|
2205
2231
|
}
|
|
2206
2232
|
async loadWidget() {
|
|
2207
2233
|
const requestObject = {
|
|
@@ -2230,11 +2256,13 @@ const UserDepositWithdrawal = class {
|
|
|
2230
2256
|
},
|
|
2231
2257
|
body: JSON.stringify(requestObject)
|
|
2232
2258
|
});
|
|
2259
|
+
const data = await response.json();
|
|
2233
2260
|
if (!response.ok) {
|
|
2234
|
-
|
|
2235
|
-
|
|
2261
|
+
console.error(data);
|
|
2262
|
+
if (!this.showApiErrorMessage) {
|
|
2263
|
+
return;
|
|
2264
|
+
}
|
|
2236
2265
|
}
|
|
2237
|
-
const data = await response.json();
|
|
2238
2266
|
if (data.CashierInfo) {
|
|
2239
2267
|
this.cashierInfoUrl = data.CashierInfo.Url;
|
|
2240
2268
|
}
|
|
@@ -2242,8 +2270,15 @@ const UserDepositWithdrawal = class {
|
|
|
2242
2270
|
let apiMessage;
|
|
2243
2271
|
if (data.ResponseMessage) {
|
|
2244
2272
|
let foundErrorCode = this.errorCodes.find(code => data.ResponseMessage.includes(code)) || null;
|
|
2245
|
-
|
|
2246
|
-
|
|
2273
|
+
const translatedMessage = foundErrorCode
|
|
2274
|
+
? translate(`errorCode${foundErrorCode}`, this.language)
|
|
2275
|
+
: undefined;
|
|
2276
|
+
if (translatedMessage) {
|
|
2277
|
+
apiMessage = translatedMessage;
|
|
2278
|
+
}
|
|
2279
|
+
else if (this.showApiErrorMessage) {
|
|
2280
|
+
apiMessage = data.ResponseMessage;
|
|
2281
|
+
this.errorFromApi = true;
|
|
2247
2282
|
}
|
|
2248
2283
|
else {
|
|
2249
2284
|
apiMessage = translate('notFoundErrorCode', this.language);
|
|
@@ -2254,6 +2289,9 @@ const UserDepositWithdrawal = class {
|
|
|
2254
2289
|
? translate('denyDeposit', this.language)
|
|
2255
2290
|
: translate('denyWithdrawal', this.language);
|
|
2256
2291
|
}
|
|
2292
|
+
if (this.showApiErrorMessage) {
|
|
2293
|
+
this.errorMessage = apiMessage;
|
|
2294
|
+
}
|
|
2257
2295
|
const messageOBj = { type: 'error', message: apiMessage };
|
|
2258
2296
|
window.postMessage({ type: 'DenyDepositOrWithdrawal', data: messageOBj }, window.location.href);
|
|
2259
2297
|
}
|
|
@@ -16,5 +16,5 @@ var patchBrowser = () => {
|
|
|
16
16
|
|
|
17
17
|
patchBrowser().then(async (options) => {
|
|
18
18
|
await globalScripts();
|
|
19
|
-
return bootstrapLazy([["player-step-up-auth_2",[[1,"user-deposit-withdrawal",{"mbSource":[513,"mb-source"],"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"translationUrl":[513,"translation-url"],"endpoint":[513],"type":[513],"channel":[513],"language":[513],"productType":[513,"product-type"],"userId":[513,"user-id"],"session":[513],"successUrl":[513,"success-url"],"cancelUrl":[513,"cancel-url"],"failUrl":[513,"fail-url"],"sportsUrl":[513,"sports-url"],"casinoUrl":[513,"casino-url"],"contactUrl":[513,"contact-url"],"depositUrl":[513,"deposit-url"],"currency":[513],"showBonusSelectionInput":[513,"show-bonus-selection-input"],"isShortCashier":[516,"is-short-cashier"],"homeUrl":[513,"home-url"],"beforeRedirect":[16],"forwardCashierRedirects":[516,"forward-cashier-redirects"],"enableStepUpAuth":[516,"enable-step-up-auth"],"dynamicHeight":[32],"cashierInfoUrl":[32]},[[8,"otpSuccess","handleOtpSuccess"],[8,"manualClosePopup","handleManualClosePopup"],[8,"otpResendRequested","handleOtpResendRequested"],[8,"otpSetTimeout","handleOtpSetTimeout"]],{"clientStyling":["handleClientStylingChange"],"clientStylingUrl":["handleClientStylingChangeURL"],"enableStepUpAuth":["handleEnableStepUpAuthChange"]}],[1,"player-step-up-auth",{"mbSource":[513,"mb-source"],"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"language":[513],"endpoint":[513],"userSession":[513,"user-session"],"translationUrl":[513,"translation-url"],"mode":[513],"showPopup":[32],"otp":[32],"isLoading":[32],"config":[32],"timeLeft":[32],"expirationTime":[32],"serverTime":[32],"hasErrors":[32],"hasConfigErrors":[32],"errorMessage":[32],"token":[32],"flow":[32],"showResendOtp":[32],"isLastWarning":[32],"inputDisabled":[32],"isValidating":[32],"isSuccess":[32],"shakeError":[32]},[[8,"stepUpAuthRequired","handleStepUpAuthEvent"],[8,"closePopup","handleCloseWidget"]],{"translationUrl":["handleNewTranslations"],"clientStyling":["handleClientStylingChange"],"clientStylingUrl":["handleClientStylingUrlChange"]}]]]], options);
|
|
19
|
+
return bootstrapLazy([["player-step-up-auth_2",[[1,"user-deposit-withdrawal",{"mbSource":[513,"mb-source"],"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"translationUrl":[513,"translation-url"],"endpoint":[513],"type":[513],"channel":[513],"language":[513],"productType":[513,"product-type"],"userId":[513,"user-id"],"session":[513],"successUrl":[513,"success-url"],"cancelUrl":[513,"cancel-url"],"failUrl":[513,"fail-url"],"sportsUrl":[513,"sports-url"],"casinoUrl":[513,"casino-url"],"contactUrl":[513,"contact-url"],"depositUrl":[513,"deposit-url"],"currency":[513],"showBonusSelectionInput":[513,"show-bonus-selection-input"],"isShortCashier":[516,"is-short-cashier"],"homeUrl":[513,"home-url"],"beforeRedirect":[16],"forwardCashierRedirects":[516,"forward-cashier-redirects"],"enableStepUpAuth":[516,"enable-step-up-auth"],"showApiErrorMessage":[516,"show-api-error-message"],"dynamicHeight":[32],"cashierInfoUrl":[32],"errorMessage":[32],"errorFromApi":[32]},[[8,"otpSuccess","handleOtpSuccess"],[8,"manualClosePopup","handleManualClosePopup"],[8,"otpResendRequested","handleOtpResendRequested"],[8,"otpSetTimeout","handleOtpSetTimeout"]],{"clientStyling":["handleClientStylingChange"],"clientStylingUrl":["handleClientStylingChangeURL"],"enableStepUpAuth":["handleEnableStepUpAuthChange"]}],[1,"player-step-up-auth",{"mbSource":[513,"mb-source"],"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"language":[513],"endpoint":[513],"userSession":[513,"user-session"],"translationUrl":[513,"translation-url"],"mode":[513],"showPopup":[32],"otp":[32],"isLoading":[32],"config":[32],"timeLeft":[32],"expirationTime":[32],"serverTime":[32],"hasErrors":[32],"hasConfigErrors":[32],"errorMessage":[32],"token":[32],"flow":[32],"showResendOtp":[32],"isLastWarning":[32],"inputDisabled":[32],"isValidating":[32],"isSuccess":[32],"shakeError":[32]},[[8,"stepUpAuthRequired","handleStepUpAuthEvent"],[8,"closePopup","handleCloseWidget"]],{"translationUrl":["handleNewTranslations"],"clientStyling":["handleClientStylingChange"],"clientStylingUrl":["handleClientStylingUrlChange"]}]]]], options);
|
|
20
20
|
});
|
|
@@ -44,8 +44,12 @@ export declare class UserDepositWithdrawal {
|
|
|
44
44
|
* Enable or disable the step-up authentication (2FA)
|
|
45
45
|
*/
|
|
46
46
|
enableStepUpAuth: boolean;
|
|
47
|
+
/** Prefer errorCode{code} when a translation exists; otherwise show ResponseMessage instead of notFound/deny fallbacks. */
|
|
48
|
+
showApiErrorMessage: boolean;
|
|
47
49
|
private dynamicHeight;
|
|
48
50
|
private cashierInfoUrl;
|
|
51
|
+
private errorMessage;
|
|
52
|
+
private errorFromApi;
|
|
49
53
|
private cashierIframeRef;
|
|
50
54
|
private sseStream;
|
|
51
55
|
private selectedPaymentMethod;
|
|
@@ -43,6 +43,10 @@ export namespace Components {
|
|
|
43
43
|
"mbSource": string;
|
|
44
44
|
"productType": string;
|
|
45
45
|
"session": string;
|
|
46
|
+
/**
|
|
47
|
+
* Prefer errorCode{code} when a translation exists; otherwise show ResponseMessage instead of notFound/deny fallbacks.
|
|
48
|
+
*/
|
|
49
|
+
"showApiErrorMessage": boolean;
|
|
46
50
|
"showBonusSelectionInput": string;
|
|
47
51
|
"sportsUrl": string;
|
|
48
52
|
"successUrl": string;
|
|
@@ -101,6 +105,10 @@ declare namespace LocalJSX {
|
|
|
101
105
|
"mbSource"?: string;
|
|
102
106
|
"productType"?: string;
|
|
103
107
|
"session"?: string;
|
|
108
|
+
/**
|
|
109
|
+
* Prefer errorCode{code} when a translation exists; otherwise show ResponseMessage instead of notFound/deny fallbacks.
|
|
110
|
+
*/
|
|
111
|
+
"showApiErrorMessage"?: boolean;
|
|
104
112
|
"showBonusSelectionInput"?: string;
|
|
105
113
|
"sportsUrl"?: string;
|
|
106
114
|
"successUrl"?: string;
|
|
@@ -3,4 +3,4 @@ import{r as e,h as t,F as i,g as r,H as n}from"./index-2ff63899.js";const o="__W
|
|
|
3
3
|
* eventsource.js
|
|
4
4
|
* Available under MIT License (MIT)
|
|
5
5
|
* https://github.com/Yaffle/EventSource/
|
|
6
|
-
*/C=T,k=T.exports,function(e){var t=e.setTimeout,i=e.clearTimeout,r=e.XMLHttpRequest,n=e.XDomainRequest,o=e.ActiveXObject,a=e.EventSource,s=e.document,u=e.Promise,d=e.fetch,l=e.Response,h=e.TextDecoder,c=e.TextEncoder,p=e.AbortController;if("undefined"==typeof window||void 0===s||"readyState"in s||null!=s.body||(s.readyState="loading",window.addEventListener("load",(function(){s.readyState="complete"}),!1)),null==r&&null!=o&&(r=function(){return new o("Microsoft.XMLHTTP")}),null==Object.create&&(Object.create=function(e){function t(){}return t.prototype=e,new t}),Date.now||(Date.now=function(){return(new Date).getTime()}),null==p){var f=d;d=function(e,t){var i=t.signal;return f(e,{headers:t.headers,credentials:t.credentials,cache:t.cache}).then((function(e){var t=e.body.getReader();return i._reader=t,i._aborted&&i._reader.cancel(),{status:e.status,statusText:e.statusText,headers:e.headers,body:{getReader:function(){return t}}}}))},p=function(){this.signal={_reader:null,_aborted:!1},this.abort=function(){null!=this.signal._reader&&this.signal._reader.cancel(),this.signal._aborted=!0}}}function m(){this.bitsNeeded=0,this.codePoint=0}m.prototype.decode=function(e){function t(e,t,i){if(1===i)return e>=128>>t&&e<<t<=2047;if(2===i)return e>=2048>>t&&e<<t<=55295||e>=57344>>t&&e<<t<=65535;if(3===i)return e>=65536>>t&&e<<t<=1114111;throw new Error}function i(e,t){if(6===e)return t>>6>15?3:t>31?2:1;if(12===e)return t>15?3:2;if(18===e)return 3;throw new Error}for(var r=65533,n="",o=this.bitsNeeded,a=this.codePoint,s=0;s<e.length;s+=1){var u=e[s];0!==o&&(u<128||u>191||!t(a<<6|63&u,o-6,i(o,a)))&&(o=0,a=r,n+=String.fromCharCode(a)),0===o?(u>=0&&u<=127?(o=0,a=u):u>=192&&u<=223?(o=6,a=31&u):u>=224&&u<=239?(o=12,a=15&u):u>=240&&u<=247?(o=18,a=7&u):(o=0,a=r),0===o||t(a,o,i(o,a))||(o=0,a=r)):(o-=6,a=a<<6|63&u),0===o&&(a<=65535?n+=String.fromCharCode(a):(n+=String.fromCharCode(55296+(a-65535-1>>10)),n+=String.fromCharCode(56320+(a-65535-1&1023))))}return this.bitsNeeded=o,this.codePoint=a,n},null!=h&&null!=c&&function(){try{return"test"===(new h).decode((new c).encode("test"),{stream:!0})}catch(e){console.debug("TextDecoder does not support streaming option. Using polyfill instead: "+e)}return!1}()||(h=m);var v=function(){};function g(e){this.withCredentials=!1,this.readyState=0,this.status=0,this.statusText="",this.responseText="",this.onprogress=v,this.onload=v,this.onerror=v,this.onreadystatechange=v,this._contentType="",this._xhr=e,this._sendTimeout=0,this._abort=v}function w(e){return e.replace(/[A-Z]/g,(function(e){return String.fromCharCode(e.charCodeAt(0)+32)}))}function y(e){for(var t=Object.create(null),i=e.split("\r\n"),r=0;r<i.length;r+=1){var n=i[r].split(": "),o=n.shift(),a=n.join(": ");t[w(o)]=a}this._map=t}function b(){}function O(e){this._headers=e}function S(){}function E(){this._listeners=Object.create(null)}function T(e){t((function(){throw e}),0)}function P(e){this.type=e,this.target=void 0}function M(e,t){P.call(this,e),this.data=t.data,this.lastEventId=t.lastEventId}function x(e,t){P.call(this,e),this.status=t.status,this.statusText=t.statusText,this.headers=t.headers}function D(e,t){P.call(this,e),this.error=t.error}g.prototype.open=function(e,n){this._abort(!0);var o=this,a=this._xhr,s=1,u=0;this._abort=function(e){0!==o._sendTimeout&&(i(o._sendTimeout),o._sendTimeout=0),1!==s&&2!==s&&3!==s||(s=4,a.onload=v,a.onerror=v,a.onabort=v,a.onprogress=v,a.onreadystatechange=v,a.abort(),0!==u&&(i(u),u=0),e||(o.readyState=4,o.onabort(null),o.onreadystatechange())),s=0};var d=function(){if(1===s){var e=0,t="",i=void 0;if("contentType"in a)e=200,t="OK",i=a.contentType;else try{e=a.status,t=a.statusText,i=a.getResponseHeader("Content-Type")}catch(r){e=0,t="",i=void 0}0!==e&&(s=2,o.readyState=2,o.status=e,o.statusText=t,o._contentType=i,o.onreadystatechange())}},l=function(){if(d(),2===s||3===s){s=3;var e="";try{e=a.responseText}catch(e){}o.readyState=3,o.responseText=e,o.onprogress()}},h=function(e,t){if(null!=t&&null!=t.preventDefault||(t={preventDefault:v}),l(),1===s||2===s||3===s){if(s=4,0!==u&&(i(u),u=0),o.readyState=4,"load"===e)o.onload(t);else if("error"===e)o.onerror(t);else{if("abort"!==e)throw new TypeError;o.onabort(t)}o.onreadystatechange()}},c=function(){u=t((function(){c()}),500),3===a.readyState&&l()};"onload"in a&&(a.onload=function(e){h("load",e)}),"onerror"in a&&(a.onerror=function(e){h("error",e)}),"onabort"in a&&(a.onabort=function(e){h("abort",e)}),"onprogress"in a&&(a.onprogress=l),"onreadystatechange"in a&&(a.onreadystatechange=function(e){!function(e){null!=a&&(4===a.readyState?"onload"in a&&"onerror"in a&&"onabort"in a||h(""===a.responseText?"error":"load",e):3===a.readyState?"onprogress"in a||l():2===a.readyState&&d())}(e)}),!("contentType"in a)&&"ontimeout"in r.prototype||(n+=(-1===n.indexOf("?")?"?":"&")+"padding=true"),a.open(e,n,!0),"readyState"in a&&(u=t((function(){c()}),0))},g.prototype.abort=function(){this._abort(!1)},g.prototype.getResponseHeader=function(){return this._contentType},g.prototype.setRequestHeader=function(e,t){var i=this._xhr;"setRequestHeader"in i&&i.setRequestHeader(e,t)},g.prototype.getAllResponseHeaders=function(){return null!=this._xhr.getAllResponseHeaders&&this._xhr.getAllResponseHeaders()||""},g.prototype.send=function(){if("ontimeout"in r.prototype&&("sendAsBinary"in r.prototype||"mozAnon"in r.prototype)||null==s||null==s.readyState||"complete"===s.readyState){var e=this._xhr;"withCredentials"in e&&(e.withCredentials=this.withCredentials);try{e.send(void 0)}catch(e){throw e}}else{var i=this;i._sendTimeout=t((function(){i._sendTimeout=0,i.send()}),4)}},y.prototype.get=function(e){return this._map[w(e)]},null!=r&&null==r.HEADERS_RECEIVED&&(r.HEADERS_RECEIVED=2),b.prototype.open=function(e,t,i,n,o,a,s){e.open("GET",o);var u=0;for(var d in e.onprogress=function(){var t=e.responseText.slice(u);u+=t.length,i(t)},e.onerror=function(e){e.preventDefault(),n(new Error("NetworkError"))},e.onload=function(){n(null)},e.onabort=function(){n(null)},e.onreadystatechange=function(){if(e.readyState===r.HEADERS_RECEIVED){var i=e.status,n=e.statusText,o=e.getResponseHeader("Content-Type"),a=e.getAllResponseHeaders();t(i,n,o,new y(a))}},e.withCredentials=a,s)Object.prototype.hasOwnProperty.call(s,d)&&e.setRequestHeader(d,s[d]);return e.send(),e},O.prototype.get=function(e){return this._headers.get(e)},S.prototype.open=function(e,t,i,r,n,o,a){var s=null,l=new p,c=l.signal,f=new h;return d(n,{headers:a,credentials:o?"include":"same-origin",signal:c,cache:"no-store"}).then((function(e){return s=e.body.getReader(),t(e.status,e.statusText,e.headers.get("Content-Type"),new O(e.headers)),new u((function(e,t){var r=function(){s.read().then((function(t){if(t.done)e(void 0);else{var n=f.decode(t.value,{stream:!0});i(n),r()}})).catch((function(e){t(e)}))};r()}))})).catch((function(e){return"AbortError"===e.name?void 0:e})).then((function(e){r(e)})),{abort:function(){null!=s&&s.cancel(),l.abort()}}},E.prototype.dispatchEvent=function(e){e.target=this;var t=this._listeners[e.type];if(null!=t)for(var i=t.length,r=0;r<i;r+=1){var n=t[r];try{"function"==typeof n.handleEvent?n.handleEvent(e):n.call(this,e)}catch(e){T(e)}}},E.prototype.addEventListener=function(e,t){e=String(e);var i=this._listeners,r=i[e];null==r&&(i[e]=r=[]);for(var n=!1,o=0;o<r.length;o+=1)r[o]===t&&(n=!0);n||r.push(t)},E.prototype.removeEventListener=function(e,t){e=String(e);var i=this._listeners,r=i[e];if(null!=r){for(var n=[],o=0;o<r.length;o+=1)r[o]!==t&&n.push(r[o]);0===n.length?delete i[e]:i[e]=n}},M.prototype=Object.create(P.prototype),x.prototype=Object.create(P.prototype),D.prototype=Object.create(P.prototype);var z=/^text\/event\-stream(;.*)?$/i,j=function(e,t){var i=null==e?t:parseInt(e,10);return i!=i&&(i=t),W(i)},W=function(e){return Math.min(Math.max(e,1e3),18e6)},L=function(e,t,i){try{"function"==typeof t&&t.call(e,i)}catch(e){T(e)}};function H(e,o){E.call(this),o=o||{},this.onopen=void 0,this.onmessage=void 0,this.onerror=void 0,this.url=void 0,this.readyState=void 0,this.withCredentials=void 0,this.headers=void 0,this._close=void 0,function(e,o,a){o=String(o);var s=Boolean(a.withCredentials),u=a.lastEventIdQueryParameterName||"lastEventId",d=W(1e3),l=j(a.heartbeatTimeout,45e3),h="",c=d,p=!1,f=0,m=a.headers||{},v=a.Transport,w=A&&null==v?void 0:new g(null!=v?new v:null!=r&&"withCredentials"in r.prototype||null==n?new r:new n),y=null!=v&&"string"!=typeof v?new v:null==w?new S:new b,O=void 0,E=0,C=-1,k="",T="",P="",H="",F=0,B=0,I=0,R=function(t,i,r,n){if(0===C)if(200===t&&null!=r&&z.test(r)){C=1,p=Date.now(),c=d,e.readyState=1;var o=new x("open",{status:t,statusText:i,headers:n});e.dispatchEvent(o),L(e,e.onopen,o)}else{var a="";200!==t?(i&&(i=i.replace(/\s+/g," ")),a="EventSource's response has a status "+t+" "+i+" that is not 200. Aborting the connection."):a="EventSource's response has a Content-Type specifying an unsupported type: "+(null==r?"-":r.replace(/\s+/g," "))+". Aborting the connection.",_(),o=new x("error",{status:t,statusText:i,headers:n}),e.dispatchEvent(o),L(e,e.onerror,o),console.error(a)}},q=function(r){if(1===C){for(var n=-1,o=0;o<r.length;o+=1)(u=r.charCodeAt(o))!=="\n".charCodeAt(0)&&u!=="\r".charCodeAt(0)||(n=o);var a=(-1!==n?H:"")+r.slice(0,n+1);H=(-1===n?H:"")+r.slice(n+1),""!==r&&(p=Date.now(),f+=r.length);for(var s=0;s<a.length;s+=1){var u=a.charCodeAt(s);if(-1===F&&u==="\n".charCodeAt(0))F=0;else if(-1===F&&(F=0),u==="\r".charCodeAt(0)||u==="\n".charCodeAt(0)){if(0!==F){1===F&&(I=s+1);var m=a.slice(B,I-1),v=a.slice(I+(I<s&&a.charCodeAt(I)===" ".charCodeAt(0)?1:0),s);"data"===m?(k+="\n",k+=v):"id"===m?T=v:"event"===m?P=v:"retry"===m?(d=j(v,d),c=d):"heartbeatTimeout"===m&&(l=j(v,l),0!==E&&(i(E),E=t((function(){$()}),l)))}if(0===F){if(""!==k){h=T,""===P&&(P="message");var g=new M(P,{data:k.slice(1),lastEventId:T});if(e.dispatchEvent(g),"open"===P?L(e,e.onopen,g):"message"===P?L(e,e.onmessage,g):"error"===P&&L(e,e.onerror,g),2===C)return}k="",P=""}F=u==="\r".charCodeAt(0)?-1:0}else 0===F&&(B=s,F=1),1===F?u===":".charCodeAt(0)&&(I=s+1,F=2):2===F&&(F=3)}}},V=function(r){if(1===C||0===C){C=-1,0!==E&&(i(E),E=0),E=t((function(){$()}),c),c=W(Math.min(16*d,2*c)),e.readyState=0;var n=new D("error",{error:r});e.dispatchEvent(n),L(e,e.onerror,n),null!=r&&console.error(r)}},_=function(){C=2,null!=O&&(O.abort(),O=void 0),0!==E&&(i(E),E=0),e.readyState=2},$=function(){if(E=0,-1===C){p=!1,f=0,E=t((function(){$()}),l),C=0,k="",P="",T=h,H="",B=0,I=0,F=0;var i=o;if("data:"!==o.slice(0,5)&&"blob:"!==o.slice(0,5)&&""!==h){var r=o.indexOf("?");i=-1===r?o:o.slice(0,r+1)+o.slice(r+1).replace(/(?:^|&)([^=&]*)(?:=[^&]*)?/g,(function(e,t){return t===u?"":e})),i+=(-1===o.indexOf("?")?"?":"&")+u+"="+encodeURIComponent(h)}var n=e.withCredentials,a={Accept:"text/event-stream"},s=e.headers;if(null!=s)for(var d in s)Object.prototype.hasOwnProperty.call(s,d)&&(a[d]=s[d]);try{O=y.open(w,R,q,V,i,n,a)}catch(e){throw _(),e}}else if(p||null==O){var c=Math.max((p||Date.now())+l-Date.now(),1);p=!1,E=t((function(){$()}),c)}else V(new Error("No activity within "+l+" milliseconds. "+(0===C?"No response received.":f+" chars received.")+" Reconnecting.")),null!=O&&(O.abort(),O=void 0)};e.url=o,e.readyState=0,e.withCredentials=s,e.headers=m,e._close=_,$()}(this,e,o)}var A=null!=d&&null!=l&&"body"in l.prototype;(H.prototype=Object.create(E.prototype)).CONNECTING=0,H.prototype.OPEN=1,H.prototype.CLOSED=2,H.prototype.close=function(){this._close()},H.CONNECTING=0,H.OPEN=1,H.CLOSED=2,H.prototype.withCredentials=void 0;var F,B=a;null==r||null!=a&&"withCredentials"in a.prototype||(B=H),F=function(e){e.EventSourcePolyfill=H,e.NativeEventSource=a,e.EventSource=B}(k),void 0!==F&&(C.exports=F)}("undefined"==typeof globalThis?"undefined"!=typeof window?window:"undefined"!=typeof self?self:v:globalThis);const P="user-deposit-withdrawal",M=["mm-hcback-to-merchant","mm-hc-back-tomerchant","mm-hc-sports","mm-hc-casino","mm-hc-contact","mm-wm-hc-init-deposit","mm-wm-hc-init-deposit-quick"],x="TWO_FACTOR_AUTH_NOTIFICATION",D="MMFE:setQuickDepositHeight",z="MMFE:setIFrameHeight",j="MMFE:selectedPaymentMethod",W="MMFE:proceedPayment",L="MMFE:cancelPayment",H="MMFE:ResetOTP",A=()=>{},F={PROCEED:{[W]:"true"},CANCEL:{[L]:"true"},RESET:{[H]:"true"},PROCEED_FALSE:{[W]:"false"}};w.extend(E);const B=class{constructor(t){var i;e(this,t),this.sseStream=null,this.selectedPaymentMethod=null,this.sseReconnectAttempts=0,this.sseReconnectTimer=null,this.sseShouldStayConnected=!1,this.SSE_MAX_RECONNECT_ATTEMPTS=5,this.SSE_RECONNECT_DELAY_BASE_MS=1e3,this.bindedHandler=this.handleMessage.bind(this),this.userAgent=window.navigator.userAgent,this.isMobile=!!((i=this.userAgent).toLowerCase().match(/android/i)||i.toLowerCase().match(/blackberry|bb/i)||i.toLowerCase().match(/iphone|ipad|ipod/i)||i.toLowerCase().match(/windows phone|windows mobile|iemobile|wpdesktop/i)),this.errorCodes=["21123","21122","21121"],this.toggleScreen=()=>{window.postMessage({type:"PlayerAccountMenuActive",isMobile:this.isMobile},window.location.href)},this.mbSource=void 0,this.clientStyling="",this.clientStylingUrl="",this.translationUrl="",this.endpoint=void 0,this.type=void 0,this.channel=void 0,this.language=void 0,this.productType="",this.userId=void 0,this.session=void 0,this.successUrl=void 0,this.cancelUrl=void 0,this.failUrl=void 0,this.sportsUrl=void 0,this.casinoUrl=void 0,this.contactUrl=void 0,this.depositUrl=void 0,this.currency="",this.showBonusSelectionInput="true",this.isShortCashier=!1,this.homeUrl=void 0,this.beforeRedirect=A,this.forwardCashierRedirects=!1,this.enableStepUpAuth=!1,this.dynamicHeight=void 0,this.cashierInfoUrl=void 0}get typeParameter(){return"deposit"===this.type?"Deposit":"withdraw"===this.type?"Withdraw":void 0}handleClientStylingChange(e,t){e!=t&&a(this.stylingContainer,this.clientStyling)}handleClientStylingChangeURL(e,t){e!=t&&this.clientStylingUrl&&s(this.stylingContainer,this.clientStylingUrl)}async componentWillLoad(){var e;this.translationUrl&&await(e=this.translationUrl,new Promise((t=>{fetch(e).then((e=>e.json())).then((e=>{Object.keys(e).forEach((t=>{for(let i in e[t])f[t][i]=e[t][i]})),t(!0)}))}))),await this.loadWidget()}componentDidLoad(){this.stylingContainer&&(null!=window.emMessageBus?u(this.stylingContainer,`${this.mbSource}.Style`,this.stylingSubscription):(this.clientStyling&&a(this.stylingContainer,this.clientStyling),this.clientStylingUrl&&s(this.stylingContainer,this.clientStylingUrl))),window.addEventListener("message",this.bindedHandler,!1)}disconnectedCallback(){window.removeEventListener("message",this.bindedHandler,!1),this.stylingSubscription&&this.stylingSubscription.unsubscribe(),this.closeSSEStream()}render(){return t(n,{key:"c6ee3b34fc4ef7174b2ff07ff246b4d38f8a4cf3"},this.enableStepUpAuth&&t("player-step-up-auth",{key:"dfaf2909e9f1028b9fd740f0fe612b0a82a30d57",endpoint:this.endpoint,userSession:this.session,language:this.language,"client-styling-url":this.clientStylingUrl,"translation-url":this.translationUrl}),t("div",{key:"70866c997fd1430dc827dac013fe5eeb5e205aa6",ref:e=>this.stylingContainer=e,class:""},t("div",{key:"f22a066bded11894ecc6b40452e91408bfaba461",class:"DepositWithdrawalWrapper "+(this.isShortCashier?"ShortCashier":"")},!(this.isMobile&&!this.isShortCashier)&&t("h2",{key:"e16eff42a179895d192584f51bdcb01cfb940911",class:"CategoryTitle"},m("Withdraw"===this.typeParameter?"Withdraw":"Deposit",this.language)),t("div",{key:"be8524a9a7a7f9f7735fd8703563159e207901c4",style:{marginTop:this.isShortCashier?"30px":"0"}},this.isMobile&&!this.isShortCashier?t("div",{class:"MenuReturnButton",onClick:this.toggleScreen},t("svg",{xmlns:"http://www.w3.org/2000/svg",width:"15",height:"15",viewBox:"0 0 15 15"},t("defs",null),t("g",{transform:"translate(-20 -158)"},t("g",{transform:"translate(20 158)"},t("path",{class:"aaa",d:"M7.5,0,6.136,1.364,11.3,6.526H0V8.474H11.3L6.136,13.636,7.5,15,15,7.5Z",transform:"translate(15 15) rotate(180)"})))),t("h2",{class:"CategoryTitleMobile"},m("Withdraw"===this.typeParameter?"Withdraw":"Deposit",this.language))):null),this.cashierInfoUrl?t("iframe",{ref:e=>this.cashierIframeRef=e,width:"100%",allow:"payment",height:this.dynamicHeight,src:this.cashierInfoUrl}):t("h3",{innerHTML:m("deposit"===this.type?"denyDeposit":"denyWithdrawal",this.language),class:"ErrorMessage"}))))}async loadWidget(){const e={Channel:this.channel,Type:this.typeParameter,SuccessUrl:this.successUrl,CancelUrl:this.cancelUrl,FailUrl:this.failUrl,Language:this.language,productType:this.productType,isShortCashier:this.isShortCashier,currency:this.currency,showBonusSelectionInput:this.showBonusSelectionInput};if(!Object.values(e).some((e=>void 0===e))&&this.endpoint)try{const t=`${this.endpoint}/v1/player/${this.userId}/payment/GetPaymentSession`,i=await fetch(t,{method:"POST",headers:{"X-Sessionid":this.session,"Content-Type":"application/json","X-Client-Request-Timestamp":w.utc().format("YYYY-MM-DD HH:mm:ss.SSS")},body:JSON.stringify(e)});if(!i.ok){const e=await i.text();throw new Error(e)}const r=await i.json();if(r.CashierInfo)this.cashierInfoUrl=r.CashierInfo.Url;else{let e;if(r.ResponseMessage){let t=this.errorCodes.find((e=>r.ResponseMessage.includes(e)))||null;e=m(t?`errorCode${t}`:"notFoundErrorCode",this.language)}else e=m("deposit"===this.type?"denyDeposit":"denyWithdrawal",this.language);window.postMessage({type:"DenyDepositOrWithdrawal",data:{type:"error",message:e}},window.location.href)}}catch(e){console.error(e)}}handleEnableStepUpAuthChange(e){!e&&this.sseStream&&this.closeSSEStream()}handleMessage(e){const t=this.extractPayload(e);if(!t)return;this.applyLayoutHints(t);const i=this.extractCashierRedirectReason(t);if(!i)return;if(this.emitForwardedRedirect(e,i))return;const r=this.resolveRedirectPlan(i);r&&this.doRedirect(r.reason,r.targetUrl)}extractCashierRedirectReason(e){return"string"==typeof(null==e?void 0:e.type)&&M.includes(e.type)?e.type:"string"==typeof(null==e?void 0:e.redirect)&&M.includes(e.redirect)?e.redirect:void 0}extractPayload(e){if((null==e?void 0:e.data)&&"object"==typeof e.data)return e.data}applyLayoutHints(e){if("true"===e["MMFE:openFullCashier"]&&(window.postMessage({type:"GoToDeposit"},window.location.href),window.postMessage({type:"CloseShortCashier"},window.location.href)),e[D]&&this.isShortCashier&&(this.dynamicHeight=e[D].toString()+"px"),e[z]&&(this.dynamicHeight=e[z].toString()+"px"),e[j]){const t=e[j];this.selectedPaymentMethod!==t&&(this.selectedPaymentMethod=t,this.sseStream&&this.closeSSEStream(),"withdraw"===this.type&&(e=>{if(!e||"string"!=typeof e)return!1;const t=e.toLowerCase();return t.includes("voucher")||t.includes("offline")})(t)&&this.enableStepUpAuth&&this.initializeSSE())}e["MMFE:vendorRedirect"]&&window.postMessage({type:`${P}:mm-open-vendor`,url:e["MMFE:vendorRedirect"]},window.location.href)}resolveRedirectPlan(e){switch(e){case"mm-hcback-to-merchant":case"mm-hc-back-tomerchant":return this.buildRedirectPlan(e,this.homeUrl);case"mm-hc-sports":return this.buildRedirectPlan(e,this.sportsUrl);case"mm-hc-casino":return this.buildRedirectPlan(window.location.href,this.casinoUrl);case"mm-hc-contact":return window.postMessage({type:"CloseShortCashier"},window.location.href),this.buildRedirectPlan(window.location.href,this.contactUrl);case"mm-wm-hc-init-deposit":case"mm-wm-hc-init-deposit-quick":return window.postMessage({type:"CloseShortCashier"},window.location.href),this.buildRedirectPlan(window.location.href,this.depositUrl);default:return}}buildRedirectPlan(e,t){if(t)return{reason:e,targetUrl:t}}emitForwardedRedirect(e,t){return!!this.forwardCashierRedirects&&(window.postMessage({type:`${P}:${t}`,originalType:t,payload:e.data,origin:e.origin},window.location.href),!0)}doRedirect(e,t){const i={reason:e,url:t,cancel:!1};this.beforeRedirect(i),i.cancel||(window.location.href=i.url?i.url:"/")}initializeSSE(){this.sseStream&&this.sseStream.readyState!==T.exports.EventSourcePolyfill.CLOSED||(this.endpoint&&this.userId&&this.session&&"withdraw"===this.type?(this.sseShouldStayConnected=!0,this.sseReconnectAttempts=0,this.connectSSE()):console.warn("[SSE] initializeSSE - missing required props, cannot initialize"))}connectSSE(){if(this.sseStream){try{this.sseStream.close()}catch(e){console.warn("[SSE] closeSSEStream - error closing stream:",e)}this.sseStream=null}if(this.sseShouldStayConnected)try{const e=new URL(`/v1/player/${this.userId}/information/updates`,this.endpoint);this.sseStream=new T.exports.EventSourcePolyfill(e,{headers:{accept:"text/event-stream","X-SessionId":this.session}}),this.sseStream.addEventListener("open",this.handleSSEOpen.bind(this)),this.sseStream.addEventListener("message",this.handleSSEMessage.bind(this)),this.sseStream.addEventListener("error",this.handleSSEError.bind(this))}catch(e){console.error("[SSE] connectSSE - Failed to create EventSourcePolyfill:",e),this.scheduleReconnect()}}handleSSEOpen(e){console.info("[SSE] handleSSEOpen - connection opened successfully"),this.sseReconnectAttempts=0,this.sseReconnectTimer&&(clearTimeout(this.sseReconnectTimer),this.sseReconnectTimer=null)}handleSSEMessage(e){if(this.enableStepUpAuth)try{const t=JSON.parse(e.data),i=t.type;if(i===x){const{body:{challengeId:e}={}}=t;e?this.triggerStepUpAuth(e):console.error(`${x} received but challengeId not found in body`)}else"SESSION_EXPIRATION"===i&&(console.info("[SSE] SESSION_EXPIRATION received, closing connection"),window.postMessage({type:"SessionExpiration",reason:"failed2FA"},window.location.href),this.closeSSEStream())}catch(e){console.error("Error parsing SSE message:",e)}}handleSSEError(e){console.warn("[SSE] connection error"),this.sseShouldStayConnected&&this.sseReconnectAttempts<this.SSE_MAX_RECONNECT_ATTEMPTS?this.scheduleReconnect():this.sseReconnectAttempts>=this.SSE_MAX_RECONNECT_ATTEMPTS&&(console.error("[SSE] handleSSEError - max reconnection attempts reached, giving up"),this.closeSSEStream())}scheduleReconnect(){if(!this.sseShouldStayConnected)return;this.sseReconnectTimer&&clearTimeout(this.sseReconnectTimer),this.sseReconnectAttempts++;const e=this.SSE_RECONNECT_DELAY_BASE_MS*Math.pow(2,this.sseReconnectAttempts-1);this.sseReconnectTimer=setTimeout((()=>{this.sseReconnectTimer=null,this.sseShouldStayConnected&&this.connectSSE()}),e)}closeSSEStream(){if(this.sseShouldStayConnected=!1,this.sseReconnectTimer&&(clearTimeout(this.sseReconnectTimer),this.sseReconnectTimer=null),this.sseStream){try{this.sseStream.close()}catch(e){console.warn("[SSE] closeSSEStream - error closing stream:",e)}this.sseStream=null}this.sseReconnectAttempts=0}triggerStepUpAuth(e){this.enableStepUpAuth&&window.dispatchEvent(new CustomEvent("stepUpAuthRequired",{detail:{"x-step-up-required":!0,"x-step-up-token":e,flow:"stateful"}}))}getCashierOrigin(){if(!this.cashierInfoUrl)return"*";try{return new URL(this.cashierInfoUrl).origin}catch(e){return console.warn("Failed to parse cashier URL origin, using wildcard:",e),"*"}}sendMessageToCashier(e){var t;if(!(null===(t=this.cashierIframeRef)||void 0===t?void 0:t.contentWindow))return void console.warn("Cashier iframe not available for postMessage");const i=this.getCashierOrigin();this.cashierIframeRef.contentWindow.postMessage(e,i)}handleOtpSuccess(){this.enableStepUpAuth&&(this.sendMessageToCashier(F.PROCEED),this.closeSSEStream())}handleManualClosePopup(){this.enableStepUpAuth&&(this.sendMessageToCashier(F.CANCEL),this.closeSSEStream())}handleOtpResendRequested(){this.enableStepUpAuth&&(window.dispatchEvent(new CustomEvent("closePopup")),this.sendMessageToCashier(F.RESET))}handleOtpSetTimeout(){this.enableStepUpAuth&&this.sendMessageToCashier(F.PROCEED_FALSE)}static get watchers(){return{clientStyling:["handleClientStylingChange"],clientStylingUrl:["handleClientStylingChangeURL"],enableStepUpAuth:["handleEnableStepUpAuthChange"]}}};B.style=":host {\n font: inherit;\n display: block;\n height: 100%;\n container-type: inline-size;\n}\n\n.DepositWithdrawalContainer {\n container-type: inline-size;\n container-name: deposit-container;\n}\n\n.CategoryTitle {\n font-size: var(--emw--font-size-x-large, 26px);\n color: var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));\n}\n\n.MenuReturnButton {\n font: inherit;\n color: var(--emw--color-gray-300, #58586B);\n display: inline-flex;\n align-items: center;\n column-gap: 10px;\n margin-bottom: 10px;\n}\n.MenuReturnButton svg {\n fill: var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));\n}\n.MenuReturnButton h2.CategoryTitleMobile {\n font-size: 16px;\n color: var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));\n}\n\n.ErrorMessage {\n color: var(--emw--pam-color-typography, var(--emw--color-typography, #FFFFFF));\n}\n\n.DepositWithdrawalWrapper {\n width: 100%;\n margin: 0;\n padding: 50px;\n box-sizing: border-box;\n overflow-y: scroll;\n}\n.DepositWithdrawalWrapper iframe {\n border-width: 0;\n}\n\n.ShortCashier.DepositWithdrawalWrapper {\n height: 500px;\n}\n.ShortCashier.CategoryTitle.CategoryTitle {\n margin-right: 20px;\n padding-top: 20px;\n color: var(--emw--color-black, #000000);\n}\n.ShortCashier .ErrorMessage {\n margin: auto;\n width: 90%;\n margin-top: 70px;\n text-align: center;\n color: var(--emw--color-black, #000000);\n}\n\n@container (max-width: 768px) {\n .DepositWithdrawalWrapper {\n padding: 20px 15px;\n }\n .DepositWithdrawalWrapper:not(.ShortCashier) {\n overflow: visible;\n }\n}";export{c as player_step_up_auth,B as user_deposit_withdrawal}
|
|
6
|
+
*/C=T,k=T.exports,function(e){var t=e.setTimeout,i=e.clearTimeout,r=e.XMLHttpRequest,n=e.XDomainRequest,o=e.ActiveXObject,a=e.EventSource,s=e.document,u=e.Promise,d=e.fetch,l=e.Response,h=e.TextDecoder,c=e.TextEncoder,p=e.AbortController;if("undefined"==typeof window||void 0===s||"readyState"in s||null!=s.body||(s.readyState="loading",window.addEventListener("load",(function(){s.readyState="complete"}),!1)),null==r&&null!=o&&(r=function(){return new o("Microsoft.XMLHTTP")}),null==Object.create&&(Object.create=function(e){function t(){}return t.prototype=e,new t}),Date.now||(Date.now=function(){return(new Date).getTime()}),null==p){var f=d;d=function(e,t){var i=t.signal;return f(e,{headers:t.headers,credentials:t.credentials,cache:t.cache}).then((function(e){var t=e.body.getReader();return i._reader=t,i._aborted&&i._reader.cancel(),{status:e.status,statusText:e.statusText,headers:e.headers,body:{getReader:function(){return t}}}}))},p=function(){this.signal={_reader:null,_aborted:!1},this.abort=function(){null!=this.signal._reader&&this.signal._reader.cancel(),this.signal._aborted=!0}}}function m(){this.bitsNeeded=0,this.codePoint=0}m.prototype.decode=function(e){function t(e,t,i){if(1===i)return e>=128>>t&&e<<t<=2047;if(2===i)return e>=2048>>t&&e<<t<=55295||e>=57344>>t&&e<<t<=65535;if(3===i)return e>=65536>>t&&e<<t<=1114111;throw new Error}function i(e,t){if(6===e)return t>>6>15?3:t>31?2:1;if(12===e)return t>15?3:2;if(18===e)return 3;throw new Error}for(var r=65533,n="",o=this.bitsNeeded,a=this.codePoint,s=0;s<e.length;s+=1){var u=e[s];0!==o&&(u<128||u>191||!t(a<<6|63&u,o-6,i(o,a)))&&(o=0,a=r,n+=String.fromCharCode(a)),0===o?(u>=0&&u<=127?(o=0,a=u):u>=192&&u<=223?(o=6,a=31&u):u>=224&&u<=239?(o=12,a=15&u):u>=240&&u<=247?(o=18,a=7&u):(o=0,a=r),0===o||t(a,o,i(o,a))||(o=0,a=r)):(o-=6,a=a<<6|63&u),0===o&&(a<=65535?n+=String.fromCharCode(a):(n+=String.fromCharCode(55296+(a-65535-1>>10)),n+=String.fromCharCode(56320+(a-65535-1&1023))))}return this.bitsNeeded=o,this.codePoint=a,n},null!=h&&null!=c&&function(){try{return"test"===(new h).decode((new c).encode("test"),{stream:!0})}catch(e){console.debug("TextDecoder does not support streaming option. Using polyfill instead: "+e)}return!1}()||(h=m);var v=function(){};function g(e){this.withCredentials=!1,this.readyState=0,this.status=0,this.statusText="",this.responseText="",this.onprogress=v,this.onload=v,this.onerror=v,this.onreadystatechange=v,this._contentType="",this._xhr=e,this._sendTimeout=0,this._abort=v}function w(e){return e.replace(/[A-Z]/g,(function(e){return String.fromCharCode(e.charCodeAt(0)+32)}))}function y(e){for(var t=Object.create(null),i=e.split("\r\n"),r=0;r<i.length;r+=1){var n=i[r].split(": "),o=n.shift(),a=n.join(": ");t[w(o)]=a}this._map=t}function b(){}function O(e){this._headers=e}function S(){}function E(){this._listeners=Object.create(null)}function T(e){t((function(){throw e}),0)}function P(e){this.type=e,this.target=void 0}function M(e,t){P.call(this,e),this.data=t.data,this.lastEventId=t.lastEventId}function x(e,t){P.call(this,e),this.status=t.status,this.statusText=t.statusText,this.headers=t.headers}function D(e,t){P.call(this,e),this.error=t.error}g.prototype.open=function(e,n){this._abort(!0);var o=this,a=this._xhr,s=1,u=0;this._abort=function(e){0!==o._sendTimeout&&(i(o._sendTimeout),o._sendTimeout=0),1!==s&&2!==s&&3!==s||(s=4,a.onload=v,a.onerror=v,a.onabort=v,a.onprogress=v,a.onreadystatechange=v,a.abort(),0!==u&&(i(u),u=0),e||(o.readyState=4,o.onabort(null),o.onreadystatechange())),s=0};var d=function(){if(1===s){var e=0,t="",i=void 0;if("contentType"in a)e=200,t="OK",i=a.contentType;else try{e=a.status,t=a.statusText,i=a.getResponseHeader("Content-Type")}catch(r){e=0,t="",i=void 0}0!==e&&(s=2,o.readyState=2,o.status=e,o.statusText=t,o._contentType=i,o.onreadystatechange())}},l=function(){if(d(),2===s||3===s){s=3;var e="";try{e=a.responseText}catch(e){}o.readyState=3,o.responseText=e,o.onprogress()}},h=function(e,t){if(null!=t&&null!=t.preventDefault||(t={preventDefault:v}),l(),1===s||2===s||3===s){if(s=4,0!==u&&(i(u),u=0),o.readyState=4,"load"===e)o.onload(t);else if("error"===e)o.onerror(t);else{if("abort"!==e)throw new TypeError;o.onabort(t)}o.onreadystatechange()}},c=function(){u=t((function(){c()}),500),3===a.readyState&&l()};"onload"in a&&(a.onload=function(e){h("load",e)}),"onerror"in a&&(a.onerror=function(e){h("error",e)}),"onabort"in a&&(a.onabort=function(e){h("abort",e)}),"onprogress"in a&&(a.onprogress=l),"onreadystatechange"in a&&(a.onreadystatechange=function(e){!function(e){null!=a&&(4===a.readyState?"onload"in a&&"onerror"in a&&"onabort"in a||h(""===a.responseText?"error":"load",e):3===a.readyState?"onprogress"in a||l():2===a.readyState&&d())}(e)}),!("contentType"in a)&&"ontimeout"in r.prototype||(n+=(-1===n.indexOf("?")?"?":"&")+"padding=true"),a.open(e,n,!0),"readyState"in a&&(u=t((function(){c()}),0))},g.prototype.abort=function(){this._abort(!1)},g.prototype.getResponseHeader=function(){return this._contentType},g.prototype.setRequestHeader=function(e,t){var i=this._xhr;"setRequestHeader"in i&&i.setRequestHeader(e,t)},g.prototype.getAllResponseHeaders=function(){return null!=this._xhr.getAllResponseHeaders&&this._xhr.getAllResponseHeaders()||""},g.prototype.send=function(){if("ontimeout"in r.prototype&&("sendAsBinary"in r.prototype||"mozAnon"in r.prototype)||null==s||null==s.readyState||"complete"===s.readyState){var e=this._xhr;"withCredentials"in e&&(e.withCredentials=this.withCredentials);try{e.send(void 0)}catch(e){throw e}}else{var i=this;i._sendTimeout=t((function(){i._sendTimeout=0,i.send()}),4)}},y.prototype.get=function(e){return this._map[w(e)]},null!=r&&null==r.HEADERS_RECEIVED&&(r.HEADERS_RECEIVED=2),b.prototype.open=function(e,t,i,n,o,a,s){e.open("GET",o);var u=0;for(var d in e.onprogress=function(){var t=e.responseText.slice(u);u+=t.length,i(t)},e.onerror=function(e){e.preventDefault(),n(new Error("NetworkError"))},e.onload=function(){n(null)},e.onabort=function(){n(null)},e.onreadystatechange=function(){if(e.readyState===r.HEADERS_RECEIVED){var i=e.status,n=e.statusText,o=e.getResponseHeader("Content-Type"),a=e.getAllResponseHeaders();t(i,n,o,new y(a))}},e.withCredentials=a,s)Object.prototype.hasOwnProperty.call(s,d)&&e.setRequestHeader(d,s[d]);return e.send(),e},O.prototype.get=function(e){return this._headers.get(e)},S.prototype.open=function(e,t,i,r,n,o,a){var s=null,l=new p,c=l.signal,f=new h;return d(n,{headers:a,credentials:o?"include":"same-origin",signal:c,cache:"no-store"}).then((function(e){return s=e.body.getReader(),t(e.status,e.statusText,e.headers.get("Content-Type"),new O(e.headers)),new u((function(e,t){var r=function(){s.read().then((function(t){if(t.done)e(void 0);else{var n=f.decode(t.value,{stream:!0});i(n),r()}})).catch((function(e){t(e)}))};r()}))})).catch((function(e){return"AbortError"===e.name?void 0:e})).then((function(e){r(e)})),{abort:function(){null!=s&&s.cancel(),l.abort()}}},E.prototype.dispatchEvent=function(e){e.target=this;var t=this._listeners[e.type];if(null!=t)for(var i=t.length,r=0;r<i;r+=1){var n=t[r];try{"function"==typeof n.handleEvent?n.handleEvent(e):n.call(this,e)}catch(e){T(e)}}},E.prototype.addEventListener=function(e,t){e=String(e);var i=this._listeners,r=i[e];null==r&&(i[e]=r=[]);for(var n=!1,o=0;o<r.length;o+=1)r[o]===t&&(n=!0);n||r.push(t)},E.prototype.removeEventListener=function(e,t){e=String(e);var i=this._listeners,r=i[e];if(null!=r){for(var n=[],o=0;o<r.length;o+=1)r[o]!==t&&n.push(r[o]);0===n.length?delete i[e]:i[e]=n}},M.prototype=Object.create(P.prototype),x.prototype=Object.create(P.prototype),D.prototype=Object.create(P.prototype);var z=/^text\/event\-stream(;.*)?$/i,j=function(e,t){var i=null==e?t:parseInt(e,10);return i!=i&&(i=t),W(i)},W=function(e){return Math.min(Math.max(e,1e3),18e6)},L=function(e,t,i){try{"function"==typeof t&&t.call(e,i)}catch(e){T(e)}};function H(e,o){E.call(this),o=o||{},this.onopen=void 0,this.onmessage=void 0,this.onerror=void 0,this.url=void 0,this.readyState=void 0,this.withCredentials=void 0,this.headers=void 0,this._close=void 0,function(e,o,a){o=String(o);var s=Boolean(a.withCredentials),u=a.lastEventIdQueryParameterName||"lastEventId",d=W(1e3),l=j(a.heartbeatTimeout,45e3),h="",c=d,p=!1,f=0,m=a.headers||{},v=a.Transport,w=A&&null==v?void 0:new g(null!=v?new v:null!=r&&"withCredentials"in r.prototype||null==n?new r:new n),y=null!=v&&"string"!=typeof v?new v:null==w?new S:new b,O=void 0,E=0,C=-1,k="",T="",P="",H="",F=0,B=0,I=0,R=function(t,i,r,n){if(0===C)if(200===t&&null!=r&&z.test(r)){C=1,p=Date.now(),c=d,e.readyState=1;var o=new x("open",{status:t,statusText:i,headers:n});e.dispatchEvent(o),L(e,e.onopen,o)}else{var a="";200!==t?(i&&(i=i.replace(/\s+/g," ")),a="EventSource's response has a status "+t+" "+i+" that is not 200. Aborting the connection."):a="EventSource's response has a Content-Type specifying an unsupported type: "+(null==r?"-":r.replace(/\s+/g," "))+". Aborting the connection.",_(),o=new x("error",{status:t,statusText:i,headers:n}),e.dispatchEvent(o),L(e,e.onerror,o),console.error(a)}},q=function(r){if(1===C){for(var n=-1,o=0;o<r.length;o+=1)(u=r.charCodeAt(o))!=="\n".charCodeAt(0)&&u!=="\r".charCodeAt(0)||(n=o);var a=(-1!==n?H:"")+r.slice(0,n+1);H=(-1===n?H:"")+r.slice(n+1),""!==r&&(p=Date.now(),f+=r.length);for(var s=0;s<a.length;s+=1){var u=a.charCodeAt(s);if(-1===F&&u==="\n".charCodeAt(0))F=0;else if(-1===F&&(F=0),u==="\r".charCodeAt(0)||u==="\n".charCodeAt(0)){if(0!==F){1===F&&(I=s+1);var m=a.slice(B,I-1),v=a.slice(I+(I<s&&a.charCodeAt(I)===" ".charCodeAt(0)?1:0),s);"data"===m?(k+="\n",k+=v):"id"===m?T=v:"event"===m?P=v:"retry"===m?(d=j(v,d),c=d):"heartbeatTimeout"===m&&(l=j(v,l),0!==E&&(i(E),E=t((function(){$()}),l)))}if(0===F){if(""!==k){h=T,""===P&&(P="message");var g=new M(P,{data:k.slice(1),lastEventId:T});if(e.dispatchEvent(g),"open"===P?L(e,e.onopen,g):"message"===P?L(e,e.onmessage,g):"error"===P&&L(e,e.onerror,g),2===C)return}k="",P=""}F=u==="\r".charCodeAt(0)?-1:0}else 0===F&&(B=s,F=1),1===F?u===":".charCodeAt(0)&&(I=s+1,F=2):2===F&&(F=3)}}},V=function(r){if(1===C||0===C){C=-1,0!==E&&(i(E),E=0),E=t((function(){$()}),c),c=W(Math.min(16*d,2*c)),e.readyState=0;var n=new D("error",{error:r});e.dispatchEvent(n),L(e,e.onerror,n),null!=r&&console.error(r)}},_=function(){C=2,null!=O&&(O.abort(),O=void 0),0!==E&&(i(E),E=0),e.readyState=2},$=function(){if(E=0,-1===C){p=!1,f=0,E=t((function(){$()}),l),C=0,k="",P="",T=h,H="",B=0,I=0,F=0;var i=o;if("data:"!==o.slice(0,5)&&"blob:"!==o.slice(0,5)&&""!==h){var r=o.indexOf("?");i=-1===r?o:o.slice(0,r+1)+o.slice(r+1).replace(/(?:^|&)([^=&]*)(?:=[^&]*)?/g,(function(e,t){return t===u?"":e})),i+=(-1===o.indexOf("?")?"?":"&")+u+"="+encodeURIComponent(h)}var n=e.withCredentials,a={Accept:"text/event-stream"},s=e.headers;if(null!=s)for(var d in s)Object.prototype.hasOwnProperty.call(s,d)&&(a[d]=s[d]);try{O=y.open(w,R,q,V,i,n,a)}catch(e){throw _(),e}}else if(p||null==O){var c=Math.max((p||Date.now())+l-Date.now(),1);p=!1,E=t((function(){$()}),c)}else V(new Error("No activity within "+l+" milliseconds. "+(0===C?"No response received.":f+" chars received.")+" Reconnecting.")),null!=O&&(O.abort(),O=void 0)};e.url=o,e.readyState=0,e.withCredentials=s,e.headers=m,e._close=_,$()}(this,e,o)}var A=null!=d&&null!=l&&"body"in l.prototype;(H.prototype=Object.create(E.prototype)).CONNECTING=0,H.prototype.OPEN=1,H.prototype.CLOSED=2,H.prototype.close=function(){this._close()},H.CONNECTING=0,H.OPEN=1,H.CLOSED=2,H.prototype.withCredentials=void 0;var F,B=a;null==r||null!=a&&"withCredentials"in a.prototype||(B=H),F=function(e){e.EventSourcePolyfill=H,e.NativeEventSource=a,e.EventSource=B}(k),void 0!==F&&(C.exports=F)}("undefined"==typeof globalThis?"undefined"!=typeof window?window:"undefined"!=typeof self?self:v:globalThis);const P="user-deposit-withdrawal",M=["mm-hcback-to-merchant","mm-hc-back-tomerchant","mm-hc-sports","mm-hc-casino","mm-hc-contact","mm-wm-hc-init-deposit","mm-wm-hc-init-deposit-quick"],x="TWO_FACTOR_AUTH_NOTIFICATION",D="MMFE:setQuickDepositHeight",z="MMFE:setIFrameHeight",j="MMFE:selectedPaymentMethod",W="MMFE:proceedPayment",L="MMFE:cancelPayment",H="MMFE:ResetOTP",A=()=>{},F={PROCEED:{[W]:"true"},CANCEL:{[L]:"true"},RESET:{[H]:"true"},PROCEED_FALSE:{[W]:"false"}};w.extend(E);const B=class{constructor(t){var i;e(this,t),this.sseStream=null,this.selectedPaymentMethod=null,this.sseReconnectAttempts=0,this.sseReconnectTimer=null,this.sseShouldStayConnected=!1,this.SSE_MAX_RECONNECT_ATTEMPTS=5,this.SSE_RECONNECT_DELAY_BASE_MS=1e3,this.bindedHandler=this.handleMessage.bind(this),this.userAgent=window.navigator.userAgent,this.isMobile=!!((i=this.userAgent).toLowerCase().match(/android/i)||i.toLowerCase().match(/blackberry|bb/i)||i.toLowerCase().match(/iphone|ipad|ipod/i)||i.toLowerCase().match(/windows phone|windows mobile|iemobile|wpdesktop/i)),this.errorCodes=["21123","21122","21121","100003","100007","100020","100102","100103","11010","11020","11100","11204","11408","11505","11506","11601","11704","11754","11755","11772","11776","11778","11779","11780","11781","11802","12006","12126","12127","12135","12136","12137","12138","12139","12140","12502","12503","13501","13502","13503","13504","13505","13506","13507","13550","13555","13573","13575","14006","14007","14008","14009","14010","14011","21050","21051","21052","21054","21056","21070","21073","21074","21077","21079","21082","21083","21104","21105","21108","21116","21117","21202","21289","21292","21293","21294","21295","21296","21297","21298","21299","21301","21302","21303","21304","21305","21306","21307","21308","22007","22011","22012","22013","22014","22015","22016","22017","22018","22021","22022","22023","22024","23601","29107","30100","40003","40004","50000","50001","50002","50003","50004","50005","50006","50007","50008","50009","50010","50011","50012","50013","50014","50015","50100","50101","50102","50103","50104","50105","50106"],this.toggleScreen=()=>{window.postMessage({type:"PlayerAccountMenuActive",isMobile:this.isMobile},window.location.href)},this.mbSource=void 0,this.clientStyling="",this.clientStylingUrl="",this.translationUrl="",this.endpoint=void 0,this.type=void 0,this.channel=void 0,this.language=void 0,this.productType="",this.userId=void 0,this.session=void 0,this.successUrl=void 0,this.cancelUrl=void 0,this.failUrl=void 0,this.sportsUrl=void 0,this.casinoUrl=void 0,this.contactUrl=void 0,this.depositUrl=void 0,this.currency="",this.showBonusSelectionInput="true",this.isShortCashier=!1,this.homeUrl=void 0,this.beforeRedirect=A,this.forwardCashierRedirects=!1,this.enableStepUpAuth=!1,this.showApiErrorMessage=!1,this.dynamicHeight=void 0,this.cashierInfoUrl=void 0,this.errorMessage="",this.errorFromApi=!1}get typeParameter(){return"deposit"===this.type?"Deposit":"withdraw"===this.type?"Withdraw":void 0}handleClientStylingChange(e,t){e!=t&&a(this.stylingContainer,this.clientStyling)}handleClientStylingChangeURL(e,t){e!=t&&this.clientStylingUrl&&s(this.stylingContainer,this.clientStylingUrl)}async componentWillLoad(){var e;this.translationUrl&&await(e=this.translationUrl,new Promise((t=>{fetch(e).then((e=>e.json())).then((e=>{Object.keys(e).forEach((t=>{for(let i in e[t])f[t][i]=e[t][i]})),t(!0)}))}))),await this.loadWidget()}componentDidLoad(){this.stylingContainer&&(null!=window.emMessageBus?u(this.stylingContainer,`${this.mbSource}.Style`,this.stylingSubscription):(this.clientStyling&&a(this.stylingContainer,this.clientStyling),this.clientStylingUrl&&s(this.stylingContainer,this.clientStylingUrl))),window.addEventListener("message",this.bindedHandler,!1)}disconnectedCallback(){window.removeEventListener("message",this.bindedHandler,!1),this.stylingSubscription&&this.stylingSubscription.unsubscribe(),this.closeSSEStream()}render(){return t(n,{key:"338fa8bd00485e7d7c1a92ddbc7622e4eb6bd020"},this.enableStepUpAuth&&t("player-step-up-auth",{key:"b0076f39d95d35b3cae6d6bb0a039feb39764f47",endpoint:this.endpoint,userSession:this.session,language:this.language,"client-styling-url":this.clientStylingUrl,"translation-url":this.translationUrl}),t("div",{key:"00f02636ed279a41dd203bdaea54f41eacaa8f86",ref:e=>this.stylingContainer=e,class:""},t("div",{key:"120c160a3f0729e5aae360e9fc7b99e33c93e01c",class:"DepositWithdrawalWrapper "+(this.isShortCashier?"ShortCashier":"")},!(this.isMobile&&!this.isShortCashier)&&t("h2",{key:"664216161b01c6e49bc36b738eb02ae622eeda09",class:"CategoryTitle"},m("Withdraw"===this.typeParameter?"Withdraw":"Deposit",this.language)),t("div",{key:"f57113548723235044ac51485b37e2e9b6e3ee4c",style:{marginTop:this.isShortCashier?"30px":"0"}},this.isMobile&&!this.isShortCashier?t("div",{class:"MenuReturnButton",onClick:this.toggleScreen},t("svg",{xmlns:"http://www.w3.org/2000/svg",width:"15",height:"15",viewBox:"0 0 15 15"},t("defs",null),t("g",{transform:"translate(-20 -158)"},t("g",{transform:"translate(20 158)"},t("path",{class:"aaa",d:"M7.5,0,6.136,1.364,11.3,6.526H0V8.474H11.3L6.136,13.636,7.5,15,15,7.5Z",transform:"translate(15 15) rotate(180)"})))),t("h2",{class:"CategoryTitleMobile"},m("Withdraw"===this.typeParameter?"Withdraw":"Deposit",this.language))):null),this.cashierInfoUrl?t("iframe",{ref:e=>this.cashierIframeRef=e,width:"100%",allow:"payment",height:this.dynamicHeight,src:this.cashierInfoUrl}):this.errorFromApi?t("h3",{class:"ErrorMessage"},this.errorMessage):t("h3",{innerHTML:this.errorMessage||m("deposit"===this.type?"denyDeposit":"denyWithdrawal",this.language),class:"ErrorMessage"}))))}async loadWidget(){const e={Channel:this.channel,Type:this.typeParameter,SuccessUrl:this.successUrl,CancelUrl:this.cancelUrl,FailUrl:this.failUrl,Language:this.language,productType:this.productType,isShortCashier:this.isShortCashier,currency:this.currency,showBonusSelectionInput:this.showBonusSelectionInput};if(!Object.values(e).some((e=>void 0===e))&&this.endpoint)try{const t=`${this.endpoint}/v1/player/${this.userId}/payment/GetPaymentSession`,i=await fetch(t,{method:"POST",headers:{"X-Sessionid":this.session,"Content-Type":"application/json","X-Client-Request-Timestamp":w.utc().format("YYYY-MM-DD HH:mm:ss.SSS")},body:JSON.stringify(e)}),r=await i.json();if(!i.ok&&(console.error(r),!this.showApiErrorMessage))return;if(r.CashierInfo)this.cashierInfoUrl=r.CashierInfo.Url;else{let e;if(r.ResponseMessage){let t=this.errorCodes.find((e=>r.ResponseMessage.includes(e)))||null;const i=t?m(`errorCode${t}`,this.language):void 0;i?e=i:this.showApiErrorMessage?(e=r.ResponseMessage,this.errorFromApi=!0):e=m("notFoundErrorCode",this.language)}else e=m("deposit"===this.type?"denyDeposit":"denyWithdrawal",this.language);this.showApiErrorMessage&&(this.errorMessage=e),window.postMessage({type:"DenyDepositOrWithdrawal",data:{type:"error",message:e}},window.location.href)}}catch(e){console.error(e)}}handleEnableStepUpAuthChange(e){!e&&this.sseStream&&this.closeSSEStream()}handleMessage(e){const t=this.extractPayload(e);if(!t)return;this.applyLayoutHints(t);const i=this.extractCashierRedirectReason(t);if(!i)return;if(this.emitForwardedRedirect(e,i))return;const r=this.resolveRedirectPlan(i);r&&this.doRedirect(r.reason,r.targetUrl)}extractCashierRedirectReason(e){return"string"==typeof(null==e?void 0:e.type)&&M.includes(e.type)?e.type:"string"==typeof(null==e?void 0:e.redirect)&&M.includes(e.redirect)?e.redirect:void 0}extractPayload(e){if((null==e?void 0:e.data)&&"object"==typeof e.data)return e.data}applyLayoutHints(e){if("true"===e["MMFE:openFullCashier"]&&(window.postMessage({type:"GoToDeposit"},window.location.href),window.postMessage({type:"CloseShortCashier"},window.location.href)),e[D]&&this.isShortCashier&&(this.dynamicHeight=e[D].toString()+"px"),e[z]&&(this.dynamicHeight=e[z].toString()+"px"),e[j]){const t=e[j];this.selectedPaymentMethod!==t&&(this.selectedPaymentMethod=t,this.sseStream&&this.closeSSEStream(),"withdraw"===this.type&&(e=>{if(!e||"string"!=typeof e)return!1;const t=e.toLowerCase();return t.includes("voucher")||t.includes("offline")})(t)&&this.enableStepUpAuth&&this.initializeSSE())}e["MMFE:vendorRedirect"]&&window.postMessage({type:`${P}:mm-open-vendor`,url:e["MMFE:vendorRedirect"]},window.location.href)}resolveRedirectPlan(e){switch(e){case"mm-hcback-to-merchant":case"mm-hc-back-tomerchant":return this.buildRedirectPlan(e,this.homeUrl);case"mm-hc-sports":return this.buildRedirectPlan(e,this.sportsUrl);case"mm-hc-casino":return this.buildRedirectPlan(window.location.href,this.casinoUrl);case"mm-hc-contact":return window.postMessage({type:"CloseShortCashier"},window.location.href),this.buildRedirectPlan(window.location.href,this.contactUrl);case"mm-wm-hc-init-deposit":case"mm-wm-hc-init-deposit-quick":return window.postMessage({type:"CloseShortCashier"},window.location.href),this.buildRedirectPlan(window.location.href,this.depositUrl);default:return}}buildRedirectPlan(e,t){if(t)return{reason:e,targetUrl:t}}emitForwardedRedirect(e,t){return!!this.forwardCashierRedirects&&(window.postMessage({type:`${P}:${t}`,originalType:t,payload:e.data,origin:e.origin},window.location.href),!0)}doRedirect(e,t){const i={reason:e,url:t,cancel:!1};this.beforeRedirect(i),i.cancel||(window.location.href=i.url?i.url:"/")}initializeSSE(){this.sseStream&&this.sseStream.readyState!==T.exports.EventSourcePolyfill.CLOSED||(this.endpoint&&this.userId&&this.session&&"withdraw"===this.type?(this.sseShouldStayConnected=!0,this.sseReconnectAttempts=0,this.connectSSE()):console.warn("[SSE] initializeSSE - missing required props, cannot initialize"))}connectSSE(){if(this.sseStream){try{this.sseStream.close()}catch(e){console.warn("[SSE] closeSSEStream - error closing stream:",e)}this.sseStream=null}if(this.sseShouldStayConnected)try{const e=new URL(`/v1/player/${this.userId}/information/updates`,this.endpoint);this.sseStream=new T.exports.EventSourcePolyfill(e,{headers:{accept:"text/event-stream","X-SessionId":this.session}}),this.sseStream.addEventListener("open",this.handleSSEOpen.bind(this)),this.sseStream.addEventListener("message",this.handleSSEMessage.bind(this)),this.sseStream.addEventListener("error",this.handleSSEError.bind(this))}catch(e){console.error("[SSE] connectSSE - Failed to create EventSourcePolyfill:",e),this.scheduleReconnect()}}handleSSEOpen(e){console.info("[SSE] handleSSEOpen - connection opened successfully"),this.sseReconnectAttempts=0,this.sseReconnectTimer&&(clearTimeout(this.sseReconnectTimer),this.sseReconnectTimer=null)}handleSSEMessage(e){if(this.enableStepUpAuth)try{const t=JSON.parse(e.data),i=t.type;if(i===x){const{body:{challengeId:e}={}}=t;e?this.triggerStepUpAuth(e):console.error(`${x} received but challengeId not found in body`)}else"SESSION_EXPIRATION"===i&&(console.info("[SSE] SESSION_EXPIRATION received, closing connection"),window.postMessage({type:"SessionExpiration",reason:"failed2FA"},window.location.href),this.closeSSEStream())}catch(e){console.error("Error parsing SSE message:",e)}}handleSSEError(e){console.warn("[SSE] connection error"),this.sseShouldStayConnected&&this.sseReconnectAttempts<this.SSE_MAX_RECONNECT_ATTEMPTS?this.scheduleReconnect():this.sseReconnectAttempts>=this.SSE_MAX_RECONNECT_ATTEMPTS&&(console.error("[SSE] handleSSEError - max reconnection attempts reached, giving up"),this.closeSSEStream())}scheduleReconnect(){if(!this.sseShouldStayConnected)return;this.sseReconnectTimer&&clearTimeout(this.sseReconnectTimer),this.sseReconnectAttempts++;const e=this.SSE_RECONNECT_DELAY_BASE_MS*Math.pow(2,this.sseReconnectAttempts-1);this.sseReconnectTimer=setTimeout((()=>{this.sseReconnectTimer=null,this.sseShouldStayConnected&&this.connectSSE()}),e)}closeSSEStream(){if(this.sseShouldStayConnected=!1,this.sseReconnectTimer&&(clearTimeout(this.sseReconnectTimer),this.sseReconnectTimer=null),this.sseStream){try{this.sseStream.close()}catch(e){console.warn("[SSE] closeSSEStream - error closing stream:",e)}this.sseStream=null}this.sseReconnectAttempts=0}triggerStepUpAuth(e){this.enableStepUpAuth&&window.dispatchEvent(new CustomEvent("stepUpAuthRequired",{detail:{"x-step-up-required":!0,"x-step-up-token":e,flow:"stateful"}}))}getCashierOrigin(){if(!this.cashierInfoUrl)return"*";try{return new URL(this.cashierInfoUrl).origin}catch(e){return console.warn("Failed to parse cashier URL origin, using wildcard:",e),"*"}}sendMessageToCashier(e){var t;if(!(null===(t=this.cashierIframeRef)||void 0===t?void 0:t.contentWindow))return void console.warn("Cashier iframe not available for postMessage");const i=this.getCashierOrigin();this.cashierIframeRef.contentWindow.postMessage(e,i)}handleOtpSuccess(){this.enableStepUpAuth&&(this.sendMessageToCashier(F.PROCEED),this.closeSSEStream())}handleManualClosePopup(){this.enableStepUpAuth&&(this.sendMessageToCashier(F.CANCEL),this.closeSSEStream())}handleOtpResendRequested(){this.enableStepUpAuth&&(window.dispatchEvent(new CustomEvent("closePopup")),this.sendMessageToCashier(F.RESET))}handleOtpSetTimeout(){this.enableStepUpAuth&&this.sendMessageToCashier(F.PROCEED_FALSE)}static get watchers(){return{clientStyling:["handleClientStylingChange"],clientStylingUrl:["handleClientStylingChangeURL"],enableStepUpAuth:["handleEnableStepUpAuthChange"]}}};B.style=":host {\n font: inherit;\n display: block;\n height: 100%;\n container-type: inline-size;\n}\n\n.DepositWithdrawalContainer {\n container-type: inline-size;\n container-name: deposit-container;\n}\n\n.CategoryTitle {\n font-size: var(--emw--font-size-x-large, 26px);\n color: var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));\n}\n\n.MenuReturnButton {\n font: inherit;\n color: var(--emw--color-gray-300, #58586B);\n display: inline-flex;\n align-items: center;\n column-gap: 10px;\n margin-bottom: 10px;\n}\n.MenuReturnButton svg {\n fill: var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));\n}\n.MenuReturnButton h2.CategoryTitleMobile {\n font-size: 16px;\n color: var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));\n}\n\n.ErrorMessage {\n color: var(--emw--pam-color-typography, var(--emw--color-typography, #FFFFFF));\n}\n\n.DepositWithdrawalWrapper {\n width: 100%;\n margin: 0;\n padding: 50px;\n box-sizing: border-box;\n overflow-y: scroll;\n}\n.DepositWithdrawalWrapper iframe {\n border-width: 0;\n}\n\n.ShortCashier.DepositWithdrawalWrapper {\n height: 500px;\n}\n.ShortCashier.CategoryTitle.CategoryTitle {\n margin-right: 20px;\n padding-top: 20px;\n color: var(--emw--color-black, #000000);\n}\n.ShortCashier .ErrorMessage {\n margin: auto;\n width: 90%;\n margin-top: 70px;\n text-align: center;\n color: var(--emw--color-black, #000000);\n}\n\n@container (max-width: 768px) {\n .DepositWithdrawalWrapper {\n padding: 20px 15px;\n }\n .DepositWithdrawalWrapper:not(.ShortCashier) {\n overflow: visible;\n }\n}";export{c as player_step_up_auth,B as user_deposit_withdrawal}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{p as e,b as t}from"./index-2ff63899.js";export{s as setNonce}from"./index-2ff63899.js";import{g as n}from"./app-globals-0f993ce5.js";(()=>{const t=import.meta.url,n={};return""!==t&&(n.resourcesUrl=new URL(".",t).href),e(n)})().then((async e=>(await n(),t([["player-step-up-auth_2",[[1,"user-deposit-withdrawal",{mbSource:[513,"mb-source"],clientStyling:[513,"client-styling"],clientStylingUrl:[513,"client-styling-url"],translationUrl:[513,"translation-url"],endpoint:[513],type:[513],channel:[513],language:[513],productType:[513,"product-type"],userId:[513,"user-id"],session:[513],successUrl:[513,"success-url"],cancelUrl:[513,"cancel-url"],failUrl:[513,"fail-url"],sportsUrl:[513,"sports-url"],casinoUrl:[513,"casino-url"],contactUrl:[513,"contact-url"],depositUrl:[513,"deposit-url"],currency:[513],showBonusSelectionInput:[513,"show-bonus-selection-input"],isShortCashier:[516,"is-short-cashier"],homeUrl:[513,"home-url"],beforeRedirect:[16],forwardCashierRedirects:[516,"forward-cashier-redirects"],enableStepUpAuth:[516,"enable-step-up-auth"],dynamicHeight:[32],cashierInfoUrl:[32]},[[8,"otpSuccess","handleOtpSuccess"],[8,"manualClosePopup","handleManualClosePopup"],[8,"otpResendRequested","handleOtpResendRequested"],[8,"otpSetTimeout","handleOtpSetTimeout"]],{clientStyling:["handleClientStylingChange"],clientStylingUrl:["handleClientStylingChangeURL"],enableStepUpAuth:["handleEnableStepUpAuthChange"]}],[1,"player-step-up-auth",{mbSource:[513,"mb-source"],clientStyling:[513,"client-styling"],clientStylingUrl:[513,"client-styling-url"],language:[513],endpoint:[513],userSession:[513,"user-session"],translationUrl:[513,"translation-url"],mode:[513],showPopup:[32],otp:[32],isLoading:[32],config:[32],timeLeft:[32],expirationTime:[32],serverTime:[32],hasErrors:[32],hasConfigErrors:[32],errorMessage:[32],token:[32],flow:[32],showResendOtp:[32],isLastWarning:[32],inputDisabled:[32],isValidating:[32],isSuccess:[32],shakeError:[32]},[[8,"stepUpAuthRequired","handleStepUpAuthEvent"],[8,"closePopup","handleCloseWidget"]],{translationUrl:["handleNewTranslations"],clientStyling:["handleClientStylingChange"],clientStylingUrl:["handleClientStylingUrlChange"]}]]]],e))));
|
|
1
|
+
import{p as e,b as t}from"./index-2ff63899.js";export{s as setNonce}from"./index-2ff63899.js";import{g as n}from"./app-globals-0f993ce5.js";(()=>{const t=import.meta.url,n={};return""!==t&&(n.resourcesUrl=new URL(".",t).href),e(n)})().then((async e=>(await n(),t([["player-step-up-auth_2",[[1,"user-deposit-withdrawal",{mbSource:[513,"mb-source"],clientStyling:[513,"client-styling"],clientStylingUrl:[513,"client-styling-url"],translationUrl:[513,"translation-url"],endpoint:[513],type:[513],channel:[513],language:[513],productType:[513,"product-type"],userId:[513,"user-id"],session:[513],successUrl:[513,"success-url"],cancelUrl:[513,"cancel-url"],failUrl:[513,"fail-url"],sportsUrl:[513,"sports-url"],casinoUrl:[513,"casino-url"],contactUrl:[513,"contact-url"],depositUrl:[513,"deposit-url"],currency:[513],showBonusSelectionInput:[513,"show-bonus-selection-input"],isShortCashier:[516,"is-short-cashier"],homeUrl:[513,"home-url"],beforeRedirect:[16],forwardCashierRedirects:[516,"forward-cashier-redirects"],enableStepUpAuth:[516,"enable-step-up-auth"],showApiErrorMessage:[516,"show-api-error-message"],dynamicHeight:[32],cashierInfoUrl:[32],errorMessage:[32],errorFromApi:[32]},[[8,"otpSuccess","handleOtpSuccess"],[8,"manualClosePopup","handleManualClosePopup"],[8,"otpResendRequested","handleOtpResendRequested"],[8,"otpSetTimeout","handleOtpSetTimeout"]],{clientStyling:["handleClientStylingChange"],clientStylingUrl:["handleClientStylingChangeURL"],enableStepUpAuth:["handleEnableStepUpAuthChange"]}],[1,"player-step-up-auth",{mbSource:[513,"mb-source"],clientStyling:[513,"client-styling"],clientStylingUrl:[513,"client-styling-url"],language:[513],endpoint:[513],userSession:[513,"user-session"],translationUrl:[513,"translation-url"],mode:[513],showPopup:[32],otp:[32],isLoading:[32],config:[32],timeLeft:[32],expirationTime:[32],serverTime:[32],hasErrors:[32],hasConfigErrors:[32],errorMessage:[32],token:[32],flow:[32],showResendOtp:[32],isLastWarning:[32],inputDisabled:[32],isValidating:[32],isSuccess:[32],shakeError:[32]},[[8,"stepUpAuthRequired","handleStepUpAuthEvent"],[8,"closePopup","handleCloseWidget"]],{translationUrl:["handleNewTranslations"],clientStyling:["handleClientStylingChange"],clientStylingUrl:["handleClientStylingUrlChange"]}]]]],e))));
|