var __defProp = Object.defineProperty;
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
var __getOwnPropNames = Object.getOwnPropertyNames;
var __hasOwnProp = Object.prototype.hasOwnProperty;
var __export = (target, all) => {
  for (var name in all)
    __defProp(target, name, { get: all[name], enumerable: true });
};
var __copyProps = (to, from, except, desc) => {
  if (from && typeof from === "object" || typeof from === "function") {
    for (let key of __getOwnPropNames(from))
      if (!__hasOwnProp.call(to, key) && key !== except)
        __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
  }
  return to;
};
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);

// src/model/strategy/adapter/promotion/type.ts
var type_exports = {};
__export(type_exports, {
  PROMOTION_ACTION_TYPES: () => PROMOTION_ACTION_TYPES,
  PROMOTION_OPERATORS: () => PROMOTION_OPERATORS
});
module.exports = __toCommonJS(type_exports);
var PROMOTION_ACTION_TYPES = {
  /** X件Y元（每X件固定价格Y元，可累计） */
  X_ITEMS_FOR_Y_PRICE: "X_ITEMS_FOR_Y_PRICE",
  /** 买X送Y（买X件送Y件，可累计） */
  BUY_X_GET_Y_FREE: "BUY_X_GET_Y_FREE",
  /** 固定折扣 */
  DISCOUNT_RATE: "DISCOUNT_RATE",
  /** 固定减价 */
  DEDUCT_AMOUNT: "DEDUCT_AMOUNT"
};
var PROMOTION_OPERATORS = {
  /**
   * 商品匹配运算符
   *
   * 匹配规则：
   * - 首先匹配 product_id
   * - 如果配置的 product_variant_id = 0，只需要 product_id 匹配
   * - 如果配置的 product_variant_id != 0，还需要 product_variant_id 匹配
   */
  PRODUCT_MATCH: "product_match"
};
// Annotate the CommonJS export names for ESM import in node:
0 && (module.exports = {
  PROMOTION_ACTION_TYPES,
  PROMOTION_OPERATORS
});
