import { j as f } from "./index.es37.js";
import u from "./index.es38.js";
import { useState as d, useCallback as y, useEffect as C } from "react";
import e from "./index.es39.js";
import "./index.es40.js";
import "./index.es41.js";
import "./index.es42.js";
import "./index.es43.js";
import "./index.es44.js";
import "./index.es45.js";
import "./index.es46.js";
import "./index.es47.js";
import "./index.es48.js";
import "./index.es49.js";
import "./index.es50.js";
import "./index.es51.js";
import "./index.es52.js";
import "./index.es53.js";
import "./index.es54.js";
import "./index.es55.js";
import "./index.es56.js";
import "./index.es57.js";
import "./index.es58.js";
import "./index.es59.js";
import "./index.es60.js";
import "./index.es61.js";
import "./index.es62.js";
import "./index.es63.js";
import "./index.es64.js";
import "./index.es65.js";
import "./index.es66.js";
import E from "./index.es67.js";
import I from "./index.es14.js";
const Y = (t) => {
  const [a, n] = d(), m = y((o) => {
    const i = { ...o };
    return e.isEmpty(i.title) && e.isEmpty(i.creators) && e.isEmpty(i.issue) && e.extend(i, { title: I.t("Citation.labels.untitled") }), i;
  }, []);
  return C(() => {
    if (t.locale && t.style && t.item) {
      const { uid: o, ...i } = t.item, l = new E({
        initialItems: [{ key: o, ...m(i) }],
        persist: !1
      }), r = e.first(l.itemsCSL), p = {
        retrieveLocale: () => t.locale,
        retrieveItem: () => r
      }, s = new u.Engine(p, t.style);
      s.updateItems([r.id]);
      const c = s.makeBibliography();
      n(e.last(c));
    }
  }, [m, t.item, t.locale, t.style]), /* @__PURE__ */ f.jsx(
    "div",
    {
      dangerouslySetInnerHTML: {
        __html: a
      }
    }
  );
};
export {
  Y as default
};
//# sourceMappingURL=index.es2.js.map
