'use strict';

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

const core = require('./core-906e2cc9.js');
require('./_commonjsHelpers-72d386ba.js');
const index = require('./index-d83d7645.js');

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

exports.smoothly_trigger_source = SmoothlyTriggerSource;
