"use strict";
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
const vue = require("vue");
const room = require("tuikit-atomicx-vue3/room");
const ParticipantViewUI = require("../StandardParticipantViewUI/ParticipantViewUI.vue2.js");
const _hoisted_1 = {
  key: 1,
  class: "host-away-container"
};
const _sfc_main = /* @__PURE__ */ vue.defineComponent({
  __name: "index",
  props: {
    participant: {},
    streamType: {}
  },
  setup(__props) {
    const { currentRoom } = room.useRoomState();
    return (_ctx, _cache) => {
      var _a, _b;
      return __props.participant ? (vue.openBlock(), vue.createBlock(ParticipantViewUI.default, {
        key: 0,
        participant: __props.participant,
        "stream-type": __props.streamType
      }, null, 8, ["participant", "stream-type"])) : (vue.openBlock(), vue.createElementBlock("div", _hoisted_1, [
        vue.createVNode(vue.unref(room.Avatar), {
          size: "xxl",
          src: (_a = vue.unref(currentRoom)) == null ? void 0 : _a.roomOwner.avatarUrl,
          "user-id": (_b = vue.unref(currentRoom)) == null ? void 0 : _b.roomOwner.userId
        }, null, 8, ["src", "user-id"])
      ]));
    };
  }
});
exports.default = _sfc_main;
