import { openBlock as s, createElementBlock 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-5f691338.js";
import { _export_sfc as k } from "./_plugin-vue_export-helper-6a641814.js";
const v = { 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" }, b = {
  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" }
}, P = { class: "px-2" }, S = { class: "flex flex-wrap items-center gap-2" }, C = {
  key: 0,
  class: "font-bold my-2"
}, L = {
  key: 1,
  class: "i-la-youtube"
}, D = {
  key: 2,
  class: "i-mdi-text-long"
}, E = ["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) {
    const h = a;
    f("light");
    const m = f("deep"), { post: t } = g({ hash: h.hash });
    return (V, j) => {
      var c, n, r, d, u, _, p;
      return s(), o("div", {
        class: "line",
        style: y({ backgroundColor: e(m).hex(a.hash) })
      }, [
        l("div", v, [
          (c = e(t)) != null && c.icon ? (s(), o("div", b, [
            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", P, [
              l("div", S, [
                (n = e(t)) != null && n.title || (r = e(t)) != null && r.statement ? (s(), o("div", C, x(e(t).title || e(t).statement.slice(0, 64)), 1)) : i("", !0),
                (d = e(t)) != null && d.youtube ? (s(), o("div", L)) : i("", !0),
                (u = e(t)) != null && u.text ? (s(), o("div", D)) : i("", !0),
                (_ = e(t)) != null && _.link ? (s(), o("div", {
                  key: 3,
                  class: "i-la-link",
                  url: (p = e(t)) == null ? void 0 : p.link
                }, null, 8, E)) : i("", !0)
              ])
            ])
          ])
        ])
      ], 4);
    };
  }
}, q = /* @__PURE__ */ k(N, [["__scopeId", "data-v-ea148f1f"]]);
export {
  q as default
};
//# sourceMappingURL=PostLine-7ff456b0.js.map
