"use strict";
const common_vendor = require("../../../../../common/vendor.js");
const common_assets = require("../../../../../common/assets.js");
if (!Math) {
  Icon();
}
const Icon = () => "../../../common/Icon.js";
const _sfc_main = /* @__PURE__ */ common_vendor.defineComponent({
  __name: "message-video",
  props: {
    content: { default: () => ({}) },
    messageItem: { default: () => ({}) }
  },
  setup(__props) {
    const props = __props;
    function handlerVideoPlay() {
      const encodedUrl = encodeURIComponent(props.content.url);
      common_vendor.index.navigateTo({
        url: `/TUIKit/components/TUIChat/video-play?videoUrl=${encodedUrl}`
      });
    }
    return (_ctx, _cache) => {
      return common_vendor.e({
        a: props.content.snapshotUrl,
        b: props.messageItem.status === "success" || props.messageItem.progress === 1
      }, props.messageItem.status === "success" || props.messageItem.progress === 1 ? {
        c: common_vendor.p({
          file: common_vendor.unref(common_assets.playIcon)
        })
      } : {}, {
        d: common_vendor.o$1(handlerVideoPlay)
      });
    };
  }
});
const Component = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["__scopeId", "data-v-c500d966"]]);
wx.createComponent(Component);
//# sourceMappingURL=../../../../../../.sourcemap/mp-weixin/TUIKit/components/TUIChat/message-list/message-elements/message-video.js.map
