@everymatrix/user-deposit-withdrawal 1.0.69

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.
Files changed (44) hide show
  1. package/dist/cjs/app-globals-3a1e7e63.js +5 -0
  2. package/dist/cjs/index-faa382a8.js +1265 -0
  3. package/dist/cjs/index.cjs.js +2 -0
  4. package/dist/cjs/loader.cjs.js +15 -0
  5. package/dist/cjs/user-deposit-withdrawal.cjs.entry.js +256 -0
  6. package/dist/cjs/user-deposit-withdrawal.cjs.js +25 -0
  7. package/dist/collection/collection-manifest.json +12 -0
  8. package/dist/collection/components/user-deposit-withdrawal/index.js +1 -0
  9. package/dist/collection/components/user-deposit-withdrawal/user-deposit-withdrawal.css +35 -0
  10. package/dist/collection/components/user-deposit-withdrawal/user-deposit-withdrawal.js +601 -0
  11. package/dist/collection/index.js +1 -0
  12. package/dist/collection/utils/locale.utils.js +32 -0
  13. package/dist/collection/utils/utils.js +29 -0
  14. package/dist/esm/app-globals-0f993ce5.js +3 -0
  15. package/dist/esm/index-04d3e726.js +1238 -0
  16. package/dist/esm/index.js +1 -0
  17. package/dist/esm/loader.js +11 -0
  18. package/dist/esm/user-deposit-withdrawal.entry.js +252 -0
  19. package/dist/esm/user-deposit-withdrawal.js +20 -0
  20. package/dist/index.cjs.js +1 -0
  21. package/dist/index.js +1 -0
  22. package/dist/stencil.config.dev.js +17 -0
  23. package/dist/stencil.config.js +17 -0
  24. package/dist/types/Users/raul.vasile/workspace/everymatrix/widgets-monorepo/packages/stencil/user-deposit-withdrawal/.stencil/packages/stencil/user-deposit-withdrawal/stencil.config.d.ts +2 -0
  25. package/dist/types/Users/raul.vasile/workspace/everymatrix/widgets-monorepo/packages/stencil/user-deposit-withdrawal/.stencil/packages/stencil/user-deposit-withdrawal/stencil.config.dev.d.ts +2 -0
  26. package/dist/types/components/user-deposit-withdrawal/index.d.ts +1 -0
  27. package/dist/types/components/user-deposit-withdrawal/user-deposit-withdrawal.d.ts +75 -0
  28. package/dist/types/components.d.ts +99 -0
  29. package/dist/types/index.d.ts +1 -0
  30. package/dist/types/stencil-public-runtime.d.ts +1674 -0
  31. package/dist/types/utils/locale.utils.d.ts +1 -0
  32. package/dist/types/utils/utils.d.ts +8 -0
  33. package/dist/user-deposit-withdrawal/index.esm.js +0 -0
  34. package/dist/user-deposit-withdrawal/p-53a8ad89.js +2 -0
  35. package/dist/user-deposit-withdrawal/p-83b68346.entry.js +1 -0
  36. package/dist/user-deposit-withdrawal/p-e1255160.js +1 -0
  37. package/dist/user-deposit-withdrawal/user-deposit-withdrawal.esm.js +1 -0
  38. package/loader/cdn.js +1 -0
  39. package/loader/index.cjs.js +1 -0
  40. package/loader/index.d.ts +24 -0
  41. package/loader/index.es2017.js +1 -0
  42. package/loader/index.js +2 -0
  43. package/loader/package.json +11 -0
  44. package/package.json +26 -0
