@everymatrix/user-deposit-withdrawal 1.43.4 → 1.45.0
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/app-globals-3a1e7e63.js +5 -0
- package/dist/cjs/index-faa382a8.js +1265 -0
- package/dist/cjs/loader.cjs.js +7 -13
- package/dist/cjs/user-deposit-withdrawal.cjs.entry.js +226 -223
- package/dist/cjs/user-deposit-withdrawal.cjs.js +17 -11
- package/dist/collection/collection-manifest.json +3 -3
- package/dist/collection/components/user-deposit-withdrawal/index.js +1 -0
- package/dist/collection/components/user-deposit-withdrawal/user-deposit-withdrawal.js +581 -578
- package/dist/collection/utils/locale.utils.js +38 -38
- package/dist/collection/utils/utils.js +17 -17
- package/dist/esm/app-globals-0f993ce5.js +3 -0
- package/dist/esm/index-04d3e726.js +1238 -0
- package/dist/esm/loader.js +7 -13
- package/dist/esm/user-deposit-withdrawal.entry.js +226 -223
- package/dist/esm/user-deposit-withdrawal.js +14 -11
- package/dist/stencil.config.dev.js +17 -0
- package/dist/stencil.config.js +14 -19
- package/dist/types/Users/adrian.pripon/Documents/Work/widgets-monorepo/packages/stencil/user-deposit-withdrawal/.stencil/packages/stencil/user-deposit-withdrawal/stencil.config.d.ts +2 -0
- package/dist/types/Users/adrian.pripon/Documents/Work/widgets-monorepo/packages/stencil/user-deposit-withdrawal/.stencil/packages/stencil/user-deposit-withdrawal/stencil.config.dev.d.ts +2 -0
- package/dist/types/components/user-deposit-withdrawal/index.d.ts +1 -0
- package/dist/types/components/user-deposit-withdrawal/user-deposit-withdrawal.d.ts +65 -65
- package/dist/types/components.d.ts +1 -0
- package/dist/types/stencil-public-runtime.d.ts +142 -33
- package/dist/user-deposit-withdrawal/p-53a8ad89.js +2 -0
- package/dist/user-deposit-withdrawal/p-96b03b5e.entry.js +1 -0
- package/dist/user-deposit-withdrawal/p-e1255160.js +1 -0
- package/dist/user-deposit-withdrawal/user-deposit-withdrawal.esm.js +1 -1
- package/loader/cdn.js +1 -3
- package/loader/index.cjs.js +1 -3
- package/loader/index.d.ts +13 -1
- package/loader/index.es2017.js +1 -3
- package/loader/index.js +1 -3
- package/loader/package.json +1 -0
- package/package.json +8 -1
- package/dist/cjs/index-efde0a55.js +0 -1264
- package/dist/components/index.d.ts +0 -26
- package/dist/components/index.js +0 -1
- package/dist/components/user-deposit-withdrawal.d.ts +0 -11
- package/dist/components/user-deposit-withdrawal.js +0 -304
- package/dist/esm/index-767966f2.js +0 -1238
- package/dist/esm/polyfills/core-js.js +0 -11
- package/dist/esm/polyfills/css-shim.js +0 -1
- package/dist/esm/polyfills/dom.js +0 -79
- package/dist/esm/polyfills/es5-html-element.js +0 -1
- package/dist/esm/polyfills/index.js +0 -34
- package/dist/esm/polyfills/system.js +0 -6
- package/dist/types/Users/adrian.pripon/Documents/Work/widgets-stencil/packages/user-deposit-withdrawal/.stencil/packages/user-deposit-withdrawal/stencil.config.d.ts +0 -2
- package/dist/user-deposit-withdrawal/p-4c4319e6.js +0 -1
- package/dist/user-deposit-withdrawal/p-518ce9fb.entry.js +0 -1
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
/* UserDepositWithdrawal custom elements */
|
|
2
|
-
|
|
3
|
-
import type { Components, JSX } from "../types/components";
|
|
4
|
-
|
|
5
|
-
/**
|
|
6
|
-
* Used to manually set the base path where assets can be found.
|
|
7
|
-
* If the script is used as "module", it's recommended to use "import.meta.url",
|
|
8
|
-
* such as "setAssetPath(import.meta.url)". Other options include
|
|
9
|
-
* "setAssetPath(document.currentScript.src)", or using a bundler's replace plugin to
|
|
10
|
-
* dynamically set the path at build time, such as "setAssetPath(process.env.ASSET_PATH)".
|
|
11
|
-
* But do note that this configuration depends on how your script is bundled, or lack of
|
|
12
|
-
* bundling, and where your assets can be loaded from. Additionally custom bundling
|
|
13
|
-
* will have to ensure the static assets are copied to its build directory.
|
|
14
|
-
*/
|
|
15
|
-
export declare const setAssetPath: (path: string) => void;
|
|
16
|
-
|
|
17
|
-
export interface SetPlatformOptions {
|
|
18
|
-
raf?: (c: FrameRequestCallback) => number;
|
|
19
|
-
ael?: (el: EventTarget, eventName: string, listener: EventListenerOrEventListenerObject, options: boolean | AddEventListenerOptions) => void;
|
|
20
|
-
rel?: (el: EventTarget, eventName: string, listener: EventListenerOrEventListenerObject, options: boolean | AddEventListenerOptions) => void;
|
|
21
|
-
}
|
|
22
|
-
export declare const setPlatformOptions: (opts: SetPlatformOptions) => void;
|
|
23
|
-
|
|
24
|
-
export type { Components, JSX };
|
|
25
|
-
|
|
26
|
-
export * from '../types';
|
package/dist/components/index.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { setAssetPath, setPlatformOptions } from '@stencil/core/internal/client';
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import type { Components, JSX } from "../types/components";
|
|
2
|
-
|
|
3
|
-
interface UserDepositWithdrawal extends Components.UserDepositWithdrawal, HTMLElement {}
|
|
4
|
-
export const UserDepositWithdrawal: {
|
|
5
|
-
prototype: UserDepositWithdrawal;
|
|
6
|
-
new (): UserDepositWithdrawal;
|
|
7
|
-
};
|
|
8
|
-
/**
|
|
9
|
-
* Used to define this component and all nested components recursively.
|
|
10
|
-
*/
|
|
11
|
-
export const defineCustomElement: () => void;
|
|
@@ -1,304 +0,0 @@
|
|
|
1
|
-
import { proxyCustomElement, HTMLElement, h, Host } from '@stencil/core/internal/client';
|
|
2
|
-
|
|
3
|
-
const DEFAULT_LANGUAGE = 'en';
|
|
4
|
-
const SUPPORTED_LANGUAGES = ['ro', 'en', 'fr', 'hr'];
|
|
5
|
-
const TRANSLATIONS = {
|
|
6
|
-
en: {
|
|
7
|
-
Deposit: 'Deposit',
|
|
8
|
-
Withdraw: 'Withdraw',
|
|
9
|
-
denyDeposit: 'Please be informed that currently you are not allowed to initiate depost transactions.',
|
|
10
|
-
denyWithdrawal: 'Please be informed that currently you are not allowed to initiate withdrawal transactions.',
|
|
11
|
-
notFoundErrorCode: 'Not found error code',
|
|
12
|
-
errorCode21122: 'Dear player! Please be informed that currently you are not allowed to initiate withdrawal transaction from your player account. Error Code: 21122',
|
|
13
|
-
errorCode21123: 'Dear player! Please be informed that currently you are not allowed to make a deposit to your player account. Error Code:21123'
|
|
14
|
-
},
|
|
15
|
-
ro: {
|
|
16
|
-
Deposit: 'Depozit',
|
|
17
|
-
Withdraw: 'Retragere',
|
|
18
|
-
denyDeposit: 'Vă informăm că în prezent nu aveți permisiunea de a iniția tranzacții de depunere.',
|
|
19
|
-
denyWithdrawal: 'Vă informăm că în prezent nu aveți permisiunea de a iniția tranzacții de retragere.',
|
|
20
|
-
notFoundErrorCode: 'Not found error code',
|
|
21
|
-
errorCode21122: 'Dear player! Please be informed that currently you are not allowed to initiate withdrawal transaction from your player account. Error Code: 21122',
|
|
22
|
-
errorCode21123: 'Dear player! Please be informed that currently you are not allowed to make a deposit to your player account. Error Code:21123'
|
|
23
|
-
},
|
|
24
|
-
fr: {
|
|
25
|
-
Deposit: 'Deposit',
|
|
26
|
-
Withdraw: 'Withdraw',
|
|
27
|
-
denyDeposit: 'Veuillez être informé que vous n\'êtes actuellement pas autorisé à initier des transactions de dépôt.',
|
|
28
|
-
denyWithdrawal: 'Veuillez être informé que vous n\'êtes actuellement pas autorisé à initier des transactions de retrait.',
|
|
29
|
-
notFoundErrorCode: 'Not found error code',
|
|
30
|
-
errorCode21122: 'Dear player! Please be informed that currently you are not allowed to initiate withdrawal transaction from your player account. Error Code: 21122',
|
|
31
|
-
errorCode21123: 'Dear player! Please be informed that currently you are not allowed to make a deposit to your player account. Error Code:21123'
|
|
32
|
-
},
|
|
33
|
-
hr: {
|
|
34
|
-
Deposit: 'Uplata',
|
|
35
|
-
Withdraw: 'Isplata',
|
|
36
|
-
denyDeposit: 'Obavještavamo Vas da trenutno nemate mogućnost uplata.',
|
|
37
|
-
denyWithdrawal: 'Obavještavamo vas da trenutno niste ovlašteni za pokretanje transakcija isplate.',
|
|
38
|
-
notFoundErrorCode: 'Not found error code',
|
|
39
|
-
errorCode21122: 'Poštovani, trenutno nije moguće izvršiti isplatu sa Vašeg računa. Error Code: 21122',
|
|
40
|
-
errorCode21123: 'Poštovani, trenutno nije moguće izvršiti uplatu na Vaš račun. Error Code:21123'
|
|
41
|
-
}
|
|
42
|
-
};
|
|
43
|
-
const translate = (key, customLang) => {
|
|
44
|
-
const lang = customLang;
|
|
45
|
-
return TRANSLATIONS[lang !== undefined && SUPPORTED_LANGUAGES.includes(lang) ? lang : DEFAULT_LANGUAGE][key];
|
|
46
|
-
};
|
|
47
|
-
|
|
48
|
-
/**
|
|
49
|
-
* @name isMobile
|
|
50
|
-
* @description A method that returns if the browser used to access the app is from a mobile device or not
|
|
51
|
-
* @param {String} userAgent window.navigator.userAgent
|
|
52
|
-
* @returns {Boolean} true or false
|
|
53
|
-
*/
|
|
54
|
-
const isMobile = (userAgent) => {
|
|
55
|
-
return !!(userAgent.toLowerCase().match(/android/i) ||
|
|
56
|
-
userAgent.toLowerCase().match(/blackberry|bb/i) ||
|
|
57
|
-
userAgent.toLowerCase().match(/iphone|ipad|ipod/i) ||
|
|
58
|
-
userAgent.toLowerCase().match(/windows phone|windows mobile|iemobile|wpdesktop/i));
|
|
59
|
-
};
|
|
60
|
-
|
|
61
|
-
const userDepositWithdrawalCss = ":host {\n font: inherit;\n display: block;\n height: 100%;\n overflow: hidden;\n}\n\n.CategoryTitle {\n font-size: var(--emw--font-size-x-large, 26px);\n color: var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C));\n}\n\n.MenuReturnButton {\n font: inherit;\n color: var(--emfe-w-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(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C));\n}\n.MenuReturnButton h2.CategoryTitleMobile {\n font-size: 16px;\n color: var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C));\n}\n\n.ErrorMessage {\n color: var(--emfe-w-pam-color-typography, var(--emfe-w-color-typography, #FFFFFF));\n}\n\n.DepositWithdrawalWrapper {\n width: 100%;\n padding: 0;\n margin: 0;\n height: 100vh;\n}\n\n@container (max-width: 475px) {\n .DepositWithdrawalWrapper {\n height: 100vh;\n }\n}\n.ShortCashier.DepositWithdrawalWrapper {\n height: 500px;\n}\n.ShortCashier.CategoryTitle.CategoryTitle {\n margin-right: 20px;\n padding-top: 20px;\n color: ar(--emfe-w-color-black, #000000);\n}\n.ShortCashier .ErrorMessage {\n margin: auto;\n width: 90%;\n margin-top: 70px;\n text-align: center;\n color: var(--emfe-w-color-black, #000000);\n}";
|
|
62
|
-
|
|
63
|
-
const emptyFunction = () => { };
|
|
64
|
-
const UserDepositWithdrawal$1 = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
65
|
-
constructor() {
|
|
66
|
-
super();
|
|
67
|
-
this.__registerHost();
|
|
68
|
-
this.__attachShadow();
|
|
69
|
-
/**
|
|
70
|
-
* Client custom styling via inline style
|
|
71
|
-
*/
|
|
72
|
-
this.clientStyling = '';
|
|
73
|
-
/**
|
|
74
|
-
* Client custom styling via url
|
|
75
|
-
*/
|
|
76
|
-
this.clientStylingUrl = '';
|
|
77
|
-
/*
|
|
78
|
-
* Operator selected currency
|
|
79
|
-
*/
|
|
80
|
-
this.currency = '';
|
|
81
|
-
/*
|
|
82
|
-
* Display bonus dropdown
|
|
83
|
-
*/
|
|
84
|
-
this.showBonusSelectionInput = 'true';
|
|
85
|
-
/*
|
|
86
|
-
* State of deposit - short cashier enabled or not
|
|
87
|
-
*/
|
|
88
|
-
this.isShortCashier = false;
|
|
89
|
-
this.beforeRedirect = emptyFunction;
|
|
90
|
-
this.limitStylingAppends = false;
|
|
91
|
-
this.bindedHandler = this.handleMessage.bind(this);
|
|
92
|
-
this.userAgent = window.navigator.userAgent;
|
|
93
|
-
this.isMobile = isMobile(this.userAgent);
|
|
94
|
-
this.errorCodes = ["21123", "21122"];
|
|
95
|
-
this.setClientStyling = () => {
|
|
96
|
-
let sheet = document.createElement('style');
|
|
97
|
-
sheet.innerHTML = this.clientStyling;
|
|
98
|
-
this.stylingContainer.prepend(sheet);
|
|
99
|
-
};
|
|
100
|
-
this.setClientStylingURL = () => {
|
|
101
|
-
let url = new URL(this.clientStylingUrl);
|
|
102
|
-
let cssFile = document.createElement('style');
|
|
103
|
-
fetch(url.href)
|
|
104
|
-
.then((res) => res.text())
|
|
105
|
-
.then((data) => {
|
|
106
|
-
cssFile.innerHTML = data;
|
|
107
|
-
setTimeout(() => { this.stylingContainer.prepend(cssFile); }, 1);
|
|
108
|
-
})
|
|
109
|
-
.catch((err) => {
|
|
110
|
-
console.log('error ', err);
|
|
111
|
-
});
|
|
112
|
-
};
|
|
113
|
-
}
|
|
114
|
-
get typeParameter() {
|
|
115
|
-
if (this.type === 'deposit') {
|
|
116
|
-
return 'Deposit';
|
|
117
|
-
}
|
|
118
|
-
if (this.type === 'withdraw') {
|
|
119
|
-
return 'Withdraw';
|
|
120
|
-
}
|
|
121
|
-
}
|
|
122
|
-
watchLoadWidget() {
|
|
123
|
-
this.loadWidget();
|
|
124
|
-
}
|
|
125
|
-
async componentWillLoad() {
|
|
126
|
-
await this.loadWidget();
|
|
127
|
-
}
|
|
128
|
-
toggleScreen(isMobile) {
|
|
129
|
-
window.postMessage({ type: 'PlayerAccountMenuActive', isMobile }, window.location.href);
|
|
130
|
-
}
|
|
131
|
-
componentDidLoad() {
|
|
132
|
-
window.addEventListener('message', this.bindedHandler, false);
|
|
133
|
-
}
|
|
134
|
-
disconnectedCallback() {
|
|
135
|
-
window.removeEventListener('message', this.bindedHandler, false);
|
|
136
|
-
}
|
|
137
|
-
componentDidRender() {
|
|
138
|
-
// start custom styling area
|
|
139
|
-
if (!this.limitStylingAppends && this.stylingContainer) {
|
|
140
|
-
if (this.clientStyling)
|
|
141
|
-
this.setClientStyling();
|
|
142
|
-
if (this.clientStylingUrl)
|
|
143
|
-
this.setClientStylingURL();
|
|
144
|
-
this.limitStylingAppends = true;
|
|
145
|
-
}
|
|
146
|
-
// end custom styling area
|
|
147
|
-
}
|
|
148
|
-
render() {
|
|
149
|
-
return (h(Host, null, h("div", { ref: el => this.stylingContainer = el }, (!(this.isMobile && !this.isShortCashier) && (h("h2", { class: "CategoryTitle" }, translate(this.typeParameter === 'Withdraw' ? 'Withdraw' : 'Deposit', this.language)))), h("div", { class: `DepositWithdrawalWrapper ${this.isShortCashier ? 'ShortCashier' : ''}`, style: { height: this.dynamicHeight, marginTop: this.isShortCashier ? '30px' : '0' } }, h("div", null, (this.isMobile && !this.isShortCashier ?
|
|
150
|
-
h("div", { class: "MenuReturnButton", onClick: () => this.toggleScreen(this.isMobile) }, 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)))
|
|
151
|
-
: null)), this.cashierInfoUrl ? h("iframe", { width: "100%", height: "100%", src: this.cashierInfoUrl }) : h("h3", { class: "ErrorMessage" }, this.type === 'deposit' ? translate('denyDeposit', this.language) : translate('denyWithdrawal', this.language))))));
|
|
152
|
-
}
|
|
153
|
-
async loadWidget() {
|
|
154
|
-
const requestObject = {
|
|
155
|
-
Channel: this.channel,
|
|
156
|
-
Type: this.typeParameter,
|
|
157
|
-
SuccessUrl: this.successUrl,
|
|
158
|
-
CancelUrl: this.cancelUrl,
|
|
159
|
-
FailUrl: this.failUrl,
|
|
160
|
-
Language: this.language,
|
|
161
|
-
productType: this.productType,
|
|
162
|
-
isShortCashier: this.isShortCashier,
|
|
163
|
-
currency: this.currency,
|
|
164
|
-
showBonusSelectionInput: this.showBonusSelectionInput
|
|
165
|
-
};
|
|
166
|
-
try {
|
|
167
|
-
const url = `${this.endpoint}/v1/player/${this.userId}/payment/GetPaymentSession`;
|
|
168
|
-
const response = await fetch(url, {
|
|
169
|
-
method: 'POST',
|
|
170
|
-
headers: {
|
|
171
|
-
'X-Sessionid': this.session,
|
|
172
|
-
'Content-Type': 'application/json',
|
|
173
|
-
},
|
|
174
|
-
body: JSON.stringify(requestObject)
|
|
175
|
-
});
|
|
176
|
-
if (!response.ok) {
|
|
177
|
-
const err = await response.text();
|
|
178
|
-
throw new Error(err);
|
|
179
|
-
}
|
|
180
|
-
const data = await response.json();
|
|
181
|
-
if (data.CashierInfo) {
|
|
182
|
-
this.cashierInfoUrl = data.CashierInfo.Url;
|
|
183
|
-
}
|
|
184
|
-
else {
|
|
185
|
-
let apiMessage;
|
|
186
|
-
if (data.ResponseMessage) {
|
|
187
|
-
let foundErrorCode = this.errorCodes.find(code => data.ResponseMessage.includes(code)) || null;
|
|
188
|
-
if (foundErrorCode) {
|
|
189
|
-
apiMessage = translate(`errorCode${foundErrorCode}`, this.language);
|
|
190
|
-
}
|
|
191
|
-
else {
|
|
192
|
-
apiMessage = translate('notFoundErrorCode', this.language);
|
|
193
|
-
}
|
|
194
|
-
}
|
|
195
|
-
else {
|
|
196
|
-
apiMessage = this.type === 'deposit'
|
|
197
|
-
? translate('denyDeposit', this.language)
|
|
198
|
-
: translate('denyWithdrawal', this.language);
|
|
199
|
-
}
|
|
200
|
-
const messageOBj = { type: 'error', message: apiMessage };
|
|
201
|
-
window.postMessage({ type: 'DenyDepositOrWithdrawal', data: messageOBj }, window.location.href);
|
|
202
|
-
}
|
|
203
|
-
}
|
|
204
|
-
catch (ex) {
|
|
205
|
-
console.error(ex);
|
|
206
|
-
}
|
|
207
|
-
}
|
|
208
|
-
handleMessage(message) {
|
|
209
|
-
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
210
|
-
if (message.data['MMFE:openFullCashier'] === 'true') {
|
|
211
|
-
window.postMessage({ type: 'GoToDeposit' }, window.location.href);
|
|
212
|
-
window.postMessage({ type: 'CloseShortCashier' }, window.location.href);
|
|
213
|
-
}
|
|
214
|
-
if (message.data["MMFE:setQuickDepositHeight"] && this.isShortCashier) {
|
|
215
|
-
this.dynamicHeight = message.data["MMFE:setQuickDepositHeight"].toString() + 'px';
|
|
216
|
-
}
|
|
217
|
-
if (message.data["MMFE:setIFrameHeight"] && this.isShortCashier) {
|
|
218
|
-
this.dynamicHeight = message.data["MMFE:setIFrameHeight"].toString() + 'px';
|
|
219
|
-
}
|
|
220
|
-
if (((_a = message.data) === null || _a === void 0 ? void 0 : _a.type) === 'mm-hcback-to-merchant') {
|
|
221
|
-
this.doRedirect(message.data.type, this.homeUrl);
|
|
222
|
-
}
|
|
223
|
-
if (((_b = message.data) === null || _b === void 0 ? void 0 : _b.redirect) === 'mm-hc-back-tomerchant') {
|
|
224
|
-
this.doRedirect(message.data.redirect, this.homeUrl);
|
|
225
|
-
}
|
|
226
|
-
if (((_c = message.data) === null || _c === void 0 ? void 0 : _c.redirect) === 'mm-hc-sports') {
|
|
227
|
-
this.doRedirect((_d = message.data) === null || _d === void 0 ? void 0 : _d.redirect, this.sportsUrl);
|
|
228
|
-
}
|
|
229
|
-
if (((_e = message.data) === null || _e === void 0 ? void 0 : _e.redirect) === 'mm-hc-casino') {
|
|
230
|
-
this.doRedirect(window.location.href, this.casinoUrl);
|
|
231
|
-
}
|
|
232
|
-
if (((_f = message.data) === null || _f === void 0 ? void 0 : _f.redirect) === 'mm-hc-contact') {
|
|
233
|
-
window.postMessage({ type: 'CloseShortCashier' }, window.location.href);
|
|
234
|
-
this.doRedirect(window.location.href, this.contactUrl);
|
|
235
|
-
}
|
|
236
|
-
if (((_g = message.data) === null || _g === void 0 ? void 0 : _g.redirect) === 'mm-wm-hc-init-deposit' || ((_h = message.data) === null || _h === void 0 ? void 0 : _h.redirect) === 'mm-wm-hc-init-deposit-quick') {
|
|
237
|
-
window.postMessage({ type: 'CloseShortCashier' }, window.location.href);
|
|
238
|
-
this.doRedirect(window.location.href, this.depositUrl);
|
|
239
|
-
}
|
|
240
|
-
}
|
|
241
|
-
doRedirect(reason, url) {
|
|
242
|
-
const redirectArgs = { reason, url, cancel: false };
|
|
243
|
-
this.beforeRedirect(redirectArgs);
|
|
244
|
-
if (redirectArgs.cancel) {
|
|
245
|
-
return;
|
|
246
|
-
}
|
|
247
|
-
if (!redirectArgs.url) {
|
|
248
|
-
window.location.href = '/';
|
|
249
|
-
return;
|
|
250
|
-
}
|
|
251
|
-
window.location.href = redirectArgs.url;
|
|
252
|
-
}
|
|
253
|
-
static get watchers() { return {
|
|
254
|
-
"session": ["watchLoadWidget"],
|
|
255
|
-
"userId": ["watchLoadWidget"],
|
|
256
|
-
"isShortCashier": ["watchLoadWidget"],
|
|
257
|
-
"currency": ["watchLoadWidget"],
|
|
258
|
-
"showBonusSelectionInput": ["watchLoadWidget"]
|
|
259
|
-
}; }
|
|
260
|
-
static get style() { return userDepositWithdrawalCss; }
|
|
261
|
-
}, [1, "user-deposit-withdrawal", {
|
|
262
|
-
"clientStyling": [513, "client-styling"],
|
|
263
|
-
"clientStylingUrl": [513, "client-styling-url"],
|
|
264
|
-
"endpoint": [513],
|
|
265
|
-
"type": [513],
|
|
266
|
-
"channel": [513],
|
|
267
|
-
"language": [513],
|
|
268
|
-
"productType": [513, "product-type"],
|
|
269
|
-
"userId": [513, "user-id"],
|
|
270
|
-
"session": [513],
|
|
271
|
-
"successUrl": [513, "success-url"],
|
|
272
|
-
"cancelUrl": [513, "cancel-url"],
|
|
273
|
-
"failUrl": [513, "fail-url"],
|
|
274
|
-
"sportsUrl": [513, "sports-url"],
|
|
275
|
-
"casinoUrl": [513, "casino-url"],
|
|
276
|
-
"contactUrl": [513, "contact-url"],
|
|
277
|
-
"depositUrl": [513, "deposit-url"],
|
|
278
|
-
"currency": [513],
|
|
279
|
-
"showBonusSelectionInput": [513, "show-bonus-selection-input"],
|
|
280
|
-
"isShortCashier": [516, "is-short-cashier"],
|
|
281
|
-
"homeUrl": [513, "home-url"],
|
|
282
|
-
"beforeRedirect": [16],
|
|
283
|
-
"limitStylingAppends": [32],
|
|
284
|
-
"dynamicHeight": [32],
|
|
285
|
-
"cashierInfoUrl": [32]
|
|
286
|
-
}]);
|
|
287
|
-
function defineCustomElement$1() {
|
|
288
|
-
if (typeof customElements === "undefined") {
|
|
289
|
-
return;
|
|
290
|
-
}
|
|
291
|
-
const components = ["user-deposit-withdrawal"];
|
|
292
|
-
components.forEach(tagName => { switch (tagName) {
|
|
293
|
-
case "user-deposit-withdrawal":
|
|
294
|
-
if (!customElements.get(tagName)) {
|
|
295
|
-
customElements.define(tagName, UserDepositWithdrawal$1);
|
|
296
|
-
}
|
|
297
|
-
break;
|
|
298
|
-
} });
|
|
299
|
-
}
|
|
300
|
-
|
|
301
|
-
const UserDepositWithdrawal = UserDepositWithdrawal$1;
|
|
302
|
-
const defineCustomElement = defineCustomElement$1;
|
|
303
|
-
|
|
304
|
-
export { UserDepositWithdrawal, defineCustomElement };
|