@pisell/pisellos 0.0.353 → 0.0.355

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.
@@ -2756,7 +2756,9 @@ export var BookingByStepImpl = /*#__PURE__*/function (_BaseModule) {
2756
2756
  key: "checkMaxDurationCapacity",
2757
2757
  value: function checkMaxDurationCapacity() {
2758
2758
  var _this15 = this;
2759
- var cartItems = cloneDeep(this.store.cart.getItems());
2759
+ var cartItems = this.store.cart.getItems().filter(function (item) {
2760
+ return !isNormalProduct(item._productOrigin);
2761
+ });
2760
2762
  if (cartItems.length === 0) return {
2761
2763
  success: true,
2762
2764
  minAvailableCount: 0
@@ -3179,7 +3181,9 @@ export var BookingByStepImpl = /*#__PURE__*/function (_BaseModule) {
3179
3181
  var product = _ref13.product,
3180
3182
  date = _ref13.date,
3181
3183
  account = _ref13.account;
3182
- var cartItems = cloneDeep(this.store.cart.getItems());
3184
+ var cartItems = this.store.cart.getItems().filter(function (item) {
3185
+ return !isNormalProduct(item._productOrigin);
3186
+ });
3183
3187
 
3184
3188
  // 将 ProductData 转换为 CartItem 但不真正添加到购物车
3185
3189
  var currentCartItem = this.convertProductToCartItem({
@@ -1937,7 +1937,7 @@ var BookingByStepImpl = class extends import_BaseModule.BaseModule {
1937
1937
  }
1938
1938
  checkMaxDurationCapacity() {
1939
1939
  var _a, _b;
1940
- const cartItems = (0, import_lodash_es.cloneDeep)(this.store.cart.getItems());
1940
+ const cartItems = this.store.cart.getItems().filter((item) => !(0, import_utils5.isNormalProduct)(item._productOrigin));
1941
1941
  if (cartItems.length === 0)
1942
1942
  return { success: true, minAvailableCount: 0 };
1943
1943
  const itemsWithTime = [];
@@ -2199,7 +2199,7 @@ var BookingByStepImpl = class extends import_BaseModule.BaseModule {
2199
2199
  account
2200
2200
  }) {
2201
2201
  var _a, _b;
2202
- const cartItems = (0, import_lodash_es.cloneDeep)(this.store.cart.getItems());
2202
+ const cartItems = this.store.cart.getItems().filter((item) => !(0, import_utils5.isNormalProduct)(item._productOrigin));
2203
2203
  const currentCartItem = this.convertProductToCartItem({ product, date, account });
2204
2204
  cartItems.push(currentCartItem);
2205
2205
  if (cartItems.length === 0)
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "private": false,
3
3
  "name": "@pisell/pisellos",
4
- "version": "0.0.353",
4
+ "version": "0.0.355",
5
5
  "description": "一个可扩展的前端模块化SDK框架,支持插件系统",
6
6
  "main": "dist/index.js",
7
7
  "types": "dist/index.d.ts",