import f from "./index-extends.js";
import l from "./index-defineProperty.js";
import t, { forwardRef as c, PureComponent as u } from "react";
import h from "./index-Parser.js";
import p from "./index-getCurrentHref.js";
class n extends u {
  componentDidUpdate() {
    const {
      handleParse: e
    } = this.props;
    e();
  }
  render() {
    const {
      colorScheme: e,
      href: r = p(),
      numPosts: o,
      orderBy: a,
      width: m,
      children: i,
      mobile: s
    } = this.props;
    return t.createElement("div", {
      className: "fb-comments",
      "data-colorscheme": e,
      "data-numposts": o,
      "data-href": r,
      "data-order-by": a,
      "data-width": m,
      "data-skin": e,
      "data-mobile": s
    }, i);
  }
}
l(n, "defaultProps", {
  href: void 0,
  numPosts: void 0,
  orderBy: void 0,
  width: void 0,
  colorScheme: void 0,
  children: void 0,
  mobile: void 0
});
c((d, e) => t.createElement(h, null, ({
  handleParse: r
}) => t.createElement(n, f({}, d, {
  handleParse: r,
  ref: e
}))));
