import p from "./index-extends.js";
import f from "./index-defineProperty.js";
import d, { forwardRef as m, PureComponent as l } from "react";
import c from "./index-Parser.js";
class t extends l {
  componentDidUpdate() {
    const {
      handleParse: e
    } = this.props;
    e();
  }
  render() {
    const {
      color: e,
      messengerAppId: r,
      pageId: a,
      children: s,
      dataRef: o,
      size: i
    } = this.props;
    return d.createElement("div", {
      className: "fb-send-to-messenger",
      messenger_app_id: r,
      page_id: a,
      "data-color": e,
      "data-size": i,
      "data-ref": o
    }, s);
  }
}
f(t, "defaultProps", {
  color: void 0,
  size: void 0,
  dataRef: void 0,
  children: void 0
});
m((n, e) => d.createElement(c, null, ({
  handleParse: r
}) => d.createElement(t, p({}, n, {
  handleParse: r,
  ref: e
}))));
