import { NgModule, Component, ElementRef, Input } from "@angular/core";
import { getAttributes } from "@carbon/icon-helpers";
var VideoAdd24 = /** @class */ (function () {
    function VideoAdd24(elementRef) {
        this.elementRef = elementRef;
    }
    VideoAdd24.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;
            VideoAdd24.titleIdCounter++;
            title.setAttribute("id", "video-add24-" + VideoAdd24.titleIdCounter);
            svg.appendChild(title);
            svg.setAttribute("aria-labelledby", "video-add24-" + VideoAdd24.titleIdCounter);
        }
    };
    VideoAdd24.titleIdCounter = 0;
    VideoAdd24.decorators = [
        { type: Component, args: [{
                    selector: "ibm-icon-video-add24",
                    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=\"M18 15h-4v-4h-2v4H8v2h4v4h2v-4h4v-2z\"></path><path d=\"M21 26H4a2.002 2.002 0 0 1-2-2V8a2.002 2.002 0 0 1 2-2h17a2.002 2.002 0 0 1 2 2v4.057l5.419-3.87A1 1 0 0 1 30 9v14a1 1 0 0 1-1.581.814L23 19.944V24a2.002 2.002 0 0 1-2 2zM4 8v16.001L21 24v-6a1 1 0 0 1 1.581-.814L28 21.056V10.944l-5.419 3.87A1 1 0 0 1 21 14V8z\"></path></svg>"
                },] },
    ];
    /** @nocollapse */
    VideoAdd24.ctorParameters = function () { return [
        { type: ElementRef }
    ]; };
    VideoAdd24.propDecorators = {
        ariaLabel: [{ type: Input }],
        ariaLabelledby: [{ type: Input }],
        ariaHidden: [{ type: Input }],
        title: [{ type: Input }],
        focusable: [{ type: Input }]
    };
    return VideoAdd24;
}());
export { VideoAdd24 };
var VideoAdd24Module = /** @class */ (function () {
    function VideoAdd24Module() {
    }
    VideoAdd24Module.decorators = [
        { type: NgModule, args: [{
                    declarations: [
                        VideoAdd24
                    ],
                    exports: [
                        VideoAdd24
                    ]
                },] },
    ];
    return VideoAdd24Module;
}());
export { VideoAdd24Module };
//# sourceMappingURL=24.js.map