import { NgModule, Component, ElementRef, Input } from "@angular/core";
import { getAttributes } from "@carbon/icon-helpers";
var ViewFilled24 = /** @class */ (function () {
    function ViewFilled24(elementRef) {
        this.elementRef = elementRef;
    }
    ViewFilled24.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;
            ViewFilled24.titleIdCounter++;
            title.setAttribute("id", "view-filled24-" + ViewFilled24.titleIdCounter);
            svg.appendChild(title);
            svg.setAttribute("aria-labelledby", "view-filled24-" + ViewFilled24.titleIdCounter);
        }
    };
    ViewFilled24.titleIdCounter = 0;
    ViewFilled24.decorators = [
        { type: Component, args: [{
                    selector: "ibm-icon-view-filled24",
                    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\"><circle cx=\"16\" cy=\"16\" r=\"4\"></circle><path d=\"M30.94 15.66A16.69 16.69 0 0 0 16 5 16.69 16.69 0 0 0 1.06 15.66a1 1 0 0 0 0 .68A16.69 16.69 0 0 0 16 27a16.69 16.69 0 0 0 14.94-10.66 1 1 0 0 0 0-.68zM16 22.5a6.5 6.5 0 1 1 6.5-6.5 6.51 6.51 0 0 1-6.5 6.5z\"></path></svg>"
                },] },
    ];
    /** @nocollapse */
    ViewFilled24.ctorParameters = function () { return [
        { type: ElementRef }
    ]; };
    ViewFilled24.propDecorators = {
        ariaLabel: [{ type: Input }],
        ariaLabelledby: [{ type: Input }],
        ariaHidden: [{ type: Input }],
        title: [{ type: Input }],
        focusable: [{ type: Input }]
    };
    return ViewFilled24;
}());
export { ViewFilled24 };
var ViewFilled24Module = /** @class */ (function () {
    function ViewFilled24Module() {
    }
    ViewFilled24Module.decorators = [
        { type: NgModule, args: [{
                    declarations: [
                        ViewFilled24
                    ],
                    exports: [
                        ViewFilled24
                    ]
                },] },
    ];
    return ViewFilled24Module;
}());
export { ViewFilled24Module };
//# sourceMappingURL=24.js.map