ublo-lib 1.47.76 → 1.47.77
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/common/components/cart-dialog/cart-dialog-inner.d.ts +2 -1
- package/es/common/components/cart-dialog/cart-dialog-inner.d.ts.map +1 -1
- package/es/common/components/cart-dialog/cart-dialog-inner.js +7 -2
- package/es/common/components/cart-dialog/cart-dialog.d.ts +2 -1
- package/es/common/components/cart-dialog/cart-dialog.d.ts.map +1 -1
- package/es/common/components/cart-dialog/cart-dialog.js +2 -2
- package/es/common/components/cart-dialog/default.d.ts +2 -1
- package/es/common/components/cart-dialog/default.d.ts.map +1 -1
- package/es/common/components/cart-dialog/default.js +2 -2
- package/es/common/components/cart-dialog/esf-custom.d.ts +2 -1
- package/es/common/components/cart-dialog/esf-custom.d.ts.map +1 -1
- package/es/common/components/cart-dialog/esf-custom.js +2 -2
- package/es/common/components/cart-dialog/esf.d.ts +2 -1
- package/es/common/components/cart-dialog/esf.d.ts.map +1 -1
- package/es/common/components/cart-dialog/esf.js +2 -2
- package/es/common/components/cart-dialog/lodging.d.ts +2 -1
- package/es/common/components/cart-dialog/lodging.d.ts.map +1 -1
- package/es/common/components/cart-dialog/lodging.js +2 -2
- package/es/common/components/cart-dialog/ski-passes.d.ts +2 -1
- package/es/common/components/cart-dialog/ski-passes.d.ts.map +1 -1
- package/es/common/components/cart-dialog/ski-passes.js +2 -2
- package/es/common/components/cart-dialog/ski-rental.d.ts +2 -1
- package/es/common/components/cart-dialog/ski-rental.d.ts.map +1 -1
- package/es/common/components/cart-dialog/ski-rental.js +2 -2
- package/es/common/components/cart-dialog/vakario.d.ts +2 -1
- package/es/common/components/cart-dialog/vakario.d.ts.map +1 -1
- package/es/common/components/cart-dialog/vakario.js +2 -2
- package/package.json +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export default CartDialogInner;
|
|
2
|
-
declare function CartDialogInner({ kind, title, image, thumbnail, price, label, contentTitle, paxPlan, closeDialog, goToCart, cart, zoneId, zonePath, hideSkiPassesStay, customContinueURL, }: {
|
|
2
|
+
declare function CartDialogInner({ kind, title, image, thumbnail, price, label, contentTitle, paxPlan, closeDialog, goToCart, cart, zoneId, zonePath, hideSkiPassesStay, customContinueURL, onClickContinue, }: {
|
|
3
3
|
kind: any;
|
|
4
4
|
title: any;
|
|
5
5
|
image: any;
|
|
@@ -15,5 +15,6 @@ declare function CartDialogInner({ kind, title, image, thumbnail, price, label,
|
|
|
15
15
|
zonePath: any;
|
|
16
16
|
hideSkiPassesStay: any;
|
|
17
17
|
customContinueURL: any;
|
|
18
|
+
onClickContinue: any;
|
|
18
19
|
}): import("react/jsx-runtime").JSX.Element;
|
|
19
20
|
//# sourceMappingURL=cart-dialog-inner.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cart-dialog-inner.d.ts","sourceRoot":"","sources":["../../../../src/common/components/cart-dialog/cart-dialog-inner.js"],"names":[],"mappings":";AAWA
|
|
1
|
+
{"version":3,"file":"cart-dialog-inner.d.ts","sourceRoot":"","sources":["../../../../src/common/components/cart-dialog/cart-dialog-inner.js"],"names":[],"mappings":";AAWA;;;;;;;;;;;;;;;;;4CAyHC"}
|
|
@@ -9,7 +9,7 @@ import { message } from "./message";
|
|
|
9
9
|
import CrossSellingOffers from "./cross-selling-offers";
|
|
10
10
|
import CheckCircleIcon from "dt-design-system/es/icons/check-circle";
|
|
11
11
|
import styles from "./cart-dialog-inner.module.css";
|
|
12
|
-
const CartDialogInner = ({ kind, title, image, thumbnail, price, label, contentTitle, paxPlan, closeDialog, goToCart, cart, zoneId, zonePath, hideSkiPassesStay, customContinueURL, }) => {
|
|
12
|
+
const CartDialogInner = ({ kind, title, image, thumbnail, price, label, contentTitle, paxPlan, closeDialog, goToCart, cart, zoneId, zonePath, hideSkiPassesStay, customContinueURL, onClickContinue, }) => {
|
|
13
13
|
const [stay, setStay] = React.useState({ from: "", to: "" });
|
|
14
14
|
const { lang, config } = useUbloContext();
|
|
15
15
|
const hasLangPrefix = config.langPrefix.links;
|
|
@@ -26,6 +26,11 @@ const CartDialogInner = ({ kind, title, image, thumbnail, price, label, contentT
|
|
|
26
26
|
const formattedStayFrom = stay?.from && new Date(stay.from).toLocaleDateString(lang, formatOptions);
|
|
27
27
|
const formattedStayTo = stay?.to && new Date(stay.to).toLocaleDateString(lang, formatOptions);
|
|
28
28
|
const buttonClasses = classNames(styles.contentButton, styles.contentButtonContinue);
|
|
29
|
-
return (_jsxs("div", { className: styles.inner, children: [_jsxs("div", { className: styles.title, children: [_jsx(CheckCircleIcon, { className: styles.titleIcon }), _jsx("div", { className: styles.titleText, children: title })] }), _jsxs("div", { className: styles.content, children: [image && (_jsx("div", { className: styles.contentLeft, children: _jsx(Image, { className: styles.productImage, src: image, width: 320, height: 200, placeholder: thumbnail ? "blur" : undefined, blurDataURL: thumbnail, alt: "" }) })), _jsxs("div", { className: styles.contentRight, children: [_jsxs("div", { className: styles.wrapper, children: [label && (_jsx("div", { className: styles.contentLabel, dangerouslySetInnerHTML: { __html: label } })), price && price > 0 ? (_jsxs("div", { className: styles.price, children: [parseFloat(price).toFixed(2), " \u20AC"] })) : null, price === 0 && (_jsx("div", { className: styles.price, children: message(lang, "free") }))] }), contentTitle && (_jsx("div", { className: styles.contentTitle, children: contentTitle })), !hideSkiPassesStay && formattedStayFrom && formattedStayTo && (_jsxs("div", { className: styles.stay, children: [formattedStayFrom, " \uA537 ", formattedStayTo] })), paxPlan && _jsx("div", { className: styles.paxPlan, children: paxPlan }), _jsxs("div", { className: styles.contentButtons, children: [_jsx(Button, { tag: Link, href: continueToSiteURL, className: buttonClasses, variant: "secondary", onClick:
|
|
29
|
+
return (_jsxs("div", { className: styles.inner, children: [_jsxs("div", { className: styles.title, children: [_jsx(CheckCircleIcon, { className: styles.titleIcon }), _jsx("div", { className: styles.titleText, children: title })] }), _jsxs("div", { className: styles.content, children: [image && (_jsx("div", { className: styles.contentLeft, children: _jsx(Image, { className: styles.productImage, src: image, width: 320, height: 200, placeholder: thumbnail ? "blur" : undefined, blurDataURL: thumbnail, alt: "" }) })), _jsxs("div", { className: styles.contentRight, children: [_jsxs("div", { className: styles.wrapper, children: [label && (_jsx("div", { className: styles.contentLabel, dangerouslySetInnerHTML: { __html: label } })), price && price > 0 ? (_jsxs("div", { className: styles.price, children: [parseFloat(price).toFixed(2), " \u20AC"] })) : null, price === 0 && (_jsx("div", { className: styles.price, children: message(lang, "free") }))] }), contentTitle && (_jsx("div", { className: styles.contentTitle, children: contentTitle })), !hideSkiPassesStay && formattedStayFrom && formattedStayTo && (_jsxs("div", { className: styles.stay, children: [formattedStayFrom, " \uA537 ", formattedStayTo] })), paxPlan && _jsx("div", { className: styles.paxPlan, children: paxPlan }), _jsxs("div", { className: styles.contentButtons, children: [_jsx(Button, { tag: Link, href: continueToSiteURL, className: buttonClasses, variant: "secondary", onClick: () => {
|
|
30
|
+
if (onClickContinue) {
|
|
31
|
+
onClickContinue();
|
|
32
|
+
}
|
|
33
|
+
closeDialog();
|
|
34
|
+
}, children: message(lang, "cart-dialog-continue") }), _jsx(Button, { className: styles.contentButton, onClick: goToCart, children: message(lang, "cart-dialog-go-to-cart") })] })] })] }), kind && (_jsx(CrossSellingOffers, { kind: kind, cart: cart, closeDialog: closeDialog, zoneId: zoneId, zonePath: zonePath }))] }));
|
|
30
35
|
};
|
|
31
36
|
export default CartDialogInner;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export default CartDialog;
|
|
2
|
-
declare function CartDialog({ cart, setCart, shortcuts, paxPlan, facet, zoneId, zonePath, hasImage, hideSkiPassesStay, customContinueURL, }: {
|
|
2
|
+
declare function CartDialog({ cart, setCart, shortcuts, paxPlan, facet, zoneId, zonePath, hasImage, hideSkiPassesStay, customContinueURL, onClickContinue, }: {
|
|
3
3
|
cart: any;
|
|
4
4
|
setCart: any;
|
|
5
5
|
shortcuts: any;
|
|
@@ -10,5 +10,6 @@ declare function CartDialog({ cart, setCart, shortcuts, paxPlan, facet, zoneId,
|
|
|
10
10
|
hasImage: any;
|
|
11
11
|
hideSkiPassesStay: any;
|
|
12
12
|
customContinueURL: any;
|
|
13
|
+
onClickContinue: any;
|
|
13
14
|
}): import("react/jsx-runtime").JSX.Element;
|
|
14
15
|
//# sourceMappingURL=cart-dialog.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cart-dialog.d.ts","sourceRoot":"","sources":["../../../../src/common/components/cart-dialog/cart-dialog.js"],"names":[],"mappings":";AAuBA
|
|
1
|
+
{"version":3,"file":"cart-dialog.d.ts","sourceRoot":"","sources":["../../../../src/common/components/cart-dialog/cart-dialog.js"],"names":[],"mappings":";AAuBA;;;;;;;;;;;;4CA6EC"}
|
|
@@ -19,7 +19,7 @@ const products = {
|
|
|
19
19
|
VAKARIO: Vakario,
|
|
20
20
|
};
|
|
21
21
|
const STAND_PRODUCTS = ["VAKARIO", "ELLOHA-ACTIVITY"];
|
|
22
|
-
const CartDialog = ({ cart, setCart, shortcuts, paxPlan, facet, zoneId, zonePath, hasImage, hideSkiPassesStay, customContinueURL, }) => {
|
|
22
|
+
const CartDialog = ({ cart, setCart, shortcuts, paxPlan, facet, zoneId, zonePath, hasImage, hideSkiPassesStay, customContinueURL, onClickContinue, }) => {
|
|
23
23
|
const { lang, config } = useUbloContext();
|
|
24
24
|
const hasLangPrefix = config.langPrefix.links;
|
|
25
25
|
if (!cart)
|
|
@@ -49,6 +49,6 @@ const CartDialog = ({ cart, setCart, shortcuts, paxPlan, facet, zoneId, zonePath
|
|
|
49
49
|
window.location.href = cartUrl;
|
|
50
50
|
};
|
|
51
51
|
const Component = isSupported ? products[kind] : products.DEFAULT;
|
|
52
|
-
return (_jsx(Dialog, { className: styles.cartDialog, isOpened: Boolean(cart), close: closeDialogAndReload, closeButtonVariant: "link", children: _jsx(Component, { kind: kind, item: newItem, data: data, closeDialog: closeDialog, goToCart: goToCart, cart: cart, paxPlan: paxPlan, facet: facet, zoneId: zoneId, zonePath: zonePath, hasImage: hasImage, hideSkiPassesStay: hideSkiPassesStay, customContinueURL: customContinueURL }) }));
|
|
52
|
+
return (_jsx(Dialog, { className: styles.cartDialog, isOpened: Boolean(cart), close: closeDialogAndReload, closeButtonVariant: "link", children: _jsx(Component, { kind: kind, item: newItem, data: data, closeDialog: closeDialog, goToCart: goToCart, cart: cart, paxPlan: paxPlan, facet: facet, zoneId: zoneId, zonePath: zonePath, hasImage: hasImage, hideSkiPassesStay: hideSkiPassesStay, customContinueURL: customContinueURL, onClickContinue: onClickContinue }) }));
|
|
53
53
|
};
|
|
54
54
|
export default CartDialog;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export default Default;
|
|
2
|
-
declare function Default({ kind, closeDialog, goToCart, cart, facet, zoneId, zonePath, customContinueURL, }: {
|
|
2
|
+
declare function Default({ kind, closeDialog, goToCart, cart, facet, zoneId, zonePath, customContinueURL, onClickContinue, }: {
|
|
3
3
|
kind: any;
|
|
4
4
|
closeDialog: any;
|
|
5
5
|
goToCart: any;
|
|
@@ -8,5 +8,6 @@ declare function Default({ kind, closeDialog, goToCart, cart, facet, zoneId, zon
|
|
|
8
8
|
zoneId: any;
|
|
9
9
|
zonePath: any;
|
|
10
10
|
customContinueURL: any;
|
|
11
|
+
onClickContinue: any;
|
|
11
12
|
}): import("react/jsx-runtime").JSX.Element;
|
|
12
13
|
//# sourceMappingURL=default.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"default.d.ts","sourceRoot":"","sources":["../../../../src/common/components/cart-dialog/default.js"],"names":[],"mappings":";AAIA
|
|
1
|
+
{"version":3,"file":"default.d.ts","sourceRoot":"","sources":["../../../../src/common/components/cart-dialog/default.js"],"names":[],"mappings":";AAIA;;;;;;;;;;4CAoCC"}
|
|
@@ -2,11 +2,11 @@ import { jsxs as _jsxs, Fragment as _Fragment, jsx as _jsx } from "react/jsx-run
|
|
|
2
2
|
import { useUbloContext } from "ublo/with-ublo";
|
|
3
3
|
import CartDialogInner from "./cart-dialog-inner";
|
|
4
4
|
import { message } from "./message";
|
|
5
|
-
const Default = ({ kind, closeDialog, goToCart, cart, facet, zoneId, zonePath, customContinueURL, }) => {
|
|
5
|
+
const Default = ({ kind, closeDialog, goToCart, cart, facet, zoneId, zonePath, customContinueURL, onClickContinue, }) => {
|
|
6
6
|
const { lang } = useUbloContext();
|
|
7
7
|
const Title = () => {
|
|
8
8
|
return (_jsxs(_Fragment, { children: [_jsxs("b", { children: [message(lang, "cart-dialog-product-title"), " "] }), message(lang, "cart-dialog-title-suffix-singular")] }));
|
|
9
9
|
};
|
|
10
|
-
return (_jsx(CartDialogInner, { customContinueURL: customContinueURL, kind: kind, title: _jsx(Title, {}), closeDialog: closeDialog, goToCart: goToCart, cart: cart, facet: facet, zoneId: zoneId, zonePath: zonePath }));
|
|
10
|
+
return (_jsx(CartDialogInner, { customContinueURL: customContinueURL, onClickContinue: onClickContinue, kind: kind, title: _jsx(Title, {}), closeDialog: closeDialog, goToCart: goToCart, cart: cart, facet: facet, zoneId: zoneId, zonePath: zonePath }));
|
|
11
11
|
};
|
|
12
12
|
export default Default;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export default ESFCustom;
|
|
2
|
-
declare function ESFCustom({ item, closeDialog, goToCart, cart, facet, zoneId, zonePath, hasImage, customContinueURL, }: {
|
|
2
|
+
declare function ESFCustom({ item, closeDialog, goToCart, cart, facet, zoneId, zonePath, hasImage, customContinueURL, onClickContinue, }: {
|
|
3
3
|
item: any;
|
|
4
4
|
closeDialog: any;
|
|
5
5
|
goToCart: any;
|
|
@@ -9,5 +9,6 @@ declare function ESFCustom({ item, closeDialog, goToCart, cart, facet, zoneId, z
|
|
|
9
9
|
zonePath: any;
|
|
10
10
|
hasImage: any;
|
|
11
11
|
customContinueURL: any;
|
|
12
|
+
onClickContinue: any;
|
|
12
13
|
}): import("react/jsx-runtime").JSX.Element;
|
|
13
14
|
//# sourceMappingURL=esf-custom.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"esf-custom.d.ts","sourceRoot":"","sources":["../../../../src/common/components/cart-dialog/esf-custom.js"],"names":[],"mappings":";AAKA
|
|
1
|
+
{"version":3,"file":"esf-custom.d.ts","sourceRoot":"","sources":["../../../../src/common/components/cart-dialog/esf-custom.js"],"names":[],"mappings":";AAKA;;;;;;;;;;;4CAiDC"}
|
|
@@ -3,7 +3,7 @@ import { useUbloContext } from "ublo/with-ublo";
|
|
|
3
3
|
import CartDialogInner from "./cart-dialog-inner";
|
|
4
4
|
import { message } from "./message";
|
|
5
5
|
import imagePaths from "./image-paths.json";
|
|
6
|
-
const ESFCustom = ({ item, closeDialog, goToCart, cart, facet, zoneId, zonePath, hasImage, customContinueURL, }) => {
|
|
6
|
+
const ESFCustom = ({ item, closeDialog, goToCart, cart, facet, zoneId, zonePath, hasImage, customContinueURL, onClickContinue, }) => {
|
|
7
7
|
const { lang } = useUbloContext();
|
|
8
8
|
const { activity, level, name, price } = item.product;
|
|
9
9
|
const kind = "ski-lessons";
|
|
@@ -14,6 +14,6 @@ const ESFCustom = ({ item, closeDialog, goToCart, cart, facet, zoneId, zonePath,
|
|
|
14
14
|
const Title = () => {
|
|
15
15
|
return (_jsxs(_Fragment, { children: [_jsxs("b", { children: [message(lang, "cart-dialog-esf-title"), " "] }), message(lang, "cart-dialog-title-suffix-singular")] }));
|
|
16
16
|
};
|
|
17
|
-
return (_jsx(CartDialogInner, { customContinueURL: customContinueURL, kind: kind, title: _jsx(Title, {}), image: image, price: price, contentTitle: name, label: activity.concat(" - ", level), closeDialog: closeDialog, goToCart: goToCart, cart: cart, facet: facet, zoneId: zoneId, zonePath: zonePath }));
|
|
17
|
+
return (_jsx(CartDialogInner, { customContinueURL: customContinueURL, onClickContinue: onClickContinue, kind: kind, title: _jsx(Title, {}), image: image, price: price, contentTitle: name, label: activity.concat(" - ", level), closeDialog: closeDialog, goToCart: goToCart, cart: cart, facet: facet, zoneId: zoneId, zonePath: zonePath }));
|
|
18
18
|
};
|
|
19
19
|
export default ESFCustom;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export default ESF;
|
|
2
|
-
declare function ESF({ item, closeDialog, goToCart, cart, facet, zoneId, zonePath, hasImage, customContinueURL, }: {
|
|
2
|
+
declare function ESF({ item, closeDialog, goToCart, cart, facet, zoneId, zonePath, hasImage, customContinueURL, onClickContinue, }: {
|
|
3
3
|
item: any;
|
|
4
4
|
closeDialog: any;
|
|
5
5
|
goToCart: any;
|
|
@@ -9,5 +9,6 @@ declare function ESF({ item, closeDialog, goToCart, cart, facet, zoneId, zonePat
|
|
|
9
9
|
zonePath: any;
|
|
10
10
|
hasImage: any;
|
|
11
11
|
customContinueURL: any;
|
|
12
|
+
onClickContinue: any;
|
|
12
13
|
}): import("react/jsx-runtime").JSX.Element;
|
|
13
14
|
//# sourceMappingURL=esf.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"esf.d.ts","sourceRoot":"","sources":["../../../../src/common/components/cart-dialog/esf.js"],"names":[],"mappings":";AAKA
|
|
1
|
+
{"version":3,"file":"esf.d.ts","sourceRoot":"","sources":["../../../../src/common/components/cart-dialog/esf.js"],"names":[],"mappings":";AAKA;;;;;;;;;;;4CAwDC"}
|
|
@@ -3,7 +3,7 @@ import { useUbloContext } from "ublo/with-ublo";
|
|
|
3
3
|
import CartDialogInner from "./cart-dialog-inner";
|
|
4
4
|
import { message } from "./message";
|
|
5
5
|
import imagePaths from "./image-paths.json";
|
|
6
|
-
const ESF = ({ item, closeDialog, goToCart, cart, facet, zoneId, zonePath, hasImage, customContinueURL, }) => {
|
|
6
|
+
const ESF = ({ item, closeDialog, goToCart, cart, facet, zoneId, zonePath, hasImage, customContinueURL, onClickContinue, }) => {
|
|
7
7
|
const { lang } = useUbloContext();
|
|
8
8
|
const { activity, level, name, price } = item.product;
|
|
9
9
|
const kind = "ski-lessons";
|
|
@@ -18,6 +18,6 @@ const ESF = ({ item, closeDialog, goToCart, cart, facet, zoneId, zonePath, hasIm
|
|
|
18
18
|
const Title = () => {
|
|
19
19
|
return (_jsxs(_Fragment, { children: [_jsxs("b", { children: [message(lang, "cart-dialog-esf-title"), " "] }), message(lang, "cart-dialog-title-suffix-singular")] }));
|
|
20
20
|
};
|
|
21
|
-
return (_jsx(CartDialogInner, { customContinueURL: customContinueURL, kind: kind, title: _jsx(Title, {}), image: image, price: price, contentTitle: name, label: label, closeDialog: closeDialog, goToCart: goToCart, cart: cart, facet: facet, zoneId: zoneId, zonePath: zonePath }));
|
|
21
|
+
return (_jsx(CartDialogInner, { customContinueURL: customContinueURL, onClickContinue: onClickContinue, kind: kind, title: _jsx(Title, {}), image: image, price: price, contentTitle: name, label: label, closeDialog: closeDialog, goToCart: goToCart, cart: cart, facet: facet, zoneId: zoneId, zonePath: zonePath }));
|
|
22
22
|
};
|
|
23
23
|
export default ESF;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export default Lodging;
|
|
2
|
-
declare function Lodging({ item, data, closeDialog, goToCart, cart, facet, paxPlan, zoneId, zonePath, hasImage, customContinueURL, }: {
|
|
2
|
+
declare function Lodging({ item, data, closeDialog, goToCart, cart, facet, paxPlan, zoneId, zonePath, hasImage, customContinueURL, onClickContinue, }: {
|
|
3
3
|
item: any;
|
|
4
4
|
data: any;
|
|
5
5
|
closeDialog: any;
|
|
@@ -11,5 +11,6 @@ declare function Lodging({ item, data, closeDialog, goToCart, cart, facet, paxPl
|
|
|
11
11
|
zonePath: any;
|
|
12
12
|
hasImage: any;
|
|
13
13
|
customContinueURL: any;
|
|
14
|
+
onClickContinue: any;
|
|
14
15
|
}): import("react/jsx-runtime").JSX.Element;
|
|
15
16
|
//# sourceMappingURL=lodging.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"lodging.d.ts","sourceRoot":"","sources":["../../../../src/common/components/cart-dialog/lodging.js"],"names":[],"mappings":";AAiCA
|
|
1
|
+
{"version":3,"file":"lodging.d.ts","sourceRoot":"","sources":["../../../../src/common/components/cart-dialog/lodging.js"],"names":[],"mappings":";AAiCA;;;;;;;;;;;;;4CA8DC"}
|
|
@@ -26,7 +26,7 @@ const getPaxPlanLabel = (lang, paxPlan) => {
|
|
|
26
26
|
}
|
|
27
27
|
return "";
|
|
28
28
|
};
|
|
29
|
-
const Lodging = ({ item, data, closeDialog, goToCart, cart, facet, paxPlan, zoneId, zonePath, hasImage, customContinueURL, }) => {
|
|
29
|
+
const Lodging = ({ item, data, closeDialog, goToCart, cart, facet, paxPlan, zoneId, zonePath, hasImage, customContinueURL, onClickContinue, }) => {
|
|
30
30
|
const { lang } = useUbloContext();
|
|
31
31
|
const { hotel, room, total } = item.description;
|
|
32
32
|
const { options = [] } = item.conciergeries || {};
|
|
@@ -43,6 +43,6 @@ const Lodging = ({ item, data, closeDialog, goToCart, cart, facet, paxPlan, zone
|
|
|
43
43
|
const Title = () => {
|
|
44
44
|
return (_jsxs(_Fragment, { children: [_jsxs("b", { children: [message(lang, "cart-dialog-lodging-title"), " "] }), message(lang, "cart-dialog-title-suffix-singular")] }));
|
|
45
45
|
};
|
|
46
|
-
return (_jsx(CartDialogInner, { customContinueURL: customContinueURL, kind: kind, title: _jsx(Title, {}), image: image, thumbnail: thumbnail, price: price, label: room, contentTitle: hotel, paxPlan: formattedPaxPlan, closeDialog: closeDialog, goToCart: goToCart, cart: cart, facet: facet, zoneId: zoneId, zonePath: zonePath }));
|
|
46
|
+
return (_jsx(CartDialogInner, { customContinueURL: customContinueURL, onClickContinue: onClickContinue, kind: kind, title: _jsx(Title, {}), image: image, thumbnail: thumbnail, price: price, label: room, contentTitle: hotel, paxPlan: formattedPaxPlan, closeDialog: closeDialog, goToCart: goToCart, cart: cart, facet: facet, zoneId: zoneId, zonePath: zonePath }));
|
|
47
47
|
};
|
|
48
48
|
export default Lodging;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export default SkiPasses;
|
|
2
|
-
declare function SkiPasses({ item, facet, closeDialog, goToCart, cart, zoneId, zonePath, hasImage, hideSkiPassesStay, customContinueURL, }: {
|
|
2
|
+
declare function SkiPasses({ item, facet, closeDialog, goToCart, cart, zoneId, zonePath, hasImage, hideSkiPassesStay, customContinueURL, onClickContinue, }: {
|
|
3
3
|
item: any;
|
|
4
4
|
facet: any;
|
|
5
5
|
closeDialog: any;
|
|
@@ -10,5 +10,6 @@ declare function SkiPasses({ item, facet, closeDialog, goToCart, cart, zoneId, z
|
|
|
10
10
|
hasImage: any;
|
|
11
11
|
hideSkiPassesStay: any;
|
|
12
12
|
customContinueURL: any;
|
|
13
|
+
onClickContinue: any;
|
|
13
14
|
}): import("react/jsx-runtime").JSX.Element;
|
|
14
15
|
//# sourceMappingURL=ski-passes.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ski-passes.d.ts","sourceRoot":"","sources":["../../../../src/common/components/cart-dialog/ski-passes.js"],"names":[],"mappings":";AAUA
|
|
1
|
+
{"version":3,"file":"ski-passes.d.ts","sourceRoot":"","sources":["../../../../src/common/components/cart-dialog/ski-passes.js"],"names":[],"mappings":";AAUA;;;;;;;;;;;;4CAqDC"}
|
|
@@ -8,7 +8,7 @@ const getGroupLabel = (lang, tickets) => {
|
|
|
8
8
|
return `1 ${message(lang, "person")}`;
|
|
9
9
|
return `${tickets.length} ${message(lang, "persons")}`;
|
|
10
10
|
};
|
|
11
|
-
const SkiPasses = ({ item, facet, closeDialog, goToCart, cart, zoneId, zonePath, hasImage, hideSkiPassesStay, customContinueURL, }) => {
|
|
11
|
+
const SkiPasses = ({ item, facet, closeDialog, goToCart, cart, zoneId, zonePath, hasImage, hideSkiPassesStay, customContinueURL, onClickContinue, }) => {
|
|
12
12
|
const { lang } = useUbloContext();
|
|
13
13
|
const { label, price, tickets } = item;
|
|
14
14
|
const kind = "ski-passes";
|
|
@@ -20,6 +20,6 @@ const SkiPasses = ({ item, facet, closeDialog, goToCart, cart, zoneId, zonePath,
|
|
|
20
20
|
const Title = () => {
|
|
21
21
|
return (_jsxs(_Fragment, { children: [_jsxs("b", { children: [message(lang, "cart-dialog-ski-passes-title"), " "] }), message(lang, "cart-dialog-title-suffix-plural")] }));
|
|
22
22
|
};
|
|
23
|
-
return (_jsx(CartDialogInner, { customContinueURL: customContinueURL, kind: kind, title: _jsx(Title, {}), image: image, price: price, contentTitle: label, paxPlan: formattedPaxPlan, closeDialog: closeDialog, goToCart: goToCart, cart: cart, facet: facet, zoneId: zoneId, zonePath: zonePath, hideSkiPassesStay: hideSkiPassesStay }));
|
|
23
|
+
return (_jsx(CartDialogInner, { customContinueURL: customContinueURL, onClickContinue: onClickContinue, kind: kind, title: _jsx(Title, {}), image: image, price: price, contentTitle: label, paxPlan: formattedPaxPlan, closeDialog: closeDialog, goToCart: goToCart, cart: cart, facet: facet, zoneId: zoneId, zonePath: zonePath, hideSkiPassesStay: hideSkiPassesStay }));
|
|
24
24
|
};
|
|
25
25
|
export default SkiPasses;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export default SkiRental;
|
|
2
|
-
declare function SkiRental({ item, facet, closeDialog, goToCart, cart, zoneId, zonePath, hasImage, customContinueURL, }: {
|
|
2
|
+
declare function SkiRental({ item, facet, closeDialog, goToCart, cart, zoneId, zonePath, hasImage, customContinueURL, onClickContinue, }: {
|
|
3
3
|
item: any;
|
|
4
4
|
facet: any;
|
|
5
5
|
closeDialog: any;
|
|
@@ -9,5 +9,6 @@ declare function SkiRental({ item, facet, closeDialog, goToCart, cart, zoneId, z
|
|
|
9
9
|
zonePath: any;
|
|
10
10
|
hasImage: any;
|
|
11
11
|
customContinueURL: any;
|
|
12
|
+
onClickContinue: any;
|
|
12
13
|
}): import("react/jsx-runtime").JSX.Element;
|
|
13
14
|
//# sourceMappingURL=ski-rental.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ski-rental.d.ts","sourceRoot":"","sources":["../../../../src/common/components/cart-dialog/ski-rental.js"],"names":[],"mappings":";AAKA
|
|
1
|
+
{"version":3,"file":"ski-rental.d.ts","sourceRoot":"","sources":["../../../../src/common/components/cart-dialog/ski-rental.js"],"names":[],"mappings":";AAKA;;;;;;;;;;;4CAoDC"}
|
|
@@ -3,7 +3,7 @@ import { useUbloContext } from "ublo/with-ublo";
|
|
|
3
3
|
import CartDialogInner from "./cart-dialog-inner";
|
|
4
4
|
import { message } from "./message";
|
|
5
5
|
import imagePaths from "./image-paths.json";
|
|
6
|
-
const SkiRental = ({ item, facet, closeDialog, goToCart, cart, zoneId, zonePath, hasImage, customContinueURL, }) => {
|
|
6
|
+
const SkiRental = ({ item, facet, closeDialog, goToCart, cart, zoneId, zonePath, hasImage, customContinueURL, onClickContinue, }) => {
|
|
7
7
|
const { lang } = useUbloContext();
|
|
8
8
|
const { rentDuration, price, products } = item;
|
|
9
9
|
const kind = "ski-rental";
|
|
@@ -15,6 +15,6 @@ const SkiRental = ({ item, facet, closeDialog, goToCart, cart, zoneId, zonePath,
|
|
|
15
15
|
const Title = () => {
|
|
16
16
|
return (_jsxs(_Fragment, { children: [_jsxs("b", { children: [message(lang, "cart-dialog-ski-rental-title"), " "] }), message(lang, "cart-dialog-title-suffix-singular")] }));
|
|
17
17
|
};
|
|
18
|
-
return (_jsx(CartDialogInner, { customContinueURL: customContinueURL, kind: "ski-rental", title: _jsx(Title, {}), image: image, price: price, contentTitle: rentDuration, label: product?.label, closeDialog: closeDialog, goToCart: goToCart, cart: cart, facet: facet, zoneId: zoneId, zonePath: zonePath }));
|
|
18
|
+
return (_jsx(CartDialogInner, { customContinueURL: customContinueURL, onClickContinue: onClickContinue, kind: "ski-rental", title: _jsx(Title, {}), image: image, price: price, contentTitle: rentDuration, label: product?.label, closeDialog: closeDialog, goToCart: goToCart, cart: cart, facet: facet, zoneId: zoneId, zonePath: zonePath }));
|
|
19
19
|
};
|
|
20
20
|
export default SkiRental;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export default Vakario;
|
|
2
|
-
declare function Vakario({ item, closeDialog, goToCart, cart, facet, zoneId, zonePath, hasImage, customContinueURL, }: {
|
|
2
|
+
declare function Vakario({ item, closeDialog, goToCart, cart, facet, zoneId, zonePath, hasImage, customContinueURL, onClickContinue, }: {
|
|
3
3
|
item: any;
|
|
4
4
|
closeDialog: any;
|
|
5
5
|
goToCart: any;
|
|
@@ -9,5 +9,6 @@ declare function Vakario({ item, closeDialog, goToCart, cart, facet, zoneId, zon
|
|
|
9
9
|
zonePath: any;
|
|
10
10
|
hasImage: any;
|
|
11
11
|
customContinueURL: any;
|
|
12
|
+
onClickContinue: any;
|
|
12
13
|
}): import("react/jsx-runtime").JSX.Element;
|
|
13
14
|
//# sourceMappingURL=vakario.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"vakario.d.ts","sourceRoot":"","sources":["../../../../src/common/components/cart-dialog/vakario.js"],"names":[],"mappings":";AAKA
|
|
1
|
+
{"version":3,"file":"vakario.d.ts","sourceRoot":"","sources":["../../../../src/common/components/cart-dialog/vakario.js"],"names":[],"mappings":";AAKA;;;;;;;;;;;4CAgDC"}
|
|
@@ -3,7 +3,7 @@ import { useUbloContext } from "ublo/with-ublo";
|
|
|
3
3
|
import CartDialogInner from "./cart-dialog-inner";
|
|
4
4
|
import { message } from "./message";
|
|
5
5
|
import imagePaths from "./image-paths.json";
|
|
6
|
-
const Vakario = ({ item, closeDialog, goToCart, cart, facet, zoneId, zonePath, hasImage, customContinueURL, }) => {
|
|
6
|
+
const Vakario = ({ item, closeDialog, goToCart, cart, facet, zoneId, zonePath, hasImage, customContinueURL, onClickContinue, }) => {
|
|
7
7
|
const { lang } = useUbloContext();
|
|
8
8
|
const { title, price } = item;
|
|
9
9
|
const kind = "vakario";
|
|
@@ -14,6 +14,6 @@ const Vakario = ({ item, closeDialog, goToCart, cart, facet, zoneId, zonePath, h
|
|
|
14
14
|
const Title = () => {
|
|
15
15
|
return (_jsxs(_Fragment, { children: [_jsxs("b", { children: [message(lang, "cart-dialog-product-title"), " "] }), message(lang, "cart-dialog-title-suffix-singular")] }));
|
|
16
16
|
};
|
|
17
|
-
return (_jsx(CartDialogInner, { customContinueURL: customContinueURL, kind: kind, title: _jsx(Title, {}), image: image, price: price, contentTitle: title, closeDialog: closeDialog, goToCart: goToCart, cart: cart, facet: facet, zoneId: zoneId, zonePath: zonePath }));
|
|
17
|
+
return (_jsx(CartDialogInner, { customContinueURL: customContinueURL, onClickContinue: onClickContinue, kind: kind, title: _jsx(Title, {}), image: image, price: price, contentTitle: title, closeDialog: closeDialog, goToCart: goToCart, cart: cart, facet: facet, zoneId: zoneId, zonePath: zonePath }));
|
|
18
18
|
};
|
|
19
19
|
export default Vakario;
|