@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.
Files changed (49) 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/loader.cjs.js +7 -13
  4. package/dist/cjs/user-deposit-withdrawal.cjs.entry.js +226 -223
  5. package/dist/cjs/user-deposit-withdrawal.cjs.js +17 -11
  6. package/dist/collection/collection-manifest.json +3 -3
  7. package/dist/collection/components/user-deposit-withdrawal/index.js +1 -0
  8. package/dist/collection/components/user-deposit-withdrawal/user-deposit-withdrawal.js +581 -578
  9. package/dist/collection/utils/locale.utils.js +38 -38
  10. package/dist/collection/utils/utils.js +17 -17
  11. package/dist/esm/app-globals-0f993ce5.js +3 -0
  12. package/dist/esm/index-04d3e726.js +1238 -0
  13. package/dist/esm/loader.js +7 -13
  14. package/dist/esm/user-deposit-withdrawal.entry.js +226 -223
  15. package/dist/esm/user-deposit-withdrawal.js +14 -11
  16. package/dist/stencil.config.dev.js +17 -0
  17. package/dist/stencil.config.js +14 -19
  18. 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
  19. 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
  20. package/dist/types/components/user-deposit-withdrawal/index.d.ts +1 -0
  21. package/dist/types/components/user-deposit-withdrawal/user-deposit-withdrawal.d.ts +65 -65
  22. package/dist/types/components.d.ts +1 -0
  23. package/dist/types/stencil-public-runtime.d.ts +142 -33
  24. package/dist/user-deposit-withdrawal/p-53a8ad89.js +2 -0
  25. package/dist/user-deposit-withdrawal/p-96b03b5e.entry.js +1 -0
  26. package/dist/user-deposit-withdrawal/p-e1255160.js +1 -0
  27. package/dist/user-deposit-withdrawal/user-deposit-withdrawal.esm.js +1 -1
  28. package/loader/cdn.js +1 -3
  29. package/loader/index.cjs.js +1 -3
  30. package/loader/index.d.ts +13 -1
  31. package/loader/index.es2017.js +1 -3
  32. package/loader/index.js +1 -3
  33. package/loader/package.json +1 -0
  34. package/package.json +8 -1
  35. package/dist/cjs/index-efde0a55.js +0 -1264
  36. package/dist/components/index.d.ts +0 -26
  37. package/dist/components/index.js +0 -1
  38. package/dist/components/user-deposit-withdrawal.d.ts +0 -11
  39. package/dist/components/user-deposit-withdrawal.js +0 -304
  40. package/dist/esm/index-767966f2.js +0 -1238
  41. package/dist/esm/polyfills/core-js.js +0 -11
  42. package/dist/esm/polyfills/css-shim.js +0 -1
  43. package/dist/esm/polyfills/dom.js +0 -79
  44. package/dist/esm/polyfills/es5-html-element.js +0 -1
  45. package/dist/esm/polyfills/index.js +0 -34
  46. package/dist/esm/polyfills/system.js +0 -6
  47. 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
  48. package/dist/user-deposit-withdrawal/p-4c4319e6.js +0 -1
  49. package/dist/user-deposit-withdrawal/p-518ce9fb.entry.js +0 -1
@@ -1,598 +1,601 @@
1
- import { Component, Host, Prop, Watch, State, h } from '@stencil/core';
2
- import { translate } from '../../utils/locale.utils';
3
- import { isMobile } from '../../utils/utils';
1
+ import { Host, h } from "@stencil/core";
2
+ import { translate } from "../../utils/locale.utils";
3
+ import { isMobile } from "../../utils/utils";
4
4
  const emptyFunction = () => { };
