import { NgModule, Component, ElementRef, Input } from "@angular/core";
import { getAttributes } from "@carbon/icon-helpers";
var WatsonHealthPetImageO32 = /** @class */ (function () {
    function WatsonHealthPetImageO32(elementRef) {
        this.elementRef = elementRef;
    }
    WatsonHealthPetImageO32.prototype.ngAfterViewInit = function () {
        var svg = this.elementRef.nativeElement.querySelector("svg");
        var attributes = getAttributes({
            width: 32,
            height: 32,
            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;
            WatsonHealthPetImageO32.titleIdCounter++;
            title.setAttribute("id", "watson-health-pet-image-o32-" + WatsonHealthPetImageO32.titleIdCounter);
            svg.appendChild(title);
            svg.setAttribute("aria-labelledby", "watson-health-pet-image-o32-" + WatsonHealthPetImageO32.titleIdCounter);
        }
    };
    WatsonHealthPetImageO32.titleIdCounter = 0;
    WatsonHealthPetImageO32.decorators = [
        { type: Component, args: [{
                    selector: "ibm-icon-watson-health-pet-image-o32",
                    template: "<svg focusable=\"false\" preserveAspectRatio=\"xMidYMid meet\" style=\"will-change: transform;\" xmlns=\"http://www.w3.org/2000/svg\" width=\"32\" height=\"32\" viewBox=\"0 0 32 32\" aria-hidden=\"true\"><path d=\"M11 29h2v3h-2zm0-21h2v3h-2zM0 19h3v2H0zm21 0h3v2h-3zM2.82 12.233l1.4-1.4 2.122 2.121-1.4 1.4zm14.855 14.833l1.4-1.4 2.121 2.122-1.4 1.4zm-14.844.724l2.121-2.12 1.4 1.4-2.12 2.12zm14.833-14.853l2.121-2.121 1.4 1.4-2.121 2.121zM12 13a7 7 0 1 0 7 7 7 7 0 0 0-7-7zm0 12a5 5 0 0 1 0-10zM2 2h7V0H0v9h2V2zm28-2h-4a2 2 0 0 0-2 2v10a2 2 0 0 0 2 2h4a2 2 0 0 0 2-2V2a2 2 0 0 0-2-2zm-4 12V2h4v10z\"></path></svg>"
                },] },
    ];
    /** @nocollapse */
    WatsonHealthPetImageO32.ctorParameters = function () { return [
        { type: ElementRef }
    ]; };
    WatsonHealthPetImageO32.propDecorators = {
        ariaLabel: [{ type: Input }],
        ariaLabelledby: [{ type: Input }],
        ariaHidden: [{ type: Input }],
        title: [{ type: Input }],
        focusable: [{ type: Input }]
    };
    return WatsonHealthPetImageO32;
}());
export { WatsonHealthPetImageO32 };
var WatsonHealthPetImageO32Module = /** @class */ (function () {
    function WatsonHealthPetImageO32Module() {
    }
    WatsonHealthPetImageO32Module.decorators = [
        { type: NgModule, args: [{
                    declarations: [
                        WatsonHealthPetImageO32
                    ],
                    exports: [
                        WatsonHealthPetImageO32
                    ]
                },] },
    ];
    return WatsonHealthPetImageO32Module;
}());
export { WatsonHealthPetImageO32Module };
//# sourceMappingURL=32.js.map