@everymatrix/player-lugas-limit 1.63.3 → 1.64.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.
@@ -7,50 +7,29 @@ import { setClientStyling, setClientStylingURL, setStreamStyling } from "../../.
7
7
  */
8
8
  export class PlayerLugasLimit {
9
9
  constructor() {
10
+ /** Array of predefined limit amounts */
11
+ this.predefinedAmounts = [];
12
+ /** Displayed currency */
13
+ this.displayedCurrency = '';
10
14
  /**
11
- * Fetches and applies client styling from a URL
12
- */
13
- this.setClientStyling = () => {
14
- const sheet = document.createElement('style');
15
- sheet.innerHTML = this.clientStyling;
16
- this.stylingContainer.prepend(sheet);
17
- };
18
- /**
19
- * Fetches and applies client styling from a URL
20
- */
21
- this.setClientStylingURL = () => {
22
- const url = new URL(this.clientStylingUrl);
23
- const cssFile = document.createElement('style');
24
- fetch(url.href)
25
- .then((res) => res.text())
26
- .then((data) => {
27
- cssFile.innerHTML = data;
28
- setTimeout(() => {
29
- this.stylingContainer.prepend(cssFile);
30
- }, 1);
31
- })
32
- .catch((err) => {
33
- console.log('error ', err);
34
- });
35
- };
36
- /**
37
- * Posts the player's limit situation to the API.
15
+ * Submits the new monthly deposit limit set by the player
38
16
  * @param userAmount - User-defined amount
39
17
  * @param keepLimit - Whether to keep the current limit
40
18
  * @param initialNewLimit - Whether the limit is being set initially
41
19
  */
42
- this.postPlayerSituation = (userAmount, keepLimit = false, initialNewLimit = false) => {
43
- this.wasSubmitted = true;
44
- this.errorMessage = '';
20
+ this.submitMonthlyDepositLimit = (amount, keepLimit = false, initialNewLimit = false) => {
21
+ if (keepLimit && !this.isUseExistingLimitOptionActive) {
22
+ return;
23
+ }
24
+ this.isSubmitted = true;
25
+ this.errorMessageOnSubmit = '';
45
26
  const url = new URL(`${this.endpoint}v2/player/${this.userId}/limit/lugas`);
46
- const roleLimitAmount = initialNewLimit ? this.amount : 0;
47
- const bodyDraft = {
27
+ const roleLimitAmount = initialNewLimit ? this.newAmount : 0;
28
+ const body = {
29
+ amount,
48
30
  keepLimit,
49
31
  roleLimitAmount
50
32
  };
51
- if (userAmount) {
52
- bodyDraft['amount'] = `${userAmount}`;
53
- }
54
33
  const options = {
55
34
  method: 'POST',
56
35
  headers: {
@@ -59,7 +38,7 @@ export class PlayerLugasLimit {
59
38
  'Content-Type': 'application/json',
60
39
  'Authorization': `Bearer ${this.session}`
61
40
  },
62
- body: JSON.stringify(bodyDraft)
41
+ body: JSON.stringify(body)
63
42
  };
64
43
  fetch(url.href, options)
65
44
  .then(async (res) => {
@@ -68,10 +47,13 @@ export class PlayerLugasLimit {
68
47
  throw errorResponse; // Throw the error response to handle later
69
48
  }
70
49
  this.closeLugasModal.emit();
71
- return res.json();
72
50
  })
73
51
  .catch((err) => {
74
52
  var _a;
53
+ this.errorMessageOnSubmit = translate('LugasNotSet', this.lang);
54
+ if (keepLimit) {
55
+ this.isUseExistingLimitOptionActive = false;
56
+ }
75
57
  // Check for specific error structure
76
58
  if (err.errorCode === 3 && err.errorSourceName === "GmLegislation") {
77
59
  console.error(err.error, (_a = err.thirdPartyResponse) === null || _a === void 0 ? void 0 : _a.message);
@@ -79,10 +61,8 @@ export class PlayerLugasLimit {
79
61
  else {
80
62
  console.error("Unexpected Error:", err);
81
63
  }
82
- this.errorMessage = translate('LugasNotSet', this.lang);
83
- }).finally(() => {
84
- this.wasSubmitted = false;
85
- });
64
+ })
65
+ .finally(() => this.isSubmitted = false);
86
66
  };
87
67
  this.userId = '';
88
68
  this.session = '';
@@ -94,19 +74,15 @@ export class PlayerLugasLimit {
94
74
  this.clientStylingUrl = '';
95
75
  this.mbSource = undefined;
96
76
  this.translationUrl = '';
97
- this.showCustomAmount = false;
98
77
  this.isLoading = false;
99
- this.hasErrors = false;
100
- this.inputValue = '';
101
- this.showInvalidInputError = false;
102
- this.predefinedAmountsArray = [];
103
- this.isWithinRange = undefined;
104
- this.minimumRange = undefined;
78
+ this.showCustomAmount = false;
79
+ this.isSubmitted = false;
80
+ this.isUseExistingLimitOptionActive = true;
105
81
  this.selectedPredefinedAmount = undefined;
106
- this.errorMessage = '';
107
- this.wasSubmitted = false;
108
- this.minAmount = undefined;
109
- this.maxAmount = undefined;
82
+ this.errorMessageOnInitialization = '';
83
+ this.errorMessageOnSubmit = '';
84
+ this.errorMessageOnInput = '';
85
+ this.newAmount = '';
110
86
  }
111
87
  /**
112
88
  * Watch for changes in the translation URL and fetch new translations
@@ -132,7 +108,8 @@ export class PlayerLugasLimit {
132
108
  if (this.translationUrl.length > 2) {
133
109
  await getTranslations(this.translationUrl);
134
110
  }
135
- await this.getMonthlyDepositLimit();
111
+ await this.getMonthlyDepositLimitConfig();
112
+ this.displayedCurrency = this.currency === 'EUR' ? '€' : this.currency;
136
113
  }
137
114
  componentDidLoad() {
138
115
  if (this.stylingContainer) {
@@ -155,7 +132,7 @@ export class PlayerLugasLimit {
155
132
  *
156
133
  * @returns Promise - Promise that resolves when the configuration is fetched
157
134
  */
158
- async getMonthlyDepositLimit() {
135
+ async getMonthlyDepositLimitConfig() {
159
136
  const url = new URL(`${this.endpoint}api/v1/gm/legislation/config/month-deposit-limit`);
160
137
  this.isLoading = true;
161
138
  return new Promise((resolve) => {
@@ -167,17 +144,15 @@ export class PlayerLugasLimit {
167
144
  return res.json();
168
145
  })
169
146
  .then((data) => {
170
- this.predefinedAmountsArray = data.preDefinedOptions;
147
+ this.predefinedAmounts = data.preDefinedOptions;
171
148
  this.minAmount = data.minAmount;
172
149
  this.maxAmount = data.maxAmount;
173
150
  resolve(true);
174
151
  }).catch((err) => {
175
- this.hasErrors = true;
152
+ this.errorMessageOnInitialization = translate('error', this.lang);
176
153
  console.log(err);
177
154
  })
178
- .finally(() => {
179
- this.isLoading = false;
180
- });
155
+ .finally(() => this.isLoading = false);
181
156
  });
182
157
  }
183
158
  /**
@@ -186,32 +161,30 @@ export class PlayerLugasLimit {
186
161
  */
187
162
  handleSubmit(event) {
188
163
  event.preventDefault();
189
- if (this.showInvalidInputError) {
190
- return;
164
+ if (!this.errorMessageOnInput) {
165
+ this.submitMonthlyDepositLimit(this.newAmount, false, true);
191
166
  }
192
- this.postPlayerSituation(this.inputValue, false, true);
193
- }
194
- /**
195
- * Checks if the input contains only digits.
196
- * @param input - The input to validate
197
- */
198
- containsOnlyDigits(input) {
199
- const regex = /^[0-9]+$/;
200
- return regex.test(input);
201
167
  }
202
168
  /**
203
169
  * Handles input changes.
204
170
  * @param event - The input change event
205
171
  */
206
172
  handleInputChange(event) {
207
- const inputValue = event.target.value;
208
- this.showInvalidInputError = false;
209
- this.inputValue = inputValue;
173
+ this.newAmount = event.target.value;
210
174
  // Perform validation checks
211
- this.isValidNumber = !isNaN(Number(inputValue)) && this.containsOnlyDigits(inputValue);
212
- this.minimumRange = Number(inputValue) >= this.minAmount;
213
- this.isWithinRange = Number(inputValue) <= this.maxAmount;
214
- this.showInvalidInputError = inputValue ? !this.isValidNumber || !this.isWithinRange || !this.minimumRange : false;
175
+ this.isValidNumber = !isNaN(Number(this.newAmount));
176
+ this.isWithinRange = (Number(this.newAmount) >= this.minAmount) && (Number(this.newAmount) <= this.maxAmount);
177
+ if (!this.isWithinRange || !this.isValidNumber) {
178
+ this.errorMessageOnInput = translate('invalidInputMessageLimit', this.lang, { values: { currency: this.displayedCurrency, minValue: this.minAmount, maxValue: this.maxAmount } });
179
+ }
180
+ else {
181
+ this.errorMessageOnInput = '';
182
+ const newAmountSplit = this.newAmount.split('.');
183
+ if (newAmountSplit.length > 1) {
184
+ this.newAmount = `${newAmountSplit[0]}.${newAmountSplit[1].slice(0, 2)}`;
185
+ event.target.value = this.newAmount;
186
+ }
187
+ }
215
188
  }
216
189
  /**
217
190
  * Handles predefined amount clicks.
@@ -219,22 +192,20 @@ export class PlayerLugasLimit {
219
192
  */
220
193
  handleAmountClick(amount) {
221
194
  this.showCustomAmount = false;
222
- this.amount = amount;
223
- this.inputValue = '';
224
- this.showInvalidInputError = false;
195
+ this.errorMessageOnInput = '';
225
196
  this.selectedPredefinedAmount = amount;
226
197
  switch (amount) {
227
198
  case 'Other':
199
+ this.newAmount = '';
228
200
  this.showCustomAmount = true;
229
- this.amount = '';
230
201
  break;
231
202
  case 'Max':
203
+ this.newAmount = this.maxAmount.toString();
232
204
  this.showCustomAmount = true;
233
- this.amount = this.maxAmount.toString();
234
- this.inputValue = this.maxAmount.toString();
235
205
  break;
236
206
  default:
237
- this.postPlayerSituation(this.amount, false, true);
207
+ this.newAmount = amount;
208
+ this.submitMonthlyDepositLimit(this.newAmount, false, true);
238
209
  break;
239
210
  }
240
211
  }
@@ -249,15 +220,14 @@ export class PlayerLugasLimit {
249
220
  * Renders the validator.
250
221
  */
251
222
  renderValidator() {
252
- const displayedCurrency = this.currency === 'EUR' ? '€' : this.currency;
253
223
  const renderPredefinedButtons = () => {
254
- return this.predefinedAmountsArray.map((currentAmount) => (h("button", { class: this.selectedPredefinedAmount === currentAmount ? 'Active' : '', onClick: () => this.handleAmountClick(currentAmount) }, currentAmount)));
224
+ return this.predefinedAmounts.map((currentAmount) => (h("button", { class: this.selectedPredefinedAmount === currentAmount ? 'Active' : '', onClick: () => this.handleAmountClick(currentAmount) }, currentAmount)));
255
225
  };
256
- return (h("div", { class: "ValidatorContainer" }, this.errorMessage && (h("div", { class: "ErrorContainer" }, h("span", { class: "DismissError", onClick: () => this.errorMessage = '' }, h("svg", { xmlns: "http://www.w3.org/2000/svg", width: "9", height: "9", viewBox: "0 0 9 9", fill: "none" }, h("path", { d: "M8.18659 0.14708C8.37063 0.33182 8.38174 0.62421 8.21888 0.821452L8.18659 0.857219L4.87619 4.16727L8.18659 7.47732C8.27743 7.56861 8.32973 7.69132 8.33266 7.82007C8.3356 7.94883 8.28895 8.0738 8.20235 8.16913C8.11576 8.26446 7.99584 8.32288 7.86739 8.3323C7.73895 8.34172 7.61179 8.30143 7.51221 8.21975L7.47645 8.18746L4.1664 4.87706L0.856348 8.18746C0.765058 8.27831 0.64235 8.3306 0.513592 8.33354C0.384834 8.33647 0.25987 8.28982 0.164536 8.20322C0.0692018 8.11663 0.0107856 7.99671 0.00136402 7.86827C-0.00805761 7.73982 0.0322357 7.61266 0.113914 7.51308L0.146209 7.47732L3.4566 4.16727L0.146209 0.857219C0.0553613 0.765928 0.00306475 0.64322 0.000130477 0.514462C-0.0028038 0.385704 0.0438486 0.260741 0.130443 0.165407C0.217038 0.0700723 0.336953 0.0116562 0.4654 0.00223455C0.593846 -0.00718708 0.721002 0.0331062 0.820581 0.114785L0.856348 0.14708L4.1664 3.45748L7.47645 0.14708C7.52307 0.10045 7.57843 0.0634608 7.63935 0.0382248C7.70027 0.0129888 7.76557 0 7.83152 0C7.89746 0 7.96276 0.0129888 8.02368 0.0382248C8.0846 0.0634608 8.13996 0.10045 8.18659 0.14708Z", fill: "#111111" }))), h("p", { class: "ErrorParagraph" }, h("span", { class: "ErrorIcon" }, h("svg", { xmlns: "http://www.w3.org/2000/svg", width: "9", height: "9", viewBox: "0 0 9 9" }, h("path", { d: "M8.18659 0.14708C8.37063 0.33182 8.38174 0.62421 8.21888 0.821452L8.18659 0.857219L4.87619 4.16727L8.18659 7.47732C8.27743 7.56861 8.32973 7.69132 8.33266 7.82007C8.3356 7.94883 8.28895 8.0738 8.20235 8.16913C8.11576 8.26446 7.99584 8.32288 7.86739 8.3323C7.73895 8.34172 7.61179 8.30143 7.51221 8.21975L7.47645 8.18746L4.1664 4.87706L0.856348 8.18746C0.765058 8.27831 0.64235 8.3306 0.513592 8.33354C0.384834 8.33647 0.25987 8.28982 0.164536 8.20322C0.0692018 8.11663 0.0107856 7.99671 0.00136402 7.86827C-0.00805761 7.73982 0.0322357 7.61266 0.113914 7.51308L0.146209 7.47732L3.4566 4.16727L0.146209 0.857219C0.0553613 0.765928 0.00306475 0.64322 0.000130477 0.514462C-0.0028038 0.385704 0.0438486 0.260741 0.130443 0.165407C0.217038 0.0700723 0.336953 0.0116562 0.4654 0.00223455C0.593846 -0.00718708 0.721002 0.0331062 0.820581 0.114785L0.856348 0.14708L4.1664 3.45748L7.47645 0.14708C7.52307 0.10045 7.57843 0.0634608 7.63935 0.0382248C7.70027 0.0129888 7.76557 0 7.83152 0C7.89746 0 7.96276 0.0129888 8.02368 0.0382248C8.0846 0.0634608 8.13996 0.10045 8.18659 0.14708Z" }))), this.errorMessage))), h("div", { class: "Paragraphs" }, h("p", null, translate('LugasInfoBox', this.lang))), h("div", { class: "LimitAmountWrapper" }, this.wasSubmitted
226
+ return (h("div", { class: "ValidatorContainer" }, this.errorMessageOnSubmit && (h("div", { class: "ErrorContainer" }, h("span", { class: "DismissError", onClick: () => this.errorMessageOnSubmit = '' }, h("svg", { xmlns: "http://www.w3.org/2000/svg", width: "9", height: "9", viewBox: "0 0 9 9", fill: "none" }, h("path", { d: "M8.18659 0.14708C8.37063 0.33182 8.38174 0.62421 8.21888 0.821452L8.18659 0.857219L4.87619 4.16727L8.18659 7.47732C8.27743 7.56861 8.32973 7.69132 8.33266 7.82007C8.3356 7.94883 8.28895 8.0738 8.20235 8.16913C8.11576 8.26446 7.99584 8.32288 7.86739 8.3323C7.73895 8.34172 7.61179 8.30143 7.51221 8.21975L7.47645 8.18746L4.1664 4.87706L0.856348 8.18746C0.765058 8.27831 0.64235 8.3306 0.513592 8.33354C0.384834 8.33647 0.25987 8.28982 0.164536 8.20322C0.0692018 8.11663 0.0107856 7.99671 0.00136402 7.86827C-0.00805761 7.73982 0.0322357 7.61266 0.113914 7.51308L0.146209 7.47732L3.4566 4.16727L0.146209 0.857219C0.0553613 0.765928 0.00306475 0.64322 0.000130477 0.514462C-0.0028038 0.385704 0.0438486 0.260741 0.130443 0.165407C0.217038 0.0700723 0.336953 0.0116562 0.4654 0.00223455C0.593846 -0.00718708 0.721002 0.0331062 0.820581 0.114785L0.856348 0.14708L4.1664 3.45748L7.47645 0.14708C7.52307 0.10045 7.57843 0.0634608 7.63935 0.0382248C7.70027 0.0129888 7.76557 0 7.83152 0C7.89746 0 7.96276 0.0129888 8.02368 0.0382248C8.0846 0.0634608 8.13996 0.10045 8.18659 0.14708Z", fill: "#111111" }))), h("p", { class: "ErrorParagraph" }, h("span", { class: "ErrorIcon" }, h("svg", { xmlns: "http://www.w3.org/2000/svg", width: "9", height: "9", viewBox: "0 0 9 9" }, h("path", { d: "M8.18659 0.14708C8.37063 0.33182 8.38174 0.62421 8.21888 0.821452L8.18659 0.857219L4.87619 4.16727L8.18659 7.47732C8.27743 7.56861 8.32973 7.69132 8.33266 7.82007C8.3356 7.94883 8.28895 8.0738 8.20235 8.16913C8.11576 8.26446 7.99584 8.32288 7.86739 8.3323C7.73895 8.34172 7.61179 8.30143 7.51221 8.21975L7.47645 8.18746L4.1664 4.87706L0.856348 8.18746C0.765058 8.27831 0.64235 8.3306 0.513592 8.33354C0.384834 8.33647 0.25987 8.28982 0.164536 8.20322C0.0692018 8.11663 0.0107856 7.99671 0.00136402 7.86827C-0.00805761 7.73982 0.0322357 7.61266 0.113914 7.51308L0.146209 7.47732L3.4566 4.16727L0.146209 0.857219C0.0553613 0.765928 0.00306475 0.64322 0.000130477 0.514462C-0.0028038 0.385704 0.0438486 0.260741 0.130443 0.165407C0.217038 0.0700723 0.336953 0.0116562 0.4654 0.00223455C0.593846 -0.00718708 0.721002 0.0331062 0.820581 0.114785L0.856348 0.14708L4.1664 3.45748L7.47645 0.14708C7.52307 0.10045 7.57843 0.0634608 7.63935 0.0382248C7.70027 0.0129888 7.76557 0 7.83152 0C7.89746 0 7.96276 0.0129888 8.02368 0.0382248C8.0846 0.0634608 8.13996 0.10045 8.18659 0.14708Z" }))), this.errorMessageOnSubmit))), h("div", { class: "Paragraphs" }, h("p", null, translate('LugasInfoBox', this.lang))), h("div", { class: "LimitAmountWrapper" }, this.isSubmitted
257
227
  && h("slot", { name: 'spinner' })
258
228
  && h("div", { class: "LoadingWrapper" }, h("svg", { class: "spinner", viewBox: "0 0 50 50" }, h("circle", { class: "path", cx: "25", cy: "25", r: "20", fill: "none", "stroke-width": "5" }))), h("p", { class: "ChooseLimitLabel" }, translate('ChooseLimit', this.lang)), h("div", { class: "PredefinedAmounts" }, h("button", { class: this.selectedPredefinedAmount === 'Other' ? 'Active' : '', onClick: () => this.handleAmountClick('Other') }, translate('ButtonCustomValue', this.lang)), renderPredefinedButtons(), h("button", { class: this.selectedPredefinedAmount === 'Max' ? 'Active' : '', onClick: () => this.handleAmountClick('Max') }, translate('ButtonMax', this.lang))), this.showCustomAmount && (h("form", { onSubmit: (event) => this.handleSubmit(event) }, this.showCustomAmount &&
259
- h("div", null, h("input", { class: `CustomAmountInput ${this.showInvalidInputError ? 'InvalidInput' : ''}`, type: "number", value: this.amount, onInput: (event) => this.handleInputChange(event), placeholder: "0.00", disabled: this.selectedPredefinedAmount === 'Max' }), this.showInvalidInputError && (h("p", { class: "InvalidParagraph" }, translate('invalidInputMessageLimit', this.lang, { values: { currency: displayedCurrency, minValue: this.minAmount, maxValue: this.maxAmount } })))), this.selectedPredefinedAmount &&
260
- h("button", { class: "PrimaryButton SetLimitBtn", type: "submit", disabled: this.wasSubmitted }, translate('LugasSetLimitDialogButtonSetLimit', this.lang, { values: { currency: displayedCurrency, amount: this.inputValue || '0.00' } }))))), h("div", { class: "ModalFooter" }, h("hr", null), h("div", { class: "Paragraphs" }, h("p", { class: "ExistingLimit" }, translate('LugasSetLimitDialogExistingLimit.text', this.lang), h("span", { class: "Link", onClick: () => this.postPlayerSituation(this.amount, true) }, translate('LugasSetLimitDialogExistingLimit.link', this.lang))), h("p", { class: "PrivacyNote" }, translate('LugasSetLimitDialogPrivacyNote.text', this.lang), h("span", { class: "Link", onClick: this.goToPrivacyPolicy }, translate('LugasSetLimitDialogPrivacyNote.link', this.lang)))))));
229
+ h("div", null, h("input", { class: `CustomAmountInput ${this.errorMessageOnInput ? 'InvalidInput' : ''}`, type: "number", value: this.selectedPredefinedAmount === 'Max' ? this.maxAmount : null, step: 0.01, placeholder: "0.00", disabled: this.selectedPredefinedAmount === 'Max', onInput: (event) => this.handleInputChange(event) }), this.errorMessageOnInput && h("p", { class: "InvalidParagraph" }, this.errorMessageOnInput)), this.selectedPredefinedAmount &&
230
+ h("button", { class: "PrimaryButton SetLimitBtn", type: "submit", disabled: this.isSubmitted || !Boolean(this.newAmount) || Boolean(this.errorMessageOnInput) }, translate('LugasSetLimitDialogButtonSetLimit', this.lang, { values: { currency: this.displayedCurrency, amount: this.newAmount || '0.00' } }))))), h("div", { class: "ModalFooter" }, h("hr", null), h("div", { class: "Paragraphs" }, h("p", { class: "ExistingLimit" }, translate('LugasSetLimitDialogExistingLimit.text', this.lang), h("span", { class: this.isUseExistingLimitOptionActive ? 'Link' : 'Link Inactive', onClick: () => this.submitMonthlyDepositLimit(this.amount, true) }, translate('LugasSetLimitDialogExistingLimit.link', this.lang))), h("p", { class: "PrivacyNote" }, translate('LugasSetLimitDialogPrivacyNote.text', this.lang), h("span", { class: "Link", onClick: this.goToPrivacyPolicy }, translate('LugasSetLimitDialogPrivacyNote.link', this.lang)))))));
261
231
  }
262
232
  /**
263
233
  * Renders the component.
@@ -266,8 +236,8 @@ export class PlayerLugasLimit {
266
236
  if (this.isLoading) {
267
237
  return (h("div", null, h("p", null, translate('loading', this.lang, { values: { currency: this.currency } }))));
268
238
  }
269
- else if (this.hasErrors) {
270
- return (h("div", null, h("p", null, translate('error', this.lang))));
239
+ else if (this.errorMessageOnInitialization) {
240
+ return (h("div", null, h("p", null, this.errorMessageOnInitialization)));
271
241
  }
272
242
  else {
273
243
  const validationContainer = this.renderValidator();
@@ -443,7 +413,7 @@ export class PlayerLugasLimit {
443
413
  "optional": false,
444
414
  "docs": {
445
415
  "tags": [],
446
- "text": ""
416
+ "text": "Client custom styling via streamStyling"
447
417
  },
448
418
  "attribute": "mb-source",
449
419
  "reflect": false
@@ -470,19 +440,15 @@ export class PlayerLugasLimit {
470
440
  }
471
441
  static get states() {
472
442
  return {
473
- "showCustomAmount": {},
474
443
  "isLoading": {},
475
- "hasErrors": {},
476
- "inputValue": {},
477
- "showInvalidInputError": {},
478
- "predefinedAmountsArray": {},
479
- "isWithinRange": {},
480
- "minimumRange": {},
444
+ "showCustomAmount": {},
445
+ "isSubmitted": {},
446
+ "isUseExistingLimitOptionActive": {},
481
447
  "selectedPredefinedAmount": {},
482
- "errorMessage": {},
483
- "wasSubmitted": {},
484
- "minAmount": {},
485
- "maxAmount": {}
448
+ "errorMessageOnInitialization": {},
449
+ "errorMessageOnSubmit": {},
450
+ "errorMessageOnInput": {},
451
+ "newAmount": {}
486
452
  };
487
453
  }
488
454
  static get events() {
@@ -5,7 +5,7 @@ import { g as globalScripts } from './app-globals-0f993ce5.js';
5
5
  const defineCustomElements = async (win, options) => {
6
6
  if (typeof window === 'undefined') return undefined;
7
7
  await globalScripts();
8
- return bootstrapLazy([["player-lugas-limit",[[1,"player-lugas-limit",{"userId":[1,"user-id"],"session":[1],"endpoint":[1],"currency":[1],"amount":[1],"lang":[1],"clientStyling":[1,"client-styling"],"clientStylingUrl":[1,"client-styling-url"],"mbSource":[1,"mb-source"],"translationUrl":[1,"translation-url"],"showCustomAmount":[32],"isLoading":[32],"hasErrors":[32],"inputValue":[32],"showInvalidInputError":[32],"predefinedAmountsArray":[32],"isWithinRange":[32],"minimumRange":[32],"selectedPredefinedAmount":[32],"errorMessage":[32],"wasSubmitted":[32],"minAmount":[32],"maxAmount":[32]},null,{"translationUrl":["handleNewTranslations"],"clientStyling":["handleClientStylingChange"],"clientStylingUrl":["handleClientStylingUrlChange"]}]]]], options);
8
+ return bootstrapLazy([["player-lugas-limit",[[1,"player-lugas-limit",{"userId":[1,"user-id"],"session":[1],"endpoint":[1],"currency":[1],"amount":[1],"lang":[1],"clientStyling":[1,"client-styling"],"clientStylingUrl":[1,"client-styling-url"],"mbSource":[1,"mb-source"],"translationUrl":[1,"translation-url"],"isLoading":[32],"showCustomAmount":[32],"isSubmitted":[32],"isUseExistingLimitOptionActive":[32],"selectedPredefinedAmount":[32],"errorMessageOnInitialization":[32],"errorMessageOnSubmit":[32],"errorMessageOnInput":[32],"newAmount":[32]},null,{"translationUrl":["handleNewTranslations"],"clientStyling":["handleClientStylingChange"],"clientStylingUrl":["handleClientStylingUrlChange"]}]]]], options);
9
9
  };
10
10
 
11
11
  export { defineCustomElements };