import { NgModule, Component, ElementRef, Input } from "@angular/core";
import { getAttributes } from "@carbon/icon-helpers";
var Integration32 = /** @class */ (function () {
    function Integration32(elementRef) {
        this.elementRef = elementRef;
    }
    Integration32.prototype.ngAfterViewInit = function () {
        var svg = this.elementRef.nativeElement.querySelector("svg");
        var attributes = getAttributes({
            width: 32,
            height: 32,
            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;
            Integration32.titleIdCounter++;
            title.setAttribute("id", "integration32-" + Integration32.titleIdCounter);
            svg.appendChild(title);
            svg.setAttribute("aria-labelledby", "integration32-" + Integration32.titleIdCounter);
        }
    };
    Integration32.titleIdCounter = 0;
    Integration32.decorators = [
        { type: Component, args: [{
                    selector: "ibm-icon-integration32",
                    template: "<svg focusable=\"false\" preserveAspectRatio=\"xMidYMid meet\" style=\"will-change: transform;\" xmlns=\"http://www.w3.org/2000/svg\" width=\"32\" height=\"32\" 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 */
    Integration32.ctorParameters = function () { return [
        { type: ElementRef }
    ]; };
    Integration32.propDecorators = {
        ariaLabel: [{ type: Input }],
        ariaLabelledby: [{ type: Input }],
        ariaHidden: [{ type: Input }],
        title: [{ type: Input }],
        focusable: [{ type: Input }]
    };
    return Integration32;
}());
export { Integration32 };
var Integration32Module = /** @class */ (function () {
    function Integration32Module() {
    }
    Integration32Module.decorators = [
        { type: NgModule, args: [{
                    declarations: [
                        Integration32
                    ],
                    exports: [
                        Integration32
                    ]
                },] },
    ];
    return Integration32Module;
}());
export { Integration32Module };
//# sourceMappingURL=32.js.map