ublo-lib 1.47.41 → 1.47.43
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/es/esf/components/instructors-book/sheet.d.ts.map +1 -1
- package/es/esf/components/instructors-book/sheet.js +10 -1
- package/es/future/components/msem/index.d.ts +2 -1
- package/es/future/components/msem/index.d.ts.map +1 -1
- package/es/future/components/msem/index.js +2 -1
- package/es/future/components/msem/tunnel-new.d.ts +32 -0
- package/es/future/components/msem/tunnel-new.d.ts.map +1 -0
- package/es/future/components/msem/tunnel-new.js +19 -0
- package/es/future/components/msem/utils.d.ts +1 -1
- package/es/future/components/msem/utils.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sheet.d.ts","sourceRoot":"","sources":["../../../../src/esf/components/instructors-book/sheet.js"],"names":[],"mappings":"AAgBA;;;;;;
|
|
1
|
+
{"version":3,"file":"sheet.d.ts","sourceRoot":"","sources":["../../../../src/esf/components/instructors-book/sheet.js"],"names":[],"mappings":"AAgBA;;;;;;4CAsLC"}
|
|
@@ -19,6 +19,15 @@ export default function Sheet({ instructor, popup, formFields, formSendFunction,
|
|
|
19
19
|
const { lang, path } = useUbloContext();
|
|
20
20
|
const [loading, setLoading] = React.useState(true);
|
|
21
21
|
const [picture, setPicture] = React.useState(photo);
|
|
22
|
+
const mediaQueryPrint = window.matchMedia("print");
|
|
23
|
+
const [isPrinting, setIsPrinting] = React.useState(mediaQueryPrint.matches);
|
|
24
|
+
React.useEffect(() => {
|
|
25
|
+
const listener = (e) => {
|
|
26
|
+
setIsPrinting(e.matches);
|
|
27
|
+
};
|
|
28
|
+
mediaQueryPrint.addEventListener("change", listener);
|
|
29
|
+
return () => mediaQueryPrint.removeEventListener("change", listener);
|
|
30
|
+
}, [mediaQueryPrint]);
|
|
22
31
|
const prefixLang = lang === "fr" ? "fr" : "en";
|
|
23
32
|
const stopLoading = () => {
|
|
24
33
|
setLoading(false);
|
|
@@ -34,7 +43,7 @@ export default function Sheet({ instructor, popup, formFields, formSendFunction,
|
|
|
34
43
|
const formattedFirstname = Utils.formatNames(prenom);
|
|
35
44
|
const formattedLastname = Utils.formatNames(nom);
|
|
36
45
|
const key = `${lang}-${path}${prenom}-${nom}`;
|
|
37
|
-
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(ChevronLeftIcon, {}), message(lang, "go-back")] })), _jsxs("div", { className: css.header, children: [_jsx("div", { className: css.imageContainer, children: picture ? (_jsxs(_Fragment, { children: [loading && _jsx(LoaderIcon, { 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(UserIcon, { 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) => {
|
|
46
|
+
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(ChevronLeftIcon, {}), message(lang, "go-back")] })), _jsxs("div", { className: css.header, children: [_jsx("div", { className: css.imageContainer, children: picture ? (_jsxs(_Fragment, { children: [loading && _jsx(LoaderIcon, { className: css.imageLoader }), _jsx(Image, { loading: "lazy", src: picture, className: css.image, alt: `${prenom} ${nom}`, onLoad: stopLoading, onError: setFallbackPicture, width: isPrinting ? "350" : "200", height: isPrinting ? "490" : "280" }, uri)] })) : (_jsx("div", { className: css.imagePlaceholder, children: _jsx(UserIcon, { 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) => {
|
|
38
47
|
const { code, label } = discipline;
|
|
39
48
|
const length = disciplines.length;
|
|
40
49
|
return (_jsxs("span", { className: css.activity, children: [_jsx("span", { children: label }), i < length - 2
|
|
@@ -8,7 +8,8 @@ import Vakario from "./vakario";
|
|
|
8
8
|
import Elloha from "./elloha";
|
|
9
9
|
import OtherProducts from "./other-products";
|
|
10
10
|
import Tunnel from "./tunnel";
|
|
11
|
+
import TunnelNew from "./tunnel-new";
|
|
11
12
|
import Account from "./account";
|
|
12
13
|
import { loadWidget } from "./utils";
|
|
13
|
-
export { Script, loadWidget, Lodging, SkiRental, SkiPass, LiftJb, Esf, Vakario, Elloha, OtherProducts, Tunnel, Account, };
|
|
14
|
+
export { Script, loadWidget, Lodging, SkiRental, SkiPass, LiftJb, Esf, Vakario, Elloha, OtherProducts, Tunnel, TunnelNew, Account, };
|
|
14
15
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/future/components/msem/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAClC,OAAO,OAAO,MAAM,WAAW,CAAC;AAChC,OAAO,SAAS,MAAM,cAAc,CAAC;AACrC,OAAO,OAAO,MAAM,YAAY,CAAC;AACjC,OAAO,MAAM,MAAM,WAAW,CAAC;AAC/B,OAAO,GAAG,MAAM,OAAO,CAAC;AACxB,OAAO,OAAO,MAAM,WAAW,CAAC;AAChC,OAAO,MAAM,MAAM,UAAU,CAAC;AAC9B,OAAO,aAAa,MAAM,kBAAkB,CAAC;AAC7C,OAAO,MAAM,MAAM,UAAU,CAAC;AAC9B,OAAO,OAAO,MAAM,WAAW,CAAC;AAChC,OAAO,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AAErC,OAAO,EACL,MAAM,EACN,UAAU,EACV,OAAO,EACP,SAAS,EACT,OAAO,EACP,MAAM,EACN,GAAG,EACH,OAAO,EACP,MAAM,EACN,aAAa,EACb,MAAM,EACN,OAAO,GACR,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/future/components/msem/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAClC,OAAO,OAAO,MAAM,WAAW,CAAC;AAChC,OAAO,SAAS,MAAM,cAAc,CAAC;AACrC,OAAO,OAAO,MAAM,YAAY,CAAC;AACjC,OAAO,MAAM,MAAM,WAAW,CAAC;AAC/B,OAAO,GAAG,MAAM,OAAO,CAAC;AACxB,OAAO,OAAO,MAAM,WAAW,CAAC;AAChC,OAAO,MAAM,MAAM,UAAU,CAAC;AAC9B,OAAO,aAAa,MAAM,kBAAkB,CAAC;AAC7C,OAAO,MAAM,MAAM,UAAU,CAAC;AAC9B,OAAO,SAAS,MAAM,cAAc,CAAC;AACrC,OAAO,OAAO,MAAM,WAAW,CAAC;AAChC,OAAO,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AAErC,OAAO,EACL,MAAM,EACN,UAAU,EACV,OAAO,EACP,SAAS,EACT,OAAO,EACP,MAAM,EACN,GAAG,EACH,OAAO,EACP,MAAM,EACN,aAAa,EACb,MAAM,EACN,SAAS,EACT,OAAO,GACR,CAAC"}
|
|
@@ -8,6 +8,7 @@ import Vakario from "./vakario";
|
|
|
8
8
|
import Elloha from "./elloha";
|
|
9
9
|
import OtherProducts from "./other-products";
|
|
10
10
|
import Tunnel from "./tunnel";
|
|
11
|
+
import TunnelNew from "./tunnel-new";
|
|
11
12
|
import Account from "./account";
|
|
12
13
|
import { loadWidget } from "./utils";
|
|
13
|
-
export { Script, loadWidget, Lodging, SkiRental, SkiPass, LiftJb, Esf, Vakario, Elloha, OtherProducts, Tunnel, Account, };
|
|
14
|
+
export { Script, loadWidget, Lodging, SkiRental, SkiPass, LiftJb, Esf, Vakario, Elloha, OtherProducts, Tunnel, TunnelNew, Account, };
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import type { GlobalOptions, GlobalPresets } from "./types";
|
|
3
|
+
type Show = "cart" | "offers" | "stay";
|
|
4
|
+
type Options = GlobalOptions & {
|
|
5
|
+
esfUrl?: string;
|
|
6
|
+
skiPassUrl?: string;
|
|
7
|
+
lodgingUrl?: string;
|
|
8
|
+
activitiesUrl?: string;
|
|
9
|
+
wellnessUrl?: string;
|
|
10
|
+
skiRentalUrl?: string;
|
|
11
|
+
privateTransferUrl?: string;
|
|
12
|
+
shuttleUrl?: string;
|
|
13
|
+
excursionUrl?: string;
|
|
14
|
+
parkingUrl?: string;
|
|
15
|
+
textileUrl?: string;
|
|
16
|
+
daycareUrl?: string;
|
|
17
|
+
skiSchoolUrl?: string;
|
|
18
|
+
customOffers?: string;
|
|
19
|
+
cartExpanded?: boolean;
|
|
20
|
+
cartChanged?: (cart: any) => void;
|
|
21
|
+
show?: Show[];
|
|
22
|
+
};
|
|
23
|
+
type Presets = GlobalPresets & {};
|
|
24
|
+
type Props = {
|
|
25
|
+
options?: Options;
|
|
26
|
+
presets?: Presets;
|
|
27
|
+
children?: React.ReactNode;
|
|
28
|
+
};
|
|
29
|
+
declare const _default: React.MemoExoticComponent<typeof TunnelNew>;
|
|
30
|
+
export default _default;
|
|
31
|
+
declare function TunnelNew({ options, presets, children }: Props): React.ReactNode;
|
|
32
|
+
//# sourceMappingURL=tunnel-new.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
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,EAAE,QAAQ,EAAE,EAAE,KAAK,mBAkBvD"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import * as Utils from "./utils";
|
|
3
|
+
import * as Plausible from "../../../future/components/plausible";
|
|
4
|
+
export default React.memo(TunnelNew);
|
|
5
|
+
function TunnelNew({ options, presets, children }) {
|
|
6
|
+
React.useEffect(() => {
|
|
7
|
+
const categoryCode = window.sessionStorage.getItem("categoryCode") || undefined;
|
|
8
|
+
const patchedOptions = {
|
|
9
|
+
categoryCode,
|
|
10
|
+
...options,
|
|
11
|
+
analytics: (...args) => {
|
|
12
|
+
options?.analytics?.apply(null, args);
|
|
13
|
+
Plausible.callback.apply(null, args);
|
|
14
|
+
},
|
|
15
|
+
};
|
|
16
|
+
Utils.loadWidget("tunnelNew", patchedOptions, presets);
|
|
17
|
+
}, [options, presets]);
|
|
18
|
+
return children;
|
|
19
|
+
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
type Widget = "tunnel" | "lodging" | "esf" | "skiRental" | "skiPass" | "liftJb" | "transfer" | "shuttle" | "excursion" | "otherProducts" | "genericLine" | "esfCustom" | "vakario" | "elloha" | "widgetPackage" | "customerAccount";
|
|
1
|
+
type Widget = "tunnel" | "tunnelNew" | "lodging" | "esf" | "skiRental" | "skiPass" | "liftJb" | "transfer" | "shuttle" | "excursion" | "otherProducts" | "genericLine" | "esfCustom" | "vakario" | "elloha" | "widgetPackage" | "customerAccount";
|
|
2
2
|
export declare function loadWidget(widget: Widget, options?: {}, presets?: {}): void;
|
|
3
3
|
export {};
|
|
4
4
|
//# sourceMappingURL=utils.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../../src/future/components/msem/utils.ts"],"names":[],"mappings":"AAAA,KAAK,MAAM,GACP,QAAQ,GACR,SAAS,GACT,KAAK,GACL,WAAW,GACX,SAAS,GACT,QAAQ,GACR,UAAU,GACV,SAAS,GACT,WAAW,GACX,eAAe,GACf,aAAa,GACb,WAAW,GACX,SAAS,GACT,QAAQ,GACR,eAAe,GACf,iBAAiB,CAAC;AAEtB,wBAAgB,UAAU,CAAC,MAAM,EAAE,MAAM,EAAE,OAAO,KAAK,EAAE,OAAO,KAAK,QAgBpE"}
|
|
1
|
+
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../../src/future/components/msem/utils.ts"],"names":[],"mappings":"AAAA,KAAK,MAAM,GACP,QAAQ,GACR,WAAW,GACX,SAAS,GACT,KAAK,GACL,WAAW,GACX,SAAS,GACT,QAAQ,GACR,UAAU,GACV,SAAS,GACT,WAAW,GACX,eAAe,GACf,aAAa,GACb,WAAW,GACX,SAAS,GACT,QAAQ,GACR,eAAe,GACf,iBAAiB,CAAC;AAEtB,wBAAgB,UAAU,CAAC,MAAM,EAAE,MAAM,EAAE,OAAO,KAAK,EAAE,OAAO,KAAK,QAgBpE"}
|