ublo-lib 1.38.26 → 1.38.29
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.
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"messages.d.ts","sourceRoot":"","sources":["../../../../src/esf/components/instructors-book/messages.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"messages.d.ts","sourceRoot":"","sources":["../../../../src/esf/components/instructors-book/messages.js"],"names":[],"mappings":"AAuCO,iDAIN"}
|
|
@@ -10,7 +10,8 @@ const locales = {
|
|
|
10
10
|
and: "et",
|
|
11
11
|
languages: "Langues parlées",
|
|
12
12
|
about: "À propos",
|
|
13
|
-
contact: "Quand souhaitez-vous skier avec
|
|
13
|
+
contact: "Quand souhaitez-vous skier avec",
|
|
14
|
+
"question-mark": " ?",
|
|
14
15
|
"suggestions-title": "Les moniteurs qui vous proposent ce cours",
|
|
15
16
|
"suggestions-button": "Voir tous les moniteurs",
|
|
16
17
|
"see-more": "Voir plus",
|
|
@@ -27,7 +28,8 @@ const locales = {
|
|
|
27
28
|
and: "and",
|
|
28
29
|
languages: "Spoken languages",
|
|
29
30
|
about: "About",
|
|
30
|
-
contact: "When would you like to ski with
|
|
31
|
+
contact: "When would you like to ski with",
|
|
32
|
+
"question-mark": "?",
|
|
31
33
|
"suggestions-title": "The instructors who offer you this course",
|
|
32
34
|
"suggestions-button": "See all instructors",
|
|
33
35
|
"see-more": "See more",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sheet.d.ts","sourceRoot":"","sources":["../../../../src/esf/components/instructors-book/sheet.js"],"names":[],"mappings":"AAaA;;;;;;
|
|
1
|
+
{"version":3,"file":"sheet.d.ts","sourceRoot":"","sources":["../../../../src/esf/components/instructors-book/sheet.js"],"names":[],"mappings":"AAaA;;;;;;4CA2KC"}
|
|
@@ -28,8 +28,10 @@ export default function Sheet({ instructor, popup, formFields, formSendFunction,
|
|
|
28
28
|
const classes = classNames(css.container, {
|
|
29
29
|
[css.containerPopup]: popup,
|
|
30
30
|
});
|
|
31
|
+
const formattedFirstname = formattedFirstname;
|
|
32
|
+
const formattedLastname = formattedLastname;
|
|
31
33
|
const key = `${lang}-${path}${prenom}-${nom}`;
|
|
32
|
-
return (_jsxs("div", { className: classes, children: [_jsxs("div", { className: css.content, children: [!popup && bookUrl && (_jsxs(Link, { href: bookUrl, className: classNames(buttonCss.button, buttonCss.link), children: [_jsx(Icons.ChevronLeft, {}), message(lang, "go-back")] })), _jsxs("div", { className: css.header, children: [_jsx("div", { className: css.imageContainer, children: picture ? (_jsxs(_Fragment, { children: [loading && _jsx(Icons.Loader2, { className: css.imageLoader }), _jsx(Image, { loading: "lazy", src: picture, className: css.image, alt: `${prenom} ${nom}`, onLoad: stopLoading, onError: setFallbackPicture, width: "200", height: "280" }, uri)] })) : (_jsx("div", { className: css.imagePlaceholder, children: _jsx(Icons.User, { className: css.imagePlaceholderIcon }) })) }), _jsxs("div", { className: css.information, children: [_jsxs("div", { className: css.name, children: [_jsxs("span", { className: css.firstName, children: [
|
|
34
|
+
return (_jsxs("div", { className: classes, children: [_jsxs("div", { className: css.content, children: [!popup && bookUrl && (_jsxs(Link, { href: bookUrl, className: classNames(buttonCss.button, buttonCss.link), children: [_jsx(Icons.ChevronLeft, {}), message(lang, "go-back")] })), _jsxs("div", { className: css.header, children: [_jsx("div", { className: css.imageContainer, children: picture ? (_jsxs(_Fragment, { children: [loading && _jsx(Icons.Loader2, { className: css.imageLoader }), _jsx(Image, { loading: "lazy", src: picture, className: css.image, alt: `${prenom} ${nom}`, onLoad: stopLoading, onError: setFallbackPicture, width: "200", height: "280" }, uri)] })) : (_jsx("div", { className: css.imagePlaceholder, children: _jsx(Icons.User, { className: css.imagePlaceholderIcon }) })) }), _jsxs("div", { className: css.information, children: [_jsxs("div", { className: css.name, children: [_jsxs("span", { className: css.firstName, children: [formattedFirstname, " "] }), _jsx("span", { className: css.lastName, children: formattedLastname })] }), disciplines && (_jsxs("div", { className: css.activities, children: [_jsx("div", { className: css.activitiesTitle, children: message(lang, "activities") }), _jsx("div", { className: css.activitiesList, children: disciplines.map((discipline, i) => {
|
|
33
35
|
const { code, label } = discipline;
|
|
34
36
|
const length = disciplines.length;
|
|
35
37
|
return (_jsxs("span", { className: css.activity, children: [_jsx("span", { children: label }), i < length - 2
|
|
@@ -45,5 +47,5 @@ export default function Sheet({ instructor, popup, formFields, formSendFunction,
|
|
|
45
47
|
__html: popup
|
|
46
48
|
? Utils.truncate(Utils.sanitizeHTML(description))
|
|
47
49
|
: description,
|
|
48
|
-
} }), popup && (_jsxs(Link, { href: `${prefixes[prefixLang]}/${uri}`, className: classNames(buttonCss.button, buttonCss.secondary), target: "_blank", children: [message(lang, "see-more"), _jsx(Icons.ChevronRight, {})] }))] }))] }), formFields && formSendFunction && (_jsxs("div", { className: css.aside, children: [
|
|
50
|
+
} }), popup && (_jsxs(Link, { href: `${prefixes[prefixLang]}/${uri}`, className: classNames(buttonCss.button, buttonCss.secondary), target: "_blank", children: [message(lang, "see-more"), _jsx(Icons.ChevronRight, {})] }))] }))] }), formFields && formSendFunction && (_jsxs("div", { className: css.aside, children: [_jsxs("div", { className: css.formTitle, children: [message(lang, "contact"), " ", formattedFirstname, " ", formattedLastname, message(lang, "question-mark")] }), _jsx(CustomContactForm, { fields: formFields, className: css.form, innerClassName: css.formInner, customSend: formSendFunction(prenom, nom) })] }))] }, key));
|
|
49
51
|
}
|