import { createElementBlock as l, openBlock as e, createElementVNode as i, renderSlot as d, createCommentVNode as o, createBlock as s, toDisplayString as c, withCtx as p } from "vue";
import _ from "./icons/LogoIcon.vue.js";
import u from "../../1_atoms/Tooltip/Tooltip.vue.js";
/* empty css                    */
import m from "../../../_virtual/_plugin-vue_export-helper.js";
const b = { class: "chat-list__title-container" }, f = { class: "chat-list__title-block" }, h = {
  key: 0,
  class: "chat-list__title"
}, y = {
  __name: "ChatListHeader",
  props: {
    title: {
      type: String,
      default: "Чаты"
    },
    titleEnabled: {
      type: Boolean,
      default: !0
    },
    logoEnabled: {
      type: Boolean,
      default: !0
    },
    betaEnabled: {
      type: Boolean,
      default: !0
    },
    betaTooltipText: {
      type: String,
      default: `Мы постоянно улучшаем платформу.
Некоторые функции находятся в разработке.`
    }
  },
  setup(r) {
    const t = r;
    return (n, a) => (e(), l("div", b, [
      i("div", f, [
        t.titleEnabled ? (e(), l("h2", h, c(t.title), 1)) : o("", !0),
        t.logoEnabled ? (e(), s(_, {
          key: 1,
          class: "chat-list__title-logo"
        })) : o("", !0),
        t.betaEnabled ? (e(), s(u, {
          key: 2,
          text: t.betaTooltipText,
          position: "bottom"
        }, {
          default: p(() => [...a[0] || (a[0] = [
            i("div", { class: "chat-list__title-beta-badge" }, " beta ", -1)
          ])]),
          _: 1
        }, 8, ["text"])) : o("", !0)
      ]),
      d(n.$slots, "actions", {}, void 0, !0)
    ]));
  }
}, T = /* @__PURE__ */ m(y, [["__scopeId", "data-v-892a8a18"]]);
export {
  T as default
};
