import { format } from "date-fns";
import { cl } from "../../utils/helpers/index.js";
export const getConditionalClasses = (cropped, direction, status) => {
    return cl(`aksel-timeline__period aksel-timeline__period--${status}`, {
        "aksel-timeline__period--connected-both": cropped === "both",
        "aksel-timeline__period--connected-right": (cropped === "right" && direction === "left") ||
            (cropped === "left" && direction === "right"),
        "aksel-timeline__period--connected-left": (cropped === "left" && direction === "left") ||
            (cropped === "right" && direction === "right"),
    });
};
export const ariaLabel = (startDate, endDate, status, statusLabel, translate) => {
    const dateFormat = translate("dateFormat");
    const start = format(startDate, dateFormat);
    const end = format(endDate, dateFormat);
    return translate("Period.period", {
        status: statusLabel || translate(`Period.${status}`),
        start,
        end,
    });
};
//# sourceMappingURL=period.js.map