import { defineComponent as c, ref as d, createElementBlock as t, openBlock as r, renderSlot as u, Fragment as f, renderList as m, unref as o, normalizeClass as p, createVNode as s, createElementVNode as v } from "vue";
import { usePrivateChatList as _ } from "./composables-BAZQlC3e.js";
import { AccountBadge as h, ChatPrivateCount as C } from "./components.js";
import { _export_sfc as g } from "./_plugin-vue_export-helper-DueaC3du.js";
const k = { class: "flex flex-col gap-2 w-full" }, x = ["onClick"], L = /* @__PURE__ */ c({
  __name: "ChatPrivateList",
  props: {
    current: {
      type: String,
      default: ""
    }
  },
  emits: ["chat"],
  setup(a) {
    const i = _();
    return d(!1), (n, l) => (r(), t("div", k, [
      u(n.$slots, "default", {}, void 0, !0),
      (r(!0), t(f, null, m(o(i), (P, e) => (r(), t("div", {
        class: p(["p-2 rounded-xl flex items-center bg-light-500 dark-bg-dark-400 cursor-pointer", { current: e == a.current }]),
        key: e,
        onClick: (b) => n.$emit("chat", e)
      }, [
        s(o(h), { pub: e }, null, 8, ["pub"]),
        l[0] || (l[0] = v("div", { class: "flex-1" }, null, -1)),
        s(o(C), { pub: e }, null, 8, ["pub"])
      ], 10, x))), 128))
    ]));
  }
}), N = /* @__PURE__ */ g(L, [["__scopeId", "data-v-05bb4ebf"]]);
export {
  N as default
};
//# sourceMappingURL=ChatPrivateList-hXjTi9Jm.js.map
