import { defineComponent as t, createElementBlock as l, openBlock as r } from "vue";
const o = { class: "embed-preview" }, c = ["src"], a = ["src"], s = ["src"], m = /* @__PURE__ */ t({
  __name: "EmbedPreview",
  props: {
    embed: {
      type: Object,
      required: !0
    }
  },
  setup(e) {
    return (u, d) => (r(), l("div", o, [
      e.embed.type == "youtube" ? (r(), l("iframe", {
        key: 0,
        class: "embed-preview__player",
        src: e.embed.url,
        title: "YouTube video player",
        frameborder: "0",
        allowfullscreen: ""
      }, null, 8, c)) : e.embed.type == "rutube" ? (r(), l("iframe", {
        key: 1,
        class: "embed-preview__player",
        src: e.embed.url,
        title: "YouTube video player",
        frameborder: "0",
        allow: "clipboard-write; autoplay",
        webkitAllowFullScreen: "",
        mozallowfullscreen: "",
        allowFullScreen: ""
      }, null, 8, a)) : (r(), l("iframe", {
        key: 2,
        class: "embed-preview__player",
        src: e.embed.url
      }, null, 8, s))
    ]));
  }
});
export {
  m as default
};
