@everymatrix/player-step-up-auth 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/app-globals-3a1e7e63.js +5 -0
- package/dist/cjs/index-bf4d774c.js +1330 -0
- package/dist/cjs/index.cjs.js +10 -0
- package/dist/cjs/loader.cjs.js +15 -0
- package/dist/cjs/player-step-up-auth-2fac8df5.js +617 -0
- package/dist/cjs/player-step-up-auth.cjs.entry.js +10 -0
- package/dist/cjs/player-step-up-auth.cjs.js +25 -0
- package/dist/collection/collection-manifest.json +12 -0
- package/dist/collection/components/player-step-up-auth/index.js +1 -0
- package/dist/collection/components/player-step-up-auth/player-step-up-auth.css +131 -0
- package/dist/collection/components/player-step-up-auth/player-step-up-auth.js +543 -0
- package/dist/collection/index.js +1 -0
- package/dist/collection/utils/types.js +0 -0
- package/dist/collection/utils/utils.js +177 -0
- package/dist/esm/app-globals-0f993ce5.js +3 -0
- package/dist/esm/index-c6eee6d8.js +1302 -0
- package/dist/esm/index.js +2 -0
- package/dist/esm/loader.js +11 -0
- package/dist/esm/player-step-up-auth-009badea.js +615 -0
- package/dist/esm/player-step-up-auth.entry.js +2 -0
- package/dist/esm/player-step-up-auth.js +20 -0
- package/dist/index.cjs.js +1 -0
- package/dist/index.js +1 -0
- package/dist/player-step-up-auth/index.esm.js +1 -0
- package/dist/player-step-up-auth/p-3b187b6e.entry.js +1 -0
- package/dist/player-step-up-auth/p-c6a4faff.js +2 -0
- package/dist/player-step-up-auth/p-e1255160.js +1 -0
- package/dist/player-step-up-auth/p-f97ac666.js +1 -0
- package/dist/player-step-up-auth/player-step-up-auth.esm.js +1 -0
- package/dist/stencil.config.dev.js +19 -0
- package/dist/stencil.config.js +18 -0
- package/dist/storybook/main.js +43 -0
- package/dist/storybook/preview.js +9 -0
- package/dist/types/Users/adrian.pripon/Documents/Work/widgets-monorepo/packages/stencil/player-step-up-auth/.stencil/libs/common/src/storybook/storybook-utils.d.ts +39 -0
- package/dist/types/Users/adrian.pripon/Documents/Work/widgets-monorepo/packages/stencil/player-step-up-auth/.stencil/packages/stencil/player-step-up-auth/stencil.config.d.ts +2 -0
- package/dist/types/Users/adrian.pripon/Documents/Work/widgets-monorepo/packages/stencil/player-step-up-auth/.stencil/packages/stencil/player-step-up-auth/stencil.config.dev.d.ts +2 -0
- package/dist/types/Users/adrian.pripon/Documents/Work/widgets-monorepo/packages/stencil/player-step-up-auth/.stencil/packages/stencil/player-step-up-auth/storybook/main.d.ts +3 -0
- package/dist/types/Users/adrian.pripon/Documents/Work/widgets-monorepo/packages/stencil/player-step-up-auth/.stencil/packages/stencil/player-step-up-auth/storybook/preview.d.ts +70 -0
- package/dist/types/Users/adrian.pripon/Documents/Work/widgets-monorepo/packages/stencil/player-step-up-auth/.stencil/tools/plugins/index.d.ts +3 -0
- package/dist/types/Users/adrian.pripon/Documents/Work/widgets-monorepo/packages/stencil/player-step-up-auth/.stencil/tools/plugins/stencil-clean-deps-plugin.d.ts +5 -0
- package/dist/types/Users/adrian.pripon/Documents/Work/widgets-monorepo/packages/stencil/player-step-up-auth/.stencil/tools/plugins/vite-chunk-plugin.d.ts +6 -0
- package/dist/types/Users/adrian.pripon/Documents/Work/widgets-monorepo/packages/stencil/player-step-up-auth/.stencil/tools/plugins/vite-clean-deps-plugin.d.ts +4 -0
- package/dist/types/components/player-step-up-auth/index.d.ts +1 -0
- package/dist/types/components/player-step-up-auth/player-step-up-auth.d.ts +168 -0
- package/dist/types/components.d.ts +93 -0
- package/dist/types/index.d.ts +1 -0
- package/dist/types/stencil-public-runtime.d.ts +1674 -0
- package/dist/types/utils/types.d.ts +0 -0
- package/dist/types/utils/utils.d.ts +2 -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,177 @@
|
|
|
1
|
+
const DEFAULT_LANGUAGE = 'en';
|
|
2
|
+
const TRANSLATIONS = {
|
|
3
|
+
en: {
|
|
4
|
+
popupMessage: 'Please enter the security code received on your email address to perform the update.',
|
|
5
|
+
minutes: 'minutes',
|
|
6
|
+
errorHeader: 'Error',
|
|
7
|
+
configError: 'Unable to load OTP data. Please try again later.',
|
|
8
|
+
otpHeading: 'Enter OTP',
|
|
9
|
+
resendOtp: 'Resent OTP',
|
|
10
|
+
submit: 'Submit',
|
|
11
|
+
close: 'Close',
|
|
12
|
+
invalidOtp: 'The code you\'ve sent is not valid. Please try again.',
|
|
13
|
+
accountBlocked: 'Too many attempts for OTP. Your account has been blocked for one hour.',
|
|
14
|
+
submissionError: 'Something went wrong. Please try again.'
|
|
15
|
+
},
|
|
16
|
+
ro: {
|
|
17
|
+
popupMessage: 'Introduceți codul de securitate primit pe adresa dvs. de e-mail pentru a efectua actualizarea.',
|
|
18
|
+
minutes: 'minute',
|
|
19
|
+
errorHeader: 'Eroare',
|
|
20
|
+
configError: 'Nu s-a putut încărca datele OTP. Vă rugăm să încercați din nou mai târziu.',
|
|
21
|
+
otpHeading: 'Introduceți OTP',
|
|
22
|
+
resendOtp: 'Retrimitere OTP',
|
|
23
|
+
submit: 'Trimite',
|
|
24
|
+
close: 'Închide',
|
|
25
|
+
invalidOtp: 'Codul introdus nu este valid. Vă rugăm să încercați din nou.',
|
|
26
|
+
accountBlocked: 'Prea multe încercări de OTP. Contul dvs. a fost blocat timp de o oră.',
|
|
27
|
+
submissionError: 'Ceva a mers prost. Vă rugăm să încercați din nou.'
|
|
28
|
+
},
|
|
29
|
+
fr: {
|
|
30
|
+
popupMessage: 'Veuillez entrer le code de sécurité reçu sur votre adresse e-mail pour effectuer la mise à jour.',
|
|
31
|
+
minutes: 'minutes',
|
|
32
|
+
errorHeader: 'Erreur',
|
|
33
|
+
configError: 'Impossible de charger les données OTP. Veuillez réessayer plus tard.',
|
|
34
|
+
otpHeading: 'Entrez OTP',
|
|
35
|
+
resendOtp: 'Renvoyer OTP',
|
|
36
|
+
submit: 'Soumettre',
|
|
37
|
+
close: 'Fermer',
|
|
38
|
+
invalidOtp: 'Le code que vous avez saisi n’est pas valide. Veuillez réessayer.',
|
|
39
|
+
accountBlocked: 'Trop de tentatives OTP. Votre compte a été bloqué pendant une heure.',
|
|
40
|
+
submissionError: 'Quelque chose s\'est mal passé. Veuillez réessayer.'
|
|
41
|
+
},
|
|
42
|
+
hu: {
|
|
43
|
+
popupMessage: 'Kérjük, adja meg az e-mail címére küldött biztonsági kódot a frissítés végrehajtásához.',
|
|
44
|
+
minutes: 'perc',
|
|
45
|
+
errorHeader: 'Hiba',
|
|
46
|
+
configError: 'Nem sikerült betölteni az OTP adatokat. Kérjük, próbálja újra később.',
|
|
47
|
+
otpHeading: 'OTP megadása',
|
|
48
|
+
resendOtp: 'Újraküldés',
|
|
49
|
+
submit: 'Beküldés',
|
|
50
|
+
close: 'Bezárás',
|
|
51
|
+
invalidOtp: 'A megadott kód érvénytelen. Kérjük, próbálja újra.',
|
|
52
|
+
accountBlocked: 'Túl sok OTP próbálkozás. A fiókja egy órára zárolva lett.',
|
|
53
|
+
submissionError: 'Valami hiba történt. Kérjük, próbálja újra.'
|
|
54
|
+
},
|
|
55
|
+
tr: {
|
|
56
|
+
popupMessage: 'Güncellemeyi gerçekleştirmek için e-posta adresinize gelen güvenlik kodunu girin.',
|
|
57
|
+
minutes: 'dakika',
|
|
58
|
+
errorHeader: 'Hata',
|
|
59
|
+
configError: 'OTP verisi yüklenemedi. Lütfen daha sonra tekrar deneyin.',
|
|
60
|
+
otpHeading: 'OTP Girin',
|
|
61
|
+
resendOtp: 'OTP\'yi Yeniden Gönder',
|
|
62
|
+
submit: 'Gönder',
|
|
63
|
+
close: 'Kapat',
|
|
64
|
+
invalidOtp: 'Gönderdiğiniz kod geçersiz. Lütfen tekrar deneyin.',
|
|
65
|
+
accountBlocked: 'Çok fazla OTP denemesi yapıldı. Hesabınız bir saat boyunca kilitlendi.',
|
|
66
|
+
submissionError: 'Bir şeyler yanlış gitti. Lütfen tekrar deneyin.'
|
|
67
|
+
},
|
|
68
|
+
el: {
|
|
69
|
+
popupMessage: 'Παρακαλώ εισάγετε τον κωδικό ασφαλείας που λάβατε στο email σας για να ολοκληρώσετε την ενημέρωση.',
|
|
70
|
+
minutes: 'λεπτά',
|
|
71
|
+
errorHeader: 'Σφάλμα',
|
|
72
|
+
configError: 'Δεν ήταν δυνατή η φόρτωση των δεδομένων OTP. Παρακαλούμε προσπαθήστε ξανά αργότερα.',
|
|
73
|
+
otpHeading: 'Εισαγωγή OTP',
|
|
74
|
+
resendOtp: 'Αποστολή ξανά OTP',
|
|
75
|
+
submit: 'Υποβολή',
|
|
76
|
+
close: 'Κλείσιμο',
|
|
77
|
+
invalidOtp: 'Ο κωδικός που εισαγάγατε δεν είναι έγκυρος. Παρακαλώ προσπαθήστε ξανά.',
|
|
78
|
+
accountBlocked: 'Πάρα πολλές προσπάθειες OTP. Ο λογαριασμός σας έχει αποκλειστεί για μία ώρα.',
|
|
79
|
+
submissionError: 'Κάτι πήγε στραβά. Παρακαλώ προσπαθήστε ξανά.'
|
|
80
|
+
},
|
|
81
|
+
es: {
|
|
82
|
+
popupMessage: 'Por favor, introduzca el código de seguridad recibido en su correo electrónico para realizar la actualización.',
|
|
83
|
+
minutes: 'minutos',
|
|
84
|
+
errorHeader: 'Error',
|
|
85
|
+
configError: 'No se pudo cargar los datos del OTP. Por favor, inténtelo de nuevo más tarde.',
|
|
86
|
+
otpHeading: 'Introducir OTP',
|
|
87
|
+
resendOtp: 'Reenviar OTP',
|
|
88
|
+
submit: 'Enviar',
|
|
89
|
+
close: 'Cerrar',
|
|
90
|
+
invalidOtp: 'El código que ingresaste no es válido. Por favor, inténtalo de nuevo.',
|
|
91
|
+
accountBlocked: 'Demasiados intentos de OTP. Su cuenta ha sido bloqueada por una hora.',
|
|
92
|
+
submissionError: 'Algo salió mal. Por favor, inténtelo de nuevo.'
|
|
93
|
+
},
|
|
94
|
+
pt: {
|
|
95
|
+
popupMessage: 'Por favor, insira o código de segurança recebido no seu e-mail para realizar a atualização.',
|
|
96
|
+
minutes: 'minutos',
|
|
97
|
+
errorHeader: 'Erro',
|
|
98
|
+
configError: 'Não foi possível carregar os dados do OTP. Tente novamente mais tarde.',
|
|
99
|
+
otpHeading: 'Insira o OTP',
|
|
100
|
+
resendOtp: 'Reenviar OTP',
|
|
101
|
+
submit: 'Enviar',
|
|
102
|
+
close: 'Fechar',
|
|
103
|
+
invalidOtp: 'O código inserido não é válido. Por favor, tente novamente.',
|
|
104
|
+
accountBlocked: 'Muitas tentativas de OTP. Sua conta foi bloqueada por uma hora.',
|
|
105
|
+
submissionError: 'Algo deu errado. Por favor, tente novamente.'
|
|
106
|
+
},
|
|
107
|
+
hr: {
|
|
108
|
+
popupMessage: 'Unesite sigurnosni kod primljen na vašu e-mail adresu kako biste izvršili ažuriranje.',
|
|
109
|
+
minutes: 'minute',
|
|
110
|
+
errorHeader: 'Greška',
|
|
111
|
+
configError: 'Nije moguće učitati OTP podatke. Pokušajte ponovno kasnije.',
|
|
112
|
+
otpHeading: 'Unesite OTP',
|
|
113
|
+
resendOtp: 'Ponovno pošalji OTP',
|
|
114
|
+
submit: 'Pošalji',
|
|
115
|
+
close: 'Zatvori',
|
|
116
|
+
invalidOtp: 'Uneseni kod nije valjan. Molimo pokušajte ponovo.',
|
|
117
|
+
accountBlocked: 'Previše pokušaja unosa OTP-a. Vaš račun je blokiran na jedan sat.',
|
|
118
|
+
submissionError: 'Nešto je pošlo po zlu. Molimo pokušajte ponovo.'
|
|
119
|
+
},
|
|
120
|
+
de: {
|
|
121
|
+
popupMessage: 'Bitte geben Sie den Sicherheitscode ein, den Sie an Ihre E-Mail-Adresse erhalten haben, um das Update durchzuführen.',
|
|
122
|
+
minutes: 'Minuten',
|
|
123
|
+
errorHeader: 'Fehler',
|
|
124
|
+
configError: 'OTP-Daten konnten nicht geladen werden. Bitte versuchen Sie es später erneut.',
|
|
125
|
+
otpHeading: 'OTP eingeben',
|
|
126
|
+
resendOtp: 'OTP erneut senden',
|
|
127
|
+
submit: 'Absenden',
|
|
128
|
+
close: 'Schließen',
|
|
129
|
+
invalidOtp: 'Der eingegebene Code ist ungültig. Bitte versuchen Sie es erneut.',
|
|
130
|
+
accountBlocked: 'Zu viele OTP-Versuche. Ihr Konto wurde für eine Stunde gesperrt.',
|
|
131
|
+
submissionError: 'Etwas ist schiefgelaufen. Bitte versuchen Sie es erneut.'
|
|
132
|
+
},
|
|
133
|
+
'es-mx': {
|
|
134
|
+
popupMessage: 'Por favor, ingrese el código de seguridad recibido en su correo electrónico para realizar la actualización.',
|
|
135
|
+
minutes: 'minutos',
|
|
136
|
+
errorHeader: 'Error',
|
|
137
|
+
configError: 'No se pudieron cargar los datos del OTP. Inténtelo de nuevo más tarde.',
|
|
138
|
+
otpHeading: 'Ingrese OTP',
|
|
139
|
+
resendOtp: 'Reenviar OTP',
|
|
140
|
+
submit: 'Enviar',
|
|
141
|
+
close: 'Cerrar',
|
|
142
|
+
invalidOtp: 'El código que ingresó no es válido. Inténtelo de nuevo.',
|
|
143
|
+
accountBlocked: 'Demasiados intentos de OTP. Su cuenta ha sido bloqueada por una hora.',
|
|
144
|
+
submissionError: 'Algo salió mal. Por favor, inténtelo de nuevo.'
|
|
145
|
+
},
|
|
146
|
+
'pt-br': {
|
|
147
|
+
popupMessage: 'Por favor, digite o código de segurança recebido no seu e-mail para realizar a atualização.',
|
|
148
|
+
minutes: 'minutos',
|
|
149
|
+
errorHeader: 'Erro',
|
|
150
|
+
configError: 'Não foi possível carregar os dados do OTP. Tente novamente mais tarde.',
|
|
151
|
+
otpHeading: 'Digite o OTP',
|
|
152
|
+
resendOtp: 'Reenviar OTP',
|
|
153
|
+
submit: 'Enviar',
|
|
154
|
+
close: 'Fechar',
|
|
155
|
+
invalidOtp: 'O código informado não é válido. Tente novamente.',
|
|
156
|
+
accountBlocked: 'Muitas tentativas de OTP. Sua conta foi bloqueada por uma hora.',
|
|
157
|
+
submissionError: 'Algo deu errado. Por favor, tente novamente.'
|
|
158
|
+
},
|
|
159
|
+
};
|
|
160
|
+
export const getTranslations = (url) => {
|
|
161
|
+
return new Promise((resolve) => {
|
|
162
|
+
fetch(url)
|
|
163
|
+
.then((res) => res.json())
|
|
164
|
+
.then((data) => {
|
|
165
|
+
Object.keys(data).forEach((item) => {
|
|
166
|
+
for (let key in data[item]) {
|
|
167
|
+
TRANSLATIONS[item][key] = data[item][key];
|
|
168
|
+
}
|
|
169
|
+
});
|
|
170
|
+
resolve(true);
|
|
171
|
+
});
|
|
172
|
+
});
|
|
173
|
+
};
|
|
174
|
+
export const translate = (key, customLang) => {
|
|
175
|
+
const lang = customLang;
|
|
176
|
+
return TRANSLATIONS[lang !== undefined ? lang : DEFAULT_LANGUAGE][key];
|
|
177
|
+
};
|