@everymatrix/player-limit-notification-nd 0.2.17 → 0.2.19
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/{index-8f6e611d.js → index-075a342b.js} +4 -1
- package/dist/cjs/index.cjs.js +2 -2
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/{player-limit-notification-nd-5d6f6659.js → player-limit-notification-nd-25f9dc27.js} +11 -7
- package/dist/cjs/player-limit-notification-nd.cjs.entry.js +2 -2
- package/dist/cjs/player-limit-notification-nd.cjs.js +2 -2
- package/dist/collection/components/player-limit-notification-nd/player-limit-notification-nd.js +8 -8
- package/dist/collection/utils/locale.utils.js +8 -4
- package/dist/esm/{index-92f4161f.js → index-862a608b.js} +4 -1
- package/dist/esm/index.js +2 -2
- package/dist/esm/loader.js +3 -3
- package/dist/esm/{player-limit-notification-nd-74e9d078.js → player-limit-notification-nd-3a25cfcd.js} +11 -7
- package/dist/esm/player-limit-notification-nd.entry.js +2 -2
- package/dist/esm/player-limit-notification-nd.js +3 -3
- package/dist/player-limit-notification-nd/{index-92f4161f.js → index-862a608b.js} +1 -1
- package/dist/player-limit-notification-nd/index.esm.js +1 -1
- package/dist/player-limit-notification-nd/{player-limit-notification-nd-74e9d078.js → player-limit-notification-nd-3a25cfcd.js} +2 -2
- package/dist/player-limit-notification-nd/player-limit-notification-nd.entry.js +1 -1
- package/dist/player-limit-notification-nd/player-limit-notification-nd.esm.js +1 -1
- package/dist/types/components/player-limit-notification-nd/player-limit-notification-nd.d.ts +1 -1
- package/dist/types/components.d.ts +2 -2
- package/package.json +1 -1
|
@@ -21,7 +21,7 @@ function _interopNamespace(e) {
|
|
|
21
21
|
}
|
|
22
22
|
|
|
23
23
|
const NAMESPACE = 'player-limit-notification-nd';
|
|
24
|
-
const BUILD = /* player-limit-notification-nd */ { allRenderFn: true, appendChildSlotFix: false, asyncLoading: true, asyncQueue: false, attachStyles: true, cloneNodeFix: false, cmpDidLoad: true, cmpDidRender: false, cmpDidUnload: false, cmpDidUpdate: false, cmpShouldUpdate: false, cmpWillLoad: true, cmpWillRender: false, cmpWillUpdate: false, connectedCallback: false, constructableCSS: true, cssAnnotations: true, devTools: false, disconnectedCallback: true, element: false, event: false, experimentalScopedSlotChanges: false, experimentalSlotFixes: false, formAssociated: false, hasRenderFn: true, hostListener: false, hostListenerTarget: false, hostListenerTargetBody: false, hostListenerTargetDocument: false, hostListenerTargetParent: false, hostListenerTargetWindow: false, hotModuleReplacement: false, hydrateClientSide: false, hydrateServerSide: false, hydratedAttribute: false, hydratedClass: true, hydratedSelectorName: "hydrated", initializeNextTick: false, invisiblePrehydration: true, isDebug: false, isDev: false, isTesting: false, lazyLoad: true, lifecycle: true, lifecycleDOMEvents: false, member: true, method: false, mode: false, observeAttribute: true, profile: false, prop: true, propBoolean:
|
|
24
|
+
const BUILD = /* player-limit-notification-nd */ { allRenderFn: true, appendChildSlotFix: false, asyncLoading: true, asyncQueue: false, attachStyles: true, cloneNodeFix: false, cmpDidLoad: true, cmpDidRender: false, cmpDidUnload: false, cmpDidUpdate: false, cmpShouldUpdate: false, cmpWillLoad: true, cmpWillRender: false, cmpWillUpdate: false, connectedCallback: false, constructableCSS: true, cssAnnotations: true, devTools: false, disconnectedCallback: true, element: false, event: false, experimentalScopedSlotChanges: false, experimentalSlotFixes: false, formAssociated: false, hasRenderFn: true, hostListener: false, hostListenerTarget: false, hostListenerTargetBody: false, hostListenerTargetDocument: false, hostListenerTargetParent: false, hostListenerTargetWindow: false, hotModuleReplacement: false, hydrateClientSide: false, hydrateServerSide: false, hydratedAttribute: false, hydratedClass: true, hydratedSelectorName: "hydrated", initializeNextTick: false, invisiblePrehydration: true, isDebug: false, isDev: false, isTesting: false, lazyLoad: true, lifecycle: true, lifecycleDOMEvents: false, member: true, method: false, mode: false, observeAttribute: true, profile: false, prop: true, propBoolean: true, propMutable: false, propNumber: false, propString: true, reflect: true, scoped: false, scopedSlotTextContentFix: false, scriptDataOpts: false, shadowDelegatesFocus: false, shadowDom: true, slot: false, slotChildNodesFix: false, slotRelocation: false, state: true, style: true, svg: true, taskQueue: true, transformTagName: false, updatable: true, vdomAttribute: true, vdomClass: true, vdomFunctional: true, vdomKey: true, vdomListener: true, vdomPropOrAttr: true, vdomRef: true, vdomRender: true, vdomStyle: false, vdomText: true, vdomXlink: false, watchCallback: true };
|
|
25
25
|
|
|
26
26
|
/*
|
|
27
27
|
Stencil Client Platform v4.19.2 | MIT Licensed | https://stenciljs.com
|
|
@@ -334,6 +334,9 @@ var convertToPrivate = (node) => {
|
|
|
334
334
|
};
|
|
335
335
|
var parsePropertyValue = (propValue, propType) => {
|
|
336
336
|
if (propValue != null && !isComplexType(propValue)) {
|
|
337
|
+
if (propType & 4 /* Boolean */) {
|
|
338
|
+
return propValue === "false" ? false : propValue === "" || !!propValue;
|
|
339
|
+
}
|
|
337
340
|
if (propType & 1 /* String */) {
|
|
338
341
|
return String(propValue);
|
|
339
342
|
}
|
package/dist/cjs/index.cjs.js
CHANGED
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const playerLimitNotificationNd = require('./player-limit-notification-nd-
|
|
6
|
-
require('./index-
|
|
5
|
+
const playerLimitNotificationNd = require('./player-limit-notification-nd-25f9dc27.js');
|
|
6
|
+
require('./index-075a342b.js');
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
|
package/dist/cjs/loader.cjs.js
CHANGED
|
@@ -2,13 +2,13 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const index = require('./index-
|
|
5
|
+
const index = require('./index-075a342b.js');
|
|
6
6
|
const appGlobals = require('./app-globals-3a1e7e63.js');
|
|
7
7
|
|
|
8
8
|
const defineCustomElements = async (win, options) => {
|
|
9
9
|
if (typeof window === 'undefined') return undefined;
|
|
10
10
|
await appGlobals.globalScripts();
|
|
11
|
-
return index.bootstrapLazy([["player-limit-notification-nd.cjs",[[1,"player-limit-notification-nd",{"mbSource":[513,"mb-source"],"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"session":[513],"userid":[513],"language":[513],"endpoint":[513],"limitsamount":[513],"limitsperiods":[513],"currency":[513],"customcurrencysymbols":[513],"translationurl":[513],"
|
|
11
|
+
return index.bootstrapLazy([["player-limit-notification-nd.cjs",[[1,"player-limit-notification-nd",{"mbSource":[513,"mb-source"],"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"session":[513],"userid":[513],"language":[513],"endpoint":[513],"limitsamount":[513],"limitsperiods":[513],"currency":[513],"customcurrencysymbols":[513],"translationurl":[513],"showComplianceText":[516,"show-compliance-text"],"limitItems":[32],"limitTypeOptions":[32],"skipLimit":[32],"loading":[32],"confirmPopupVisibility":[32]},null,{"clientStyling":["handleClientStylingChange"],"clientStylingUrl":["handleClientStylingUrlChange"],"mbSource":["handleMbSourceChange"]}]]]], options);
|
|
12
12
|
};
|
|
13
13
|
|
|
14
14
|
exports.setNonce = index.setNonce;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
const index = require('./index-
|
|
3
|
+
const index = require('./index-075a342b.js');
|
|
4
4
|
|
|
5
5
|
const DEFAULT_LANGUAGE = 'en';
|
|
6
6
|
let TRANSLATIONS = {
|
|
@@ -27,7 +27,8 @@ let TRANSLATIONS = {
|
|
|
27
27
|
limitNotificationFail: 'Something went wrong while setting your account limits. Try again later.',
|
|
28
28
|
confirmLimitNotification: "Are you sure you want to delete the limits you’ve already set?",
|
|
29
29
|
confirmLimitClose: 'No, keep limits',
|
|
30
|
-
confirmLimitSave: 'Yes, delete limits'
|
|
30
|
+
confirmLimitSave: 'Yes, delete limits',
|
|
31
|
+
complianceText: "Financial limits take effect immediately once set up for the first time."
|
|
31
32
|
},
|
|
32
33
|
fr: {
|
|
33
34
|
selectLimitTypePlaceholder: "Sélectionnez votre type de limite",
|
|
@@ -52,7 +53,8 @@ let TRANSLATIONS = {
|
|
|
52
53
|
limitNotificationFail: "Quelque chose s'est mal passé lors de la définition des limites de votre compte. Veuillez réessayer plus tard.",
|
|
53
54
|
confirmLimitNotification: "Êtes-vous sûr de vouloir supprimer les limites que vous avez déjà définies ?",
|
|
54
55
|
confirmLimitClose: "Non, garder les limites",
|
|
55
|
-
confirmLimitSave: "Oui, supprimer les limites"
|
|
56
|
+
confirmLimitSave: "Oui, supprimer les limites",
|
|
57
|
+
complianceText: "Les plafonds financiers prennent effet immédiatement dès leur première configuration."
|
|
56
58
|
},
|
|
57
59
|
ro: {
|
|
58
60
|
selectLimitTypePlaceholder: "Selectați tipul de limită",
|
|
@@ -77,7 +79,8 @@ let TRANSLATIONS = {
|
|
|
77
79
|
limitNotificationFail: "Ceva nu a funcționat corect la setarea limitelor contului dvs. Încercați din nou mai târziu.",
|
|
78
80
|
confirmLimitNotification: "Sigur doriți să ștergeți limitele pe care le-ați setat deja?",
|
|
79
81
|
confirmLimitClose: "Nu, păstrați limitele",
|
|
80
|
-
confirmLimitSave: "Da, ștergeți limitele"
|
|
82
|
+
confirmLimitSave: "Da, ștergeți limitele",
|
|
83
|
+
complianceText: "Limitele financiare intră în vigoare imediat după ce sunt configurate pentru prima dată."
|
|
81
84
|
},
|
|
82
85
|
hu: {
|
|
83
86
|
selectLimitTypePlaceholder: "Válassza ki a limit típusát",
|
|
@@ -102,7 +105,8 @@ let TRANSLATIONS = {
|
|
|
102
105
|
limitNotificationFail: "Hiba történt a fiók limitjeinek beállítása közben. Próbálja újra később.",
|
|
103
106
|
confirmLimitNotification: "Biztosan törölni szeretné a már beállított limitjeit?",
|
|
104
107
|
confirmLimitClose: "Nem, megtartom a limiteket",
|
|
105
|
-
confirmLimitSave: "Igen, törlöm a limiteket"
|
|
108
|
+
confirmLimitSave: "Igen, törlöm a limiteket",
|
|
109
|
+
complianceText: "A pénzügyi limitek az első beállítást követően azonnal érvénybe lépnek."
|
|
106
110
|
}
|
|
107
111
|
};
|
|
108
112
|
const getTranslations = (url) => {
|
|
@@ -6992,7 +6996,7 @@ const PlayerLimitNotificationNd = class {
|
|
|
6992
6996
|
this.currency = undefined;
|
|
6993
6997
|
this.customcurrencysymbols = undefined;
|
|
6994
6998
|
this.translationurl = '';
|
|
6995
|
-
this.
|
|
6999
|
+
this.showComplianceText = false;
|
|
6996
7000
|
this.limitItems = [{}];
|
|
6997
7001
|
this.limitTypeOptions = [];
|
|
6998
7002
|
this.skipLimit = false;
|
|
@@ -7494,7 +7498,7 @@ const PlayerLimitNotificationNd = class {
|
|
|
7494
7498
|
`, disabled: this.isDisabledPeriod(limitItem, period), onClick: () => this.handleSelectLimitPeriod(period, limitItem) }, translate(period, this.language)))))), index.h("small", { class: "error-message" }, limitItem.periodErrorMessage)));
|
|
7495
7499
|
}
|
|
7496
7500
|
render() {
|
|
7497
|
-
return (index.h("div", { key: '
|
|
7501
|
+
return (index.h("div", { key: '32faa284eec5694d9d69b24f05b06d3125523c37', class: "player-limit-modal", ref: (el) => (this.stylingContainer = el) }, index.h("section", { key: '75301a64466b558c40546cf7da8f112921a02dac', class: "limit-modal-container" }, index.h("div", { key: '87f4dda3fd5c172bb4a8abdcea59c5fa47216544', class: "limit-modal-title" }, index.h("h2", { key: 'ab7a9c8dd456da7c9eacc6ae9129296895098cf1' }, translate('limitNotificationTitle', this.language)), index.h("p", { key: 'c8d2771b9e028667d7df61b899d02105cacb7dbd' }, translate('limitNotificationSubTitle', this.language))), index.h("div", { key: 'b4e1b9924b483097473c9114b4f239e2dce0edd5', class: `limit-modal-content ${this.skipLimit || this.loading ? 'disable-content' : ''}` }, this.limitItems.map((item, index$1) => (index.h("div", { class: "limit-item" }, index.h("div", { class: "limit-item-type" }, index.h("label", { class: "type-select-label" }, translate('selectLimitTypeLabel', this.language)), index.h("div", null, index.h("vaadin-combo-box", { value: item.selectedKey, items: this.limitTypeOptions, "no-vertical-overlap": true, "item-label-path": "label", "item-value-path": "selectedKey", placeholder: translate('selectLimitTypePlaceholder', this.language), onChange: (e) => this.handleSelectLimitType(e, item) })), index.h("small", { class: "error-message" }, item.typeErrorMessage)), this.renderPeriodButtons(item), index.h("div", { class: "limit-item-amount" }, index.h("div", { class: "amount-input" }, index.h("label", { class: "amount-input-label" }, translate('limitNotificationAmountLabel', this.language)), index.h("div", { class: "amount-input-wrapper" }, index.h("div", { class: "amount-input-content" }, index.h("input", { class: "amount-input-inner", type: "number", pattern: "[0-9]*", value: item.amount, onWheel: this.handleBlockInputWheel, onInput: (e) => this.handleInputLimitAmount(e, item) }), index.h("span", { class: "amount-input-suffix" }, index.h("i", null, this.currencySymbolMap[this.currency]))), index.h("button", { onClick: () => this.handleRemoveLimit(index$1), class: "remove-limit-button" }, index.h("svg", { width: "16", height: "18", viewBox: "0 0 16 18", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, index.h("path", { d: "M3 18C2.45 18 1.97934 17.8043 1.588 17.413C1.19667 17.0217 1.00067 16.5507 1 16V3C0.71667 3 0.479337 2.904 0.288004 2.712C0.0966702 2.52 0.000670115 2.28267 3.44827e-06 2C-0.000663218 1.71733 0.0953369 1.48 0.288004 1.288C0.48067 1.096 0.718003 1 1 1H5C5 0.716667 5.096 0.479333 5.288 0.288C5.48 0.0966668 5.71734 0.000666667 6 0H10C10.2833 0 10.521 0.0960001 10.713 0.288C10.905 0.48 11.0007 0.717333 11 1H15C15.2833 1 15.521 1.096 15.713 1.288C15.905 1.48 16.0007 1.71733 16 2C15.9993 2.28267 15.9033 2.52033 15.712 2.713C15.5207 2.90567 15.2833 3.00133 15 3V16C15 16.55 14.8043 17.021 14.413 17.413C14.0217 17.805 13.5507 18.0007 13 18H3ZM6 14C6.28334 14 6.521 13.904 6.713 13.712C6.905 13.52 7.00067 13.2827 7 13V6C7 5.71667 6.904 5.47933 6.712 5.288C6.52 5.09667 6.28267 5.00067 6 5C5.71734 4.99933 5.48 5.09533 5.288 5.288C5.096 5.48067 5 5.718 5 6V13C5 13.2833 5.096 13.521 5.288 13.713C5.48 13.905 5.71734 14.0007 6 14ZM10 14C10.2833 14 10.521 13.904 10.713 13.712C10.905 13.52 11.0007 13.2827 11 13V6C11 5.71667 10.904 5.47933 10.712 5.288C10.52 5.09667 10.2827 5.00067 10 5C9.71734 4.99933 9.48 5.09533 9.288 5.288C9.096 5.48067 9 5.718 9 6V13C9 13.2833 9.096 13.521 9.288 13.713C9.48 13.905 9.71734 14.0007 10 14Z" })))))), index.h("small", { class: "error-message" }, item.amountErrorMessage))))), index.h("div", { key: '4dfb502de016ebc34b9803e10753bebc444815aa', class: "checkbox-container" }, index.h("label", { key: '94e784ec579cddaca2d4023cb8483e29c2701eea' }, index.h("span", { key: '589c598864ed3747638ddcfe7f14edc11577a97b', class: "custom-checkbox" }, index.h("input", { key: '4b7c15e3081619a42bce61336d36146699606646', disabled: this.loading, onChange: (e) => this.handleSkipLimitChange(e), type: "checkbox", class: "checkbox-original" }), index.h("span", { key: '8fabd1cc4abea31e78b6043344d57fd782958aeb', class: "checkbox-custom" })), index.h("span", { key: '10d98983668e9e9c768b355df4945487b525f5ed', class: "checkbox-label" }, translate('skipLimitLimitDescription', this.language)))), index.h("div", { key: 'abbd6cf684fc11ec125a8841ca971b7d71793d26', class: "limit-buttons" }, index.h("button", { key: '9ee7984b66c950770e72eac116d3f888bb2283ea', class: "add-limit", disabled: this.skipLimit || this.loading, onClick: () => this.handleAddLimit() }, index.h("svg", { key: 'e84aeec080872397afb1d62cd35c28bfb60c139d', class: "add-limit-mark", width: "14", height: "14", viewBox: "0 0 14 14", xmlns: "http://www.w3.org/2000/svg" }, index.h("path", { key: '36138fa77a1d7854fedf12378ae4b182772d44e5', d: "M13 8H8V13C8 13.2652 7.89464 13.5196 7.70711 13.7071C7.51957 13.8946 7.26522 14 7 14C6.73478 14 6.48043 13.8946 6.29289 13.7071C6.10536 13.5196 6 13.2652 6 13V8H1C0.734784 8 0.48043 7.89464 0.292893 7.70711C0.105357 7.51957 0 7.26522 0 7C0 6.73478 0.105357 6.48043 0.292893 6.29289C0.48043 6.10536 0.734784 6 1 6H6V1C6 0.734784 6.10536 0.480429 6.29289 0.292893C6.48043 0.105357 6.73478 0 7 0C7.26522 0 7.51957 0.105357 7.70711 0.292893C7.89464 0.480429 8 0.734784 8 1V6H13C13.2652 6 13.5196 6.10536 13.7071 6.29289C13.8946 6.48043 14 6.73478 14 7C14 7.26522 13.8946 7.51957 13.7071 7.70711C13.5196 7.89464 13.2652 8 13 8Z" })), index.h("span", { key: '1d1e9bf74826fc9d37a4acc922d2a915e92525a5' }, translate('addLimitType', this.language))), index.h("button", { key: '6db43aa725a93ed2bd675a33e286d72e49c85bdf', class: "save-limit", disabled: this.loading, onClick: () => this.handleSaveLimit() }, translate('savePlayerLimit', this.language))), this.showComplianceText && (index.h("div", { key: 'a92aca0919f40613fd12460a4d7c47ea53eac437', class: "compliance-content" }, index.h("p", { key: '4c72cb161df40c07fb3a5506e54e9f6296d6119d' }, translate('complianceText', this.language))))), this.confirmPopupVisibility ? (index.h("section", { class: "confirm-modal" }, index.h("div", { class: "confirm-modal-content" }, index.h("h2", { class: "confirm-modal-title" }, translate('limitNotificationTitle', this.language)), index.h("p", null, translate('confirmLimitNotification', this.language)), index.h("div", { class: "confirm-modal-buttons" }, index.h("button", { class: "confirm-limit-close", onClick: () => this.handleCloseConfirm() }, translate('confirmLimitClose', this.language)), index.h("button", { class: "confirm-limit-save", onClick: () => this.handleSaveSkip() }, translate('confirmLimitSave', this.language)))))) : null));
|
|
7498
7502
|
}
|
|
7499
7503
|
static get watchers() { return {
|
|
7500
7504
|
"clientStyling": ["handleClientStylingChange"],
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const playerLimitNotificationNd = require('./player-limit-notification-nd-
|
|
6
|
-
require('./index-
|
|
5
|
+
const playerLimitNotificationNd = require('./player-limit-notification-nd-25f9dc27.js');
|
|
6
|
+
require('./index-075a342b.js');
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const index = require('./index-
|
|
5
|
+
const index = require('./index-075a342b.js');
|
|
6
6
|
const appGlobals = require('./app-globals-3a1e7e63.js');
|
|
7
7
|
|
|
8
8
|
/*
|
|
@@ -19,7 +19,7 @@ var patchBrowser = () => {
|
|
|
19
19
|
|
|
20
20
|
patchBrowser().then(async (options) => {
|
|
21
21
|
await appGlobals.globalScripts();
|
|
22
|
-
return index.bootstrapLazy([["player-limit-notification-nd.cjs",[[1,"player-limit-notification-nd",{"mbSource":[513,"mb-source"],"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"session":[513],"userid":[513],"language":[513],"endpoint":[513],"limitsamount":[513],"limitsperiods":[513],"currency":[513],"customcurrencysymbols":[513],"translationurl":[513],"
|
|
22
|
+
return index.bootstrapLazy([["player-limit-notification-nd.cjs",[[1,"player-limit-notification-nd",{"mbSource":[513,"mb-source"],"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"session":[513],"userid":[513],"language":[513],"endpoint":[513],"limitsamount":[513],"limitsperiods":[513],"currency":[513],"customcurrencysymbols":[513],"translationurl":[513],"showComplianceText":[516,"show-compliance-text"],"limitItems":[32],"limitTypeOptions":[32],"skipLimit":[32],"loading":[32],"confirmPopupVisibility":[32]},null,{"clientStyling":["handleClientStylingChange"],"clientStylingUrl":["handleClientStylingUrlChange"],"mbSource":["handleMbSourceChange"]}]]]], options);
|
|
23
23
|
});
|
|
24
24
|
|
|
25
25
|
exports.setNonce = index.setNonce;
|
package/dist/collection/components/player-limit-notification-nd/player-limit-notification-nd.js
CHANGED
|
@@ -68,7 +68,7 @@ export class PlayerLimitNotificationNd {
|
|
|
68
68
|
this.currency = undefined;
|
|
69
69
|
this.customcurrencysymbols = undefined;
|
|
70
70
|
this.translationurl = '';
|
|
71
|
-
this.
|
|
71
|
+
this.showComplianceText = false;
|
|
72
72
|
this.limitItems = [{}];
|
|
73
73
|
this.limitTypeOptions = [];
|
|
74
74
|
this.skipLimit = false;
|
|
@@ -570,7 +570,7 @@ export class PlayerLimitNotificationNd {
|
|
|
570
570
|
`, disabled: this.isDisabledPeriod(limitItem, period), onClick: () => this.handleSelectLimitPeriod(period, limitItem) }, translate(period, this.language)))))), h("small", { class: "error-message" }, limitItem.periodErrorMessage)));
|
|
571
571
|
}
|
|
572
572
|
render() {
|
|
573
|
-
return (h("div", { key: '
|
|
573
|
+
return (h("div", { key: '32faa284eec5694d9d69b24f05b06d3125523c37', class: "player-limit-modal", ref: (el) => (this.stylingContainer = el) }, h("section", { key: '75301a64466b558c40546cf7da8f112921a02dac', class: "limit-modal-container" }, h("div", { key: '87f4dda3fd5c172bb4a8abdcea59c5fa47216544', class: "limit-modal-title" }, h("h2", { key: 'ab7a9c8dd456da7c9eacc6ae9129296895098cf1' }, translate('limitNotificationTitle', this.language)), h("p", { key: 'c8d2771b9e028667d7df61b899d02105cacb7dbd' }, translate('limitNotificationSubTitle', this.language))), h("div", { key: 'b4e1b9924b483097473c9114b4f239e2dce0edd5', class: `limit-modal-content ${this.skipLimit || this.loading ? 'disable-content' : ''}` }, this.limitItems.map((item, index) => (h("div", { class: "limit-item" }, h("div", { class: "limit-item-type" }, h("label", { class: "type-select-label" }, translate('selectLimitTypeLabel', this.language)), h("div", null, h("vaadin-combo-box", { value: item.selectedKey, items: this.limitTypeOptions, "no-vertical-overlap": true, "item-label-path": "label", "item-value-path": "selectedKey", placeholder: translate('selectLimitTypePlaceholder', this.language), onChange: (e) => this.handleSelectLimitType(e, item) })), h("small", { class: "error-message" }, item.typeErrorMessage)), this.renderPeriodButtons(item), h("div", { class: "limit-item-amount" }, h("div", { class: "amount-input" }, h("label", { class: "amount-input-label" }, translate('limitNotificationAmountLabel', this.language)), h("div", { class: "amount-input-wrapper" }, h("div", { class: "amount-input-content" }, h("input", { class: "amount-input-inner", type: "number", pattern: "[0-9]*", value: item.amount, onWheel: this.handleBlockInputWheel, onInput: (e) => this.handleInputLimitAmount(e, item) }), h("span", { class: "amount-input-suffix" }, h("i", null, this.currencySymbolMap[this.currency]))), h("button", { onClick: () => this.handleRemoveLimit(index), class: "remove-limit-button" }, h("svg", { width: "16", height: "18", viewBox: "0 0 16 18", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, h("path", { d: "M3 18C2.45 18 1.97934 17.8043 1.588 17.413C1.19667 17.0217 1.00067 16.5507 1 16V3C0.71667 3 0.479337 2.904 0.288004 2.712C0.0966702 2.52 0.000670115 2.28267 3.44827e-06 2C-0.000663218 1.71733 0.0953369 1.48 0.288004 1.288C0.48067 1.096 0.718003 1 1 1H5C5 0.716667 5.096 0.479333 5.288 0.288C5.48 0.0966668 5.71734 0.000666667 6 0H10C10.2833 0 10.521 0.0960001 10.713 0.288C10.905 0.48 11.0007 0.717333 11 1H15C15.2833 1 15.521 1.096 15.713 1.288C15.905 1.48 16.0007 1.71733 16 2C15.9993 2.28267 15.9033 2.52033 15.712 2.713C15.5207 2.90567 15.2833 3.00133 15 3V16C15 16.55 14.8043 17.021 14.413 17.413C14.0217 17.805 13.5507 18.0007 13 18H3ZM6 14C6.28334 14 6.521 13.904 6.713 13.712C6.905 13.52 7.00067 13.2827 7 13V6C7 5.71667 6.904 5.47933 6.712 5.288C6.52 5.09667 6.28267 5.00067 6 5C5.71734 4.99933 5.48 5.09533 5.288 5.288C5.096 5.48067 5 5.718 5 6V13C5 13.2833 5.096 13.521 5.288 13.713C5.48 13.905 5.71734 14.0007 6 14ZM10 14C10.2833 14 10.521 13.904 10.713 13.712C10.905 13.52 11.0007 13.2827 11 13V6C11 5.71667 10.904 5.47933 10.712 5.288C10.52 5.09667 10.2827 5.00067 10 5C9.71734 4.99933 9.48 5.09533 9.288 5.288C9.096 5.48067 9 5.718 9 6V13C9 13.2833 9.096 13.521 9.288 13.713C9.48 13.905 9.71734 14.0007 10 14Z" })))))), h("small", { class: "error-message" }, item.amountErrorMessage))))), h("div", { key: '4dfb502de016ebc34b9803e10753bebc444815aa', class: "checkbox-container" }, h("label", { key: '94e784ec579cddaca2d4023cb8483e29c2701eea' }, h("span", { key: '589c598864ed3747638ddcfe7f14edc11577a97b', class: "custom-checkbox" }, h("input", { key: '4b7c15e3081619a42bce61336d36146699606646', disabled: this.loading, onChange: (e) => this.handleSkipLimitChange(e), type: "checkbox", class: "checkbox-original" }), h("span", { key: '8fabd1cc4abea31e78b6043344d57fd782958aeb', class: "checkbox-custom" })), h("span", { key: '10d98983668e9e9c768b355df4945487b525f5ed', class: "checkbox-label" }, translate('skipLimitLimitDescription', this.language)))), h("div", { key: 'abbd6cf684fc11ec125a8841ca971b7d71793d26', class: "limit-buttons" }, h("button", { key: '9ee7984b66c950770e72eac116d3f888bb2283ea', class: "add-limit", disabled: this.skipLimit || this.loading, onClick: () => this.handleAddLimit() }, h("svg", { key: 'e84aeec080872397afb1d62cd35c28bfb60c139d', class: "add-limit-mark", width: "14", height: "14", viewBox: "0 0 14 14", xmlns: "http://www.w3.org/2000/svg" }, h("path", { key: '36138fa77a1d7854fedf12378ae4b182772d44e5', d: "M13 8H8V13C8 13.2652 7.89464 13.5196 7.70711 13.7071C7.51957 13.8946 7.26522 14 7 14C6.73478 14 6.48043 13.8946 6.29289 13.7071C6.10536 13.5196 6 13.2652 6 13V8H1C0.734784 8 0.48043 7.89464 0.292893 7.70711C0.105357 7.51957 0 7.26522 0 7C0 6.73478 0.105357 6.48043 0.292893 6.29289C0.48043 6.10536 0.734784 6 1 6H6V1C6 0.734784 6.10536 0.480429 6.29289 0.292893C6.48043 0.105357 6.73478 0 7 0C7.26522 0 7.51957 0.105357 7.70711 0.292893C7.89464 0.480429 8 0.734784 8 1V6H13C13.2652 6 13.5196 6.10536 13.7071 6.29289C13.8946 6.48043 14 6.73478 14 7C14 7.26522 13.8946 7.51957 13.7071 7.70711C13.5196 7.89464 13.2652 8 13 8Z" })), h("span", { key: '1d1e9bf74826fc9d37a4acc922d2a915e92525a5' }, translate('addLimitType', this.language))), h("button", { key: '6db43aa725a93ed2bd675a33e286d72e49c85bdf', class: "save-limit", disabled: this.loading, onClick: () => this.handleSaveLimit() }, translate('savePlayerLimit', this.language))), this.showComplianceText && (h("div", { key: 'a92aca0919f40613fd12460a4d7c47ea53eac437', class: "compliance-content" }, h("p", { key: '4c72cb161df40c07fb3a5506e54e9f6296d6119d' }, translate('complianceText', this.language))))), this.confirmPopupVisibility ? (h("section", { class: "confirm-modal" }, h("div", { class: "confirm-modal-content" }, h("h2", { class: "confirm-modal-title" }, translate('limitNotificationTitle', this.language)), h("p", null, translate('confirmLimitNotification', this.language)), h("div", { class: "confirm-modal-buttons" }, h("button", { class: "confirm-limit-close", onClick: () => this.handleCloseConfirm() }, translate('confirmLimitClose', this.language)), h("button", { class: "confirm-limit-save", onClick: () => this.handleSaveSkip() }, translate('confirmLimitSave', this.language)))))) : null));
|
|
574
574
|
}
|
|
575
575
|
static get is() { return "player-limit-notification-nd"; }
|
|
576
576
|
static get encapsulation() { return "shadow"; }
|
|
@@ -791,12 +791,12 @@ export class PlayerLimitNotificationNd {
|
|
|
791
791
|
"reflect": true,
|
|
792
792
|
"defaultValue": "''"
|
|
793
793
|
},
|
|
794
|
-
"
|
|
795
|
-
"type": "
|
|
794
|
+
"showComplianceText": {
|
|
795
|
+
"type": "boolean",
|
|
796
796
|
"mutable": false,
|
|
797
797
|
"complexType": {
|
|
798
|
-
"original": "
|
|
799
|
-
"resolved": "
|
|
798
|
+
"original": "boolean",
|
|
799
|
+
"resolved": "boolean",
|
|
800
800
|
"references": {}
|
|
801
801
|
},
|
|
802
802
|
"required": false,
|
|
@@ -805,9 +805,9 @@ export class PlayerLimitNotificationNd {
|
|
|
805
805
|
"tags": [],
|
|
806
806
|
"text": ""
|
|
807
807
|
},
|
|
808
|
-
"attribute": "compliance-text",
|
|
808
|
+
"attribute": "show-compliance-text",
|
|
809
809
|
"reflect": true,
|
|
810
|
-
"defaultValue": "
|
|
810
|
+
"defaultValue": "false"
|
|
811
811
|
}
|
|
812
812
|
};
|
|
813
813
|
}
|
|
@@ -23,7 +23,8 @@ let TRANSLATIONS = {
|
|
|
23
23
|
limitNotificationFail: 'Something went wrong while setting your account limits. Try again later.',
|
|
24
24
|
confirmLimitNotification: "Are you sure you want to delete the limits you’ve already set?",
|
|
25
25
|
confirmLimitClose: 'No, keep limits',
|
|
26
|
-
confirmLimitSave: 'Yes, delete limits'
|
|
26
|
+
confirmLimitSave: 'Yes, delete limits',
|
|
27
|
+
complianceText: "Financial limits take effect immediately once set up for the first time."
|
|
27
28
|
},
|
|
28
29
|
fr: {
|
|
29
30
|
selectLimitTypePlaceholder: "Sélectionnez votre type de limite",
|
|
@@ -48,7 +49,8 @@ let TRANSLATIONS = {
|
|
|
48
49
|
limitNotificationFail: "Quelque chose s'est mal passé lors de la définition des limites de votre compte. Veuillez réessayer plus tard.",
|
|
49
50
|
confirmLimitNotification: "Êtes-vous sûr de vouloir supprimer les limites que vous avez déjà définies ?",
|
|
50
51
|
confirmLimitClose: "Non, garder les limites",
|
|
51
|
-
confirmLimitSave: "Oui, supprimer les limites"
|
|
52
|
+
confirmLimitSave: "Oui, supprimer les limites",
|
|
53
|
+
complianceText: "Les plafonds financiers prennent effet immédiatement dès leur première configuration."
|
|
52
54
|
},
|
|
53
55
|
ro: {
|
|
54
56
|
selectLimitTypePlaceholder: "Selectați tipul de limită",
|
|
@@ -73,7 +75,8 @@ let TRANSLATIONS = {
|
|
|
73
75
|
limitNotificationFail: "Ceva nu a funcționat corect la setarea limitelor contului dvs. Încercați din nou mai târziu.",
|
|
74
76
|
confirmLimitNotification: "Sigur doriți să ștergeți limitele pe care le-ați setat deja?",
|
|
75
77
|
confirmLimitClose: "Nu, păstrați limitele",
|
|
76
|
-
confirmLimitSave: "Da, ștergeți limitele"
|
|
78
|
+
confirmLimitSave: "Da, ștergeți limitele",
|
|
79
|
+
complianceText: "Limitele financiare intră în vigoare imediat după ce sunt configurate pentru prima dată."
|
|
77
80
|
},
|
|
78
81
|
hu: {
|
|
79
82
|
selectLimitTypePlaceholder: "Válassza ki a limit típusát",
|
|
@@ -98,7 +101,8 @@ let TRANSLATIONS = {
|
|
|
98
101
|
limitNotificationFail: "Hiba történt a fiók limitjeinek beállítása közben. Próbálja újra később.",
|
|
99
102
|
confirmLimitNotification: "Biztosan törölni szeretné a már beállított limitjeit?",
|
|
100
103
|
confirmLimitClose: "Nem, megtartom a limiteket",
|
|
101
|
-
confirmLimitSave: "Igen, törlöm a limiteket"
|
|
104
|
+
confirmLimitSave: "Igen, törlöm a limiteket",
|
|
105
|
+
complianceText: "A pénzügyi limitek az első beállítást követően azonnal érvénybe lépnek."
|
|
102
106
|
}
|
|
103
107
|
};
|
|
104
108
|
export const getTranslations = (url) => {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
const NAMESPACE = 'player-limit-notification-nd';
|
|
2
|
-
const BUILD = /* player-limit-notification-nd */ { allRenderFn: true, appendChildSlotFix: false, asyncLoading: true, asyncQueue: false, attachStyles: true, cloneNodeFix: false, cmpDidLoad: true, cmpDidRender: false, cmpDidUnload: false, cmpDidUpdate: false, cmpShouldUpdate: false, cmpWillLoad: true, cmpWillRender: false, cmpWillUpdate: false, connectedCallback: false, constructableCSS: true, cssAnnotations: true, devTools: false, disconnectedCallback: true, element: false, event: false, experimentalScopedSlotChanges: false, experimentalSlotFixes: false, formAssociated: false, hasRenderFn: true, hostListener: false, hostListenerTarget: false, hostListenerTargetBody: false, hostListenerTargetDocument: false, hostListenerTargetParent: false, hostListenerTargetWindow: false, hotModuleReplacement: false, hydrateClientSide: false, hydrateServerSide: false, hydratedAttribute: false, hydratedClass: true, hydratedSelectorName: "hydrated", initializeNextTick: false, invisiblePrehydration: true, isDebug: false, isDev: false, isTesting: false, lazyLoad: true, lifecycle: true, lifecycleDOMEvents: false, member: true, method: false, mode: false, observeAttribute: true, profile: false, prop: true, propBoolean:
|
|
2
|
+
const BUILD = /* player-limit-notification-nd */ { allRenderFn: true, appendChildSlotFix: false, asyncLoading: true, asyncQueue: false, attachStyles: true, cloneNodeFix: false, cmpDidLoad: true, cmpDidRender: false, cmpDidUnload: false, cmpDidUpdate: false, cmpShouldUpdate: false, cmpWillLoad: true, cmpWillRender: false, cmpWillUpdate: false, connectedCallback: false, constructableCSS: true, cssAnnotations: true, devTools: false, disconnectedCallback: true, element: false, event: false, experimentalScopedSlotChanges: false, experimentalSlotFixes: false, formAssociated: false, hasRenderFn: true, hostListener: false, hostListenerTarget: false, hostListenerTargetBody: false, hostListenerTargetDocument: false, hostListenerTargetParent: false, hostListenerTargetWindow: false, hotModuleReplacement: false, hydrateClientSide: false, hydrateServerSide: false, hydratedAttribute: false, hydratedClass: true, hydratedSelectorName: "hydrated", initializeNextTick: false, invisiblePrehydration: true, isDebug: false, isDev: false, isTesting: false, lazyLoad: true, lifecycle: true, lifecycleDOMEvents: false, member: true, method: false, mode: false, observeAttribute: true, profile: false, prop: true, propBoolean: true, propMutable: false, propNumber: false, propString: true, reflect: true, scoped: false, scopedSlotTextContentFix: false, scriptDataOpts: false, shadowDelegatesFocus: false, shadowDom: true, slot: false, slotChildNodesFix: false, slotRelocation: false, state: true, style: true, svg: true, taskQueue: true, transformTagName: false, updatable: true, vdomAttribute: true, vdomClass: true, vdomFunctional: true, vdomKey: true, vdomListener: true, vdomPropOrAttr: true, vdomRef: true, vdomRender: true, vdomStyle: false, vdomText: true, vdomXlink: false, watchCallback: true };
|
|
3
3
|
|
|
4
4
|
/*
|
|
5
5
|
Stencil Client Platform v4.19.2 | MIT Licensed | https://stenciljs.com
|
|
@@ -312,6 +312,9 @@ var convertToPrivate = (node) => {
|
|
|
312
312
|
};
|
|
313
313
|
var parsePropertyValue = (propValue, propType) => {
|
|
314
314
|
if (propValue != null && !isComplexType(propValue)) {
|
|
315
|
+
if (propType & 4 /* Boolean */) {
|
|
316
|
+
return propValue === "false" ? false : propValue === "" || !!propValue;
|
|
317
|
+
}
|
|
315
318
|
if (propType & 1 /* String */) {
|
|
316
319
|
return String(propValue);
|
|
317
320
|
}
|
package/dist/esm/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { P as PlayerLimitNotificationNd } from './player-limit-notification-nd-
|
|
2
|
-
import './index-
|
|
1
|
+
export { P as PlayerLimitNotificationNd } from './player-limit-notification-nd-3a25cfcd.js';
|
|
2
|
+
import './index-862a608b.js';
|
package/dist/esm/loader.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { b as bootstrapLazy } from './index-
|
|
2
|
-
export { s as setNonce } from './index-
|
|
1
|
+
import { b as bootstrapLazy } from './index-862a608b.js';
|
|
2
|
+
export { s as setNonce } from './index-862a608b.js';
|
|
3
3
|
import { g as globalScripts } from './app-globals-0f993ce5.js';
|
|
4
4
|
|
|
5
5
|
const defineCustomElements = async (win, options) => {
|
|
6
6
|
if (typeof window === 'undefined') return undefined;
|
|
7
7
|
await globalScripts();
|
|
8
|
-
return bootstrapLazy([["player-limit-notification-nd",[[1,"player-limit-notification-nd",{"mbSource":[513,"mb-source"],"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"session":[513],"userid":[513],"language":[513],"endpoint":[513],"limitsamount":[513],"limitsperiods":[513],"currency":[513],"customcurrencysymbols":[513],"translationurl":[513],"
|
|
8
|
+
return bootstrapLazy([["player-limit-notification-nd",[[1,"player-limit-notification-nd",{"mbSource":[513,"mb-source"],"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"session":[513],"userid":[513],"language":[513],"endpoint":[513],"limitsamount":[513],"limitsperiods":[513],"currency":[513],"customcurrencysymbols":[513],"translationurl":[513],"showComplianceText":[516,"show-compliance-text"],"limitItems":[32],"limitTypeOptions":[32],"skipLimit":[32],"loading":[32],"confirmPopupVisibility":[32]},null,{"clientStyling":["handleClientStylingChange"],"clientStylingUrl":["handleClientStylingUrlChange"],"mbSource":["handleMbSourceChange"]}]]]], options);
|
|
9
9
|
};
|
|
10
10
|
|
|
11
11
|
export { defineCustomElements };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as registerInstance, h, F as Fragment } from './index-
|
|
1
|
+
import { r as registerInstance, h, F as Fragment } from './index-862a608b.js';
|
|
2
2
|
|
|
3
3
|
const DEFAULT_LANGUAGE = 'en';
|
|
4
4
|
let TRANSLATIONS = {
|
|
@@ -25,7 +25,8 @@ let TRANSLATIONS = {
|
|
|
25
25
|
limitNotificationFail: 'Something went wrong while setting your account limits. Try again later.',
|
|
26
26
|
confirmLimitNotification: "Are you sure you want to delete the limits you’ve already set?",
|
|
27
27
|
confirmLimitClose: 'No, keep limits',
|
|
28
|
-
confirmLimitSave: 'Yes, delete limits'
|
|
28
|
+
confirmLimitSave: 'Yes, delete limits',
|
|
29
|
+
complianceText: "Financial limits take effect immediately once set up for the first time."
|
|
29
30
|
},
|
|
30
31
|
fr: {
|
|
31
32
|
selectLimitTypePlaceholder: "Sélectionnez votre type de limite",
|
|
@@ -50,7 +51,8 @@ let TRANSLATIONS = {
|
|
|
50
51
|
limitNotificationFail: "Quelque chose s'est mal passé lors de la définition des limites de votre compte. Veuillez réessayer plus tard.",
|
|
51
52
|
confirmLimitNotification: "Êtes-vous sûr de vouloir supprimer les limites que vous avez déjà définies ?",
|
|
52
53
|
confirmLimitClose: "Non, garder les limites",
|
|
53
|
-
confirmLimitSave: "Oui, supprimer les limites"
|
|
54
|
+
confirmLimitSave: "Oui, supprimer les limites",
|
|
55
|
+
complianceText: "Les plafonds financiers prennent effet immédiatement dès leur première configuration."
|
|
54
56
|
},
|
|
55
57
|
ro: {
|
|
56
58
|
selectLimitTypePlaceholder: "Selectați tipul de limită",
|
|
@@ -75,7 +77,8 @@ let TRANSLATIONS = {
|
|
|
75
77
|
limitNotificationFail: "Ceva nu a funcționat corect la setarea limitelor contului dvs. Încercați din nou mai târziu.",
|
|
76
78
|
confirmLimitNotification: "Sigur doriți să ștergeți limitele pe care le-ați setat deja?",
|
|
77
79
|
confirmLimitClose: "Nu, păstrați limitele",
|
|
78
|
-
confirmLimitSave: "Da, ștergeți limitele"
|
|
80
|
+
confirmLimitSave: "Da, ștergeți limitele",
|
|
81
|
+
complianceText: "Limitele financiare intră în vigoare imediat după ce sunt configurate pentru prima dată."
|
|
79
82
|
},
|
|
80
83
|
hu: {
|
|
81
84
|
selectLimitTypePlaceholder: "Válassza ki a limit típusát",
|
|
@@ -100,7 +103,8 @@ let TRANSLATIONS = {
|
|
|
100
103
|
limitNotificationFail: "Hiba történt a fiók limitjeinek beállítása közben. Próbálja újra később.",
|
|
101
104
|
confirmLimitNotification: "Biztosan törölni szeretné a már beállított limitjeit?",
|
|
102
105
|
confirmLimitClose: "Nem, megtartom a limiteket",
|
|
103
|
-
confirmLimitSave: "Igen, törlöm a limiteket"
|
|
106
|
+
confirmLimitSave: "Igen, törlöm a limiteket",
|
|
107
|
+
complianceText: "A pénzügyi limitek az első beállítást követően azonnal érvénybe lépnek."
|
|
104
108
|
}
|
|
105
109
|
};
|
|
106
110
|
const getTranslations = (url) => {
|
|
@@ -6990,7 +6994,7 @@ const PlayerLimitNotificationNd = class {
|
|
|
6990
6994
|
this.currency = undefined;
|
|
6991
6995
|
this.customcurrencysymbols = undefined;
|
|
6992
6996
|
this.translationurl = '';
|
|
6993
|
-
this.
|
|
6997
|
+
this.showComplianceText = false;
|
|
6994
6998
|
this.limitItems = [{}];
|
|
6995
6999
|
this.limitTypeOptions = [];
|
|
6996
7000
|
this.skipLimit = false;
|
|
@@ -7492,7 +7496,7 @@ const PlayerLimitNotificationNd = class {
|
|
|
7492
7496
|
`, disabled: this.isDisabledPeriod(limitItem, period), onClick: () => this.handleSelectLimitPeriod(period, limitItem) }, translate(period, this.language)))))), h("small", { class: "error-message" }, limitItem.periodErrorMessage)));
|
|
7493
7497
|
}
|
|
7494
7498
|
render() {
|
|
7495
|
-
return (h("div", { key: '
|
|
7499
|
+
return (h("div", { key: '32faa284eec5694d9d69b24f05b06d3125523c37', class: "player-limit-modal", ref: (el) => (this.stylingContainer = el) }, h("section", { key: '75301a64466b558c40546cf7da8f112921a02dac', class: "limit-modal-container" }, h("div", { key: '87f4dda3fd5c172bb4a8abdcea59c5fa47216544', class: "limit-modal-title" }, h("h2", { key: 'ab7a9c8dd456da7c9eacc6ae9129296895098cf1' }, translate('limitNotificationTitle', this.language)), h("p", { key: 'c8d2771b9e028667d7df61b899d02105cacb7dbd' }, translate('limitNotificationSubTitle', this.language))), h("div", { key: 'b4e1b9924b483097473c9114b4f239e2dce0edd5', class: `limit-modal-content ${this.skipLimit || this.loading ? 'disable-content' : ''}` }, this.limitItems.map((item, index) => (h("div", { class: "limit-item" }, h("div", { class: "limit-item-type" }, h("label", { class: "type-select-label" }, translate('selectLimitTypeLabel', this.language)), h("div", null, h("vaadin-combo-box", { value: item.selectedKey, items: this.limitTypeOptions, "no-vertical-overlap": true, "item-label-path": "label", "item-value-path": "selectedKey", placeholder: translate('selectLimitTypePlaceholder', this.language), onChange: (e) => this.handleSelectLimitType(e, item) })), h("small", { class: "error-message" }, item.typeErrorMessage)), this.renderPeriodButtons(item), h("div", { class: "limit-item-amount" }, h("div", { class: "amount-input" }, h("label", { class: "amount-input-label" }, translate('limitNotificationAmountLabel', this.language)), h("div", { class: "amount-input-wrapper" }, h("div", { class: "amount-input-content" }, h("input", { class: "amount-input-inner", type: "number", pattern: "[0-9]*", value: item.amount, onWheel: this.handleBlockInputWheel, onInput: (e) => this.handleInputLimitAmount(e, item) }), h("span", { class: "amount-input-suffix" }, h("i", null, this.currencySymbolMap[this.currency]))), h("button", { onClick: () => this.handleRemoveLimit(index), class: "remove-limit-button" }, h("svg", { width: "16", height: "18", viewBox: "0 0 16 18", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, h("path", { d: "M3 18C2.45 18 1.97934 17.8043 1.588 17.413C1.19667 17.0217 1.00067 16.5507 1 16V3C0.71667 3 0.479337 2.904 0.288004 2.712C0.0966702 2.52 0.000670115 2.28267 3.44827e-06 2C-0.000663218 1.71733 0.0953369 1.48 0.288004 1.288C0.48067 1.096 0.718003 1 1 1H5C5 0.716667 5.096 0.479333 5.288 0.288C5.48 0.0966668 5.71734 0.000666667 6 0H10C10.2833 0 10.521 0.0960001 10.713 0.288C10.905 0.48 11.0007 0.717333 11 1H15C15.2833 1 15.521 1.096 15.713 1.288C15.905 1.48 16.0007 1.71733 16 2C15.9993 2.28267 15.9033 2.52033 15.712 2.713C15.5207 2.90567 15.2833 3.00133 15 3V16C15 16.55 14.8043 17.021 14.413 17.413C14.0217 17.805 13.5507 18.0007 13 18H3ZM6 14C6.28334 14 6.521 13.904 6.713 13.712C6.905 13.52 7.00067 13.2827 7 13V6C7 5.71667 6.904 5.47933 6.712 5.288C6.52 5.09667 6.28267 5.00067 6 5C5.71734 4.99933 5.48 5.09533 5.288 5.288C5.096 5.48067 5 5.718 5 6V13C5 13.2833 5.096 13.521 5.288 13.713C5.48 13.905 5.71734 14.0007 6 14ZM10 14C10.2833 14 10.521 13.904 10.713 13.712C10.905 13.52 11.0007 13.2827 11 13V6C11 5.71667 10.904 5.47933 10.712 5.288C10.52 5.09667 10.2827 5.00067 10 5C9.71734 4.99933 9.48 5.09533 9.288 5.288C9.096 5.48067 9 5.718 9 6V13C9 13.2833 9.096 13.521 9.288 13.713C9.48 13.905 9.71734 14.0007 10 14Z" })))))), h("small", { class: "error-message" }, item.amountErrorMessage))))), h("div", { key: '4dfb502de016ebc34b9803e10753bebc444815aa', class: "checkbox-container" }, h("label", { key: '94e784ec579cddaca2d4023cb8483e29c2701eea' }, h("span", { key: '589c598864ed3747638ddcfe7f14edc11577a97b', class: "custom-checkbox" }, h("input", { key: '4b7c15e3081619a42bce61336d36146699606646', disabled: this.loading, onChange: (e) => this.handleSkipLimitChange(e), type: "checkbox", class: "checkbox-original" }), h("span", { key: '8fabd1cc4abea31e78b6043344d57fd782958aeb', class: "checkbox-custom" })), h("span", { key: '10d98983668e9e9c768b355df4945487b525f5ed', class: "checkbox-label" }, translate('skipLimitLimitDescription', this.language)))), h("div", { key: 'abbd6cf684fc11ec125a8841ca971b7d71793d26', class: "limit-buttons" }, h("button", { key: '9ee7984b66c950770e72eac116d3f888bb2283ea', class: "add-limit", disabled: this.skipLimit || this.loading, onClick: () => this.handleAddLimit() }, h("svg", { key: 'e84aeec080872397afb1d62cd35c28bfb60c139d', class: "add-limit-mark", width: "14", height: "14", viewBox: "0 0 14 14", xmlns: "http://www.w3.org/2000/svg" }, h("path", { key: '36138fa77a1d7854fedf12378ae4b182772d44e5', d: "M13 8H8V13C8 13.2652 7.89464 13.5196 7.70711 13.7071C7.51957 13.8946 7.26522 14 7 14C6.73478 14 6.48043 13.8946 6.29289 13.7071C6.10536 13.5196 6 13.2652 6 13V8H1C0.734784 8 0.48043 7.89464 0.292893 7.70711C0.105357 7.51957 0 7.26522 0 7C0 6.73478 0.105357 6.48043 0.292893 6.29289C0.48043 6.10536 0.734784 6 1 6H6V1C6 0.734784 6.10536 0.480429 6.29289 0.292893C6.48043 0.105357 6.73478 0 7 0C7.26522 0 7.51957 0.105357 7.70711 0.292893C7.89464 0.480429 8 0.734784 8 1V6H13C13.2652 6 13.5196 6.10536 13.7071 6.29289C13.8946 6.48043 14 6.73478 14 7C14 7.26522 13.8946 7.51957 13.7071 7.70711C13.5196 7.89464 13.2652 8 13 8Z" })), h("span", { key: '1d1e9bf74826fc9d37a4acc922d2a915e92525a5' }, translate('addLimitType', this.language))), h("button", { key: '6db43aa725a93ed2bd675a33e286d72e49c85bdf', class: "save-limit", disabled: this.loading, onClick: () => this.handleSaveLimit() }, translate('savePlayerLimit', this.language))), this.showComplianceText && (h("div", { key: 'a92aca0919f40613fd12460a4d7c47ea53eac437', class: "compliance-content" }, h("p", { key: '4c72cb161df40c07fb3a5506e54e9f6296d6119d' }, translate('complianceText', this.language))))), this.confirmPopupVisibility ? (h("section", { class: "confirm-modal" }, h("div", { class: "confirm-modal-content" }, h("h2", { class: "confirm-modal-title" }, translate('limitNotificationTitle', this.language)), h("p", null, translate('confirmLimitNotification', this.language)), h("div", { class: "confirm-modal-buttons" }, h("button", { class: "confirm-limit-close", onClick: () => this.handleCloseConfirm() }, translate('confirmLimitClose', this.language)), h("button", { class: "confirm-limit-save", onClick: () => this.handleSaveSkip() }, translate('confirmLimitSave', this.language)))))) : null));
|
|
7496
7500
|
}
|
|
7497
7501
|
static get watchers() { return {
|
|
7498
7502
|
"clientStyling": ["handleClientStylingChange"],
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { P as player_limit_notification_nd } from './player-limit-notification-nd-
|
|
2
|
-
import './index-
|
|
1
|
+
export { P as player_limit_notification_nd } from './player-limit-notification-nd-3a25cfcd.js';
|
|
2
|
+
import './index-862a608b.js';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { p as promiseResolve, b as bootstrapLazy } from './index-
|
|
2
|
-
export { s as setNonce } from './index-
|
|
1
|
+
import { p as promiseResolve, b as bootstrapLazy } from './index-862a608b.js';
|
|
2
|
+
export { s as setNonce } from './index-862a608b.js';
|
|
3
3
|
import { g as globalScripts } from './app-globals-0f993ce5.js';
|
|
4
4
|
|
|
5
5
|
/*
|
|
@@ -16,5 +16,5 @@ var patchBrowser = () => {
|
|
|
16
16
|
|
|
17
17
|
patchBrowser().then(async (options) => {
|
|
18
18
|
await globalScripts();
|
|
19
|
-
return bootstrapLazy([["player-limit-notification-nd",[[1,"player-limit-notification-nd",{"mbSource":[513,"mb-source"],"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"session":[513],"userid":[513],"language":[513],"endpoint":[513],"limitsamount":[513],"limitsperiods":[513],"currency":[513],"customcurrencysymbols":[513],"translationurl":[513],"
|
|
19
|
+
return bootstrapLazy([["player-limit-notification-nd",[[1,"player-limit-notification-nd",{"mbSource":[513,"mb-source"],"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"session":[513],"userid":[513],"language":[513],"endpoint":[513],"limitsamount":[513],"limitsperiods":[513],"currency":[513],"customcurrencysymbols":[513],"translationurl":[513],"showComplianceText":[516,"show-compliance-text"],"limitItems":[32],"limitTypeOptions":[32],"skipLimit":[32],"loading":[32],"confirmPopupVisibility":[32]},null,{"clientStyling":["handleClientStylingChange"],"clientStylingUrl":["handleClientStylingUrlChange"],"mbSource":["handleMbSourceChange"]}]]]], options);
|
|
20
20
|
});
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
var e=Object.defineProperty,t=new WeakMap,n=e=>t.get(e),l=(e,n)=>t.set(n.t=e,n),o=(e,t)=>t in e,r=(e,t)=>(0,console.error)(e,t),s=new Map,i=new Map,c="slot-fb{display:contents}slot-fb[hidden]{display:none}",u="undefined"!=typeof window?window:{},a=u.document||{head:{}},f={l:0,o:"",jmp:e=>e(),raf:e=>requestAnimationFrame(e),ael:(e,t,n,l)=>e.addEventListener(t,n,l),rel:(e,t,n,l)=>e.removeEventListener(t,n,l),ce:(e,t)=>new CustomEvent(e,t)},h=e=>Promise.resolve(e),p=(()=>{try{return new CSSStyleSheet,"function"==typeof(new CSSStyleSheet).replaceSync}catch(e){}return!1})(),m=!1,d=[],y=[],v=(e,t)=>n=>{e.push(n),m||(m=!0,t&&4&f.l?b($):f.raf($))},w=e=>{for(let t=0;t<e.length;t++)try{e[t](performance.now())}catch(e){r(e)}e.length=0},$=()=>{w(d),w(y),(m=d.length>0)&&f.raf($)},b=e=>h().then(e),g=v(y,!0),S={},j=e=>"object"==(e=typeof e)||"function"===e;function k(e){var t,n,l;return null!=(l=null==(n=null==(t=e.head)?void 0:t.querySelector('meta[name="csp-nonce"]'))?void 0:n.getAttribute("content"))?l:void 0}((t,n)=>{for(var l in n)e(t,l,{get:n[l],enumerable:!0})})({},{err:()=>E,map:()=>C,ok:()=>O,unwrap:()=>P,unwrapErr:()=>L});var O=e=>({isOk:!0,isErr:!1,value:e}),E=e=>({isOk:!1,isErr:!0,value:e});function C(e,t){if(e.isOk){const n=t(e.value);return n instanceof Promise?n.then((e=>O(e))):O(n)}if(e.isErr)return E(e.value);throw"should never get here"}var M,x,P=e=>{if(e.isOk)return e.value;throw e.value},L=e=>{if(e.isErr)return e.value;throw e.value},R=(e,t,...n)=>{let l=null,o=null,r=!1,s=!1;const i=[],c=t=>{for(let n=0;n<t.length;n++)l=t[n],Array.isArray(l)?c(l):null!=l&&"boolean"!=typeof l&&((r="function"!=typeof e&&!j(l))&&(l+=""),r&&s?i[i.length-1].i+=l:i.push(r?T(null,l):l),s=r)};if(c(n),t){t.key&&(o=t.key);{const e=t.className||t.class;e&&(t.class="object"!=typeof e?e:Object.keys(e).filter((t=>e[t])).join(" "))}}if("function"==typeof e)return e(null===t?{}:t,i,F);const u=T(e,null);return u.u=t,i.length>0&&(u.h=i),u.p=o,u},T=(e,t)=>({l:0,m:e,i:t,v:null,h:null,u:null,p:null}),A={},F={forEach:(e,t)=>e.map(N).forEach(t),map:(e,t)=>e.map(N).map(t).map(U)},N=e=>({vattrs:e.u,vchildren:e.h,vkey:e.p,vname:e.$,vtag:e.m,vtext:e.i}),U=e=>{if("function"==typeof e.vtag){const t={...e.vattrs};return e.vkey&&(t.key=e.vkey),e.vname&&(t.name=e.vname),R(e.vtag,t,...e.vchildren||[])}const t=T(e.vtag,e.vtext);return t.u=e.vattrs,t.h=e.vchildren,t.p=e.vkey,t.$=e.vname,t},W=new WeakMap,D=e=>"sc-"+e.S,H=(e,t,n,l,r,s)=>{if(n!==l){let i=o(e,t),c=t.toLowerCase();if("class"===t){const t=e.classList,o=G(n),r=G(l);t.remove(...o.filter((e=>e&&!r.includes(e)))),t.add(...r.filter((e=>e&&!o.includes(e))))}else if("key"===t);else if("ref"===t)l&&l(e);else if(i||"o"!==t[0]||"n"!==t[1]){const o=j(l);if((i||o&&null!==l)&&!r)try{if(e.tagName.includes("-"))e[t]=l;else{const o=null==l?"":l;"list"===t?i=!1:null!=n&&e[t]==o||(e[t]=o)}}catch(e){}null==l||!1===l?!1===l&&""!==e.getAttribute(t)||e.removeAttribute(t):(!i||4&s||r)&&!o&&e.setAttribute(t,l=!0===l?"":l)}else if(t="-"===t[2]?t.slice(3):o(u,c)?c.slice(2):c[2]+t.slice(3),n||l){const o=t.endsWith(V);t=t.replace(_,""),n&&f.rel(e,t,n,o),l&&f.ael(e,t,l,o)}}},q=/\s/,G=e=>e?e.split(q):[],V="Capture",_=RegExp(V+"$"),z=(e,t,n)=>{const l=11===t.v.nodeType&&t.v.host?t.v.host:t.v,o=e&&e.u||S,r=t.u||S;for(const e of B(Object.keys(o)))e in r||H(l,e,o[e],void 0,n,t.l);for(const e of B(Object.keys(r)))H(l,e,o[e],r[e],n,t.l)};function B(e){return e.includes("ref")?[...e.filter((e=>"ref"!==e)),"ref"]:e}var I=!1,J=(e,t,n)=>{const l=t.h[n];let o,r,s=0;if(null!==l.i)o=l.v=a.createTextNode(l.i);else{if(I||(I="svg"===l.m),o=l.v=a.createElementNS(I?"http://www.w3.org/2000/svg":"http://www.w3.org/1999/xhtml",l.m),I&&"foreignObject"===l.m&&(I=!1),z(null,l,I),null!=M&&o["s-si"]!==M&&o.classList.add(o["s-si"]=M),l.h)for(s=0;s<l.h.length;++s)r=J(e,l,s),r&&o.appendChild(r);"svg"===l.m?I=!1:"foreignObject"===o.tagName&&(I=!0)}return o["s-hn"]=x,o},K=(e,t,n,l,o,r)=>{let s,i=e;for(i.shadowRoot&&i.tagName===x&&(i=i.shadowRoot);o<=r;++o)l[o]&&(s=J(null,n,o),s&&(l[o].v=s,ee(i,s,t)))},Q=(e,t,n)=>{for(let l=t;l<=n;++l){const t=e[l];if(t){const e=t.v;Z(t),e&&e.remove()}}},X=(e,t,n=!1)=>e.m===t.m&&(!!n||e.p===t.p),Y=(e,t,n=!1)=>{const l=t.v=e.v,o=e.h,r=t.h,s=t.m,i=t.i;null===i?(z(e,t,I="svg"===s||"foreignObject"!==s&&I),null!==o&&null!==r?((e,t,n,l,o=!1)=>{let r,s,i=0,c=0,u=0,a=0,f=t.length-1,h=t[0],p=t[f],m=l.length-1,d=l[0],y=l[m];for(;i<=f&&c<=m;)if(null==h)h=t[++i];else if(null==p)p=t[--f];else if(null==d)d=l[++c];else if(null==y)y=l[--m];else if(X(h,d,o))Y(h,d,o),h=t[++i],d=l[++c];else if(X(p,y,o))Y(p,y,o),p=t[--f],y=l[--m];else if(X(h,y,o))Y(h,y,o),ee(e,h.v,p.v.nextSibling),h=t[++i],y=l[--m];else if(X(p,d,o))Y(p,d,o),ee(e,p.v,h.v),p=t[--f],d=l[++c];else{for(u=-1,a=i;a<=f;++a)if(t[a]&&null!==t[a].p&&t[a].p===d.p){u=a;break}u>=0?(s=t[u],s.m!==d.m?r=J(t&&t[c],n,u):(Y(s,d,o),t[u]=void 0,r=s.v),d=l[++c]):(r=J(t&&t[c],n,c),d=l[++c]),r&&ee(h.v.parentNode,r,h.v)}i>f?K(e,null==l[m+1]?null:l[m+1].v,n,l,c,m):c>m&&Q(t,i,f)})(l,o,t,r,n):null!==r?(null!==e.i&&(l.textContent=""),K(l,null,t,r,0,r.length-1)):null!==o&&Q(o,0,o.length-1),I&&"svg"===s&&(I=!1)):e.i!==i&&(l.data=i)},Z=e=>{e.u&&e.u.ref&&e.u.ref(null),e.h&&e.h.map(Z)},ee=(e,t,n)=>null==e?void 0:e.insertBefore(t,n),te=(e,t)=>{t&&!e.j&&t["s-p"]&&t["s-p"].push(new Promise((t=>e.j=t)))},ne=(e,t)=>{if(e.l|=16,!(4&e.l))return te(e,e.k),g((()=>le(e,t)));e.l|=512},le=(e,t)=>{const n=e.t;if(!n)throw Error(`Can't render component <${e.$hostElement$.tagName.toLowerCase()} /> with invalid Stencil runtime! Make sure this imported component is compiled with a \`externalRuntime: true\` flag. For more information, please refer to https://stenciljs.com/docs/custom-elements#externalruntime`);let l;return t&&(l=ae(n,"componentWillLoad")),oe(l,(()=>se(e,n,t)))},oe=(e,t)=>re(e)?e.then(t).catch((e=>{console.error(e),t()})):t(),re=e=>e instanceof Promise||e&&e.then&&"function"==typeof e.then,se=async(e,t,n)=>{var l;const o=e.$hostElement$,r=o["s-rc"];n&&(e=>{const t=e.O,n=e.$hostElement$,l=t.l,o=((e,t)=>{var n;const l=D(t),o=i.get(l);if(e=11===e.nodeType?e:a,o)if("string"==typeof o){let r,s=W.get(e=e.head||e);if(s||W.set(e,s=new Set),!s.has(l)){{r=a.createElement("style"),r.innerHTML=o;const t=null!=(n=f.C)?n:k(a);null!=t&&r.setAttribute("nonce",t),e.insertBefore(r,e.querySelector("link"))}4&t.l&&(r.innerHTML+=c),s&&s.add(l)}}else e.adoptedStyleSheets.includes(o)||(e.adoptedStyleSheets=[...e.adoptedStyleSheets,o]);return l})(n.shadowRoot?n.shadowRoot:n.getRootNode(),t);10&l&&(n["s-sc"]=o,n.classList.add(o+"-h"))})(e);ie(e,t,o,n),r&&(r.map((e=>e())),o["s-rc"]=void 0);{const t=null!=(l=o["s-p"])?l:[],n=()=>ce(e);0===t.length?n():(Promise.all(t).then(n),e.l|=4,t.length=0)}},ie=(e,t,n,l)=>{try{t=t.render(),e.l&=-17,e.l|=2,((e,t,n=!1)=>{const l=e.$hostElement$,o=e.O,r=e.M||T(null,null),s=(e=>e&&e.m===A)(t)?t:R(null,null,t);if(x=l.tagName,o.P&&(s.u=s.u||{},o.P.map((([e,t])=>s.u[t]=l[e]))),n&&s.u)for(const e of Object.keys(s.u))l.hasAttribute(e)&&!["key","ref","style","class"].includes(e)&&(s.u[e]=l[e]);s.m=null,s.l|=4,e.M=s,s.v=r.v=l.shadowRoot||l,M=l["s-sc"],Y(r,s,n)})(e,t,l)}catch(t){r(t,e.$hostElement$)}return null},ce=e=>{const t=e.$hostElement$,n=e.t,l=e.k;64&e.l||(e.l|=64,fe(t),ae(n,"componentDidLoad"),e.L(t),l||ue()),e.j&&(e.j(),e.j=void 0),512&e.l&&b((()=>ne(e,!1))),e.l&=-517},ue=()=>{fe(a.documentElement),b((()=>(e=>{const t=f.ce("appload",{detail:{namespace:"player-limit-notification-nd"}});return e.dispatchEvent(t),t})(u)))},ae=(e,t,n)=>{if(e&&e[t])try{return e[t](n)}catch(e){r(e)}},fe=e=>e.classList.add("hydrated"),he=(e,t,l)=>{var o,s;const i=e.prototype;if(t.R||t.T||e.watchers){e.watchers&&!t.T&&(t.T=e.watchers);const c=Object.entries(null!=(o=t.R)?o:{});if(c.map((([e,[o]])=>{(31&o||2&l&&32&o)&&Object.defineProperty(i,e,{get(){return((e,t)=>n(this).A.get(t))(0,e)},set(l){((e,t,l,o)=>{const s=n(e);if(!s)throw Error(`Couldn't find host element for "${o.S}" as it is unknown to this Stencil runtime. This usually happens when integrating a 3rd party Stencil component with another Stencil component or application. Please reach out to the maintainers of the 3rd party Stencil component or report this on the Stencil Discord server (https://chat.stenciljs.com) or comment on this similar [GitHub issue](https://github.com/ionic-team/stencil/issues/5457).`);const i=s.$hostElement$,c=s.A.get(t),u=s.l,a=s.t;if(l=((e,t)=>null==e||j(e)?e:1&t?e+"":e)(l,o.R[t][0]),(!(8&u)||void 0===c)&&l!==c&&(!Number.isNaN(c)||!Number.isNaN(l))&&(s.A.set(t,l),a)){if(o.T&&128&u){const e=o.T[t];e&&e.map((e=>{try{a[e](l,c,t)}catch(e){r(e,i)}}))}2==(18&u)&&ne(s,!1)}})(this,e,l,t)},configurable:!0,enumerable:!0})})),1&l){const l=new Map;i.attributeChangedCallback=function(e,o,r){f.jmp((()=>{var s;const c=l.get(e);if(this.hasOwnProperty(c))r=this[c],delete this[c];else{if(i.hasOwnProperty(c)&&"number"==typeof this[c]&&this[c]==r)return;if(null==c){const l=n(this),i=null==l?void 0:l.l;if(i&&!(8&i)&&128&i&&r!==o){const n=l.t,i=null==(s=t.T)?void 0:s[e];null==i||i.forEach((t=>{null!=n[t]&&n[t].call(n,r,o,e)}))}return}}this[c]=(null!==r||"boolean"!=typeof this[c])&&r}))},e.observedAttributes=Array.from(new Set([...Object.keys(null!=(s=t.T)?s:{}),...c.filter((([e,t])=>15&t[0])).map((([e,n])=>{var o;const r=n[1]||e;return l.set(r,e),512&n[0]&&(null==(o=t.P)||o.push([e,r])),r}))]))}}return e},pe=e=>{ae(e,"disconnectedCallback")},me=(e,l={})=>{var o;const h=[],m=l.exclude||[],d=u.customElements,y=a.head,v=y.querySelector("meta[charset]"),w=a.createElement("style"),$=[];let b,g=!0;Object.assign(f,l),f.o=new URL(l.resourcesUrl||"./",a.baseURI).href;let S=!1;if(e.map((e=>{e[1].map((l=>{var o;const c={l:l[0],S:l[1],R:l[2],F:l[3]};4&c.l&&(S=!0),c.R=l[2],c.P=[],c.T=null!=(o=l[4])?o:{};const u=c.S,a=class extends HTMLElement{constructor(e){if(super(e),this.hasRegisteredEventListeners=!1,((e,n)=>{const l={l:0,$hostElement$:e,O:n,A:new Map};l.N=new Promise((e=>l.L=e)),e["s-p"]=[],e["s-rc"]=[],t.set(e,l)})(e=this,c),1&c.l)if(e.shadowRoot){if("open"!==e.shadowRoot.mode)throw Error(`Unable to re-use existing shadow root for ${c.S}! Mode is set to ${e.shadowRoot.mode} but Stencil only supports open shadow roots.`)}else e.attachShadow({mode:"open"})}connectedCallback(){this.hasRegisteredEventListeners||(this.hasRegisteredEventListeners=!0),b&&(clearTimeout(b),b=null),g?$.push(this):f.jmp((()=>(e=>{if(!(1&f.l)){const t=n(e),l=t.O,o=()=>{};if(1&t.l)(null==t?void 0:t.t)||(null==t?void 0:t.N)&&t.N.then((()=>{}));else{t.l|=1;{let n=e;for(;n=n.parentNode||n.host;)if(n["s-p"]){te(t,t.k=n);break}}l.R&&Object.entries(l.R).map((([t,[n]])=>{if(31&n&&e.hasOwnProperty(t)){const n=e[t];delete e[t],e[t]=n}})),(async(e,t,n)=>{let l;if(!(32&t.l)){if(t.l|=32,n.U){const e=(e=>{const t=e.S.replace(/-/g,"_"),n=e.U;if(!n)return;const l=s.get(n);return l?l[t]:import(`./${n}.entry.js`).then((e=>(s.set(n,e),e[t])),r)
|
|
1
|
+
var e=Object.defineProperty,t=new WeakMap,n=e=>t.get(e),l=(e,n)=>t.set(n.t=e,n),o=(e,t)=>t in e,r=(e,t)=>(0,console.error)(e,t),s=new Map,i=new Map,c="slot-fb{display:contents}slot-fb[hidden]{display:none}",u="undefined"!=typeof window?window:{},a=u.document||{head:{}},f={l:0,o:"",jmp:e=>e(),raf:e=>requestAnimationFrame(e),ael:(e,t,n,l)=>e.addEventListener(t,n,l),rel:(e,t,n,l)=>e.removeEventListener(t,n,l),ce:(e,t)=>new CustomEvent(e,t)},h=e=>Promise.resolve(e),p=(()=>{try{return new CSSStyleSheet,"function"==typeof(new CSSStyleSheet).replaceSync}catch(e){}return!1})(),m=!1,d=[],y=[],v=(e,t)=>n=>{e.push(n),m||(m=!0,t&&4&f.l?b($):f.raf($))},w=e=>{for(let t=0;t<e.length;t++)try{e[t](performance.now())}catch(e){r(e)}e.length=0},$=()=>{w(d),w(y),(m=d.length>0)&&f.raf($)},b=e=>h().then(e),g=v(y,!0),S={},j=e=>"object"==(e=typeof e)||"function"===e;function k(e){var t,n,l;return null!=(l=null==(n=null==(t=e.head)?void 0:t.querySelector('meta[name="csp-nonce"]'))?void 0:n.getAttribute("content"))?l:void 0}((t,n)=>{for(var l in n)e(t,l,{get:n[l],enumerable:!0})})({},{err:()=>E,map:()=>C,ok:()=>O,unwrap:()=>P,unwrapErr:()=>L});var O=e=>({isOk:!0,isErr:!1,value:e}),E=e=>({isOk:!1,isErr:!0,value:e});function C(e,t){if(e.isOk){const n=t(e.value);return n instanceof Promise?n.then((e=>O(e))):O(n)}if(e.isErr)return E(e.value);throw"should never get here"}var M,x,P=e=>{if(e.isOk)return e.value;throw e.value},L=e=>{if(e.isErr)return e.value;throw e.value},R=(e,t,...n)=>{let l=null,o=null,r=!1,s=!1;const i=[],c=t=>{for(let n=0;n<t.length;n++)l=t[n],Array.isArray(l)?c(l):null!=l&&"boolean"!=typeof l&&((r="function"!=typeof e&&!j(l))&&(l+=""),r&&s?i[i.length-1].i+=l:i.push(r?T(null,l):l),s=r)};if(c(n),t){t.key&&(o=t.key);{const e=t.className||t.class;e&&(t.class="object"!=typeof e?e:Object.keys(e).filter((t=>e[t])).join(" "))}}if("function"==typeof e)return e(null===t?{}:t,i,F);const u=T(e,null);return u.u=t,i.length>0&&(u.h=i),u.p=o,u},T=(e,t)=>({l:0,m:e,i:t,v:null,h:null,u:null,p:null}),A={},F={forEach:(e,t)=>e.map(N).forEach(t),map:(e,t)=>e.map(N).map(t).map(U)},N=e=>({vattrs:e.u,vchildren:e.h,vkey:e.p,vname:e.$,vtag:e.m,vtext:e.i}),U=e=>{if("function"==typeof e.vtag){const t={...e.vattrs};return e.vkey&&(t.key=e.vkey),e.vname&&(t.name=e.vname),R(e.vtag,t,...e.vchildren||[])}const t=T(e.vtag,e.vtext);return t.u=e.vattrs,t.h=e.vchildren,t.p=e.vkey,t.$=e.vname,t},W=new WeakMap,D=e=>"sc-"+e.S,H=(e,t,n,l,r,s)=>{if(n!==l){let i=o(e,t),c=t.toLowerCase();if("class"===t){const t=e.classList,o=G(n),r=G(l);t.remove(...o.filter((e=>e&&!r.includes(e)))),t.add(...r.filter((e=>e&&!o.includes(e))))}else if("key"===t);else if("ref"===t)l&&l(e);else if(i||"o"!==t[0]||"n"!==t[1]){const o=j(l);if((i||o&&null!==l)&&!r)try{if(e.tagName.includes("-"))e[t]=l;else{const o=null==l?"":l;"list"===t?i=!1:null!=n&&e[t]==o||(e[t]=o)}}catch(e){}null==l||!1===l?!1===l&&""!==e.getAttribute(t)||e.removeAttribute(t):(!i||4&s||r)&&!o&&e.setAttribute(t,l=!0===l?"":l)}else if(t="-"===t[2]?t.slice(3):o(u,c)?c.slice(2):c[2]+t.slice(3),n||l){const o=t.endsWith(V);t=t.replace(_,""),n&&f.rel(e,t,n,o),l&&f.ael(e,t,l,o)}}},q=/\s/,G=e=>e?e.split(q):[],V="Capture",_=RegExp(V+"$"),z=(e,t,n)=>{const l=11===t.v.nodeType&&t.v.host?t.v.host:t.v,o=e&&e.u||S,r=t.u||S;for(const e of B(Object.keys(o)))e in r||H(l,e,o[e],void 0,n,t.l);for(const e of B(Object.keys(r)))H(l,e,o[e],r[e],n,t.l)};function B(e){return e.includes("ref")?[...e.filter((e=>"ref"!==e)),"ref"]:e}var I=!1,J=(e,t,n)=>{const l=t.h[n];let o,r,s=0;if(null!==l.i)o=l.v=a.createTextNode(l.i);else{if(I||(I="svg"===l.m),o=l.v=a.createElementNS(I?"http://www.w3.org/2000/svg":"http://www.w3.org/1999/xhtml",l.m),I&&"foreignObject"===l.m&&(I=!1),z(null,l,I),null!=M&&o["s-si"]!==M&&o.classList.add(o["s-si"]=M),l.h)for(s=0;s<l.h.length;++s)r=J(e,l,s),r&&o.appendChild(r);"svg"===l.m?I=!1:"foreignObject"===o.tagName&&(I=!0)}return o["s-hn"]=x,o},K=(e,t,n,l,o,r)=>{let s,i=e;for(i.shadowRoot&&i.tagName===x&&(i=i.shadowRoot);o<=r;++o)l[o]&&(s=J(null,n,o),s&&(l[o].v=s,ee(i,s,t)))},Q=(e,t,n)=>{for(let l=t;l<=n;++l){const t=e[l];if(t){const e=t.v;Z(t),e&&e.remove()}}},X=(e,t,n=!1)=>e.m===t.m&&(!!n||e.p===t.p),Y=(e,t,n=!1)=>{const l=t.v=e.v,o=e.h,r=t.h,s=t.m,i=t.i;null===i?(z(e,t,I="svg"===s||"foreignObject"!==s&&I),null!==o&&null!==r?((e,t,n,l,o=!1)=>{let r,s,i=0,c=0,u=0,a=0,f=t.length-1,h=t[0],p=t[f],m=l.length-1,d=l[0],y=l[m];for(;i<=f&&c<=m;)if(null==h)h=t[++i];else if(null==p)p=t[--f];else if(null==d)d=l[++c];else if(null==y)y=l[--m];else if(X(h,d,o))Y(h,d,o),h=t[++i],d=l[++c];else if(X(p,y,o))Y(p,y,o),p=t[--f],y=l[--m];else if(X(h,y,o))Y(h,y,o),ee(e,h.v,p.v.nextSibling),h=t[++i],y=l[--m];else if(X(p,d,o))Y(p,d,o),ee(e,p.v,h.v),p=t[--f],d=l[++c];else{for(u=-1,a=i;a<=f;++a)if(t[a]&&null!==t[a].p&&t[a].p===d.p){u=a;break}u>=0?(s=t[u],s.m!==d.m?r=J(t&&t[c],n,u):(Y(s,d,o),t[u]=void 0,r=s.v),d=l[++c]):(r=J(t&&t[c],n,c),d=l[++c]),r&&ee(h.v.parentNode,r,h.v)}i>f?K(e,null==l[m+1]?null:l[m+1].v,n,l,c,m):c>m&&Q(t,i,f)})(l,o,t,r,n):null!==r?(null!==e.i&&(l.textContent=""),K(l,null,t,r,0,r.length-1)):null!==o&&Q(o,0,o.length-1),I&&"svg"===s&&(I=!1)):e.i!==i&&(l.data=i)},Z=e=>{e.u&&e.u.ref&&e.u.ref(null),e.h&&e.h.map(Z)},ee=(e,t,n)=>null==e?void 0:e.insertBefore(t,n),te=(e,t)=>{t&&!e.j&&t["s-p"]&&t["s-p"].push(new Promise((t=>e.j=t)))},ne=(e,t)=>{if(e.l|=16,!(4&e.l))return te(e,e.k),g((()=>le(e,t)));e.l|=512},le=(e,t)=>{const n=e.t;if(!n)throw Error(`Can't render component <${e.$hostElement$.tagName.toLowerCase()} /> with invalid Stencil runtime! Make sure this imported component is compiled with a \`externalRuntime: true\` flag. For more information, please refer to https://stenciljs.com/docs/custom-elements#externalruntime`);let l;return t&&(l=ae(n,"componentWillLoad")),oe(l,(()=>se(e,n,t)))},oe=(e,t)=>re(e)?e.then(t).catch((e=>{console.error(e),t()})):t(),re=e=>e instanceof Promise||e&&e.then&&"function"==typeof e.then,se=async(e,t,n)=>{var l;const o=e.$hostElement$,r=o["s-rc"];n&&(e=>{const t=e.O,n=e.$hostElement$,l=t.l,o=((e,t)=>{var n;const l=D(t),o=i.get(l);if(e=11===e.nodeType?e:a,o)if("string"==typeof o){let r,s=W.get(e=e.head||e);if(s||W.set(e,s=new Set),!s.has(l)){{r=a.createElement("style"),r.innerHTML=o;const t=null!=(n=f.C)?n:k(a);null!=t&&r.setAttribute("nonce",t),e.insertBefore(r,e.querySelector("link"))}4&t.l&&(r.innerHTML+=c),s&&s.add(l)}}else e.adoptedStyleSheets.includes(o)||(e.adoptedStyleSheets=[...e.adoptedStyleSheets,o]);return l})(n.shadowRoot?n.shadowRoot:n.getRootNode(),t);10&l&&(n["s-sc"]=o,n.classList.add(o+"-h"))})(e);ie(e,t,o,n),r&&(r.map((e=>e())),o["s-rc"]=void 0);{const t=null!=(l=o["s-p"])?l:[],n=()=>ce(e);0===t.length?n():(Promise.all(t).then(n),e.l|=4,t.length=0)}},ie=(e,t,n,l)=>{try{t=t.render(),e.l&=-17,e.l|=2,((e,t,n=!1)=>{const l=e.$hostElement$,o=e.O,r=e.M||T(null,null),s=(e=>e&&e.m===A)(t)?t:R(null,null,t);if(x=l.tagName,o.P&&(s.u=s.u||{},o.P.map((([e,t])=>s.u[t]=l[e]))),n&&s.u)for(const e of Object.keys(s.u))l.hasAttribute(e)&&!["key","ref","style","class"].includes(e)&&(s.u[e]=l[e]);s.m=null,s.l|=4,e.M=s,s.v=r.v=l.shadowRoot||l,M=l["s-sc"],Y(r,s,n)})(e,t,l)}catch(t){r(t,e.$hostElement$)}return null},ce=e=>{const t=e.$hostElement$,n=e.t,l=e.k;64&e.l||(e.l|=64,fe(t),ae(n,"componentDidLoad"),e.L(t),l||ue()),e.j&&(e.j(),e.j=void 0),512&e.l&&b((()=>ne(e,!1))),e.l&=-517},ue=()=>{fe(a.documentElement),b((()=>(e=>{const t=f.ce("appload",{detail:{namespace:"player-limit-notification-nd"}});return e.dispatchEvent(t),t})(u)))},ae=(e,t,n)=>{if(e&&e[t])try{return e[t](n)}catch(e){r(e)}},fe=e=>e.classList.add("hydrated"),he=(e,t,l)=>{var o,s;const i=e.prototype;if(t.R||t.T||e.watchers){e.watchers&&!t.T&&(t.T=e.watchers);const c=Object.entries(null!=(o=t.R)?o:{});if(c.map((([e,[o]])=>{(31&o||2&l&&32&o)&&Object.defineProperty(i,e,{get(){return((e,t)=>n(this).A.get(t))(0,e)},set(l){((e,t,l,o)=>{const s=n(e);if(!s)throw Error(`Couldn't find host element for "${o.S}" as it is unknown to this Stencil runtime. This usually happens when integrating a 3rd party Stencil component with another Stencil component or application. Please reach out to the maintainers of the 3rd party Stencil component or report this on the Stencil Discord server (https://chat.stenciljs.com) or comment on this similar [GitHub issue](https://github.com/ionic-team/stencil/issues/5457).`);const i=s.$hostElement$,c=s.A.get(t),u=s.l,a=s.t;if(l=((e,t)=>null==e||j(e)?e:4&t?"false"!==e&&(""===e||!!e):1&t?e+"":e)(l,o.R[t][0]),(!(8&u)||void 0===c)&&l!==c&&(!Number.isNaN(c)||!Number.isNaN(l))&&(s.A.set(t,l),a)){if(o.T&&128&u){const e=o.T[t];e&&e.map((e=>{try{a[e](l,c,t)}catch(e){r(e,i)}}))}2==(18&u)&&ne(s,!1)}})(this,e,l,t)},configurable:!0,enumerable:!0})})),1&l){const l=new Map;i.attributeChangedCallback=function(e,o,r){f.jmp((()=>{var s;const c=l.get(e);if(this.hasOwnProperty(c))r=this[c],delete this[c];else{if(i.hasOwnProperty(c)&&"number"==typeof this[c]&&this[c]==r)return;if(null==c){const l=n(this),i=null==l?void 0:l.l;if(i&&!(8&i)&&128&i&&r!==o){const n=l.t,i=null==(s=t.T)?void 0:s[e];null==i||i.forEach((t=>{null!=n[t]&&n[t].call(n,r,o,e)}))}return}}this[c]=(null!==r||"boolean"!=typeof this[c])&&r}))},e.observedAttributes=Array.from(new Set([...Object.keys(null!=(s=t.T)?s:{}),...c.filter((([e,t])=>15&t[0])).map((([e,n])=>{var o;const r=n[1]||e;return l.set(r,e),512&n[0]&&(null==(o=t.P)||o.push([e,r])),r}))]))}}return e},pe=e=>{ae(e,"disconnectedCallback")},me=(e,l={})=>{var o;const h=[],m=l.exclude||[],d=u.customElements,y=a.head,v=y.querySelector("meta[charset]"),w=a.createElement("style"),$=[];let b,g=!0;Object.assign(f,l),f.o=new URL(l.resourcesUrl||"./",a.baseURI).href;let S=!1;if(e.map((e=>{e[1].map((l=>{var o;const c={l:l[0],S:l[1],R:l[2],F:l[3]};4&c.l&&(S=!0),c.R=l[2],c.P=[],c.T=null!=(o=l[4])?o:{};const u=c.S,a=class extends HTMLElement{constructor(e){if(super(e),this.hasRegisteredEventListeners=!1,((e,n)=>{const l={l:0,$hostElement$:e,O:n,A:new Map};l.N=new Promise((e=>l.L=e)),e["s-p"]=[],e["s-rc"]=[],t.set(e,l)})(e=this,c),1&c.l)if(e.shadowRoot){if("open"!==e.shadowRoot.mode)throw Error(`Unable to re-use existing shadow root for ${c.S}! Mode is set to ${e.shadowRoot.mode} but Stencil only supports open shadow roots.`)}else e.attachShadow({mode:"open"})}connectedCallback(){this.hasRegisteredEventListeners||(this.hasRegisteredEventListeners=!0),b&&(clearTimeout(b),b=null),g?$.push(this):f.jmp((()=>(e=>{if(!(1&f.l)){const t=n(e),l=t.O,o=()=>{};if(1&t.l)(null==t?void 0:t.t)||(null==t?void 0:t.N)&&t.N.then((()=>{}));else{t.l|=1;{let n=e;for(;n=n.parentNode||n.host;)if(n["s-p"]){te(t,t.k=n);break}}l.R&&Object.entries(l.R).map((([t,[n]])=>{if(31&n&&e.hasOwnProperty(t)){const n=e[t];delete e[t],e[t]=n}})),(async(e,t,n)=>{let l;if(!(32&t.l)){if(t.l|=32,n.U){const e=(e=>{const t=e.S.replace(/-/g,"_"),n=e.U;if(!n)return;const l=s.get(n);return l?l[t]:import(`./${n}.entry.js`).then((e=>(s.set(n,e),e[t])),r)
|
|
2
2
|
/*!__STENCIL_STATIC_IMPORT_SWITCH__*/})(n);if(e&&"then"in e){const t=()=>{};l=await e,t()}else l=e;if(!l)throw Error(`Constructor for "${n.S}#${t.W}" was not found`);l.isProxied||(n.T=l.watchers,he(l,n,2),l.isProxied=!0);const o=()=>{};t.l|=8;try{new l(t)}catch(e){r(e)}t.l&=-9,t.l|=128,o()}else l=e.constructor,customElements.whenDefined(e.localName).then((()=>t.l|=128));if(l&&l.style){let e;"string"==typeof l.style&&(e=l.style);const t=D(n);if(!i.has(t)){const l=()=>{};((e,t,n)=>{let l=i.get(e);p&&n?(l=l||new CSSStyleSheet,"string"==typeof l?l=t:l.replaceSync(t)):l=t,i.set(e,l)})(t,e,!!(1&n.l)),l()}}}const o=t.k,c=()=>ne(t,!0);o&&o["s-rc"]?o["s-rc"].push(c):c()})(e,t,l)}o()}})(this)))}disconnectedCallback(){f.jmp((()=>(async()=>{if(!(1&f.l)){const e=n(this);(null==e?void 0:e.t)?pe(e.t):(null==e?void 0:e.N)&&e.N.then((()=>pe(e.t)))}})()))}componentOnReady(){return n(this).N}};c.U=e[0],m.includes(u)||d.get(u)||(h.push(u),d.define(u,he(a,c,1)))}))})),h.length>0&&(S&&(w.textContent+=c),w.textContent+=h.sort()+"{visibility:hidden}.hydrated{visibility:inherit}",w.innerHTML.length)){w.setAttribute("data-styles","");const e=null!=(o=f.C)?o:k(a);null!=e&&w.setAttribute("nonce",e),y.insertBefore(w,v?v.nextSibling:y.firstChild)}g=!1,$.length?$.map((e=>e.connectedCallback())):f.jmp((()=>b=setTimeout(ue,30)))},de=(e,t)=>t,ye=e=>f.C=e;export{de as F,me as b,R as h,h as p,l as r,ye as s}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{P as PlayerLimitNotificationNd}from"./player-limit-notification-nd-
|
|
1
|
+
export{P as PlayerLimitNotificationNd}from"./player-limit-notification-nd-3a25cfcd.js";import"./index-862a608b.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{r as t,h as e,F as i}from"./index-
|
|
1
|
+
import{r as t,h as e,F as i}from"./index-862a608b.js";let s={en:{selectLimitTypePlaceholder:"Select your limit type",selectLimitTypeLabel:"Limit type",selectLimitPeriodLabel:"Period",limitNotificationAmountLabel:"Amount",limitNotificationTitle:"Set Limit",limitNotificationSubTitle:"Now is the perfect moment to set your limits",daily:"daily",weekly:"weekly",monthly:"monthly",invalidInputMessageLimitMin:"The value entered must be higher than {minValue} {currency}.",invalidInputMessageLimitMax:"The value entered must be less than {maxValue} {currency}.",emptyPeriodWarning:"Period is required",emptyLimitTypeWarning:"Limit Type is required",invalidAmount:"invalid limit amount",savePlayerLimit:"Save",addLimitType:"Add another limit",skipLimitLimitDescription:"I do not wish to set a limit at this time.",setLimitSuccessful:"Your account limit has been successfully set.",partialFailedUpdateLimit:"Some of your limits were successfully saved, but a few couldn’t be updated. Please review your current limits <a href='{accountLimitPath}'>here</a> and try again.",limitNotificationFail:"Something went wrong while setting your account limits. Try again later.",confirmLimitNotification:"Are you sure you want to delete the limits you’ve already set?",confirmLimitClose:"No, keep limits",confirmLimitSave:"Yes, delete limits",complianceText:"Financial limits take effect immediately once set up for the first time."},fr:{selectLimitTypePlaceholder:"Sélectionnez votre type de limite",selectLimitTypeLabel:"Type de limite",selectLimitPeriodLabel:"Période",limitNotificationAmountLabel:"Montant",limitNotificationTitle:"Définir une limite",limitNotificationSubTitle:"C'est le moment idéal pour définir vos limites",daily:"quotidienne",weekly:"hebdomadaire",monthly:"mensuelle",invalidInputMessageLimitMin:"La valeur saisie doit être supérieure à {minValue} {currency}.",invalidInputMessageLimitMax:"La valeur saisie doit être inférieure à {maxValue} {currency}.",emptyPeriodWarning:"La période est obligatoire",emptyLimitTypeWarning:"Le type de limite est obligatoire",invalidAmount:"montant de limite invalide",savePlayerLimit:"Enregistrer",addLimitType:"Ajouter une autre limite",skipLimitLimitDescription:"Je ne souhaite pas définir de limite pour le moment.",setLimitSuccessful:"La limite de votre compte a été définie avec succès.",partialFailedUpdateLimit:"Certaines de vos limites ont été enregistrées avec succès, mais quelques-unes n'ont pas pu être mises à jour. Veuillez vérifier vos limites actuelles <a href='{accountLimitPath}'>ici</a> et réessayer.",limitNotificationFail:"Quelque chose s'est mal passé lors de la définition des limites de votre compte. Veuillez réessayer plus tard.",confirmLimitNotification:"Êtes-vous sûr de vouloir supprimer les limites que vous avez déjà définies ?",confirmLimitClose:"Non, garder les limites",confirmLimitSave:"Oui, supprimer les limites",complianceText:"Les plafonds financiers prennent effet immédiatement dès leur première configuration."},ro:{selectLimitTypePlaceholder:"Selectați tipul de limită",selectLimitTypeLabel:"Tip limită",selectLimitPeriodLabel:"Perioadă",limitNotificationAmountLabel:"Sumă",limitNotificationTitle:"Setați Limita",limitNotificationSubTitle:"Acum este momentul perfect pentru a vă seta limitele",daily:"zilnic",weekly:"săptămânal",monthly:"lunar",invalidInputMessageLimitMin:"Valoarea introdusă trebuie să fie mai mare de {minValue} {currency}.",invalidInputMessageLimitMax:"Valoarea introdusă trebuie să fie mai mică de {maxValue} {currency}.",emptyPeriodWarning:"Perioada este obligatorie",emptyLimitTypeWarning:"Tipul de limită este obligatoriu",invalidAmount:"sumă limită invalidă",savePlayerLimit:"Salvați",addLimitType:"Adăugați altă limită",skipLimitLimitDescription:"Nu doresc să setez o limită în acest moment.",setLimitSuccessful:"Limita contului dvs. a fost setată cu succes.",partialFailedUpdateLimit:"Unele dintre limitele dvs. au fost salvate cu succes, dar câteva nu au putut fi actualizate. Vă rugăm să vă verificați limitele actuale <a href='{accountLimitPath}'>aici</a> și să încercați din nou.",limitNotificationFail:"Ceva nu a funcționat corect la setarea limitelor contului dvs. Încercați din nou mai târziu.",confirmLimitNotification:"Sigur doriți să ștergeți limitele pe care le-ați setat deja?",confirmLimitClose:"Nu, păstrați limitele",confirmLimitSave:"Da, ștergeți limitele",complianceText:"Limitele financiare intră în vigoare imediat după ce sunt configurate pentru prima dată."},hu:{selectLimitTypePlaceholder:"Válassza ki a limit típusát",selectLimitTypeLabel:"Limit típusa",selectLimitPeriodLabel:"Időszak",limitNotificationAmountLabel:"Összeg",limitNotificationTitle:"Limit beállítása",limitNotificationSubTitle:"Most van a legjobb alkalom a limitjeinek beállításához",daily:"napi",weekly:"heti",monthly:"havi",invalidInputMessageLimitMin:"A megadott értéknek nagyobbnak kell lennie, mint {minValue} {currency}.",invalidInputMessageLimitMax:"A megadott értéknek kisebbnek kell lennie, mint {maxValue} {currency}.",emptyPeriodWarning:"Az időszak megadása kötelező",emptyLimitTypeWarning:"A limit típusának megadása kötelező",invalidAmount:"érvénytelen limit összeg",savePlayerLimit:"Mentés",addLimitType:"Másik limit hozzáadása",skipLimitLimitDescription:"Jelenleg nem kívánok limitet beállítani.",setLimitSuccessful:"A fiók limitje sikeresen beállítva.",partialFailedUpdateLimit:"Néhány limitje sikeresen elmentve, de néhányat nem sikerült frissíteni. Kérjük, ellenőrizze jelenlegi limitjeit <a href='{accountLimitPath}'>itt</a>, és próbálja újra.",limitNotificationFail:"Hiba történt a fiók limitjeinek beállítása közben. Próbálja újra később.",confirmLimitNotification:"Biztosan törölni szeretné a már beállított limitjeit?",confirmLimitClose:"Nem, megtartom a limiteket",confirmLimitSave:"Igen, törlöm a limiteket",complianceText:"A pénzügyi limitek az első beállítást követően azonnal érvénybe lépnek."}};const o=(t,e,i)=>{let o=s[void 0!==e&&e in s?e:"en"][t];if(void 0!==i)for(const[t,e]of Object.entries(i.values)){const i=new RegExp(`{${t}}`,"g");o=o.replace(i,e)}return o};function r(t,e){if(t){const i=document.createElement("style");i.innerHTML=e,t.appendChild(i)}}function a(t,e){if(!t||!e)return;const i=new URL(e);fetch(i.href).then((t=>t.text())).then((e=>{const i=document.createElement("style");i.innerHTML=e,t&&t.appendChild(i)})).catch((t=>{console.error("There was an error while trying to load client styling from URL",t)}))}function n(t,e){if(window.emMessageBus){const i=document.createElement("style");window.emMessageBus.subscribe(e,(e=>{i.innerHTML=e,t&&t.appendChild(i)}))}}var l,h;!function(t){t.WAGER="wager",t.DEPOSIT="deposit",t.LOSS="loss",t.NET="net",t.LUGAS="lugas",t.STAKE="stake",t.SESSION_LIMIT="sessionLimit",t.CUMULATIVE_SESSION="cumulativeSession",t.NET_DEPOSIT="netdeposit"}(l||(l={})),function(t){t.DAILY="daily",t.WEEKLY="weekly",t.MONTHLY="monthly",t.NONE="none"}(h||(h={}));const c={lugas:{title:"Deposit Limit",value:"lugas",callValue:"lugasLimit",callValue16:"Lugas"},deposit:{title:"Deposit Limit",value:"deposit",callValue:"depositLimits",callValue16:"Deposit"},loss:{title:"Loss Limit",value:"loss",callValue:"lossLimits",callValue16:"Loss"},wager:{title:"Wager Limit",value:"wager",callValue:"wageringLimits",callValue16:"Wagering"},stake:{title:"Stake Limit",value:"stake",callValue:"maxStake",callValue16:"MaxStake"},sessionLimit:{title:"Single Session Time Limit",value:"sessionLimit",callValue:"sessionLimits",callValue16:"sessionLimit"},cumulativeSession:{title:"Cumulative Session Time Limit",value:"cumulativeSession",callValue:"cumulativeSessionLimits",callValue16:"cumulativeSession"},netdeposit:{title:"Net Deposit Limit",value:"netdeposit",callValue:"netDepositLimits",callValue16:"NetDeposit"}};var d=Object.defineProperty,u=Object.defineProperties,p=Object.getOwnPropertyDescriptors,m=Object.getOwnPropertySymbols,v=Object.prototype.hasOwnProperty,f=Object.prototype.propertyIsEnumerable,b=(t,e,i)=>e in t?d(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i,g=(t,e)=>{for(var i in e||(e={}))v.call(e,i)&&b(t,i,e[i]);if(m)for(var i of m(e))f.call(e,i)&&b(t,i,e[i]);return t},y=(t,e)=>u(t,p(e)),w=(t,e,i)=>(b(t,"symbol"!=typeof e?e+"":e,i),i),_=(t,e,i)=>new Promise(((s,o)=>{var r=t=>{try{n(i.next(t))}catch(t){o(t)}},a=t=>{try{n(i.throw(t))}catch(t){o(t)}},n=t=>t.done?s(t.value):Promise.resolve(t.value).then(r,a);n((i=i.apply(t,e)).next())}))
|
|
2
2
|
/**
|
|
3
3
|
* @license
|
|
4
4
|
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
@@ -6654,4 +6654,4 @@ Ut("vaadin-tabs",T`
|
|
|
6654
6654
|
</div>
|
|
6655
6655
|
|
|
6656
6656
|
<div on-click="_scrollForward" part="forward-button" aria-hidden="true"></div>
|
|
6657
|
-
`}static get is(){return"vaadin-tabs"}}x(_l);const xl=class{constructor(e){t(this,e),this.MATCH_CONFIG_AMOUNT=/^(\w+)\((\w+)\):(\d+)-(\d+)$/,this.MATCH_CONFIG_PERIOD=/^(\w+)\((\w+)\):([A-Z\-]+)$/,this.defaultPeriods=[h.DAILY,h.WEEKLY,h.MONTHLY],this.fetchSkipLimit=()=>{const t=new URL(`${this.endpoint}/api/pam/v1/player-notifications`);t.searchParams.append("createNotificationIfNotFound","true"),this.loading=!0,fetch(t,{headers:{"X-SessionId":this.session,"Content-Type":"application/json"},method:"PATCH",body:JSON.stringify({type:1,interval:5,ackNotification:!0,ackNotificationTimestamp:(new Date).toISOString()})}).then((t=>{if(t.ok)return t.json();throw window.postMessage({type:"WidgetNotification",data:{type:"error",message:o("limitNotificationFail",this.language)}},window.location.href),new Error("Error while skipping the limit setting")})).then((()=>{window.postMessage({type:"WidgetNotification",data:{type:"success",message:o("setLimitSuccessful",this.language)}},window.location.href),window.postMessage({type:"SubmitLimitNotificationSuccess"},window.location.href)})).catch((t=>{console.error(t)})).finally((()=>{this.loading=!1}))},this.mbSource=void 0,this.clientStyling=void 0,this.clientStylingUrl=void 0,this.session=void 0,this.userid=void 0,this.language=void 0,this.endpoint=void 0,this.limitsamount=void 0,this.limitsperiods=void 0,this.currency=void 0,this.customcurrencysymbols=void 0,this.translationurl="",this.complianceText="",this.limitItems=[{}],this.limitTypeOptions=[],this.skipLimit=!1,this.loading=!1,this.confirmPopupVisibility=!1}get currencySymbolMap(){const t={};return this.customcurrencysymbols&&this.customcurrencysymbols.split(",").forEach((e=>{let i=e.split(":");t[i[0].trim()]=i[1].trim()})),Object.assign(Object.assign({},{EUR:"€",RON:" lei",USD:"$"}),t)}handleClientStylingChange(t,e){t!=e&&r(this.stylingContainer,this.clientStyling)}handleClientStylingUrlChange(t,e){t!=e&&a(this.stylingContainer,this.clientStylingUrl)}handleMbSourceChange(t,e){t!=e&&n(this.stylingContainer,`${this.mbSource}.Style`)}componentDidLoad(){this.stylingContainer&&(this.mbSource&&n(this.stylingContainer,`${this.mbSource}.Style`),this.clientStyling&&r(this.stylingContainer,this.clientStyling),this.clientStylingUrl&&a(this.stylingContainer,this.clientStylingUrl))}async componentWillLoad(){var t;this.translationurl.length>2&&await(t=this.translationurl,new Promise((e=>{fetch(t).then((t=>t.json())).then((t=>{Object.keys(t).forEach((e=>{s[e]||(s[e]={});for(let i in t[e])s[e][i]=t[e][i]})),e(!0)}))}))),await this.parseLimitConfigs()}eventParamsToTranslationKeys(t){return`dataLayer-${t}`}emitGtag(t,e){"function"==typeof gtag&>ag({event:t,limit_category:o(this.eventParamsToTranslationKeys(e.product.toLowerCase()),this.language)||e.product,limit_type:o(this.eventParamsToTranslationKeys(e.type.toLowerCase()))||e.type,limit_period:o(this.eventParamsToTranslationKeys(e.period),this.language)||e.period,limit_amount:e.amount})}disconnectedCallback(){this.stylingSubscription&&this.stylingSubscription.unsubscribe()}parsePeriodsConfig(t){const e=t.match(this.MATCH_CONFIG_PERIOD),i={D:"daily",W:"weekly",M:"monthly",N:"none"},s=[];if(e){const[,,,t]=e;t.split("-").forEach((t=>{if(!i[t])throw new Error(`Unknown period code: ${t}`);s.push(i[t])}))}return s}async parseLimitConfigs(){const t=this.limitsamount.replace(/\s/g,"").split("|"),e=this.limitsperiods.replace(/\s/g,"").split("|");if(0===t.length)throw new Error("Please provide a full limits configuration.");if(t.length!==e.length)throw new Error("Please make sure that the limit configuration parameters specify the same number of tabs.");try{for(let i=0;i<t.length;i++){const s=e[i],o=t[i].split(","),r=s.split(",");o.forEach(((t,e)=>{const i=t.match(this.MATCH_CONFIG_AMOUNT);if(i){const t=this.parsePeriodsConfig(r[e]),[,s,o,a,n]=i,l={type:o,product:s,min:parseInt(a,10),max:parseInt(n,10),label:`${c[o].title} - ${s}`,periodOptions:t,selectedKey:`${o}-${s}`};this.limitTypeOptions.push(l)}}))}}catch(t){throw new Error(`Error parsing limit config: ${t}`)}await this.filterExistingLimits(),this.limitTypeOptions=[...this.limitTypeOptions]}async filterExistingLimits(){try{const{sessionLimit:t,cumulativeSessionLimits:e,monetaryLimits:i}=await this.getLimits16();t&&(this.limitTypeOptions=this.limitTypeOptions.filter((t=>t.type===l.SESSION_LIMIT)));const s=new Map;i.forEach((t=>{var e;const i=`${null===(e=t.products)||void 0===e?void 0:e[0]}-${t.type}`.toLowerCase(),o=s.get(i)||new Set;o.add(t.period.toLowerCase()),s.set(i,o)})),this.limitTypeOptions=this.limitTypeOptions.map((t=>{const i=`${t.product}-${t.type}`.toLowerCase();let o=s.get(i)||new Set;t.type===l.CUMULATIVE_SESSION&&e&&(o=new Set(e.map((t=>t.period.toLowerCase()))));const r=t.periodOptions.filter((t=>!o.has(t)));return r.length>0?Object.assign(Object.assign({},t),{periodOptions:r}):null})).filter(Boolean)}catch(t){console.error("error getting limits",t)}}async getLimits16(){const t=this.limitTypeOptions.some((t=>t.type===l.SESSION_LIMIT||t.type===l.CUMULATIVE_SESSION)),e=new URL(`${this.endpoint}/v1/player/${this.userid}/limits/monetary`),i={method:"GET",headers:{"X-SessionID":this.session,"Content-Type":"application/json",Accept:"application/json"}},s=await fetch(e.href,i);if(s.status>=300)throw new Error("An error occured during the fetch request");const o=await s.json(),r=(null==o?void 0:o.limits)||[];let a=null,n=null;if(t){const t=new URL(`${this.endpoint}/v1/player/${this.userid}/limits/session`),e=await fetch(t.href,i);if(e.status>=300)throw new Error("An error occured during the fetch request");const s=await e.json();a=null==s?void 0:s.sessionLimit,n=null==s?void 0:s.cumulativeSessionLimits}return{sessionLimit:a,cumulativeSessionLimits:n,monetaryLimits:r}}handleSelectLimitType(t,e){var i;const s=t.target.value,o=this.limitTypeOptions.find((t=>t.selectedKey===s));Object.assign(e,Object.assign(Object.assign({},o),{selectedKey:s,typeErrorMessage:null})),this.limitItems=[...this.limitItems],!this.isDisabledPeriod(e,e.period)&&(null===(i=e.periodOptions)||void 0===i?void 0:i.includes(e.period))||(e.period=null)}handleSelectLimitPeriod(t,e){Object.assign(e,{period:t,periodErrorMessage:null}),this.limitItems=[...this.limitItems]}isDisabledPeriod(t,e){return!!t.type&&this.limitItems.filter((e=>e!==t&&e.selectedKey===t.selectedKey)).some((t=>t.period===e))}validateSave(){if(this.skipLimit)return!0;let t=!0;return this.limitItems.forEach((e=>{var i;Object.assign(e,{amountErrorMessage:null,periodErrorMessage:null,typeErrorMessage:null}),e.amountErrorMessage=this.getAmountErrorMsg(e),e.period||(null===(i=e.periodOptions)||void 0===i?void 0:i.includes(h.NONE))||(e.periodErrorMessage=o("emptyPeriodWarning",this.language)),e.type||(e.typeErrorMessage=o("emptyLimitTypeWarning",this.language)),(e.amountErrorMessage||e.typeErrorMessage||e.periodErrorMessage)&&(t=!1)})),this.limitItems=[...this.limitItems],t}handleSaveLimit(){var t,e,i;if(this.validateSave())if(this.skipLimit){const s="number"==typeof(null===(t=this.limitItems[0])||void 0===t?void 0:t.amount)||(null===(e=this.limitItems[0])||void 0===e?void 0:e.period)||(null===(i=this.limitItems[0])||void 0===i?void 0:i.type);this.limitItems.length>1||s?this.doubleConfirmSkip():this.fetchSkipLimit()}else this.fetchUpdateLimit()}doubleConfirmSkip(){this.confirmPopupVisibility=!0}handleCloseConfirm(){this.confirmPopupVisibility=!1}handleSaveSkip(){this.handleCloseConfirm(),this.fetchSkipLimit()}async fetchUpdateLimit(){this.loading=!0;const t=[];this.limitItems.forEach((e=>{switch(e.type){case"lugas":t.push(this.createSubmitLimitCall(this.updateLugasCall,e));break;case"sessionLimit":t.push(this.createSubmitLimitCall(this.updateSingleSessionLimit16Call,e));break;case"cumulativeSession":t.push(this.createSubmitLimitCall(this.updateCumulativeSessionLimit16Call,e));break;default:t.push(this.createSubmitLimitCall(this.updateMonetaryLimits16Call,e))}}));const e=await Promise.allSettled(t.map((t=>t()))),i=e.filter((t=>"fulfilled"===t.status)),s=e.filter((t=>"rejected"===t.status));if(this.loading=!1,s.length!==t.length)return i.length===t.length?(window.postMessage({type:"WidgetNotification",data:{type:"success",message:o("setLimitSuccessful",this.language)}}),void window.postMessage({type:"SubmitLimitNotificationSuccess"},window.location.href)):void(s.length&&(window.postMessage({type:"WidgetNotification",data:{type:"info",config:{enableHtml:!0},message:o("partialFailedUpdateLimit",this.language,{values:{accountLimitPath:`/${this.language}/account/limits`}})}},window.location.href),window.postMessage({type:"SubmitLimitNotificationSuccess"},window.location.href)));window.postMessage({type:"WidgetNotification",data:{type:"error",message:o("limitNotificationFail",this.language)}},window.location.href)}createSubmitLimitCall(t,e){return async()=>{try{if((await t.bind(this)(e)).status>=300)throw new Error("An error occured during the fetch request");this.emitGtag("self_limitation_success",e)}catch(t){throw console.error("error while updating limit",t),new Error(`error while updating limit: ${t}`)}}}updateLugasCall(t){const e=new URL(`${this.endpoint}/v2/player/${this.userid}/limit/lugas`);let i={method:"POST",headers:{"X-SessionID":this.session,"Content-Type":"application/json",Accept:"application/json"},body:JSON.stringify({amount:t.amount,roleLimitAmount:0,softMigration:!1,keepLimit:!1})};return fetch(e.href,i)}updateSingleSessionLimit16Call(t){const e=new URL(`${this.endpoint}/v1/player/${this.userid}/limits/session/`);let i={method:"PUT",headers:{"X-SessionID":this.session,"Content-Type":"application/json",Accept:"application/json"},body:JSON.stringify({sessionLimit:t.amount,sessionLimitUnit:"minute"})};return fetch(e.href,i)}capitalizeFirst(t){return t[0].toUpperCase()+t.substring(1)}updateCumulativeSessionLimit16Call(t){const e=new URL(`${this.endpoint}/v1/player/${this.userid}/limits/session/`),i={cumulativeSessionLimits:[{period:this.capitalizeFirst(t.period),minutes:t.amount}]};let s={method:"PUT",headers:{"X-SessionID":this.session,"Content-Type":"application/json",Accept:"application/json"},body:JSON.stringify(i)};return fetch(e.href,s)}updateMonetaryLimits16Call(t){var e;const i=new URL(`${this.endpoint}/v1/player/${this.userid}/limits/monetary/`),s={amount:t.amount,currency:this.currency,period:this.capitalizeFirst(t.period),type:c[t.type].callValue16,products:[null!==(e=t.product)&&void 0!==e?e:"All"],walletTypes:["Deposit","NetDeposit"].includes(c[t.type].callValue16)?["All"]:["RealCash"]};let o={method:"POST",headers:{"X-SessionID":this.session,"Content-Type":"application/json",Accept:"application/json"},body:JSON.stringify(s)};return fetch(i.href,o)}handleBlockInputWheel(t){t.preventDefault()}handleSkipLimitChange(t){this.skipLimit=t.target.checked}handleAddLimit(){this.limitItems=[...this.limitItems,{}]}handleRemoveLimit(t){this.limitItems.splice(t,1),this.limitItems=[...this.limitItems]}handleInputLimitAmount(t,e){const i=Number(t.target.value);if("number"!=typeof i||Number.isNaN(i))return void(e.amountErrorMessage=o("invalidAmount",this.language));const s=Number.isInteger(i)?i:Math.round(i);e.amount=s,e.amountErrorMessage=this.getAmountErrorMsg(e),this.limitItems=[...this.limitItems]}getAmountErrorMsg(t){if("number"!=typeof t.amount||Number.isNaN(t.amount))return o("invalidAmount",this.language);let e=null;return t.amount<t.min&&(e=o("invalidInputMessageLimitMin",this.language,{values:{minValue:t.min,currency:this.currency}})),t.amount>t.max&&(e=o("invalidInputMessageLimitMax",this.language,{values:{maxValue:t.max,currency:this.currency}})),e}renderPeriodButtons(t){const s=t.periodOptions||this.defaultPeriods;return s.includes(h.NONE)?"":e(i,null,e("div",{class:"limit-item-period"},e("label",{class:"limit-period-label"},o("selectLimitPeriodLabel",this.language)),e("div",{class:"limit-period-wrapper"},s.map((i=>e("button",{class:`\n limit-period-option\n ${t.period===i?"selected":""}\n `,disabled:this.isDisabledPeriod(t,i),onClick:()=>this.handleSelectLimitPeriod(i,t)},o(i,this.language)))))),e("small",{class:"error-message"},t.periodErrorMessage))}render(){return e("div",{key:"475575d6beb4864c49aa8f7f3b25431170f482d5",class:"player-limit-modal",ref:t=>this.stylingContainer=t},e("section",{key:"7e3e1a5ff8b11aea72707241b0a45703cc72bceb",class:"limit-modal-container"},e("div",{key:"d98e30a2ae1af485a920d74a6dfd4e316c2b5807",class:"limit-modal-title"},e("h2",{key:"c19145c53ef68ca313d88124caa7ad9083c72de3"},o("limitNotificationTitle",this.language)),e("p",{key:"496449065db693420d49d1fc116db954502254c4"},o("limitNotificationSubTitle",this.language))),e("div",{key:"27a9b871706e5a4733151e28d96923091876d06e",class:"limit-modal-content "+(this.skipLimit||this.loading?"disable-content":"")},this.limitItems.map(((t,i)=>e("div",{class:"limit-item"},e("div",{class:"limit-item-type"},e("label",{class:"type-select-label"},o("selectLimitTypeLabel",this.language)),e("div",null,e("vaadin-combo-box",{value:t.selectedKey,items:this.limitTypeOptions,"no-vertical-overlap":!0,"item-label-path":"label","item-value-path":"selectedKey",placeholder:o("selectLimitTypePlaceholder",this.language),onChange:e=>this.handleSelectLimitType(e,t)})),e("small",{class:"error-message"},t.typeErrorMessage)),this.renderPeriodButtons(t),e("div",{class:"limit-item-amount"},e("div",{class:"amount-input"},e("label",{class:"amount-input-label"},o("limitNotificationAmountLabel",this.language)),e("div",{class:"amount-input-wrapper"},e("div",{class:"amount-input-content"},e("input",{class:"amount-input-inner",type:"number",pattern:"[0-9]*",value:t.amount,onWheel:this.handleBlockInputWheel,onInput:e=>this.handleInputLimitAmount(e,t)}),e("span",{class:"amount-input-suffix"},e("i",null,this.currencySymbolMap[this.currency]))),e("button",{onClick:()=>this.handleRemoveLimit(i),class:"remove-limit-button"},e("svg",{width:"16",height:"18",viewBox:"0 0 16 18",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e("path",{d:"M3 18C2.45 18 1.97934 17.8043 1.588 17.413C1.19667 17.0217 1.00067 16.5507 1 16V3C0.71667 3 0.479337 2.904 0.288004 2.712C0.0966702 2.52 0.000670115 2.28267 3.44827e-06 2C-0.000663218 1.71733 0.0953369 1.48 0.288004 1.288C0.48067 1.096 0.718003 1 1 1H5C5 0.716667 5.096 0.479333 5.288 0.288C5.48 0.0966668 5.71734 0.000666667 6 0H10C10.2833 0 10.521 0.0960001 10.713 0.288C10.905 0.48 11.0007 0.717333 11 1H15C15.2833 1 15.521 1.096 15.713 1.288C15.905 1.48 16.0007 1.71733 16 2C15.9993 2.28267 15.9033 2.52033 15.712 2.713C15.5207 2.90567 15.2833 3.00133 15 3V16C15 16.55 14.8043 17.021 14.413 17.413C14.0217 17.805 13.5507 18.0007 13 18H3ZM6 14C6.28334 14 6.521 13.904 6.713 13.712C6.905 13.52 7.00067 13.2827 7 13V6C7 5.71667 6.904 5.47933 6.712 5.288C6.52 5.09667 6.28267 5.00067 6 5C5.71734 4.99933 5.48 5.09533 5.288 5.288C5.096 5.48067 5 5.718 5 6V13C5 13.2833 5.096 13.521 5.288 13.713C5.48 13.905 5.71734 14.0007 6 14ZM10 14C10.2833 14 10.521 13.904 10.713 13.712C10.905 13.52 11.0007 13.2827 11 13V6C11 5.71667 10.904 5.47933 10.712 5.288C10.52 5.09667 10.2827 5.00067 10 5C9.71734 4.99933 9.48 5.09533 9.288 5.288C9.096 5.48067 9 5.718 9 6V13C9 13.2833 9.096 13.521 9.288 13.713C9.48 13.905 9.71734 14.0007 10 14Z"})))))),e("small",{class:"error-message"},t.amountErrorMessage))))),e("div",{key:"cf21f1b654bcbb447364d4c18e447b63107f4b53",class:"checkbox-container"},e("label",{key:"05bb8002e5f86dcebcdf6d24ea070e87531a6c34"},e("span",{key:"1cbe8e25ca9d4684042022e50e9ec9efa016b26c",class:"custom-checkbox"},e("input",{key:"1621699cecc7b4ddb6adca1edb30f2e196db4c55",disabled:this.loading,onChange:t=>this.handleSkipLimitChange(t),type:"checkbox",class:"checkbox-original"}),e("span",{key:"33e698d77f5ff3184ed49485b90587efda77db10",class:"checkbox-custom"})),e("span",{key:"3c5ad3ba38e58c6712f0ad678641b75bd7d5603b",class:"checkbox-label"},o("skipLimitLimitDescription",this.language)))),e("div",{key:"c867b19600d641467f768c36329f12ac1747cb4d",class:"limit-buttons"},e("button",{key:"5cf44b70264dd1ad7d07573b1a88d30737f02b05",class:"add-limit",disabled:this.skipLimit||this.loading,onClick:()=>this.handleAddLimit()},e("svg",{key:"ded619a66af4cec84f38ab0a0f85e80fc8ef15ab",class:"add-limit-mark",width:"14",height:"14",viewBox:"0 0 14 14",xmlns:"http://www.w3.org/2000/svg"},e("path",{key:"ea57143e7900a2dc9dec5693282709bb9ccf1aad",d:"M13 8H8V13C8 13.2652 7.89464 13.5196 7.70711 13.7071C7.51957 13.8946 7.26522 14 7 14C6.73478 14 6.48043 13.8946 6.29289 13.7071C6.10536 13.5196 6 13.2652 6 13V8H1C0.734784 8 0.48043 7.89464 0.292893 7.70711C0.105357 7.51957 0 7.26522 0 7C0 6.73478 0.105357 6.48043 0.292893 6.29289C0.48043 6.10536 0.734784 6 1 6H6V1C6 0.734784 6.10536 0.480429 6.29289 0.292893C6.48043 0.105357 6.73478 0 7 0C7.26522 0 7.51957 0.105357 7.70711 0.292893C7.89464 0.480429 8 0.734784 8 1V6H13C13.2652 6 13.5196 6.10536 13.7071 6.29289C13.8946 6.48043 14 6.73478 14 7C14 7.26522 13.8946 7.51957 13.7071 7.70711C13.5196 7.89464 13.2652 8 13 8Z"})),e("span",{key:"1337907c78157ab80a180c7d984d2016d3da94cb"},o("addLimitType",this.language))),e("button",{key:"0496f388734143bac04bd4aae3fafe7441733b87",class:"save-limit",disabled:this.loading,onClick:()=>this.handleSaveLimit()},o("savePlayerLimit",this.language))),this.complianceText.trim()&&e("div",{key:"d1e1b575f94e64e5e9362d0b679f68d677868030",class:"compliance-content"},e("p",{key:"3f39c5d61754cac01506b09b9fe7f0a37e16456b"},this.complianceText.trim()))),this.confirmPopupVisibility?e("section",{class:"confirm-modal"},e("div",{class:"confirm-modal-content"},e("h2",{class:"confirm-modal-title"},o("limitNotificationTitle",this.language)),e("p",null,o("confirmLimitNotification",this.language)),e("div",{class:"confirm-modal-buttons"},e("button",{class:"confirm-limit-close",onClick:()=>this.handleCloseConfirm()},o("confirmLimitClose",this.language)),e("button",{class:"confirm-limit-save",onClick:()=>this.handleSaveSkip()},o("confirmLimitSave",this.language))))):null)}static get watchers(){return{clientStyling:["handleClientStylingChange"],clientStylingUrl:["handleClientStylingUrlChange"],mbSource:["handleMbSourceChange"]}}};xl.style='@charset "UTF-8";*,*::before,*::after{padding:0;margin:0;box-sizing:border-box}:host{--vaadin-input-field-invalid-hover-highlight:transparent;--vaadin-input-field-label-color:var(--emw--modal-label-color, #ababab);--vaadin-input-field-background:var(--emw--modal-input-bg, #4f4f4f);--vaadin-input-field-hovered-label-color:var(--emw--modal-label-color, #ababab);--vaadin-input-field-value-color:var(--emw--modal-label-color, #ababab);--vaadin-input-field-focused-label-color:var(--emw--modal-label-color, #ababab);--vaadin-input-field-placeholder-color:var(--emw--modal-label-color, #ababab)}vaadin-combo-box{border:none;width:100%;background-color:transparent}vaadin-combo-box::part(input-field){padding-left:15px;height:40px}input[type=number]::-webkit-outer-spin-button,input[type=number]::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}input[type=number]{-moz-appearance:textfield}.type-select-label,.limit-period-label,.amount-input-label{display:inline-block;font-size:14px;color:var(--emw--modal-label-color, #ababab);margin:0;padding-bottom:8px;font-weight:400}.player-limit-modal{display:flex;position:fixed;align-items:center;justify-content:center;width:100%;height:100%;z-index:200;top:0;left:0;padding:0 10px;background-color:rgba(0, 0, 0, 0.7)}.player-limit-modal .limit-modal-container{color:var(--emw--modal-font-color, #fff);padding:15px;max-width:700px;min-width:300px;max-height:90vh;overflow-y:auto;position:relative;min-height:200px;border-radius:4px;background-color:var(--emw--color-modal-background, #353535)}.player-limit-modal .limit-modal-container .limit-modal-content.disable-content{pointer-events:none;cursor:not-allowed;opacity:0.4}.player-limit-modal .limit-modal-container .error-message{display:block;color:var(--emw--color-error, red);min-height:16px}.player-limit-modal .limit-modal-container .limit-modal-title h2{font-size:16px;font-weight:500;margin-top:15px;margin-bottom:15px}.player-limit-modal .limit-modal-container .limit-item:nth-of-type(1) .remove-limit-button{display:none}.player-limit-modal .limit-modal-container .limit-item:not(:nth-of-type(1)){padding:9px;margin:14px 0;border-radius:6px;border:1px solid #6a6a6a}.player-limit-modal .limit-modal-container .limit-item-period .limit-period-wrapper{display:flex;flex-wrap:nowrap;justify-content:flex-start;align-items:center;gap:4px}.player-limit-modal .limit-modal-container .limit-item-period .limit-period-wrapper .limit-period-option{flex-grow:1;border:1px solid transparent;cursor:pointer;background:var(--emw--modal-input-bg, #4f4f4f);width:100px;height:40px;font-size:14px;border-radius:4px;color:var(--emw--modal-font-color, #fff);transition:0.5s}.player-limit-modal .limit-modal-container .limit-item-period .limit-period-wrapper .limit-period-option:disabled{cursor:not-allowed;opacity:0.4}.player-limit-modal .limit-modal-container .limit-item-period .limit-period-wrapper .limit-period-option.selected{border-color:var(--emw--color-primary, #ffe30c)}.player-limit-modal .limit-modal-container .limit-item-amount .amount-input .amount-input-wrapper{display:flex;flex-wrap:nowrap}.player-limit-modal .limit-modal-container .limit-item-amount .amount-input .amount-input-content{position:relative;flex:1;margin-right:6px}.player-limit-modal .limit-modal-container .limit-item-amount .amount-input .amount-input-content .amount-input-inner{padding-right:30px;padding-left:15px;outline:none;border:none;height:40px;color:var(--emw--modal-label-color, #ababab);background-color:var(--emw--modal-input-bg, #4f4f4f);width:100%;border-radius:4px}.player-limit-modal .limit-modal-container .limit-item-amount .amount-input .amount-input-content .amount-input-suffix{width:20px;height:20px;background-color:var(--emw--modal-label-color, #ababab);border-radius:50%;position:absolute;right:0px;transform:translate(-50%, -50%);top:50%;text-align:center;pointer-events:none}.player-limit-modal .limit-modal-container .limit-item-amount .amount-input .amount-input-content .amount-input-suffix i{color:var(--emw--modal-input-bg, #4f4f4f)}.player-limit-modal .limit-modal-container .limit-item-amount .remove-limit-button{width:40px;height:40px;border:none;border-radius:4px;cursor:pointer;background-color:color-mix(in srgb, var(--emw--color-primary, #ffe30c) 20%, transparent 80%);transition:2s}.player-limit-modal .limit-modal-container .limit-item-amount .remove-limit-button:hover{background-color:color-mix(in srgb, var(--emw--color-primary, #ffe30c) 50%, white 50%)}.player-limit-modal .limit-modal-container .limit-item-amount .remove-limit-button svg{fill:var(--emw--color-primary, #ffe30c)}.player-limit-modal .limit-modal-container .checkbox-container label{display:flex;align-items:center;gap:6px}.player-limit-modal .limit-modal-container .checkbox-container .checkbox-original{opacity:0;width:0;height:0;z-index:-1;position:absolute}.player-limit-modal .limit-modal-container .checkbox-container .checkbox-original:checked+.checkbox-custom::after{opacity:1}.player-limit-modal .limit-modal-container .checkbox-container .checkbox-custom{display:inline-block;width:18px;height:18px;background:var(--emw--modal-input-bg, #4f4f4f);border-radius:3px;position:relative;transition:0.2s}.player-limit-modal .limit-modal-container .checkbox-container .checkbox-custom::after{content:"✔";position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);color:var(--emw--modal-font-color, #fff);font-size:12px;opacity:0;transition:opacity 0.2s}.player-limit-modal .limit-modal-container .checkbox-container .checkbox-label{color:var(--emw--modal-label-color, #ababab);font-size:14px;cursor:pointer;user-select:none}.player-limit-modal .limit-modal-container .limit-buttons{display:flex;justify-content:space-around;align-items:center;gap:10px;margin-top:10px}.player-limit-modal .limit-modal-container .limit-buttons .add-limit{display:inline-flex;align-items:center;justify-content:center;gap:5px;cursor:pointer;border:1px solid var(--emw--modal-font-color, #fff);width:150px;height:40px;background:transparent;border-radius:6px;color:var(--emw--modal-font-color, #fff)}.player-limit-modal .limit-modal-container .limit-buttons .add-limit:disabled{cursor:not-allowed;opacity:0.4}.player-limit-modal .limit-modal-container .limit-buttons .add-limit .add-limit-mark{text-align:center;font-size:14px;fill:var(--emw--modal-font-color, #fff)}.player-limit-modal .limit-modal-container .limit-buttons .save-limit{cursor:pointer;border:1px solid var(--emw--color-primary, #ffe30c);background:var(--emw--color-primary, #ffe30c);width:150px;height:40px;border-radius:6px;color:var(--emw--color-black, black)}.player-limit-modal .limit-modal-container .limit-buttons .save-limit:disabled{cursor:not-allowed;opacity:0.4}.player-limit-modal .limit-modal-container .compliance-content{margin-top:15px;width:300px}.player-limit-modal .confirm-modal{background-color:rgba(0, 0, 0, 0.7);position:fixed;z-index:210;top:0;left:0;padding:0 10px;width:100%;height:100%;display:flex;align-items:center;justify-content:center}.player-limit-modal .confirm-modal .confirm-modal-content{color:var(--emw--modal-font-color, #fff);padding:15px;padding-top:10px;box-sizing:padding-box;width:336px;overflow-y:auto;position:relative;border-radius:4px;background-color:var(--emw--color-modal-background, #353535)}.player-limit-modal .confirm-modal .confirm-modal-content .confirm-modal-title{font-size:16px;font-weight:500;margin-top:15px;margin-bottom:15px}.player-limit-modal .confirm-modal .confirm-modal-content .confirm-modal-buttons{display:flex;justify-content:space-around;align-items:center;gap:10px;margin-top:10px}.player-limit-modal .confirm-modal .confirm-modal-content .confirm-modal-buttons .confirm-limit-close{cursor:pointer;border:1px solid var(--emw--modal-font-color, #fff);width:150px;height:40px;background:transparent;border-radius:6px;color:var(--emw--modal-font-color, #fff)}.player-limit-modal .confirm-modal .confirm-modal-content .confirm-modal-buttons .confirm-limit-save{cursor:pointer;border:1px solid var(--emw--color-primary, #ffe30c);background:var(--emw--color-primary, #ffe30c);width:150px;height:40px;border-radius:6px;color:var(--emw--color-black, black)}';export{xl as P}
|
|
6657
|
+
`}static get is(){return"vaadin-tabs"}}x(_l);const xl=class{constructor(e){t(this,e),this.MATCH_CONFIG_AMOUNT=/^(\w+)\((\w+)\):(\d+)-(\d+)$/,this.MATCH_CONFIG_PERIOD=/^(\w+)\((\w+)\):([A-Z\-]+)$/,this.defaultPeriods=[h.DAILY,h.WEEKLY,h.MONTHLY],this.fetchSkipLimit=()=>{const t=new URL(`${this.endpoint}/api/pam/v1/player-notifications`);t.searchParams.append("createNotificationIfNotFound","true"),this.loading=!0,fetch(t,{headers:{"X-SessionId":this.session,"Content-Type":"application/json"},method:"PATCH",body:JSON.stringify({type:1,interval:5,ackNotification:!0,ackNotificationTimestamp:(new Date).toISOString()})}).then((t=>{if(t.ok)return t.json();throw window.postMessage({type:"WidgetNotification",data:{type:"error",message:o("limitNotificationFail",this.language)}},window.location.href),new Error("Error while skipping the limit setting")})).then((()=>{window.postMessage({type:"WidgetNotification",data:{type:"success",message:o("setLimitSuccessful",this.language)}},window.location.href),window.postMessage({type:"SubmitLimitNotificationSuccess"},window.location.href)})).catch((t=>{console.error(t)})).finally((()=>{this.loading=!1}))},this.mbSource=void 0,this.clientStyling=void 0,this.clientStylingUrl=void 0,this.session=void 0,this.userid=void 0,this.language=void 0,this.endpoint=void 0,this.limitsamount=void 0,this.limitsperiods=void 0,this.currency=void 0,this.customcurrencysymbols=void 0,this.translationurl="",this.showComplianceText=!1,this.limitItems=[{}],this.limitTypeOptions=[],this.skipLimit=!1,this.loading=!1,this.confirmPopupVisibility=!1}get currencySymbolMap(){const t={};return this.customcurrencysymbols&&this.customcurrencysymbols.split(",").forEach((e=>{let i=e.split(":");t[i[0].trim()]=i[1].trim()})),Object.assign(Object.assign({},{EUR:"€",RON:" lei",USD:"$"}),t)}handleClientStylingChange(t,e){t!=e&&r(this.stylingContainer,this.clientStyling)}handleClientStylingUrlChange(t,e){t!=e&&a(this.stylingContainer,this.clientStylingUrl)}handleMbSourceChange(t,e){t!=e&&n(this.stylingContainer,`${this.mbSource}.Style`)}componentDidLoad(){this.stylingContainer&&(this.mbSource&&n(this.stylingContainer,`${this.mbSource}.Style`),this.clientStyling&&r(this.stylingContainer,this.clientStyling),this.clientStylingUrl&&a(this.stylingContainer,this.clientStylingUrl))}async componentWillLoad(){var t;this.translationurl.length>2&&await(t=this.translationurl,new Promise((e=>{fetch(t).then((t=>t.json())).then((t=>{Object.keys(t).forEach((e=>{s[e]||(s[e]={});for(let i in t[e])s[e][i]=t[e][i]})),e(!0)}))}))),await this.parseLimitConfigs()}eventParamsToTranslationKeys(t){return`dataLayer-${t}`}emitGtag(t,e){"function"==typeof gtag&>ag({event:t,limit_category:o(this.eventParamsToTranslationKeys(e.product.toLowerCase()),this.language)||e.product,limit_type:o(this.eventParamsToTranslationKeys(e.type.toLowerCase()))||e.type,limit_period:o(this.eventParamsToTranslationKeys(e.period),this.language)||e.period,limit_amount:e.amount})}disconnectedCallback(){this.stylingSubscription&&this.stylingSubscription.unsubscribe()}parsePeriodsConfig(t){const e=t.match(this.MATCH_CONFIG_PERIOD),i={D:"daily",W:"weekly",M:"monthly",N:"none"},s=[];if(e){const[,,,t]=e;t.split("-").forEach((t=>{if(!i[t])throw new Error(`Unknown period code: ${t}`);s.push(i[t])}))}return s}async parseLimitConfigs(){const t=this.limitsamount.replace(/\s/g,"").split("|"),e=this.limitsperiods.replace(/\s/g,"").split("|");if(0===t.length)throw new Error("Please provide a full limits configuration.");if(t.length!==e.length)throw new Error("Please make sure that the limit configuration parameters specify the same number of tabs.");try{for(let i=0;i<t.length;i++){const s=e[i],o=t[i].split(","),r=s.split(",");o.forEach(((t,e)=>{const i=t.match(this.MATCH_CONFIG_AMOUNT);if(i){const t=this.parsePeriodsConfig(r[e]),[,s,o,a,n]=i,l={type:o,product:s,min:parseInt(a,10),max:parseInt(n,10),label:`${c[o].title} - ${s}`,periodOptions:t,selectedKey:`${o}-${s}`};this.limitTypeOptions.push(l)}}))}}catch(t){throw new Error(`Error parsing limit config: ${t}`)}await this.filterExistingLimits(),this.limitTypeOptions=[...this.limitTypeOptions]}async filterExistingLimits(){try{const{sessionLimit:t,cumulativeSessionLimits:e,monetaryLimits:i}=await this.getLimits16();t&&(this.limitTypeOptions=this.limitTypeOptions.filter((t=>t.type===l.SESSION_LIMIT)));const s=new Map;i.forEach((t=>{var e;const i=`${null===(e=t.products)||void 0===e?void 0:e[0]}-${t.type}`.toLowerCase(),o=s.get(i)||new Set;o.add(t.period.toLowerCase()),s.set(i,o)})),this.limitTypeOptions=this.limitTypeOptions.map((t=>{const i=`${t.product}-${t.type}`.toLowerCase();let o=s.get(i)||new Set;t.type===l.CUMULATIVE_SESSION&&e&&(o=new Set(e.map((t=>t.period.toLowerCase()))));const r=t.periodOptions.filter((t=>!o.has(t)));return r.length>0?Object.assign(Object.assign({},t),{periodOptions:r}):null})).filter(Boolean)}catch(t){console.error("error getting limits",t)}}async getLimits16(){const t=this.limitTypeOptions.some((t=>t.type===l.SESSION_LIMIT||t.type===l.CUMULATIVE_SESSION)),e=new URL(`${this.endpoint}/v1/player/${this.userid}/limits/monetary`),i={method:"GET",headers:{"X-SessionID":this.session,"Content-Type":"application/json",Accept:"application/json"}},s=await fetch(e.href,i);if(s.status>=300)throw new Error("An error occured during the fetch request");const o=await s.json(),r=(null==o?void 0:o.limits)||[];let a=null,n=null;if(t){const t=new URL(`${this.endpoint}/v1/player/${this.userid}/limits/session`),e=await fetch(t.href,i);if(e.status>=300)throw new Error("An error occured during the fetch request");const s=await e.json();a=null==s?void 0:s.sessionLimit,n=null==s?void 0:s.cumulativeSessionLimits}return{sessionLimit:a,cumulativeSessionLimits:n,monetaryLimits:r}}handleSelectLimitType(t,e){var i;const s=t.target.value,o=this.limitTypeOptions.find((t=>t.selectedKey===s));Object.assign(e,Object.assign(Object.assign({},o),{selectedKey:s,typeErrorMessage:null})),this.limitItems=[...this.limitItems],!this.isDisabledPeriod(e,e.period)&&(null===(i=e.periodOptions)||void 0===i?void 0:i.includes(e.period))||(e.period=null)}handleSelectLimitPeriod(t,e){Object.assign(e,{period:t,periodErrorMessage:null}),this.limitItems=[...this.limitItems]}isDisabledPeriod(t,e){return!!t.type&&this.limitItems.filter((e=>e!==t&&e.selectedKey===t.selectedKey)).some((t=>t.period===e))}validateSave(){if(this.skipLimit)return!0;let t=!0;return this.limitItems.forEach((e=>{var i;Object.assign(e,{amountErrorMessage:null,periodErrorMessage:null,typeErrorMessage:null}),e.amountErrorMessage=this.getAmountErrorMsg(e),e.period||(null===(i=e.periodOptions)||void 0===i?void 0:i.includes(h.NONE))||(e.periodErrorMessage=o("emptyPeriodWarning",this.language)),e.type||(e.typeErrorMessage=o("emptyLimitTypeWarning",this.language)),(e.amountErrorMessage||e.typeErrorMessage||e.periodErrorMessage)&&(t=!1)})),this.limitItems=[...this.limitItems],t}handleSaveLimit(){var t,e,i;if(this.validateSave())if(this.skipLimit){const s="number"==typeof(null===(t=this.limitItems[0])||void 0===t?void 0:t.amount)||(null===(e=this.limitItems[0])||void 0===e?void 0:e.period)||(null===(i=this.limitItems[0])||void 0===i?void 0:i.type);this.limitItems.length>1||s?this.doubleConfirmSkip():this.fetchSkipLimit()}else this.fetchUpdateLimit()}doubleConfirmSkip(){this.confirmPopupVisibility=!0}handleCloseConfirm(){this.confirmPopupVisibility=!1}handleSaveSkip(){this.handleCloseConfirm(),this.fetchSkipLimit()}async fetchUpdateLimit(){this.loading=!0;const t=[];this.limitItems.forEach((e=>{switch(e.type){case"lugas":t.push(this.createSubmitLimitCall(this.updateLugasCall,e));break;case"sessionLimit":t.push(this.createSubmitLimitCall(this.updateSingleSessionLimit16Call,e));break;case"cumulativeSession":t.push(this.createSubmitLimitCall(this.updateCumulativeSessionLimit16Call,e));break;default:t.push(this.createSubmitLimitCall(this.updateMonetaryLimits16Call,e))}}));const e=await Promise.allSettled(t.map((t=>t()))),i=e.filter((t=>"fulfilled"===t.status)),s=e.filter((t=>"rejected"===t.status));if(this.loading=!1,s.length!==t.length)return i.length===t.length?(window.postMessage({type:"WidgetNotification",data:{type:"success",message:o("setLimitSuccessful",this.language)}}),void window.postMessage({type:"SubmitLimitNotificationSuccess"},window.location.href)):void(s.length&&(window.postMessage({type:"WidgetNotification",data:{type:"info",config:{enableHtml:!0},message:o("partialFailedUpdateLimit",this.language,{values:{accountLimitPath:`/${this.language}/account/limits`}})}},window.location.href),window.postMessage({type:"SubmitLimitNotificationSuccess"},window.location.href)));window.postMessage({type:"WidgetNotification",data:{type:"error",message:o("limitNotificationFail",this.language)}},window.location.href)}createSubmitLimitCall(t,e){return async()=>{try{if((await t.bind(this)(e)).status>=300)throw new Error("An error occured during the fetch request");this.emitGtag("self_limitation_success",e)}catch(t){throw console.error("error while updating limit",t),new Error(`error while updating limit: ${t}`)}}}updateLugasCall(t){const e=new URL(`${this.endpoint}/v2/player/${this.userid}/limit/lugas`);let i={method:"POST",headers:{"X-SessionID":this.session,"Content-Type":"application/json",Accept:"application/json"},body:JSON.stringify({amount:t.amount,roleLimitAmount:0,softMigration:!1,keepLimit:!1})};return fetch(e.href,i)}updateSingleSessionLimit16Call(t){const e=new URL(`${this.endpoint}/v1/player/${this.userid}/limits/session/`);let i={method:"PUT",headers:{"X-SessionID":this.session,"Content-Type":"application/json",Accept:"application/json"},body:JSON.stringify({sessionLimit:t.amount,sessionLimitUnit:"minute"})};return fetch(e.href,i)}capitalizeFirst(t){return t[0].toUpperCase()+t.substring(1)}updateCumulativeSessionLimit16Call(t){const e=new URL(`${this.endpoint}/v1/player/${this.userid}/limits/session/`),i={cumulativeSessionLimits:[{period:this.capitalizeFirst(t.period),minutes:t.amount}]};let s={method:"PUT",headers:{"X-SessionID":this.session,"Content-Type":"application/json",Accept:"application/json"},body:JSON.stringify(i)};return fetch(e.href,s)}updateMonetaryLimits16Call(t){var e;const i=new URL(`${this.endpoint}/v1/player/${this.userid}/limits/monetary/`),s={amount:t.amount,currency:this.currency,period:this.capitalizeFirst(t.period),type:c[t.type].callValue16,products:[null!==(e=t.product)&&void 0!==e?e:"All"],walletTypes:["Deposit","NetDeposit"].includes(c[t.type].callValue16)?["All"]:["RealCash"]};let o={method:"POST",headers:{"X-SessionID":this.session,"Content-Type":"application/json",Accept:"application/json"},body:JSON.stringify(s)};return fetch(i.href,o)}handleBlockInputWheel(t){t.preventDefault()}handleSkipLimitChange(t){this.skipLimit=t.target.checked}handleAddLimit(){this.limitItems=[...this.limitItems,{}]}handleRemoveLimit(t){this.limitItems.splice(t,1),this.limitItems=[...this.limitItems]}handleInputLimitAmount(t,e){const i=Number(t.target.value);if("number"!=typeof i||Number.isNaN(i))return void(e.amountErrorMessage=o("invalidAmount",this.language));const s=Number.isInteger(i)?i:Math.round(i);e.amount=s,e.amountErrorMessage=this.getAmountErrorMsg(e),this.limitItems=[...this.limitItems]}getAmountErrorMsg(t){if("number"!=typeof t.amount||Number.isNaN(t.amount))return o("invalidAmount",this.language);let e=null;return t.amount<t.min&&(e=o("invalidInputMessageLimitMin",this.language,{values:{minValue:t.min,currency:this.currency}})),t.amount>t.max&&(e=o("invalidInputMessageLimitMax",this.language,{values:{maxValue:t.max,currency:this.currency}})),e}renderPeriodButtons(t){const s=t.periodOptions||this.defaultPeriods;return s.includes(h.NONE)?"":e(i,null,e("div",{class:"limit-item-period"},e("label",{class:"limit-period-label"},o("selectLimitPeriodLabel",this.language)),e("div",{class:"limit-period-wrapper"},s.map((i=>e("button",{class:`\n limit-period-option\n ${t.period===i?"selected":""}\n `,disabled:this.isDisabledPeriod(t,i),onClick:()=>this.handleSelectLimitPeriod(i,t)},o(i,this.language)))))),e("small",{class:"error-message"},t.periodErrorMessage))}render(){return e("div",{key:"32faa284eec5694d9d69b24f05b06d3125523c37",class:"player-limit-modal",ref:t=>this.stylingContainer=t},e("section",{key:"75301a64466b558c40546cf7da8f112921a02dac",class:"limit-modal-container"},e("div",{key:"87f4dda3fd5c172bb4a8abdcea59c5fa47216544",class:"limit-modal-title"},e("h2",{key:"ab7a9c8dd456da7c9eacc6ae9129296895098cf1"},o("limitNotificationTitle",this.language)),e("p",{key:"c8d2771b9e028667d7df61b899d02105cacb7dbd"},o("limitNotificationSubTitle",this.language))),e("div",{key:"b4e1b9924b483097473c9114b4f239e2dce0edd5",class:"limit-modal-content "+(this.skipLimit||this.loading?"disable-content":"")},this.limitItems.map(((t,i)=>e("div",{class:"limit-item"},e("div",{class:"limit-item-type"},e("label",{class:"type-select-label"},o("selectLimitTypeLabel",this.language)),e("div",null,e("vaadin-combo-box",{value:t.selectedKey,items:this.limitTypeOptions,"no-vertical-overlap":!0,"item-label-path":"label","item-value-path":"selectedKey",placeholder:o("selectLimitTypePlaceholder",this.language),onChange:e=>this.handleSelectLimitType(e,t)})),e("small",{class:"error-message"},t.typeErrorMessage)),this.renderPeriodButtons(t),e("div",{class:"limit-item-amount"},e("div",{class:"amount-input"},e("label",{class:"amount-input-label"},o("limitNotificationAmountLabel",this.language)),e("div",{class:"amount-input-wrapper"},e("div",{class:"amount-input-content"},e("input",{class:"amount-input-inner",type:"number",pattern:"[0-9]*",value:t.amount,onWheel:this.handleBlockInputWheel,onInput:e=>this.handleInputLimitAmount(e,t)}),e("span",{class:"amount-input-suffix"},e("i",null,this.currencySymbolMap[this.currency]))),e("button",{onClick:()=>this.handleRemoveLimit(i),class:"remove-limit-button"},e("svg",{width:"16",height:"18",viewBox:"0 0 16 18",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e("path",{d:"M3 18C2.45 18 1.97934 17.8043 1.588 17.413C1.19667 17.0217 1.00067 16.5507 1 16V3C0.71667 3 0.479337 2.904 0.288004 2.712C0.0966702 2.52 0.000670115 2.28267 3.44827e-06 2C-0.000663218 1.71733 0.0953369 1.48 0.288004 1.288C0.48067 1.096 0.718003 1 1 1H5C5 0.716667 5.096 0.479333 5.288 0.288C5.48 0.0966668 5.71734 0.000666667 6 0H10C10.2833 0 10.521 0.0960001 10.713 0.288C10.905 0.48 11.0007 0.717333 11 1H15C15.2833 1 15.521 1.096 15.713 1.288C15.905 1.48 16.0007 1.71733 16 2C15.9993 2.28267 15.9033 2.52033 15.712 2.713C15.5207 2.90567 15.2833 3.00133 15 3V16C15 16.55 14.8043 17.021 14.413 17.413C14.0217 17.805 13.5507 18.0007 13 18H3ZM6 14C6.28334 14 6.521 13.904 6.713 13.712C6.905 13.52 7.00067 13.2827 7 13V6C7 5.71667 6.904 5.47933 6.712 5.288C6.52 5.09667 6.28267 5.00067 6 5C5.71734 4.99933 5.48 5.09533 5.288 5.288C5.096 5.48067 5 5.718 5 6V13C5 13.2833 5.096 13.521 5.288 13.713C5.48 13.905 5.71734 14.0007 6 14ZM10 14C10.2833 14 10.521 13.904 10.713 13.712C10.905 13.52 11.0007 13.2827 11 13V6C11 5.71667 10.904 5.47933 10.712 5.288C10.52 5.09667 10.2827 5.00067 10 5C9.71734 4.99933 9.48 5.09533 9.288 5.288C9.096 5.48067 9 5.718 9 6V13C9 13.2833 9.096 13.521 9.288 13.713C9.48 13.905 9.71734 14.0007 10 14Z"})))))),e("small",{class:"error-message"},t.amountErrorMessage))))),e("div",{key:"4dfb502de016ebc34b9803e10753bebc444815aa",class:"checkbox-container"},e("label",{key:"94e784ec579cddaca2d4023cb8483e29c2701eea"},e("span",{key:"589c598864ed3747638ddcfe7f14edc11577a97b",class:"custom-checkbox"},e("input",{key:"4b7c15e3081619a42bce61336d36146699606646",disabled:this.loading,onChange:t=>this.handleSkipLimitChange(t),type:"checkbox",class:"checkbox-original"}),e("span",{key:"8fabd1cc4abea31e78b6043344d57fd782958aeb",class:"checkbox-custom"})),e("span",{key:"10d98983668e9e9c768b355df4945487b525f5ed",class:"checkbox-label"},o("skipLimitLimitDescription",this.language)))),e("div",{key:"abbd6cf684fc11ec125a8841ca971b7d71793d26",class:"limit-buttons"},e("button",{key:"9ee7984b66c950770e72eac116d3f888bb2283ea",class:"add-limit",disabled:this.skipLimit||this.loading,onClick:()=>this.handleAddLimit()},e("svg",{key:"e84aeec080872397afb1d62cd35c28bfb60c139d",class:"add-limit-mark",width:"14",height:"14",viewBox:"0 0 14 14",xmlns:"http://www.w3.org/2000/svg"},e("path",{key:"36138fa77a1d7854fedf12378ae4b182772d44e5",d:"M13 8H8V13C8 13.2652 7.89464 13.5196 7.70711 13.7071C7.51957 13.8946 7.26522 14 7 14C6.73478 14 6.48043 13.8946 6.29289 13.7071C6.10536 13.5196 6 13.2652 6 13V8H1C0.734784 8 0.48043 7.89464 0.292893 7.70711C0.105357 7.51957 0 7.26522 0 7C0 6.73478 0.105357 6.48043 0.292893 6.29289C0.48043 6.10536 0.734784 6 1 6H6V1C6 0.734784 6.10536 0.480429 6.29289 0.292893C6.48043 0.105357 6.73478 0 7 0C7.26522 0 7.51957 0.105357 7.70711 0.292893C7.89464 0.480429 8 0.734784 8 1V6H13C13.2652 6 13.5196 6.10536 13.7071 6.29289C13.8946 6.48043 14 6.73478 14 7C14 7.26522 13.8946 7.51957 13.7071 7.70711C13.5196 7.89464 13.2652 8 13 8Z"})),e("span",{key:"1d1e9bf74826fc9d37a4acc922d2a915e92525a5"},o("addLimitType",this.language))),e("button",{key:"6db43aa725a93ed2bd675a33e286d72e49c85bdf",class:"save-limit",disabled:this.loading,onClick:()=>this.handleSaveLimit()},o("savePlayerLimit",this.language))),this.showComplianceText&&e("div",{key:"a92aca0919f40613fd12460a4d7c47ea53eac437",class:"compliance-content"},e("p",{key:"4c72cb161df40c07fb3a5506e54e9f6296d6119d"},o("complianceText",this.language)))),this.confirmPopupVisibility?e("section",{class:"confirm-modal"},e("div",{class:"confirm-modal-content"},e("h2",{class:"confirm-modal-title"},o("limitNotificationTitle",this.language)),e("p",null,o("confirmLimitNotification",this.language)),e("div",{class:"confirm-modal-buttons"},e("button",{class:"confirm-limit-close",onClick:()=>this.handleCloseConfirm()},o("confirmLimitClose",this.language)),e("button",{class:"confirm-limit-save",onClick:()=>this.handleSaveSkip()},o("confirmLimitSave",this.language))))):null)}static get watchers(){return{clientStyling:["handleClientStylingChange"],clientStylingUrl:["handleClientStylingUrlChange"],mbSource:["handleMbSourceChange"]}}};xl.style='@charset "UTF-8";*,*::before,*::after{padding:0;margin:0;box-sizing:border-box}:host{--vaadin-input-field-invalid-hover-highlight:transparent;--vaadin-input-field-label-color:var(--emw--modal-label-color, #ababab);--vaadin-input-field-background:var(--emw--modal-input-bg, #4f4f4f);--vaadin-input-field-hovered-label-color:var(--emw--modal-label-color, #ababab);--vaadin-input-field-value-color:var(--emw--modal-label-color, #ababab);--vaadin-input-field-focused-label-color:var(--emw--modal-label-color, #ababab);--vaadin-input-field-placeholder-color:var(--emw--modal-label-color, #ababab)}vaadin-combo-box{border:none;width:100%;background-color:transparent}vaadin-combo-box::part(input-field){padding-left:15px;height:40px}input[type=number]::-webkit-outer-spin-button,input[type=number]::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}input[type=number]{-moz-appearance:textfield}.type-select-label,.limit-period-label,.amount-input-label{display:inline-block;font-size:14px;color:var(--emw--modal-label-color, #ababab);margin:0;padding-bottom:8px;font-weight:400}.player-limit-modal{display:flex;position:fixed;align-items:center;justify-content:center;width:100%;height:100%;z-index:200;top:0;left:0;padding:0 10px;background-color:rgba(0, 0, 0, 0.7)}.player-limit-modal .limit-modal-container{color:var(--emw--modal-font-color, #fff);padding:15px;max-width:700px;min-width:300px;max-height:90vh;overflow-y:auto;position:relative;min-height:200px;border-radius:4px;background-color:var(--emw--color-modal-background, #353535)}.player-limit-modal .limit-modal-container .limit-modal-content.disable-content{pointer-events:none;cursor:not-allowed;opacity:0.4}.player-limit-modal .limit-modal-container .error-message{display:block;color:var(--emw--color-error, red);min-height:16px}.player-limit-modal .limit-modal-container .limit-modal-title h2{font-size:16px;font-weight:500;margin-top:15px;margin-bottom:15px}.player-limit-modal .limit-modal-container .limit-item:nth-of-type(1) .remove-limit-button{display:none}.player-limit-modal .limit-modal-container .limit-item:not(:nth-of-type(1)){padding:9px;margin:14px 0;border-radius:6px;border:1px solid #6a6a6a}.player-limit-modal .limit-modal-container .limit-item-period .limit-period-wrapper{display:flex;flex-wrap:nowrap;justify-content:flex-start;align-items:center;gap:4px}.player-limit-modal .limit-modal-container .limit-item-period .limit-period-wrapper .limit-period-option{flex-grow:1;border:1px solid transparent;cursor:pointer;background:var(--emw--modal-input-bg, #4f4f4f);width:100px;height:40px;font-size:14px;border-radius:4px;color:var(--emw--modal-font-color, #fff);transition:0.5s}.player-limit-modal .limit-modal-container .limit-item-period .limit-period-wrapper .limit-period-option:disabled{cursor:not-allowed;opacity:0.4}.player-limit-modal .limit-modal-container .limit-item-period .limit-period-wrapper .limit-period-option.selected{border-color:var(--emw--color-primary, #ffe30c)}.player-limit-modal .limit-modal-container .limit-item-amount .amount-input .amount-input-wrapper{display:flex;flex-wrap:nowrap}.player-limit-modal .limit-modal-container .limit-item-amount .amount-input .amount-input-content{position:relative;flex:1;margin-right:6px}.player-limit-modal .limit-modal-container .limit-item-amount .amount-input .amount-input-content .amount-input-inner{padding-right:30px;padding-left:15px;outline:none;border:none;height:40px;color:var(--emw--modal-label-color, #ababab);background-color:var(--emw--modal-input-bg, #4f4f4f);width:100%;border-radius:4px}.player-limit-modal .limit-modal-container .limit-item-amount .amount-input .amount-input-content .amount-input-suffix{width:20px;height:20px;background-color:var(--emw--modal-label-color, #ababab);border-radius:50%;position:absolute;right:0px;transform:translate(-50%, -50%);top:50%;text-align:center;pointer-events:none}.player-limit-modal .limit-modal-container .limit-item-amount .amount-input .amount-input-content .amount-input-suffix i{color:var(--emw--modal-input-bg, #4f4f4f)}.player-limit-modal .limit-modal-container .limit-item-amount .remove-limit-button{width:40px;height:40px;border:none;border-radius:4px;cursor:pointer;background-color:color-mix(in srgb, var(--emw--color-primary, #ffe30c) 20%, transparent 80%);transition:2s}.player-limit-modal .limit-modal-container .limit-item-amount .remove-limit-button:hover{background-color:color-mix(in srgb, var(--emw--color-primary, #ffe30c) 50%, white 50%)}.player-limit-modal .limit-modal-container .limit-item-amount .remove-limit-button svg{fill:var(--emw--color-primary, #ffe30c)}.player-limit-modal .limit-modal-container .checkbox-container label{display:flex;align-items:center;gap:6px}.player-limit-modal .limit-modal-container .checkbox-container .checkbox-original{opacity:0;width:0;height:0;z-index:-1;position:absolute}.player-limit-modal .limit-modal-container .checkbox-container .checkbox-original:checked+.checkbox-custom::after{opacity:1}.player-limit-modal .limit-modal-container .checkbox-container .checkbox-custom{display:inline-block;width:18px;height:18px;background:var(--emw--modal-input-bg, #4f4f4f);border-radius:3px;position:relative;transition:0.2s}.player-limit-modal .limit-modal-container .checkbox-container .checkbox-custom::after{content:"✔";position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);color:var(--emw--modal-font-color, #fff);font-size:12px;opacity:0;transition:opacity 0.2s}.player-limit-modal .limit-modal-container .checkbox-container .checkbox-label{color:var(--emw--modal-label-color, #ababab);font-size:14px;cursor:pointer;user-select:none}.player-limit-modal .limit-modal-container .limit-buttons{display:flex;justify-content:space-around;align-items:center;gap:10px;margin-top:10px}.player-limit-modal .limit-modal-container .limit-buttons .add-limit{display:inline-flex;align-items:center;justify-content:center;gap:5px;cursor:pointer;border:1px solid var(--emw--modal-font-color, #fff);width:150px;height:40px;background:transparent;border-radius:6px;color:var(--emw--modal-font-color, #fff)}.player-limit-modal .limit-modal-container .limit-buttons .add-limit:disabled{cursor:not-allowed;opacity:0.4}.player-limit-modal .limit-modal-container .limit-buttons .add-limit .add-limit-mark{text-align:center;font-size:14px;fill:var(--emw--modal-font-color, #fff)}.player-limit-modal .limit-modal-container .limit-buttons .save-limit{cursor:pointer;border:1px solid var(--emw--color-primary, #ffe30c);background:var(--emw--color-primary, #ffe30c);width:150px;height:40px;border-radius:6px;color:var(--emw--color-black, black)}.player-limit-modal .limit-modal-container .limit-buttons .save-limit:disabled{cursor:not-allowed;opacity:0.4}.player-limit-modal .limit-modal-container .compliance-content{margin-top:15px;width:300px}.player-limit-modal .confirm-modal{background-color:rgba(0, 0, 0, 0.7);position:fixed;z-index:210;top:0;left:0;padding:0 10px;width:100%;height:100%;display:flex;align-items:center;justify-content:center}.player-limit-modal .confirm-modal .confirm-modal-content{color:var(--emw--modal-font-color, #fff);padding:15px;padding-top:10px;box-sizing:padding-box;width:336px;overflow-y:auto;position:relative;border-radius:4px;background-color:var(--emw--color-modal-background, #353535)}.player-limit-modal .confirm-modal .confirm-modal-content .confirm-modal-title{font-size:16px;font-weight:500;margin-top:15px;margin-bottom:15px}.player-limit-modal .confirm-modal .confirm-modal-content .confirm-modal-buttons{display:flex;justify-content:space-around;align-items:center;gap:10px;margin-top:10px}.player-limit-modal .confirm-modal .confirm-modal-content .confirm-modal-buttons .confirm-limit-close{cursor:pointer;border:1px solid var(--emw--modal-font-color, #fff);width:150px;height:40px;background:transparent;border-radius:6px;color:var(--emw--modal-font-color, #fff)}.player-limit-modal .confirm-modal .confirm-modal-content .confirm-modal-buttons .confirm-limit-save{cursor:pointer;border:1px solid var(--emw--color-primary, #ffe30c);background:var(--emw--color-primary, #ffe30c);width:150px;height:40px;border-radius:6px;color:var(--emw--color-black, black)}';export{xl as P}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{P as player_limit_notification_nd}from"./player-limit-notification-nd-
|
|
1
|
+
export{P as player_limit_notification_nd}from"./player-limit-notification-nd-3a25cfcd.js";import"./index-862a608b.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{p as i,b as n}from"./index-
|
|
1
|
+
import{p as i,b as n}from"./index-862a608b.js";export{s as setNonce}from"./index-862a608b.js";import{g as t}from"./app-globals-0f993ce5.js";(()=>{const n=import.meta.url,t={};return""!==n&&(t.resourcesUrl=new URL(".",n).href),i(t)})().then((async i=>(await t(),n([["player-limit-notification-nd",[[1,"player-limit-notification-nd",{mbSource:[513,"mb-source"],clientStyling:[513,"client-styling"],clientStylingUrl:[513,"client-styling-url"],session:[513],userid:[513],language:[513],endpoint:[513],limitsamount:[513],limitsperiods:[513],currency:[513],customcurrencysymbols:[513],translationurl:[513],showComplianceText:[516,"show-compliance-text"],limitItems:[32],limitTypeOptions:[32],skipLimit:[32],loading:[32],confirmPopupVisibility:[32]},null,{clientStyling:["handleClientStylingChange"],clientStylingUrl:["handleClientStylingUrlChange"],mbSource:["handleMbSourceChange"]}]]]],i))));
|
package/dist/types/components/player-limit-notification-nd/player-limit-notification-nd.d.ts
CHANGED
|
@@ -13,7 +13,7 @@ export declare class PlayerLimitNotificationNd {
|
|
|
13
13
|
currency: string;
|
|
14
14
|
customcurrencysymbols: string;
|
|
15
15
|
translationurl: string;
|
|
16
|
-
|
|
16
|
+
showComplianceText: boolean;
|
|
17
17
|
private stylingContainer;
|
|
18
18
|
private stylingSubscription;
|
|
19
19
|
readonly MATCH_CONFIG_AMOUNT: RegExp;
|
|
@@ -9,7 +9,6 @@ export namespace Components {
|
|
|
9
9
|
interface PlayerLimitNotificationNd {
|
|
10
10
|
"clientStyling": string;
|
|
11
11
|
"clientStylingUrl": string;
|
|
12
|
-
"complianceText": string;
|
|
13
12
|
"currency": string;
|
|
14
13
|
"customcurrencysymbols": string;
|
|
15
14
|
"endpoint": string;
|
|
@@ -18,6 +17,7 @@ export namespace Components {
|
|
|
18
17
|
"limitsperiods": string;
|
|
19
18
|
"mbSource": string;
|
|
20
19
|
"session": string;
|
|
20
|
+
"showComplianceText": boolean;
|
|
21
21
|
"translationurl": string;
|
|
22
22
|
"userid": string;
|
|
23
23
|
}
|
|
@@ -37,7 +37,6 @@ declare namespace LocalJSX {
|
|
|
37
37
|
interface PlayerLimitNotificationNd {
|
|
38
38
|
"clientStyling"?: string;
|
|
39
39
|
"clientStylingUrl"?: string;
|
|
40
|
-
"complianceText"?: string;
|
|
41
40
|
"currency"?: string;
|
|
42
41
|
"customcurrencysymbols"?: string;
|
|
43
42
|
"endpoint"?: string;
|
|
@@ -46,6 +45,7 @@ declare namespace LocalJSX {
|
|
|
46
45
|
"limitsperiods"?: string;
|
|
47
46
|
"mbSource"?: string;
|
|
48
47
|
"session"?: string;
|
|
48
|
+
"showComplianceText"?: boolean;
|
|
49
49
|
"translationurl"?: string;
|
|
50
50
|
"userid"?: string;
|
|
51
51
|
}
|