import{r as registerInstance,c as createEvent,h,g as getElement}from"./index-98dfb63a.js";import"./Token-0644b4fc.js";import{M as Message,T as Trigger}from"./Trigger-53dc7501.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};