import { NgModule, Component, ElementRef, Input } from "@angular/core";
import { getAttributes } from "@carbon/icon-helpers";
var ViewOff20 = /** @class */ (function () {
    function ViewOff20(elementRef) {
        this.elementRef = elementRef;
    }
    ViewOff20.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;
            ViewOff20.titleIdCounter++;
            title.setAttribute("id", "view-off20-" + ViewOff20.titleIdCounter);
            svg.appendChild(title);
            svg.setAttribute("aria-labelledby", "view-off20-" + ViewOff20.titleIdCounter);
        }
    };
    ViewOff20.titleIdCounter = 0;
    ViewOff20.decorators = [
        { type: Component, args: [{
                    selector: "ibm-icon-view-off20",
                    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=\"M5.24 22.51l1.43-1.42A14.06 14.06 0 0 1 3.07 16C5.1 10.93 10.7 7 16 7a12.38 12.38 0 0 1 4 .72l1.55-1.56A14.72 14.72 0 0 0 16 5 16.69 16.69 0 0 0 1.06 15.66a1 1 0 0 0 0 .68 16 16 0 0 0 4.18 6.17z\"></path><path d=\"M12 15.73a4 4 0 0 1 3.7-3.7l1.81-1.82a6 6 0 0 0-7.33 7.33zm18.94-.07a16.4 16.4 0 0 0-5.74-7.44L30 3.41 28.59 2 2 28.59 3.41 30l5.1-5.1A15.29 15.29 0 0 0 16 27a16.69 16.69 0 0 0 14.94-10.66 1 1 0 0 0 0-.68zM20 16a4 4 0 0 1-6 3.44L19.44 14a4 4 0 0 1 .56 2zm-4 9a13.05 13.05 0 0 1-6-1.58l2.54-2.54a6 6 0 0 0 8.35-8.35l2.87-2.87A14.54 14.54 0 0 1 28.93 16C26.9 21.07 21.3 25 16 25z\"></path></svg>"
                },] },
    ];
    /** @nocollapse */
    ViewOff20.ctorParameters = function () { return [
        { type: ElementRef }
    ]; };
    ViewOff20.propDecorators = {
        ariaLabel: [{ type: Input }],
        ariaLabelledby: [{ type: Input }],
        ariaHidden: [{ type: Input }],
        title: [{ type: Input }],
        focusable: [{ type: Input }]
    };
    return ViewOff20;
}());
export { ViewOff20 };
var ViewOff20Module = /** @class */ (function () {
    function ViewOff20Module() {
    }
    ViewOff20Module.decorators = [
        { type: NgModule, args: [{
                    declarations: [
                        ViewOff20
                    ],
                    exports: [
                        ViewOff20
                    ]
                },] },
    ];
    return ViewOff20Module;
}());
export { ViewOff20Module };
//# sourceMappingURL=20.js.map