'use strict';

Object.defineProperty(exports, '__esModule', { value: true });

const core = require('./core-906e2cc9.js');
require('./_commonjsHelpers-72d386ba.js');
const index = require('./index-d83d7645.js');

const SmoothlyTriggerSink = class {
    constructor(hostRef) {
        core.registerInstance(this, hostRef);
    }
    get filters() {
        if (!this.filtersValue)
            this.filtersValue = this.filter ? this.filter.split(" ") : [];
        return this.filtersValue;
    }
    TriggerListener(event) {
        if (index.dist_9.is(event.detail) && this.filters.some(f => f == event.detail.name)) {
            index.dist_6.send(this.destination, event.detail, this.context || window);
            event.preventDefault();
            event.stopPropagation();
        }
    }
    render() {
        return core.h("slot", null);
    }
    static get style() { return ".sc-smoothly-trigger-sink-h{display:block}[hidden].sc-smoothly-trigger-sink-h{display:none}"; }
};

exports.smoothly_trigger_sink = SmoothlyTriggerSink;
