import{r as registerInstance,c as createEvent,h,g as getElement}from"./index-08b73e9e.js";import"./Token-ba2c5d5c.js";import{M as Message}from"./Message-1edb82cc.js";import{T as Trigger}from"./Trigger-aa00d3cb.js";var styleCss=".sc-smoothly-trigger-source-h{display:block}[hidden].sc-smoothly-trigger-source-h{display:none}";var SmoothlyTriggerSource=function(){function e(e){registerInstance(this,e);this.trigger=createEvent(this,"trigger",7);this.message=createEvent(this,"message",7)}e.prototype.componentDidLoad=function(){var e=this;Message.listen(this.listen,(function(t,r){if(Trigger.is(r))e.trigger.emit(r);else e.message.emit({destination:t,content:r})}),window)};e.prototype.render=function(){return h("slot",null)};Object.defineProperty(e.prototype,"element",{get:function(){return getElement(this)},enumerable:false,configurable:true});return e}();SmoothlyTriggerSource.style=styleCss;export{SmoothlyTriggerSource as smoothly_trigger_source};