import { NgModule, Component, ElementRef, Input } from "@angular/core";
import { getAttributes } from "@carbon/icon-helpers";
var Integration20 = /** @class */ (function () {
    function Integration20(elementRef) {
        this.elementRef = elementRef;
    }
    Integration20.prototype.ngAfterViewInit = function () {
        var svg = this.elementRef.nativeElement.querySelector("svg");
        var attributes = getAttributes({
            width: 20,
            height: 20,
            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;
            Integration20.titleIdCounter++;
            title.setAttribute("id", "integration20-" + Integration20.titleIdCounter);
            svg.appendChild(title);
            svg.setAttribute("aria-labelledby", "integration20-" + Integration20.titleIdCounter);
        }
    };
    Integration20.titleIdCounter = 0;
    Integration20.decorators = [
        { type: Component, args: [{
                    selector: "ibm-icon-integration20",
                    template: "<svg focusable=\"false\" preserveAspectRatio=\"xMidYMid meet\" style=\"will-change: transform;\" xmlns=\"http://www.w3.org/2000/svg\" width=\"20\" height=\"20\" viewBox=\"0 0 32 32\" aria-hidden=\"true\"><path d=\"M29.88 15.52l-6-11A1 1 0 0 0 23 4H9a1 1 0 0 0-.88.52l-6 11a1 1 0 0 0 0 1l6 11A1 1 0 0 0 9 28h14a1 1 0 0 0 .88-.52l6-11a1 1 0 0 0 0-.96zM22.93 7l4.39 8h-9.5zM16 14.14L10.82 6h10.36zM9.07 7l5.11 8h-9.5zM4.68 17h9.5l-5.11 8zm11.32.86L21.18 26H10.82zM22.93 25l-5.11-8h9.5z\"></path></svg>"
                },] },
    ];
    /** @nocollapse */
    Integration20.ctorParameters = function () { return [
        { type: ElementRef }
    ]; };
    Integration20.propDecorators = {
        ariaLabel: [{ type: Input }],
        ariaLabelledby: [{ type: Input }],
        ariaHidden: [{ type: Input }],
        title: [{ type: Input }],
        focusable: [{ type: Input }]
    };
    return Integration20;
}());
export { Integration20 };
var Integration20Module = /** @class */ (function () {
    function Integration20Module() {
    }
    Integration20Module.decorators = [
        { type: NgModule, args: [{
                    declarations: [
                        Integration20
                    ],
                    exports: [
                        Integration20
                    ]
                },] },
    ];
    return Integration20Module;
}());
export { Integration20Module };
//# sourceMappingURL=20.js.map