import { NgModule, Component, ElementRef, Input } from "@angular/core";
import { getAttributes } from "@carbon/icon-helpers";
var WatsonHealthPetImageB24 = /** @class */ (function () {
    function WatsonHealthPetImageB24(elementRef) {
        this.elementRef = elementRef;
    }
    WatsonHealthPetImageB24.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;
            WatsonHealthPetImageB24.titleIdCounter++;
            title.setAttribute("id", "watson-health-pet-image-b24-" + WatsonHealthPetImageB24.titleIdCounter);
            svg.appendChild(title);
            svg.setAttribute("aria-labelledby", "watson-health-pet-image-b24-" + WatsonHealthPetImageB24.titleIdCounter);
        }
    };
    WatsonHealthPetImageB24.titleIdCounter = 0;
    WatsonHealthPetImageB24.decorators = [
        { type: Component, args: [{
                    selector: "ibm-icon-watson-health-pet-image-b24",
                    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\"><path d=\"M19 21h2v3h-2zm0-21h2v3h-2zM8 11h3v2H8zm21 0h3v2h-3zM10.816 4.216l1.4-1.4 2.122 2.12-1.4 1.401zm14.862 14.84l1.4-1.4 2.121 2.121-1.4 1.4zm-14.851.717l2.121-2.121 1.4 1.4-2.12 2.121zm14.84-14.847l2.122-2.122 1.4 1.4-2.122 2.122zM20 5a7 7 0 1 0 7 7 7 7 0 0 0-7-7zm0 12a5 5 0 0 1 0-10zM5 18H0v14h5a3 3 0 0 0 3-3v-2a3 3 0 0 0-.78-2A3 3 0 0 0 8 23v-2a3 3 0 0 0-3-3zm-3 2h3a1 1 0 0 1 1 1v2a1 1 0 0 1-1 1H2zm4 9a1 1 0 0 1-1 1H2v-4h3a1 1 0 0 1 1 1zM2 2h7V0H0v9h2V2z\"></path></svg>"
                },] },
    ];
    /** @nocollapse */
    WatsonHealthPetImageB24.ctorParameters = function () { return [
        { type: ElementRef }
    ]; };
    WatsonHealthPetImageB24.propDecorators = {
        ariaLabel: [{ type: Input }],
        ariaLabelledby: [{ type: Input }],
        ariaHidden: [{ type: Input }],
        title: [{ type: Input }],
        focusable: [{ type: Input }]
    };
    return WatsonHealthPetImageB24;
}());
export { WatsonHealthPetImageB24 };
var WatsonHealthPetImageB24Module = /** @class */ (function () {
    function WatsonHealthPetImageB24Module() {
    }
    WatsonHealthPetImageB24Module.decorators = [
        { type: NgModule, args: [{
                    declarations: [
                        WatsonHealthPetImageB24
                    ],
                    exports: [
                        WatsonHealthPetImageB24
                    ]
                },] },
    ];
    return WatsonHealthPetImageB24Module;
}());
export { WatsonHealthPetImageB24Module };
//# sourceMappingURL=24.js.map