'use strict';

Object.defineProperty(exports, '__esModule', { value: true });

const core = require('./core-9070bfdf.js');

const CcModalController = class {
    constructor(hostRef) {
        core.registerInstance(this, hostRef);
    }
    componentDidLoad() {
        const modalParent = this.modalRef.parentElement;
        const body = document.querySelector("body");
        modalParent.appendChild(this.el);
        body.appendChild(this.modalRef);
    }
    componentDidUnload() {
        this.modalRef.remove();
    }
    render() {
        return core.h(core.Host, { style: { display: "none" } });
    }
    get el() { return core.getElement(this); }
};

exports.cc_modal_controller = CcModalController;
