import { CdkPortalOutlet, TemplatePortal } from '@angular/cdk/portal';
import { ChangeDetectionStrategy, Component, ViewChild, ViewContainerRef, ViewEncapsulation, } from '@angular/core';
import * as i0 from "@angular/core";
import * as i1 from "@angular/cdk/portal";
const _c0 = ["container"];
export class ResourceSelectorPopupComponent {
    constructor(viewContainerRef) {
        this.viewContainerRef = viewContainerRef;
    }
    attachContent(template) {
        this.templatePortal = new TemplatePortal(template, this.viewContainerRef);
    }
}
ResourceSelectorPopupComponent.ɵfac = function ResourceSelectorPopupComponent_Factory(t) { return new (t || ResourceSelectorPopupComponent)(i0.ɵɵdirectiveInject(i0.ViewContainerRef)); };
ResourceSelectorPopupComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: ResourceSelectorPopupComponent, selectors: [["acl-resource-selector-popup"]], viewQuery: function ResourceSelectorPopupComponent_Query(rf, ctx) { if (rf & 1) {
        i0.ɵɵviewQuery(CdkPortalOutlet, 7);
        i0.ɵɵviewQuery(_c0, 5, ViewContainerRef);
    } if (rf & 2) {
        let _t;
        i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.portalOutlet = _t.first);
        i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.container = _t.first);
    } }, decls: 2, vars: 1, consts: [[1, "acl-resource-selector__popup"], [3, "cdkPortalOutlet"]], template: function ResourceSelectorPopupComponent_Template(rf, ctx) { if (rf & 1) {
        i0.ɵɵelementStart(0, "div", 0);
        i0.ɵɵelementContainer(1, 1);
        i0.ɵɵelementEnd();
    } if (rf & 2) {
        i0.ɵɵadvance(1);
        i0.ɵɵproperty("cdkPortalOutlet", ctx.templatePortal);
    } }, dependencies: [i1.CdkPortalOutlet], styles: [".cdk-overlay-container,.cdk-global-overlay-wrapper{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{display:flex;position:absolute;z-index:1000}.cdk-overlay-pane{position:absolute;pointer-events:auto;box-sizing:border-box;z-index:1000;display:flex;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:rgba(0,0,0,0);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:rgba(0,0,0,.32)}.cdk-overlay-transparent-backdrop{transition:visibility 1ms linear,opacity 1ms linear;visibility:hidden;opacity:1}.cdk-overlay-transparent-backdrop.cdk-overlay-backdrop-showing{opacity:0;visibility:visible}.cdk-overlay-backdrop-noop-animation{transition:none}.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:before,.acl-resource-selector__backdrop:after{content:\"\"}.acl-resource-selector__backdrop:before{background-color:transparent;height:60px}.acl-resource-selector__backdrop:after{background-color:#0000004d;flex:1}.acl-resource-selector__popup{display:flex;flex-direction:column;width:1024px;max-height:602px;background-color:rgb(var(--aui-color-n-10));border-radius:4px;overflow:hidden;padding:0 20px 20px;margin-top:18px}:root .acl-resource-selector__popup{box-shadow:0 2px 8px 0 rgba(var(--aui-color-origin-shadow),.2)}html[aui-theme-mode=light] .acl-resource-selector__popup{box-shadow:0 2px 8px 0 rgba(var(--aui-color-origin-shadow),.2)}@media (prefers-color-scheme: dark){html[aui-theme-mode=system] .acl-resource-selector__popup{box-shadow:0 2px 8px 0 rgba(var(--aui-color-origin-shadow),.75)}}html[aui-theme-mode=dark] .acl-resource-selector__popup{box-shadow:0 2px 8px 0 rgba(var(--aui-color-origin-shadow),.75)}.acl-resource-selector__popup acl-namespace-list .filter{border-bottom:1px solid rgb(var(--aui-color-n-8));box-shadow:none;padding:20px 0}.acl-resource-selector__popup acl-project-list{padding-top:20px}.acl-resource-selector__popup acl-resource-data-grid{padding:0;box-shadow:none}.acl-resource-selector__popup .no-data__figure,.acl-resource-selector__popup .no-data__figure img{height:120px!important}\n"], encapsulation: 2 });
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(ResourceSelectorPopupComponent, [{
        type: Component,
        args: [{ selector: 'acl-resource-selector-popup', encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.Default, template: "<div class=\"acl-resource-selector__popup\">\n  <ng-container [cdkPortalOutlet]=\"templatePortal\"></ng-container>\n</div>\n", styles: [".cdk-overlay-container,.cdk-global-overlay-wrapper{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{display:flex;position:absolute;z-index:1000}.cdk-overlay-pane{position:absolute;pointer-events:auto;box-sizing:border-box;z-index:1000;display:flex;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:rgba(0,0,0,0);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:rgba(0,0,0,.32)}.cdk-overlay-transparent-backdrop{transition:visibility 1ms linear,opacity 1ms linear;visibility:hidden;opacity:1}.cdk-overlay-transparent-backdrop.cdk-overlay-backdrop-showing{opacity:0;visibility:visible}.cdk-overlay-backdrop-noop-animation{transition:none}.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:before,.acl-resource-selector__backdrop:after{content:\"\"}.acl-resource-selector__backdrop:before{background-color:transparent;height:60px}.acl-resource-selector__backdrop:after{background-color:#0000004d;flex:1}.acl-resource-selector__popup{display:flex;flex-direction:column;width:1024px;max-height:602px;background-color:rgb(var(--aui-color-n-10));border-radius:4px;overflow:hidden;padding:0 20px 20px;margin-top:18px}:root .acl-resource-selector__popup{box-shadow:0 2px 8px 0 rgba(var(--aui-color-origin-shadow),.2)}html[aui-theme-mode=light] .acl-resource-selector__popup{box-shadow:0 2px 8px 0 rgba(var(--aui-color-origin-shadow),.2)}@media (prefers-color-scheme: dark){html[aui-theme-mode=system] .acl-resource-selector__popup{box-shadow:0 2px 8px 0 rgba(var(--aui-color-origin-shadow),.75)}}html[aui-theme-mode=dark] .acl-resource-selector__popup{box-shadow:0 2px 8px 0 rgba(var(--aui-color-origin-shadow),.75)}.acl-resource-selector__popup acl-namespace-list .filter{border-bottom:1px solid rgb(var(--aui-color-n-8));box-shadow:none;padding:20px 0}.acl-resource-selector__popup acl-project-list{padding-top:20px}.acl-resource-selector__popup acl-resource-data-grid{padding:0;box-shadow:none}.acl-resource-selector__popup .no-data__figure,.acl-resource-selector__popup .no-data__figure img{height:120px!important}\n"] }]
    }], function () { return [{ type: i0.ViewContainerRef }]; }, { portalOutlet: [{
            type: ViewChild,
            args: [CdkPortalOutlet, { static: true }]
        }], container: [{
            type: ViewChild,
            args: ['container', { read: ViewContainerRef }]
        }] }); })();
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY29tcG9uZW50LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vLi4vLi4vbGlicy9jb21tb24vc3JjL2J1c2luZXNzL3Jlc291cmNlLXNlbGVjdC9pbnRlcm5hbHMvc2VsZWN0b3ItcG9wdXAvY29tcG9uZW50LnRzIiwiLi4vL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