import { jsx as o } from "@emotion/react/jsx-runtime";
import { getComponentSlotRoot as i } from "../../utils/getComponentSlotRoot.js";
import { getPropDataTestId as s } from "../../test/getNameDataTestId.js";
import { PDFViewerRootStyled as a, PreviewPDFStyled as d } from "./slots/PDFViewerSlots.js";
import { PDFViewerSlots as f } from "./slots/PDFViewerEnum.js";
import { PDF_VIEWER_KEY_COMPONENT as t } from "./constants.js";
const w = (r) => {
  const {
    pdfUrl: e,
    dataTestId: m
  } = r, p = i(t);
  return /* @__PURE__ */ o(
    a,
    {
      className: p,
      ...s(t, f.root, m),
      children: /* @__PURE__ */ o(d, { src: e, type: "application/pdf" })
    }
  );
};
export {
  w as PDFViewer
};
