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/plus/saleDetail/components/ProductItemsSummary/theme.ts
var theme_exports = {};
__export(theme_exports, {
  getProductItemsSummaryThemeStyle: () => getProductItemsSummaryThemeStyle,
  productItemsSummaryThemePresets: () => productItemsSummaryThemePresets,
  resolveProductItemsSummaryTheme: () => resolveProductItemsSummaryTheme
});
module.exports = __toCommonJS(theme_exports);
var productItemsSummaryThemePresets = {
  dark: {
    bg: "#060a16",
    borderColor: "#263555",
    radius: "8px",
    shadow: "0 12px 28px rgba(0, 0, 0, 0.32)",
    dividerColor: "rgba(38, 53, 85, 0.72)",
    rowBg: "#0b1222",
    titleText: "#f8fbff",
    iconText: "#8ea0c6",
    actionText: "#f8fbff",
    productNameText: "#ffffff",
    amountText: "#ffffff",
    subtotalText: "#f8fbff",
    specText: "#c7d4f6",
    specMetaText: "#8ea0c6",
    specAccentText: "#abc7ff",
    specItemBg: "#111b31",
    bundleBg: "#0c1424",
    bundleBorderColor: "rgba(38, 53, 85, 0.72)"
  },
  light: {
    bg: "#ffffff",
    borderColor: "#d0d5dd",
    radius: "8px",
    shadow: "0 8px 22px rgba(16, 24, 40, 0.08)",
    dividerColor: "#eaecf0",
    rowBg: "#f8fafc",
    titleText: "#101828",
    iconText: "#667085",
    actionText: "#101828",
    productNameText: "#101828",
    amountText: "#101828",
    subtotalText: "#101828",
    specText: "#344054",
    specMetaText: "#667085",
    specAccentText: "#3538cd",
    specItemBg: "#f2f4f7",
    bundleBg: "#f8fafc",
    bundleBorderColor: "#eaecf0"
  }
};
var tokenToVar = {
  bg: "--pisell-product-items-summary-bg",
  borderColor: "--pisell-product-items-summary-border-color",
  radius: "--pisell-product-items-summary-radius",
  shadow: "--pisell-product-items-summary-shadow",
  dividerColor: "--pisell-product-items-summary-divider-color",
  rowBg: "--pisell-product-items-summary-row-bg",
  titleText: "--pisell-product-items-summary-title-text",
  iconText: "--pisell-product-items-summary-icon-text",
  actionText: "--pisell-product-items-summary-action-text",
  productNameText: "--pisell-product-items-summary-product-name-text",
  amountText: "--pisell-product-items-summary-amount-text",
  subtotalText: "--pisell-product-items-summary-subtotal-text",
  specText: "--pisell-product-items-summary-spec-text",
  specMetaText: "--pisell-product-items-summary-spec-meta-text",
  specAccentText: "--pisell-product-items-summary-spec-accent-text",
  specItemBg: "--pisell-product-items-summary-spec-item-bg",
  bundleBg: "--pisell-product-items-summary-bundle-bg",
  bundleBorderColor: "--pisell-product-items-summary-bundle-border-color"
};
var resolveProductItemsSummaryTheme = (theme) => {
  if (!theme || theme === "dark") return productItemsSummaryThemePresets.dark;
  if (theme === "light") return productItemsSummaryThemePresets.light;
  return {
    ...productItemsSummaryThemePresets.dark,
    ...theme
  };
};
var getProductItemsSummaryThemeStyle = (theme) => {
  const tokens = resolveProductItemsSummaryTheme(theme);
  return Object.entries(tokens).reduce(
    (style, [key, value]) => {
      const variableName = tokenToVar[key];
      style[variableName] = value;
      return style;
    },
    {}
  );
};
// Annotate the CommonJS export names for ESM import in node:
0 && (module.exports = {
  getProductItemsSummaryThemeStyle,
  productItemsSummaryThemePresets,
  resolveProductItemsSummaryTheme
});
