import{r as registerInstance,h}from"./index-98dfb63a.js";import"./Token-0644b4fc.js";import{T as Trigger,M as Message}from"./Trigger-53dc7501.js";var styleCss=".sc-smoothly-trigger-sink-h{display:block}[hidden].sc-smoothly-trigger-sink-h{display:none}";var SmoothlyTriggerSink=function(){function e(e){registerInstance(this,e)}Object.defineProperty(e.prototype,"filters",{get:function(){if(!this.filtersValue)this.filtersValue=this.filter?this.filter.split(" "):[];return this.filtersValue},enumerable:false,configurable:true});e.prototype.TriggerListener=function(e){if(Trigger.is(e.detail)&&this.filters.some((function(t){return t==e.detail.name}))){Message.send(this.destination,e.detail,this.context||window);e.preventDefault();e.stopPropagation()}};e.prototype.render=function(){return h("slot",null)};return e}();SmoothlyTriggerSink.style=styleCss;export{SmoothlyTriggerSink as smoothly_trigger_sink};