@pisell/private-materials 6.12.465 → 6.12.467
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/build/lowcode/assets-daily.json +11 -11
- package/build/lowcode/assets-dev.json +2 -2
- package/build/lowcode/assets-prod.json +11 -11
- package/build/lowcode/meta.js +1 -1
- package/build/lowcode/render/default/view.js +1 -1
- package/build/lowcode/view.js +1 -1
- package/es/components/bigSale/hooks/useBigSaleProductListConfig.js +0 -1
- package/es/components/shoppingCart/utils.js +4 -3
- package/es/components/ticketBooking/components/addServiceVariant/addService.js +0 -1
- package/es/components/venueBookingSales/catalogPresentation.js +0 -1
- package/lib/components/shoppingCart/utils.js +4 -3
- package/package.json +2 -2
- package/es/components/ticketBooking/components/ProductDisplayAdapter/index.js +0 -3
|
@@ -2,7 +2,6 @@ import { _objectSpread2 } from "../../../_virtual/_@oxc-project_runtime@0.122.0/
|
|
|
2
2
|
import { _objectWithoutProperties } from "../../../_virtual/_@oxc-project_runtime@0.122.0/helpers/objectWithoutProperties.js";
|
|
3
3
|
import { generateProductTabs, sortProductsByTabOrder } from "../../ticketBooking/components/ProductDisplayAdapter/utils.js";
|
|
4
4
|
import { ProductDisplayPresets } from "../../ticketBooking/components/ProductDisplayAdapter/types.js";
|
|
5
|
-
import "../../ticketBooking/components/ProductDisplayAdapter/index.js";
|
|
6
5
|
import { mergeBigSaleProductListPreferences } from "../utils/productListPreferences.js";
|
|
7
6
|
import { useMemo, useRef } from "react";
|
|
8
7
|
import isEqual from "lodash/isEqual";
|
|
@@ -352,12 +352,13 @@ const formatCartProducts = (props) => {
|
|
|
352
352
|
const cards = formatProducts(products, state, false, false, false, translationOriginal);
|
|
353
353
|
if (!currentItem.isGift) return cards;
|
|
354
354
|
return cards.map((card) => {
|
|
355
|
-
var _card$_origin;
|
|
355
|
+
var _card$_origin, _card$_origin2;
|
|
356
356
|
const title = [card.title, (_card$_origin = card._origin) === null || _card$_origin === void 0 ? void 0 : _card$_origin.name].map((text) => resolveLocalizedText(text, translationOriginal, state === null || state === void 0 ? void 0 : state.locale)).find((text) => typeof text === "string" && text) || "";
|
|
357
|
-
|
|
357
|
+
const booking = card.start_date && card.end_date ? (_card$_origin2 = card._origin) === null || _card$_origin2 === void 0 ? void 0 : _card$_origin2._extend : void 0;
|
|
358
|
+
return _objectSpread2(_objectSpread2(_objectSpread2({}, card), {}, {
|
|
358
359
|
name: title,
|
|
359
360
|
title
|
|
360
|
-
});
|
|
361
|
+
}, (booking === null || booking === void 0 ? void 0 : booking.start_time) ? { start_time: booking.start_time } : {}), (booking === null || booking === void 0 ? void 0 : booking.end_time) ? { end_time: booking.end_time } : {});
|
|
361
362
|
});
|
|
362
363
|
} catch (error) {
|
|
363
364
|
return [];
|
|
@@ -20,7 +20,6 @@ import { useProducts } from "../../hooks/pisellos/useProducts.js";
|
|
|
20
20
|
import { useService } from "../../../booking/info/service/serviceManager/index.js";
|
|
21
21
|
import ProductDisplayAdapter_default from "../ProductDisplayAdapter/ProductDisplayAdapter.js";
|
|
22
22
|
import { resolveProductDisplayConfig } from "../ProductDisplayAdapter/types.js";
|
|
23
|
-
import "../ProductDisplayAdapter/index.js";
|
|
24
23
|
import notAvailable_default from "../notAvailable/index.js";
|
|
25
24
|
import MultiDayTimeSelectModal from "./MultiDayTimeSelectModal.js";
|
|
26
25
|
import dayjs from "dayjs";
|
|
@@ -3,7 +3,6 @@ import index from "../../plus/productSelect/components/pisellPriceText/index.js"
|
|
|
3
3
|
import { resolveProductPricePresentation } from "../../plus/productSelect/pricing/pricePresentation.js";
|
|
4
4
|
import SettlementPriceList from "../../plus/multiCurrencySettlement/SettlementPriceList.js";
|
|
5
5
|
import { ProductDisplayPresets } from "../ticketBooking/components/ProductDisplayAdapter/types.js";
|
|
6
|
-
import "../ticketBooking/components/ProductDisplayAdapter/index.js";
|
|
7
6
|
import { DEFAULT_BIG_SALE_PRODUCT_LIST_PREFERENCES } from "../bigSale/utils/productListPreferences.js";
|
|
8
7
|
import { translate } from "../../plus/venueBookingDesign/i18n.js";
|
|
9
8
|
import { ProductCard as ProductCard$1 } from "../../plus/venueBookingDesign/shared/ProductCard.js";
|
|
@@ -354,12 +354,13 @@ const formatCartProducts = (props) => {
|
|
|
354
354
|
const cards = require_utils.formatProducts(products, state, false, false, false, translationOriginal);
|
|
355
355
|
if (!currentItem.isGift) return cards;
|
|
356
356
|
return cards.map((card) => {
|
|
357
|
-
var _card$_origin;
|
|
357
|
+
var _card$_origin, _card$_origin2;
|
|
358
358
|
const title = [card.title, (_card$_origin = card._origin) === null || _card$_origin === void 0 ? void 0 : _card$_origin.name].map((text) => require_resolveLocalizedText.resolveLocalizedText(text, translationOriginal, state === null || state === void 0 ? void 0 : state.locale)).find((text) => typeof text === "string" && text) || "";
|
|
359
|
-
|
|
359
|
+
const booking = card.start_date && card.end_date ? (_card$_origin2 = card._origin) === null || _card$_origin2 === void 0 ? void 0 : _card$_origin2._extend : void 0;
|
|
360
|
+
return require_objectSpread2._objectSpread2(require_objectSpread2._objectSpread2(require_objectSpread2._objectSpread2({}, card), {}, {
|
|
360
361
|
name: title,
|
|
361
362
|
title
|
|
362
|
-
});
|
|
363
|
+
}, (booking === null || booking === void 0 ? void 0 : booking.start_time) ? { start_time: booking.start_time } : {}), (booking === null || booking === void 0 ? void 0 : booking.end_time) ? { end_time: booking.end_time } : {});
|
|
363
364
|
});
|
|
364
365
|
} catch (error) {
|
|
365
366
|
return [];
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pisell/private-materials",
|
|
3
|
-
"version": "6.12.
|
|
3
|
+
"version": "6.12.467",
|
|
4
4
|
"main": "./lib/index.js",
|
|
5
5
|
"module": "./es/index.js",
|
|
6
6
|
"types": "./lib/index.d.ts",
|
|
@@ -76,8 +76,8 @@
|
|
|
76
76
|
"use-sync-external-store": "^1.6.0",
|
|
77
77
|
"@pisell/pi-payment-sdk": "0.0.4",
|
|
78
78
|
"@pisell/utils": "3.0.7",
|
|
79
|
-
"@pisell/materials": "6.12.106",
|
|
80
79
|
"@pisell/icon": "0.0.11",
|
|
80
|
+
"@pisell/materials": "6.12.106",
|
|
81
81
|
"@pisell/date-picker": "3.0.12"
|
|
82
82
|
},
|
|
83
83
|
"peerDependencies": {
|