@pisell/private-materials 6.12.216 → 6.12.218

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.
@@ -231,6 +231,7 @@ function KioskBigSaleTemplate({ isActive = true, osKey, context, mode, variant,
231
231
  const enginePlatform = usePlatform();
232
232
  const modulePlatform = (_context$sales$bookin = context.sales.bookingTicket) === null || _context$sales$bookin === void 0 || (_context$sales$bookin = _context$sales$bookin.otherParams) === null || _context$sales$bookin === void 0 ? void 0 : _context$sales$bookin.platform;
233
233
  const platform = String(modulePlatform || enginePlatform || "").trim().toLowerCase();
234
+ const catalogVariant = platform === "kiosk" ? "desktop" : variant;
234
235
  const isH5Platform = platform === "h5";
235
236
  const utils = (engineContext === null || engineContext === void 0 || (_engineContext$appHel = engineContext.appHelper) === null || _engineContext$appHel === void 0 ? void 0 : _engineContext$appHel.utils) || {};
236
237
  const app = (_utils$getApp = utils.getApp) === null || _utils$getApp === void 0 ? void 0 : _utils$getApp.call(utils);
@@ -339,9 +340,9 @@ function KioskBigSaleTemplate({ isActive = true, osKey, context, mode, variant,
339
340
  const autoPreferences = resolveBigSaleAutoProductListPreferences({
340
341
  config: resolveBigSaleProductDisplayConfig(productDisplayConfig),
341
342
  mode,
342
- variant
343
+ variant: catalogVariant
343
344
  });
344
- const isPhone = variant === "phone";
345
+ const isPhone = catalogVariant === "phone";
345
346
  return _objectSpread2(_objectSpread2({}, autoPreferences), {}, {
346
347
  columns: isPhone ? 1 : 3,
347
348
  layoutDirection: isPhone ? "row" : "column",
@@ -354,9 +355,9 @@ function KioskBigSaleTemplate({ isActive = true, osKey, context, mode, variant,
354
355
  imageHeight: isPhone ? "80px" : "140px"
355
356
  });
356
357
  }, [
358
+ catalogVariant,
357
359
  mode,
358
- productDisplayConfig,
359
- variant
360
+ productDisplayConfig
360
361
  ]);
361
362
  const kioskSaleDetailModuleConfig = useMemo(() => {
362
363
  var _saleDetailModuleConf, _saleDetailModuleConf2, _saleDetailModuleConf3;
@@ -873,8 +874,8 @@ function KioskBigSaleTemplate({ isActive = true, osKey, context, mode, variant,
873
874
  mode,
874
875
  context,
875
876
  businessCode,
876
- categoryNavigation: variant === "phone" ? "top" : "sidebar",
877
- categoryDisplayMode: variant === "phone" ? "continuous" : "switch",
877
+ categoryNavigation: catalogVariant === "phone" ? "top" : "sidebar",
878
+ categoryDisplayMode: catalogVariant === "phone" ? "continuous" : "switch",
878
879
  hideSingleCategoryNavigation: true,
879
880
  categoryResetKey: categoryResetRevision,
880
881
  defaultProductListPreferences,
@@ -884,11 +885,11 @@ function KioskBigSaleTemplate({ isActive = true, osKey, context, mode, variant,
884
885
  productLoadParams,
885
886
  productCardVersion: "v2",
886
887
  productSelectionTrigger: "click",
887
- persistentSearch: variant === "phone",
888
+ persistentSearch: catalogVariant === "phone",
888
889
  onScrollActivityChange: setIsCatalogProductListScrolling,
889
- showActiveCategoryTitle: variant !== "phone",
890
+ showActiveCategoryTitle: catalogVariant !== "phone",
890
891
  showSettings: true,
891
- variant
892
+ variant: catalogVariant
892
893
  })) : null, layoutState.showCart ? /* @__PURE__ */ React.createElement("section", { className: "pisell-kiosk-sale__screen pisell-kiosk-sale__cart-screen" }, /* @__PURE__ */ React.createElement("header", { className: "pisell-kiosk-sale__cart-header" }, /* @__PURE__ */ React.createElement("h1", null, locales.getText("pisell2.big-sale.kiosk.your-order"), " ", "(", cartItemCount, ")")), /* @__PURE__ */ React.createElement("div", { className: "pisell-kiosk-sale__cart-body" }, /* @__PURE__ */ React.createElement(Base_default, {
893
894
  context: saleDetailContext,
894
895
  mobilePresentation: "inline",
@@ -1,4 +1,7 @@
1
1
  //#region src/components/ticketBooking/resolveFormDataApiPrefix.ts
2
- const resolveTicketBookingFormDataPrefix = (platform) => String(platform || "").trim().toLowerCase() === "h5" ? "/h5" : "/shop";
2
+ const resolveTicketBookingFormDataPrefix = (platform) => {
3
+ const normalizedPlatform = String(platform || "").trim().toLowerCase();
4
+ return normalizedPlatform === "pc" || normalizedPlatform === "h5" ? "/h5" : "/shop";
5
+ };
3
6
  //#endregion
4
7
  export { resolveTicketBookingFormDataPrefix };
@@ -233,6 +233,7 @@ function KioskBigSaleTemplate({ isActive = true, osKey, context, mode, variant,
233
233
  const enginePlatform = require_useEngineContext.usePlatform();
234
234
  const modulePlatform = (_context$sales$bookin = context.sales.bookingTicket) === null || _context$sales$bookin === void 0 || (_context$sales$bookin = _context$sales$bookin.otherParams) === null || _context$sales$bookin === void 0 ? void 0 : _context$sales$bookin.platform;
235
235
  const platform = String(modulePlatform || enginePlatform || "").trim().toLowerCase();
236
+ const catalogVariant = platform === "kiosk" ? "desktop" : variant;
236
237
  const isH5Platform = platform === "h5";
237
238
  const utils = (engineContext === null || engineContext === void 0 || (_engineContext$appHel = engineContext.appHelper) === null || _engineContext$appHel === void 0 ? void 0 : _engineContext$appHel.utils) || {};
238
239
  const app = (_utils$getApp = utils.getApp) === null || _utils$getApp === void 0 ? void 0 : _utils$getApp.call(utils);
@@ -341,9 +342,9 @@ function KioskBigSaleTemplate({ isActive = true, osKey, context, mode, variant,
341
342
  const autoPreferences = require_productListPreferences.resolveBigSaleAutoProductListPreferences({
342
343
  config: require_useBigSaleProductListConfig.resolveBigSaleProductDisplayConfig(productDisplayConfig),
343
344
  mode,
344
- variant
345
+ variant: catalogVariant
345
346
  });
346
- const isPhone = variant === "phone";
347
+ const isPhone = catalogVariant === "phone";
347
348
  return require_objectSpread2._objectSpread2(require_objectSpread2._objectSpread2({}, autoPreferences), {}, {
348
349
  columns: isPhone ? 1 : 3,
349
350
  layoutDirection: isPhone ? "row" : "column",
@@ -356,9 +357,9 @@ function KioskBigSaleTemplate({ isActive = true, osKey, context, mode, variant,
356
357
  imageHeight: isPhone ? "80px" : "140px"
357
358
  });
358
359
  }, [
360
+ catalogVariant,
359
361
  mode,
360
- productDisplayConfig,
361
- variant
362
+ productDisplayConfig
362
363
  ]);
363
364
  const kioskSaleDetailModuleConfig = (0, react.useMemo)(() => {
364
365
  var _saleDetailModuleConf, _saleDetailModuleConf2, _saleDetailModuleConf3;
@@ -875,8 +876,8 @@ function KioskBigSaleTemplate({ isActive = true, osKey, context, mode, variant,
875
876
  mode,
876
877
  context,
877
878
  businessCode,
878
- categoryNavigation: variant === "phone" ? "top" : "sidebar",
879
- categoryDisplayMode: variant === "phone" ? "continuous" : "switch",
879
+ categoryNavigation: catalogVariant === "phone" ? "top" : "sidebar",
880
+ categoryDisplayMode: catalogVariant === "phone" ? "continuous" : "switch",
880
881
  hideSingleCategoryNavigation: true,
881
882
  categoryResetKey: categoryResetRevision,
882
883
  defaultProductListPreferences,
@@ -886,11 +887,11 @@ function KioskBigSaleTemplate({ isActive = true, osKey, context, mode, variant,
886
887
  productLoadParams,
887
888
  productCardVersion: "v2",
888
889
  productSelectionTrigger: "click",
889
- persistentSearch: variant === "phone",
890
+ persistentSearch: catalogVariant === "phone",
890
891
  onScrollActivityChange: setIsCatalogProductListScrolling,
891
- showActiveCategoryTitle: variant !== "phone",
892
+ showActiveCategoryTitle: catalogVariant !== "phone",
892
893
  showSettings: true,
893
- variant
894
+ variant: catalogVariant
894
895
  })) : null, layoutState.showCart ? /* @__PURE__ */ react.default.createElement("section", { className: "pisell-kiosk-sale__screen pisell-kiosk-sale__cart-screen" }, /* @__PURE__ */ react.default.createElement("header", { className: "pisell-kiosk-sale__cart-header" }, /* @__PURE__ */ react.default.createElement("h1", null, _pisell_utils.locales.getText("pisell2.big-sale.kiosk.your-order"), " ", "(", cartItemCount, ")")), /* @__PURE__ */ react.default.createElement("div", { className: "pisell-kiosk-sale__cart-body" }, /* @__PURE__ */ react.default.createElement(require_Base.default, {
895
896
  context: saleDetailContext,
896
897
  mobilePresentation: "inline",
@@ -1,4 +1,7 @@
1
1
  //#region src/components/ticketBooking/resolveFormDataApiPrefix.ts
2
- const resolveTicketBookingFormDataPrefix = (platform) => String(platform || "").trim().toLowerCase() === "h5" ? "/h5" : "/shop";
2
+ const resolveTicketBookingFormDataPrefix = (platform) => {
3
+ const normalizedPlatform = String(platform || "").trim().toLowerCase();
4
+ return normalizedPlatform === "pc" || normalizedPlatform === "h5" ? "/h5" : "/shop";
5
+ };
3
6
  //#endregion
4
7
  exports.resolveTicketBookingFormDataPrefix = resolveTicketBookingFormDataPrefix;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pisell/private-materials",
3
- "version": "6.12.216",
3
+ "version": "6.12.218",
4
4
  "main": "./lib/index.js",
5
5
  "module": "./es/index.js",
6
6
  "types": "./lib/index.d.ts",
@@ -71,9 +71,9 @@
71
71
  "use-sync-external-store": "^1.6.0",
72
72
  "@pisell/pi-payment-sdk": "0.0.3",
73
73
  "@pisell/utils": "3.0.4",
74
- "@pisell/icon": "0.0.11",
75
74
  "@pisell/materials": "6.12.60",
76
- "@pisell/date-picker": "3.0.10"
75
+ "@pisell/date-picker": "3.0.10",
76
+ "@pisell/icon": "0.0.11"
77
77
  },
78
78
  "peerDependencies": {
79
79
  "react": "^18.0.0",