import { NgModule, Component, ElementRef, Input } from "@angular/core";
import { getAttributes } from "@carbon/icon-helpers";
var HdFilled20 = /** @class */ (function () {
    function HdFilled20(elementRef) {
        this.elementRef = elementRef;
    }
    HdFilled20.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;
            HdFilled20.titleIdCounter++;
            title.setAttribute("id", "hd-filled20-" + HdFilled20.titleIdCounter);
            svg.appendChild(title);
            svg.setAttribute("aria-labelledby", "hd-filled20-" + HdFilled20.titleIdCounter);
        }
    };
    HdFilled20.titleIdCounter = 0;
    HdFilled20.decorators = [
        { type: Component, args: [{
                    selector: "ibm-icon-hd-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=\"M22 13h-2v6h2a1 1 0 0 0 1-1v-4a1 1 0 0 0-1-1z\"></path><path d=\"M28 6H4a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h24a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2zM15 21h-2v-4h-3v4H8V11h2v4h3v-4h2zm10-3a3 3 0 0 1-3 3h-4V11h4a3 3 0 0 1 3 3z\"></path></svg>"
                },] },
    ];
    /** @nocollapse */
    HdFilled20.ctorParameters = function () { return [
        { type: ElementRef }
    ]; };
    HdFilled20.propDecorators = {
        ariaLabel: [{ type: Input }],
        ariaLabelledby: [{ type: Input }],
        ariaHidden: [{ type: Input }],
        title: [{ type: Input }],
        focusable: [{ type: Input }]
    };
    return HdFilled20;
}());
export { HdFilled20 };
var HdFilled20Module = /** @class */ (function () {
    function HdFilled20Module() {
    }
    HdFilled20Module.decorators = [
        { type: NgModule, args: [{
                    declarations: [
                        HdFilled20
                    ],
                    exports: [
                        HdFilled20
                    ]
                },] },
    ];
    return HdFilled20Module;
}());
export { HdFilled20Module };
//# sourceMappingURL=20.js.map