import { NgModule, Component, ElementRef, Input } from "@angular/core";
import { getAttributes } from "@carbon/icon-helpers";
var VolumeDown24 = /** @class */ (function () {
    function VolumeDown24(elementRef) {
        this.elementRef = elementRef;
    }
    VolumeDown24.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;
            VolumeDown24.titleIdCounter++;
            title.setAttribute("id", "volume-down24-" + VolumeDown24.titleIdCounter);
            svg.appendChild(title);
            svg.setAttribute("aria-labelledby", "volume-down24-" + VolumeDown24.titleIdCounter);
        }
    };
    VolumeDown24.titleIdCounter = 0;
    VolumeDown24.decorators = [
        { type: Component, args: [{
                    selector: "ibm-icon-volume-down24",
                    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=\"M25.1 10.66L23.58 12a6 6 0 0 1-.18 7.94l1.47 1.36a8 8 0 0 0 .23-10.59zM20 30a1 1 0 0 1-.71-.3L11.67 22H5a1 1 0 0 1-1-1V11a1 1 0 0 1 1-1h6.67l7.62-7.7a1 1 0 0 1 1.41 0 1 1 0 0 1 .3.7v26a1 1 0 0 1-1 1zM6 20h6a1.17 1.17 0 0 1 .79.3L19 26.57V5.43l-6.21 6.27a1.17 1.17 0 0 1-.79.3H6z\"></path></svg>"
                },] },
    ];
    /** @nocollapse */
    VolumeDown24.ctorParameters = function () { return [
        { type: ElementRef }
    ]; };
    VolumeDown24.propDecorators = {
        ariaLabel: [{ type: Input }],
        ariaLabelledby: [{ type: Input }],
        ariaHidden: [{ type: Input }],
        title: [{ type: Input }],
        focusable: [{ type: Input }]
    };
    return VolumeDown24;
}());
export { VolumeDown24 };
var VolumeDown24Module = /** @class */ (function () {
    function VolumeDown24Module() {
    }
    VolumeDown24Module.decorators = [
        { type: NgModule, args: [{
                    declarations: [
                        VolumeDown24
                    ],
                    exports: [
                        VolumeDown24
                    ]
                },] },
    ];
    return VolumeDown24Module;
}());
export { VolumeDown24Module };
//# sourceMappingURL=24.js.map