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