import { defineComponent, openBlock, createElementBlock, createElementVNode, unref, createBlock, createCommentVNode, createVNode } from "vue";
import AudioControl from "../AudioControl.vue.mjs";
import ScreenShareControl from "../ScreenShareControl/Index.vue.mjs";
import _sfc_main$1 from "../FullScreenControl.vue.mjs";
import InviteControl from "../InviteControl.vue.mjs";
import VideoControl from "../VideoControl.vue.mjs";
import _sfc_main$2 from "../ManageMemberControl.vue.mjs";
import _sfc_main$3 from "../ChatControl.vue.mjs";
import _sfc_main$4 from "../ManageStageControl.vue.mjs";
import MemberApplyControl from "../ApplyControl/MemberApplyControl.vue.mjs";
import MoreControl from "../MoreControl/index.mjs";
import EndControl from "../EndControl/index.mjs";
import _sfc_main$5 from "../SettingControl.vue.mjs";
import WhiteboardControl from "../WhiteboardControl.vue.mjs";
import VirtualBackground from "../VirtualBackground.vue.mjs";
import BasicBeauty from "../BasicBeauty.vue.mjs";
import bus from "../../../hooks/useMitt.mjs";
import useRoomFooter from "./useRoomFooterHooks.mjs";
import { isElectron } from "../../../utils/environment.mjs";
const _hoisted_1 = { class: "footer-container" };
const _hoisted_2 = { class: "left-container" };
const _hoisted_3 = { class: "center-container" };
const _hoisted_4 = { class: "right-container" };
const _sfc_main = /* @__PURE__ */ defineComponent({
  __name: "indexPC",
  setup(__props) {
    const { roomStore, isMaster, isAdmin, isAudience } = useRoomFooter();
    function handleControlClick(name) {
      bus.emit("experience-communication", name);
    }
    return (_ctx, _cache) => {
      return openBlock(), createElementBlock("div", _hoisted_1, [
        createElementVNode("div", _hoisted_2, [
          !unref(isAudience) || unref(isAdmin) ? (openBlock(), createBlock(AudioControl, {
            key: 0,
            class: "left-container-item",
            onClick: _cache[0] || (_cache[0] = ($event) => handleControlClick("audioControl"))
          })) : createCommentVNode("", true),
          !unref(isAudience) || unref(isAdmin) ? (openBlock(), createBlock(VideoControl, {
            key: 1,
            class: "left-container-item",
            onClick: _cache[1] || (_cache[1] = ($event) => handleControlClick("videoControl"))
          })) : createCommentVNode("", true),
          unref(roomStore).isSpeakAfterTakingSeatMode && !unref(isMaster) ? (openBlock(), createBlock(MemberApplyControl, {
            key: 2,
            class: "left-container-item",
            onClick: _cache[2] || (_cache[2] = ($event) => handleControlClick("MemberApplyControl"))
          })) : createCommentVNode("", true)
        ]),
        createElementVNode("div", _hoisted_3, [
          createVNode(ScreenShareControl, {
            class: "center-container-item",
            onClick: _cache[3] || (_cache[3] = ($event) => handleControlClick("screenShareControl"))
          }),
          unref(isElectron) ? (openBlock(), createBlock(WhiteboardControl, {
            key: 0,
            class: "center-container-item",
            onClick: _cache[4] || (_cache[4] = ($event) => handleControlClick("whiteboard"))
          })) : createCommentVNode("", true),
          createVNode(_sfc_main$1, {
            class: "center-container-item",
            onClick: _cache[5] || (_cache[5] = ($event) => handleControlClick("fullScreenControl"))
          }),
          createVNode(_sfc_main$2, {
            class: "center-container-item",
            onClick: _cache[6] || (_cache[6] = ($event) => handleControlClick("manageMemberControl"))
          }),
          createVNode(InviteControl, {
            class: "center-container-item",
            onClick: _cache[7] || (_cache[7] = ($event) => handleControlClick("inviteControl"))
          }),
          createVNode(_sfc_main$3, {
            class: "center-container-item",
            onClick: _cache[8] || (_cache[8] = ($event) => handleControlClick("chatControl"))
          }),
          unref(roomStore).isSpeakAfterTakingSeatMode && (unref(isMaster) || unref(isAdmin)) ? (openBlock(), createBlock(_sfc_main$4, {
            key: 1,
            class: "center-container-item",
            onClick: _cache[9] || (_cache[9] = ($event) => handleControlClick("MasterApplyControl"))
          })) : createCommentVNode("", true),
          createVNode(unref(MoreControl), {
            class: "center-container-item",
            onClick: _cache[10] || (_cache[10] = ($event) => handleControlClick("moreControl"))
          }),
          createVNode(_sfc_main$5, {
            class: "center-container-item",
            onClick: _cache[11] || (_cache[11] = ($event) => handleControlClick("settingControl"))
          }),
          createVNode(VirtualBackground, { class: "center-container-item" }),
          createVNode(BasicBeauty, { class: "center-container-item" })
        ]),
        createElementVNode("div", _hoisted_4, [
          createVNode(unref(EndControl))
        ])
      ]);
    };
  }
});
export {
  _sfc_main as default
};
