import m from "./index-extends.js";
import p from "./index-defineProperty.js";
import r, { forwardRef as w, PureComponent as P } from "react";
import k from "./index-Parser.js";
import y from "./index-getCurrentHref.js";
class a extends P {
  componentDidUpdate() {
    const {
      handleParse: e
    } = this.props;
    e();
  }
  render() {
    const {
      href: e = y(),
      layout: d,
      colorScheme: n,
      action: i,
      showFaces: o,
      share: f,
      children: s,
      width: c,
      size: l,
      kidDirectedSite: h,
      referral: u
    } = this.props;
    return r.createElement("div", {
      className: "fb-like",
      "data-ref": u,
      "data-href": e,
      "data-layout": d,
      "data-colorscheme": n,
      "data-action": i,
      "data-show-faces": o,
      "data-share": f,
      "data-width": c,
      "data-size": l,
      "data-kid-directed-site": h
    }, s);
  }
}
p(a, "defaultProps", {
  layout: void 0,
  showFaces: void 0,
  colorScheme: void 0,
  action: void 0,
  share: void 0,
  size: void 0,
  kidDirectedSite: void 0,
  children: void 0,
  href: void 0,
  referral: void 0,
  width: void 0
});
w((t, e) => r.createElement(k, null, ({
  handleParse: d
}) => r.createElement(a, m({}, t, {
  handleParse: d,
  ref: e
}))));
