import { NgModule, Component, ElementRef, Input } from "@angular/core";
import { getAttributes } from "@carbon/icon-helpers";
var Touch_224 = /** @class */ (function () {
    function Touch_224(elementRef) {
        this.elementRef = elementRef;
    }
    Touch_224.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;
            Touch_224.titleIdCounter++;
            title.setAttribute("id", "touch-224-" + Touch_224.titleIdCounter);
            svg.appendChild(title);
            svg.setAttribute("aria-labelledby", "touch-224-" + Touch_224.titleIdCounter);
        }
    };
    Touch_224.titleIdCounter = 0;
    Touch_224.decorators = [
        { type: Component, args: [{
                    selector: "ibm-icon-touch-224",
                    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=\"M29 15h-2a11 11 0 0 0-22 0H3a13 13 0 0 1 26 0z\"></path><path d=\"M25 28h-2V15a7 7 0 1 0-14 0v13H7V15a9 9 0 0 1 18 0z\"></path><path d=\"M21 20H11v-5a5 5 0 0 1 10 0zm-8-2h6v-3a3 3 0 0 0-6 0z\"></path></svg>"
                },] },
    ];
    /** @nocollapse */
    Touch_224.ctorParameters = function () { return [
        { type: ElementRef }
    ]; };
    Touch_224.propDecorators = {
        ariaLabel: [{ type: Input }],
        ariaLabelledby: [{ type: Input }],
        ariaHidden: [{ type: Input }],
        title: [{ type: Input }],
        focusable: [{ type: Input }]
    };
    return Touch_224;
}());
export { Touch_224 };
var Touch_224Module = /** @class */ (function () {
    function Touch_224Module() {
    }
    Touch_224Module.decorators = [
        { type: NgModule, args: [{
                    declarations: [
                        Touch_224
                    ],
                    exports: [
                        Touch_224
                    ]
                },] },
    ];
    return Touch_224Module;
}());
export { Touch_224Module };
//# sourceMappingURL=24.js.map