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