import { NgModule, Component, ElementRef, Input } from "@angular/core";
import { getAttributes } from "@carbon/icon-helpers";
var MicrophoneOffFilled20 = /** @class */ (function () {
    function MicrophoneOffFilled20(elementRef) {
        this.elementRef = elementRef;
    }
    MicrophoneOffFilled20.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;
            MicrophoneOffFilled20.titleIdCounter++;
            title.setAttribute("id", "microphone-off-filled20-" + MicrophoneOffFilled20.titleIdCounter);
            svg.appendChild(title);
            svg.setAttribute("aria-labelledby", "microphone-off-filled20-" + MicrophoneOffFilled20.titleIdCounter);
        }
    };
    MicrophoneOffFilled20.titleIdCounter = 0;
    MicrophoneOffFilled20.decorators = [
        { type: Component, args: [{
                    selector: "ibm-icon-microphone-off-filled20",
                    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=\"M23 17a7 7 0 0 1-11.73 5.14l1.42-1.41A5 5 0 0 0 21 17v-4.58l9-9L28.59 2 2 28.59 3.41 30l6.44-6.44A8.91 8.91 0 0 0 15 25.94V28h-4v2h10v-2h-4v-2.06A9 9 0 0 0 25 17v-3h-2zm-14 .32V14H7v3a9 9 0 0 0 .25 2.09zM20.76 5.58A5 5 0 0 0 11 7v8.34z\"></path></svg>"
                },] },
    ];
    /** @nocollapse */
    MicrophoneOffFilled20.ctorParameters = function () { return [
        { type: ElementRef }
    ]; };
    MicrophoneOffFilled20.propDecorators = {
        ariaLabel: [{ type: Input }],
        ariaLabelledby: [{ type: Input }],
        ariaHidden: [{ type: Input }],
        title: [{ type: Input }],
        focusable: [{ type: Input }]
    };
    return MicrophoneOffFilled20;
}());
export { MicrophoneOffFilled20 };
var MicrophoneOffFilled20Module = /** @class */ (function () {
    function MicrophoneOffFilled20Module() {
    }
    MicrophoneOffFilled20Module.decorators = [
        { type: NgModule, args: [{
                    declarations: [
                        MicrophoneOffFilled20
                    ],
                    exports: [
                        MicrophoneOffFilled20
                    ]
                },] },
    ];
    return MicrophoneOffFilled20Module;
}());
export { MicrophoneOffFilled20Module };
//# sourceMappingURL=20.js.map