import { r as registerInstance, c as createEvent, h, g as getElement } from './core-8e73947d.js';
import './_commonjsHelpers-97e6d7b1.js';
import { a as dist_6, d as dist_9 } from './index-b7fefe31.js';

const SmoothlyTriggerSource = class {
    constructor(hostRef) {
        registerInstance(this, hostRef);
        this.trigger = createEvent(this, "trigger", 7);
        this.message = createEvent(this, "message", 7);
    }
    componentDidLoad() {
        dist_6.listen(this.listen, (destination, content) => {
            if (dist_9.is(content))
                this.trigger.emit(content);
            else
                this.message.emit({ destination, content });
        }, window);
    }
    render() {
        return h("slot", null);
    }
    get element() { return getElement(this); }
    static get style() { return ".sc-smoothly-trigger-source-h{display:block}[hidden].sc-smoothly-trigger-source-h{display:none}"; }
};

export { SmoothlyTriggerSource as smoothly_trigger_source };
