(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 Code24 = /** @class */ (function () {
        function Code24(elementRef) {
            this.elementRef = elementRef;
        }
        Code24.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;
                Code24.titleIdCounter++;
                title.setAttribute("id", "code24-" + Code24.titleIdCounter);
                svg.appendChild(title);
                svg.setAttribute("aria-labelledby", "code24-" + Code24.titleIdCounter);
            }
        };
        Code24.titleIdCounter = 0;
        Code24.decorators = [
            { type: core.Component, args: [{
                        selector: "ibm-icon-code24",
                        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=\"M31 16l-7 7-1.41-1.41L28.17 16l-5.58-5.59L24 9l7 7zM1 16l7-7 1.41 1.41L3.83 16l5.58 5.59L8 23l-7-7zm11.42 9.484L17.64 6l1.932.517L14.352 26z\"></path></svg>"
                    },] },
        ];
        /** @nocollapse */
        Code24.ctorParameters = function () { return [
            { type: core.ElementRef }
        ]; };
        Code24.propDecorators = {
            ariaLabel: [{ type: core.Input }],
            ariaLabelledby: [{ type: core.Input }],
            ariaHidden: [{ type: core.Input }],
            title: [{ type: core.Input }],
            focusable: [{ type: core.Input }]
        };
        return Code24;
    }());
    var Code24Module = /** @class */ (function () {
        function Code24Module() {
        }
        Code24Module.decorators = [
            { type: core.NgModule, args: [{
                        declarations: [
                            Code24
                        ],
                        exports: [
                            Code24
                        ]
                    },] },
        ];
        return Code24Module;
    }());

    exports.Code24 = Code24;
    exports.Code24Module = Code24Module;

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

})));
