"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const html_1 = require("../../../../client/html");
class Bold extends html_1.default {
    constructor($props, $system) {
        super($props, $system, $system.api.document.createElement('b'), $system.style['bold']);
        const { href, target, id, rel = 'noreferrer', className, innerText, tabIndex, title, draggable, } = this.$props;
        if (href !== undefined) {
            this.$element.setAttribute('href', href);
        }
        if (target !== undefined) {
            this.$element.setAttribute('target', target);
        }
        if (rel !== undefined) {
            this.$element.setAttribute('rel', rel);
        }
        if (id !== undefined) {
            this.$element.id = id;
        }
        if (className !== undefined) {
            this.$element.className = className;
        }
        if (innerText) {
            this.$element.innerText = innerText;
        }
        if (tabIndex !== undefined) {
            this.$element.tabIndex = tabIndex;
        }
        if (title) {
            this.$element.title = title;
        }
        if (draggable !== undefined) {
            this.$element.setAttribute('draggable', draggable.toString());
        }
    }
}
exports.default = Bold;
//# sourceMappingURL=Component.js.map