import { CHAT_MESSAGE_MAX_PADDING, CHAT_MESSAGE_MIN_PADDING, CHAT_WIDTH_SIDE_BY_SIDE_MAX, CHAT_WIDTH_SIDE_BY_SIDE_MIN } from "../service/index.js";
function calculateDynamicPadding(currentWidth) {
    if (currentWidth <= CHAT_WIDTH_SIDE_BY_SIDE_MIN) return CHAT_MESSAGE_MIN_PADDING;
    if (currentWidth >= CHAT_WIDTH_SIDE_BY_SIDE_MAX) return CHAT_MESSAGE_MAX_PADDING;
    const percentage = (currentWidth - CHAT_WIDTH_SIDE_BY_SIDE_MIN) / (CHAT_WIDTH_SIDE_BY_SIDE_MAX - CHAT_WIDTH_SIDE_BY_SIDE_MIN);
    return Math.round(CHAT_MESSAGE_MIN_PADDING + (CHAT_MESSAGE_MAX_PADDING - CHAT_MESSAGE_MIN_PADDING) * percentage);
}
export { calculateDynamicPadding };