@@ -0,0 +1 @@
1
+
@@ -0,0 +1,11 @@
1
+ import { b as bootstrapLazy } from './index-04d3e726.js';
2
+ export { s as setNonce } from './index-04d3e726.js';
3
+ import { g as globalScripts } from './app-globals-0f993ce5.js';
4
+
5
+ const defineCustomElements = async (win, options) => {
6
+ if (typeof window === 'undefined') return undefined;
7
+ await globalScripts();
8
+ return bootstrapLazy([["user-deposit-withdrawal",[[1,"user-deposit-withdrawal",{"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-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],"limitStylingAppends":[32],"dynamicHeight":[32],"cashierInfoUrl":[32]},null,{"session":["watchLoadWidget"],"userId":["watchLoadWidget"],"isShortCashier":["watchLoadWidget"],"currency":["watchLoadWidget"],"showBonusSelectionInput":["watchLoadWidget"]}]]]], options);
9
+ };
10
+
11
+ export { defineCustomElements };
@@ -0,0 +1,252 @@
1
+ import { r as registerInstance, h, H as Host } from './index-04d3e726.js';
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
+ },
12
+ ro: {
13
+ Deposit: 'Depozit',
14
+ Withdraw: 'Retragere',
15
+ denyDeposit: 'Vă informăm că în prezent nu aveți permisiunea de a iniția tranzacții de depunere.',
16
+ denyWithdrawal: 'Vă informăm că în prezent nu aveți permisiunea de a iniția tranzacții de retragere.'
17
+ },
18
+ fr: {
19
+ Deposit: 'Deposit',
20
+ Withdraw: 'Withdraw',
21
+ denyDeposit: 'Veuillez être informé que vous n\'êtes actuellement pas autorisé à initier des transactions de dépôt.',
22
+ denyWithdrawal: 'Veuillez être informé que vous n\'êtes actuellement pas autorisé à initier des transactions de retrait.'
23
+ },
24
+ hr: {
25
+ Deposit: 'Letét',
26
+ Withdraw: 'Visszavonás',
27
+ denyDeposit: 'Obavještavamo vas da trenutno niste ovlašteni za pokretanje transakcija pologa.',
28
+ denyWithdrawal: 'Obavještavamo vas da trenutno niste ovlašteni za pokretanje transakcija isplate.'
29
+ }
30
+ };
31
+ const translate = (key, customLang) => {
32
+ const lang = customLang;
33
+ return TRANSLATIONS[lang !== undefined && SUPPORTED_LANGUAGES.includes(lang) ? lang : DEFAULT_LANGUAGE][key];
34
+ };
35
+
36
+ /**
37
+ * @name isMobile
38
+ * @description A method that returns if the browser used to access the app is from a mobile device or not
39
+ * @param {String} userAgent window.navigator.userAgent
40
+ * @returns {Boolean} true or false
41
+ */
42
+ const isMobile = (userAgent) => {
43
+ return !!(userAgent.toLowerCase().match(/android/i) ||
44
+ userAgent.toLowerCase().match(/blackberry|bb/i) ||
45
+ userAgent.toLowerCase().match(/iphone|ipad|ipod/i) ||
46
+ userAgent.toLowerCase().match(/windows phone|windows mobile|iemobile|wpdesktop/i));
47
+ };
48
+
49
+ const userDepositWithdrawalCss = ":host {\n font: inherit;\n display: block;\n height: 100%;\n overflow: hidden;\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.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}";
50
+ const UserDepositWithdrawalStyle0 = userDepositWithdrawalCss;
51
+
52
+ const emptyFunction = () => { };
53
+ const UserDepositWithdrawal = class {
54
+ constructor(hostRef) {
55
+ registerInstance(this, hostRef);
56
+ this.bindedHandler = this.handleMessage.bind(this);
57
+ this.userAgent = window.navigator.userAgent;
58
+ this.isMobile = isMobile(this.userAgent);
59
+ this.errorCodes = ["21123", "21122"];
60
+ this.setClientStyling = () => {
61
+ let sheet = document.createElement('style');
62
+ sheet.innerHTML = this.clientStyling;
63
+ this.stylingContainer.prepend(sheet);
64
+ };
65
+ this.setClientStylingURL = () => {
66
+ let url = new URL(this.clientStylingUrl);
67
+ let cssFile = document.createElement('style');
68
+ fetch(url.href)
69
+ .then((res) => res.text())
70
+ .then((data) => {
71
+ cssFile.innerHTML = data;
72
+ setTimeout(() => { this.stylingContainer.prepend(cssFile); }, 1);
73
+ })
74
+ .catch((err) => {
75
+ console.log('error ', err);
76
+ });
77
+ };
78
+ this.clientStyling = '';
79
+ this.clientStylingUrl = '';
80
+ this.endpoint = undefined;
81
+ this.type = undefined;
82
+ this.channel = undefined;
83
+ this.language = undefined;
84
+ this.productType = undefined;
85
+ this.userId = undefined;
86
+ this.session = undefined;
87
+ this.successUrl = undefined;
88
+ this.cancelUrl = undefined;
89
+ this.failUrl = undefined;
90
+ this.sportsUrl = undefined;
91
+ this.casinoUrl = undefined;
92
+ this.contactUrl = undefined;
93
+ this.depositUrl = undefined;
94
+ this.currency = '';
95
+ this.showBonusSelectionInput = 'true';
96
+ this.isShortCashier = false;
97
+ this.homeUrl = undefined;
98
+ this.beforeRedirect = emptyFunction;
99
+ this.limitStylingAppends = false;
100
+ this.dynamicHeight = undefined;
101
+ this.cashierInfoUrl = undefined;
102
+ }
103
+ get typeParameter() {
104
+ if (this.type === 'deposit') {
105
+ return 'Deposit';
106
+ }
107
+ if (this.type === 'withdraw') {
108
+ return 'Withdraw';
109
+ }
110
+ }
111
+ watchLoadWidget() {
112
+ this.loadWidget();
113
+ }
114
+ async componentWillLoad() {
115
+ await this.loadWidget();
116
+ }
117
+ toggleScreen(isMobile) {
118
+ window.postMessage({ type: 'PlayerAccountMenuActive', isMobile }, window.location.href);
119
+ }
120
+ componentDidLoad() {
121
+ window.addEventListener('message', this.bindedHandler, false);
122
+ }
123
+ disconnectedCallback() {
124
+ window.removeEventListener('message', this.bindedHandler, false);
125
+ }
126
+ componentDidRender() {
127
+ // start custom styling area
128
+ if (!this.limitStylingAppends && this.stylingContainer) {
129
+ if (this.clientStyling)
130
+ this.setClientStyling();
131
+ if (this.clientStylingUrl)
132
+ this.setClientStylingURL();
133
+ this.limitStylingAppends = true;
134
+ }
135
+ // end custom styling area
136
+ }
137
+ render() {
138
+ return (h(Host, { key: 'ccdd9243da65080f4ac854a4bc6ed4006f0c9f5e' }, h("div", { key: 'e39b500a56740d0f7e23f92e2f73ea386a3bbb5c', ref: el => this.stylingContainer = el }, (!(this.isMobile && !this.isShortCashier) && (h("h2", { key: '3e2e8bf8a07a4249674f4dae7df7a76da6435fa3', class: "CategoryTitle" }, translate(this.typeParameter === 'Withdraw' ? 'Withdraw' : 'Deposit', this.language)))), h("div", { key: '886bedf58fac20d2f620d4600b6588089d0e502c', class: `DepositWithdrawalWrapper ${this.isShortCashier ? 'ShortCashier' : ''}`, style: { height: this.dynamicHeight, marginTop: this.isShortCashier ? '30px' : '0' } }, h("div", { key: 'fa038bb3d599cbd894ba6a14ead4c03bbfa425fd' }, (this.isMobile && !this.isShortCashier ?
139
+ 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)))
140
+ : 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))))));
141
+ }
142
+ async loadWidget() {
143
+ const requestObject = {
144
+ Channel: this.channel,
145
+ Type: this.typeParameter,
146
+ SuccessUrl: this.successUrl,
147
+ CancelUrl: this.cancelUrl,
148
+ FailUrl: this.failUrl,
149
+ Language: this.language,
150
+ productType: this.productType,
151
+ isShortCashier: this.isShortCashier,
152
+ currency: this.currency,
153
+ showBonusSelectionInput: this.showBonusSelectionInput
154
+ };
155
+ try {
156
+ const url = `${this.endpoint}/v1/player/${this.userId}/payment/GetPaymentSession`;
157
+ const response = await fetch(url, {
158
+ method: 'POST',
159
+ headers: {
160
+ 'X-Sessionid': this.session,
161
+ 'Content-Type': 'application/json',
162
+ },
163
+ body: JSON.stringify(requestObject)
164
+ });
165
+ if (!response.ok) {
166
+ const err = await response.text();
167
+ throw new Error(err);
168
+ }
169
+ const data = await response.json();
170
+ if (data.CashierInfo) {
171
+ this.cashierInfoUrl = data.CashierInfo.Url;
172
+ }
173
+ else {
174
+ let apiMessage;
175
+ if (data.ResponseMessage) {
176
+ let foundErrorCode = this.errorCodes.find(code => data.ResponseMessage.includes(code)) || null;
177
+ if (foundErrorCode) {
178
+ apiMessage = translate(`errorCode${foundErrorCode}`, this.language);
179
+ }
180
+ else {
181
+ apiMessage = translate('notFoundErrorCode', this.language);
182
+ }
183
+ }
184
+ else {
185
+ apiMessage = this.type === 'deposit'
186
+ ? translate('denyDeposit', this.language)
187
+ : translate('denyWithdrawal', this.language);
188
+ }
189
+ const messageOBj = { type: 'error', message: apiMessage };
190
+ window.postMessage({ type: 'DenyDepositOrWithdrawal', data: messageOBj }, window.location.href);
191
+ }
192
+ }
193
+ catch (ex) {
194
+ console.error(ex);
195
+ }
196
+ }
197
+ handleMessage(message) {
198
+ var _a, _b, _c, _d, _e, _f, _g, _h;
199
+ if (message.data['MMFE:openFullCashier'] === 'true') {
200
+ window.postMessage({ type: 'GoToDeposit' }, window.location.href);
201
+ window.postMessage({ type: 'CloseShortCashier' }, window.location.href);
202
+ }
203
+ if (message.data["MMFE:setQuickDepositHeight"] && this.isShortCashier) {
204
+ this.dynamicHeight = message.data["MMFE:setQuickDepositHeight"].toString() + 'px';
205
+ }
206
+ if (message.data["MMFE:setIFrameHeight"] && this.isShortCashier) {
207
+ this.dynamicHeight = message.data["MMFE:setIFrameHeight"].toString() + 'px';
208
+ }
209
+ if (((_a = message.data) === null || _a === void 0 ? void 0 : _a.type) === 'mm-hcback-to-merchant') {
210
+ this.doRedirect(message.data.type, this.homeUrl);
211
+ }
212
+ if (((_b = message.data) === null || _b === void 0 ? void 0 : _b.redirect) === 'mm-hc-back-tomerchant') {
213
+ this.doRedirect(message.data.redirect, this.homeUrl);
214
+ }
215
+ if (((_c = message.data) === null || _c === void 0 ? void 0 : _c.redirect) === 'mm-hc-sports') {
216
+ this.doRedirect((_d = message.data) === null || _d === void 0 ? void 0 : _d.redirect, this.sportsUrl);
217
+ }
218
+ if (((_e = message.data) === null || _e === void 0 ? void 0 : _e.redirect) === 'mm-hc-casino') {
219
+ this.doRedirect(window.location.href, this.casinoUrl);
220
+ }
221
+ if (((_f = message.data) === null || _f === void 0 ? void 0 : _f.redirect) === 'mm-hc-contact') {
222
+ window.postMessage({ type: 'CloseShortCashier' }, window.location.href);
223
+ this.doRedirect(window.location.href, this.contactUrl);
224
+ }
225
+ 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') {
226
+ window.postMessage({ type: 'CloseShortCashier' }, window.location.href);
227
+ this.doRedirect(window.location.href, this.depositUrl);
228
+ }
229
+ }
230
+ doRedirect(reason, url) {
231
+ const redirectArgs = { reason, url, cancel: false };
232
+ this.beforeRedirect(redirectArgs);
233
+ if (redirectArgs.cancel) {
234
+ return;
235
+ }
236
+ if (!redirectArgs.url) {
237
+ window.location.href = '/';
238
+ return;
239
+ }
240
+ window.location.href = redirectArgs.url;
241
+ }
242
+ static get watchers() { return {
243
+ "session": ["watchLoadWidget"],
244
+ "userId": ["watchLoadWidget"],
245
+ "isShortCashier": ["watchLoadWidget"],
246
+ "currency": ["watchLoadWidget"],
247
+ "showBonusSelectionInput": ["watchLoadWidget"]
248
+ }; }
249
+ };
250
+ UserDepositWithdrawal.style = UserDepositWithdrawalStyle0;
251
+
252
+ export { UserDepositWithdrawal as user_deposit_withdrawal };
@@ -0,0 +1,20 @@
1
+ import { p as promiseResolve, b as bootstrapLazy } from './index-04d3e726.js';
2
+ export { s as setNonce } from './index-04d3e726.js';
3
+ import { g as globalScripts } from './app-globals-0f993ce5.js';
4
+
5
+ /*
6
+ Stencil Client Patch Browser v4.20.0 | MIT Licensed | https://stenciljs.com
7
+ */
8
+ var patchBrowser = () => {
9
+ const importMeta = import.meta.url;
10
+ const opts = {};
11
+ if (importMeta !== "") {
12
+ opts.resourcesUrl = new URL(".", importMeta).href;
13
+ }
14
+ return promiseResolve(opts);
15
+ };
16
+
17
+ patchBrowser().then(async (options) => {
18
+ await globalScripts();
19
+ return bootstrapLazy([["user-deposit-withdrawal",[[1,"user-deposit-withdrawal",{"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-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],"limitStylingAppends":[32],"dynamicHeight":[32],"cashierInfoUrl":[32]},null,{"session":["watchLoadWidget"],"userId":["watchLoadWidget"],"isShortCashier":["watchLoadWidget"],"currency":["watchLoadWidget"],"showBonusSelectionInput":["watchLoadWidget"]}]]]], options);
20
+ });
@@ -0,0 +1 @@
1
+ module.exports = require('./cjs/index.cjs.js');
package/dist/index.js ADDED
@@ -0,0 +1 @@
1
+ export * from './esm/index.js';
@@ -0,0 +1,17 @@
1
+ import { sass } from "@stencil/sass";
2
+ export const config = {
3
+ namespace: 'user-deposit-withdrawal',
4
+ taskQueue: 'async',
5
+ sourceMap: true,
6
+ minifyJs: false,
7
+ extras: {
8
+ experimentalImportInjection: true
9
+ },
10
+ plugins: [sass()],
11
+ outputTargets: [
12
+ {
13
+ type: 'www',
14
+ serviceWorker: null // disable service workers
15
+ }
16
+ ]
17
+ };
@@ -0,0 +1,17 @@
1
+ import { sass } from "@stencil/sass";
2
+ export const config = {
3
+ namespace: 'user-deposit-withdrawal',
4
+ taskQueue: 'async',
5
+ sourceMap: false,
6
+ minifyJs: true,
7
+ extras: {
8
+ experimentalImportInjection: true
9
+ },
10
+ plugins: [sass()],
11
+ outputTargets: [
12
+ {
13
+ type: 'dist',
14
+ esmLoaderPath: '../loader'
15
+ }
16
+ ]
17
+ };
@@ -0,0 +1,2 @@
1
+ import { Config } from '../../../../../../../../../../../../stencil-public-runtime';
2
+ export declare const config: Config;
@@ -0,0 +1,2 @@
1
+ import { Config } from '../../../../../../../../../../../../stencil-public-runtime';
2
+ export declare const config: Config;
@@ -0,0 +1 @@
1
+ export { UserDepositWithdrawal } from './user-deposit-withdrawal';
@@ -0,0 +1,75 @@
1
+ export interface Request {
2
+ Channel: string;
3
+ Type: string;
4
+ SuccessUrl: string;
5
+ CancelUrl: string;
6
+ FailUrl: string;
7
+ Language: string;
8
+ productType: string;
9
+ }
10
+ export interface CashierInfo {
11
+ Url: string;
12
+ }
13
+ export interface Response {
14
+ CashierInfo: CashierInfo;
15
+ ResponseCode: string;
16
+ RequestId: string;
17
+ }
18
+ export interface RedirectCallbackArgs {
19
+ cancel: boolean;
20
+ reason: string;
21
+ url: string;
22
+ }
23
+ export declare class UserDepositWithdrawal {
24
+ /**
25
+ * Client custom styling via inline style
26
+ */
27
+ clientStyling: string;
28
+ /**
29
+ * Client custom styling via url
30
+ */
31
+ clientStylingUrl: string;
32
+ /**
33
+ * Endpoint
34
+ */
35
+ endpoint: string;
36
+ type: 'deposit' | 'withdraw';
37
+ channel: string;
38
+ language: string;
39
+ productType: string;
40
+ userId: string;
41
+ session: string;
42
+ successUrl: string;
43
+ cancelUrl: string;
44
+ failUrl: string;
45
+ sportsUrl: string;
46
+ casinoUrl: string;
47
+ contactUrl: string;
48
+ depositUrl: string;
49
+ currency: string;
50
+ showBonusSelectionInput: string;
51
+ isShortCashier: boolean;
52
+ homeUrl: string;
53
+ beforeRedirect: (params: RedirectCallbackArgs) => void;
54
+ private limitStylingAppends;
55
+ private dynamicHeight;
56
+ private cashierInfoUrl;
57
+ get typeParameter(): "Deposit" | "Withdraw";
58
+ private bindedHandler;
59
+ private userAgent;
60
+ isMobile: boolean;
61
+ private stylingContainer;
62
+ private errorCodes;
63
+ watchLoadWidget(): void;
64
+ componentWillLoad(): Promise<void>;
65
+ toggleScreen(isMobile: any): void;
66
+ componentDidLoad(): void;
67
+ disconnectedCallback(): void;
68
+ setClientStyling: () => void;
69
+ setClientStylingURL: () => void;
70
+ componentDidRender(): void;
71
+ render(): any;
72
+ private loadWidget;
73
+ private handleMessage;
74
+ private doRedirect;
75
+ }
@@ -0,0 +1,99 @@
1
+ /* eslint-disable */
2
+ /* tslint:disable */
3
+ /**
4
+ * This is an autogenerated file created by the Stencil compiler.
5
+ * It contains typing information for all components that exist in this project.
6
+ */
7
+ import { HTMLStencilElement, JSXBase } from "./stencil-public-runtime";
8
+ import { RedirectCallbackArgs } from "./components/user-deposit-withdrawal/user-deposit-withdrawal";
9
+ export { RedirectCallbackArgs } from "./components/user-deposit-withdrawal/user-deposit-withdrawal";
10
+ export namespace Components {
11
+ interface UserDepositWithdrawal {
12
+ "beforeRedirect": (params: RedirectCallbackArgs) => void;
13
+ "cancelUrl": string;
14
+ "casinoUrl": string;
15
+ "channel": string;
16
+ /**
17
+ * Client custom styling via inline style
18
+ */
19
+ "clientStyling": string;
20
+ /**
21
+ * Client custom styling via url
22
+ */
23
+ "clientStylingUrl": string;
24
+ "contactUrl": string;
25
+ "currency": string;
26
+ "depositUrl": string;
27
+ /**
28
+ * Endpoint
29
+ */
30
+ "endpoint": string;
31
+ "failUrl": string;
32
+ "homeUrl": string;
33
+ "isShortCashier": boolean;
34
+ "language": string;
35
+ "productType": string;
36
+ "session": string;
37
+ "showBonusSelectionInput": string;
38
+ "sportsUrl": string;
39
+ "successUrl": string;
40
+ "type": 'deposit' | 'withdraw';
41
+ "userId": string;
42
+ }
43
+ }
44
+ declare global {
45
+ interface HTMLUserDepositWithdrawalElement extends Components.UserDepositWithdrawal, HTMLStencilElement {
46
+ }
47
+ var HTMLUserDepositWithdrawalElement: {
48
+ prototype: HTMLUserDepositWithdrawalElement;
49
+ new (): HTMLUserDepositWithdrawalElement;
50
+ };
51
+ interface HTMLElementTagNameMap {
52
+ "user-deposit-withdrawal": HTMLUserDepositWithdrawalElement;
53
+ }
54
+ }
55
+ declare namespace LocalJSX {
56
+ interface UserDepositWithdrawal {
57
+ "beforeRedirect"?: (params: RedirectCallbackArgs) => void;
58
+ "cancelUrl"?: string;
59
+ "casinoUrl"?: string;
60
+ "channel": string;
61
+ /**
62
+ * Client custom styling via inline style
63
+ */
64
+ "clientStyling"?: string;
65
+ /**
66
+ * Client custom styling via url
67
+ */
68
+ "clientStylingUrl"?: string;
69
+ "contactUrl"?: string;
70
+ "currency"?: string;
71
+ "depositUrl"?: string;
72
+ /**
73
+ * Endpoint
74
+ */
75
+ "endpoint": string;
76
+ "failUrl"?: string;
77
+ "homeUrl"?: string;
78
+ "isShortCashier"?: boolean;
79
+ "language"?: string;
80
+ "productType"?: string;
81
+ "session"?: string;
82
+ "showBonusSelectionInput"?: string;
83
+ "sportsUrl"?: string;
84
+ "successUrl"?: string;
85
+ "type": 'deposit' | 'withdraw';
86
+ "userId"?: string;
87
+ }
88
+ interface IntrinsicElements {
89
+ "user-deposit-withdrawal": UserDepositWithdrawal;
90
+ }
91
+ }
92
+ export { LocalJSX as JSX };
93
+ declare module "@stencil/core" {
94
+ export namespace JSX {
95
+ interface IntrinsicElements {
96
+ "user-deposit-withdrawal": LocalJSX.UserDepositWithdrawal & JSXBase.HTMLAttributes<HTMLUserDepositWithdrawalElement>;
97
+ }
98
+ }
99
+ }
@@ -0,0 +1 @@
1
+ export * from './components';