import { defineComponent as a, computed as r, createElementBlock as m, openBlock as p, normalizeStyle as s } from "vue";
import { upgradeImage as l } from "./version.mjs";
const n = a({ name: "ShjImage" }), f = /* @__PURE__ */ a({
  ...n,
  props: {
    option: {}
  },
  setup(o, { expose: t }) {
    const e = r(() => l(o.option));
    return t({
      refresh: () => {
      },
      refreshView: () => {
      },
      refreshData: () => {
      }
    }), (u, i) => (p(), m("div", {
      class: "image",
      style: s({
        "--image-url": `url('${e.value.base.url}')`,
        "--image-repeat": e.value.base.mode === "repeat" ? "repeat" : "no-repeat",
        "--image-size": e.value.base.mode === "repeat" ? "auto" : e.value.base.mode
      })
    }, null, 4));
  }
});
export {
  f as default
};
