import { NgModule, Component, ElementRef, Input } from "@angular/core";
import { getAttributes } from "@carbon/icon-helpers";
var WatsonHealthCdCreateExchange32 = /** @class */ (function () {
    function WatsonHealthCdCreateExchange32(elementRef) {
        this.elementRef = elementRef;
    }
    WatsonHealthCdCreateExchange32.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;
            WatsonHealthCdCreateExchange32.titleIdCounter++;
            title.setAttribute("id", "watson-health-cd-create-exchange32-" + WatsonHealthCdCreateExchange32.titleIdCounter);
            svg.appendChild(title);
            svg.setAttribute("aria-labelledby", "watson-health-cd-create-exchange32-" + WatsonHealthCdCreateExchange32.titleIdCounter);
        }
    };
    WatsonHealthCdCreateExchange32.titleIdCounter = 0;
    WatsonHealthCdCreateExchange32.decorators = [
        { type: Component, args: [{
                    selector: "ibm-icon-watson-health-cd-create-exchange32",
                    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\"><circle cx=\"14\" cy=\"14\" r=\"2\"></circle><path d=\"M14 2a12 12 0 0 0 0 24v-2a10 10 0 1 1 10-10 8.27 8.27 0 0 1 0 1h2c0-.33.05-.66.05-1A12 12 0 0 0 14 2z\"></path><path d=\"M17 24h9.17l-2.59 2.59L25 28l5-5-5-5-1.42 1.42L26.17 22H17v2zm-3-4a6 6 0 1 1 6-6 6 6 0 0 1-6 6zm0-10a4 4 0 1 0 4 4 4 4 0 0 0-4-4z\"></path></svg>"
                },] },
    ];
    /** @nocollapse */
    WatsonHealthCdCreateExchange32.ctorParameters = function () { return [
        { type: ElementRef }
    ]; };
    WatsonHealthCdCreateExchange32.propDecorators = {
        ariaLabel: [{ type: Input }],
        ariaLabelledby: [{ type: Input }],
        ariaHidden: [{ type: Input }],
        title: [{ type: Input }],
        focusable: [{ type: Input }]
    };
    return WatsonHealthCdCreateExchange32;
}());
export { WatsonHealthCdCreateExchange32 };
var WatsonHealthCdCreateExchange32Module = /** @class */ (function () {
    function WatsonHealthCdCreateExchange32Module() {
    }
    WatsonHealthCdCreateExchange32Module.decorators = [
        { type: NgModule, args: [{
                    declarations: [
                        WatsonHealthCdCreateExchange32
                    ],
                    exports: [
                        WatsonHealthCdCreateExchange32
                    ]
                },] },
    ];
    return WatsonHealthCdCreateExchange32Module;
}());
export { WatsonHealthCdCreateExchange32Module };
//# sourceMappingURL=32.js.map