import * as i0 from '@angular/core';
import { Pipe, NgModule } from '@angular/core';
import * as i1 from '@angular/platform-browser';

// Angular
class IncludedInPipe {
    transform(value, list) {
        if (value == null || list == null || list.length == 0)
            return value;
        return list.includes(value);
    }
    static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.25", ngImport: i0, type: IncludedInPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); }
    static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "19.2.25", ngImport: i0, type: IncludedInPipe, isStandalone: true, name: "included_in" }); }
}
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.25", ngImport: i0, type: IncludedInPipe, decorators: [{
            type: Pipe,
            args: [{
                    name: 'included_in',
                    standalone: true
                }]
        }] });

class SafeHtmlPipe {
    constructor(sanitizer) {
        this.sanitizer = sanitizer;
    }
    transform(value) {
        return this.sanitizer.bypassSecurityTrustHtml(value);
    }
    static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.25", ngImport: i0, type: SafeHtmlPipe, deps: [{ token: i1.DomSanitizer }], target: i0.ɵɵFactoryTarget.Pipe }); }
    static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "19.2.25", ngImport: i0, type: SafeHtmlPipe, isStandalone: true, name: "safe_html" }); }
}
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.25", ngImport: i0, type: SafeHtmlPipe, decorators: [{
            type: Pipe,
            args: [{
                    name: 'safe_html',
                    standalone: true
                }]
        }], ctorParameters: () => [{ type: i1.DomSanitizer }] });

class SafeScriptPipe {
    constructor(sanitizer) {
        this.sanitizer = sanitizer;
    }
    transform(value) {
        return this.sanitizer.bypassSecurityTrustScript(value);
    }
    static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.25", ngImport: i0, type: SafeScriptPipe, deps: [{ token: i1.DomSanitizer }], target: i0.ɵɵFactoryTarget.Pipe }); }
    static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "19.2.25", ngImport: i0, type: SafeScriptPipe, isStandalone: true, name: "safe_script" }); }
}
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.25", ngImport: i0, type: SafeScriptPipe, decorators: [{
            type: Pipe,
            args: [{
                    name: 'safe_script',
                    standalone: true
                }]
        }], ctorParameters: () => [{ type: i1.DomSanitizer }] });

class SafeStylePipe {
    constructor(sanitizer) {
        this.sanitizer = sanitizer;
    }
    transform(value) {
        return this.sanitizer.bypassSecurityTrustStyle(value);
    }
    static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.25", ngImport: i0, type: SafeStylePipe, deps: [{ token: i1.DomSanitizer }], target: i0.ɵɵFactoryTarget.Pipe }); }
    static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "19.2.25", ngImport: i0, type: SafeStylePipe, isStandalone: true, name: "safe_style" }); }
}
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.25", ngImport: i0, type: SafeStylePipe, decorators: [{
            type: Pipe,
            args: [{
                    name: 'safe_style',
                    standalone: true
                }]
        }], ctorParameters: () => [{ type: i1.DomSanitizer }] });

class SafeUrlPipe {
    constructor(sanitizer) {
        this.sanitizer = sanitizer;
    }
    transform(value) {
        return this.sanitizer.bypassSecurityTrustUrl(value);
    }
    static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.25", ngImport: i0, type: SafeUrlPipe, deps: [{ token: i1.DomSanitizer }], target: i0.ɵɵFactoryTarget.Pipe }); }
    static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "19.2.25", ngImport: i0, type: SafeUrlPipe, isStandalone: true, name: "safe_url" }); }
}
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.25", ngImport: i0, type: SafeUrlPipe, decorators: [{
            type: Pipe,
            args: [{
                    name: 'safe_url',
                    standalone: true
                }]
        }], ctorParameters: () => [{ type: i1.DomSanitizer }] });

// Angular
const PIPES = [SafeStylePipe, SafeHtmlPipe, SafeScriptPipe, SafeUrlPipe, IncludedInPipe];
class PipesModule {
    static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.25", ngImport: i0, type: PipesModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
    static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.2.25", ngImport: i0, type: PipesModule, imports: [SafeStylePipe, SafeHtmlPipe, SafeScriptPipe, SafeUrlPipe, IncludedInPipe], exports: [SafeStylePipe, SafeHtmlPipe, SafeScriptPipe, SafeUrlPipe, IncludedInPipe] }); }
    static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.2.25", ngImport: i0, type: PipesModule }); }
}
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.25", ngImport: i0, type: PipesModule, decorators: [{
            type: NgModule,
            args: [{ imports: [...PIPES], exports: [...PIPES] }]
        }] });

/**
 * Generated bundle index. Do not edit.
 */

export { IncludedInPipe, PipesModule, SafeHtmlPipe, SafeScriptPipe, SafeStylePipe, SafeUrlPipe };
//# sourceMappingURL=esfaenza-core-pipes.mjs.map
