(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 Save20 = /** @class */ (function () {
        function Save20(elementRef) {
            this.elementRef = elementRef;
        }
        Save20.prototype.ngAfterViewInit = function () {
            var svg = this.elementRef.nativeElement.querySelector("svg");
            var attributes = iconHelpers.getAttributes({
                width: 20,
                height: 20,
                viewBox: "0 0 20 20",
                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;
                Save20.titleIdCounter++;
                title.setAttribute("id", "save20-" + Save20.titleIdCounter);
                svg.appendChild(title);
                svg.setAttribute("aria-labelledby", "save20-" + Save20.titleIdCounter);
            }
        };
        Save20.titleIdCounter = 0;
        Save20.decorators = [
            { type: core.Component, args: [{
                        selector: "ibm-icon-save20",
                        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 20 20\" aria-hidden=\"true\"><path d=\"M17.8 5.5l-3.3-3.3c-.2-.1-.3-.2-.5-.2H3.3C2.6 2 2 2.6 2 3.3v13.3c0 .8.6 1.4 1.3 1.4h13.3c.7 0 1.4-.5 1.4-1.2V6.1c0-.4-.1-.4-.2-.6zM7.3 3.3h5.3v3.3H7.3V3.3zm5.4 13.4H7.3v-5.3h5.3l.1 5.3zm1.3 0v-5.3c0-.7-.6-1.3-1.3-1.3H7.3c-.7-.1-1.3.5-1.3 1.2v5.3H3.3V3.3H6v3.3C6 7.4 6.6 8 7.3 8h5.3c.8 0 1.4-.6 1.4-1.3v-3l2.7 2.7v10.4l-2.7-.1z\"></path></svg>"
                    },] },
        ];
        /** @nocollapse */
        Save20.ctorParameters = function () { return [
            { type: core.ElementRef }
        ]; };
        Save20.propDecorators = {
            ariaLabel: [{ type: core.Input }],
            ariaLabelledby: [{ type: core.Input }],
            ariaHidden: [{ type: core.Input }],
            title: [{ type: core.Input }],
            focusable: [{ type: core.Input }]
        };
        return Save20;
    }());
    var Save20Module = /** @class */ (function () {
        function Save20Module() {
        }
        Save20Module.decorators = [
            { type: core.NgModule, args: [{
                        declarations: [
                            Save20
                        ],
                        exports: [
                            Save20
                        ]
                    },] },
        ];
        return Save20Module;
    }());

    exports.Save20 = Save20;
    exports.Save20Module = Save20Module;

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

})));
