"use strict";
var __rest = (this && this.__rest) || function (s, e) {
    var t = {};
    for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
        t[p] = s[p];
    if (s != null && typeof Object.getOwnPropertySymbols === "function")
        for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
            if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
                t[p[i]] = s[p[i]];
        }
    return t;
};
var __importDefault = (this && this.__importDefault) || function (mod) {
    return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.ApplicationFooter = void 0;
const jsx_runtime_1 = require("react/jsx-runtime");
const core_1 = require("../core");
const utils_1 = require("../utils");
const footer_1 = __importDefault(require("./footer"));
const footerTrademark_1 = require("./footerTrademark");
exports.ApplicationFooter = (0, core_1.vui)((props, ref) => {
    const { applicationLinks, applicationStaticItems = [], className, isDNV = false, linkedIn } = props, rest = __rest(props, ["applicationLinks", "applicationStaticItems", "className", "isDNV", "linkedIn"]);
    const applicationSocialLinks = [];
    let localLinkedIn = '';
    if (isDNV) {
        applicationStaticItems.splice(0, applicationStaticItems.length);
        //populate the DNV social links
        applicationSocialLinks.push({
            id: 'linked-in',
            text: 'LinkedIn',
            url: 'https://www.linkedin.com/showcase/dnv-digital/',
        });
        applicationSocialLinks.push({
            id: 'twitter',
            text: 'Twitter',
            url: 'https://twitter.com/DNV_Group',
        });
        applicationSocialLinks.push({
            id: 'facebook',
            text: 'FB',
            url: 'https://www.facebook.com/dnvglsoftware',
        });
        applicationSocialLinks.push({
            id: 'youtube',
            text: 'Youtube',
            url: 'https://www.youtube.com/user/DNVsoftware',
        });
        localLinkedIn = 'https://www.linkedin.com/company/4411';
    }
    else {
        // the static links are trimmed to max 2 items
        applicationStaticItems.splice(2, applicationStaticItems.length - 1);
        applicationSocialLinks.push({
            id: 'linked-in',
            text: 'LinkedIn',
            url: footerTrademark_1.defaultLinkedInUrl,
        });
        localLinkedIn = linkedIn || footerTrademark_1.defaultLinkedInUrl;
    }
    return ((0, jsx_runtime_1.jsx)(footer_1.default, Object.assign({ applicationLinks: applicationLinks, applicationSocialLinks: applicationSocialLinks, applicationStaticItems: applicationStaticItems, className: (0, utils_1.cs)('vui-applicationFooter', isDNV ? 'vui-applicationDNVFooter' : 'vui-applicationVeracityFooter', className), isApplication: true, isDNV: isDNV, isSlim: true, linkedIn: localLinkedIn, ref: ref, variant: "developer" }, rest)));
});
exports.ApplicationFooter.displayName = 'ApplicationFooter';
exports.default = exports.ApplicationFooter;
//# sourceMappingURL=applicationFooter.js.map