ublo-lib 1.37.14 → 1.37.15

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,5 +1,5 @@
1
1
  export default SkiPasses;
2
- declare function SkiPasses({ item, facet, closeDialog, goToCart, cart, zoneId, zonePath, }: {
2
+ declare function SkiPasses({ item, facet, closeDialog, goToCart, cart, zoneId, zonePath, hasImage, }: {
3
3
  item: any;
4
4
  facet: any;
5
5
  closeDialog: any;
@@ -7,5 +7,6 @@ declare function SkiPasses({ item, facet, closeDialog, goToCart, cart, zoneId, z
7
7
  cart: any;
8
8
  zoneId: any;
9
9
  zonePath: any;
10
+ hasImage: any;
10
11
  }): import("react/jsx-runtime").JSX.Element;
11
12
  //# 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;;;;;;;;4CAyCC"}
1
+ {"version":3,"file":"ski-passes.d.ts","sourceRoot":"","sources":["../../../../src/common/components/cart-dialog/ski-passes.js"],"names":[],"mappings":";AAUA;;;;;;;;;4CA+CC"}
@@ -8,11 +8,14 @@ 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, }) => {
11
+ const SkiPasses = ({ item, facet, closeDialog, goToCart, cart, zoneId, zonePath, hasImage, }) => {
12
12
  const { lang } = useUbloContext();
13
13
  const { label, price, tickets } = item;
14
14
  const kind = "ski-passes";
15
- const image = imagePaths[kind][facet];
15
+ let image = undefined;
16
+ if (hasImage) {
17
+ image = imagePaths[kind][facet];
18
+ }
16
19
  const formattedPaxPlan = getGroupLabel(lang, tickets);
17
20
  const Title = () => {
18
21
  return (_jsxs(_Fragment, { children: [_jsxs("b", { children: [message(lang, "cart-dialog-ski-passes-title"), " "] }), message(lang, "cart-dialog-title-suffix-plural")] }));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ublo-lib",
3
- "version": "1.37.14",
3
+ "version": "1.37.15",
4
4
  "peerDependencies": {
5
5
  "dt-design-system": "^3.9.9",
6
6
  "leaflet": "^1.9.1",