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';
var SmoothlyTriggerSource = /** @class */ (function () {
    function SmoothlyTriggerSource(hostRef) {
        registerInstance(this, hostRef);
        this.trigger = createEvent(this, "trigger", 7);
        this.message = createEvent(this, "message", 7);
    }
    SmoothlyTriggerSource.prototype.componentDidLoad = function () {
        var _this = this;
        dist_6.listen(this.listen, function (destination, content) {
            if (dist_9.is(content))
                _this.trigger.emit(content);
            else
                _this.message.emit({ destination: destination, content: content });
        }, window);
    };
    SmoothlyTriggerSource.prototype.render = function () {
        return h("slot", null);
    };
    Object.defineProperty(SmoothlyTriggerSource.prototype, "element", {
        get: function () { return getElement(this); },
        enumerable: true,
        configurable: true
    });
    Object.defineProperty(SmoothlyTriggerSource, "style", {
        get: function () { return ".sc-smoothly-trigger-source-h{display:block}[hidden].sc-smoothly-trigger-source-h{display:none}"; },
        enumerable: true,
        configurable: true
    });
    return SmoothlyTriggerSource;
}());
export { SmoothlyTriggerSource as smoothly_trigger_source };
