'use strict';

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

const index = require('./index-609aba38.js');

const CorejamFormSubmit = class {
  constructor(hostRef) {
    index.registerInstance(this, hostRef);
    this.formSubmit = index.createEvent(this, "formSubmit", 7);
  }
  onClick(e) {
    e.preventDefault(),
      this.formSubmit.emit({
        name: this.formId,
        type: "submit",
      });
  }
  render() {
    return (index.h(index.Host, { onClick: (e) => this.onClick(e), "data-cy": `submit-${this.formId}` }, index.h("slot", null)));
  }
};

exports.corejam_form_submit = CorejamFormSubmit;
