import { NgModule, Component, ElementRef, Input } from "@angular/core";
import { getAttributes } from "@carbon/icon-helpers";
var Touch_124 = /** @class */ (function () {
    function Touch_124(elementRef) {
        this.elementRef = elementRef;
    }
    Touch_124.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_124.titleIdCounter++;
            title.setAttribute("id", "touch-124-" + Touch_124.titleIdCounter);
            svg.appendChild(title);
            svg.setAttribute("aria-labelledby", "touch-124-" + Touch_124.titleIdCounter);
        }
    };
    Touch_124.titleIdCounter = 0;
    Touch_124.decorators = [
        { type: Component, args: [{
                    selector: "ibm-icon-touch-124",
                    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=\"M20 8h-2A5 5 0 0 0 8 8H6a7 7 0 0 1 14 0z\"></path><path d=\"M25 15a2.94 2.94 0 0 0-1.47.4A3 3 0 0 0 21 14a2.94 2.94 0 0 0-1.47.4A3 3 0 0 0 16 13.18V8a3 3 0 0 0-6 0v11.1l-2.23-1.52A2.93 2.93 0 0 0 6 17a3 3 0 0 0-2.12 5.13l8 7.3A6.16 6.16 0 0 0 16 31h5a7 7 0 0 0 7-7v-6a3 3 0 0 0-3-3zm1 9a5 5 0 0 1-5 5h-5a4.17 4.17 0 0 1-2.76-1l-7.95-7.3A1 1 0 0 1 5 20a1 1 0 0 1 1.6-.8l5.4 3.7V8a1 1 0 0 1 2 0v11h2v-3a1 1 0 0 1 2 0v3h2v-2a1 1 0 0 1 2 0v2h2v-1a1 1 0 0 1 2 0z\"></path></svg>"
                },] },
    ];
    /** @nocollapse */
    Touch_124.ctorParameters = function () { return [
        { type: ElementRef }
    ]; };
    Touch_124.propDecorators = {
        ariaLabel: [{ type: Input }],
        ariaLabelledby: [{ type: Input }],
        ariaHidden: [{ type: Input }],
        title: [{ type: Input }],
        focusable: [{ type: Input }]
    };
    return Touch_124;
}());
export { Touch_124 };
var Touch_124Module = /** @class */ (function () {
    function Touch_124Module() {
    }
    Touch_124Module.decorators = [
        { type: NgModule, args: [{
                    declarations: [
                        Touch_124
                    ],
                    exports: [
                        Touch_124
                    ]
                },] },
    ];
    return Touch_124Module;
}());
export { Touch_124Module };
//# sourceMappingURL=24.js.map