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/components/ticketBooking/components/ProductDisplayAdapter/types.ts
var types_exports = {};
__export(types_exports, {
  LegacyProductDisplayPresets: () => LegacyProductDisplayPresets,
  ProductDisplayPresets: () => ProductDisplayPresets,
  resolveProductDisplayConfig: () => resolveProductDisplayConfig
});
module.exports = __toCommonJS(types_exports);
var ProductDisplayPresets = {
  // 默认配置
  default: {
    displayMode: "product-select",
    productSelectConfig: {
      showSearch: true,
      showTab: true,
      layout: {
        grid: true,
        config: "12:12"
      },
      productListSetting: {
        isProductCover: 1,
        isTitle: 1,
        isSubtitle: 1,
        isPrice: 1,
        isOriginPrice: 0,
        isStock: 0
      }
    }
  },
  // 别名：product-select
  "product-select": {
    displayMode: "product-select",
    productSelectConfig: {
      showSearch: true,
      showTab: true,
      layout: {
        grid: true,
        config: "12:12"
      },
      productListSetting: {
        isProductCover: 1,
        isTitle: 1,
        isSubtitle: 1,
        isPrice: 1,
        isOriginPrice: 0,
        isStock: 0
      }
    }
  },
  // SkuList A1
  "sku-list-a1": {
    displayMode: "sku-list",
    skuListConfig: {
      listConfig: {
        layout: "grid",
        showPagination: false,
        showTab: false
      },
      skuCardAllConfig: {
        skuCardConfig: {
          displayMode: "display_a1",
          isFavorite: false,
          layoutDirection: "column"
        }
      }
    }
  },
  // SkuList A2 - 详细信息卡片
  "sku-list-a2": {
    displayMode: "sku-list",
    skuListConfig: {
      listConfig: {
        layout: "grid",
        showPagination: false,
        showTab: false
      },
      skuCardAllConfig: {
        skuCardConfig: {
          displayMode: "display_a2",
          layoutDirection: "row",
          radius: 12,
          paddingX: 12,
          paddingY: 12,
          skuImageConfig: {
            isCover: true,
            width: "140px",
            height: "140px",
            radius: 8
          },
          skuNameConfig: {
            isOpen: true,
            fontSize: 16,
            fontWeight: 600,
            color: "#101828",
            ellipsisCount: 2
          },
          skuSubtitleConfig: {
            isOpen: true,
            fontSize: 14,
            color: "#667085",
            ellipsisCount: 1
          },
          skuPriceConfig: {
            isOpen: true,
            isPrice: true,
            priceFontSize: 18,
            priceFontWeight: 600,
            priceColor: "#101828",
            isOriginPrice: true,
            originPriceFontSize: 14,
            originPriceColor: "#98A2B3"
          },
          skuStockConfig: {
            isOpen: true,
            fontSize: 12,
            color: "#667085"
          }
        }
      }
    }
  },
  // SkuList A5
  "sku-list-a5": {
    displayMode: "sku-list",
    skuListConfig: {
      listConfig: {
        layout: "grid",
        showPagination: false,
        showTab: true,
        // 启用 Tab
        tabStyle: "switch",
        // 使用 switch 模式
        stickyTop: true,
        // Tab 吸顶
        columns: 5,
        tabGroup: "category"
      },
      skuCardAllConfig: {
        skuCardConfig: {
          displayMode: "display_a5",
          layoutDirection: "column",
          background: "#ffffff",
          paddingY: 8,
          paddingX: 8,
          marginY: 0,
          marginX: 0,
          radius: 12,
          isBorderVisible: false,
          borderWidth: 1,
          borderColor: "#ffffff",
          isFoldable: true
        },
        skuActionConfig: {
          isOpen: false
        },
        skuTextConfig: {
          skuSubtitleConfig: {
            isOpen: false
          },
          skuNameConfig: {
            isOpen: true
            // fontSize: 18,
            // fontWeight: 600,
            // color: '#101828',
            // ellipsisCount: 1,
          },
          skuPriceConfig: {
            isOpen: true,
            isPrice: true,
            priceFontSize: 18,
            priceFontWeight: 600,
            priceColor: "#101828",
            isShowZeroPrice: true,
            isShowFreePrice: false,
            isOriginPrice: true,
            originPriceFontSize: 16,
            originPriceFontWeight: 400,
            originPriceColor: "#667085",
            isTaxPrice: true,
            isCustomText: false
          }
        },
        skuImageConfig: {
          isCover: true,
          width: "100%",
          height: "126px",
          isTextFallback: true,
          background: "#ffffff",
          skuImageRadius: 12,
          slotPosition: "left_top",
          radius: 12
        },
        skuExtraConfig: {
          isOpen: false
        }
      }
    }
  }
};
var LegacyProductDisplayPresets = {
  /** @deprecated 使用 ProductDisplayPresets['product-select'] */
  DEFAULT_PRODUCT_SELECT: ProductDisplayPresets["product-select"],
  /** @deprecated 使用 ProductDisplayPresets['sku-list-a1'] */
  DEFAULT_SKU_LIST_A1: ProductDisplayPresets["sku-list-a1"],
  /** @deprecated 使用 ProductDisplayPresets['sku-list-a2'] */
  DEFAULT_SKU_LIST_A2: ProductDisplayPresets["sku-list-a2"],
  /** @deprecated 使用 ProductDisplayPresets['sku-list-a5'] */
  DEFAULT_SKU_LIST_A5: ProductDisplayPresets["sku-list-a5"]
};
function resolveProductDisplayConfig(config) {
  if (!config) {
    return ProductDisplayPresets["default"];
  }
  if (typeof config === "string") {
    const preset = ProductDisplayPresets[config];
    if (!preset) {
      console.warn(`Unknown preset key: "${config}", falling back to default`);
      return ProductDisplayPresets["default"];
    }
    return preset;
  }
  return config;
}
// Annotate the CommonJS export names for ESM import in node:
0 && (module.exports = {
  LegacyProductDisplayPresets,
  ProductDisplayPresets,
  resolveProductDisplayConfig
});
