'use strict';

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

const index = require('./index-df541290.js');
const index$1 = require('./index-3e5f1089.js');
require('./index-fe328b96.js');

const styleCss = ".sc-smoothly-trigger-sink-h{display:block}[hidden].sc-smoothly-trigger-sink-h{display:none}";

const SmoothlyTriggerSink = class {
  constructor(hostRef) {
    index.registerInstance(this, hostRef);
  }
  get filters() {
    if (!this.filtersValue)
      this.filtersValue = this.filter ? this.filter.split(" ") : [];
    return this.filtersValue;
  }
  TriggerListener(event) {
    if (index$1.Trigger.is(event.detail) && this.filters.some(f => f == event.detail.name)) {
      index$1.Message.send(this.destination, event.detail, this.context || window);
      event.preventDefault();
      event.stopPropagation();
    }
  }
  render() {
    return index.h("slot", null);
  }
};
SmoothlyTriggerSink.style = styleCss;

exports.smoothly_trigger_sink = SmoothlyTriggerSink;