5
5
  export class UserDepositWithdrawal {
6
- constructor() {
7
- /**
8
- * Client custom styling via inline style
9
- */
10
- this.clientStyling = '';
11
- /**
12
- * Client custom styling via url
13
- */
14
- this.clientStylingUrl = '';
15
- /*
16
- * Operator selected currency
17
- */
18
- this.currency = '';
19
- /*
20
- * Display bonus dropdown
21
- */
22
- this.showBonusSelectionInput = 'true';
23
- /*
24
- * State of deposit - short cashier enabled or not
25
- */
26
- this.isShortCashier = false;
27
- this.beforeRedirect = emptyFunction;
28
- this.limitStylingAppends = false;
29
- this.bindedHandler = this.handleMessage.bind(this);
30
- this.userAgent = window.navigator.userAgent;
31
- this.isMobile = isMobile(this.userAgent);
32
- this.errorCodes = ["21123", "21122"];
33
- this.setClientStyling = () => {
34
- let sheet = document.createElement('style');
35
- sheet.innerHTML = this.clientStyling;
36
- this.stylingContainer.prepend(sheet);
37
- };
38
- this.setClientStylingURL = () => {
39
- let url = new URL(this.clientStylingUrl);
40
- let cssFile = document.createElement('style');
41
- fetch(url.href)
42
- .then((res) => res.text())
43
- .then((data) => {
44
- cssFile.innerHTML = data;
45
- setTimeout(() => { this.stylingContainer.prepend(cssFile); }, 1);
46
- })
47
- .catch((err) => {
48
- console.log('error ', err);
49
- });
50
- };
51
- }
52
- get typeParameter() {
53
- if (this.type === 'deposit') {
54
- return 'Deposit';
6
+ constructor() {
7
+ this.bindedHandler = this.handleMessage.bind(this);
8
+ this.userAgent = window.navigator.userAgent;
9
+ this.isMobile = isMobile(this.userAgent);
10
+ this.errorCodes = ["21123", "21122"];
11
+ this.setClientStyling = () => {
12
+ let sheet = document.createElement('style');
13
+ sheet.innerHTML = this.clientStyling;
14
+ this.stylingContainer.prepend(sheet);
15
+ };
16
+ this.setClientStylingURL = () => {
17
+ let url = new URL(this.clientStylingUrl);
18
+ let cssFile = document.createElement('style');
19
+ fetch(url.href)
20
+ .then((res) => res.text())
21
+ .then((data) => {
22
+ cssFile.innerHTML = data;
23
+ setTimeout(() => { this.stylingContainer.prepend(cssFile); }, 1);
24
+ })
25
+ .catch((err) => {
26
+ console.log('error ', err);
27
+ });
28
+ };
29
+ this.clientStyling = '';
30
+ this.clientStylingUrl = '';
31
+ this.endpoint = undefined;
32
+ this.type = undefined;
33
+ this.channel = undefined;
34
+ this.language = undefined;
35
+ this.productType = undefined;
36
+ this.userId = undefined;
37
+ this.session = undefined;
38
+ this.successUrl = undefined;
39
+ this.cancelUrl = undefined;
40
+ this.failUrl = undefined;
41
+ this.sportsUrl = undefined;
42
+ this.casinoUrl = undefined;
43
+ this.contactUrl = undefined;
44
+ this.depositUrl = undefined;
45
+ this.currency = '';
46
+ this.showBonusSelectionInput = 'true';
47
+ this.isShortCashier = false;
48
+ this.homeUrl = undefined;
49
+ this.beforeRedirect = emptyFunction;
50
+ this.limitStylingAppends = false;
51
+ this.dynamicHeight = undefined;
52
+ this.cashierInfoUrl = undefined;
55
53
  }
56
- if (this.type === 'withdraw') {
57
- return 'Withdraw';
58
- }
59
- }
60
- watchLoadWidget() {
61
- this.loadWidget();
62
- }
63
- async componentWillLoad() {
64
- await this.loadWidget();
65
- }
66
- toggleScreen(isMobile) {
67
- window.postMessage({ type: 'PlayerAccountMenuActive', isMobile }, window.location.href);
68
- }
69
- componentDidLoad() {
70
- window.addEventListener('message', this.bindedHandler, false);
71
- }
72
- disconnectedCallback() {
73
- window.removeEventListener('message', this.bindedHandler, false);
74
- }
75
- componentDidRender() {
76
- // start custom styling area
77
- if (!this.limitStylingAppends && this.stylingContainer) {
78
- if (this.clientStyling)
79
- this.setClientStyling();
80
- if (this.clientStylingUrl)
81
- this.setClientStylingURL();
82
- this.limitStylingAppends = true;
83
- }
84
- // end custom styling area
85
- }
86
- render() {
87
- return (h(Host, null,
88
- h("div", { ref: el => this.stylingContainer = el },
89
- (!(this.isMobile && !this.isShortCashier) && (h("h2", { class: "CategoryTitle" }, translate(this.typeParameter === 'Withdraw' ? 'Withdraw' : 'Deposit', this.language)))),
90
- h("div", { class: `DepositWithdrawalWrapper ${this.isShortCashier ? 'ShortCashier' : ''}`, style: { height: this.dynamicHeight, marginTop: this.isShortCashier ? '30px' : '0' } },
91
- h("div", null, (this.isMobile && !this.isShortCashier ?
92
- h("div", { class: "MenuReturnButton", onClick: () => this.toggleScreen(this.isMobile) },
93
- h("svg", { xmlns: "http://www.w3.org/2000/svg", width: "15", height: "15", viewBox: "0 0 15 15" },
94
- h("defs", null),
95
- h("g", { transform: "translate(-20 -158)" },
96
- h("g", { transform: "translate(20 158)" },
97
- 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)" })))),
98
- h("h2", { class: "CategoryTitleMobile" }, translate(this.typeParameter === 'Withdraw' ? 'Withdraw' : 'Deposit', this.language)))
99
- : null)),
100
- 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))))));
101
- }
102
- async loadWidget() {
103
- const requestObject = {
104
- Channel: this.channel,
105
- Type: this.typeParameter,
106
- SuccessUrl: this.successUrl,
107
- CancelUrl: this.cancelUrl,
108
- FailUrl: this.failUrl,
109
- Language: this.language,
110
- productType: this.productType,
111
- isShortCashier: this.isShortCashier,
112
- currency: this.currency,
113
- showBonusSelectionInput: this.showBonusSelectionInput
114
- };
115
- try {
116
- const url = `${this.endpoint}/v1/player/${this.userId}/payment/GetPaymentSession`;
117
- const response = await fetch(url, {
118
- method: 'POST',
119
- headers: {
120
- 'X-Sessionid': this.session,
121
- 'Content-Type': 'application/json',
122
- },
123
- body: JSON.stringify(requestObject)
124
- });
125
- if (!response.ok) {
126
- const err = await response.text();
127
- throw new Error(err);
128
- }
129
- const data = await response.json();
130
- if (data.CashierInfo) {
131
- this.cashierInfoUrl = data.CashierInfo.Url;
132
- }
133
- else {
134
- let apiMessage;
135
- if (data.ResponseMessage) {
136
- let foundErrorCode = this.errorCodes.find(code => data.ResponseMessage.includes(code)) || null;
137
- if (foundErrorCode) {
138
- apiMessage = translate(`errorCode${foundErrorCode}`, this.language);
139
- }
140
- else {
141
- apiMessage = translate('notFoundErrorCode', this.language);
142
- }
54
+ get typeParameter() {
55
+ if (this.type === 'deposit') {
56
+ return 'Deposit';
143
57
  }
144
- else {
145
- apiMessage = this.type === 'deposit'
146
- ? translate('denyDeposit', this.language)
147
- : translate('denyWithdrawal', this.language);
58
+ if (this.type === 'withdraw') {
59
+ return 'Withdraw';
148
60
  }
149
- const messageOBj = { type: 'error', message: apiMessage };
150
- window.postMessage({ type: 'DenyDepositOrWithdrawal', data: messageOBj }, window.location.href);
151
- }
152
61
  }
153
- catch (ex) {
154
- console.error(ex);
62
+ watchLoadWidget() {
63
+ this.loadWidget();
155
64
  }
156
- }
157
- handleMessage(message) {
158
- var _a, _b, _c, _d, _e, _f, _g, _h;
159
- if (message.data['MMFE:openFullCashier'] === 'true') {
160
- window.postMessage({ type: 'GoToDeposit' }, window.location.href);
161
- window.postMessage({ type: 'CloseShortCashier' }, window.location.href);
65
+ async componentWillLoad() {
66
+ await this.loadWidget();
162
67
  }
163
- if (message.data["MMFE:setQuickDepositHeight"] && this.isShortCashier) {
164
- this.dynamicHeight = message.data["MMFE:setQuickDepositHeight"].toString() + 'px';
68
+ toggleScreen(isMobile) {
69
+ window.postMessage({ type: 'PlayerAccountMenuActive', isMobile }, window.location.href);
165
70
  }
166
- if (message.data["MMFE:setIFrameHeight"] && this.isShortCashier) {
167
- this.dynamicHeight = message.data["MMFE:setIFrameHeight"].toString() + 'px';
71
+ componentDidLoad() {
72
+ window.addEventListener('message', this.bindedHandler, false);
168
73
  }
169
- if (((_a = message.data) === null || _a === void 0 ? void 0 : _a.type) === 'mm-hcback-to-merchant') {
170
- this.doRedirect(message.data.type, this.homeUrl);
74
+ disconnectedCallback() {
75
+ window.removeEventListener('message', this.bindedHandler, false);
171
76
  }
172
- if (((_b = message.data) === null || _b === void 0 ? void 0 : _b.redirect) === 'mm-hc-back-tomerchant') {
173
- this.doRedirect(message.data.redirect, this.homeUrl);
77
+ componentDidRender() {
78
+ // start custom styling area
79
+ if (!this.limitStylingAppends && this.stylingContainer) {
80
+ if (this.clientStyling)
81
+ this.setClientStyling();
82
+ if (this.clientStylingUrl)
83
+ this.setClientStylingURL();
84
+ this.limitStylingAppends = true;
85
+ }
86
+ // end custom styling area
174
87
  }
175
- if (((_c = message.data) === null || _c === void 0 ? void 0 : _c.redirect) === 'mm-hc-sports') {
176
- this.doRedirect((_d = message.data) === null || _d === void 0 ? void 0 : _d.redirect, this.sportsUrl);
88
+ render() {
89
+ 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 ?
90
+ 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)))
91
+ : 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))))));
177
92
  }
178
- if (((_e = message.data) === null || _e === void 0 ? void 0 : _e.redirect) === 'mm-hc-casino') {
179
- this.doRedirect(window.location.href, this.casinoUrl);
93
+ async loadWidget() {
94
+ const requestObject = {
95
+ Channel: this.channel,
96
+ Type: this.typeParameter,
97
+ SuccessUrl: this.successUrl,
98
+ CancelUrl: this.cancelUrl,
99
+ FailUrl: this.failUrl,
100
+ Language: this.language,
101
+ productType: this.productType,
102
+ isShortCashier: this.isShortCashier,
103
+ currency: this.currency,
104
+ showBonusSelectionInput: this.showBonusSelectionInput
105
+ };
106
+ try {
107
+ const url = `${this.endpoint}/v1/player/${this.userId}/payment/GetPaymentSession`;
108
+ const response = await fetch(url, {
109
+ method: 'POST',
110
+ headers: {
111
+ 'X-Sessionid': this.session,
112
+ 'Content-Type': 'application/json',
113
+ },
114
+ body: JSON.stringify(requestObject)
115
+ });
116
+ if (!response.ok) {
117
+ const err = await response.text();
118
+ throw new Error(err);
119
+ }
120
+ const data = await response.json();
121
+ if (data.CashierInfo) {
122
+ this.cashierInfoUrl = data.CashierInfo.Url;
123
+ }
124
+ else {
125
+ let apiMessage;
126
+ if (data.ResponseMessage) {
127
+ let foundErrorCode = this.errorCodes.find(code => data.ResponseMessage.includes(code)) || null;
128
+ if (foundErrorCode) {
129
+ apiMessage = translate(`errorCode${foundErrorCode}`, this.language);
130
+ }
131
+ else {
132
+ apiMessage = translate('notFoundErrorCode', this.language);
133
+ }
134
+ }
135
+ else {
136
+ apiMessage = this.type === 'deposit'
137
+ ? translate('denyDeposit', this.language)
138
+ : translate('denyWithdrawal', this.language);
139
+ }
140
+ const messageOBj = { type: 'error', message: apiMessage };
141
+ window.postMessage({ type: 'DenyDepositOrWithdrawal', data: messageOBj }, window.location.href);
142
+ }
143
+ }
144
+ catch (ex) {
145
+ console.error(ex);
146
+ }
180
147
  }
181
- if (((_f = message.data) === null || _f === void 0 ? void 0 : _f.redirect) === 'mm-hc-contact') {
182
- window.postMessage({ type: 'CloseShortCashier' }, window.location.href);
183
- this.doRedirect(window.location.href, this.contactUrl);
148
+ handleMessage(message) {
149
+ var _a, _b, _c, _d, _e, _f, _g, _h;
150
+ if (message.data['MMFE:openFullCashier'] === 'true') {
151
+ window.postMessage({ type: 'GoToDeposit' }, window.location.href);
152
+ window.postMessage({ type: 'CloseShortCashier' }, window.location.href);
153
+ }
154
+ if (message.data["MMFE:setQuickDepositHeight"] && this.isShortCashier) {
155
+ this.dynamicHeight = message.data["MMFE:setQuickDepositHeight"].toString() + 'px';
156
+ }
157
+ if (message.data["MMFE:setIFrameHeight"] && this.isShortCashier) {
158
+ this.dynamicHeight = message.data["MMFE:setIFrameHeight"].toString() + 'px';
159
+ }
160
+ if (((_a = message.data) === null || _a === void 0 ? void 0 : _a.type) === 'mm-hcback-to-merchant') {
161
+ this.doRedirect(message.data.type, this.homeUrl);
162
+ }
163
+ if (((_b = message.data) === null || _b === void 0 ? void 0 : _b.redirect) === 'mm-hc-back-tomerchant') {
164
+ this.doRedirect(message.data.redirect, this.homeUrl);
165
+ }
166
+ if (((_c = message.data) === null || _c === void 0 ? void 0 : _c.redirect) === 'mm-hc-sports') {
167
+ this.doRedirect((_d = message.data) === null || _d === void 0 ? void 0 : _d.redirect, this.sportsUrl);
168
+ }
169
+ if (((_e = message.data) === null || _e === void 0 ? void 0 : _e.redirect) === 'mm-hc-casino') {
170
+ this.doRedirect(window.location.href, this.casinoUrl);
171
+ }
172
+ if (((_f = message.data) === null || _f === void 0 ? void 0 : _f.redirect) === 'mm-hc-contact') {
173
+ window.postMessage({ type: 'CloseShortCashier' }, window.location.href);
174
+ this.doRedirect(window.location.href, this.contactUrl);
175
+ }
176
+ 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') {
177
+ window.postMessage({ type: 'CloseShortCashier' }, window.location.href);
178
+ this.doRedirect(window.location.href, this.depositUrl);
179
+ }
184
180
  }
185
- 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') {
186
- window.postMessage({ type: 'CloseShortCashier' }, window.location.href);
187
- this.doRedirect(window.location.href, this.depositUrl);
181
+ doRedirect(reason, url) {
182
+ const redirectArgs = { reason, url, cancel: false };
183
+ this.beforeRedirect(redirectArgs);
184
+ if (redirectArgs.cancel) {
185
+ return;
186
+ }
187
+ if (!redirectArgs.url) {
188
+ window.location.href = '/';
189
+ return;
190
+ }
191
+ window.location.href = redirectArgs.url;
188
192
  }
189
- }
190
- doRedirect(reason, url) {
191
- const redirectArgs = { reason, url, cancel: false };
192
- this.beforeRedirect(redirectArgs);
193
- if (redirectArgs.cancel) {
194
- return;
193
+ static get is() { return "user-deposit-withdrawal"; }
194
+ static get encapsulation() { return "shadow"; }
195
+ static get originalStyleUrls() {
196
+ return {
197
+ "$": ["user-deposit-withdrawal.scss"]
198
+ };
195
199
  }
196
- if (!redirectArgs.url) {
197
- window.location.href = '/';
198
- return;
200
+ static get styleUrls() {
201
+ return {
202
+ "$": ["user-deposit-withdrawal.css"]
203
+ };
199
204
  }
200
- window.location.href = redirectArgs.url;
201
- }
202
- static get is() { return "user-deposit-withdrawal"; }
203
- static get encapsulation() { return "shadow"; }
204
- static get originalStyleUrls() { return {
205
- "$": ["user-deposit-withdrawal.scss"]
206
- }; }
207
- static get styleUrls() { return {
208
- "$": ["user-deposit-withdrawal.css"]
209
- }; }
210
- static get properties() { return {
211
- "clientStyling": {
212
- "type": "string",
213
- "mutable": false,
214
- "complexType": {
215
- "original": "string",
216
- "resolved": "string",
217
- "references": {}
218
- },
219
- "required": false,
220
- "optional": false,
221
- "docs": {
222
- "tags": [],
223
- "text": "Client custom styling via inline style"
224
- },
225
- "attribute": "client-styling",
226
- "reflect": true,
227
- "defaultValue": "''"
228
- },
229
- "clientStylingUrl": {
230
- "type": "string",
231
- "mutable": false,
232
- "complexType": {
233
- "original": "string",
234
- "resolved": "string",
235
- "references": {}
236
- },
237
- "required": false,
238
- "optional": false,
239
- "docs": {
240
- "tags": [],
241
- "text": "Client custom styling via url"
242
- },
243
- "attribute": "client-styling-url",
244
- "reflect": true,
245
- "defaultValue": "''"
246
- },
247
- "endpoint": {
248
- "type": "string",
249
- "mutable": false,
250
- "complexType": {
251
- "original": "string",
252
- "resolved": "string",
253
- "references": {}
254
- },
255
- "required": true,
256
- "optional": false,
257
- "docs": {
258
- "tags": [],
259
- "text": "Endpoint"
260
- },
261
- "attribute": "endpoint",
262
- "reflect": true
263
- },
264
- "type": {
265
- "type": "string",
266
- "mutable": false,
267
- "complexType": {
268
- "original": "'deposit' | 'withdraw'",
269
- "resolved": "\"deposit\" | \"withdraw\"",
270
- "references": {}
271
- },
272
- "required": true,
273
- "optional": false,
274
- "docs": {
275
- "tags": [],
276
- "text": ""
277
- },
278
- "attribute": "type",
279
- "reflect": true
280
- },
281
- "channel": {
282
- "type": "string",
283
- "mutable": false,
284
- "complexType": {
285
- "original": "string",
286
- "resolved": "string",
287
- "references": {}
288
- },
289
- "required": true,
290
- "optional": false,
291
- "docs": {
292
- "tags": [],
293
- "text": ""
294
- },
295
- "attribute": "channel",
296
- "reflect": true
297
- },
298
- "language": {
299
- "type": "string",
300
- "mutable": false,
301
- "complexType": {
302
- "original": "string",
303
- "resolved": "string",
304
- "references": {}
305
- },
306
- "required": false,
307
- "optional": false,
308
- "docs": {
309
- "tags": [],
310
- "text": ""
311
- },
312
- "attribute": "language",
313
- "reflect": true
314
- },
315
- "productType": {
316
- "type": "string",
317
- "mutable": false,
318
- "complexType": {
319
- "original": "string",
320
- "resolved": "string",
321
- "references": {}
322
- },
323
- "required": false,
324
- "optional": false,
325
- "docs": {
326
- "tags": [],
327
- "text": ""
328
- },
329
- "attribute": "product-type",
330
- "reflect": true
331
- },
332
- "userId": {
333
- "type": "string",
334
- "mutable": false,
335
- "complexType": {
336
- "original": "string",
337
- "resolved": "string",
338
- "references": {}
339
- },
340
- "required": false,
341
- "optional": false,
342
- "docs": {
343
- "tags": [],
344
- "text": ""
345
- },
346
- "attribute": "user-id",
347
- "reflect": true
348
- },
349
- "session": {
350
- "type": "string",
351
- "mutable": false,
352
- "complexType": {
353
- "original": "string",
354
- "resolved": "string",
355
- "references": {}
356
- },
357
- "required": false,
358
- "optional": false,
359
- "docs": {
360
- "tags": [],
361
- "text": ""
362
- },
363
- "attribute": "session",
364
- "reflect": true
365
- },
366
- "successUrl": {
367
- "type": "string",
368
- "mutable": false,
369
- "complexType": {
370
- "original": "string",
371
- "resolved": "string",
372
- "references": {}
373
- },
374
- "required": false,
375
- "optional": false,
376
- "docs": {
377
- "tags": [],
378
- "text": ""
379
- },
380
- "attribute": "success-url",
381
- "reflect": true
382
- },
383
- "cancelUrl": {
384
- "type": "string",
385
- "mutable": false,
386
- "complexType": {
387
- "original": "string",
388
- "resolved": "string",
389
- "references": {}
390
- },
391
- "required": false,
392
- "optional": false,
393
- "docs": {
394
- "tags": [],
395
- "text": ""
396
- },
397
- "attribute": "cancel-url",
398
- "reflect": true
399
- },
400
- "failUrl": {
401
- "type": "string",
402
- "mutable": false,
403
- "complexType": {
404
- "original": "string",
405
- "resolved": "string",
406
- "references": {}
407
- },
408
- "required": false,
409
- "optional": false,
410
- "docs": {
411
- "tags": [],
412
- "text": ""
413
- },
414
- "attribute": "fail-url",
415
- "reflect": true
416
- },
417
- "sportsUrl": {
418
- "type": "string",
419
- "mutable": false,
420
- "complexType": {
421
- "original": "string",
422
- "resolved": "string",
423
- "references": {}
424
- },
425
- "required": false,
426
- "optional": false,
427
- "docs": {
428
- "tags": [],
429
- "text": ""
430
- },
431
- "attribute": "sports-url",
432
- "reflect": true
433
- },
434
- "casinoUrl": {
435
- "type": "string",
436
- "mutable": false,
437
- "complexType": {
438
- "original": "string",
439
- "resolved": "string",
440
- "references": {}
441
- },
442
- "required": false,
443
- "optional": false,
444
- "docs": {
445
- "tags": [],
446
- "text": ""
447
- },
448
- "attribute": "casino-url",
449
- "reflect": true
450
- },
451
- "contactUrl": {
452
- "type": "string",
453
- "mutable": false,
454
- "complexType": {
455
- "original": "string",
456
- "resolved": "string",
457
- "references": {}
458
- },
459
- "required": false,
460
- "optional": false,
461
- "docs": {
462
- "tags": [],
463
- "text": ""
464
- },
465
- "attribute": "contact-url",
466
- "reflect": true
467
- },
468
- "depositUrl": {
469
- "type": "string",
470
- "mutable": false,
471
- "complexType": {
472
- "original": "string",
473
- "resolved": "string",
474
- "references": {}
475
- },
476
- "required": false,
477
- "optional": false,
478
- "docs": {
479
- "tags": [],
480
- "text": ""
481
- },
482
- "attribute": "deposit-url",
483
- "reflect": true
484
- },
485
- "currency": {
486
- "type": "string",
487
- "mutable": false,
488
- "complexType": {
489
- "original": "string",
490
- "resolved": "string",
491
- "references": {}
492
- },
493
- "required": false,
494
- "optional": false,
495
- "docs": {
496
- "tags": [],
497
- "text": ""
498
- },
499
- "attribute": "currency",
500
- "reflect": true,
501
- "defaultValue": "''"
502
- },
503
- "showBonusSelectionInput": {
504
- "type": "string",
505
- "mutable": false,
506
- "complexType": {
507
- "original": "string",
508
- "resolved": "string",
509
- "references": {}
510
- },
511
- "required": false,
512
- "optional": false,
513
- "docs": {
514
- "tags": [],
515
- "text": ""
516
- },
517
- "attribute": "show-bonus-selection-input",
518
- "reflect": true,
519
- "defaultValue": "'true'"
520
- },
521
- "isShortCashier": {
522
- "type": "boolean",
523
- "mutable": false,
524
- "complexType": {
525
- "original": "boolean",
526
- "resolved": "boolean",
527
- "references": {}
528
- },
529
- "required": false,
530
- "optional": false,
531
- "docs": {
532
- "tags": [],
533
- "text": ""
534
- },
535
- "attribute": "is-short-cashier",
536
- "reflect": true,
537
- "defaultValue": "false"
538
- },
539
- "homeUrl": {
540
- "type": "string",
541
- "mutable": false,
542
- "complexType": {
543
- "original": "string",
544
- "resolved": "string",
545
- "references": {}
546
- },
547
- "required": false,
548
- "optional": false,
549
- "docs": {
550
- "tags": [],
551
- "text": ""
552
- },
553
- "attribute": "home-url",
554
- "reflect": true
555
- },
556
- "beforeRedirect": {
557
- "type": "unknown",
558
- "mutable": false,
559
- "complexType": {
560
- "original": "(params: RedirectCallbackArgs) => void",
561
- "resolved": "(params: RedirectCallbackArgs) => void",
562
- "references": {
563
- "RedirectCallbackArgs": {
564
- "location": "local"
565
- }
566
- }
567
- },
568
- "required": false,
569
- "optional": false,
570
- "docs": {
571
- "tags": [],
572
- "text": ""
573
- },
574
- "defaultValue": "emptyFunction"
205
+ static get properties() {
206
+ return {
207
+ "clientStyling": {
208
+ "type": "string",
209
+ "mutable": false,
210
+ "complexType": {
211
+ "original": "string",
212
+ "resolved": "string",
213
+ "references": {}
214
+ },
215
+ "required": false,
216
+ "optional": false,
217
+ "docs": {
218
+ "tags": [],
219
+ "text": "Client custom styling via inline style"
220
+ },
221
+ "attribute": "client-styling",
222
+ "reflect": true,
223
+ "defaultValue": "''"
224
+ },
225
+ "clientStylingUrl": {
226
+ "type": "string",
227
+ "mutable": false,
228
+ "complexType": {
229
+ "original": "string",
230
+ "resolved": "string",
231
+ "references": {}
232
+ },
233
+ "required": false,
234
+ "optional": false,
235
+ "docs": {
236
+ "tags": [],
237
+ "text": "Client custom styling via url"
238
+ },
239
+ "attribute": "client-styling-url",
240
+ "reflect": true,
241
+ "defaultValue": "''"
242
+ },
243
+ "endpoint": {
244
+ "type": "string",
245
+ "mutable": false,
246
+ "complexType": {
247
+ "original": "string",
248
+ "resolved": "string",
249
+ "references": {}
250
+ },
251
+ "required": true,
252
+ "optional": false,
253
+ "docs": {
254
+ "tags": [],
255
+ "text": "Endpoint"
256
+ },
257
+ "attribute": "endpoint",
258
+ "reflect": true
259
+ },
260
+ "type": {
261
+ "type": "string",
262
+ "mutable": false,
263
+ "complexType": {
264
+ "original": "'deposit' | 'withdraw'",
265
+ "resolved": "\"deposit\" | \"withdraw\"",
266
+ "references": {}
267
+ },
268
+ "required": true,
269
+ "optional": false,
270
+ "docs": {
271
+ "tags": [],
272
+ "text": ""
273
+ },
274
+ "attribute": "type",
275
+ "reflect": true
276
+ },
277
+ "channel": {
278
+ "type": "string",
279
+ "mutable": false,
280
+ "complexType": {
281
+ "original": "string",
282
+ "resolved": "string",
283
+ "references": {}
284
+ },
285
+ "required": true,
286
+ "optional": false,
287
+ "docs": {
288
+ "tags": [],
289
+ "text": ""
290
+ },
291
+ "attribute": "channel",
292
+ "reflect": true
293
+ },
294
+ "language": {
295
+ "type": "string",
296
+ "mutable": false,
297
+ "complexType": {
298
+ "original": "string",
299
+ "resolved": "string",
300
+ "references": {}
301
+ },
302
+ "required": false,
303
+ "optional": false,
304
+ "docs": {
305
+ "tags": [],
306
+ "text": ""
307
+ },
308
+ "attribute": "language",
309
+ "reflect": true
310
+ },
311
+ "productType": {
312
+ "type": "string",
313
+ "mutable": false,
314
+ "complexType": {
315
+ "original": "string",
316
+ "resolved": "string",
317
+ "references": {}
318
+ },
319
+ "required": false,
320
+ "optional": false,
321
+ "docs": {
322
+ "tags": [],
323
+ "text": ""
324
+ },
325
+ "attribute": "product-type",
326
+ "reflect": true
327
+ },
328
+ "userId": {
329
+ "type": "string",
330
+ "mutable": false,
331
+ "complexType": {
332
+ "original": "string",
333
+ "resolved": "string",
334
+ "references": {}
335
+ },
336
+ "required": false,
337
+ "optional": false,
338
+ "docs": {
339
+ "tags": [],
340
+ "text": ""
341
+ },
342
+ "attribute": "user-id",
343
+ "reflect": true
344
+ },
345
+ "session": {
346
+ "type": "string",
347
+ "mutable": false,
348
+ "complexType": {
349
+ "original": "string",
350
+ "resolved": "string",
351
+ "references": {}
352
+ },
353
+ "required": false,
354
+ "optional": false,
355
+ "docs": {
356
+ "tags": [],
357
+ "text": ""
358
+ },
359
+ "attribute": "session",
360
+ "reflect": true
361
+ },
362
+ "successUrl": {
363
+ "type": "string",
364
+ "mutable": false,
365
+ "complexType": {
366
+ "original": "string",
367
+ "resolved": "string",
368
+ "references": {}
369
+ },
370
+ "required": false,
371
+ "optional": false,
372
+ "docs": {
373
+ "tags": [],
374
+ "text": ""
375
+ },
376
+ "attribute": "success-url",
377
+ "reflect": true
378
+ },
379
+ "cancelUrl": {
380
+ "type": "string",
381
+ "mutable": false,
382
+ "complexType": {
383
+ "original": "string",
384
+ "resolved": "string",
385
+ "references": {}
386
+ },
387
+ "required": false,
388
+ "optional": false,
389
+ "docs": {
390
+ "tags": [],
391
+ "text": ""
392
+ },
393
+ "attribute": "cancel-url",
394
+ "reflect": true
395
+ },
396
+ "failUrl": {
397
+ "type": "string",
398
+ "mutable": false,
399
+ "complexType": {
400
+ "original": "string",
401
+ "resolved": "string",
402
+ "references": {}
403
+ },
404
+ "required": false,
405
+ "optional": false,
406
+ "docs": {
407
+ "tags": [],
408
+ "text": ""
409
+ },
410
+ "attribute": "fail-url",
411
+ "reflect": true
412
+ },
413
+ "sportsUrl": {
414
+ "type": "string",
415
+ "mutable": false,
416
+ "complexType": {
417
+ "original": "string",
418
+ "resolved": "string",
419
+ "references": {}
420
+ },
421
+ "required": false,
422
+ "optional": false,
423
+ "docs": {
424
+ "tags": [],
425
+ "text": ""
426
+ },
427
+ "attribute": "sports-url",
428
+ "reflect": true
429
+ },
430
+ "casinoUrl": {
431
+ "type": "string",
432
+ "mutable": false,
433
+ "complexType": {
434
+ "original": "string",
435
+ "resolved": "string",
436
+ "references": {}
437
+ },
438
+ "required": false,
439
+ "optional": false,
440
+ "docs": {
441
+ "tags": [],
442
+ "text": ""
443
+ },
444
+ "attribute": "casino-url",
445
+ "reflect": true
446
+ },
447
+ "contactUrl": {
448
+ "type": "string",
449
+ "mutable": false,
450
+ "complexType": {
451
+ "original": "string",
452
+ "resolved": "string",
453
+ "references": {}
454
+ },
455
+ "required": false,
456
+ "optional": false,
457
+ "docs": {
458
+ "tags": [],
459
+ "text": ""
460
+ },
461
+ "attribute": "contact-url",
462
+ "reflect": true
463
+ },
464
+ "depositUrl": {
465
+ "type": "string",
466
+ "mutable": false,
467
+ "complexType": {
468
+ "original": "string",
469
+ "resolved": "string",
470
+ "references": {}
471
+ },
472
+ "required": false,
473
+ "optional": false,
474
+ "docs": {
475
+ "tags": [],
476
+ "text": ""
477
+ },
478
+ "attribute": "deposit-url",
479
+ "reflect": true
480
+ },
481
+ "currency": {
482
+ "type": "string",
483
+ "mutable": false,
484
+ "complexType": {
485
+ "original": "string",
486
+ "resolved": "string",
487
+ "references": {}
488
+ },
489
+ "required": false,
490
+ "optional": false,
491
+ "docs": {
492
+ "tags": [],
493
+ "text": ""
494
+ },
495
+ "attribute": "currency",
496
+ "reflect": true,
497
+ "defaultValue": "''"
498
+ },
499
+ "showBonusSelectionInput": {
500
+ "type": "string",
501
+ "mutable": false,
502
+ "complexType": {
503
+ "original": "string",
504
+ "resolved": "string",
505
+ "references": {}
506
+ },
507
+ "required": false,
508
+ "optional": false,
509
+ "docs": {
510
+ "tags": [],
511
+ "text": ""
512
+ },
513
+ "attribute": "show-bonus-selection-input",
514
+ "reflect": true,
515
+ "defaultValue": "'true'"
516
+ },
517
+ "isShortCashier": {
518
+ "type": "boolean",
519
+ "mutable": false,
520
+ "complexType": {
521
+ "original": "boolean",
522
+ "resolved": "boolean",
523
+ "references": {}
524
+ },
525
+ "required": false,
526
+ "optional": false,
527
+ "docs": {
528
+ "tags": [],
529
+ "text": ""
530
+ },
531
+ "attribute": "is-short-cashier",
532
+ "reflect": true,
533
+ "defaultValue": "false"
534
+ },
535
+ "homeUrl": {
536
+ "type": "string",
537
+ "mutable": false,
538
+ "complexType": {
539
+ "original": "string",
540
+ "resolved": "string",
541
+ "references": {}
542
+ },
543
+ "required": false,
544
+ "optional": false,
545
+ "docs": {
546
+ "tags": [],
547
+ "text": ""
548
+ },
549
+ "attribute": "home-url",
550
+ "reflect": true
551
+ },
552
+ "beforeRedirect": {
553
+ "type": "unknown",
554
+ "mutable": false,
555
+ "complexType": {
556
+ "original": "(params: RedirectCallbackArgs) => void",
557
+ "resolved": "(params: RedirectCallbackArgs) => void",
558
+ "references": {
559
+ "RedirectCallbackArgs": {
560
+ "location": "local",
561
+ "path": "/Users/adrian.pripon/Documents/Work/widgets-monorepo/packages/stencil/user-deposit-withdrawal/src/components/user-deposit-withdrawal/user-deposit-withdrawal.tsx",
562
+ "id": "../../../../packages/stencil/user-deposit-withdrawal/src/components/user-deposit-withdrawal/user-deposit-withdrawal.tsx::RedirectCallbackArgs"
563
+ }
564
+ }
565
+ },
566
+ "required": false,
567
+ "optional": false,
568
+ "docs": {
569
+ "tags": [],
570
+ "text": ""
571
+ },
572
+ "defaultValue": "emptyFunction"
573
+ }
574
+ };
575
+ }
576
+ static get states() {
577
+ return {
578
+ "limitStylingAppends": {},
579
+ "dynamicHeight": {},
580
+ "cashierInfoUrl": {}
581
+ };
582
+ }
583
+ static get watchers() {
584
+ return [{
585
+ "propName": "session",
586
+ "methodName": "watchLoadWidget"
587
+ }, {
588
+ "propName": "userId",
589
+ "methodName": "watchLoadWidget"
590
+ }, {
591
+ "propName": "isShortCashier",
592
+ "methodName": "watchLoadWidget"
593
+ }, {
594
+ "propName": "currency",
595
+ "methodName": "watchLoadWidget"
596
+ }, {
597
+ "propName": "showBonusSelectionInput",
598
+ "methodName": "watchLoadWidget"
599
+ }];
575
600
  }
576
- }; }
577
- static get states() { return {
578
- "limitStylingAppends": {},
579
- "dynamicHeight": {},
580
- "cashierInfoUrl": {}
581
- }; }
582
- static get watchers() { return [{
583
- "propName": "session",
584
- "methodName": "watchLoadWidget"
585
- }, {
586
- "propName": "userId",
587
- "methodName": "watchLoadWidget"
588
- }, {
589
- "propName": "isShortCashier",
590
- "methodName": "watchLoadWidget"
591
- }, {
592
- "propName": "currency",
593
- "methodName": "watchLoadWidget"
594
- }, {
595
- "propName": "showBonusSelectionInput",
596
- "methodName": "watchLoadWidget"
597
- }]; }
598
601
  }