@everymatrix/general-registration 1.22.10 → 1.23.2
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/checkbox-group-input_13.cjs.entry.js +27 -3
- package/dist/collection/components/general-registration/general-registration.css +17 -12
- package/dist/collection/components/general-registration/general-registration.js +8 -0
- package/dist/collection/utils/locale.utils.js +18 -2
- package/dist/components/general-registration.js +27 -3
- package/dist/esm/checkbox-group-input_13.entry.js +27 -3
- package/dist/general-registration/general-registration.esm.js +1 -1
- package/dist/general-registration/{p-d885d65d.entry.js → p-85ebcd84.entry.js} +55 -55
- package/dist/types/Users/dragos.bodea/Documents/everymatrix-prjs/emfe-widgets/widgets-stencil/packages/general-registration/.stencil/packages/general-registration/stencil.config.d.ts +2 -0
- package/dist/types/utils/locale.utils.d.ts +1 -0
- package/package.json +1 -1
- package/dist/types/Users/adrian.pripon/Documents/Work/widgets-stencil/packages/general-registration/.stencil/packages/general-registration/stencil.config.d.ts +0 -2
- /package/dist/types/Users/{adrian.pripon/Documents/Work → dragos.bodea/Documents/everymatrix-prjs/emfe-widgets}/widgets-stencil/packages/general-registration/.stencil/packages/general-input/src/utils/types.d.ts +0 -0
|
@@ -30021,7 +30021,8 @@ const TRANSLATIONS = {
|
|
|
30021
30021
|
"GmErr_Unauthorized": 'Something went wrong... Please try again.',
|
|
30022
30022
|
"GmErr_NotFound": 'Something went wrong... Please try again.',
|
|
30023
30023
|
"GmErr_UnexpectedException": 'Something went wrong... Please try again.',
|
|
30024
|
-
"generalError": "Something went wrong... Please try again."
|
|
30024
|
+
"generalError": "Something went wrong... Please try again.",
|
|
30025
|
+
"successMessage": "Register successful"
|
|
30025
30026
|
},
|
|
30026
30027
|
"hu": {
|
|
30027
30028
|
"nextButton": 'Következő',
|
|
@@ -30034,7 +30035,22 @@ const TRANSLATIONS = {
|
|
|
30034
30035
|
"GmErr_Unauthorized": 'Valami hiba történt... Kérjük, próbálja újra.',
|
|
30035
30036
|
"GmErr_NotFound": 'Valami hiba történt... Kérjük, próbálja újra.',
|
|
30036
30037
|
"GmErr_UnexpectedException": 'Valami hiba történt... Kérjük, próbálja újra.',
|
|
30037
|
-
"generalError": "Valami hiba történt... Próbáld újra."
|
|
30038
|
+
"generalError": "Valami hiba történt... Próbáld újra.",
|
|
30039
|
+
"successMessage": "Sikeres regisztráció"
|
|
30040
|
+
},
|
|
30041
|
+
"hr": {
|
|
30042
|
+
"nextButton": 'Next',
|
|
30043
|
+
"backButton": 'Back',
|
|
30044
|
+
"doneButton": 'Done',
|
|
30045
|
+
"GmErr_BadRequest_Duplicate_User": 'A user with this information already exists.',
|
|
30046
|
+
"GmErr_Forbidden_UserAccount_NavExcluded": 'User is NAV Excluded. Registration was denied.',
|
|
30047
|
+
"GmErr_BadRequest_ModelValidationFailed": 'Something went wrong... Please try again.',
|
|
30048
|
+
"GmErr_BadInternalConfigs": 'Something went wrong... Please try again.',
|
|
30049
|
+
"GmErr_Unauthorized": 'Something went wrong... Please try again.',
|
|
30050
|
+
"GmErr_NotFound": 'Something went wrong... Please try again.',
|
|
30051
|
+
"GmErr_UnexpectedException": 'Something went wrong... Please try again.',
|
|
30052
|
+
"generalError": "Something went wrong... Please try again.",
|
|
30053
|
+
"successMessage": "Register successful"
|
|
30038
30054
|
}
|
|
30039
30055
|
};
|
|
30040
30056
|
const getTranslations = (url) => {
|
|
@@ -30064,7 +30080,7 @@ const translate = (key, customLang, values) => {
|
|
|
30064
30080
|
return translation;
|
|
30065
30081
|
};
|
|
30066
30082
|
|
|
30067
|
-
const generalRegistrationCss = "*,\n*::before,\n*::after {\n padding: 0;\n margin: 0;\n box-sizing: border-box;\n}\n\n.registration__form.hidden {\n display: none;\n}\n\n.registration {\n font-family: \"Roboto\";\n font-style: normal;\n font-family: sans-serif;\n display: flex;\n flex-direction: column;\n gap: 24px;\n width: 100%;\n height: 100%;\n container-type: inline-size;\n}\n.registration__wrapper {\n display: flex;\n justify-content: center;\n align-items: center;\n}\n.registration__error-message {\n color: #
|
|
30083
|
+
const generalRegistrationCss = "*,\n*::before,\n*::after {\n padding: 0;\n margin: 0;\n box-sizing: border-box;\n}\n\n.registration__form.hidden {\n display: none;\n}\n\n.registration {\n font-family: \"Roboto\";\n font-style: normal;\n font-family: sans-serif;\n display: flex;\n flex-direction: column;\n gap: 24px;\n width: 100%;\n height: 100%;\n container-type: inline-size;\n}\n.registration__wrapper {\n display: flex;\n justify-content: center;\n align-items: center;\n}\n.registration__error-message {\n color: var(--emfe-w-color-error, var(--emfe-w-color-red, #ed0909));\n font-size: 13px;\n font-family: \"ubuntu\";\n}\n.registration__form {\n display: grid;\n grid-template-columns: repeat(1, 1fr);\n gap: 40px;\n justify-items: stretch;\n align-content: flex-start;\n overflow: auto;\n width: 100%;\n height: 100%;\n}\n.registration__buttons-wrapper {\n display: flex;\n flex-direction: column;\n justify-content: space-around;\n align-items: center;\n position: relative;\n}\n.registration__button {\n border-radius: 5px;\n background: var(--emfe-w-login-color-primary, var(--emfe-w-color-primary, #D0046C));\n border: 1px solid var(--emfe-w-login-color-primary, var(--emfe-w-color-primary, #D0046C));\n color: var(--emfe-w-button-typography, var(--emfe-w-color-white, #FFFFFF));\n text-transform: uppercase;\n font-size: 20px;\n height: 44px;\n width: 100%;\n margin: 0px auto;\n padding: 10px 20px;\n font-weight: normal;\n box-shadow: none;\n cursor: pointer;\n}\n.registration__button--disabled {\n background: var(--emfe-w-color-gray-100, #E6E6E6);\n border: 1px solid var(--emfe-w-color-gray-150, #828282);\n cursor: not-allowed;\n box-shadow: none;\n}\n.registration__button--first-step {\n display: none;\n}\n\n@container (min-width: 450px) {\n .registration__form {\n grid-template-columns: repeat(2, 1fr);\n }\n\n .registration__buttons-wrapper {\n flex-direction: row-reverse;\n gap: 15px;\n }\n}\n.spinner {\n animation: rotate 2s linear infinite;\n z-index: 2;\n position: absolute;\n top: 50%;\n left: 50%;\n margin: -25px 0 0 -25px;\n width: 50px;\n height: 50px;\n}\n.spinner .path {\n stroke: var(--emfe-w-login-color-primary, var(--emfe-w-color-primary, #D0046C));\n stroke-linecap: round;\n animation: dash 1.5s ease-in-out infinite;\n}\n\n@keyframes rotate {\n 100% {\n transform: rotate(360deg);\n }\n}\n@keyframes dash {\n 0% {\n stroke-dasharray: 1, 150;\n stroke-dashoffset: 0;\n }\n 50% {\n stroke-dasharray: 90, 150;\n stroke-dashoffset: -35;\n }\n 100% {\n stroke-dasharray: 90, 150;\n stroke-dashoffset: -124;\n }\n}";
|
|
30068
30084
|
|
|
30069
30085
|
const GeneralRegistration = class {
|
|
30070
30086
|
constructor(hostRef) {
|
|
@@ -30379,6 +30395,10 @@ const GeneralRegistration = class {
|
|
|
30379
30395
|
this.errorMessage = translate(`${this.errorCode}`, this.language) || translate(`generalError`, this.language);
|
|
30380
30396
|
}
|
|
30381
30397
|
window.postMessage({ type: 'registrationFailed', errorMessage: error === null || error === void 0 ? void 0 : error.thirdPartyResponse.message }, window.location.href);
|
|
30398
|
+
window.postMessage({ type: 'WidgetNotification', data: {
|
|
30399
|
+
type: 'error',
|
|
30400
|
+
message: this.errorMessage
|
|
30401
|
+
} }, window.location.href);
|
|
30382
30402
|
});
|
|
30383
30403
|
}
|
|
30384
30404
|
return res.json();
|
|
@@ -30387,6 +30407,10 @@ const GeneralRegistration = class {
|
|
|
30387
30407
|
this.isLoading = false;
|
|
30388
30408
|
if (!this.registerErrors) {
|
|
30389
30409
|
window.postMessage({ type: 'registrationSuccessful', userId: data === null || data === void 0 ? void 0 : data.userId }, window.location.href);
|
|
30410
|
+
window.postMessage({ type: 'WidgetNotification', data: {
|
|
30411
|
+
type: 'success',
|
|
30412
|
+
message: translate('successMessage', this.language)
|
|
30413
|
+
} }, window.location.href);
|
|
30390
30414
|
}
|
|
30391
30415
|
})
|
|
30392
30416
|
.catch((err) => {
|
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
align-items: center;
|
|
28
28
|
}
|
|
29
29
|
.registration__error-message {
|
|
30
|
-
color: #
|
|
30
|
+
color: var(--emfe-w-color-error, var(--emfe-w-color-red, #ed0909));
|
|
31
31
|
font-size: 13px;
|
|
32
32
|
font-family: "ubuntu";
|
|
33
33
|
}
|
|
@@ -49,19 +49,24 @@
|
|
|
49
49
|
position: relative;
|
|
50
50
|
}
|
|
51
51
|
.registration__button {
|
|
52
|
-
border:
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
color: #
|
|
56
|
-
font-size: 18px;
|
|
57
|
-
font-weight: bold;
|
|
52
|
+
border-radius: 5px;
|
|
53
|
+
background: var(--emfe-w-login-color-primary, var(--emfe-w-color-primary, #D0046C));
|
|
54
|
+
border: 1px solid var(--emfe-w-login-color-primary, var(--emfe-w-color-primary, #D0046C));
|
|
55
|
+
color: var(--emfe-w-button-typography, var(--emfe-w-color-white, #FFFFFF));
|
|
58
56
|
text-transform: uppercase;
|
|
59
|
-
|
|
60
|
-
height:
|
|
57
|
+
font-size: 20px;
|
|
58
|
+
height: 44px;
|
|
59
|
+
width: 100%;
|
|
60
|
+
margin: 0px auto;
|
|
61
|
+
padding: 10px 20px;
|
|
62
|
+
font-weight: normal;
|
|
63
|
+
box-shadow: none;
|
|
64
|
+
cursor: pointer;
|
|
61
65
|
}
|
|
62
66
|
.registration__button--disabled {
|
|
63
|
-
|
|
64
|
-
|
|
67
|
+
background: var(--emfe-w-color-gray-100, #E6E6E6);
|
|
68
|
+
border: 1px solid var(--emfe-w-color-gray-150, #828282);
|
|
69
|
+
cursor: not-allowed;
|
|
65
70
|
box-shadow: none;
|
|
66
71
|
}
|
|
67
72
|
.registration__button--first-step {
|
|
@@ -89,7 +94,7 @@
|
|
|
89
94
|
height: 50px;
|
|
90
95
|
}
|
|
91
96
|
.spinner .path {
|
|
92
|
-
stroke: #
|
|
97
|
+
stroke: var(--emfe-w-login-color-primary, var(--emfe-w-color-primary, #D0046C));
|
|
93
98
|
stroke-linecap: round;
|
|
94
99
|
animation: dash 1.5s ease-in-out infinite;
|
|
95
100
|
}
|
|
@@ -311,6 +311,10 @@ export class GeneralRegistration {
|
|
|
311
311
|
this.errorMessage = translate(`${this.errorCode}`, this.language) || translate(`generalError`, this.language);
|
|
312
312
|
}
|
|
313
313
|
window.postMessage({ type: 'registrationFailed', errorMessage: error === null || error === void 0 ? void 0 : error.thirdPartyResponse.message }, window.location.href);
|
|
314
|
+
window.postMessage({ type: 'WidgetNotification', data: {
|
|
315
|
+
type: 'error',
|
|
316
|
+
message: this.errorMessage
|
|
317
|
+
} }, window.location.href);
|
|
314
318
|
});
|
|
315
319
|
}
|
|
316
320
|
return res.json();
|
|
@@ -319,6 +323,10 @@ export class GeneralRegistration {
|
|
|
319
323
|
this.isLoading = false;
|
|
320
324
|
if (!this.registerErrors) {
|
|
321
325
|
window.postMessage({ type: 'registrationSuccessful', userId: data === null || data === void 0 ? void 0 : data.userId }, window.location.href);
|
|
326
|
+
window.postMessage({ type: 'WidgetNotification', data: {
|
|
327
|
+
type: 'success',
|
|
328
|
+
message: translate('successMessage', this.language)
|
|
329
|
+
} }, window.location.href);
|
|
322
330
|
}
|
|
323
331
|
})
|
|
324
332
|
.catch((err) => {
|
|
@@ -11,7 +11,8 @@ export const TRANSLATIONS = {
|
|
|
11
11
|
"GmErr_Unauthorized": 'Something went wrong... Please try again.',
|
|
12
12
|
"GmErr_NotFound": 'Something went wrong... Please try again.',
|
|
13
13
|
"GmErr_UnexpectedException": 'Something went wrong... Please try again.',
|
|
14
|
-
"generalError": "Something went wrong... Please try again."
|
|
14
|
+
"generalError": "Something went wrong... Please try again.",
|
|
15
|
+
"successMessage": "Register successful"
|
|
15
16
|
},
|
|
16
17
|
"hu": {
|
|
17
18
|
"nextButton": 'Következő',
|
|
@@ -24,7 +25,22 @@ export const TRANSLATIONS = {
|
|
|
24
25
|
"GmErr_Unauthorized": 'Valami hiba történt... Kérjük, próbálja újra.',
|
|
25
26
|
"GmErr_NotFound": 'Valami hiba történt... Kérjük, próbálja újra.',
|
|
26
27
|
"GmErr_UnexpectedException": 'Valami hiba történt... Kérjük, próbálja újra.',
|
|
27
|
-
"generalError": "Valami hiba történt... Próbáld újra."
|
|
28
|
+
"generalError": "Valami hiba történt... Próbáld újra.",
|
|
29
|
+
"successMessage": "Sikeres regisztráció"
|
|
30
|
+
},
|
|
31
|
+
"hr": {
|
|
32
|
+
"nextButton": 'Next',
|
|
33
|
+
"backButton": 'Back',
|
|
34
|
+
"doneButton": 'Done',
|
|
35
|
+
"GmErr_BadRequest_Duplicate_User": 'A user with this information already exists.',
|
|
36
|
+
"GmErr_Forbidden_UserAccount_NavExcluded": 'User is NAV Excluded. Registration was denied.',
|
|
37
|
+
"GmErr_BadRequest_ModelValidationFailed": 'Something went wrong... Please try again.',
|
|
38
|
+
"GmErr_BadInternalConfigs": 'Something went wrong... Please try again.',
|
|
39
|
+
"GmErr_Unauthorized": 'Something went wrong... Please try again.',
|
|
40
|
+
"GmErr_NotFound": 'Something went wrong... Please try again.',
|
|
41
|
+
"GmErr_UnexpectedException": 'Something went wrong... Please try again.',
|
|
42
|
+
"generalError": "Something went wrong... Please try again.",
|
|
43
|
+
"successMessage": "Register successful"
|
|
28
44
|
}
|
|
29
45
|
};
|
|
30
46
|
export const getTranslations = (url) => {
|
|
@@ -24,7 +24,8 @@ const TRANSLATIONS = {
|
|
|
24
24
|
"GmErr_Unauthorized": 'Something went wrong... Please try again.',
|
|
25
25
|
"GmErr_NotFound": 'Something went wrong... Please try again.',
|
|
26
26
|
"GmErr_UnexpectedException": 'Something went wrong... Please try again.',
|
|
27
|
-
"generalError": "Something went wrong... Please try again."
|
|
27
|
+
"generalError": "Something went wrong... Please try again.",
|
|
28
|
+
"successMessage": "Register successful"
|
|
28
29
|
},
|
|
29
30
|
"hu": {
|
|
30
31
|
"nextButton": 'Következő',
|
|
@@ -37,7 +38,22 @@ const TRANSLATIONS = {
|
|
|
37
38
|
"GmErr_Unauthorized": 'Valami hiba történt... Kérjük, próbálja újra.',
|
|
38
39
|
"GmErr_NotFound": 'Valami hiba történt... Kérjük, próbálja újra.',
|
|
39
40
|
"GmErr_UnexpectedException": 'Valami hiba történt... Kérjük, próbálja újra.',
|
|
40
|
-
"generalError": "Valami hiba történt... Próbáld újra."
|
|
41
|
+
"generalError": "Valami hiba történt... Próbáld újra.",
|
|
42
|
+
"successMessage": "Sikeres regisztráció"
|
|
43
|
+
},
|
|
44
|
+
"hr": {
|
|
45
|
+
"nextButton": 'Next',
|
|
46
|
+
"backButton": 'Back',
|
|
47
|
+
"doneButton": 'Done',
|
|
48
|
+
"GmErr_BadRequest_Duplicate_User": 'A user with this information already exists.',
|
|
49
|
+
"GmErr_Forbidden_UserAccount_NavExcluded": 'User is NAV Excluded. Registration was denied.',
|
|
50
|
+
"GmErr_BadRequest_ModelValidationFailed": 'Something went wrong... Please try again.',
|
|
51
|
+
"GmErr_BadInternalConfigs": 'Something went wrong... Please try again.',
|
|
52
|
+
"GmErr_Unauthorized": 'Something went wrong... Please try again.',
|
|
53
|
+
"GmErr_NotFound": 'Something went wrong... Please try again.',
|
|
54
|
+
"GmErr_UnexpectedException": 'Something went wrong... Please try again.',
|
|
55
|
+
"generalError": "Something went wrong... Please try again.",
|
|
56
|
+
"successMessage": "Register successful"
|
|
41
57
|
}
|
|
42
58
|
};
|
|
43
59
|
const getTranslations = (url) => {
|
|
@@ -67,7 +83,7 @@ const translate = (key, customLang, values) => {
|
|
|
67
83
|
return translation;
|
|
68
84
|
};
|
|
69
85
|
|
|
70
|
-
const generalRegistrationCss = "*,\n*::before,\n*::after {\n padding: 0;\n margin: 0;\n box-sizing: border-box;\n}\n\n.registration__form.hidden {\n display: none;\n}\n\n.registration {\n font-family: \"Roboto\";\n font-style: normal;\n font-family: sans-serif;\n display: flex;\n flex-direction: column;\n gap: 24px;\n width: 100%;\n height: 100%;\n container-type: inline-size;\n}\n.registration__wrapper {\n display: flex;\n justify-content: center;\n align-items: center;\n}\n.registration__error-message {\n color: #
|
|
86
|
+
const generalRegistrationCss = "*,\n*::before,\n*::after {\n padding: 0;\n margin: 0;\n box-sizing: border-box;\n}\n\n.registration__form.hidden {\n display: none;\n}\n\n.registration {\n font-family: \"Roboto\";\n font-style: normal;\n font-family: sans-serif;\n display: flex;\n flex-direction: column;\n gap: 24px;\n width: 100%;\n height: 100%;\n container-type: inline-size;\n}\n.registration__wrapper {\n display: flex;\n justify-content: center;\n align-items: center;\n}\n.registration__error-message {\n color: var(--emfe-w-color-error, var(--emfe-w-color-red, #ed0909));\n font-size: 13px;\n font-family: \"ubuntu\";\n}\n.registration__form {\n display: grid;\n grid-template-columns: repeat(1, 1fr);\n gap: 40px;\n justify-items: stretch;\n align-content: flex-start;\n overflow: auto;\n width: 100%;\n height: 100%;\n}\n.registration__buttons-wrapper {\n display: flex;\n flex-direction: column;\n justify-content: space-around;\n align-items: center;\n position: relative;\n}\n.registration__button {\n border-radius: 5px;\n background: var(--emfe-w-login-color-primary, var(--emfe-w-color-primary, #D0046C));\n border: 1px solid var(--emfe-w-login-color-primary, var(--emfe-w-color-primary, #D0046C));\n color: var(--emfe-w-button-typography, var(--emfe-w-color-white, #FFFFFF));\n text-transform: uppercase;\n font-size: 20px;\n height: 44px;\n width: 100%;\n margin: 0px auto;\n padding: 10px 20px;\n font-weight: normal;\n box-shadow: none;\n cursor: pointer;\n}\n.registration__button--disabled {\n background: var(--emfe-w-color-gray-100, #E6E6E6);\n border: 1px solid var(--emfe-w-color-gray-150, #828282);\n cursor: not-allowed;\n box-shadow: none;\n}\n.registration__button--first-step {\n display: none;\n}\n\n@container (min-width: 450px) {\n .registration__form {\n grid-template-columns: repeat(2, 1fr);\n }\n\n .registration__buttons-wrapper {\n flex-direction: row-reverse;\n gap: 15px;\n }\n}\n.spinner {\n animation: rotate 2s linear infinite;\n z-index: 2;\n position: absolute;\n top: 50%;\n left: 50%;\n margin: -25px 0 0 -25px;\n width: 50px;\n height: 50px;\n}\n.spinner .path {\n stroke: var(--emfe-w-login-color-primary, var(--emfe-w-color-primary, #D0046C));\n stroke-linecap: round;\n animation: dash 1.5s ease-in-out infinite;\n}\n\n@keyframes rotate {\n 100% {\n transform: rotate(360deg);\n }\n}\n@keyframes dash {\n 0% {\n stroke-dasharray: 1, 150;\n stroke-dashoffset: 0;\n }\n 50% {\n stroke-dasharray: 90, 150;\n stroke-dashoffset: -35;\n }\n 100% {\n stroke-dasharray: 90, 150;\n stroke-dashoffset: -124;\n }\n}";
|
|
71
87
|
|
|
72
88
|
const GeneralRegistration$1 = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
73
89
|
constructor() {
|
|
@@ -384,6 +400,10 @@ const GeneralRegistration$1 = /*@__PURE__*/ proxyCustomElement(class extends HTM
|
|
|
384
400
|
this.errorMessage = translate(`${this.errorCode}`, this.language) || translate(`generalError`, this.language);
|
|
385
401
|
}
|
|
386
402
|
window.postMessage({ type: 'registrationFailed', errorMessage: error === null || error === void 0 ? void 0 : error.thirdPartyResponse.message }, window.location.href);
|
|
403
|
+
window.postMessage({ type: 'WidgetNotification', data: {
|
|
404
|
+
type: 'error',
|
|
405
|
+
message: this.errorMessage
|
|
406
|
+
} }, window.location.href);
|
|
387
407
|
});
|
|
388
408
|
}
|
|
389
409
|
return res.json();
|
|
@@ -392,6 +412,10 @@ const GeneralRegistration$1 = /*@__PURE__*/ proxyCustomElement(class extends HTM
|
|
|
392
412
|
this.isLoading = false;
|
|
393
413
|
if (!this.registerErrors) {
|
|
394
414
|
window.postMessage({ type: 'registrationSuccessful', userId: data === null || data === void 0 ? void 0 : data.userId }, window.location.href);
|
|
415
|
+
window.postMessage({ type: 'WidgetNotification', data: {
|
|
416
|
+
type: 'success',
|
|
417
|
+
message: translate('successMessage', this.language)
|
|
418
|
+
} }, window.location.href);
|
|
395
419
|
}
|
|
396
420
|
})
|
|
397
421
|
.catch((err) => {
|
|
@@ -30017,7 +30017,8 @@ const TRANSLATIONS = {
|
|
|
30017
30017
|
"GmErr_Unauthorized": 'Something went wrong... Please try again.',
|
|
30018
30018
|
"GmErr_NotFound": 'Something went wrong... Please try again.',
|
|
30019
30019
|
"GmErr_UnexpectedException": 'Something went wrong... Please try again.',
|
|
30020
|
-
"generalError": "Something went wrong... Please try again."
|
|
30020
|
+
"generalError": "Something went wrong... Please try again.",
|
|
30021
|
+
"successMessage": "Register successful"
|
|
30021
30022
|
},
|
|
30022
30023
|
"hu": {
|
|
30023
30024
|
"nextButton": 'Következő',
|
|
@@ -30030,7 +30031,22 @@ const TRANSLATIONS = {
|
|
|
30030
30031
|
"GmErr_Unauthorized": 'Valami hiba történt... Kérjük, próbálja újra.',
|
|
30031
30032
|
"GmErr_NotFound": 'Valami hiba történt... Kérjük, próbálja újra.',
|
|
30032
30033
|
"GmErr_UnexpectedException": 'Valami hiba történt... Kérjük, próbálja újra.',
|
|
30033
|
-
"generalError": "Valami hiba történt... Próbáld újra."
|
|
30034
|
+
"generalError": "Valami hiba történt... Próbáld újra.",
|
|
30035
|
+
"successMessage": "Sikeres regisztráció"
|
|
30036
|
+
},
|
|
30037
|
+
"hr": {
|
|
30038
|
+
"nextButton": 'Next',
|
|
30039
|
+
"backButton": 'Back',
|
|
30040
|
+
"doneButton": 'Done',
|
|
30041
|
+
"GmErr_BadRequest_Duplicate_User": 'A user with this information already exists.',
|
|
30042
|
+
"GmErr_Forbidden_UserAccount_NavExcluded": 'User is NAV Excluded. Registration was denied.',
|
|
30043
|
+
"GmErr_BadRequest_ModelValidationFailed": 'Something went wrong... Please try again.',
|
|
30044
|
+
"GmErr_BadInternalConfigs": 'Something went wrong... Please try again.',
|
|
30045
|
+
"GmErr_Unauthorized": 'Something went wrong... Please try again.',
|
|
30046
|
+
"GmErr_NotFound": 'Something went wrong... Please try again.',
|
|
30047
|
+
"GmErr_UnexpectedException": 'Something went wrong... Please try again.',
|
|
30048
|
+
"generalError": "Something went wrong... Please try again.",
|
|
30049
|
+
"successMessage": "Register successful"
|
|
30034
30050
|
}
|
|
30035
30051
|
};
|
|
30036
30052
|
const getTranslations = (url) => {
|
|
@@ -30060,7 +30076,7 @@ const translate = (key, customLang, values) => {
|
|
|
30060
30076
|
return translation;
|
|
30061
30077
|
};
|
|
30062
30078
|
|
|
30063
|
-
const generalRegistrationCss = "*,\n*::before,\n*::after {\n padding: 0;\n margin: 0;\n box-sizing: border-box;\n}\n\n.registration__form.hidden {\n display: none;\n}\n\n.registration {\n font-family: \"Roboto\";\n font-style: normal;\n font-family: sans-serif;\n display: flex;\n flex-direction: column;\n gap: 24px;\n width: 100%;\n height: 100%;\n container-type: inline-size;\n}\n.registration__wrapper {\n display: flex;\n justify-content: center;\n align-items: center;\n}\n.registration__error-message {\n color: #
|
|
30079
|
+
const generalRegistrationCss = "*,\n*::before,\n*::after {\n padding: 0;\n margin: 0;\n box-sizing: border-box;\n}\n\n.registration__form.hidden {\n display: none;\n}\n\n.registration {\n font-family: \"Roboto\";\n font-style: normal;\n font-family: sans-serif;\n display: flex;\n flex-direction: column;\n gap: 24px;\n width: 100%;\n height: 100%;\n container-type: inline-size;\n}\n.registration__wrapper {\n display: flex;\n justify-content: center;\n align-items: center;\n}\n.registration__error-message {\n color: var(--emfe-w-color-error, var(--emfe-w-color-red, #ed0909));\n font-size: 13px;\n font-family: \"ubuntu\";\n}\n.registration__form {\n display: grid;\n grid-template-columns: repeat(1, 1fr);\n gap: 40px;\n justify-items: stretch;\n align-content: flex-start;\n overflow: auto;\n width: 100%;\n height: 100%;\n}\n.registration__buttons-wrapper {\n display: flex;\n flex-direction: column;\n justify-content: space-around;\n align-items: center;\n position: relative;\n}\n.registration__button {\n border-radius: 5px;\n background: var(--emfe-w-login-color-primary, var(--emfe-w-color-primary, #D0046C));\n border: 1px solid var(--emfe-w-login-color-primary, var(--emfe-w-color-primary, #D0046C));\n color: var(--emfe-w-button-typography, var(--emfe-w-color-white, #FFFFFF));\n text-transform: uppercase;\n font-size: 20px;\n height: 44px;\n width: 100%;\n margin: 0px auto;\n padding: 10px 20px;\n font-weight: normal;\n box-shadow: none;\n cursor: pointer;\n}\n.registration__button--disabled {\n background: var(--emfe-w-color-gray-100, #E6E6E6);\n border: 1px solid var(--emfe-w-color-gray-150, #828282);\n cursor: not-allowed;\n box-shadow: none;\n}\n.registration__button--first-step {\n display: none;\n}\n\n@container (min-width: 450px) {\n .registration__form {\n grid-template-columns: repeat(2, 1fr);\n }\n\n .registration__buttons-wrapper {\n flex-direction: row-reverse;\n gap: 15px;\n }\n}\n.spinner {\n animation: rotate 2s linear infinite;\n z-index: 2;\n position: absolute;\n top: 50%;\n left: 50%;\n margin: -25px 0 0 -25px;\n width: 50px;\n height: 50px;\n}\n.spinner .path {\n stroke: var(--emfe-w-login-color-primary, var(--emfe-w-color-primary, #D0046C));\n stroke-linecap: round;\n animation: dash 1.5s ease-in-out infinite;\n}\n\n@keyframes rotate {\n 100% {\n transform: rotate(360deg);\n }\n}\n@keyframes dash {\n 0% {\n stroke-dasharray: 1, 150;\n stroke-dashoffset: 0;\n }\n 50% {\n stroke-dasharray: 90, 150;\n stroke-dashoffset: -35;\n }\n 100% {\n stroke-dasharray: 90, 150;\n stroke-dashoffset: -124;\n }\n}";
|
|
30064
30080
|
|
|
30065
30081
|
const GeneralRegistration = class {
|
|
30066
30082
|
constructor(hostRef) {
|
|
@@ -30375,6 +30391,10 @@ const GeneralRegistration = class {
|
|
|
30375
30391
|
this.errorMessage = translate(`${this.errorCode}`, this.language) || translate(`generalError`, this.language);
|
|
30376
30392
|
}
|
|
30377
30393
|
window.postMessage({ type: 'registrationFailed', errorMessage: error === null || error === void 0 ? void 0 : error.thirdPartyResponse.message }, window.location.href);
|
|
30394
|
+
window.postMessage({ type: 'WidgetNotification', data: {
|
|
30395
|
+
type: 'error',
|
|
30396
|
+
message: this.errorMessage
|
|
30397
|
+
} }, window.location.href);
|
|
30378
30398
|
});
|
|
30379
30399
|
}
|
|
30380
30400
|
return res.json();
|
|
@@ -30383,6 +30403,10 @@ const GeneralRegistration = class {
|
|
|
30383
30403
|
this.isLoading = false;
|
|
30384
30404
|
if (!this.registerErrors) {
|
|
30385
30405
|
window.postMessage({ type: 'registrationSuccessful', userId: data === null || data === void 0 ? void 0 : data.userId }, window.location.href);
|
|
30406
|
+
window.postMessage({ type: 'WidgetNotification', data: {
|
|
30407
|
+
type: 'success',
|
|
30408
|
+
message: translate('successMessage', this.language)
|
|
30409
|
+
} }, window.location.href);
|
|
30386
30410
|
}
|
|
30387
30411
|
})
|
|
30388
30412
|
.catch((err) => {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{p as l,b as e}from"./p-4ff02444.js";(()=>{const e=import.meta.url,i={};return""!==e&&(i.resourcesUrl=new URL(".",e).href),l(i)})().then((l=>e([["p-
|
|
1
|
+
import{p as l,b as e}from"./p-4ff02444.js";(()=>{const e=import.meta.url,i={};return""!==e&&(i.resourcesUrl=new URL(".",e).href),l(i)})().then((l=>e([["p-85ebcd84",[[1,"general-registration",{endpoint:[513],language:[513],clientStyling:[1537,"client-styling"],clientStylingUrl:[513,"client-styling-url"],translationUrl:[513,"translation-url"],dateFormat:[513,"date-format"],buttonInsideForm:[516,"button-inside-form"],btag:[513],errorMessage:[32],isFormValid:[32],isLoading:[32],isLoadingPOST:[32],registrationStep:[32],forms:[32],limitStylingAppends:[32],autofilled:[32]},[[0,"sendValidityState","checkInputsValidityHandler"],[0,"sendInputValue","getInputsValueHandler"]]],[1,"general-input",{type:[513],name:[513],displayName:[513,"display-name"],placeholder:[513],action:[513],validation:[16],options:[520],language:[513],autofilled:[516],tooltip:[513],defaultValue:[520,"default-value"],emitValue:[516,"emit-value"],isDuplicateInput:[516,"is-duplicate-input"],clientStyling:[520,"client-styling"],dateFormat:[513,"date-format"],translationUrl:[513,"translation-url"]}],[1,"toggle-checkbox-input",{name:[513],displayName:[513,"display-name"],defaultValue:[513,"default-value"],options:[16],autofilled:[516],tooltip:[513],validation:[16],language:[513],emitValue:[516,"emit-value"],clientStyling:[513,"client-styling"],errorMessage:[32],isValid:[32],limitStylingAppends:[32],showTooltip:[32],showFields:[32]},[[4,"click","handleClickOutside"]]],[1,"checkbox-group-input",{name:[513],displayName:[513,"display-name"],defaultValue:[513,"default-value"],autofilled:[516],tooltip:[513],options:[16],validation:[16],language:[513],emitValue:[516,"emit-value"],clientStyling:[513,"client-styling"],errorMessage:[32],isValid:[32],limitStylingAppends:[32],showTooltip:[32],selectedValues:[32]},[[4,"click","handleClickOutside"]]],[1,"checkbox-input",{name:[513],displayName:[513,"display-name"],defaultValue:[513,"default-value"],autofilled:[516],tooltip:[513],validation:[16],language:[513],emitValue:[516,"emit-value"],clientStyling:[513,"client-styling"],errorMessage:[32],isValid:[32],limitStylingAppends:[32],showTooltip:[32]},[[4,"click","handleClickOutside"]]],[1,"date-input",{name:[513],displayName:[513,"display-name"],placeholder:[513],validation:[16],defaultValue:[513,"default-value"],autofilled:[516],tooltip:[513],language:[513],emitValue:[516,"emit-value"],clientStyling:[513,"client-styling"],dateFormat:[513,"date-format"],errorMessage:[32],isValid:[32],limitStylingAppends:[32],showTooltip:[32]},[[4,"click","handleClickOutside"]]],[1,"email-input",{name:[513],displayName:[513,"display-name"],placeholder:[513],validation:[16],defaultValue:[513,"default-value"],autofilled:[516],tooltip:[513],language:[513],emitValue:[516,"emit-value"],isDuplicateInput:[516,"is-duplicate-input"],clientStyling:[513,"client-styling"],errorMessage:[32],isValid:[32],limitStylingAppends:[32],showTooltip:[32]},[[4,"click","handleClickOutside"],[16,"sendInputValue","valueChangedHandler"]]],[1,"number-input",{name:[513],displayName:[513,"display-name"],placeholder:[513],validation:[16],defaultValue:[513,"default-value"],autofilled:[516],tooltip:[513],language:[513],emitValue:[516,"emit-value"],clientStyling:[513,"client-styling"],errorMessage:[32],isValid:[32],limitStylingAppends:[32],showTooltip:[32]},[[4,"click","handleClickOutside"]]],[1,"password-input",{name:[513],displayName:[513,"display-name"],placeholder:[513],defaultValue:[513,"default-value"],autofilled:[516],tooltip:[513],validation:[16],language:[513],emitValue:[516,"emit-value"],isDuplicateInput:[516,"is-duplicate-input"],clientStyling:[513,"client-styling"],isValid:[32],errorMessage:[32],limitStylingAppends:[32],showTooltip:[32],passwordComplexity:[32],showPopup:[32],value:[32]},[[16,"sendOriginalValidityState","originalValidityChangedHandler"],[16,"sendInputValue","valueChangedHandler"],[4,"click","handleClickOutside"]]],[1,"radio-input",{name:[513],displayName:[513,"display-name"],optionsGroup:[16],validation:[16],tooltip:[513],language:[513],emitValue:[516,"emit-value"],clientStyling:[513,"client-styling"],errorMessage:[32],isValid:[32],limitStylingAppends:[32],showTooltip:[32]},[[4,"click","handleClickOutside"]]],[1,"select-input",{name:[513],displayName:[513,"display-name"],placeholder:[513],action:[513],defaultValue:[513,"default-value"],autofilled:[516],tooltip:[513],options:[16],validation:[16],language:[513],emitValue:[516,"emit-value"],clientStyling:[513,"client-styling"],errorMessage:[32],isValid:[32],limitStylingAppends:[32],showTooltip:[32]},[[4,"click","handleClickOutside"]]],[1,"tel-input",{name:[513],displayName:[513,"display-name"],placeholder:[513],showLabels:[516,"show-labels"],action:[513],validation:[16],defaultValue:[520,"default-value"],autofilled:[516],tooltip:[513],language:[513],emitValue:[516,"emit-value"],clientStyling:[513,"client-styling"],isValid:[32],errorMessage:[32],limitStylingAppends:[32],showTooltip:[32]},[[4,"click","handleClickOutside"]]],[1,"text-input",{name:[513],displayName:[513,"display-name"],placeholder:[513],validation:[16],defaultValue:[513,"default-value"],autofilled:[516],tooltip:[513],language:[513],checkValidity:[516,"check-validity"],emitValue:[516,"emit-value"],isDuplicateInput:[516,"is-duplicate-input"],clientStyling:[513,"client-styling"],isValid:[32],errorMessage:[32],limitStylingAppends:[32],showTooltip:[32]},[[4,"click","handleClickOutside"],[16,"sendInputValue","valueChangedHandler"]]]]]],l)));
|