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/LineItem/theme.ts
var theme_exports = {};
__export(theme_exports, {
  getLineItemThemeStyle: () => getLineItemThemeStyle,
  lineItemThemePresets: () => lineItemThemePresets,
  resolveLineItemTheme: () => resolveLineItemTheme
});
module.exports = __toCommonJS(theme_exports);
var lineItemThemePresets = {
  dark: {
    bg: "#060a16",
    borderColor: "#263555",
    radius: "8px",
    shadow: "0 12px 28px rgba(0, 0, 0, 0.32)",
    headerBg: "#214a9b",
    headerText: "#f8fbff",
    headerSubText: "#dbe7ff",
    productBg: "#090f1d",
    sectionBg: "#0c1424",
    dividerColor: "#263555",
    textPrimary: "#f8fbff",
    textSecondary: "#c7d4f6",
    textMuted: "#8ea0c6",
    priceColor: "#ffffff",
    originalPriceColor: "#7f8fac",
    actionBg: "#1f438a",
    actionText: "#ffffff",
    dangerColor: "#ff7875",
    statusBg: "#0f2146",
    statusText: "#ffffff",
    tagBg: "rgba(64, 121, 255, 0.18)",
    tagText: "#abc7ff",
    imageBg: "#15213a"
  },
  light: {
    bg: "#ffffff",
    borderColor: "#d0d5dd",
    radius: "8px",
    shadow: "0 8px 22px rgba(16, 24, 40, 0.08)",
    headerBg: "#2453a6",
    headerText: "#ffffff",
    headerSubText: "#e7efff",
    productBg: "#ffffff",
    sectionBg: "#f8fafc",
    dividerColor: "#eaecf0",
    textPrimary: "#101828",
    textSecondary: "#344054",
    textMuted: "#667085",
    priceColor: "#101828",
    originalPriceColor: "#98a2b3",
    actionBg: "#2453a6",
    actionText: "#ffffff",
    dangerColor: "#d92d20",
    statusBg: "#ffffff",
    statusText: "#101828",
    tagBg: "#eff4ff",
    tagText: "#3538cd",
    imageBg: "#f2f4f7"
  }
};
var tokenToVar = {
  bg: "--pisell-line-item-bg",
  borderColor: "--pisell-line-item-border-color",
  radius: "--pisell-line-item-radius",
  shadow: "--pisell-line-item-shadow",
  headerBg: "--pisell-line-item-header-bg",
  headerText: "--pisell-line-item-header-text",
  headerSubText: "--pisell-line-item-header-sub-text",
  productBg: "--pisell-line-item-product-bg",
  sectionBg: "--pisell-line-item-section-bg",
  dividerColor: "--pisell-line-item-divider-color",
  textPrimary: "--pisell-line-item-text-primary",
  textSecondary: "--pisell-line-item-text-secondary",
  textMuted: "--pisell-line-item-text-muted",
  priceColor: "--pisell-line-item-price-color",
  originalPriceColor: "--pisell-line-item-original-price-color",
  actionBg: "--pisell-line-item-action-bg",
  actionText: "--pisell-line-item-action-text",
  dangerColor: "--pisell-line-item-danger-color",
  statusBg: "--pisell-line-item-status-bg",
  statusText: "--pisell-line-item-status-text",
  tagBg: "--pisell-line-item-tag-bg",
  tagText: "--pisell-line-item-tag-text",
  imageBg: "--pisell-line-item-image-bg"
};
var resolveLineItemTheme = (theme) => {
  if (!theme || theme === "dark") return lineItemThemePresets.dark;
  if (theme === "light") return lineItemThemePresets.light;
  return {
    ...lineItemThemePresets.dark,
    ...theme
  };
};
var getLineItemThemeStyle = (theme) => {
  const tokens = resolveLineItemTheme(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 = {
  getLineItemThemeStyle,
  lineItemThemePresets,
  resolveLineItemTheme
});
