import { CdkPortalOutlet, TemplatePortal } from '@angular/cdk/portal';
import { ChangeDetectionStrategy, Component, ViewChild, ViewContainerRef, ViewEncapsulation, } from '@angular/core';
export class ResourceSelectorPopupComponent {
    constructor(viewContainerRef) {
        this.viewContainerRef = viewContainerRef;
    }
    attachContent(template) {
        this.templatePortal = new TemplatePortal(template, this.viewContainerRef);
    }
}
ResourceSelectorPopupComponent.decorators = [
    { type: Component, args: [{
                selector: 'acl-resource-selector-popup',
                template: "<div class=\"acl-resource-selector__popup\">\n  <ng-container [cdkPortalOutlet]=\"templatePortal\"></ng-container>\n</div>\n",
                encapsulation: ViewEncapsulation.None,
                // eslint-disable-next-line @angular-eslint/prefer-on-push-component-change-detection
                changeDetection: ChangeDetectionStrategy.Default,
                styles: [".cdk-global-overlay-wrapper,.cdk-overlay-container{pointer-events:none;top:0;left:0;height:100%;width:100%}.cdk-overlay-container{position:fixed;z-index:1000}.cdk-overlay-container:empty{display:none}.cdk-global-overlay-wrapper,.cdk-overlay-pane{display:flex;position:absolute;z-index:1000}.cdk-overlay-pane{pointer-events:auto;box-sizing:border-box;max-width:100%;max-height:100%}.cdk-overlay-backdrop{position:absolute;top:0;bottom:0;left:0;right:0;z-index:1000;pointer-events:auto;-webkit-tap-highlight-color:transparent;transition:opacity .4s cubic-bezier(.25,.8,.25,1);opacity:0}.cdk-overlay-backdrop.cdk-overlay-backdrop-showing{opacity:1}.cdk-high-contrast-active .cdk-overlay-backdrop.cdk-overlay-backdrop-showing{opacity:.6}.cdk-overlay-dark-backdrop{background:#00000052}.cdk-overlay-transparent-backdrop,.cdk-overlay-transparent-backdrop.cdk-overlay-backdrop-showing{opacity:0}.cdk-overlay-connected-position-bounding-box{position:absolute;z-index:1000;display:flex;flex-direction:column;min-width:1px;min-height:1px}.cdk-global-scrollblock{position:fixed;width:100%;overflow-y:scroll}.acl-resource-selector__backdrop{display:flex;flex-direction:column}.acl-resource-selector__backdrop:after,.acl-resource-selector__backdrop:before{content:\"\"}.acl-resource-selector__backdrop:before{background-color:initial;height:48px}.acl-resource-selector__backdrop:after{background-color:#0000004d;flex:1}.acl-resource-selector__popup{width:900px;height:517px;background-color:#fff;overflow:hidden;padding:0 20px}"]
            },] }
];
ResourceSelectorPopupComponent.ctorParameters = () => [
    { type: ViewContainerRef }
];
ResourceSelectorPopupComponent.propDecorators = {
    portalOutlet: [{ type: ViewChild, args: [CdkPortalOutlet, { static: true },] }],
    container: [{ type: ViewChild, args: ['container', { read: ViewContainerRef },] }]
};
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY29tcG9uZW50LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vLi4vcGFja2FnZXMvYWxhdWRhLWNvbW1vbi1saWIvc3JjL2J1c2luZXNzL3Jlc291cmNlLXNlbGVjdC9pbnRlcm5hbHMvc2VsZWN0b3ItcG9wdXAvY29tcG9uZW50LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBRSxlQUFlLEVBQUUsY0FBYyxFQUFFLE1BQU0scUJBQXFCLENBQUM7QUFDdEUsT0FBTyxFQUNMLHVCQUF1QixFQUN2QixTQUFTLEVBRVQsU0FBUyxFQUNULGdCQUFnQixFQUNoQixpQkFBaUIsR0FDbEIsTUFBTSxlQUFlLENBQUM7QUFVdkIsTUFBTSxPQUFPLDhCQUE4QjtJQVN6QyxZQUE2QixnQkFBa0M7UUFBbEMscUJBQWdCLEdBQWhCLGdCQUFnQixDQUFrQjtJQUFHLENBQUM7SUFFbkUsYUFBYSxDQUFDLFFBQTBCO1FBQ3RDLElBQUksQ0FBQyxjQUFjLEdBQUcsSUFBSSxjQUFjLENBQUMsUUFBUSxFQUFFLElBQUksQ0FBQyxnQkFBZ0IsQ0FBQyxDQUFDO0lBQzVFLENBQUM7OztZQXJCRixTQUFTLFNBQUM7Z0JBQ1QsUUFBUSxFQUFFLDZCQUE2Qj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