(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 Scalpel20 = /** @class */ (function () {
        function Scalpel20(elementRef) {
            this.elementRef = elementRef;
        }
        Scalpel20.prototype.ngAfterViewInit = function () {
            var svg = this.elementRef.nativeElement.querySelector("svg");
            var attributes = iconHelpers.getAttributes({
                width: 20,
                height: 20,
                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;
                Scalpel20.titleIdCounter++;
                title.setAttribute("id", "scalpel20-" + Scalpel20.titleIdCounter);
                svg.appendChild(title);
                svg.setAttribute("aria-labelledby", "scalpel20-" + Scalpel20.titleIdCounter);
            }
        };
        Scalpel20.titleIdCounter = 0;
        Scalpel20.decorators = [
            { type: core.Component, args: [{
                        selector: "ibm-icon-scalpel20",
                        template: "<svg focusable=\"false\" preserveAspectRatio=\"xMidYMid meet\" style=\"will-change: transform;\" xmlns=\"http://www.w3.org/2000/svg\" width=\"20\" height=\"20\" viewBox=\"0 0 32 32\" aria-hidden=\"true\"><path d=\"M28.83 5.17a4.1 4.1 0 0 0-5.66 0L.34 28h9.25a5 5 0 0 0 3.53-1.46l15.71-15.71a4 4 0 0 0 0-5.66zM12.29 18.88l2.09-2.09 2.83 2.83-2.09 2.09zm-.58 6.24a3 3 0 0 1-2.12.88H5.17l5.71-5.71 2.83 2.83zm15.7-15.71l-8.79 8.8-2.83-2.83 8.8-8.79a2 2 0 0 1 2.82 0 2 2 0 0 1 0 2.82z\"></path></svg>"
                    },] },
        ];
        /** @nocollapse */
        Scalpel20.ctorParameters = function () { return [
            { type: core.ElementRef }
        ]; };
        Scalpel20.propDecorators = {
            ariaLabel: [{ type: core.Input }],
            ariaLabelledby: [{ type: core.Input }],
            ariaHidden: [{ type: core.Input }],
            title: [{ type: core.Input }],
            focusable: [{ type: core.Input }]
        };
        return Scalpel20;
    }());
    var Scalpel20Module = /** @class */ (function () {
        function Scalpel20Module() {
        }
        Scalpel20Module.decorators = [
            { type: core.NgModule, args: [{
                        declarations: [
                            Scalpel20
                        ],
                        exports: [
                            Scalpel20
                        ]
                    },] },
        ];
        return Scalpel20Module;
    }());

    exports.Scalpel20 = Scalpel20;
    exports.Scalpel20Module = Scalpel20Module;

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

})));
