import { defineComponent as a, computed as u, createElementBlock as l, openBlock as s, normalizeStyle as p } from "vue";
import { upgradeDefault as d } from "./version.mjs";
const i = a({ name: "ShjDefault" }), k = /* @__PURE__ */ a({
  ...i,
  props: {
    option: {},
    sources: {},
    useEvents: {}
  },
  setup(r) {
    const e = u(() => d(r.option)), c = () => {
      try {
        const o = e.value.background.image, n = e.value.background.color, t = e.value.background.size;
        return {
          background: o ? `url('${o}')` : n,
          backgroundSize: t,
          backgroundPosition: t === "auto" ? "0px 0px" : "center",
          backgroundRepeat: t === "auto" ? "repeat" : "no-repeat"
        };
      } catch {
        return {};
      }
    };
    return (o, n) => (s(), l("div", {
      class: "shj-default",
      style: p(c())
    }, null, 4));
  }
});
export {
  k as default
};
