"use strict";
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
const vue = require("vue");
const PreviewView = require("./PreviewView.vue.js");
const _sfc_main = /* @__PURE__ */ vue.defineComponent({
  __name: "index",
  emits: ["logout", "create-room", "join-room", "camera-preference-change", "microphone-preference-change"],
  setup(__props, { emit: __emit }) {
    const emit = __emit;
    const handleCreateRoom = (roomId, roomType) => {
      emit("create-room", roomId, roomType);
    };
    const handleJoinRoom = (roomId, roomType) => {
      emit("join-room", roomId, roomType);
    };
    const handleCameraPreferenceChange = (isOpen) => {
      emit("camera-preference-change", isOpen);
    };
    const handleMicrophonePreferenceChange = (isOpen) => {
      emit("microphone-preference-change", isOpen);
    };
    const handleLogout = () => {
      emit("logout");
    };
    return (_ctx, _cache) => {
      return vue.openBlock(), vue.createBlock(PreviewView.default, {
        onLogout: handleLogout,
        onCreateRoom: handleCreateRoom,
        onJoinRoom: handleJoinRoom,
        onCameraPreferenceChange: handleCameraPreferenceChange,
        onMicrophonePreferenceChange: handleMicrophonePreferenceChange
      });
    };
  }
});
exports.default = _sfc_main;
