@everymatrix/user-deposit-withdrawal 1.13.11
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/index-3568d1cc.js +1111 -0
- package/dist/cjs/index.cjs.js +2 -0
- package/dist/cjs/loader.cjs.js +21 -0
- package/dist/cjs/user-deposit-withdrawal.cjs.entry.js +107 -0
- package/dist/cjs/user-deposit-withdrawal.cjs.js +19 -0
- package/dist/collection/collection-manifest.json +12 -0
- package/dist/collection/components/user-deposit-withdrawal/user-deposit-withdrawal.css +5 -0
- package/dist/collection/components/user-deposit-withdrawal/user-deposit-withdrawal.js +368 -0
- package/dist/collection/index.js +1 -0
- package/dist/collection/utils/utils.js +3 -0
- package/dist/components/index.d.ts +26 -0
- package/dist/components/index.js +1 -0
- package/dist/components/user-deposit-withdrawal.d.ts +11 -0
- package/dist/components/user-deposit-withdrawal.js +137 -0
- package/dist/esm/index-363130bb.js +1085 -0
- package/dist/esm/index.js +1 -0
- package/dist/esm/loader.js +17 -0
- package/dist/esm/polyfills/core-js.js +11 -0
- package/dist/esm/polyfills/css-shim.js +1 -0
- package/dist/esm/polyfills/dom.js +79 -0
- package/dist/esm/polyfills/es5-html-element.js +1 -0
- package/dist/esm/polyfills/index.js +34 -0
- package/dist/esm/polyfills/system.js +6 -0
- package/dist/esm/user-deposit-withdrawal.entry.js +103 -0
- package/dist/esm/user-deposit-withdrawal.js +17 -0
- package/dist/index.cjs.js +1 -0
- package/dist/index.js +1 -0
- package/dist/stencil.config.js +22 -0
- package/dist/types/Users/adrian.pripon/Documents/Work/stencil/widgets-stencil/packages/user-deposit-withdrawal/.stencil/packages/user-deposit-withdrawal/stencil.config.d.ts +2 -0
- package/dist/types/components/user-deposit-withdrawal/user-deposit-withdrawal.d.ts +50 -0
- package/dist/types/components.d.ts +68 -0
- package/dist/types/index.d.ts +1 -0
- package/dist/types/stencil-public-runtime.d.ts +1565 -0
- package/dist/types/utils/utils.d.ts +1 -0
- package/dist/user-deposit-withdrawal/index.esm.js +0 -0
- package/dist/user-deposit-withdrawal/p-05851c56.entry.js +1 -0
- package/dist/user-deposit-withdrawal/p-ed11cb75.js +1 -0
- package/dist/user-deposit-withdrawal/user-deposit-withdrawal.esm.js +1 -0
- package/loader/cdn.js +3 -0
- package/loader/index.cjs.js +3 -0
- package/loader/index.d.ts +12 -0
- package/loader/index.es2017.js +3 -0
- package/loader/index.js +4 -0
- package/loader/package.json +10 -0
- package/package.json +19 -0
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
const index = require('./index-3568d1cc.js');
|
|
6
|
+
|
|
7
|
+
/*
|
|
8
|
+
Stencil Client Patch Esm v2.15.2 | MIT Licensed | https://stenciljs.com
|
|
9
|
+
*/
|
|
10
|
+
const patchEsm = () => {
|
|
11
|
+
return index.promiseResolve();
|
|
12
|
+
};
|
|
13
|
+
|
|
14
|
+
const defineCustomElements = (win, options) => {
|
|
15
|
+
if (typeof window === 'undefined') return Promise.resolve();
|
|
16
|
+
return patchEsm().then(() => {
|
|
17
|
+
return index.bootstrapLazy([["user-deposit-withdrawal.cjs",[[1,"user-deposit-withdrawal",{"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"],"homeUrl":[513,"home-url"],"beforeRedirect":[16]}]]]], options);
|
|
18
|
+
});
|
|
19
|
+
};
|
|
20
|
+
|
|
21
|
+
exports.defineCustomElements = defineCustomElements;
|
|
@@ -0,0 +1,107 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
const index = require('./index-3568d1cc.js');
|
|
6
|
+
|
|
7
|
+
const userDepositWithdrawalCss = ":host{display:block;height:100%;overflow:hidden}";
|
|
8
|
+
|
|
9
|
+
const emptyFunction = () => { };
|
|
10
|
+
const UserDepositWithdrawal = class {
|
|
11
|
+
constructor(hostRef) {
|
|
12
|
+
index.registerInstance(this, hostRef);
|
|
13
|
+
this.beforeRedirect = emptyFunction;
|
|
14
|
+
this.bindedHandler = this.handleMessage.bind(this);
|
|
15
|
+
}
|
|
16
|
+
get typeParameter() {
|
|
17
|
+
if (this.type === 'deposit') {
|
|
18
|
+
return 'Deposit';
|
|
19
|
+
}
|
|
20
|
+
if (this.type === 'withdraw') {
|
|
21
|
+
return 'Withdraw';
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
watchLoadWidget() {
|
|
25
|
+
this.loadWidget();
|
|
26
|
+
}
|
|
27
|
+
async componentWillLoad() {
|
|
28
|
+
await this.loadWidget();
|
|
29
|
+
}
|
|
30
|
+
componentDidLoad() {
|
|
31
|
+
window.addEventListener('message', this.bindedHandler, false);
|
|
32
|
+
}
|
|
33
|
+
disconnectedCallback() {
|
|
34
|
+
window.removeEventListener('message', this.bindedHandler, false);
|
|
35
|
+
}
|
|
36
|
+
render() {
|
|
37
|
+
return (index.h(index.Host, null, index.h("iframe", { width: "100%", height: "100%", src: this.cashierInfoUrl })));
|
|
38
|
+
}
|
|
39
|
+
async loadWidget() {
|
|
40
|
+
const requestObject = {
|
|
41
|
+
Channel: this.channel,
|
|
42
|
+
Type: this.typeParameter,
|
|
43
|
+
SuccessUrl: this.successUrl,
|
|
44
|
+
CancelUrl: this.cancelUrl,
|
|
45
|
+
FailUrl: this.failUrl,
|
|
46
|
+
Language: this.language,
|
|
47
|
+
productType: this.productType,
|
|
48
|
+
};
|
|
49
|
+
try {
|
|
50
|
+
const url = `${this.endpoint}v1/player/${this.userId}/payment/GetPaymentSession`;
|
|
51
|
+
const response = await fetch(url, {
|
|
52
|
+
method: 'POST',
|
|
53
|
+
headers: {
|
|
54
|
+
'X-Sessionid': this.session,
|
|
55
|
+
'Content-Type': 'application/json',
|
|
56
|
+
},
|
|
57
|
+
body: JSON.stringify(requestObject)
|
|
58
|
+
});
|
|
59
|
+
if (!response.ok) {
|
|
60
|
+
const err = await response.text();
|
|
61
|
+
throw new Error(err);
|
|
62
|
+
}
|
|
63
|
+
const data = await response.json();
|
|
64
|
+
this.cashierInfoUrl = data.CashierInfo.Url;
|
|
65
|
+
}
|
|
66
|
+
catch (ex) {
|
|
67
|
+
console.error(ex);
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
handleMessage(message) {
|
|
71
|
+
var _a, _b, _c, _d, _e, _f;
|
|
72
|
+
if (((_a = message.data) === null || _a === void 0 ? void 0 : _a.type) === 'mm-hcback-to-merchant') {
|
|
73
|
+
this.doRedirect(message.data.type, this.homeUrl);
|
|
74
|
+
}
|
|
75
|
+
if (((_b = message.data) === null || _b === void 0 ? void 0 : _b.redirect) === 'mm-hc-back-tomerchant') {
|
|
76
|
+
this.doRedirect(message.data.redirect, this.homeUrl);
|
|
77
|
+
}
|
|
78
|
+
if (((_c = message.data) === null || _c === void 0 ? void 0 : _c.redirect) === 'mm-hc-sports') {
|
|
79
|
+
this.doRedirect((_d = message.data) === null || _d === void 0 ? void 0 : _d.redirect, this.sportsUrl);
|
|
80
|
+
}
|
|
81
|
+
if (((_e = message.data) === null || _e === void 0 ? void 0 : _e.redirect) === 'mm-hc-casino') {
|
|
82
|
+
this.doRedirect(window.location.href, this.casinoUrl);
|
|
83
|
+
}
|
|
84
|
+
if (((_f = message.data) === null || _f === void 0 ? void 0 : _f.redirect) === 'mm-hc-contact') {
|
|
85
|
+
this.doRedirect(window.location.href, this.contactUrl);
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
doRedirect(reason, url) {
|
|
89
|
+
const redirectArgs = { reason, url, cancel: false };
|
|
90
|
+
this.beforeRedirect(redirectArgs);
|
|
91
|
+
if (redirectArgs.cancel) {
|
|
92
|
+
return;
|
|
93
|
+
}
|
|
94
|
+
if (!redirectArgs.url) {
|
|
95
|
+
window.location.href = '/';
|
|
96
|
+
return;
|
|
97
|
+
}
|
|
98
|
+
window.location.href = redirectArgs.url;
|
|
99
|
+
}
|
|
100
|
+
static get watchers() { return {
|
|
101
|
+
"session": ["watchLoadWidget"],
|
|
102
|
+
"userId": ["watchLoadWidget"]
|
|
103
|
+
}; }
|
|
104
|
+
};
|
|
105
|
+
UserDepositWithdrawal.style = userDepositWithdrawalCss;
|
|
106
|
+
|
|
107
|
+
exports.user_deposit_withdrawal = UserDepositWithdrawal;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
const index = require('./index-3568d1cc.js');
|
|
4
|
+
|
|
5
|
+
/*
|
|
6
|
+
Stencil Client Patch Browser v2.15.2 | MIT Licensed | https://stenciljs.com
|
|
7
|
+
*/
|
|
8
|
+
const patchBrowser = () => {
|
|
9
|
+
const importMeta = (typeof document === 'undefined' ? new (require('u' + 'rl').URL)('file:' + __filename).href : (document.currentScript && document.currentScript.src || new URL('user-deposit-withdrawal.cjs.js', document.baseURI).href));
|
|
10
|
+
const opts = {};
|
|
11
|
+
if (importMeta !== '') {
|
|
12
|
+
opts.resourcesUrl = new URL('.', importMeta).href;
|
|
13
|
+
}
|
|
14
|
+
return index.promiseResolve(opts);
|
|
15
|
+
};
|
|
16
|
+
|
|
17
|
+
patchBrowser().then(options => {
|
|
18
|
+
return index.bootstrapLazy([["user-deposit-withdrawal.cjs",[[1,"user-deposit-withdrawal",{"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"],"homeUrl":[513,"home-url"],"beforeRedirect":[16]}]]]], options);
|
|
19
|
+
});
|
|
@@ -0,0 +1,368 @@
|
|
|
1
|
+
import { Component, Host, h, Prop, Watch } from '@stencil/core';
|
|
2
|
+
const emptyFunction = () => { };
|
|
3
|
+
export class UserDepositWithdrawal {
|
|
4
|
+
constructor() {
|
|
5
|
+
this.beforeRedirect = emptyFunction;
|
|
6
|
+
this.bindedHandler = this.handleMessage.bind(this);
|
|
7
|
+
}
|
|
8
|
+
get typeParameter() {
|
|
9
|
+
if (this.type === 'deposit') {
|
|
10
|
+
return 'Deposit';
|
|
11
|
+
}
|
|
12
|
+
if (this.type === 'withdraw') {
|
|
13
|
+
return 'Withdraw';
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
watchLoadWidget() {
|
|
17
|
+
this.loadWidget();
|
|
18
|
+
}
|
|
19
|
+
async componentWillLoad() {
|
|
20
|
+
await this.loadWidget();
|
|
21
|
+
}
|
|
22
|
+
componentDidLoad() {
|
|
23
|
+
window.addEventListener('message', this.bindedHandler, false);
|
|
24
|
+
}
|
|
25
|
+
disconnectedCallback() {
|
|
26
|
+
window.removeEventListener('message', this.bindedHandler, false);
|
|
27
|
+
}
|
|
28
|
+
render() {
|
|
29
|
+
return (h(Host, null,
|
|
30
|
+
h("iframe", { width: "100%", height: "100%", src: this.cashierInfoUrl })));
|
|
31
|
+
}
|
|
32
|
+
async loadWidget() {
|
|
33
|
+
const requestObject = {
|
|
34
|
+
Channel: this.channel,
|
|
35
|
+
Type: this.typeParameter,
|
|
36
|
+
SuccessUrl: this.successUrl,
|
|
37
|
+
CancelUrl: this.cancelUrl,
|
|
38
|
+
FailUrl: this.failUrl,
|
|
39
|
+
Language: this.language,
|
|
40
|
+
productType: this.productType,
|
|
41
|
+
};
|
|
42
|
+
try {
|
|
43
|
+
const url = `${this.endpoint}v1/player/${this.userId}/payment/GetPaymentSession`;
|
|
44
|
+
const response = await fetch(url, {
|
|
45
|
+
method: 'POST',
|
|
46
|
+
headers: {
|
|
47
|
+
'X-Sessionid': this.session,
|
|
48
|
+
'Content-Type': 'application/json',
|
|
49
|
+
},
|
|
50
|
+
body: JSON.stringify(requestObject)
|
|
51
|
+
});
|
|
52
|
+
if (!response.ok) {
|
|
53
|
+
const err = await response.text();
|
|
54
|
+
throw new Error(err);
|
|
55
|
+
}
|
|
56
|
+
const data = await response.json();
|
|
57
|
+
this.cashierInfoUrl = data.CashierInfo.Url;
|
|
58
|
+
}
|
|
59
|
+
catch (ex) {
|
|
60
|
+
console.error(ex);
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
handleMessage(message) {
|
|
64
|
+
var _a, _b, _c, _d, _e, _f;
|
|
65
|
+
if (((_a = message.data) === null || _a === void 0 ? void 0 : _a.type) === 'mm-hcback-to-merchant') {
|
|
66
|
+
this.doRedirect(message.data.type, this.homeUrl);
|
|
67
|
+
}
|
|
68
|
+
if (((_b = message.data) === null || _b === void 0 ? void 0 : _b.redirect) === 'mm-hc-back-tomerchant') {
|
|
69
|
+
this.doRedirect(message.data.redirect, this.homeUrl);
|
|
70
|
+
}
|
|
71
|
+
if (((_c = message.data) === null || _c === void 0 ? void 0 : _c.redirect) === 'mm-hc-sports') {
|
|
72
|
+
this.doRedirect((_d = message.data) === null || _d === void 0 ? void 0 : _d.redirect, this.sportsUrl);
|
|
73
|
+
}
|
|
74
|
+
if (((_e = message.data) === null || _e === void 0 ? void 0 : _e.redirect) === 'mm-hc-casino') {
|
|
75
|
+
this.doRedirect(window.location.href, this.casinoUrl);
|
|
76
|
+
}
|
|
77
|
+
if (((_f = message.data) === null || _f === void 0 ? void 0 : _f.redirect) === 'mm-hc-contact') {
|
|
78
|
+
this.doRedirect(window.location.href, this.contactUrl);
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
doRedirect(reason, url) {
|
|
82
|
+
const redirectArgs = { reason, url, cancel: false };
|
|
83
|
+
this.beforeRedirect(redirectArgs);
|
|
84
|
+
if (redirectArgs.cancel) {
|
|
85
|
+
return;
|
|
86
|
+
}
|
|
87
|
+
if (!redirectArgs.url) {
|
|
88
|
+
window.location.href = '/';
|
|
89
|
+
return;
|
|
90
|
+
}
|
|
91
|
+
window.location.href = redirectArgs.url;
|
|
92
|
+
}
|
|
93
|
+
static get is() { return "user-deposit-withdrawal"; }
|
|
94
|
+
static get encapsulation() { return "shadow"; }
|
|
95
|
+
static get originalStyleUrls() { return {
|
|
96
|
+
"$": ["user-deposit-withdrawal.scss"]
|
|
97
|
+
}; }
|
|
98
|
+
static get styleUrls() { return {
|
|
99
|
+
"$": ["user-deposit-withdrawal.css"]
|
|
100
|
+
}; }
|
|
101
|
+
static get properties() { return {
|
|
102
|
+
"endpoint": {
|
|
103
|
+
"type": "string",
|
|
104
|
+
"mutable": false,
|
|
105
|
+
"complexType": {
|
|
106
|
+
"original": "string",
|
|
107
|
+
"resolved": "string",
|
|
108
|
+
"references": {}
|
|
109
|
+
},
|
|
110
|
+
"required": true,
|
|
111
|
+
"optional": false,
|
|
112
|
+
"docs": {
|
|
113
|
+
"tags": [],
|
|
114
|
+
"text": ""
|
|
115
|
+
},
|
|
116
|
+
"attribute": "endpoint",
|
|
117
|
+
"reflect": true
|
|
118
|
+
},
|
|
119
|
+
"type": {
|
|
120
|
+
"type": "string",
|
|
121
|
+
"mutable": false,
|
|
122
|
+
"complexType": {
|
|
123
|
+
"original": "'deposit' | 'withdraw'",
|
|
124
|
+
"resolved": "\"deposit\" | \"withdraw\"",
|
|
125
|
+
"references": {}
|
|
126
|
+
},
|
|
127
|
+
"required": true,
|
|
128
|
+
"optional": false,
|
|
129
|
+
"docs": {
|
|
130
|
+
"tags": [],
|
|
131
|
+
"text": ""
|
|
132
|
+
},
|
|
133
|
+
"attribute": "type",
|
|
134
|
+
"reflect": true
|
|
135
|
+
},
|
|
136
|
+
"channel": {
|
|
137
|
+
"type": "string",
|
|
138
|
+
"mutable": false,
|
|
139
|
+
"complexType": {
|
|
140
|
+
"original": "string",
|
|
141
|
+
"resolved": "string",
|
|
142
|
+
"references": {}
|
|
143
|
+
},
|
|
144
|
+
"required": true,
|
|
145
|
+
"optional": false,
|
|
146
|
+
"docs": {
|
|
147
|
+
"tags": [],
|
|
148
|
+
"text": ""
|
|
149
|
+
},
|
|
150
|
+
"attribute": "channel",
|
|
151
|
+
"reflect": true
|
|
152
|
+
},
|
|
153
|
+
"language": {
|
|
154
|
+
"type": "string",
|
|
155
|
+
"mutable": false,
|
|
156
|
+
"complexType": {
|
|
157
|
+
"original": "string",
|
|
158
|
+
"resolved": "string",
|
|
159
|
+
"references": {}
|
|
160
|
+
},
|
|
161
|
+
"required": false,
|
|
162
|
+
"optional": false,
|
|
163
|
+
"docs": {
|
|
164
|
+
"tags": [],
|
|
165
|
+
"text": ""
|
|
166
|
+
},
|
|
167
|
+
"attribute": "language",
|
|
168
|
+
"reflect": true
|
|
169
|
+
},
|
|
170
|
+
"productType": {
|
|
171
|
+
"type": "string",
|
|
172
|
+
"mutable": false,
|
|
173
|
+
"complexType": {
|
|
174
|
+
"original": "string",
|
|
175
|
+
"resolved": "string",
|
|
176
|
+
"references": {}
|
|
177
|
+
},
|
|
178
|
+
"required": false,
|
|
179
|
+
"optional": false,
|
|
180
|
+
"docs": {
|
|
181
|
+
"tags": [],
|
|
182
|
+
"text": ""
|
|
183
|
+
},
|
|
184
|
+
"attribute": "product-type",
|
|
185
|
+
"reflect": true
|
|
186
|
+
},
|
|
187
|
+
"userId": {
|
|
188
|
+
"type": "string",
|
|
189
|
+
"mutable": false,
|
|
190
|
+
"complexType": {
|
|
191
|
+
"original": "string",
|
|
192
|
+
"resolved": "string",
|
|
193
|
+
"references": {}
|
|
194
|
+
},
|
|
195
|
+
"required": false,
|
|
196
|
+
"optional": false,
|
|
197
|
+
"docs": {
|
|
198
|
+
"tags": [],
|
|
199
|
+
"text": ""
|
|
200
|
+
},
|
|
201
|
+
"attribute": "user-id",
|
|
202
|
+
"reflect": true
|
|
203
|
+
},
|
|
204
|
+
"session": {
|
|
205
|
+
"type": "string",
|
|
206
|
+
"mutable": false,
|
|
207
|
+
"complexType": {
|
|
208
|
+
"original": "string",
|
|
209
|
+
"resolved": "string",
|
|
210
|
+
"references": {}
|
|
211
|
+
},
|
|
212
|
+
"required": false,
|
|
213
|
+
"optional": false,
|
|
214
|
+
"docs": {
|
|
215
|
+
"tags": [],
|
|
216
|
+
"text": ""
|
|
217
|
+
},
|
|
218
|
+
"attribute": "session",
|
|
219
|
+
"reflect": true
|
|
220
|
+
},
|
|
221
|
+
"successUrl": {
|
|
222
|
+
"type": "string",
|
|
223
|
+
"mutable": false,
|
|
224
|
+
"complexType": {
|
|
225
|
+
"original": "string",
|
|
226
|
+
"resolved": "string",
|
|
227
|
+
"references": {}
|
|
228
|
+
},
|
|
229
|
+
"required": false,
|
|
230
|
+
"optional": false,
|
|
231
|
+
"docs": {
|
|
232
|
+
"tags": [],
|
|
233
|
+
"text": ""
|
|
234
|
+
},
|
|
235
|
+
"attribute": "success-url",
|
|
236
|
+
"reflect": true
|
|
237
|
+
},
|
|
238
|
+
"cancelUrl": {
|
|
239
|
+
"type": "string",
|
|
240
|
+
"mutable": false,
|
|
241
|
+
"complexType": {
|
|
242
|
+
"original": "string",
|
|
243
|
+
"resolved": "string",
|
|
244
|
+
"references": {}
|
|
245
|
+
},
|
|
246
|
+
"required": false,
|
|
247
|
+
"optional": false,
|
|
248
|
+
"docs": {
|
|
249
|
+
"tags": [],
|
|
250
|
+
"text": ""
|
|
251
|
+
},
|
|
252
|
+
"attribute": "cancel-url",
|
|
253
|
+
"reflect": true
|
|
254
|
+
},
|
|
255
|
+
"failUrl": {
|
|
256
|
+
"type": "string",
|
|
257
|
+
"mutable": false,
|
|
258
|
+
"complexType": {
|
|
259
|
+
"original": "string",
|
|
260
|
+
"resolved": "string",
|
|
261
|
+
"references": {}
|
|
262
|
+
},
|
|
263
|
+
"required": false,
|
|
264
|
+
"optional": false,
|
|
265
|
+
"docs": {
|
|
266
|
+
"tags": [],
|
|
267
|
+
"text": ""
|
|
268
|
+
},
|
|
269
|
+
"attribute": "fail-url",
|
|
270
|
+
"reflect": true
|
|
271
|
+
},
|
|
272
|
+
"sportsUrl": {
|
|
273
|
+
"type": "string",
|
|
274
|
+
"mutable": false,
|
|
275
|
+
"complexType": {
|
|
276
|
+
"original": "string",
|
|
277
|
+
"resolved": "string",
|
|
278
|
+
"references": {}
|
|
279
|
+
},
|
|
280
|
+
"required": false,
|
|
281
|
+
"optional": false,
|
|
282
|
+
"docs": {
|
|
283
|
+
"tags": [],
|
|
284
|
+
"text": ""
|
|
285
|
+
},
|
|
286
|
+
"attribute": "sports-url",
|
|
287
|
+
"reflect": true
|
|
288
|
+
},
|
|
289
|
+
"casinoUrl": {
|
|
290
|
+
"type": "string",
|
|
291
|
+
"mutable": false,
|
|
292
|
+
"complexType": {
|
|
293
|
+
"original": "string",
|
|
294
|
+
"resolved": "string",
|
|
295
|
+
"references": {}
|
|
296
|
+
},
|
|
297
|
+
"required": false,
|
|
298
|
+
"optional": false,
|
|
299
|
+
"docs": {
|
|
300
|
+
"tags": [],
|
|
301
|
+
"text": ""
|
|
302
|
+
},
|
|
303
|
+
"attribute": "casino-url",
|
|
304
|
+
"reflect": true
|
|
305
|
+
},
|
|
306
|
+
"contactUrl": {
|
|
307
|
+
"type": "string",
|
|
308
|
+
"mutable": false,
|
|
309
|
+
"complexType": {
|
|
310
|
+
"original": "string",
|
|
311
|
+
"resolved": "string",
|
|
312
|
+
"references": {}
|
|
313
|
+
},
|
|
314
|
+
"required": false,
|
|
315
|
+
"optional": false,
|
|
316
|
+
"docs": {
|
|
317
|
+
"tags": [],
|
|
318
|
+
"text": ""
|
|
319
|
+
},
|
|
320
|
+
"attribute": "contact-url",
|
|
321
|
+
"reflect": true
|
|
322
|
+
},
|
|
323
|
+
"homeUrl": {
|
|
324
|
+
"type": "string",
|
|
325
|
+
"mutable": false,
|
|
326
|
+
"complexType": {
|
|
327
|
+
"original": "string",
|
|
328
|
+
"resolved": "string",
|
|
329
|
+
"references": {}
|
|
330
|
+
},
|
|
331
|
+
"required": false,
|
|
332
|
+
"optional": false,
|
|
333
|
+
"docs": {
|
|
334
|
+
"tags": [],
|
|
335
|
+
"text": ""
|
|
336
|
+
},
|
|
337
|
+
"attribute": "home-url",
|
|
338
|
+
"reflect": true
|
|
339
|
+
},
|
|
340
|
+
"beforeRedirect": {
|
|
341
|
+
"type": "unknown",
|
|
342
|
+
"mutable": false,
|
|
343
|
+
"complexType": {
|
|
344
|
+
"original": "(params: RedirectCallbackArgs) => void",
|
|
345
|
+
"resolved": "(params: RedirectCallbackArgs) => void",
|
|
346
|
+
"references": {
|
|
347
|
+
"RedirectCallbackArgs": {
|
|
348
|
+
"location": "local"
|
|
349
|
+
}
|
|
350
|
+
}
|
|
351
|
+
},
|
|
352
|
+
"required": false,
|
|
353
|
+
"optional": false,
|
|
354
|
+
"docs": {
|
|
355
|
+
"tags": [],
|
|
356
|
+
"text": ""
|
|
357
|
+
},
|
|
358
|
+
"defaultValue": "emptyFunction"
|
|
359
|
+
}
|
|
360
|
+
}; }
|
|
361
|
+
static get watchers() { return [{
|
|
362
|
+
"propName": "session",
|
|
363
|
+
"methodName": "watchLoadWidget"
|
|
364
|
+
}, {
|
|
365
|
+
"propName": "userId",
|
|
366
|
+
"methodName": "watchLoadWidget"
|
|
367
|
+
}]; }
|
|
368
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './components';
|
|
@@ -0,0 +1,26 @@
|
|
|
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';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { setAssetPath, setPlatformOptions } from '@stencil/core/internal/client';
|
|
@@ -0,0 +1,11 @@
|
|
|
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;
|