import { useColor as h, usePost as y, openBlock as s, createElementBlock as o, createBaseVNode as l, unref as e, createCommentVNode as a, toDisplayString as x, normalizeStyle as g } from "./composables-Ci32s3jE.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"
}, L = {
  key: 2,
  class: "i-mdi-text-long"
}, N = ["url"], V = {
  __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(i) {
    h("light");
    const f = h("deep"), m = i, { post: t } = y({ hash: m.hash });
    return (j, z) => {
      var c, n, r, d, u, p, _;
      return s(), o("div", {
        class: "line",
        style: g({ backgroundColor: e(f).hex(i.hash) })
      }, [
        l("div", b, [
          (c = e(t)) != null && c.icon ? (s(), o("div", v, [
            l("img", {
              class: "w-10 max-h-10 rounded-full m-2",
              src: e(t).icon
            }, null, 8, w)
          ])) : a("", !0),
          l("div", B, [
            l("div", S, [
              l("div", C, [
                (n = e(t)) != null && n.title || (r = e(t)) != null && r.statement ? (s(), o("div", P, x(e(t).title || e(t).statement.slice(0, 64)), 1)) : a("", !0),
                (d = e(t)) != null && d.youtube ? (s(), o("div", D)) : a("", !0),
                (u = e(t)) != null && u.text ? (s(), o("div", L)) : a("", !0),
                (p = e(t)) != null && p.link ? (s(), o("div", {
                  key: 3,
                  class: "i-la-link",
                  url: (_ = e(t)) == null ? void 0 : _.link
                }, null, 8, N)) : a("", !0)
              ])
            ])
          ])
        ])
      ], 4);
    };
  }
}, O = /* @__PURE__ */ k(V, [["__scopeId", "data-v-ea148f1f"]]);
export {
  O as default
};
//# sourceMappingURL=PostLine-DeP4z23g.js.map
