"use strict";
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
const vue = require("vue");
const uikitBaseComponentVue3 = require("@tencentcloud/uikit-base-component-vue3");
const room = require("tuikit-atomicx-vue3/room");
const _hoisted_1 = { class: "dropdown-content" };
const _sfc_main = /* @__PURE__ */ vue.defineComponent({
  __name: "index",
  emits: ["start-room"],
  setup(__props, { emit: __emit }) {
    const { t } = uikitBaseComponentVue3.useUIKit();
    const emit = __emit;
    const handleStartRoom = (roomTRype) => {
      emit("start-room", roomTRype);
    };
    return (_ctx, _cache) => {
      return vue.openBlock(), vue.createBlock(vue.unref(uikitBaseComponentVue3.TUIDropdown), {
        trigger: "click",
        placement: "top",
        class: "room-button"
      }, {
        dropdown: vue.withCtx(() => [
          vue.createElementVNode("div", _hoisted_1, [
            vue.createElementVNode("div", {
              class: "dropdown-item",
              onClick: _cache[0] || (_cache[0] = () => handleStartRoom(vue.unref(room.RoomType).Standard))
            }, [
              vue.createElementVNode("span", null, vue.toDisplayString(vue.unref(t)("Button.CreateConference")), 1),
              vue.createVNode(vue.unref(uikitBaseComponentVue3.IconArrowStrokeRight), { size: "12" })
            ]),
            vue.createElementVNode("div", {
              class: "dropdown-item",
              onClick: _cache[1] || (_cache[1] = () => handleStartRoom(vue.unref(room.RoomType).Webinar))
            }, [
              vue.createElementVNode("span", null, vue.toDisplayString(vue.unref(t)("Button.CreateWebinar")), 1),
              vue.createVNode(vue.unref(uikitBaseComponentVue3.IconArrowStrokeRight), { size: "12" })
            ])
          ])
        ]),
        default: vue.withCtx(() => [
          vue.createVNode(vue.unref(uikitBaseComponentVue3.TUIButton), {
            class: "button",
            size: "large",
            type: "primary",
            icon: vue.unref(uikitBaseComponentVue3.IconCreateRoom)
          }, {
            default: vue.withCtx(() => [
              vue.createTextVNode(vue.toDisplayString(vue.unref(t)("Button.CreateRoom")), 1)
            ]),
            _: 1
          }, 8, ["icon"])
        ]),
        _: 1
      });
    };
  }
});
exports.default = _sfc_main;
