"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
function setFooterShadow(dom, prefix) {
    if (!(dom === null || dom === void 0 ? void 0 : dom.getElementsByClassName)) {
        return;
    }
    var dialogBodyDom = dom.getElementsByClassName("".concat(prefix, "dialog-body"))[0];
    var dialogFooterDom = dom.getElementsByClassName("".concat(prefix, "dialog-footer"))[0];
    if (dialogFooterDom) {
        if (dialogBodyDom.clientHeight < dialogBodyDom.scrollHeight) {
            dialogFooterDom.classList.add("".concat(prefix, "dialog-footer-has-shadow"));
        }
        else {
            dialogFooterDom.classList.remove("".concat(prefix, "dialog-footer-has-shadow"));
        }
    }
}
exports.default = setFooterShadow;
