import { NgModule, Component, ElementRef, Input } from "@angular/core";
import { getAttributes } from "@carbon/icon-helpers";
var CloudSnow24 = /** @class */ (function () {
    function CloudSnow24(elementRef) {
        this.elementRef = elementRef;
    }
    CloudSnow24.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;
            CloudSnow24.titleIdCounter++;
            title.setAttribute("id", "cloud-snow24-" + CloudSnow24.titleIdCounter);
            svg.appendChild(title);
            svg.setAttribute("aria-labelledby", "cloud-snow24-" + CloudSnow24.titleIdCounter);
        }
    };
    CloudSnow24.titleIdCounter = 0;
    CloudSnow24.decorators = [
        { type: Component, args: [{
                    selector: "ibm-icon-cloud-snow24",
                    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-4 21.05L10.95 24 9.5 25.45 8.05 24 7 25.05l1.45 1.45L7 27.95 8.05 29l1.45-1.45L10.95 29 12 27.95l-1.45-1.45L12 25.05zm14 0L24.95 24l-1.45 1.45L22.05 24 21 25.05l1.45 1.45L21 27.95 22.05 29l1.45-1.45L24.95 29 26 27.95l-1.45-1.45L26 25.05zm-7 2L17.95 26l-1.45 1.45L15.05 26 14 27.05l1.45 1.45L14 29.95 15.05 31l1.45-1.45L17.95 31 19 29.95l-1.45-1.45L19 27.05z\"></path></svg>"
                },] },
    ];
    /** @nocollapse */
    CloudSnow24.ctorParameters = function () { return [
        { type: ElementRef }
    ]; };
    CloudSnow24.propDecorators = {
        ariaLabel: [{ type: Input }],
        ariaLabelledby: [{ type: Input }],
        ariaHidden: [{ type: Input }],
        title: [{ type: Input }],
        focusable: [{ type: Input }]
    };
    return CloudSnow24;
}());
export { CloudSnow24 };
var CloudSnow24Module = /** @class */ (function () {
    function CloudSnow24Module() {
    }
    CloudSnow24Module.decorators = [
        { type: NgModule, args: [{
                    declarations: [
                        CloudSnow24
                    ],
                    exports: [
                        CloudSnow24
                    ]
                },] },
    ];
    return CloudSnow24Module;
}());
export { CloudSnow24Module };
//# sourceMappingURL=24.js.map