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 { Pipe } from '@angular/core';
import { DomSanitizer } from '@angular/platform-browser';
var EcSanitizerUrlPipe = /** @class */ (function () {
    function EcSanitizerUrlPipe(sanitizer) {
        this.sanitizer = sanitizer;
    }
    EcSanitizerUrlPipe.prototype.transform = function (value) {
        return this.sanitizer.bypassSecurityTrustResourceUrl(value);
    };
    EcSanitizerUrlPipe.ctorParameters = function () { return [
        { type: DomSanitizer }
    ]; };
    EcSanitizerUrlPipe = __decorate([
        Pipe({
            name: 'ecSanitizerUrl'
        })
    ], EcSanitizerUrlPipe);
    return EcSanitizerUrlPipe;
}());
export { EcSanitizerUrlPipe };
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZWMtc2FuaXRpemVyLXVybC5waXBlLmpzIiwic291cmNlUm9vdCI6Im5nOi8vbmctZWFzeWNvbW1lcmNlLyIsInNvdXJjZXMiOlsibGliL2VjLXBpcGUvZWMtc2FuaXRpemVyLXVybC5waXBlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7OztBQUFBLE9BQU8sRUFBRSxJQUFJLEVBQWlCLE1BQU0sZUFBZSxDQUFDO0FBQ3BELE9BQU8sRUFBRSxZQUFZLEVBQUUsTUFBTSwyQkFBMkIsQ0FBQztBQUt6RDtJQUVJLDRCQUFvQixTQUF1QjtRQUF2QixjQUFTLEdBQVQsU0FBUyxDQUFjO0lBQUksQ0FBQztJQUVoRCxzQ0FBUyxHQUFULFVBQVUsS0FBSztRQUN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