import m from "./index-extends.js";
import u from "./index-defineProperty.js";
import r, { forwardRef as g, PureComponent as h } from "react";
import _ from "./index-Parser.js";
class d extends h {
  componentDidUpdate() {
    const {
      handleParse: e
    } = this.props;
    e();
  }
  render() {
    const {
      origin: e,
      prechecked: n,
      allowLogin: s,
      userRef: o,
      messengerAppId: t,
      pageId: a,
      children: c,
      size: l,
      centerAlign: f,
      skin: p
    } = this.props;
    return r.createElement("div", {
      className: "fb-messenger-checkbox",
      messenger_app_id: t,
      page_id: a,
      size: l,
      origin: e,
      user_ref: o,
      prechecked: n,
      allow_login: s,
      skin: p,
      center_align: f
    }, c);
  }
}
u(d, "defaultProps", {
  size: void 0,
  allowLogin: void 0,
  prechecked: void 0,
  userRef: void 0,
  children: void 0,
  origin: void 0,
  skin: void 0,
  centerAlign: void 0
});
g((i, e) => r.createElement(_, null, ({
  handleParse: n
}) => r.createElement(d, m({}, i, {
  handleParse: n,
  ref: e
}))));
