import { createElementBlock as s, openBlock as o, normalizeStyle as y, unref as e, createElementVNode as l, createCommentVNode as i, toDisplayString as x } from "vue";
import { useColor as f, usePost as g } from "./composables-BAZQlC3e.js";
import { _export_sfc as k } from "./_plugin-vue_export-helper-DueaC3du.js";
const b = { class: "flex flex-wrap items-center max-w-full w-full backdrop-blur-lg rounded-lg bg-light-100 bg-opacity-90 backdrop-blur-sm backdrop-filter shadow-md hover-bg-opacity-20 transition-all" }, v = {
  key: 0,
  class: "p-0",
  style: { flex: "1 1" }
}, w = ["src"], B = {
  class: "flex flex-col p-1 overflow-hidden",
  style: { flex: "10 1 180px" }
}, S = { class: "px-2" }, C = { class: "flex flex-wrap items-center gap-2" }, P = {
  key: 0,
  class: "font-bold my-2"
}, D = {
  key: 1,
  class: "i-la-youtube"
}, E = {
  key: 2,
  class: "i-mdi-text-long"
}, L = ["url"], N = {
  __name: "PostLine",
  props: {
    hash: { type: String, default: "" },
    authors: { type: Object, default: () => ({}) },
    tag: { type: String, default: "" },
    back: Boolean,
    actions: { type: Boolean, default: !0 }
  },
  emits: ["user"],
  setup(a) {
    f("light");
    const h = f("deep"), m = a, { post: t } = g({ hash: m.hash });
    return (V, j) => {
      var c, n, r, d, u, p, _;
      return o(), s("div", {
        class: "line",
        style: y({ backgroundColor: e(h).hex(a.hash) })
      }, [
        l("div", b, [
          (c = e(t)) != null && c.icon ? (o(), s("div", v, [
            l("img", {
              class: "w-10 max-h-10 rounded-full m-2",
              src: e(t).icon
            }, null, 8, w)
          ])) : i("", !0),
          l("div", B, [
            l("div", S, [
              l("div", C, [
                (n = e(t)) != null && n.title || (r = e(t)) != null && r.statement ? (o(), s("div", P, x(e(t).title || e(t).statement.slice(0, 64)), 1)) : i("", !0),
                (d = e(t)) != null && d.youtube ? (o(), s("div", D)) : i("", !0),
                (u = e(t)) != null && u.text ? (o(), s("div", E)) : i("", !0),
                (p = e(t)) != null && p.link ? (o(), s("div", {
                  key: 3,
                  class: "i-la-link",
                  url: (_ = e(t)) == null ? void 0 : _.link
                }, null, 8, L)) : i("", !0)
              ])
            ])
          ])
        ])
      ], 4);
    };
  }
}, q = /* @__PURE__ */ k(N, [["__scopeId", "data-v-ea148f1f"]]);
export {
  q as default
};
//# sourceMappingURL=PostLine-BKgAleQm.js.map
