require("../../_virtual/_rolldown/runtime.js");
let _pisell_utils = require("@pisell/utils");
//#region src/pro/priceKeyboard/utils.ts
const DEFAULT_THEME_CONFIG = {
	dark: {
		titleColor: "#FFFFFF",
		subtitleColor: "#D0D5DD",
		keyboardBgColor: "rgba(0, 0, 0, 0.4)",
		keyboardWrapperBgColor: "rgba(0, 0, 0, 0.7)",
		bgColor: "rgba(0, 0, 0, 0.70)",
		bgColorGray200: "rgba(0, 0, 0, 0.40)",
		bgColorGray300: "rgba(0, 0, 0, 0.40)",
		textGray500: "#D0D5DD",
		textGray600: "#FFFFFF",
		textGray900: "#FFFFFF"
	},
	light: {
		titleColor: "#101828",
		subtitleColor: "#667085",
		keyboardBgColor: "#D0D5DD",
		keyboardWrapperBgColor: "white",
		bgColor: "#FFFFFF",
		bgColorGray200: "#EAECF0",
		bgColorGray300: "#D0D5DD",
		textGray500: "#667085",
		textGray600: "#475467",
		textGray900: "#101828"
	}
};
/**
* 设置键盘主题
* @param theme 主题
*/
const setKeyboardTheme = (theme) => {
	const currentTheme = DEFAULT_THEME_CONFIG[theme || "light"];
	(0, _pisell_utils.setTheme)({
		"--pisell-pro-price-keyboard-title-color": currentTheme.titleColor,
		"--pisell-pro-price-keyboard-subtitle-color": currentTheme.subtitleColor,
		"--pisell-pro-price-keyboard-wrapper-bg-color": currentTheme.keyboardWrapperBgColor,
		"--pisell-pro-price-keyboard-bg-color": currentTheme.keyboardBgColor,
		"--pisell-pro-price-keyboard-bg-color-gray-200": currentTheme.bgColorGray200,
		"--pisell-pro-price-keyboard-bg-color-gray-300": currentTheme.bgColorGray300,
		"--pisell-pro-price-keyboard-text-gray-500": currentTheme.textGray500,
		"--pisell-pro-price-keyboard-text-gray-600": currentTheme.textGray600,
		"--pisell-pro-price-keyboard-text-gray-900": currentTheme.textGray900
	});
};
//#endregion
exports.setKeyboardTheme = setKeyboardTheme;
