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