import { defineComponent, ref, watchEffect, openBlock, createElementBlock, unref, createElementVNode, toDisplayString } from "vue";
import "../../../../adapter-vue.mjs";
const _hoisted_1 = ["href"];
const _hoisted_2 = { class: "el-icon-location-outline" };
const _hoisted_3 = ["src"];
const _sfc_main = /* @__PURE__ */ defineComponent({
  __name: "message-location",
  props: {
    content: {
      type: Object,
      default: () => ({})
    }
  },
  setup(__props) {
    const props = __props;
    const data = ref();
    watchEffect(() => {
      data.value = props.content;
    });
    return (_ctx, _cache) => {
      return openBlock(), createElementBlock("a", {
        class: "message-location",
        href: unref(data).href,
        target: "_blank",
        title: "点击查看详情"
      }, [
        createElementVNode("span", _hoisted_2, toDisplayString(unref(data).description), 1),
        createElementVNode("img", {
          src: unref(data).url
        }, null, 8, _hoisted_3)
      ], 8, _hoisted_1);
    };
  }
});
export {
  _sfc_main as default
};
