import { NgModule, Component, ElementRef, Input } from "@angular/core";
import { getAttributes } from "@carbon/icon-helpers";
var LogoLinkedin24 = /** @class */ (function () {
    function LogoLinkedin24(elementRef) {
        this.elementRef = elementRef;
    }
    LogoLinkedin24.prototype.ngAfterViewInit = function () {
        var svg = this.elementRef.nativeElement.querySelector("svg");
        var attributes = getAttributes({
            width: 24,
            height: 24,
            viewBox: "0 0 32 32",
            title: this.title,
            "aria-label": this.ariaLabel,
            "aria-labelledby": this.ariaLabelledby,
            "aria-hidden": this.ariaHidden,
            focusable: this.focusable
        });
        var attrKeys = Object.keys(attributes);
        for (var i = 0; i < attrKeys.length; i++) {
            var key = attrKeys[i];
            var value = attributes[key];
            if (key === "title") {
                continue;
            }
            if (value) {
                svg.setAttribute(key, value);
            }
        }
        if (attributes.title) {
            var title = document.createElement("title");
            title.textContent = attributes.title;
            LogoLinkedin24.titleIdCounter++;
            title.setAttribute("id", "logo-linkedin24-" + LogoLinkedin24.titleIdCounter);
            svg.appendChild(title);
            svg.setAttribute("aria-labelledby", "logo-linkedin24-" + LogoLinkedin24.titleIdCounter);
        }
    };
    LogoLinkedin24.titleIdCounter = 0;
    LogoLinkedin24.decorators = [
        { type: Component, args: [{
                    selector: "ibm-icon-logo-linkedin24",
                    template: "<svg focusable=\"false\" preserveAspectRatio=\"xMidYMid meet\" style=\"will-change: transform;\" xmlns=\"http://www.w3.org/2000/svg\" width=\"24\" height=\"24\" viewBox=\"0 0 32 32\" aria-hidden=\"true\"><path d=\"M26.21 4H5.79A1.78 1.78 0 0 0 4 5.73V26.2a1.77 1.77 0 0 0 1.79 1.73h20.42A1.77 1.77 0 0 0 28 26.2V5.73A1.78 1.78 0 0 0 26.21 4zm-15.1 20.41H7.59V13h3.52zm-1.72-13a2.07 2.07 0 0 1-2.07-2.02 2 2 0 0 1 2.07-2.07 2.07 2.07 0 0 1 0 4.13zm15.09 12.93H21v-5.58c0-1.33 0-3.06-1.86-3.06S17 17.16 17 18.63v5.65h-3.56V13h3.32v1.5h.07a3.72 3.72 0 0 1 3.39-1.86c3.59 0 4.26 2.4 4.26 5.45z\"></path></svg>"
                },] },
    ];
    /** @nocollapse */
    LogoLinkedin24.ctorParameters = function () { return [
        { type: ElementRef }
    ]; };
    LogoLinkedin24.propDecorators = {
        ariaLabel: [{ type: Input }],
        ariaLabelledby: [{ type: Input }],
        ariaHidden: [{ type: Input }],
        title: [{ type: Input }],
        focusable: [{ type: Input }]
    };
    return LogoLinkedin24;
}());
export { LogoLinkedin24 };
var LogoLinkedin24Module = /** @class */ (function () {
    function LogoLinkedin24Module() {
    }
    LogoLinkedin24Module.decorators = [
        { type: NgModule, args: [{
                    declarations: [
                        LogoLinkedin24
                    ],
                    exports: [
                        LogoLinkedin24
                    ]
                },] },
    ];
    return LogoLinkedin24Module;
}());
export { LogoLinkedin24Module };
//# sourceMappingURL=24.js.map