@everymatrix/player-lugas-limit 1.13.4 → 1.13.6
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/loader.cjs.js +1 -1
- package/dist/cjs/player-lugas-limit.cjs.entry.js +10 -4
- package/dist/cjs/player-lugas-limit.cjs.js +1 -1
- package/dist/collection/components/player-lugas-limit/player-lugas-limit.js +7 -5
- package/dist/collection/utils/locale.utils.js +5 -0
- package/dist/components/player-lugas-limit.js +12 -5
- package/dist/esm/loader.js +1 -1
- package/dist/esm/player-lugas-limit.entry.js +10 -4
- package/dist/esm/player-lugas-limit.js +1 -1
- package/dist/player-lugas-limit/p-50933a63.entry.js +1 -0
- package/dist/player-lugas-limit/player-lugas-limit.esm.js +1 -1
- package/dist/types/components/player-lugas-limit/player-lugas-limit.d.ts +1 -0
- package/package.json +1 -1
- package/dist/player-lugas-limit/p-dae2a02f.entry.js +0 -1
package/dist/cjs/loader.cjs.js
CHANGED
|
@@ -14,7 +14,7 @@ const patchEsm = () => {
|
|
|
14
14
|
const defineCustomElements = (win, options) => {
|
|
15
15
|
if (typeof window === 'undefined') return Promise.resolve();
|
|
16
16
|
return patchEsm().then(() => {
|
|
17
|
-
return index.bootstrapLazy([["player-lugas-limit.cjs",[[1,"player-lugas-limit",{"userId":[1,"user-id"],"session":[1],"endpoint":[1],"currency":[1],"flow":[1],"amountMinMax":[1,"amount-min-max"],"amount":[1],"lang":[1],"clientStyling":[1,"client-styling"],"clientStylingUrl":[1,"client-styling-url"],"translationUrl":[1,"translation-url"],"validation":[32],"kyc":[32],"dropDown":[32],"isLoading":[32],"hasErrors":[32],"inputValue":[32],"isButtonDisabled":[32],"crossProviders":[32],"invalidInput":[32],"userAmount":[32],"operatorDepositLimitAmount":[32],"regularDepositLimitAmount":[32],"stylingAppends":[32],"isWithinRange":[32]}]]]], options);
|
|
17
|
+
return index.bootstrapLazy([["player-lugas-limit.cjs",[[1,"player-lugas-limit",{"userId":[1,"user-id"],"session":[1],"endpoint":[1],"currency":[1],"flow":[1],"amountMinMax":[1,"amount-min-max"],"amount":[1],"lang":[1],"clientStyling":[1,"client-styling"],"clientStylingUrl":[1,"client-styling-url"],"translationUrl":[1,"translation-url"],"validation":[32],"kyc":[32],"dropDown":[32],"isLoading":[32],"hasErrors":[32],"inputValue":[32],"isButtonDisabled":[32],"crossProviders":[32],"invalidInput":[32],"userAmount":[32],"operatorDepositLimitAmount":[32],"regularDepositLimitAmount":[32],"stylingAppends":[32],"isWithinRange":[32],"minimumRange":[32]}]]]], options);
|
|
18
18
|
});
|
|
19
19
|
};
|
|
20
20
|
|
|
@@ -30,6 +30,7 @@ let TRANSLATIONS = {
|
|
|
30
30
|
softMigrationP2: 'According to legal regulations, players are required to set an individual monthly deposit limit or indicate that an already set deposit limit should be kept unchanged. Please note that the limit set should correspond to your financial situation. Consume gambling responsibly and adapt the gambling behavior to your individual circumstances!',
|
|
31
31
|
softMigrationP3: 'Do you want to set a new limit or confirm the existing limit (of {currency} <b>{amount}</b>) ?',
|
|
32
32
|
invalidNumber: 'Invalid number format. Please enter a valid number.',
|
|
33
|
+
minimumRange: 'The value entered must be higher than {min}',
|
|
33
34
|
outOfRange: 'The value entered must be between {min} and {max}.',
|
|
34
35
|
invalidDecimalSeparator: 'Invalid decimal separator. Please use a dot (.) instead of a comma (,).',
|
|
35
36
|
},
|
|
@@ -56,6 +57,7 @@ let TRANSLATIONS = {
|
|
|
56
57
|
softMigrationP2: 'According to legal regulations, players are required to set an individual monthly deposit limit or indicate that an already set deposit limit should be kept unchanged. Please note that the limit set should correspond to your financial situation. Consume gambling responsibly and adapt the gambling behavior to your individual circumstances!',
|
|
57
58
|
softMigrationP3: 'Do you want to set a new limit or confirm the existing limit (of {currency} <b>{amount}</b>) ?',
|
|
58
59
|
invalidNumber: 'Invalid number format. Please enter a valid number.',
|
|
60
|
+
minimumRange: 'The value entered must be higher than {min}',
|
|
59
61
|
outOfRange: 'The value entered must be between {min} and {max}.',
|
|
60
62
|
invalidDecimalSeparator: 'Invalid decimal separator. Please use a dot (.) instead of a comma (,).',
|
|
61
63
|
},
|
|
@@ -82,6 +84,7 @@ let TRANSLATIONS = {
|
|
|
82
84
|
softMigrationP2: 'According to legal regulations, players are required to set an individual monthly deposit limit or indicate that an already set deposit limit should be kept unchanged. Please note that the limit set should correspond to your financial situation. Consume gambling responsibly and adapt the gambling behavior to your individual circumstances!',
|
|
83
85
|
softMigrationP3: 'Do you want to set a new limit or confirm the existing limit ',
|
|
84
86
|
invalidNumber: 'Invalid number format. Please enter a valid number.',
|
|
87
|
+
minimumRange: 'The value entered must be higher than {min}',
|
|
85
88
|
outOfRange: 'The value entered must be between {min} and {max}.',
|
|
86
89
|
invalidDecimalSeparator: 'Invalid decimal separator. Please use a dot (.) instead of a comma (,).',
|
|
87
90
|
},
|
|
@@ -108,6 +111,7 @@ let TRANSLATIONS = {
|
|
|
108
111
|
softMigrationP2: 'According to legal regulations, players are required to set an individual monthly deposit limit or indicate that an already set deposit limit should be kept unchanged. Please note that the limit set should correspond to your financial situation. Consume gambling responsibly and adapt the gambling behavior to your individual circumstances!',
|
|
109
112
|
softMigrationP3: 'Do you want to set a new limit or confirm the existing limit ',
|
|
110
113
|
invalidNumber: 'Invalid number format. Please enter a valid number.',
|
|
114
|
+
minimumRange: 'The value entered must be higher than {min}',
|
|
111
115
|
outOfRange: 'The value entered must be between {min} and {max}.',
|
|
112
116
|
invalidDecimalSeparator: 'Invalid decimal separator. Please use a dot (.) instead of a comma (,).',
|
|
113
117
|
},
|
|
@@ -134,6 +138,7 @@ let TRANSLATIONS = {
|
|
|
134
138
|
softMigrationP2: 'According to legal regulations, players are required to set an individual monthly deposit limit or indicate that an already set deposit limit should be kept unchanged. Please note that the limit set should correspond to your financial situation. Consume gambling responsibly and adapt the gambling behavior to your individual circumstances!',
|
|
135
139
|
softMigrationP3: 'Do you want to set a new limit or confirm the existing limit ',
|
|
136
140
|
invalidNumber: 'Invalid number format. Please enter a valid number.',
|
|
141
|
+
minimumRange: 'The value entered must be higher than {min}',
|
|
137
142
|
outOfRange: 'The value entered must be between {min} and {max}.',
|
|
138
143
|
invalidDecimalSeparator: 'Invalid decimal separator. Please use a dot (.) instead of a comma (,).',
|
|
139
144
|
}
|
|
@@ -353,9 +358,10 @@ const PlayerLugasLimit = class {
|
|
|
353
358
|
let max = parseInt(this.amountMinMax.split(',')[1]);
|
|
354
359
|
// Perform validation checks
|
|
355
360
|
this.isValidNumber = !isNaN(Number(inputValue)) && this.containsOnlyDigits(inputValue);
|
|
356
|
-
this.isButtonDisabled = !this.isValidNumber || !this.isWithinRange;
|
|
357
361
|
this.invalidInput = !this.isValidNumber;
|
|
358
|
-
this.
|
|
362
|
+
this.minimumRange = Number(inputValue) >= min;
|
|
363
|
+
this.isWithinRange = Number(inputValue) <= max;
|
|
364
|
+
this.isButtonDisabled = !this.isValidNumber || !this.isWithinRange || !this.minimumRange;
|
|
359
365
|
}
|
|
360
366
|
renderKYC(step) {
|
|
361
367
|
if (step == 0) {
|
|
@@ -400,8 +406,8 @@ const PlayerLugasLimit = class {
|
|
|
400
406
|
}
|
|
401
407
|
else {
|
|
402
408
|
return (index.h("div", { class: "ModalContainer", ref: el => this.stylingContainer = el }, index.h("div", { class: "Container" }, index.h("div", { class: "ModalHeader" }, index.h("svg", { width: "107", height: "20", viewBox: "0 0 107 20", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, index.h("path", { d: "M2.7948 17.4348C10.9082 18.9412 30.1923 20.0001 52.698 20.0001C75.2036 20.0001 94.4729 18.9412 102.601 17.4348H2.7948Z", fill: "#7EC51E" }), index.h("path", { d: "M66.4489 3.87771H64.1074L64.7934 0L60.7815 1.37211L58.3505 14.9143H62.1089L63.481 7.308C63.5705 6.84565 63.7942 6.65177 64.1969 6.65177H64.5697C64.9426 6.65177 65.0917 6.80091 65.0321 7.14394L63.6301 14.9292H67.4034L68.8949 6.63685C69.1931 4.95154 68.5518 3.87771 66.4489 3.87771Z", fill: "#002554" }), index.h("path", { d: "M93.0858 3.87769H92.6831H85.3901H81.6913L79.6928 14.9143H83.4512L84.8233 7.30797C84.9128 6.84563 85.1365 6.65174 85.5392 6.65174H85.9121C86.2849 6.65174 86.4341 6.80088 86.3744 7.14391L84.9725 14.9292H88.7309L90.103 7.32288C90.1925 6.86054 90.4162 6.66666 90.8189 6.66666H91.1917C91.5646 6.66666 91.7137 6.8158 91.6541 7.15883L90.2521 14.9441H94.0105L95.5019 6.65174C95.8301 4.95151 95.1887 3.87769 93.0858 3.87769Z", fill: "#002554" }), index.h("path", { d: "M51.9523 10.6639H57.0828L57.5302 8.11353H52.3997L51.9523 10.6639Z", fill: "#002554" }), index.h("path", { d: "M51.2363 1.34229L47.2244 2.7144L45.5093 12.1701C45.211 13.8255 45.897 14.9143 48.2684 14.9143H50.1476L50.6398 12.1551H49.8195C49.4466 12.1551 49.2975 12.006 49.3571 11.663L50.3266 6.42805H51.6689L52.1163 3.87771H50.7889L51.2363 1.34229Z", fill: "#002554" }), index.h("path", { d: "M27.2095 1.34229L23.1976 2.7144L21.4825 12.1701C21.1842 13.8255 21.8702 14.9143 24.2416 14.9143H26.1208L26.613 12.1551H25.7927C25.4198 12.1551 25.2707 12.006 25.3303 11.663L26.2998 6.42805H27.6421L28.0895 3.87771H26.7621L27.2095 1.34229Z", fill: "#002554" }), index.h("path", { d: "M27.8807 10.6639H33.0112L33.4736 8.11353H28.3431L27.8807 10.6639Z", fill: "#002554" }), index.h("path", { d: "M7.6569 3.87771H5.31536L6.01633 0L2.00439 1.37211L0.169932 11.5735L0.0655323 12.1701C-0.232753 13.8255 0.453304 14.9143 2.82467 14.9143H5.65839C7.7613 14.9143 8.79039 13.8255 9.08867 12.1701L10.0879 6.62194C10.4011 4.95154 9.75981 3.87771 7.6569 3.87771ZM6.25496 7.12903L5.43467 11.663C5.37502 11.9911 5.16622 12.1551 4.79336 12.1551H4.4205C4.01782 12.1551 3.85376 11.9613 3.94324 11.4989L4.70387 7.32291C4.79336 6.86057 5.01707 6.66668 5.41976 6.66668H5.79262C6.16547 6.63685 6.31461 6.786 6.25496 7.12903Z", fill: "#002554" }), index.h("path", { d: "M76.8891 3.87769H74.0852C71.7138 3.87769 70.7444 4.96643 70.4461 6.62191L69.4468 12.17C69.1486 13.8255 69.7302 14.9143 72.0867 14.9143H74.8906C77.2619 14.9143 78.2313 13.8255 78.5296 12.17L79.5289 6.62191C79.8421 4.95151 79.2604 3.87769 76.8891 3.87769ZM75.7854 6.96494L74.9055 11.8121C74.8458 12.1402 74.637 12.3043 74.2641 12.3043H73.6676C73.2947 12.3043 73.1456 12.1551 73.2052 11.8121L74.0852 6.96494C74.1448 6.63683 74.3536 6.47277 74.7265 6.47277H75.3231C75.6959 6.47277 75.8451 6.63683 75.7854 6.96494Z", fill: "#002554" }), index.h("path", { d: "M18.082 3.87769H15.3825C13.0111 3.87769 11.9373 4.96643 11.639 6.62191L10.6398 12.17C10.3415 13.8255 11.0275 14.9143 13.3989 14.9143H16.0984C18.4697 14.9143 19.5436 13.8255 19.8419 12.17L19.991 11.3796H16.4265L16.3519 11.7972C16.2923 12.1253 16.0835 12.3341 15.6957 12.3341H14.7263C14.3534 12.3341 14.2043 12.1849 14.2639 11.8419L14.4727 10.6637H20.1103L20.4832 8.62043L20.8411 6.62191C21.1394 4.95151 20.4384 3.87769 18.082 3.87769ZM17.2169 6.95003L17.0081 8.12825H14.9351L15.1439 6.95003C15.2035 6.62191 15.4123 6.45786 15.7852 6.45786H16.7546C17.1275 6.45786 17.2766 6.607 17.2169 6.95003Z", fill: "#002554" }), index.h("path", { d: "M42.2133 3.87769H39.5138C37.1424 3.87769 36.0686 4.96643 35.7703 6.62191L35.6212 7.41237H39.1857L39.2602 6.99477C39.3199 6.66666 39.5287 6.45786 39.9165 6.45786H40.8859C41.2588 6.45786 41.4079 6.607 41.3482 6.95003L41.1394 8.12825H37.0828C36.2028 8.12825 35.3676 8.82923 35.2185 9.70917L35.0842 10.4101L34.771 12.17C34.4728 13.8255 35.1588 14.9143 37.5302 14.9143H43.4959L44.9873 6.62191C45.2707 4.95151 44.5846 3.87769 42.2133 3.87769ZM40.4683 11.827C40.4086 12.1551 40.1998 12.3192 39.827 12.3192H38.8576C38.4847 12.3192 38.3356 12.17 38.3952 11.827L38.604 10.6488H40.6771L40.4683 11.827Z", fill: "#002554" }), index.h("path", { d: "M103.63 3.87769H100.931C98.5593 3.87769 97.4855 4.96643 97.1872 6.62191L96.1879 12.17C95.8896 13.8255 96.5757 14.9143 98.947 14.9143H101.647C104.018 14.9143 105.092 13.8255 105.39 12.17L105.539 11.3796H101.975L101.9 11.7972C101.84 12.1253 101.632 12.3341 101.259 12.3341H100.289C99.9165 12.3341 99.7673 12.1849 99.827 11.8419L100.036 10.6637H105.673L106.046 8.62043L106.404 6.62191C106.688 4.95151 106.002 3.87769 103.63 3.87769ZM102.765 6.95003L102.556 8.12825H100.483L100.692 6.95003C100.752 6.62191 100.96 6.45786 101.333 6.45786H102.303C102.676 6.45786 102.825 6.607 102.765 6.95003Z", fill: "#002554" }))), index.h("div", { class: "ModalBody" }, this.validation ? validationContainer : kycConfirmation, this.dropDown ?
|
|
403
|
-
index.h("div", null, index.h("hr", null), index.h("div", { class: "ModalFooter" }, index.h("div", { class: "Dropdown" }, index.h("p", null, translate('monthlyDeposit', this.lang, { values: { currency: this.currency } })), index.h("form", { onSubmit: (event) => this.handleSubmit(event) }, index.h("div", { class: "DropdownInput" }, index.h("input", { type: "number", value: this.inputValue, class: !this.invalidInput || this.invalidInput == undefined ? '' : "InvalidInput", placeholder: "0", onInput: (event) => this.handleInputChange(event) }), index.h("button", { disabled: this.isButtonDisabled }, translate('setLimit', this.lang, { values: { currency: this.currency } }))), this.invalidInput || !this.isWithinRange && this.invalidInput != undefined ?
|
|
404
|
-
index.h("p", { class: "InvalidParagraph" }, !this.isValidNumber ? (translate('invalidNumber', this.lang, { values: { currency: this.currency } })) : !this.isWithinRange ? (translate('outOfRange', this.lang, { values: { currency: this.currency, min: this.amountMinMax.split(',')[0], max: this.amountMinMax.split(',')[1] } })) : null)
|
|
409
|
+
index.h("div", null, index.h("hr", null), index.h("div", { class: "ModalFooter" }, index.h("div", { class: "Dropdown" }, index.h("p", null, translate('monthlyDeposit', this.lang, { values: { currency: this.currency } })), index.h("form", { onSubmit: (event) => this.handleSubmit(event) }, index.h("div", { class: "DropdownInput" }, index.h("input", { type: "number", value: this.inputValue, class: !this.invalidInput || this.invalidInput == undefined ? '' : "InvalidInput", placeholder: "0", onInput: (event) => this.handleInputChange(event) }), index.h("button", { disabled: this.isButtonDisabled }, translate('setLimit', this.lang, { values: { currency: this.currency } }))), (this.invalidInput || !this.isWithinRange || !this.minimumRange) && this.invalidInput != undefined ?
|
|
410
|
+
index.h("p", { class: "InvalidParagraph" }, !this.isValidNumber ? (translate('invalidNumber', this.lang, { values: { currency: this.currency } })) : !this.isWithinRange ? (translate('outOfRange', this.lang, { values: { currency: this.currency, min: this.amountMinMax.split(',')[0], max: this.amountMinMax.split(',')[1] } })) : !this.minimumRange ? (translate('minimumRange', this.lang, { values: { currency: this.currency, min: this.amountMinMax.split(',')[0], max: this.amountMinMax.split(',')[1] } })) : null)
|
|
405
411
|
: null))))
|
|
406
412
|
: null))));
|
|
407
413
|
}
|
|
@@ -15,5 +15,5 @@ const patchBrowser = () => {
|
|
|
15
15
|
};
|
|
16
16
|
|
|
17
17
|
patchBrowser().then(options => {
|
|
18
|
-
return index.bootstrapLazy([["player-lugas-limit.cjs",[[1,"player-lugas-limit",{"userId":[1,"user-id"],"session":[1],"endpoint":[1],"currency":[1],"flow":[1],"amountMinMax":[1,"amount-min-max"],"amount":[1],"lang":[1],"clientStyling":[1,"client-styling"],"clientStylingUrl":[1,"client-styling-url"],"translationUrl":[1,"translation-url"],"validation":[32],"kyc":[32],"dropDown":[32],"isLoading":[32],"hasErrors":[32],"inputValue":[32],"isButtonDisabled":[32],"crossProviders":[32],"invalidInput":[32],"userAmount":[32],"operatorDepositLimitAmount":[32],"regularDepositLimitAmount":[32],"stylingAppends":[32],"isWithinRange":[32]}]]]], options);
|
|
18
|
+
return index.bootstrapLazy([["player-lugas-limit.cjs",[[1,"player-lugas-limit",{"userId":[1,"user-id"],"session":[1],"endpoint":[1],"currency":[1],"flow":[1],"amountMinMax":[1,"amount-min-max"],"amount":[1],"lang":[1],"clientStyling":[1,"client-styling"],"clientStylingUrl":[1,"client-styling-url"],"translationUrl":[1,"translation-url"],"validation":[32],"kyc":[32],"dropDown":[32],"isLoading":[32],"hasErrors":[32],"inputValue":[32],"isButtonDisabled":[32],"crossProviders":[32],"invalidInput":[32],"userAmount":[32],"operatorDepositLimitAmount":[32],"regularDepositLimitAmount":[32],"stylingAppends":[32],"isWithinRange":[32],"minimumRange":[32]}]]]], options);
|
|
19
19
|
});
|
|
@@ -183,9 +183,10 @@ export class PlayerLugasLimit {
|
|
|
183
183
|
let max = parseInt(this.amountMinMax.split(',')[1]);
|
|
184
184
|
// Perform validation checks
|
|
185
185
|
this.isValidNumber = !isNaN(Number(inputValue)) && this.containsOnlyDigits(inputValue);
|
|
186
|
-
this.isButtonDisabled = !this.isValidNumber || !this.isWithinRange;
|
|
187
186
|
this.invalidInput = !this.isValidNumber;
|
|
188
|
-
this.
|
|
187
|
+
this.minimumRange = Number(inputValue) >= min;
|
|
188
|
+
this.isWithinRange = Number(inputValue) <= max;
|
|
189
|
+
this.isButtonDisabled = !this.isValidNumber || !this.isWithinRange || !this.minimumRange;
|
|
189
190
|
}
|
|
190
191
|
renderKYC(step) {
|
|
191
192
|
if (step == 0) {
|
|
@@ -298,8 +299,8 @@ export class PlayerLugasLimit {
|
|
|
298
299
|
h("div", { class: "DropdownInput" },
|
|
299
300
|
h("input", { type: "number", value: this.inputValue, class: !this.invalidInput || this.invalidInput == undefined ? '' : "InvalidInput", placeholder: "0", onInput: (event) => this.handleInputChange(event) }),
|
|
300
301
|
h("button", { disabled: this.isButtonDisabled }, translate('setLimit', this.lang, { values: { currency: this.currency } }))),
|
|
301
|
-
this.invalidInput || !this.isWithinRange && this.invalidInput != undefined ?
|
|
302
|
-
h("p", { class: "InvalidParagraph" }, !this.isValidNumber ? (translate('invalidNumber', this.lang, { values: { currency: this.currency } })) : !this.isWithinRange ? (translate('outOfRange', this.lang, { values: { currency: this.currency, min: this.amountMinMax.split(',')[0], max: this.amountMinMax.split(',')[1] } })) : null)
|
|
302
|
+
(this.invalidInput || !this.isWithinRange || !this.minimumRange) && this.invalidInput != undefined ?
|
|
303
|
+
h("p", { class: "InvalidParagraph" }, !this.isValidNumber ? (translate('invalidNumber', this.lang, { values: { currency: this.currency } })) : !this.isWithinRange ? (translate('outOfRange', this.lang, { values: { currency: this.currency, min: this.amountMinMax.split(',')[0], max: this.amountMinMax.split(',')[1] } })) : !this.minimumRange ? (translate('minimumRange', this.lang, { values: { currency: this.currency, min: this.amountMinMax.split(',')[0], max: this.amountMinMax.split(',')[1] } })) : null)
|
|
303
304
|
: null))))
|
|
304
305
|
: null))));
|
|
305
306
|
}
|
|
@@ -526,7 +527,8 @@ export class PlayerLugasLimit {
|
|
|
526
527
|
"operatorDepositLimitAmount": {},
|
|
527
528
|
"regularDepositLimitAmount": {},
|
|
528
529
|
"stylingAppends": {},
|
|
529
|
-
"isWithinRange": {}
|
|
530
|
+
"isWithinRange": {},
|
|
531
|
+
"minimumRange": {}
|
|
530
532
|
}; }
|
|
531
533
|
static get events() { return [{
|
|
532
534
|
"method": "uploadDocuments",
|
|
@@ -24,6 +24,7 @@ let TRANSLATIONS = {
|
|
|
24
24
|
softMigrationP2: 'According to legal regulations, players are required to set an individual monthly deposit limit or indicate that an already set deposit limit should be kept unchanged. Please note that the limit set should correspond to your financial situation. Consume gambling responsibly and adapt the gambling behavior to your individual circumstances!',
|
|
25
25
|
softMigrationP3: 'Do you want to set a new limit or confirm the existing limit (of {currency} <b>{amount}</b>) ?',
|
|
26
26
|
invalidNumber: 'Invalid number format. Please enter a valid number.',
|
|
27
|
+
minimumRange: 'The value entered must be higher than {min}',
|
|
27
28
|
outOfRange: 'The value entered must be between {min} and {max}.',
|
|
28
29
|
invalidDecimalSeparator: 'Invalid decimal separator. Please use a dot (.) instead of a comma (,).',
|
|
29
30
|
},
|
|
@@ -50,6 +51,7 @@ let TRANSLATIONS = {
|
|
|
50
51
|
softMigrationP2: 'According to legal regulations, players are required to set an individual monthly deposit limit or indicate that an already set deposit limit should be kept unchanged. Please note that the limit set should correspond to your financial situation. Consume gambling responsibly and adapt the gambling behavior to your individual circumstances!',
|
|
51
52
|
softMigrationP3: 'Do you want to set a new limit or confirm the existing limit (of {currency} <b>{amount}</b>) ?',
|
|
52
53
|
invalidNumber: 'Invalid number format. Please enter a valid number.',
|
|
54
|
+
minimumRange: 'The value entered must be higher than {min}',
|
|
53
55
|
outOfRange: 'The value entered must be between {min} and {max}.',
|
|
54
56
|
invalidDecimalSeparator: 'Invalid decimal separator. Please use a dot (.) instead of a comma (,).',
|
|
55
57
|
},
|
|
@@ -76,6 +78,7 @@ let TRANSLATIONS = {
|
|
|
76
78
|
softMigrationP2: 'According to legal regulations, players are required to set an individual monthly deposit limit or indicate that an already set deposit limit should be kept unchanged. Please note that the limit set should correspond to your financial situation. Consume gambling responsibly and adapt the gambling behavior to your individual circumstances!',
|
|
77
79
|
softMigrationP3: 'Do you want to set a new limit or confirm the existing limit ',
|
|
78
80
|
invalidNumber: 'Invalid number format. Please enter a valid number.',
|
|
81
|
+
minimumRange: 'The value entered must be higher than {min}',
|
|
79
82
|
outOfRange: 'The value entered must be between {min} and {max}.',
|
|
80
83
|
invalidDecimalSeparator: 'Invalid decimal separator. Please use a dot (.) instead of a comma (,).',
|
|
81
84
|
},
|
|
@@ -102,6 +105,7 @@ let TRANSLATIONS = {
|
|
|
102
105
|
softMigrationP2: 'According to legal regulations, players are required to set an individual monthly deposit limit or indicate that an already set deposit limit should be kept unchanged. Please note that the limit set should correspond to your financial situation. Consume gambling responsibly and adapt the gambling behavior to your individual circumstances!',
|
|
103
106
|
softMigrationP3: 'Do you want to set a new limit or confirm the existing limit ',
|
|
104
107
|
invalidNumber: 'Invalid number format. Please enter a valid number.',
|
|
108
|
+
minimumRange: 'The value entered must be higher than {min}',
|
|
105
109
|
outOfRange: 'The value entered must be between {min} and {max}.',
|
|
106
110
|
invalidDecimalSeparator: 'Invalid decimal separator. Please use a dot (.) instead of a comma (,).',
|
|
107
111
|
},
|
|
@@ -128,6 +132,7 @@ let TRANSLATIONS = {
|
|
|
128
132
|
softMigrationP2: 'According to legal regulations, players are required to set an individual monthly deposit limit or indicate that an already set deposit limit should be kept unchanged. Please note that the limit set should correspond to your financial situation. Consume gambling responsibly and adapt the gambling behavior to your individual circumstances!',
|
|
129
133
|
softMigrationP3: 'Do you want to set a new limit or confirm the existing limit ',
|
|
130
134
|
invalidNumber: 'Invalid number format. Please enter a valid number.',
|
|
135
|
+
minimumRange: 'The value entered must be higher than {min}',
|
|
131
136
|
outOfRange: 'The value entered must be between {min} and {max}.',
|
|
132
137
|
invalidDecimalSeparator: 'Invalid decimal separator. Please use a dot (.) instead of a comma (,).',
|
|
133
138
|
}
|
|
@@ -26,6 +26,7 @@ let TRANSLATIONS = {
|
|
|
26
26
|
softMigrationP2: 'According to legal regulations, players are required to set an individual monthly deposit limit or indicate that an already set deposit limit should be kept unchanged. Please note that the limit set should correspond to your financial situation. Consume gambling responsibly and adapt the gambling behavior to your individual circumstances!',
|
|
27
27
|
softMigrationP3: 'Do you want to set a new limit or confirm the existing limit (of {currency} <b>{amount}</b>) ?',
|
|
28
28
|
invalidNumber: 'Invalid number format. Please enter a valid number.',
|
|
29
|
+
minimumRange: 'The value entered must be higher than {min}',
|
|
29
30
|
outOfRange: 'The value entered must be between {min} and {max}.',
|
|
30
31
|
invalidDecimalSeparator: 'Invalid decimal separator. Please use a dot (.) instead of a comma (,).',
|
|
31
32
|
},
|
|
@@ -52,6 +53,7 @@ let TRANSLATIONS = {
|
|
|
52
53
|
softMigrationP2: 'According to legal regulations, players are required to set an individual monthly deposit limit or indicate that an already set deposit limit should be kept unchanged. Please note that the limit set should correspond to your financial situation. Consume gambling responsibly and adapt the gambling behavior to your individual circumstances!',
|
|
53
54
|
softMigrationP3: 'Do you want to set a new limit or confirm the existing limit (of {currency} <b>{amount}</b>) ?',
|
|
54
55
|
invalidNumber: 'Invalid number format. Please enter a valid number.',
|
|
56
|
+
minimumRange: 'The value entered must be higher than {min}',
|
|
55
57
|
outOfRange: 'The value entered must be between {min} and {max}.',
|
|
56
58
|
invalidDecimalSeparator: 'Invalid decimal separator. Please use a dot (.) instead of a comma (,).',
|
|
57
59
|
},
|
|
@@ -78,6 +80,7 @@ let TRANSLATIONS = {
|
|
|
78
80
|
softMigrationP2: 'According to legal regulations, players are required to set an individual monthly deposit limit or indicate that an already set deposit limit should be kept unchanged. Please note that the limit set should correspond to your financial situation. Consume gambling responsibly and adapt the gambling behavior to your individual circumstances!',
|
|
79
81
|
softMigrationP3: 'Do you want to set a new limit or confirm the existing limit ',
|
|
80
82
|
invalidNumber: 'Invalid number format. Please enter a valid number.',
|
|
83
|
+
minimumRange: 'The value entered must be higher than {min}',
|
|
81
84
|
outOfRange: 'The value entered must be between {min} and {max}.',
|
|
82
85
|
invalidDecimalSeparator: 'Invalid decimal separator. Please use a dot (.) instead of a comma (,).',
|
|
83
86
|
},
|
|
@@ -104,6 +107,7 @@ let TRANSLATIONS = {
|
|
|
104
107
|
softMigrationP2: 'According to legal regulations, players are required to set an individual monthly deposit limit or indicate that an already set deposit limit should be kept unchanged. Please note that the limit set should correspond to your financial situation. Consume gambling responsibly and adapt the gambling behavior to your individual circumstances!',
|
|
105
108
|
softMigrationP3: 'Do you want to set a new limit or confirm the existing limit ',
|
|
106
109
|
invalidNumber: 'Invalid number format. Please enter a valid number.',
|
|
110
|
+
minimumRange: 'The value entered must be higher than {min}',
|
|
107
111
|
outOfRange: 'The value entered must be between {min} and {max}.',
|
|
108
112
|
invalidDecimalSeparator: 'Invalid decimal separator. Please use a dot (.) instead of a comma (,).',
|
|
109
113
|
},
|
|
@@ -130,6 +134,7 @@ let TRANSLATIONS = {
|
|
|
130
134
|
softMigrationP2: 'According to legal regulations, players are required to set an individual monthly deposit limit or indicate that an already set deposit limit should be kept unchanged. Please note that the limit set should correspond to your financial situation. Consume gambling responsibly and adapt the gambling behavior to your individual circumstances!',
|
|
131
135
|
softMigrationP3: 'Do you want to set a new limit or confirm the existing limit ',
|
|
132
136
|
invalidNumber: 'Invalid number format. Please enter a valid number.',
|
|
137
|
+
minimumRange: 'The value entered must be higher than {min}',
|
|
133
138
|
outOfRange: 'The value entered must be between {min} and {max}.',
|
|
134
139
|
invalidDecimalSeparator: 'Invalid decimal separator. Please use a dot (.) instead of a comma (,).',
|
|
135
140
|
}
|
|
@@ -351,9 +356,10 @@ const PlayerLugasLimit$1 = /*@__PURE__*/ proxyCustomElement(class extends HTMLEl
|
|
|
351
356
|
let max = parseInt(this.amountMinMax.split(',')[1]);
|
|
352
357
|
// Perform validation checks
|
|
353
358
|
this.isValidNumber = !isNaN(Number(inputValue)) && this.containsOnlyDigits(inputValue);
|
|
354
|
-
this.isButtonDisabled = !this.isValidNumber || !this.isWithinRange;
|
|
355
359
|
this.invalidInput = !this.isValidNumber;
|
|
356
|
-
this.
|
|
360
|
+
this.minimumRange = Number(inputValue) >= min;
|
|
361
|
+
this.isWithinRange = Number(inputValue) <= max;
|
|
362
|
+
this.isButtonDisabled = !this.isValidNumber || !this.isWithinRange || !this.minimumRange;
|
|
357
363
|
}
|
|
358
364
|
renderKYC(step) {
|
|
359
365
|
if (step == 0) {
|
|
@@ -398,8 +404,8 @@ const PlayerLugasLimit$1 = /*@__PURE__*/ proxyCustomElement(class extends HTMLEl
|
|
|
398
404
|
}
|
|
399
405
|
else {
|
|
400
406
|
return (h("div", { class: "ModalContainer", ref: el => this.stylingContainer = el }, h("div", { class: "Container" }, h("div", { class: "ModalHeader" }, h("svg", { width: "107", height: "20", viewBox: "0 0 107 20", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, h("path", { d: "M2.7948 17.4348C10.9082 18.9412 30.1923 20.0001 52.698 20.0001C75.2036 20.0001 94.4729 18.9412 102.601 17.4348H2.7948Z", fill: "#7EC51E" }), h("path", { d: "M66.4489 3.87771H64.1074L64.7934 0L60.7815 1.37211L58.3505 14.9143H62.1089L63.481 7.308C63.5705 6.84565 63.7942 6.65177 64.1969 6.65177H64.5697C64.9426 6.65177 65.0917 6.80091 65.0321 7.14394L63.6301 14.9292H67.4034L68.8949 6.63685C69.1931 4.95154 68.5518 3.87771 66.4489 3.87771Z", fill: "#002554" }), h("path", { d: "M93.0858 3.87769H92.6831H85.3901H81.6913L79.6928 14.9143H83.4512L84.8233 7.30797C84.9128 6.84563 85.1365 6.65174 85.5392 6.65174H85.9121C86.2849 6.65174 86.4341 6.80088 86.3744 7.14391L84.9725 14.9292H88.7309L90.103 7.32288C90.1925 6.86054 90.4162 6.66666 90.8189 6.66666H91.1917C91.5646 6.66666 91.7137 6.8158 91.6541 7.15883L90.2521 14.9441H94.0105L95.5019 6.65174C95.8301 4.95151 95.1887 3.87769 93.0858 3.87769Z", fill: "#002554" }), h("path", { d: "M51.9523 10.6639H57.0828L57.5302 8.11353H52.3997L51.9523 10.6639Z", fill: "#002554" }), h("path", { d: "M51.2363 1.34229L47.2244 2.7144L45.5093 12.1701C45.211 13.8255 45.897 14.9143 48.2684 14.9143H50.1476L50.6398 12.1551H49.8195C49.4466 12.1551 49.2975 12.006 49.3571 11.663L50.3266 6.42805H51.6689L52.1163 3.87771H50.7889L51.2363 1.34229Z", fill: "#002554" }), h("path", { d: "M27.2095 1.34229L23.1976 2.7144L21.4825 12.1701C21.1842 13.8255 21.8702 14.9143 24.2416 14.9143H26.1208L26.613 12.1551H25.7927C25.4198 12.1551 25.2707 12.006 25.3303 11.663L26.2998 6.42805H27.6421L28.0895 3.87771H26.7621L27.2095 1.34229Z", fill: "#002554" }), h("path", { d: "M27.8807 10.6639H33.0112L33.4736 8.11353H28.3431L27.8807 10.6639Z", fill: "#002554" }), h("path", { d: "M7.6569 3.87771H5.31536L6.01633 0L2.00439 1.37211L0.169932 11.5735L0.0655323 12.1701C-0.232753 13.8255 0.453304 14.9143 2.82467 14.9143H5.65839C7.7613 14.9143 8.79039 13.8255 9.08867 12.1701L10.0879 6.62194C10.4011 4.95154 9.75981 3.87771 7.6569 3.87771ZM6.25496 7.12903L5.43467 11.663C5.37502 11.9911 5.16622 12.1551 4.79336 12.1551H4.4205C4.01782 12.1551 3.85376 11.9613 3.94324 11.4989L4.70387 7.32291C4.79336 6.86057 5.01707 6.66668 5.41976 6.66668H5.79262C6.16547 6.63685 6.31461 6.786 6.25496 7.12903Z", fill: "#002554" }), h("path", { d: "M76.8891 3.87769H74.0852C71.7138 3.87769 70.7444 4.96643 70.4461 6.62191L69.4468 12.17C69.1486 13.8255 69.7302 14.9143 72.0867 14.9143H74.8906C77.2619 14.9143 78.2313 13.8255 78.5296 12.17L79.5289 6.62191C79.8421 4.95151 79.2604 3.87769 76.8891 3.87769ZM75.7854 6.96494L74.9055 11.8121C74.8458 12.1402 74.637 12.3043 74.2641 12.3043H73.6676C73.2947 12.3043 73.1456 12.1551 73.2052 11.8121L74.0852 6.96494C74.1448 6.63683 74.3536 6.47277 74.7265 6.47277H75.3231C75.6959 6.47277 75.8451 6.63683 75.7854 6.96494Z", fill: "#002554" }), h("path", { d: "M18.082 3.87769H15.3825C13.0111 3.87769 11.9373 4.96643 11.639 6.62191L10.6398 12.17C10.3415 13.8255 11.0275 14.9143 13.3989 14.9143H16.0984C18.4697 14.9143 19.5436 13.8255 19.8419 12.17L19.991 11.3796H16.4265L16.3519 11.7972C16.2923 12.1253 16.0835 12.3341 15.6957 12.3341H14.7263C14.3534 12.3341 14.2043 12.1849 14.2639 11.8419L14.4727 10.6637H20.1103L20.4832 8.62043L20.8411 6.62191C21.1394 4.95151 20.4384 3.87769 18.082 3.87769ZM17.2169 6.95003L17.0081 8.12825H14.9351L15.1439 6.95003C15.2035 6.62191 15.4123 6.45786 15.7852 6.45786H16.7546C17.1275 6.45786 17.2766 6.607 17.2169 6.95003Z", fill: "#002554" }), h("path", { d: "M42.2133 3.87769H39.5138C37.1424 3.87769 36.0686 4.96643 35.7703 6.62191L35.6212 7.41237H39.1857L39.2602 6.99477C39.3199 6.66666 39.5287 6.45786 39.9165 6.45786H40.8859C41.2588 6.45786 41.4079 6.607 41.3482 6.95003L41.1394 8.12825H37.0828C36.2028 8.12825 35.3676 8.82923 35.2185 9.70917L35.0842 10.4101L34.771 12.17C34.4728 13.8255 35.1588 14.9143 37.5302 14.9143H43.4959L44.9873 6.62191C45.2707 4.95151 44.5846 3.87769 42.2133 3.87769ZM40.4683 11.827C40.4086 12.1551 40.1998 12.3192 39.827 12.3192H38.8576C38.4847 12.3192 38.3356 12.17 38.3952 11.827L38.604 10.6488H40.6771L40.4683 11.827Z", fill: "#002554" }), h("path", { d: "M103.63 3.87769H100.931C98.5593 3.87769 97.4855 4.96643 97.1872 6.62191L96.1879 12.17C95.8896 13.8255 96.5757 14.9143 98.947 14.9143H101.647C104.018 14.9143 105.092 13.8255 105.39 12.17L105.539 11.3796H101.975L101.9 11.7972C101.84 12.1253 101.632 12.3341 101.259 12.3341H100.289C99.9165 12.3341 99.7673 12.1849 99.827 11.8419L100.036 10.6637H105.673L106.046 8.62043L106.404 6.62191C106.688 4.95151 106.002 3.87769 103.63 3.87769ZM102.765 6.95003L102.556 8.12825H100.483L100.692 6.95003C100.752 6.62191 100.96 6.45786 101.333 6.45786H102.303C102.676 6.45786 102.825 6.607 102.765 6.95003Z", fill: "#002554" }))), h("div", { class: "ModalBody" }, this.validation ? validationContainer : kycConfirmation, this.dropDown ?
|
|
401
|
-
h("div", null, h("hr", null), h("div", { class: "ModalFooter" }, h("div", { class: "Dropdown" }, h("p", null, translate('monthlyDeposit', this.lang, { values: { currency: this.currency } })), h("form", { onSubmit: (event) => this.handleSubmit(event) }, h("div", { class: "DropdownInput" }, h("input", { type: "number", value: this.inputValue, class: !this.invalidInput || this.invalidInput == undefined ? '' : "InvalidInput", placeholder: "0", onInput: (event) => this.handleInputChange(event) }), h("button", { disabled: this.isButtonDisabled }, translate('setLimit', this.lang, { values: { currency: this.currency } }))), this.invalidInput || !this.isWithinRange && this.invalidInput != undefined ?
|
|
402
|
-
h("p", { class: "InvalidParagraph" }, !this.isValidNumber ? (translate('invalidNumber', this.lang, { values: { currency: this.currency } })) : !this.isWithinRange ? (translate('outOfRange', this.lang, { values: { currency: this.currency, min: this.amountMinMax.split(',')[0], max: this.amountMinMax.split(',')[1] } })) : null)
|
|
407
|
+
h("div", null, h("hr", null), h("div", { class: "ModalFooter" }, h("div", { class: "Dropdown" }, h("p", null, translate('monthlyDeposit', this.lang, { values: { currency: this.currency } })), h("form", { onSubmit: (event) => this.handleSubmit(event) }, h("div", { class: "DropdownInput" }, h("input", { type: "number", value: this.inputValue, class: !this.invalidInput || this.invalidInput == undefined ? '' : "InvalidInput", placeholder: "0", onInput: (event) => this.handleInputChange(event) }), h("button", { disabled: this.isButtonDisabled }, translate('setLimit', this.lang, { values: { currency: this.currency } }))), (this.invalidInput || !this.isWithinRange || !this.minimumRange) && this.invalidInput != undefined ?
|
|
408
|
+
h("p", { class: "InvalidParagraph" }, !this.isValidNumber ? (translate('invalidNumber', this.lang, { values: { currency: this.currency } })) : !this.isWithinRange ? (translate('outOfRange', this.lang, { values: { currency: this.currency, min: this.amountMinMax.split(',')[0], max: this.amountMinMax.split(',')[1] } })) : !this.minimumRange ? (translate('minimumRange', this.lang, { values: { currency: this.currency, min: this.amountMinMax.split(',')[0], max: this.amountMinMax.split(',')[1] } })) : null)
|
|
403
409
|
: null))))
|
|
404
410
|
: null))));
|
|
405
411
|
}
|
|
@@ -434,7 +440,8 @@ const PlayerLugasLimit$1 = /*@__PURE__*/ proxyCustomElement(class extends HTMLEl
|
|
|
434
440
|
"operatorDepositLimitAmount": [32],
|
|
435
441
|
"regularDepositLimitAmount": [32],
|
|
436
442
|
"stylingAppends": [32],
|
|
437
|
-
"isWithinRange": [32]
|
|
443
|
+
"isWithinRange": [32],
|
|
444
|
+
"minimumRange": [32]
|
|
438
445
|
}]);
|
|
439
446
|
function defineCustomElement$1() {
|
|
440
447
|
if (typeof customElements === "undefined") {
|
package/dist/esm/loader.js
CHANGED
|
@@ -10,7 +10,7 @@ const patchEsm = () => {
|
|
|
10
10
|
const defineCustomElements = (win, options) => {
|
|
11
11
|
if (typeof window === 'undefined') return Promise.resolve();
|
|
12
12
|
return patchEsm().then(() => {
|
|
13
|
-
return bootstrapLazy([["player-lugas-limit",[[1,"player-lugas-limit",{"userId":[1,"user-id"],"session":[1],"endpoint":[1],"currency":[1],"flow":[1],"amountMinMax":[1,"amount-min-max"],"amount":[1],"lang":[1],"clientStyling":[1,"client-styling"],"clientStylingUrl":[1,"client-styling-url"],"translationUrl":[1,"translation-url"],"validation":[32],"kyc":[32],"dropDown":[32],"isLoading":[32],"hasErrors":[32],"inputValue":[32],"isButtonDisabled":[32],"crossProviders":[32],"invalidInput":[32],"userAmount":[32],"operatorDepositLimitAmount":[32],"regularDepositLimitAmount":[32],"stylingAppends":[32],"isWithinRange":[32]}]]]], options);
|
|
13
|
+
return bootstrapLazy([["player-lugas-limit",[[1,"player-lugas-limit",{"userId":[1,"user-id"],"session":[1],"endpoint":[1],"currency":[1],"flow":[1],"amountMinMax":[1,"amount-min-max"],"amount":[1],"lang":[1],"clientStyling":[1,"client-styling"],"clientStylingUrl":[1,"client-styling-url"],"translationUrl":[1,"translation-url"],"validation":[32],"kyc":[32],"dropDown":[32],"isLoading":[32],"hasErrors":[32],"inputValue":[32],"isButtonDisabled":[32],"crossProviders":[32],"invalidInput":[32],"userAmount":[32],"operatorDepositLimitAmount":[32],"regularDepositLimitAmount":[32],"stylingAppends":[32],"isWithinRange":[32],"minimumRange":[32]}]]]], options);
|
|
14
14
|
});
|
|
15
15
|
};
|
|
16
16
|
|
|
@@ -26,6 +26,7 @@ let TRANSLATIONS = {
|
|
|
26
26
|
softMigrationP2: 'According to legal regulations, players are required to set an individual monthly deposit limit or indicate that an already set deposit limit should be kept unchanged. Please note that the limit set should correspond to your financial situation. Consume gambling responsibly and adapt the gambling behavior to your individual circumstances!',
|
|
27
27
|
softMigrationP3: 'Do you want to set a new limit or confirm the existing limit (of {currency} <b>{amount}</b>) ?',
|
|
28
28
|
invalidNumber: 'Invalid number format. Please enter a valid number.',
|
|
29
|
+
minimumRange: 'The value entered must be higher than {min}',
|
|
29
30
|
outOfRange: 'The value entered must be between {min} and {max}.',
|
|
30
31
|
invalidDecimalSeparator: 'Invalid decimal separator. Please use a dot (.) instead of a comma (,).',
|
|
31
32
|
},
|
|
@@ -52,6 +53,7 @@ let TRANSLATIONS = {
|
|
|
52
53
|
softMigrationP2: 'According to legal regulations, players are required to set an individual monthly deposit limit or indicate that an already set deposit limit should be kept unchanged. Please note that the limit set should correspond to your financial situation. Consume gambling responsibly and adapt the gambling behavior to your individual circumstances!',
|
|
53
54
|
softMigrationP3: 'Do you want to set a new limit or confirm the existing limit (of {currency} <b>{amount}</b>) ?',
|
|
54
55
|
invalidNumber: 'Invalid number format. Please enter a valid number.',
|
|
56
|
+
minimumRange: 'The value entered must be higher than {min}',
|
|
55
57
|
outOfRange: 'The value entered must be between {min} and {max}.',
|
|
56
58
|
invalidDecimalSeparator: 'Invalid decimal separator. Please use a dot (.) instead of a comma (,).',
|
|
57
59
|
},
|
|
@@ -78,6 +80,7 @@ let TRANSLATIONS = {
|
|
|
78
80
|
softMigrationP2: 'According to legal regulations, players are required to set an individual monthly deposit limit or indicate that an already set deposit limit should be kept unchanged. Please note that the limit set should correspond to your financial situation. Consume gambling responsibly and adapt the gambling behavior to your individual circumstances!',
|
|
79
81
|
softMigrationP3: 'Do you want to set a new limit or confirm the existing limit ',
|
|
80
82
|
invalidNumber: 'Invalid number format. Please enter a valid number.',
|
|
83
|
+
minimumRange: 'The value entered must be higher than {min}',
|
|
81
84
|
outOfRange: 'The value entered must be between {min} and {max}.',
|
|
82
85
|
invalidDecimalSeparator: 'Invalid decimal separator. Please use a dot (.) instead of a comma (,).',
|
|
83
86
|
},
|
|
@@ -104,6 +107,7 @@ let TRANSLATIONS = {
|
|
|
104
107
|
softMigrationP2: 'According to legal regulations, players are required to set an individual monthly deposit limit or indicate that an already set deposit limit should be kept unchanged. Please note that the limit set should correspond to your financial situation. Consume gambling responsibly and adapt the gambling behavior to your individual circumstances!',
|
|
105
108
|
softMigrationP3: 'Do you want to set a new limit or confirm the existing limit ',
|
|
106
109
|
invalidNumber: 'Invalid number format. Please enter a valid number.',
|
|
110
|
+
minimumRange: 'The value entered must be higher than {min}',
|
|
107
111
|
outOfRange: 'The value entered must be between {min} and {max}.',
|
|
108
112
|
invalidDecimalSeparator: 'Invalid decimal separator. Please use a dot (.) instead of a comma (,).',
|
|
109
113
|
},
|
|
@@ -130,6 +134,7 @@ let TRANSLATIONS = {
|
|
|
130
134
|
softMigrationP2: 'According to legal regulations, players are required to set an individual monthly deposit limit or indicate that an already set deposit limit should be kept unchanged. Please note that the limit set should correspond to your financial situation. Consume gambling responsibly and adapt the gambling behavior to your individual circumstances!',
|
|
131
135
|
softMigrationP3: 'Do you want to set a new limit or confirm the existing limit ',
|
|
132
136
|
invalidNumber: 'Invalid number format. Please enter a valid number.',
|
|
137
|
+
minimumRange: 'The value entered must be higher than {min}',
|
|
133
138
|
outOfRange: 'The value entered must be between {min} and {max}.',
|
|
134
139
|
invalidDecimalSeparator: 'Invalid decimal separator. Please use a dot (.) instead of a comma (,).',
|
|
135
140
|
}
|
|
@@ -349,9 +354,10 @@ const PlayerLugasLimit = class {
|
|
|
349
354
|
let max = parseInt(this.amountMinMax.split(',')[1]);
|
|
350
355
|
// Perform validation checks
|
|
351
356
|
this.isValidNumber = !isNaN(Number(inputValue)) && this.containsOnlyDigits(inputValue);
|
|
352
|
-
this.isButtonDisabled = !this.isValidNumber || !this.isWithinRange;
|
|
353
357
|
this.invalidInput = !this.isValidNumber;
|
|
354
|
-
this.
|
|
358
|
+
this.minimumRange = Number(inputValue) >= min;
|
|
359
|
+
this.isWithinRange = Number(inputValue) <= max;
|
|
360
|
+
this.isButtonDisabled = !this.isValidNumber || !this.isWithinRange || !this.minimumRange;
|
|
355
361
|
}
|
|
356
362
|
renderKYC(step) {
|
|
357
363
|
if (step == 0) {
|
|
@@ -396,8 +402,8 @@ const PlayerLugasLimit = class {
|
|
|
396
402
|
}
|
|
397
403
|
else {
|
|
398
404
|
return (h("div", { class: "ModalContainer", ref: el => this.stylingContainer = el }, h("div", { class: "Container" }, h("div", { class: "ModalHeader" }, h("svg", { width: "107", height: "20", viewBox: "0 0 107 20", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, h("path", { d: "M2.7948 17.4348C10.9082 18.9412 30.1923 20.0001 52.698 20.0001C75.2036 20.0001 94.4729 18.9412 102.601 17.4348H2.7948Z", fill: "#7EC51E" }), h("path", { d: "M66.4489 3.87771H64.1074L64.7934 0L60.7815 1.37211L58.3505 14.9143H62.1089L63.481 7.308C63.5705 6.84565 63.7942 6.65177 64.1969 6.65177H64.5697C64.9426 6.65177 65.0917 6.80091 65.0321 7.14394L63.6301 14.9292H67.4034L68.8949 6.63685C69.1931 4.95154 68.5518 3.87771 66.4489 3.87771Z", fill: "#002554" }), h("path", { d: "M93.0858 3.87769H92.6831H85.3901H81.6913L79.6928 14.9143H83.4512L84.8233 7.30797C84.9128 6.84563 85.1365 6.65174 85.5392 6.65174H85.9121C86.2849 6.65174 86.4341 6.80088 86.3744 7.14391L84.9725 14.9292H88.7309L90.103 7.32288C90.1925 6.86054 90.4162 6.66666 90.8189 6.66666H91.1917C91.5646 6.66666 91.7137 6.8158 91.6541 7.15883L90.2521 14.9441H94.0105L95.5019 6.65174C95.8301 4.95151 95.1887 3.87769 93.0858 3.87769Z", fill: "#002554" }), h("path", { d: "M51.9523 10.6639H57.0828L57.5302 8.11353H52.3997L51.9523 10.6639Z", fill: "#002554" }), h("path", { d: "M51.2363 1.34229L47.2244 2.7144L45.5093 12.1701C45.211 13.8255 45.897 14.9143 48.2684 14.9143H50.1476L50.6398 12.1551H49.8195C49.4466 12.1551 49.2975 12.006 49.3571 11.663L50.3266 6.42805H51.6689L52.1163 3.87771H50.7889L51.2363 1.34229Z", fill: "#002554" }), h("path", { d: "M27.2095 1.34229L23.1976 2.7144L21.4825 12.1701C21.1842 13.8255 21.8702 14.9143 24.2416 14.9143H26.1208L26.613 12.1551H25.7927C25.4198 12.1551 25.2707 12.006 25.3303 11.663L26.2998 6.42805H27.6421L28.0895 3.87771H26.7621L27.2095 1.34229Z", fill: "#002554" }), h("path", { d: "M27.8807 10.6639H33.0112L33.4736 8.11353H28.3431L27.8807 10.6639Z", fill: "#002554" }), h("path", { d: "M7.6569 3.87771H5.31536L6.01633 0L2.00439 1.37211L0.169932 11.5735L0.0655323 12.1701C-0.232753 13.8255 0.453304 14.9143 2.82467 14.9143H5.65839C7.7613 14.9143 8.79039 13.8255 9.08867 12.1701L10.0879 6.62194C10.4011 4.95154 9.75981 3.87771 7.6569 3.87771ZM6.25496 7.12903L5.43467 11.663C5.37502 11.9911 5.16622 12.1551 4.79336 12.1551H4.4205C4.01782 12.1551 3.85376 11.9613 3.94324 11.4989L4.70387 7.32291C4.79336 6.86057 5.01707 6.66668 5.41976 6.66668H5.79262C6.16547 6.63685 6.31461 6.786 6.25496 7.12903Z", fill: "#002554" }), h("path", { d: "M76.8891 3.87769H74.0852C71.7138 3.87769 70.7444 4.96643 70.4461 6.62191L69.4468 12.17C69.1486 13.8255 69.7302 14.9143 72.0867 14.9143H74.8906C77.2619 14.9143 78.2313 13.8255 78.5296 12.17L79.5289 6.62191C79.8421 4.95151 79.2604 3.87769 76.8891 3.87769ZM75.7854 6.96494L74.9055 11.8121C74.8458 12.1402 74.637 12.3043 74.2641 12.3043H73.6676C73.2947 12.3043 73.1456 12.1551 73.2052 11.8121L74.0852 6.96494C74.1448 6.63683 74.3536 6.47277 74.7265 6.47277H75.3231C75.6959 6.47277 75.8451 6.63683 75.7854 6.96494Z", fill: "#002554" }), h("path", { d: "M18.082 3.87769H15.3825C13.0111 3.87769 11.9373 4.96643 11.639 6.62191L10.6398 12.17C10.3415 13.8255 11.0275 14.9143 13.3989 14.9143H16.0984C18.4697 14.9143 19.5436 13.8255 19.8419 12.17L19.991 11.3796H16.4265L16.3519 11.7972C16.2923 12.1253 16.0835 12.3341 15.6957 12.3341H14.7263C14.3534 12.3341 14.2043 12.1849 14.2639 11.8419L14.4727 10.6637H20.1103L20.4832 8.62043L20.8411 6.62191C21.1394 4.95151 20.4384 3.87769 18.082 3.87769ZM17.2169 6.95003L17.0081 8.12825H14.9351L15.1439 6.95003C15.2035 6.62191 15.4123 6.45786 15.7852 6.45786H16.7546C17.1275 6.45786 17.2766 6.607 17.2169 6.95003Z", fill: "#002554" }), h("path", { d: "M42.2133 3.87769H39.5138C37.1424 3.87769 36.0686 4.96643 35.7703 6.62191L35.6212 7.41237H39.1857L39.2602 6.99477C39.3199 6.66666 39.5287 6.45786 39.9165 6.45786H40.8859C41.2588 6.45786 41.4079 6.607 41.3482 6.95003L41.1394 8.12825H37.0828C36.2028 8.12825 35.3676 8.82923 35.2185 9.70917L35.0842 10.4101L34.771 12.17C34.4728 13.8255 35.1588 14.9143 37.5302 14.9143H43.4959L44.9873 6.62191C45.2707 4.95151 44.5846 3.87769 42.2133 3.87769ZM40.4683 11.827C40.4086 12.1551 40.1998 12.3192 39.827 12.3192H38.8576C38.4847 12.3192 38.3356 12.17 38.3952 11.827L38.604 10.6488H40.6771L40.4683 11.827Z", fill: "#002554" }), h("path", { d: "M103.63 3.87769H100.931C98.5593 3.87769 97.4855 4.96643 97.1872 6.62191L96.1879 12.17C95.8896 13.8255 96.5757 14.9143 98.947 14.9143H101.647C104.018 14.9143 105.092 13.8255 105.39 12.17L105.539 11.3796H101.975L101.9 11.7972C101.84 12.1253 101.632 12.3341 101.259 12.3341H100.289C99.9165 12.3341 99.7673 12.1849 99.827 11.8419L100.036 10.6637H105.673L106.046 8.62043L106.404 6.62191C106.688 4.95151 106.002 3.87769 103.63 3.87769ZM102.765 6.95003L102.556 8.12825H100.483L100.692 6.95003C100.752 6.62191 100.96 6.45786 101.333 6.45786H102.303C102.676 6.45786 102.825 6.607 102.765 6.95003Z", fill: "#002554" }))), h("div", { class: "ModalBody" }, this.validation ? validationContainer : kycConfirmation, this.dropDown ?
|
|
399
|
-
h("div", null, h("hr", null), h("div", { class: "ModalFooter" }, h("div", { class: "Dropdown" }, h("p", null, translate('monthlyDeposit', this.lang, { values: { currency: this.currency } })), h("form", { onSubmit: (event) => this.handleSubmit(event) }, h("div", { class: "DropdownInput" }, h("input", { type: "number", value: this.inputValue, class: !this.invalidInput || this.invalidInput == undefined ? '' : "InvalidInput", placeholder: "0", onInput: (event) => this.handleInputChange(event) }), h("button", { disabled: this.isButtonDisabled }, translate('setLimit', this.lang, { values: { currency: this.currency } }))), this.invalidInput || !this.isWithinRange && this.invalidInput != undefined ?
|
|
400
|
-
h("p", { class: "InvalidParagraph" }, !this.isValidNumber ? (translate('invalidNumber', this.lang, { values: { currency: this.currency } })) : !this.isWithinRange ? (translate('outOfRange', this.lang, { values: { currency: this.currency, min: this.amountMinMax.split(',')[0], max: this.amountMinMax.split(',')[1] } })) : null)
|
|
405
|
+
h("div", null, h("hr", null), h("div", { class: "ModalFooter" }, h("div", { class: "Dropdown" }, h("p", null, translate('monthlyDeposit', this.lang, { values: { currency: this.currency } })), h("form", { onSubmit: (event) => this.handleSubmit(event) }, h("div", { class: "DropdownInput" }, h("input", { type: "number", value: this.inputValue, class: !this.invalidInput || this.invalidInput == undefined ? '' : "InvalidInput", placeholder: "0", onInput: (event) => this.handleInputChange(event) }), h("button", { disabled: this.isButtonDisabled }, translate('setLimit', this.lang, { values: { currency: this.currency } }))), (this.invalidInput || !this.isWithinRange || !this.minimumRange) && this.invalidInput != undefined ?
|
|
406
|
+
h("p", { class: "InvalidParagraph" }, !this.isValidNumber ? (translate('invalidNumber', this.lang, { values: { currency: this.currency } })) : !this.isWithinRange ? (translate('outOfRange', this.lang, { values: { currency: this.currency, min: this.amountMinMax.split(',')[0], max: this.amountMinMax.split(',')[1] } })) : !this.minimumRange ? (translate('minimumRange', this.lang, { values: { currency: this.currency, min: this.amountMinMax.split(',')[0], max: this.amountMinMax.split(',')[1] } })) : null)
|
|
401
407
|
: null))))
|
|
402
408
|
: null))));
|
|
403
409
|
}
|
|
@@ -13,5 +13,5 @@ const patchBrowser = () => {
|
|
|
13
13
|
};
|
|
14
14
|
|
|
15
15
|
patchBrowser().then(options => {
|
|
16
|
-
return bootstrapLazy([["player-lugas-limit",[[1,"player-lugas-limit",{"userId":[1,"user-id"],"session":[1],"endpoint":[1],"currency":[1],"flow":[1],"amountMinMax":[1,"amount-min-max"],"amount":[1],"lang":[1],"clientStyling":[1,"client-styling"],"clientStylingUrl":[1,"client-styling-url"],"translationUrl":[1,"translation-url"],"validation":[32],"kyc":[32],"dropDown":[32],"isLoading":[32],"hasErrors":[32],"inputValue":[32],"isButtonDisabled":[32],"crossProviders":[32],"invalidInput":[32],"userAmount":[32],"operatorDepositLimitAmount":[32],"regularDepositLimitAmount":[32],"stylingAppends":[32],"isWithinRange":[32]}]]]], options);
|
|
16
|
+
return bootstrapLazy([["player-lugas-limit",[[1,"player-lugas-limit",{"userId":[1,"user-id"],"session":[1],"endpoint":[1],"currency":[1],"flow":[1],"amountMinMax":[1,"amount-min-max"],"amount":[1],"lang":[1],"clientStyling":[1,"client-styling"],"clientStylingUrl":[1,"client-styling-url"],"translationUrl":[1,"translation-url"],"validation":[32],"kyc":[32],"dropDown":[32],"isLoading":[32],"hasErrors":[32],"inputValue":[32],"isButtonDisabled":[32],"crossProviders":[32],"invalidInput":[32],"userAmount":[32],"operatorDepositLimitAmount":[32],"regularDepositLimitAmount":[32],"stylingAppends":[32],"isWithinRange":[32],"minimumRange":[32]}]]]], options);
|
|
17
17
|
});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as t,c as e,h as i}from"./p-d4aa7282.js";const n=["de","en"];let o={en:{loading:"Loading, please wait ...",error:"It was an error while trying to fetch the data",kyc1:"All deposit limit changes must be reported to LUGAS in accordance with regulatory requirements. Please note that decreases in the limit will take effect immediately, while increases will only come into effect after 8 days at the latest.",kyc2:"We were able to set your monthly deposit limit to <b>{amount} {currency}</b>. For the selected limit, we require documents that show your economic capacity. Please upload your last payslip as well as a current bank statement, including the balance, that confirms that you received the payment.",kyc3:"We have transmitted your desired limit to Lugas Please be aware that the limit will only come into effect after 8 days at the latest.",kycThanks:"Thank you!",kycSure:"Are you sure?",setNewLimit:"SET NEW LIMIT",setLimit:"SET LIMIT",keepExistingLimit:"KEEP EXISTING LIMIT",Close:"CLOSE",UploadDocuments:"UPLOAD DOCUMENTS",confirm:"CONFIRM",crossProviders:"No cross-provider deposit limit (LUGAS) has been established yet, but there's no need to worry. Please enter a new deposit limit.",monthlyDeposit:"Monthly deposit limit (EUR)",newUserP1:"To start off, set your monthly limit!",newUserP2:"Having a deposit limit in place allows you to regulate your gaming activity. Once you have set your limit, it will be transmitted to the cross-provider limit database (LUGAS).",newUserP3:"If you have set a deposit limit with another provider before, you may maintain the existing limit.",softMigrationP1:"Set deposit limit",softMigrationP2:"According to legal regulations, players are required to set an individual monthly deposit limit or indicate that an already set deposit limit should be kept unchanged. Please note that the limit set should correspond to your financial situation. Consume gambling responsibly and adapt the gambling behavior to your individual circumstances!",softMigrationP3:"Do you want to set a new limit or confirm the existing limit (of {currency} <b>{amount}</b>) ?",invalidNumber:"Invalid number format. Please enter a valid number.",minimumRange:"The value entered must be higher than {min}",outOfRange:"The value entered must be between {min} and {max}.",invalidDecimalSeparator:"Invalid decimal separator. Please use a dot (.) instead of a comma (,)."},de:{loading:"Loading, please wait ...",error:"It was an error while trying to fetch the data",kyc1:"All deposit limit changes must be reported to LUGAS in accordance with regulatory requirements. Please note that decreases in the limit will take effect immediately, while increases will only come into effect after 8 days at the latest.",kyc2:"We were able to set your monthly deposit limit to <b>{amount} {currency}</b>. For the selected limit, we require documents that show your economic capacity. Please upload your last payslip as well as a current bank statement, including the balance, that confirms that you received the payment.",kyc3:"We have transmitted your desired limit to Lugas Please be aware that the limit will only come into effect after 8 days at the latest.",kycThanks:"Thank you!",kycSure:"Are you sure?",setNewLimit:"SET NEW LIMIT",setLimit:"SET LIMIT",keepExistingLimit:"KEEP EXISTING LIMIT",Close:"CLOSE",UploadDocuments:"UPLOAD DOCUMENTS",confirm:"CONFIRM",crossProviders:"No cross-provider deposit limit (LUGAS) has been established yet, but there's no need to worry. Please enter a new deposit limit.",monthlyDeposit:"Monthly deposit limit (EUR)",newUserP1:"To start off, set your monthly limit!",newUserP2:"Having a deposit limit in place allows you to regulate your gaming activity. Once you have set your limit, it will be transmitted to the cross-provider limit database (LUGAS).",newUserP3:"If you have set a deposit limit with another provider before, you may maintain the existing limit.",softMigrationP1:"Set deposit limit",softMigrationP2:"According to legal regulations, players are required to set an individual monthly deposit limit or indicate that an already set deposit limit should be kept unchanged. Please note that the limit set should correspond to your financial situation. Consume gambling responsibly and adapt the gambling behavior to your individual circumstances!",softMigrationP3:"Do you want to set a new limit or confirm the existing limit (of {currency} <b>{amount}</b>) ?",invalidNumber:"Invalid number format. Please enter a valid number.",minimumRange:"The value entered must be higher than {min}",outOfRange:"The value entered must be between {min} and {max}.",invalidDecimalSeparator:"Invalid decimal separator. Please use a dot (.) instead of a comma (,)."},ro:{loading:"Se incarca, va rugam asteptati ...",error:"A fost o eroare in timp ce asteptam datele",kyc1:"All deposit limit changes must be reported to LUGAS in accordance with regulatory requirements. Please note that decreases in the limit will take effect immediately, while increases will only come into effect after 8 days at the latest.",kyc2:"We were able to set your monthly deposit limit to {amount}. For the selected limit, we require documents that show your economic capacity. Please upload your last payslip as well as a current bank statement, including the balance, that confirms that you received the payment.",kyc3:"We have transmitted your desired limit to Lugas Please be aware that the limit will only come into effect after 8 days at the latest.",kycThanks:"Thank you!",kycSure:"Are you sure?",setNewLimit:"SET NEW LIMIT",setLimit:"SET LIMIT",keepExistingLimit:"KEEP EXISTING LIMIT",Close:"CLOSE",UploadDocuments:"UPLOAD DOCUMENTS",confirm:"CONFIRM",crossProviders:"No cross-provider deposit limit (LUGAS) has been established yet, but there's no need to worry. Please enter a new deposit limit.",monthlyDeposit:"Monthly deposit limit (EUR)",newUserP1:"To start off, set your monthly limit!",newUserP2:"Having a deposit limit in place allows you to regulate your gaming activity. Once you have set your limit, it will be transmitted to the cross-provider limit database (LUGAS).",newUserP3:"If you have set a deposit limit with another provider before, you may maintain the existing limit.",softMigrationP1:"Set deposit limit",softMigrationP2:"According to legal regulations, players are required to set an individual monthly deposit limit or indicate that an already set deposit limit should be kept unchanged. Please note that the limit set should correspond to your financial situation. Consume gambling responsibly and adapt the gambling behavior to your individual circumstances!",softMigrationP3:"Do you want to set a new limit or confirm the existing limit ",invalidNumber:"Invalid number format. Please enter a valid number.",minimumRange:"The value entered must be higher than {min}",outOfRange:"The value entered must be between {min} and {max}.",invalidDecimalSeparator:"Invalid decimal separator. Please use a dot (.) instead of a comma (,)."},fr:{loading:"Loading, please wait ...",error:"It was an error while trying to fetch the data",kyc1:"All deposit limit changes must be reported to LUGAS in accordance with regulatory requirements. Please note that decreases in the limit will take effect immediately, while increases will only come into effect after 8 days at the latest.",kyc2:"We were able to set your monthly deposit limit to {amount}. For the selected limit, we require documents that show your economic capacity. Please upload your last payslip as well as a current bank statement, including the balance, that confirms that you received the payment.",kyc3:"We have transmitted your desired limit to Lugas Please be aware that the limit will only come into effect after 8 days at the latest.",kycThanks:"Thank you!",kycSure:"Are you sure?",setNewLimit:"SET NEW LIMIT",setLimit:"SET LIMIT",keepExistingLimit:"KEEP EXISTING LIMIT",Close:"CLOSE",UploadDocuments:"UPLOAD DOCUMENTS",confirm:"CONFIRM",crossProviders:"No cross-provider deposit limit (LUGAS) has been established yet, but there's no need to worry. Please enter a new deposit limit.",monthlyDeposit:"Monthly deposit limit (EUR)",newUserP1:"To start off, set your monthly limit!",newUserP2:"Having a deposit limit in place allows you to regulate your gaming activity. Once you have set your limit, it will be transmitted to the cross-provider limit database (LUGAS).",newUserP3:"If you have set a deposit limit with another provider before, you may maintain the existing limit.",softMigrationP1:"Set deposit limit",softMigrationP2:"According to legal regulations, players are required to set an individual monthly deposit limit or indicate that an already set deposit limit should be kept unchanged. Please note that the limit set should correspond to your financial situation. Consume gambling responsibly and adapt the gambling behavior to your individual circumstances!",softMigrationP3:"Do you want to set a new limit or confirm the existing limit ",invalidNumber:"Invalid number format. Please enter a valid number.",minimumRange:"The value entered must be higher than {min}",outOfRange:"The value entered must be between {min} and {max}.",invalidDecimalSeparator:"Invalid decimal separator. Please use a dot (.) instead of a comma (,)."},ar:{loading:"Loading, please wait ...",error:"It was an error while trying to fetch the data",kyc1:"All deposit limit changes must be reported to LUGAS in accordance with regulatory requirements. Please note that decreases in the limit will take effect immediately, while increases will only come into effect after 8 days at the latest.",kyc2:"We were able to set your monthly deposit limit to {amount}. For the selected limit, we require documents that show your economic capacity. Please upload your last payslip as well as a current bank statement, including the balance, that confirms that you received the payment.",kyc3:"We have transmitted your desired limit to Lugas Please be aware that the limit will only come into effect after 8 days at the latest.",kycThanks:"Thank you!",kycSure:"Are you sure?",setNewLimit:"SET NEW LIMIT",setLimit:"SET LIMIT",keepExistingLimit:"KEEP EXISTING LIMIT",Close:"CLOSE",UploadDocuments:"UPLOAD DOCUMENTS",confirm:"CONFIRM",crossProviders:"No cross-provider deposit limit (LUGAS) has been established yet, but there's no need to worry. Please enter a new deposit limit.",monthlyDeposit:"Monthly deposit limit (EUR)",newUserP1:"To start off, set your monthly limit!",newUserP2:"Having a deposit limit in place allows you to regulate your gaming activity. Once you have set your limit, it will be transmitted to the cross-provider limit database (LUGAS).",newUserP3:"If you have set a deposit limit with another provider before, you may maintain the existing limit.",softMigrationP1:"Set deposit limit",softMigrationP2:"According to legal regulations, players are required to set an individual monthly deposit limit or indicate that an already set deposit limit should be kept unchanged. Please note that the limit set should correspond to your financial situation. Consume gambling responsibly and adapt the gambling behavior to your individual circumstances!",softMigrationP3:"Do you want to set a new limit or confirm the existing limit ",invalidNumber:"Invalid number format. Please enter a valid number.",minimumRange:"The value entered must be higher than {min}",outOfRange:"The value entered must be between {min} and {max}.",invalidDecimalSeparator:"Invalid decimal separator. Please use a dot (.) instead of a comma (,)."}};const a=t=>new Promise((e=>{fetch(t).then((t=>t.json())).then((t=>{Object.keys(t).forEach((e=>{for(let i in t[e])o[e][i]=t[e][i]})),e(!0)}))})),s=(t,e,i)=>{const a=e;let s=o[void 0!==a&&n.includes(a)?a:"de"][t];if(void 0!==i)for(const[t,e]of Object.entries(i.values)){const i=new RegExp(`{${t}}`,"g");s=s.replace(i,e)}return s},r=class{constructor(i){t(this,i),this.uploadDocuments=e(this,"uploadDocuments",7),this.closePopup=e(this,"closePopup",7),this.userId="",this.session="",this.endpoint="",this.currency="EUR",this.flow="",this.amountMinMax="",this.amount="",this.clientStyling="",this.clientStylingUrl="",this.translationUrl="",this.validation=!0,this.dropDown=!1,this.isLoading=!1,this.hasErrors=!1,this.inputValue="",this.isButtonDisabled=!0,this.crossProviders=!1,this.userAmount="",this.operatorDepositLimitAmount="",this.regularDepositLimitAmount="",this.stylingAppends=!1,this.setClientStyling=()=>{let t=document.createElement("style");t.innerHTML=this.clientStyling,this.stylingContainer.prepend(t)},this.setClientStylingURL=()=>{let t=new URL(this.clientStylingUrl),e=document.createElement("style");fetch(t.href).then((t=>t.text())).then((t=>{e.innerHTML=t,setTimeout((()=>{this.stylingContainer.prepend(e)}),1)})).catch((t=>{console.log("error ",t)}))},this.postPlayerSituation=(t,e=!1,i=!1)=>{let n=new URL(`${this.endpoint}v2/player/${this.userId}/limit/lugas`),o={softMigration:"1"==this.flow,keepLimit:e,roleLimitAmount:i?this.amount:0};t&&(o.amount=`${t}`);let a={method:"POST",headers:{"X-SessionId":this.session,"Content-Type":"application/json",Authorization:`Bearer ${this.session}`},body:JSON.stringify(o)};fetch(n.href,a).then((t=>{if(200===t.status)return t.json();throw this.crossProviders=!0,this.dropDown=!0,new Error("HTTP status "+t.status)})).then((t=>{this.kyc=t.popup,this.validation=!1,this.dropDown=!1,t.operatorDepositLimitAmount&&(this.operatorDepositLimitAmount=t.operatorDepositLimitAmount),t.regulatorDepositLimitAmount&&(this.regularDepositLimitAmount=t.regulatorDepositLimitAmount)})).catch((t=>{console.error(t)}))},this.handleClick=t=>{switch(t){case"keepCurrentLimit":this.postPlayerSituation(this.amount,!0);break;case"keepCurrentLimitNewUser":this.postPlayerSituation(null,!0);break;case"postSituation":this.postPlayerSituation();break;case"setNewLimit":this.dropDown=!0;break;case"UploadDocuments":this.uploadDocuments.emit(),window.postMessage({type:"uploadDocuments"},window.location.href);break;case"Close":this.closePopup.emit(),window.postMessage({type:"closePopup"},window.location.href)}}}componentDidRender(){!this.stylingAppends&&this.stylingContainer&&(this.clientStyling&&this.setClientStyling(),this.clientStylingUrl&&this.setClientStylingURL(),this.stylingAppends=!0)}handleNewTranslations(){this.isLoading=!0,a(this.translationUrl).then((()=>{this.isLoading=!1}))}async componentWillLoad(){this.translationUrl.length>2&&await a(this.translationUrl)}handleSubmit(t){t.preventDefault(),this.invalidInput||(this.userAmount=this.inputValue,this.postPlayerSituation(this.inputValue,!1,!0))}containsOnlyDigits(t){return/^[0-9]+$/.test(t)}handleInputChange(t){const e=t.target.value;this.inputValue=e;let i=parseInt(this.amountMinMax.split(",")[0]),n=parseInt(this.amountMinMax.split(",")[1]);this.isValidNumber=!isNaN(Number(e))&&this.containsOnlyDigits(e),this.invalidInput=!this.isValidNumber,this.minimumRange=Number(e)>=i,this.isWithinRange=Number(e)<=n,this.isButtonDisabled=!this.isValidNumber||!this.isWithinRange||!this.minimumRange}renderKYC(t){return 0==t?(this.closePopup.emit(),void window.postMessage({type:"closePopup"},window.location.href)):i("div",{class:"ValidatorContainer"},1==t?i("div",{class:"Paragraphs"},i("p",null,s("kycSure",this.lang,{values:{currency:this.currency}})),i("p",null,s("kyc1",this.lang,{values:{currency:this.currency}})),i("div",{class:"ContainerButtons"},i("button",{class:"FirstButton",onClick:()=>this.postPlayerSituation(this.userAmount,!1)},s("setNewLimit",this.lang,{values:{currency:this.currency}})),i("button",{class:"SecondButton",onClick:()=>this.handleClick("keepCurrentLimit")},s("keepExistingLimit",this.lang,{values:{currency:this.currency}})))):2==t?i("div",{class:"Paragraphs"},i("p",null,s("kycThanks",this.lang,{values:{currency:this.currency}})),i("p",{innerHTML:s("kyc2",this.lang,{values:{currency:this.currency,amount:this.regularDepositLimitAmount}})}),i("div",{class:"ContainerButtons"},i("button",{class:"FirstButton",onClick:()=>this.handleClick("Close")},s("Close",this.lang,{values:{currency:this.currency}})),i("button",{class:"SecondButton",onClick:()=>this.handleClick("UploadDocuments")},s("UploadDocuments",this.lang,{values:{currency:this.currency}})))):i("div",{class:"Paragraphs"},i("p",null,s("kycThanks",this.lang,{values:{currency:this.currency}})),i("p",null,s("kyc3",this.lang,{values:{currency:this.currency}})),i("div",{class:"ContainerButtons"},i("button",{class:"SecondButton",onClick:()=>this.handleClick("Close")},s("Close",this.lang,{values:{currency:this.currency}})))))}renderValidator(t){return"1"==t?i("div",{class:"ValidatorContainer"},i("div",{class:"Paragraphs"},i("p",null,s("softMigrationP1",this.lang,{values:{currency:this.currency}})),i("p",{innerHTML:s("softMigrationP2",this.lang,{values:{currency:this.currency}})}),i("p",{innerHTML:s("softMigrationP3",this.lang,{values:{currency:this.currency,amount:this.amount}})})),this.crossProviders?i("div",{class:"CrossProvider"},i("svg",{width:"4",height:"17",viewBox:"0 0 4 17",fill:"none",xmlns:"http://www.w3.org/2000/svg"},i("rect",{width:"4",height:"12",rx:"2",fill:"white"}),i("rect",{y:"14",width:"4",height:"3",rx:"1.5",fill:"white"})),i("p",null,s("crossProviders",this.lang,{values:{currency:this.currency}}))):i("div",{class:"ContainerButtons"},i("button",{class:"FirstButton",onClick:()=>this.handleClick("setNewLimit")},s("setNewLimit",this.lang,{values:{currency:this.currency}})),i("button",{class:"SecondButton",onClick:()=>this.handleClick("keepCurrentLimit")},s("confirm",this.lang,{values:{currency:this.currency}})))):"2"==t?i("div",{class:"ValidatorContainer"},i("div",{class:"Paragraphs"},i("p",null,s("newUserP1",this.lang,{values:{currency:this.currency}})),i("p",null,s("newUserP2",this.lang,{values:{currency:this.currency}})),i("p",null,s("newUserP3",this.lang,{values:{currency:this.currency}}))),this.crossProviders?i("div",{class:"CrossProvider"},i("svg",{width:"4",height:"17",viewBox:"0 0 4 17",fill:"none",xmlns:"http://www.w3.org/2000/svg"},i("rect",{width:"4",height:"12",rx:"2",fill:"white"}),i("rect",{y:"14",width:"4",height:"3",rx:"1.5",fill:"white"})),i("p",null,s("crossProviders",this.lang,{values:{currency:this.currency}}))):i("div",{class:"ContainerButtons"},i("button",{class:"FirstButton",onClick:()=>this.handleClick("setNewLimit")},s("setNewLimit",this.lang,{values:{currency:this.currency}})),i("button",{class:"SecondButton",onClick:()=>this.handleClick("keepCurrentLimitNewUser")},s("keepExistingLimit",this.lang,{values:{currency:this.currency}})))):void 0}render(){let t=this.renderKYC(this.kyc),e=this.renderValidator(this.flow);return this.isLoading?i("div",null,i("p",null,s("loading",this.lang,{values:{currency:this.currency}}))):this.hasErrors?i("div",null,i("p",null,s("error",this.lang,{values:{currency:this.currency}}))):i("div",{class:"ModalContainer",ref:t=>this.stylingContainer=t},i("div",{class:"Container"},i("div",{class:"ModalHeader"},i("svg",{width:"107",height:"20",viewBox:"0 0 107 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},i("path",{d:"M2.7948 17.4348C10.9082 18.9412 30.1923 20.0001 52.698 20.0001C75.2036 20.0001 94.4729 18.9412 102.601 17.4348H2.7948Z",fill:"#7EC51E"}),i("path",{d:"M66.4489 3.87771H64.1074L64.7934 0L60.7815 1.37211L58.3505 14.9143H62.1089L63.481 7.308C63.5705 6.84565 63.7942 6.65177 64.1969 6.65177H64.5697C64.9426 6.65177 65.0917 6.80091 65.0321 7.14394L63.6301 14.9292H67.4034L68.8949 6.63685C69.1931 4.95154 68.5518 3.87771 66.4489 3.87771Z",fill:"#002554"}),i("path",{d:"M93.0858 3.87769H92.6831H85.3901H81.6913L79.6928 14.9143H83.4512L84.8233 7.30797C84.9128 6.84563 85.1365 6.65174 85.5392 6.65174H85.9121C86.2849 6.65174 86.4341 6.80088 86.3744 7.14391L84.9725 14.9292H88.7309L90.103 7.32288C90.1925 6.86054 90.4162 6.66666 90.8189 6.66666H91.1917C91.5646 6.66666 91.7137 6.8158 91.6541 7.15883L90.2521 14.9441H94.0105L95.5019 6.65174C95.8301 4.95151 95.1887 3.87769 93.0858 3.87769Z",fill:"#002554"}),i("path",{d:"M51.9523 10.6639H57.0828L57.5302 8.11353H52.3997L51.9523 10.6639Z",fill:"#002554"}),i("path",{d:"M51.2363 1.34229L47.2244 2.7144L45.5093 12.1701C45.211 13.8255 45.897 14.9143 48.2684 14.9143H50.1476L50.6398 12.1551H49.8195C49.4466 12.1551 49.2975 12.006 49.3571 11.663L50.3266 6.42805H51.6689L52.1163 3.87771H50.7889L51.2363 1.34229Z",fill:"#002554"}),i("path",{d:"M27.2095 1.34229L23.1976 2.7144L21.4825 12.1701C21.1842 13.8255 21.8702 14.9143 24.2416 14.9143H26.1208L26.613 12.1551H25.7927C25.4198 12.1551 25.2707 12.006 25.3303 11.663L26.2998 6.42805H27.6421L28.0895 3.87771H26.7621L27.2095 1.34229Z",fill:"#002554"}),i("path",{d:"M27.8807 10.6639H33.0112L33.4736 8.11353H28.3431L27.8807 10.6639Z",fill:"#002554"}),i("path",{d:"M7.6569 3.87771H5.31536L6.01633 0L2.00439 1.37211L0.169932 11.5735L0.0655323 12.1701C-0.232753 13.8255 0.453304 14.9143 2.82467 14.9143H5.65839C7.7613 14.9143 8.79039 13.8255 9.08867 12.1701L10.0879 6.62194C10.4011 4.95154 9.75981 3.87771 7.6569 3.87771ZM6.25496 7.12903L5.43467 11.663C5.37502 11.9911 5.16622 12.1551 4.79336 12.1551H4.4205C4.01782 12.1551 3.85376 11.9613 3.94324 11.4989L4.70387 7.32291C4.79336 6.86057 5.01707 6.66668 5.41976 6.66668H5.79262C6.16547 6.63685 6.31461 6.786 6.25496 7.12903Z",fill:"#002554"}),i("path",{d:"M76.8891 3.87769H74.0852C71.7138 3.87769 70.7444 4.96643 70.4461 6.62191L69.4468 12.17C69.1486 13.8255 69.7302 14.9143 72.0867 14.9143H74.8906C77.2619 14.9143 78.2313 13.8255 78.5296 12.17L79.5289 6.62191C79.8421 4.95151 79.2604 3.87769 76.8891 3.87769ZM75.7854 6.96494L74.9055 11.8121C74.8458 12.1402 74.637 12.3043 74.2641 12.3043H73.6676C73.2947 12.3043 73.1456 12.1551 73.2052 11.8121L74.0852 6.96494C74.1448 6.63683 74.3536 6.47277 74.7265 6.47277H75.3231C75.6959 6.47277 75.8451 6.63683 75.7854 6.96494Z",fill:"#002554"}),i("path",{d:"M18.082 3.87769H15.3825C13.0111 3.87769 11.9373 4.96643 11.639 6.62191L10.6398 12.17C10.3415 13.8255 11.0275 14.9143 13.3989 14.9143H16.0984C18.4697 14.9143 19.5436 13.8255 19.8419 12.17L19.991 11.3796H16.4265L16.3519 11.7972C16.2923 12.1253 16.0835 12.3341 15.6957 12.3341H14.7263C14.3534 12.3341 14.2043 12.1849 14.2639 11.8419L14.4727 10.6637H20.1103L20.4832 8.62043L20.8411 6.62191C21.1394 4.95151 20.4384 3.87769 18.082 3.87769ZM17.2169 6.95003L17.0081 8.12825H14.9351L15.1439 6.95003C15.2035 6.62191 15.4123 6.45786 15.7852 6.45786H16.7546C17.1275 6.45786 17.2766 6.607 17.2169 6.95003Z",fill:"#002554"}),i("path",{d:"M42.2133 3.87769H39.5138C37.1424 3.87769 36.0686 4.96643 35.7703 6.62191L35.6212 7.41237H39.1857L39.2602 6.99477C39.3199 6.66666 39.5287 6.45786 39.9165 6.45786H40.8859C41.2588 6.45786 41.4079 6.607 41.3482 6.95003L41.1394 8.12825H37.0828C36.2028 8.12825 35.3676 8.82923 35.2185 9.70917L35.0842 10.4101L34.771 12.17C34.4728 13.8255 35.1588 14.9143 37.5302 14.9143H43.4959L44.9873 6.62191C45.2707 4.95151 44.5846 3.87769 42.2133 3.87769ZM40.4683 11.827C40.4086 12.1551 40.1998 12.3192 39.827 12.3192H38.8576C38.4847 12.3192 38.3356 12.17 38.3952 11.827L38.604 10.6488H40.6771L40.4683 11.827Z",fill:"#002554"}),i("path",{d:"M103.63 3.87769H100.931C98.5593 3.87769 97.4855 4.96643 97.1872 6.62191L96.1879 12.17C95.8896 13.8255 96.5757 14.9143 98.947 14.9143H101.647C104.018 14.9143 105.092 13.8255 105.39 12.17L105.539 11.3796H101.975L101.9 11.7972C101.84 12.1253 101.632 12.3341 101.259 12.3341H100.289C99.9165 12.3341 99.7673 12.1849 99.827 11.8419L100.036 10.6637H105.673L106.046 8.62043L106.404 6.62191C106.688 4.95151 106.002 3.87769 103.63 3.87769ZM102.765 6.95003L102.556 8.12825H100.483L100.692 6.95003C100.752 6.62191 100.96 6.45786 101.333 6.45786H102.303C102.676 6.45786 102.825 6.607 102.765 6.95003Z",fill:"#002554"}))),i("div",{class:"ModalBody"},this.validation?e:t,this.dropDown?i("div",null,i("hr",null),i("div",{class:"ModalFooter"},i("div",{class:"Dropdown"},i("p",null,s("monthlyDeposit",this.lang,{values:{currency:this.currency}})),i("form",{onSubmit:t=>this.handleSubmit(t)},i("div",{class:"DropdownInput"},i("input",{type:"number",value:this.inputValue,class:this.invalidInput&&null!=this.invalidInput?"InvalidInput":"",placeholder:"0",onInput:t=>this.handleInputChange(t)}),i("button",{disabled:this.isButtonDisabled},s("setLimit",this.lang,{values:{currency:this.currency}}))),!this.invalidInput&&this.isWithinRange&&this.minimumRange||null==this.invalidInput?null:i("p",{class:"InvalidParagraph"},this.isValidNumber?this.isWithinRange?this.minimumRange?null:s("minimumRange",this.lang,{values:{currency:this.currency,min:this.amountMinMax.split(",")[0],max:this.amountMinMax.split(",")[1]}}):s("outOfRange",this.lang,{values:{currency:this.currency,min:this.amountMinMax.split(",")[0],max:this.amountMinMax.split(",")[1]}}):s("invalidNumber",this.lang,{values:{currency:this.currency}})))))):null)))}static get watchers(){return{translationUrl:["handleNewTranslations"]}}};r.style='@import url("https://fonts.googleapis.com/css2?family=Roboto:wght@100&display=swap");\n:host {\n font-family: "Roboto", sans-serif;\n}\n\n.ModalContainer {\n position: absolute;\n top: 0;\n left: 0;\n width: 100vw;\n height: 100vh;\n background-color: rgba(0, 0, 0, 0.5);\n display: flex;\n justify-content: center;\n align-items: center;\n font-size: 12px;\n container-type: inline-size;\n}\n.ModalContainer .Container {\n position: fixed;\n top: 30vh;\n width: 25%;\n background: #fff;\n display: flex;\n flex-direction: column;\n justify-content: space-between;\n border-radius: 4px;\n transform: scale(1.1);\n}\n.ModalContainer .ModalHeader {\n display: flex;\n justify-content: space-between;\n align-items: center;\n background-color: #ffffff;\n border-radius: 4px 4px 0px 0px;\n padding: 10px;\n}\n.ModalContainer .ModalBody {\n background: #F5F6F6;\n padding: 16px 10px 10px;\n container-type: inline-size;\n border-radius: 4px;\n}\n.ModalContainer .ModalBody hr {\n border: 1px solid rgba(0, 0, 0, 0.1);\n margin: 12px 0px;\n}\n.ModalContainer .ModalBody p {\n margin: 0;\n}\n.ModalContainer .ModalBody .ValidatorContainer {\n display: flex;\n flex-direction: column;\n justify-content: space-between;\n}\n.ModalContainer .ModalBody .ValidatorContainer .CrossProvider {\n background-color: #404350;\n color: white;\n margin: 5px 0px;\n padding: 10px 15px;\n border-radius: 2px;\n}\n.ModalContainer .ModalBody .ValidatorContainer .CrossProvider svg {\n position: absolute;\n width: 5px;\n height: 28px;\n}\n.ModalContainer .ModalBody .ValidatorContainer .CrossProvider p {\n padding-left: 15px;\n}\n.ModalContainer .ModalBody .ValidatorContainer .Paragraphs {\n padding: 5px 0px;\n}\n.ModalContainer .ModalBody .ValidatorContainer .Paragraphs p {\n padding: 5px 0px;\n}\n.ModalContainer .ModalBody .ValidatorContainer .ContainerButtons {\n display: flex;\n justify-content: space-around;\n gap: 10px;\n padding-top: 5px;\n}\n.ModalContainer .ModalBody .ValidatorContainer .ContainerButtons .FirstButton {\n background-color: #ffffff;\n font-weight: bold;\n color: #002554;\n font-size: 10px;\n border: 2.5px solid #dee2e6;\n width: 100%;\n cursor: pointer;\n}\n.ModalContainer .ModalBody .ValidatorContainer .ContainerButtons .SecondButton {\n background-color: #6BB816;\n border: none;\n cursor: pointer;\n font-weight: bold;\n font-size: 10px;\n color: #ffffff;\n width: 100%;\n}\n.ModalContainer .ModalBody .ValidatorContainer .ContainerButtons button {\n width: 240px;\n height: 30px;\n}\n.ModalContainer .ModalFooter {\n display: flex;\n justify-content: center;\n background-color: rgba(161, 156, 156, 0.11);\n margin: 5px 0px;\n}\n.ModalContainer .ModalFooter .Dropdown {\n background-color: white;\n padding: 8px;\n width: 100%;\n border: 1px solid #dee2e6;\n}\n.ModalContainer .ModalFooter .Dropdown .InvalidParagraph {\n font-size: 10px;\n color: #FF0000;\n}\n.ModalContainer .ModalFooter .Dropdown .DropdownInput {\n display: flex;\n flex-direction: row;\n width: 100%;\n gap: 10px;\n}\n.ModalContainer .ModalFooter .Dropdown .DropdownInput input {\n flex: 4;\n border: 1px solid #E3E3E3;\n}\n.ModalContainer .ModalFooter .Dropdown .DropdownInput button {\n padding: 2px;\n cursor: pointer;\n transition: background-color 0.2s ease-in-out 0s;\n flex: 1;\n font-size: 10px;\n}\n.ModalContainer .ModalFooter .Dropdown .DropdownInput button:enabled {\n background-color: #6BB816;\n color: #ffffff;\n font-weight: bold;\n border: none;\n border: 2.5px solid rgba(255, 255, 255, 0);\n}\n.ModalContainer .ModalFooter .Dropdown .DropdownInput button:disabled {\n background-color: #ffffff;\n color: #002554;\n font-weight: bold;\n cursor: not-allowed;\n border: 1px solid #E3E3E3;\n}\n.ModalContainer .ModalFooter .Dropdown .DropdownInput:first-child {\n margin-left: 0px;\n display: flex;\n padding: 10px 0px;\n justify-content: center;\n}\n.ModalContainer .ModalFooter .Dropdown .DropdownInput .InvalidInput {\n border: 1px solid #FF0000;\n}\n\ninput {\n /* Firefox */\n -moz-appearance: textfield;\n /* Chrome, Safari, Edge, Opera */\n}\ninput::-webkit-outer-spin-button, input::-webkit-inner-spin-button {\n -webkit-appearance: none;\n margin: 0;\n}\n\n@container (max-width: 1300px) {\n .ModalContainer .Container {\n width: 50%;\n }\n}\n@container (max-width: 800px) {\n .ModalContainer .Container {\n width: 70%;\n }\n}';export{r as player_lugas_limit}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{p as i,b as n}from"./p-d4aa7282.js";(()=>{const n=import.meta.url,t={};return""!==n&&(t.resourcesUrl=new URL(".",n).href),i(t)})().then((i=>n([["p-
|
|
1
|
+
import{p as i,b as n}from"./p-d4aa7282.js";(()=>{const n=import.meta.url,t={};return""!==n&&(t.resourcesUrl=new URL(".",n).href),i(t)})().then((i=>n([["p-50933a63",[[1,"player-lugas-limit",{userId:[1,"user-id"],session:[1],endpoint:[1],currency:[1],flow:[1],amountMinMax:[1,"amount-min-max"],amount:[1],lang:[1],clientStyling:[1,"client-styling"],clientStylingUrl:[1,"client-styling-url"],translationUrl:[1,"translation-url"],validation:[32],kyc:[32],dropDown:[32],isLoading:[32],hasErrors:[32],inputValue:[32],isButtonDisabled:[32],crossProviders:[32],invalidInput:[32],userAmount:[32],operatorDepositLimitAmount:[32],regularDepositLimitAmount:[32],stylingAppends:[32],isWithinRange:[32],minimumRange:[32]}]]]],i)));
|
package/package.json
CHANGED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as t,c as e,h as i}from"./p-d4aa7282.js";const n=["de","en"];let o={en:{loading:"Loading, please wait ...",error:"It was an error while trying to fetch the data",kyc1:"All deposit limit changes must be reported to LUGAS in accordance with regulatory requirements. Please note that decreases in the limit will take effect immediately, while increases will only come into effect after 8 days at the latest.",kyc2:"We were able to set your monthly deposit limit to <b>{amount} {currency}</b>. For the selected limit, we require documents that show your economic capacity. Please upload your last payslip as well as a current bank statement, including the balance, that confirms that you received the payment.",kyc3:"We have transmitted your desired limit to Lugas Please be aware that the limit will only come into effect after 8 days at the latest.",kycThanks:"Thank you!",kycSure:"Are you sure?",setNewLimit:"SET NEW LIMIT",setLimit:"SET LIMIT",keepExistingLimit:"KEEP EXISTING LIMIT",Close:"CLOSE",UploadDocuments:"UPLOAD DOCUMENTS",confirm:"CONFIRM",crossProviders:"No cross-provider deposit limit (LUGAS) has been established yet, but there's no need to worry. Please enter a new deposit limit.",monthlyDeposit:"Monthly deposit limit (EUR)",newUserP1:"To start off, set your monthly limit!",newUserP2:"Having a deposit limit in place allows you to regulate your gaming activity. Once you have set your limit, it will be transmitted to the cross-provider limit database (LUGAS).",newUserP3:"If you have set a deposit limit with another provider before, you may maintain the existing limit.",softMigrationP1:"Set deposit limit",softMigrationP2:"According to legal regulations, players are required to set an individual monthly deposit limit or indicate that an already set deposit limit should be kept unchanged. Please note that the limit set should correspond to your financial situation. Consume gambling responsibly and adapt the gambling behavior to your individual circumstances!",softMigrationP3:"Do you want to set a new limit or confirm the existing limit (of {currency} <b>{amount}</b>) ?",invalidNumber:"Invalid number format. Please enter a valid number.",outOfRange:"The value entered must be between {min} and {max}.",invalidDecimalSeparator:"Invalid decimal separator. Please use a dot (.) instead of a comma (,)."},de:{loading:"Loading, please wait ...",error:"It was an error while trying to fetch the data",kyc1:"All deposit limit changes must be reported to LUGAS in accordance with regulatory requirements. Please note that decreases in the limit will take effect immediately, while increases will only come into effect after 8 days at the latest.",kyc2:"We were able to set your monthly deposit limit to <b>{amount} {currency}</b>. For the selected limit, we require documents that show your economic capacity. Please upload your last payslip as well as a current bank statement, including the balance, that confirms that you received the payment.",kyc3:"We have transmitted your desired limit to Lugas Please be aware that the limit will only come into effect after 8 days at the latest.",kycThanks:"Thank you!",kycSure:"Are you sure?",setNewLimit:"SET NEW LIMIT",setLimit:"SET LIMIT",keepExistingLimit:"KEEP EXISTING LIMIT",Close:"CLOSE",UploadDocuments:"UPLOAD DOCUMENTS",confirm:"CONFIRM",crossProviders:"No cross-provider deposit limit (LUGAS) has been established yet, but there's no need to worry. Please enter a new deposit limit.",monthlyDeposit:"Monthly deposit limit (EUR)",newUserP1:"To start off, set your monthly limit!",newUserP2:"Having a deposit limit in place allows you to regulate your gaming activity. Once you have set your limit, it will be transmitted to the cross-provider limit database (LUGAS).",newUserP3:"If you have set a deposit limit with another provider before, you may maintain the existing limit.",softMigrationP1:"Set deposit limit",softMigrationP2:"According to legal regulations, players are required to set an individual monthly deposit limit or indicate that an already set deposit limit should be kept unchanged. Please note that the limit set should correspond to your financial situation. Consume gambling responsibly and adapt the gambling behavior to your individual circumstances!",softMigrationP3:"Do you want to set a new limit or confirm the existing limit (of {currency} <b>{amount}</b>) ?",invalidNumber:"Invalid number format. Please enter a valid number.",outOfRange:"The value entered must be between {min} and {max}.",invalidDecimalSeparator:"Invalid decimal separator. Please use a dot (.) instead of a comma (,)."},ro:{loading:"Se incarca, va rugam asteptati ...",error:"A fost o eroare in timp ce asteptam datele",kyc1:"All deposit limit changes must be reported to LUGAS in accordance with regulatory requirements. Please note that decreases in the limit will take effect immediately, while increases will only come into effect after 8 days at the latest.",kyc2:"We were able to set your monthly deposit limit to {amount}. For the selected limit, we require documents that show your economic capacity. Please upload your last payslip as well as a current bank statement, including the balance, that confirms that you received the payment.",kyc3:"We have transmitted your desired limit to Lugas Please be aware that the limit will only come into effect after 8 days at the latest.",kycThanks:"Thank you!",kycSure:"Are you sure?",setNewLimit:"SET NEW LIMIT",setLimit:"SET LIMIT",keepExistingLimit:"KEEP EXISTING LIMIT",Close:"CLOSE",UploadDocuments:"UPLOAD DOCUMENTS",confirm:"CONFIRM",crossProviders:"No cross-provider deposit limit (LUGAS) has been established yet, but there's no need to worry. Please enter a new deposit limit.",monthlyDeposit:"Monthly deposit limit (EUR)",newUserP1:"To start off, set your monthly limit!",newUserP2:"Having a deposit limit in place allows you to regulate your gaming activity. Once you have set your limit, it will be transmitted to the cross-provider limit database (LUGAS).",newUserP3:"If you have set a deposit limit with another provider before, you may maintain the existing limit.",softMigrationP1:"Set deposit limit",softMigrationP2:"According to legal regulations, players are required to set an individual monthly deposit limit or indicate that an already set deposit limit should be kept unchanged. Please note that the limit set should correspond to your financial situation. Consume gambling responsibly and adapt the gambling behavior to your individual circumstances!",softMigrationP3:"Do you want to set a new limit or confirm the existing limit ",invalidNumber:"Invalid number format. Please enter a valid number.",outOfRange:"The value entered must be between {min} and {max}.",invalidDecimalSeparator:"Invalid decimal separator. Please use a dot (.) instead of a comma (,)."},fr:{loading:"Loading, please wait ...",error:"It was an error while trying to fetch the data",kyc1:"All deposit limit changes must be reported to LUGAS in accordance with regulatory requirements. Please note that decreases in the limit will take effect immediately, while increases will only come into effect after 8 days at the latest.",kyc2:"We were able to set your monthly deposit limit to {amount}. For the selected limit, we require documents that show your economic capacity. Please upload your last payslip as well as a current bank statement, including the balance, that confirms that you received the payment.",kyc3:"We have transmitted your desired limit to Lugas Please be aware that the limit will only come into effect after 8 days at the latest.",kycThanks:"Thank you!",kycSure:"Are you sure?",setNewLimit:"SET NEW LIMIT",setLimit:"SET LIMIT",keepExistingLimit:"KEEP EXISTING LIMIT",Close:"CLOSE",UploadDocuments:"UPLOAD DOCUMENTS",confirm:"CONFIRM",crossProviders:"No cross-provider deposit limit (LUGAS) has been established yet, but there's no need to worry. Please enter a new deposit limit.",monthlyDeposit:"Monthly deposit limit (EUR)",newUserP1:"To start off, set your monthly limit!",newUserP2:"Having a deposit limit in place allows you to regulate your gaming activity. Once you have set your limit, it will be transmitted to the cross-provider limit database (LUGAS).",newUserP3:"If you have set a deposit limit with another provider before, you may maintain the existing limit.",softMigrationP1:"Set deposit limit",softMigrationP2:"According to legal regulations, players are required to set an individual monthly deposit limit or indicate that an already set deposit limit should be kept unchanged. Please note that the limit set should correspond to your financial situation. Consume gambling responsibly and adapt the gambling behavior to your individual circumstances!",softMigrationP3:"Do you want to set a new limit or confirm the existing limit ",invalidNumber:"Invalid number format. Please enter a valid number.",outOfRange:"The value entered must be between {min} and {max}.",invalidDecimalSeparator:"Invalid decimal separator. Please use a dot (.) instead of a comma (,)."},ar:{loading:"Loading, please wait ...",error:"It was an error while trying to fetch the data",kyc1:"All deposit limit changes must be reported to LUGAS in accordance with regulatory requirements. Please note that decreases in the limit will take effect immediately, while increases will only come into effect after 8 days at the latest.",kyc2:"We were able to set your monthly deposit limit to {amount}. For the selected limit, we require documents that show your economic capacity. Please upload your last payslip as well as a current bank statement, including the balance, that confirms that you received the payment.",kyc3:"We have transmitted your desired limit to Lugas Please be aware that the limit will only come into effect after 8 days at the latest.",kycThanks:"Thank you!",kycSure:"Are you sure?",setNewLimit:"SET NEW LIMIT",setLimit:"SET LIMIT",keepExistingLimit:"KEEP EXISTING LIMIT",Close:"CLOSE",UploadDocuments:"UPLOAD DOCUMENTS",confirm:"CONFIRM",crossProviders:"No cross-provider deposit limit (LUGAS) has been established yet, but there's no need to worry. Please enter a new deposit limit.",monthlyDeposit:"Monthly deposit limit (EUR)",newUserP1:"To start off, set your monthly limit!",newUserP2:"Having a deposit limit in place allows you to regulate your gaming activity. Once you have set your limit, it will be transmitted to the cross-provider limit database (LUGAS).",newUserP3:"If you have set a deposit limit with another provider before, you may maintain the existing limit.",softMigrationP1:"Set deposit limit",softMigrationP2:"According to legal regulations, players are required to set an individual monthly deposit limit or indicate that an already set deposit limit should be kept unchanged. Please note that the limit set should correspond to your financial situation. Consume gambling responsibly and adapt the gambling behavior to your individual circumstances!",softMigrationP3:"Do you want to set a new limit or confirm the existing limit ",invalidNumber:"Invalid number format. Please enter a valid number.",outOfRange:"The value entered must be between {min} and {max}.",invalidDecimalSeparator:"Invalid decimal separator. Please use a dot (.) instead of a comma (,)."}};const a=t=>new Promise((e=>{fetch(t).then((t=>t.json())).then((t=>{Object.keys(t).forEach((e=>{for(let i in t[e])o[e][i]=t[e][i]})),e(!0)}))})),s=(t,e,i)=>{const a=e;let s=o[void 0!==a&&n.includes(a)?a:"de"][t];if(void 0!==i)for(const[t,e]of Object.entries(i.values)){const i=new RegExp(`{${t}}`,"g");s=s.replace(i,e)}return s},r=class{constructor(i){t(this,i),this.uploadDocuments=e(this,"uploadDocuments",7),this.closePopup=e(this,"closePopup",7),this.userId="",this.session="",this.endpoint="",this.currency="EUR",this.flow="",this.amountMinMax="",this.amount="",this.clientStyling="",this.clientStylingUrl="",this.translationUrl="",this.validation=!0,this.dropDown=!1,this.isLoading=!1,this.hasErrors=!1,this.inputValue="",this.isButtonDisabled=!0,this.crossProviders=!1,this.userAmount="",this.operatorDepositLimitAmount="",this.regularDepositLimitAmount="",this.stylingAppends=!1,this.setClientStyling=()=>{let t=document.createElement("style");t.innerHTML=this.clientStyling,this.stylingContainer.prepend(t)},this.setClientStylingURL=()=>{let t=new URL(this.clientStylingUrl),e=document.createElement("style");fetch(t.href).then((t=>t.text())).then((t=>{e.innerHTML=t,setTimeout((()=>{this.stylingContainer.prepend(e)}),1)})).catch((t=>{console.log("error ",t)}))},this.postPlayerSituation=(t,e=!1,i=!1)=>{let n=new URL(`${this.endpoint}v2/player/${this.userId}/limit/lugas`),o={softMigration:"1"==this.flow,keepLimit:e,roleLimitAmount:i?this.amount:0};t&&(o.amount=`${t}`);let a={method:"POST",headers:{"X-SessionId":this.session,"Content-Type":"application/json",Authorization:`Bearer ${this.session}`},body:JSON.stringify(o)};fetch(n.href,a).then((t=>{if(200===t.status)return t.json();throw this.crossProviders=!0,this.dropDown=!0,new Error("HTTP status "+t.status)})).then((t=>{this.kyc=t.popup,this.validation=!1,this.dropDown=!1,t.operatorDepositLimitAmount&&(this.operatorDepositLimitAmount=t.operatorDepositLimitAmount),t.regulatorDepositLimitAmount&&(this.regularDepositLimitAmount=t.regulatorDepositLimitAmount)})).catch((t=>{console.error(t)}))},this.handleClick=t=>{switch(t){case"keepCurrentLimit":this.postPlayerSituation(this.amount,!0);break;case"keepCurrentLimitNewUser":this.postPlayerSituation(null,!0);break;case"postSituation":this.postPlayerSituation();break;case"setNewLimit":this.dropDown=!0;break;case"UploadDocuments":this.uploadDocuments.emit(),window.postMessage({type:"uploadDocuments"},window.location.href);break;case"Close":this.closePopup.emit(),window.postMessage({type:"closePopup"},window.location.href)}}}componentDidRender(){!this.stylingAppends&&this.stylingContainer&&(this.clientStyling&&this.setClientStyling(),this.clientStylingUrl&&this.setClientStylingURL(),this.stylingAppends=!0)}handleNewTranslations(){this.isLoading=!0,a(this.translationUrl).then((()=>{this.isLoading=!1}))}async componentWillLoad(){this.translationUrl.length>2&&await a(this.translationUrl)}handleSubmit(t){t.preventDefault(),this.invalidInput||(this.userAmount=this.inputValue,this.postPlayerSituation(this.inputValue,!1,!0))}containsOnlyDigits(t){return/^[0-9]+$/.test(t)}handleInputChange(t){const e=t.target.value;this.inputValue=e;let i=parseInt(this.amountMinMax.split(",")[0]),n=parseInt(this.amountMinMax.split(",")[1]);this.isValidNumber=!isNaN(Number(e))&&this.containsOnlyDigits(e),this.isButtonDisabled=!this.isValidNumber||!this.isWithinRange,this.invalidInput=!this.isValidNumber,this.isWithinRange=Number(e)>=i&&Number(e)<=n}renderKYC(t){return 0==t?(this.closePopup.emit(),void window.postMessage({type:"closePopup"},window.location.href)):i("div",{class:"ValidatorContainer"},1==t?i("div",{class:"Paragraphs"},i("p",null,s("kycSure",this.lang,{values:{currency:this.currency}})),i("p",null,s("kyc1",this.lang,{values:{currency:this.currency}})),i("div",{class:"ContainerButtons"},i("button",{class:"FirstButton",onClick:()=>this.postPlayerSituation(this.userAmount,!1)},s("setNewLimit",this.lang,{values:{currency:this.currency}})),i("button",{class:"SecondButton",onClick:()=>this.handleClick("keepCurrentLimit")},s("keepExistingLimit",this.lang,{values:{currency:this.currency}})))):2==t?i("div",{class:"Paragraphs"},i("p",null,s("kycThanks",this.lang,{values:{currency:this.currency}})),i("p",{innerHTML:s("kyc2",this.lang,{values:{currency:this.currency,amount:this.regularDepositLimitAmount}})}),i("div",{class:"ContainerButtons"},i("button",{class:"FirstButton",onClick:()=>this.handleClick("Close")},s("Close",this.lang,{values:{currency:this.currency}})),i("button",{class:"SecondButton",onClick:()=>this.handleClick("UploadDocuments")},s("UploadDocuments",this.lang,{values:{currency:this.currency}})))):i("div",{class:"Paragraphs"},i("p",null,s("kycThanks",this.lang,{values:{currency:this.currency}})),i("p",null,s("kyc3",this.lang,{values:{currency:this.currency}})),i("div",{class:"ContainerButtons"},i("button",{class:"SecondButton",onClick:()=>this.handleClick("Close")},s("Close",this.lang,{values:{currency:this.currency}})))))}renderValidator(t){return"1"==t?i("div",{class:"ValidatorContainer"},i("div",{class:"Paragraphs"},i("p",null,s("softMigrationP1",this.lang,{values:{currency:this.currency}})),i("p",{innerHTML:s("softMigrationP2",this.lang,{values:{currency:this.currency}})}),i("p",{innerHTML:s("softMigrationP3",this.lang,{values:{currency:this.currency,amount:this.amount}})})),this.crossProviders?i("div",{class:"CrossProvider"},i("svg",{width:"4",height:"17",viewBox:"0 0 4 17",fill:"none",xmlns:"http://www.w3.org/2000/svg"},i("rect",{width:"4",height:"12",rx:"2",fill:"white"}),i("rect",{y:"14",width:"4",height:"3",rx:"1.5",fill:"white"})),i("p",null,s("crossProviders",this.lang,{values:{currency:this.currency}}))):i("div",{class:"ContainerButtons"},i("button",{class:"FirstButton",onClick:()=>this.handleClick("setNewLimit")},s("setNewLimit",this.lang,{values:{currency:this.currency}})),i("button",{class:"SecondButton",onClick:()=>this.handleClick("keepCurrentLimit")},s("confirm",this.lang,{values:{currency:this.currency}})))):"2"==t?i("div",{class:"ValidatorContainer"},i("div",{class:"Paragraphs"},i("p",null,s("newUserP1",this.lang,{values:{currency:this.currency}})),i("p",null,s("newUserP2",this.lang,{values:{currency:this.currency}})),i("p",null,s("newUserP3",this.lang,{values:{currency:this.currency}}))),this.crossProviders?i("div",{class:"CrossProvider"},i("svg",{width:"4",height:"17",viewBox:"0 0 4 17",fill:"none",xmlns:"http://www.w3.org/2000/svg"},i("rect",{width:"4",height:"12",rx:"2",fill:"white"}),i("rect",{y:"14",width:"4",height:"3",rx:"1.5",fill:"white"})),i("p",null,s("crossProviders",this.lang,{values:{currency:this.currency}}))):i("div",{class:"ContainerButtons"},i("button",{class:"FirstButton",onClick:()=>this.handleClick("setNewLimit")},s("setNewLimit",this.lang,{values:{currency:this.currency}})),i("button",{class:"SecondButton",onClick:()=>this.handleClick("keepCurrentLimitNewUser")},s("keepExistingLimit",this.lang,{values:{currency:this.currency}})))):void 0}render(){let t=this.renderKYC(this.kyc),e=this.renderValidator(this.flow);return this.isLoading?i("div",null,i("p",null,s("loading",this.lang,{values:{currency:this.currency}}))):this.hasErrors?i("div",null,i("p",null,s("error",this.lang,{values:{currency:this.currency}}))):i("div",{class:"ModalContainer",ref:t=>this.stylingContainer=t},i("div",{class:"Container"},i("div",{class:"ModalHeader"},i("svg",{width:"107",height:"20",viewBox:"0 0 107 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},i("path",{d:"M2.7948 17.4348C10.9082 18.9412 30.1923 20.0001 52.698 20.0001C75.2036 20.0001 94.4729 18.9412 102.601 17.4348H2.7948Z",fill:"#7EC51E"}),i("path",{d:"M66.4489 3.87771H64.1074L64.7934 0L60.7815 1.37211L58.3505 14.9143H62.1089L63.481 7.308C63.5705 6.84565 63.7942 6.65177 64.1969 6.65177H64.5697C64.9426 6.65177 65.0917 6.80091 65.0321 7.14394L63.6301 14.9292H67.4034L68.8949 6.63685C69.1931 4.95154 68.5518 3.87771 66.4489 3.87771Z",fill:"#002554"}),i("path",{d:"M93.0858 3.87769H92.6831H85.3901H81.6913L79.6928 14.9143H83.4512L84.8233 7.30797C84.9128 6.84563 85.1365 6.65174 85.5392 6.65174H85.9121C86.2849 6.65174 86.4341 6.80088 86.3744 7.14391L84.9725 14.9292H88.7309L90.103 7.32288C90.1925 6.86054 90.4162 6.66666 90.8189 6.66666H91.1917C91.5646 6.66666 91.7137 6.8158 91.6541 7.15883L90.2521 14.9441H94.0105L95.5019 6.65174C95.8301 4.95151 95.1887 3.87769 93.0858 3.87769Z",fill:"#002554"}),i("path",{d:"M51.9523 10.6639H57.0828L57.5302 8.11353H52.3997L51.9523 10.6639Z",fill:"#002554"}),i("path",{d:"M51.2363 1.34229L47.2244 2.7144L45.5093 12.1701C45.211 13.8255 45.897 14.9143 48.2684 14.9143H50.1476L50.6398 12.1551H49.8195C49.4466 12.1551 49.2975 12.006 49.3571 11.663L50.3266 6.42805H51.6689L52.1163 3.87771H50.7889L51.2363 1.34229Z",fill:"#002554"}),i("path",{d:"M27.2095 1.34229L23.1976 2.7144L21.4825 12.1701C21.1842 13.8255 21.8702 14.9143 24.2416 14.9143H26.1208L26.613 12.1551H25.7927C25.4198 12.1551 25.2707 12.006 25.3303 11.663L26.2998 6.42805H27.6421L28.0895 3.87771H26.7621L27.2095 1.34229Z",fill:"#002554"}),i("path",{d:"M27.8807 10.6639H33.0112L33.4736 8.11353H28.3431L27.8807 10.6639Z",fill:"#002554"}),i("path",{d:"M7.6569 3.87771H5.31536L6.01633 0L2.00439 1.37211L0.169932 11.5735L0.0655323 12.1701C-0.232753 13.8255 0.453304 14.9143 2.82467 14.9143H5.65839C7.7613 14.9143 8.79039 13.8255 9.08867 12.1701L10.0879 6.62194C10.4011 4.95154 9.75981 3.87771 7.6569 3.87771ZM6.25496 7.12903L5.43467 11.663C5.37502 11.9911 5.16622 12.1551 4.79336 12.1551H4.4205C4.01782 12.1551 3.85376 11.9613 3.94324 11.4989L4.70387 7.32291C4.79336 6.86057 5.01707 6.66668 5.41976 6.66668H5.79262C6.16547 6.63685 6.31461 6.786 6.25496 7.12903Z",fill:"#002554"}),i("path",{d:"M76.8891 3.87769H74.0852C71.7138 3.87769 70.7444 4.96643 70.4461 6.62191L69.4468 12.17C69.1486 13.8255 69.7302 14.9143 72.0867 14.9143H74.8906C77.2619 14.9143 78.2313 13.8255 78.5296 12.17L79.5289 6.62191C79.8421 4.95151 79.2604 3.87769 76.8891 3.87769ZM75.7854 6.96494L74.9055 11.8121C74.8458 12.1402 74.637 12.3043 74.2641 12.3043H73.6676C73.2947 12.3043 73.1456 12.1551 73.2052 11.8121L74.0852 6.96494C74.1448 6.63683 74.3536 6.47277 74.7265 6.47277H75.3231C75.6959 6.47277 75.8451 6.63683 75.7854 6.96494Z",fill:"#002554"}),i("path",{d:"M18.082 3.87769H15.3825C13.0111 3.87769 11.9373 4.96643 11.639 6.62191L10.6398 12.17C10.3415 13.8255 11.0275 14.9143 13.3989 14.9143H16.0984C18.4697 14.9143 19.5436 13.8255 19.8419 12.17L19.991 11.3796H16.4265L16.3519 11.7972C16.2923 12.1253 16.0835 12.3341 15.6957 12.3341H14.7263C14.3534 12.3341 14.2043 12.1849 14.2639 11.8419L14.4727 10.6637H20.1103L20.4832 8.62043L20.8411 6.62191C21.1394 4.95151 20.4384 3.87769 18.082 3.87769ZM17.2169 6.95003L17.0081 8.12825H14.9351L15.1439 6.95003C15.2035 6.62191 15.4123 6.45786 15.7852 6.45786H16.7546C17.1275 6.45786 17.2766 6.607 17.2169 6.95003Z",fill:"#002554"}),i("path",{d:"M42.2133 3.87769H39.5138C37.1424 3.87769 36.0686 4.96643 35.7703 6.62191L35.6212 7.41237H39.1857L39.2602 6.99477C39.3199 6.66666 39.5287 6.45786 39.9165 6.45786H40.8859C41.2588 6.45786 41.4079 6.607 41.3482 6.95003L41.1394 8.12825H37.0828C36.2028 8.12825 35.3676 8.82923 35.2185 9.70917L35.0842 10.4101L34.771 12.17C34.4728 13.8255 35.1588 14.9143 37.5302 14.9143H43.4959L44.9873 6.62191C45.2707 4.95151 44.5846 3.87769 42.2133 3.87769ZM40.4683 11.827C40.4086 12.1551 40.1998 12.3192 39.827 12.3192H38.8576C38.4847 12.3192 38.3356 12.17 38.3952 11.827L38.604 10.6488H40.6771L40.4683 11.827Z",fill:"#002554"}),i("path",{d:"M103.63 3.87769H100.931C98.5593 3.87769 97.4855 4.96643 97.1872 6.62191L96.1879 12.17C95.8896 13.8255 96.5757 14.9143 98.947 14.9143H101.647C104.018 14.9143 105.092 13.8255 105.39 12.17L105.539 11.3796H101.975L101.9 11.7972C101.84 12.1253 101.632 12.3341 101.259 12.3341H100.289C99.9165 12.3341 99.7673 12.1849 99.827 11.8419L100.036 10.6637H105.673L106.046 8.62043L106.404 6.62191C106.688 4.95151 106.002 3.87769 103.63 3.87769ZM102.765 6.95003L102.556 8.12825H100.483L100.692 6.95003C100.752 6.62191 100.96 6.45786 101.333 6.45786H102.303C102.676 6.45786 102.825 6.607 102.765 6.95003Z",fill:"#002554"}))),i("div",{class:"ModalBody"},this.validation?e:t,this.dropDown?i("div",null,i("hr",null),i("div",{class:"ModalFooter"},i("div",{class:"Dropdown"},i("p",null,s("monthlyDeposit",this.lang,{values:{currency:this.currency}})),i("form",{onSubmit:t=>this.handleSubmit(t)},i("div",{class:"DropdownInput"},i("input",{type:"number",value:this.inputValue,class:this.invalidInput&&null!=this.invalidInput?"InvalidInput":"",placeholder:"0",onInput:t=>this.handleInputChange(t)}),i("button",{disabled:this.isButtonDisabled},s("setLimit",this.lang,{values:{currency:this.currency}}))),this.invalidInput||!this.isWithinRange&&null!=this.invalidInput?i("p",{class:"InvalidParagraph"},this.isValidNumber?this.isWithinRange?null:s("outOfRange",this.lang,{values:{currency:this.currency,min:this.amountMinMax.split(",")[0],max:this.amountMinMax.split(",")[1]}}):s("invalidNumber",this.lang,{values:{currency:this.currency}})):null)))):null)))}static get watchers(){return{translationUrl:["handleNewTranslations"]}}};r.style='@import url("https://fonts.googleapis.com/css2?family=Roboto:wght@100&display=swap");\n:host {\n font-family: "Roboto", sans-serif;\n}\n\n.ModalContainer {\n position: absolute;\n top: 0;\n left: 0;\n width: 100vw;\n height: 100vh;\n background-color: rgba(0, 0, 0, 0.5);\n display: flex;\n justify-content: center;\n align-items: center;\n font-size: 12px;\n container-type: inline-size;\n}\n.ModalContainer .Container {\n position: fixed;\n top: 30vh;\n width: 25%;\n background: #fff;\n display: flex;\n flex-direction: column;\n justify-content: space-between;\n border-radius: 4px;\n transform: scale(1.1);\n}\n.ModalContainer .ModalHeader {\n display: flex;\n justify-content: space-between;\n align-items: center;\n background-color: #ffffff;\n border-radius: 4px 4px 0px 0px;\n padding: 10px;\n}\n.ModalContainer .ModalBody {\n background: #F5F6F6;\n padding: 16px 10px 10px;\n container-type: inline-size;\n border-radius: 4px;\n}\n.ModalContainer .ModalBody hr {\n border: 1px solid rgba(0, 0, 0, 0.1);\n margin: 12px 0px;\n}\n.ModalContainer .ModalBody p {\n margin: 0;\n}\n.ModalContainer .ModalBody .ValidatorContainer {\n display: flex;\n flex-direction: column;\n justify-content: space-between;\n}\n.ModalContainer .ModalBody .ValidatorContainer .CrossProvider {\n background-color: #404350;\n color: white;\n margin: 5px 0px;\n padding: 10px 15px;\n border-radius: 2px;\n}\n.ModalContainer .ModalBody .ValidatorContainer .CrossProvider svg {\n position: absolute;\n width: 5px;\n height: 28px;\n}\n.ModalContainer .ModalBody .ValidatorContainer .CrossProvider p {\n padding-left: 15px;\n}\n.ModalContainer .ModalBody .ValidatorContainer .Paragraphs {\n padding: 5px 0px;\n}\n.ModalContainer .ModalBody .ValidatorContainer .Paragraphs p {\n padding: 5px 0px;\n}\n.ModalContainer .ModalBody .ValidatorContainer .ContainerButtons {\n display: flex;\n justify-content: space-around;\n gap: 10px;\n padding-top: 5px;\n}\n.ModalContainer .ModalBody .ValidatorContainer .ContainerButtons .FirstButton {\n background-color: #ffffff;\n font-weight: bold;\n color: #002554;\n font-size: 10px;\n border: 2.5px solid #dee2e6;\n width: 100%;\n cursor: pointer;\n}\n.ModalContainer .ModalBody .ValidatorContainer .ContainerButtons .SecondButton {\n background-color: #6BB816;\n border: none;\n cursor: pointer;\n font-weight: bold;\n font-size: 10px;\n color: #ffffff;\n width: 100%;\n}\n.ModalContainer .ModalBody .ValidatorContainer .ContainerButtons button {\n width: 240px;\n height: 30px;\n}\n.ModalContainer .ModalFooter {\n display: flex;\n justify-content: center;\n background-color: rgba(161, 156, 156, 0.11);\n margin: 5px 0px;\n}\n.ModalContainer .ModalFooter .Dropdown {\n background-color: white;\n padding: 8px;\n width: 100%;\n border: 1px solid #dee2e6;\n}\n.ModalContainer .ModalFooter .Dropdown .InvalidParagraph {\n font-size: 10px;\n color: #FF0000;\n}\n.ModalContainer .ModalFooter .Dropdown .DropdownInput {\n display: flex;\n flex-direction: row;\n width: 100%;\n gap: 10px;\n}\n.ModalContainer .ModalFooter .Dropdown .DropdownInput input {\n flex: 4;\n border: 1px solid #E3E3E3;\n}\n.ModalContainer .ModalFooter .Dropdown .DropdownInput button {\n padding: 2px;\n cursor: pointer;\n transition: background-color 0.2s ease-in-out 0s;\n flex: 1;\n font-size: 10px;\n}\n.ModalContainer .ModalFooter .Dropdown .DropdownInput button:enabled {\n background-color: #6BB816;\n color: #ffffff;\n font-weight: bold;\n border: none;\n border: 2.5px solid rgba(255, 255, 255, 0);\n}\n.ModalContainer .ModalFooter .Dropdown .DropdownInput button:disabled {\n background-color: #ffffff;\n color: #002554;\n font-weight: bold;\n cursor: not-allowed;\n border: 1px solid #E3E3E3;\n}\n.ModalContainer .ModalFooter .Dropdown .DropdownInput:first-child {\n margin-left: 0px;\n display: flex;\n padding: 10px 0px;\n justify-content: center;\n}\n.ModalContainer .ModalFooter .Dropdown .DropdownInput .InvalidInput {\n border: 1px solid #FF0000;\n}\n\ninput {\n /* Firefox */\n -moz-appearance: textfield;\n /* Chrome, Safari, Edge, Opera */\n}\ninput::-webkit-outer-spin-button, input::-webkit-inner-spin-button {\n -webkit-appearance: none;\n margin: 0;\n}\n\n@container (max-width: 1300px) {\n .ModalContainer .Container {\n width: 50%;\n }\n}\n@container (max-width: 800px) {\n .ModalContainer .Container {\n width: 70%;\n }\n}';export{r as player_lugas_limit}
|