"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.DEFAULT_THEME = void 0;
exports.getOrgDefaultTheme = getOrgDefaultTheme;
const util_1 = require("../util");
const get_prop_1 = require("../objects/get-prop");
const remove_empty_props_1 = require("../objects/remove-empty-props");
/**
 * Default Site Theme
 */
exports.DEFAULT_THEME = {
    header: {
        background: "#fff",
        text: "#4c4c4c",
    },
    body: {
        background: "#fff",
        text: "#4c4c4c",
        link: "#0079c1",
    },
    button: {
        background: "#0079c1",
        text: "#fff",
    },
    logo: {
        small: "",
    },
    fonts: {
        base: {
            url: "",
            family: "Avenir Next",
        },
        heading: {
            url: "",
            family: "Avenir Next",
        },
    },
};
/**
 * Return the default theme, extended with values from the Org's shared theme
 * @param {Object} portalSelf Org's Portal object
 */
function getOrgDefaultTheme(portalSelf) {
    let defaultTheme = (0, util_1.cloneObject)(exports.DEFAULT_THEME);
    let sharedTheme = (0, get_prop_1.getProp)(portalSelf, "portalProperties.sharedTheme");
    if (sharedTheme) {
        sharedTheme = (0, remove_empty_props_1.removeEmptyProps)(sharedTheme);
        defaultTheme = (0, util_1.extend)(defaultTheme, sharedTheme);
    }
    return defaultTheme;
}
//# sourceMappingURL=themes.js.map