import { NgModule, Component, ElementRef, Input } from "@angular/core";
import { getAttributes } from "@carbon/icon-helpers";
var CloudRain24 = /** @class */ (function () {
    function CloudRain24(elementRef) {
        this.elementRef = elementRef;
    }
    CloudRain24.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;
            CloudRain24.titleIdCounter++;
            title.setAttribute("id", "cloud-rain24-" + CloudRain24.titleIdCounter);
            svg.appendChild(title);
            svg.setAttribute("aria-labelledby", "cloud-rain24-" + CloudRain24.titleIdCounter);
        }
    };
    CloudRain24.titleIdCounter = 0;
    CloudRain24.decorators = [
        { type: Component, args: [{
                    selector: "ibm-icon-cloud-rain24",
                    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=\"M23.5 22h-15A6.5 6.5 0 0 1 7.2 9.14a9 9 0 0 1 17.6 0A6.5 6.5 0 0 1 23.5 22zM16 4a7 7 0 0 0-6.94 6.14L9 11h-.86a4.5 4.5 0 0 0 .36 9h15a4.5 4.5 0 0 0 .36-9H23l-.1-.82A7 7 0 0 0 16 4zm-2 26a.93.93 0 0 1-.45-.11 1 1 0 0 1-.44-1.34l2-4a1 1 0 1 1 1.78.9l-2 4A1 1 0 0 1 14 30zm6 0a.93.93 0 0 1-.45-.11 1 1 0 0 1-.44-1.34l2-4a1 1 0 1 1 1.78.9l-2 4A1 1 0 0 1 20 30zM8 30a.93.93 0 0 1-.45-.11 1 1 0 0 1-.44-1.34l2-4a1 1 0 1 1 1.78.9l-2 4A1 1 0 0 1 8 30z\"></path></svg>"
                },] },
    ];
    /** @nocollapse */
    CloudRain24.ctorParameters = function () { return [
        { type: ElementRef }
    ]; };
    CloudRain24.propDecorators = {
        ariaLabel: [{ type: Input }],
        ariaLabelledby: [{ type: Input }],
        ariaHidden: [{ type: Input }],
        title: [{ type: Input }],
        focusable: [{ type: Input }]
    };
    return CloudRain24;
}());
export { CloudRain24 };
var CloudRain24Module = /** @class */ (function () {
    function CloudRain24Module() {
    }
    CloudRain24Module.decorators = [
        { type: NgModule, args: [{
                    declarations: [
                        CloudRain24
                    ],
                    exports: [
                        CloudRain24
                    ]
                },] },
    ];
    return CloudRain24Module;
}());
export { CloudRain24Module };
//# sourceMappingURL=24.js.map