import { defineComponent, openBlock, createElementBlock, renderSlot, unref, createCommentVNode } from "vue";
import { isUniFrameWork } from "../../../utils/env.mjs";
const _hoisted_1 = { class: "progress-message" };
const _hoisted_2 = {
  key: 0,
  class: "progress-container"
};
const _hoisted_3 = ["value"];
const _hoisted_4 = ["percent"];
const _sfc_main = /* @__PURE__ */ defineComponent({
  __name: "index",
  props: {
    content: { default: () => ({}) },
    messageItem: { default: () => ({}) }
  },
  setup(__props) {
    const props = __props;
    return (_ctx, _cache) => {
      return openBlock(), createElementBlock("div", _hoisted_1, [
        renderSlot(_ctx.$slots, "default", {}, void 0, true),
        props.messageItem.status === "unSend" && props.messageItem.progress < 1 ? (openBlock(), createElementBlock("div", _hoisted_2, [
          !unref(isUniFrameWork) ? (openBlock(), createElementBlock("progress", {
            key: 0,
            class: "progress",
            value: props.messageItem.progress,
            max: "1"
          }, null, 8, _hoisted_3)) : (openBlock(), createElementBlock("progress", {
            key: 1,
            activeColor: "#006EFF",
            class: "progress-common",
            percent: Math.round(props.messageItem.progress * 100)
          }, null, 8, _hoisted_4))
        ])) : createCommentVNode("", true)
      ]);
    };
  }
});
export {
  _sfc_main as default
};
