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;
};
import { HttpErrorResponse, HttpClient } from '@angular/common/http';
import { Injectable } from '@angular/core';
import { NtUploadHandler } from '@ng-tangram/components/core';
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: HttpClient }
    ]; };
    NtNoopUploadHandler = __decorate([
        Injectable()
    ], NtNoopUploadHandler);
    return NtNoopUploadHandler;
}(NtUploadHandler));
export { NtNoopUploadHandler };
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibm9vcC11cGxvYWQtaGFuZGxlci5qcyIsInNvdXJjZVJvb3QiOiJuZzovL0BuZy10YW5ncmFtL2NvbXBvbmVudHMvbm9vcC11cGxvYWQvIiwic291cmNlc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