"use strict";
const common_vendor = require("../../../../../common/vendor.js");
const _sfc_main = {
  props: {
    type: {
      type: String,
      default: ""
    },
    src: {
      type: String,
      default: ""
    },
    feedId: {
      type: String,
      default: ""
    },
    finderUserName: {
      type: String,
      default: ""
    }
  },
  data() {
    return {
      isError: false
    };
  },
  methods: {
    channelVideoError() {
      this.isError = true;
    },
    toPlayChannelVideo() {
      common_vendor.index.openChannelsActivity({
        finderUserName: this.finderUserName,
        feedId: this.feedId
      });
    }
  },
  mounted() {
  }
};
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
  return common_vendor.e({
    a: $props.type === "channelVideoQrCode"
  }, $props.type === "channelVideoQrCode" ? {
    b: $props.src
  } : common_vendor.e({
    c: !$data.isError
  }, !$data.isError ? {
    d: $props.feedId,
    e: $props.finderUserName,
    f: common_vendor.o((...args) => $options.channelVideoError && $options.channelVideoError(...args))
  } : {
    g: common_vendor.o((...args) => $options.toPlayChannelVideo && $options.toPlayChannelVideo(...args))
  }));
}
const Component = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["render", _sfc_render]]);
wx.createComponent(Component);
//# sourceMappingURL=../../../../../../.sourcemap/mp-weixin/uni_modules/mp-html/components/mp-html/channel-video/channel-video.js.map
