'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-source-h{display:block}[hidden].sc-smoothly-trigger-source-h{display:none}";

const SmoothlyTriggerSource = class {
  constructor(hostRef) {
    index.registerInstance(this, hostRef);
    this.trigger = index.createEvent(this, "trigger", 7);
    this.message = index.createEvent(this, "message", 7);
  }
  componentDidLoad() {
    index$1.Message.listen(this.listen, (destination, content) => {
      if (index$1.Trigger.is(content))
        this.trigger.emit(content);
      else
        this.message.emit({ destination, content });
    }, window);
  }
  render() {
    return index.h("slot", null);
  }
  get element() { return index.getElement(this); }
};
SmoothlyTriggerSource.style = styleCss;

exports.smoothly_trigger_source = SmoothlyTriggerSource;
