@everymatrix/player-limit-notification-nd 0.0.1
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/app-globals-3a1e7e63.js +5 -0
- package/dist/cjs/index-8f6e611d.js +1261 -0
- package/dist/cjs/index.cjs.js +10 -0
- package/dist/cjs/loader.cjs.js +15 -0
- package/dist/cjs/player-limit-notification-nd-c65673d9.js +7505 -0
- package/dist/cjs/player-limit-notification-nd.cjs.entry.js +10 -0
- package/dist/cjs/player-limit-notification-nd.cjs.js +25 -0
- package/dist/collection/collection-manifest.json +12 -0
- package/dist/collection/components/player-limit-notification-nd/index.js +1 -0
- package/dist/collection/components/player-limit-notification-nd/limitConfig.js +50 -0
- package/dist/collection/components/player-limit-notification-nd/player-limit-notification-nd.css +315 -0
- package/dist/collection/components/player-limit-notification-nd/player-limit-notification-nd.js +815 -0
- package/dist/collection/index.js +1 -0
- package/dist/collection/utils/locale.utils.js +131 -0
- package/dist/collection/utils/types.js +19 -0
- package/dist/collection/utils/utils.js +3 -0
- package/dist/esm/app-globals-0f993ce5.js +3 -0
- package/dist/esm/index-92f4161f.js +1234 -0
- package/dist/esm/index.js +2 -0
- package/dist/esm/loader.js +11 -0
- package/dist/esm/player-limit-notification-nd-c9cf02e4.js +7503 -0
- package/dist/esm/player-limit-notification-nd.entry.js +2 -0
- package/dist/esm/player-limit-notification-nd.js +20 -0
- package/dist/index.cjs.js +1 -0
- package/dist/index.js +1 -0
- package/dist/player-limit-notification-nd/app-globals-0f993ce5.js +1 -0
- package/dist/player-limit-notification-nd/index-92f4161f.js +2 -0
- package/dist/player-limit-notification-nd/index.esm.js +1 -0
- package/dist/player-limit-notification-nd/player-limit-notification-nd-c9cf02e4.js +6657 -0
- package/dist/player-limit-notification-nd/player-limit-notification-nd.entry.js +1 -0
- package/dist/player-limit-notification-nd/player-limit-notification-nd.esm.js +1 -0
- package/dist/stencil.config.dev.js +19 -0
- package/dist/stencil.config.js +19 -0
- package/dist/storybook/main.js +43 -0
- package/dist/storybook/preview.js +9 -0
- package/dist/types/builds/emfe-widgets/widgets-monorepo/packages/stencil/player-limit-notification-nd/.stencil/libs/common/src/storybook/storybook-utils.d.ts +39 -0
- package/dist/types/builds/emfe-widgets/widgets-monorepo/packages/stencil/player-limit-notification-nd/.stencil/packages/stencil/player-limit-notification-nd/stencil.config.d.ts +2 -0
- package/dist/types/builds/emfe-widgets/widgets-monorepo/packages/stencil/player-limit-notification-nd/.stencil/packages/stencil/player-limit-notification-nd/stencil.config.dev.d.ts +2 -0
- package/dist/types/builds/emfe-widgets/widgets-monorepo/packages/stencil/player-limit-notification-nd/.stencil/packages/stencil/player-limit-notification-nd/storybook/main.d.ts +3 -0
- package/dist/types/builds/emfe-widgets/widgets-monorepo/packages/stencil/player-limit-notification-nd/.stencil/packages/stencil/player-limit-notification-nd/storybook/preview.d.ts +70 -0
- package/dist/types/builds/emfe-widgets/widgets-monorepo/packages/stencil/player-limit-notification-nd/.stencil/tools/plugins/index.d.ts +4 -0
- package/dist/types/builds/emfe-widgets/widgets-monorepo/packages/stencil/player-limit-notification-nd/.stencil/tools/plugins/lazy-load-chunk-plugin.d.ts +12 -0
- package/dist/types/builds/emfe-widgets/widgets-monorepo/packages/stencil/player-limit-notification-nd/.stencil/tools/plugins/stencil-clean-deps-plugin.d.ts +5 -0
- package/dist/types/builds/emfe-widgets/widgets-monorepo/packages/stencil/player-limit-notification-nd/.stencil/tools/plugins/vite-chunk-plugin.d.ts +6 -0
- package/dist/types/builds/emfe-widgets/widgets-monorepo/packages/stencil/player-limit-notification-nd/.stencil/tools/plugins/vite-clean-deps-plugin.d.ts +4 -0
- package/dist/types/components/player-limit-notification-nd/index.d.ts +1 -0
- package/dist/types/components/player-limit-notification-nd/limitConfig.d.ts +50 -0
- package/dist/types/components/player-limit-notification-nd/player-limit-notification-nd.d.ts +71 -0
- package/dist/types/components.d.ts +61 -0
- package/dist/types/index.d.ts +1 -0
- package/dist/types/stencil-public-runtime.d.ts +1674 -0
- package/dist/types/utils/locale.utils.d.ts +2 -0
- package/dist/types/utils/types.d.ts +69 -0
- package/dist/types/utils/utils.d.ts +1 -0
- package/loader/cdn.js +1 -0
- package/loader/index.cjs.js +1 -0
- package/loader/index.d.ts +24 -0
- package/loader/index.es2017.js +1 -0
- package/loader/index.js +2 -0
- package/loader/package.json +11 -0
- package/package.json +27 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './components/player-limit-notification-nd';
|
|
@@ -0,0 +1,131 @@
|
|
|
1
|
+
const DEFAULT_LANGUAGE = 'en';
|
|
2
|
+
let TRANSLATIONS = {
|
|
3
|
+
en: {
|
|
4
|
+
selectLimitTypePlaceholder: 'Select your limit type',
|
|
5
|
+
selectLimitTypeLabel: 'Limit type',
|
|
6
|
+
selectLimitPeriodLabel: 'Period',
|
|
7
|
+
limitNotificationAmountLabel: 'Amount',
|
|
8
|
+
limitNotificationTitle: 'Set Limit',
|
|
9
|
+
limitNotificationSubTitle: 'Now is the perfect moment to set your limits',
|
|
10
|
+
daily: "daily",
|
|
11
|
+
weekly: 'weekly',
|
|
12
|
+
monthly: 'monthly',
|
|
13
|
+
invalidInputMessageLimitMin: 'The value entered must be higher than {minValue} {currency}.',
|
|
14
|
+
invalidInputMessageLimitMax: 'The value entered must be less than {maxValue} {currency}.',
|
|
15
|
+
emptyPeriodWarning: 'Period is required',
|
|
16
|
+
emptyLimitTypeWarning: 'Limit Type is required',
|
|
17
|
+
invalidAmount: 'invalid limit amount',
|
|
18
|
+
savePlayerLimit: 'Save',
|
|
19
|
+
addLimitType: 'Add another limit',
|
|
20
|
+
skipLimitLimitDescription: 'I do not wish to set a limit at this time.',
|
|
21
|
+
setLimitSuccessful: 'Your account limit has been successfully set.',
|
|
22
|
+
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.",
|
|
23
|
+
limitNotificationFail: 'Something went wrong while setting your account limits. Try again later.',
|
|
24
|
+
confirmLimitNotification: "Are you sure you want to delete the limits you’ve already set?",
|
|
25
|
+
confirmLimitClose: 'No, keep limits',
|
|
26
|
+
confirmLimitSave: 'Yes, delete limits'
|
|
27
|
+
},
|
|
28
|
+
fr: {
|
|
29
|
+
selectLimitTypePlaceholder: "Sélectionnez votre type de limite",
|
|
30
|
+
selectLimitTypeLabel: "Type de limite",
|
|
31
|
+
selectLimitPeriodLabel: "Période",
|
|
32
|
+
limitNotificationAmountLabel: "Montant",
|
|
33
|
+
limitNotificationTitle: "Définir une limite",
|
|
34
|
+
limitNotificationSubTitle: "C'est le moment idéal pour définir vos limites",
|
|
35
|
+
daily: "quotidienne",
|
|
36
|
+
weekly: "hebdomadaire",
|
|
37
|
+
monthly: "mensuelle",
|
|
38
|
+
invalidInputMessageLimitMin: "La valeur saisie doit être supérieure à {minValue} {currency}.",
|
|
39
|
+
invalidInputMessageLimitMax: "La valeur saisie doit être inférieure à {maxValue} {currency}.",
|
|
40
|
+
emptyPeriodWarning: "La période est obligatoire",
|
|
41
|
+
emptyLimitTypeWarning: "Le type de limite est obligatoire",
|
|
42
|
+
invalidAmount: "montant de limite invalide",
|
|
43
|
+
savePlayerLimit: "Enregistrer",
|
|
44
|
+
addLimitType: "Ajouter une autre limite",
|
|
45
|
+
skipLimitLimitDescription: "Je ne souhaite pas définir de limite pour le moment.",
|
|
46
|
+
setLimitSuccessful: "La limite de votre compte a été définie avec succès.",
|
|
47
|
+
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.",
|
|
48
|
+
limitNotificationFail: "Quelque chose s'est mal passé lors de la définition des limites de votre compte. Veuillez réessayer plus tard.",
|
|
49
|
+
confirmLimitNotification: "Êtes-vous sûr de vouloir supprimer les limites que vous avez déjà définies ?",
|
|
50
|
+
confirmLimitClose: "Non, garder les limites",
|
|
51
|
+
confirmLimitSave: "Oui, supprimer les limites"
|
|
52
|
+
},
|
|
53
|
+
ro: {
|
|
54
|
+
selectLimitTypePlaceholder: "Selectați tipul de limită",
|
|
55
|
+
selectLimitTypeLabel: "Tip limită",
|
|
56
|
+
selectLimitPeriodLabel: "Perioadă",
|
|
57
|
+
limitNotificationAmountLabel: "Sumă",
|
|
58
|
+
limitNotificationTitle: "Setați Limita",
|
|
59
|
+
limitNotificationSubTitle: "Acum este momentul perfect pentru a vă seta limitele",
|
|
60
|
+
daily: "zilnic",
|
|
61
|
+
weekly: "săptămânal",
|
|
62
|
+
monthly: "lunar",
|
|
63
|
+
invalidInputMessageLimitMin: "Valoarea introdusă trebuie să fie mai mare de {minValue} {currency}.",
|
|
64
|
+
invalidInputMessageLimitMax: "Valoarea introdusă trebuie să fie mai mică de {maxValue} {currency}.",
|
|
65
|
+
emptyPeriodWarning: "Perioada este obligatorie",
|
|
66
|
+
emptyLimitTypeWarning: "Tipul de limită este obligatoriu",
|
|
67
|
+
invalidAmount: "sumă limită invalidă",
|
|
68
|
+
savePlayerLimit: "Salvați",
|
|
69
|
+
addLimitType: "Adăugați altă limită",
|
|
70
|
+
skipLimitLimitDescription: "Nu doresc să setez o limită în acest moment.",
|
|
71
|
+
setLimitSuccessful: "Limita contului dvs. a fost setată cu succes.",
|
|
72
|
+
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.",
|
|
73
|
+
limitNotificationFail: "Ceva nu a funcționat corect la setarea limitelor contului dvs. Încercați din nou mai târziu.",
|
|
74
|
+
confirmLimitNotification: "Sigur doriți să ștergeți limitele pe care le-ați setat deja?",
|
|
75
|
+
confirmLimitClose: "Nu, păstrați limitele",
|
|
76
|
+
confirmLimitSave: "Da, ștergeți limitele"
|
|
77
|
+
},
|
|
78
|
+
hu: {
|
|
79
|
+
selectLimitTypePlaceholder: "Válassza ki a limit típusát",
|
|
80
|
+
selectLimitTypeLabel: "Limit típusa",
|
|
81
|
+
selectLimitPeriodLabel: "Időszak",
|
|
82
|
+
limitNotificationAmountLabel: "Összeg",
|
|
83
|
+
limitNotificationTitle: "Limit beállítása",
|
|
84
|
+
limitNotificationSubTitle: "Most van a legjobb alkalom a limitjeinek beállításához",
|
|
85
|
+
daily: "napi",
|
|
86
|
+
weekly: "heti",
|
|
87
|
+
monthly: "havi",
|
|
88
|
+
invalidInputMessageLimitMin: "A megadott értéknek nagyobbnak kell lennie, mint {minValue} {currency}.",
|
|
89
|
+
invalidInputMessageLimitMax: "A megadott értéknek kisebbnek kell lennie, mint {maxValue} {currency}.",
|
|
90
|
+
emptyPeriodWarning: "Az időszak megadása kötelező",
|
|
91
|
+
emptyLimitTypeWarning: "A limit típusának megadása kötelező",
|
|
92
|
+
invalidAmount: "érvénytelen limit összeg",
|
|
93
|
+
savePlayerLimit: "Mentés",
|
|
94
|
+
addLimitType: "Másik limit hozzáadása",
|
|
95
|
+
skipLimitLimitDescription: "Jelenleg nem kívánok limitet beállítani.",
|
|
96
|
+
setLimitSuccessful: "A fiók limitje sikeresen beállítva.",
|
|
97
|
+
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.",
|
|
98
|
+
limitNotificationFail: "Hiba történt a fiók limitjeinek beállítása közben. Próbálja újra később.",
|
|
99
|
+
confirmLimitNotification: "Biztosan törölni szeretné a már beállított limitjeit?",
|
|
100
|
+
confirmLimitClose: "Nem, megtartom a limiteket",
|
|
101
|
+
confirmLimitSave: "Igen, törlöm a limiteket"
|
|
102
|
+
}
|
|
103
|
+
};
|
|
104
|
+
export const getTranslations = (url) => {
|
|
105
|
+
return new Promise((resolve) => {
|
|
106
|
+
fetch(url)
|
|
107
|
+
.then((res) => res.json())
|
|
108
|
+
.then((data) => {
|
|
109
|
+
Object.keys(data).forEach((lang) => {
|
|
110
|
+
if (!TRANSLATIONS[lang]) {
|
|
111
|
+
TRANSLATIONS[lang] = {};
|
|
112
|
+
}
|
|
113
|
+
for (let key in data[lang]) {
|
|
114
|
+
TRANSLATIONS[lang][key] = data[lang][key];
|
|
115
|
+
}
|
|
116
|
+
});
|
|
117
|
+
resolve(true);
|
|
118
|
+
});
|
|
119
|
+
});
|
|
120
|
+
};
|
|
121
|
+
export const translate = (key, customLang, values) => {
|
|
122
|
+
const lang = customLang;
|
|
123
|
+
let translation = TRANSLATIONS[(lang !== undefined) && (lang in TRANSLATIONS) ? lang : DEFAULT_LANGUAGE][key];
|
|
124
|
+
if (values !== undefined) {
|
|
125
|
+
for (const [key, value] of Object.entries(values.values)) {
|
|
126
|
+
const regex = new RegExp(`{${key}}`, 'g');
|
|
127
|
+
translation = translation.replace(regex, value);
|
|
128
|
+
}
|
|
129
|
+
}
|
|
130
|
+
return translation;
|
|
131
|
+
};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
export var LimitType;
|
|
2
|
+
(function (LimitType) {
|
|
3
|
+
LimitType["WAGER"] = "wager";
|
|
4
|
+
LimitType["DEPOSIT"] = "deposit";
|
|
5
|
+
LimitType["LOSS"] = "loss";
|
|
6
|
+
LimitType["NET"] = "net";
|
|
7
|
+
LimitType["LUGAS"] = "lugas";
|
|
8
|
+
LimitType["STAKE"] = "stake";
|
|
9
|
+
LimitType["SESSION_LIMIT"] = "sessionLimit";
|
|
10
|
+
LimitType["CUMULATIVE_SESSION"] = "cumulativeSession";
|
|
11
|
+
LimitType["NET_DEPOSIT"] = "netdeposit";
|
|
12
|
+
})(LimitType || (LimitType = {}));
|
|
13
|
+
export var LimitPeriod;
|
|
14
|
+
(function (LimitPeriod) {
|
|
15
|
+
LimitPeriod["DAILY"] = "daily";
|
|
16
|
+
LimitPeriod["WEEKLY"] = "weekly";
|
|
17
|
+
LimitPeriod["MONTHLY"] = "monthly";
|
|
18
|
+
LimitPeriod["NONE"] = "none";
|
|
19
|
+
})(LimitPeriod || (LimitPeriod = {}));
|