(function (global, factory) {
    typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/common/http'), require('@angular/core'), require('@ng-tangram/components/core')) :
    typeof define === 'function' && define.amd ? define('@ng-tangram/components/noop-upload', ['exports', '@angular/common/http', '@angular/core', '@ng-tangram/components/core'], factory) :
    (global = global || self, factory((global.nt = global.nt || {}, global.nt.components = global.nt.components || {}, global.nt.components.noopupload = {}), global.ng.common.http, global.ng.core, global.nt.components.core));
}(this, (function (exports, http, core, core$1) { 'use strict';

    var __extends = (this && this.__extends) || (function () {
        var extendStatics = function (d, b) {
            extendStatics = Object.setPrototypeOf ||
                ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
                function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
            return extendStatics(d, b);
        };
        return function (d, b) {
            extendStatics(d, b);
            function __() { this.constructor = d; }
            d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
        };
    })();
    var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
        var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
        if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
        else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
        return c > 3 && r && Object.defineProperty(target, key, r), r;
    };
    var NtNoopUploadHandler = (function (_super) {
        __extends(NtNoopUploadHandler, _super);
        function NtNoopUploadHandler(http) {
            return _super.call(this, http) || this;
        }
        NtNoopUploadHandler.prototype.getRequestData = function (file) { return file; };
        NtNoopUploadHandler.prototype.getResponseData = function (body) { return body; };
        NtNoopUploadHandler.prototype.getErrorMessage = function (error) { return error.statusText; };
        NtNoopUploadHandler.ctorParameters = function () { return [
            { type: http.HttpClient }
        ]; };
        NtNoopUploadHandler = __decorate([
            core.Injectable()
        ], NtNoopUploadHandler);
        return NtNoopUploadHandler;
    }(core$1.NtUploadHandler));

    var __decorate$1 = (this && this.__decorate) || function (decorators, target, key, desc) {
        var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
        if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
        else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
        return c > 3 && r && Object.defineProperty(target, key, r), r;
    };
    var NtNoopUploadModule = (function () {
        function NtNoopUploadModule() {
        }
        NtNoopUploadModule = __decorate$1([
            core.NgModule({
                providers: [
                    { provide: core$1.NtUploadHandler, useClass: NtNoopUploadHandler }
                ]
            })
        ], NtNoopUploadModule);
        return NtNoopUploadModule;
    }());

    exports.NtNoopUploadHandler = NtNoopUploadHandler;
    exports.NtNoopUploadModule = NtNoopUploadModule;

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

})));
//# sourceMappingURL=noopupload.umd.js.map
