import { r as registerInstance, h } from './core-8e73947d.js';
import './_commonjsHelpers-97e6d7b1.js';
import { d as dist_9, a as dist_6 } from './index-b7fefe31.js';
var SmoothlyTriggerSink = /** @class */ (function () {
    function SmoothlyTriggerSink(hostRef) {
        registerInstance(this, hostRef);
    }
    Object.defineProperty(SmoothlyTriggerSink.prototype, "filters", {
        get: function () {
            if (!this.filtersValue)
                this.filtersValue = this.filter ? this.filter.split(" ") : [];
            return this.filtersValue;
        },
        enumerable: true,
        configurable: true
    });
    SmoothlyTriggerSink.prototype.TriggerListener = function (event) {
        if (dist_9.is(event.detail) && this.filters.some(function (f) { return f == event.detail.name; })) {
            dist_6.send(this.destination, event.detail, this.context || window);
            event.preventDefault();
            event.stopPropagation();
        }
    };
    SmoothlyTriggerSink.prototype.render = function () {
        return h("slot", null);
    };
    Object.defineProperty(SmoothlyTriggerSink, "style", {
        get: function () { return ".sc-smoothly-trigger-sink-h{display:block}[hidden].sc-smoothly-trigger-sink-h{display:none}"; },
        enumerable: true,
        configurable: true
    });
    return SmoothlyTriggerSink;
}());
export { SmoothlyTriggerSink as smoothly_trigger_sink };
