import { NgModule, Component, ElementRef, Input } from "@angular/core";
import { getAttributes } from "@carbon/icon-helpers";
var Medication20 = /** @class */ (function () {
    function Medication20(elementRef) {
        this.elementRef = elementRef;
    }
    Medication20.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;
            Medication20.titleIdCounter++;
            title.setAttribute("id", "medication20-" + Medication20.titleIdCounter);
            svg.appendChild(title);
            svg.setAttribute("aria-labelledby", "medication20-" + Medication20.titleIdCounter);
        }
    };
    Medication20.titleIdCounter = 0;
    Medication20.decorators = [
        { type: Component, args: [{
                    selector: "ibm-icon-medication20",
                    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=\"M24 2H8a2 2 0 0 0-2 2v4a2 2 0 0 0 2 2v18a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V10a2 2 0 0 0 2-2V4a2 2 0 0 0-2-2zM10 14h3v10h-3zm12 14H10v-2h5V12h-5v-2h12zM8 8V4h16v4z\"></path></svg>"
                },] },
    ];
    /** @nocollapse */
    Medication20.ctorParameters = function () { return [
        { type: ElementRef }
    ]; };
    Medication20.propDecorators = {
        ariaLabel: [{ type: Input }],
        ariaLabelledby: [{ type: Input }],
        ariaHidden: [{ type: Input }],
        title: [{ type: Input }],
        focusable: [{ type: Input }]
    };
    return Medication20;
}());
export { Medication20 };
var Medication20Module = /** @class */ (function () {
    function Medication20Module() {
    }
    Medication20Module.decorators = [
        { type: NgModule, args: [{
                    declarations: [
                        Medication20
                    ],
                    exports: [
                        Medication20
                    ]
                },] },
    ];
    return Medication20Module;
}());
export { Medication20Module };
//# sourceMappingURL=20.js.map