(function (global, factory) {
    typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('@carbon/icon-helpers')) :
    typeof define === 'function' && define.amd ? define(['exports', '@angular/core', '@carbon/icon-helpers'], factory) :
    (factory((global.CarbonIconsAngular = {}),global.ng.Core,global.CarbonIconHelpers));
}(this, (function (exports,core,iconHelpers) { 'use strict';

    var LetterCc24 = /** @class */ (function () {
        function LetterCc24(elementRef) {
            this.elementRef = elementRef;
        }
        LetterCc24.prototype.ngAfterViewInit = function () {
            var svg = this.elementRef.nativeElement.querySelector("svg");
            var attributes = iconHelpers.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;
                LetterCc24.titleIdCounter++;
                title.setAttribute("id", "letter-cc24-" + LetterCc24.titleIdCounter);
                svg.appendChild(title);
                svg.setAttribute("aria-labelledby", "letter-cc24-" + LetterCc24.titleIdCounter);
            }
        };
        LetterCc24.titleIdCounter = 0;
        LetterCc24.decorators = [
            { type: core.Component, args: [{
                        selector: "ibm-icon-letter-cc24",
                        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=\"M24 23h-5a2 2 0 0 1-2-2v-6a2 2 0 0 1 2-2h5v2h-5v6h5zm-9 0H9a2 2 0 0 1-2-2V11a2 2 0 0 1 2-2h6v2H9v10h6z\"></path></svg>"
                    },] },
        ];
        /** @nocollapse */
        LetterCc24.ctorParameters = function () { return [
            { type: core.ElementRef }
        ]; };
        LetterCc24.propDecorators = {
            ariaLabel: [{ type: core.Input }],
            ariaLabelledby: [{ type: core.Input }],
            ariaHidden: [{ type: core.Input }],
            title: [{ type: core.Input }],
            focusable: [{ type: core.Input }]
        };
        return LetterCc24;
    }());
    var LetterCc24Module = /** @class */ (function () {
        function LetterCc24Module() {
        }
        LetterCc24Module.decorators = [
            { type: core.NgModule, args: [{
                        declarations: [
                            LetterCc24
                        ],
                        exports: [
                            LetterCc24
                        ]
                    },] },
        ];
        return LetterCc24Module;
    }());

    exports.LetterCc24 = LetterCc24;
    exports.LetterCc24Module = LetterCc24Module;

    Object.defineProperty(exports, '__esModule', { value: true });

})));
