/**
 * @fileoverview added by tsickle
 * @suppress {checkTypes} checked by tsc
 */
import { Pipe } from '@angular/core';
import { DomSanitizer } from '@angular/platform-browser';
var TrustAsHtmlPipe = /** @class */ (function () {
    function TrustAsHtmlPipe(_sanitizer) {
        this._sanitizer = _sanitizer;
    }
    /**
     * @param {?} value
     * @return {?}
     */
    TrustAsHtmlPipe.prototype.transform = /**
     * @param {?} value
     * @return {?}
     */
    function (value) {
        if (!value) {
            return value;
        }
        var /** @type {?} */ html = this._sanitizer.bypassSecurityTrustHtml(value);
        return html;
    };
    TrustAsHtmlPipe.decorators = [
        { type: Pipe, args: [{
                    name: 'trustAsHtml'
                },] },
    ];
    /** @nocollapse */
    TrustAsHtmlPipe.ctorParameters = function () { return [
        { type: DomSanitizer, },
    ]; };
    return TrustAsHtmlPipe;
}());
export { TrustAsHtmlPipe };
function TrustAsHtmlPipe_tsickle_Closure_declarations() {
    /** @type {!Array<{type: !Function, args: (undefined|!Array<?>)}>} */
    TrustAsHtmlPipe.decorators;
    /**
     * @nocollapse
     * @type {function(): !Array<(null|{type: ?, decorators: (undefined|!Array<{type: !Function, args: (undefined|!Array<?>)}>)})>}
     */
    TrustAsHtmlPipe.ctorParameters;
    /** @type {?} */
    TrustAsHtmlPipe.prototype._sanitizer;
}

//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidHJ1c3QtYXMtaHRtbC5waXBlLmpzIiwic291cmNlUm9vdCI6Im5nOi8vYXBwLWJhc2UtbGlicmFyeS8iLCJzb3VyY2VzIjpbImxpYi9hbmd1bGFyL3BpcGVzL3RydXN0LWFzLWh0bWwucGlwZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7O0FBQUEsT0FBTyxFQUFnQixJQUFJLEVBQUMsTUFBTSxlQUFlLENBQUM7QUFDbEQsT0FBTyxFQUFDLFlBQVksRUFBVyxNQUFNLDJCQUEyQixDQUFDOztJQU83RCx5QkFBb0IsVUFBd0I7UUFBe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