import '@das-fed/ui/packages/components/empty/style.css';
import { withInstall as m } from "@das-fed/utils/with-install/index";
import { t as d, setI18nRule as p } from "@das-fed/web/packages/i18n/index";
import { setThemeRule as u } from "@das-fed/web/packages/theme/index";
import { computed as A, defineComponent as c, createElementBlock as o, openBlock as s, createVNode as z, unref as v, withCtx as f, renderSlot as y, Fragment as P, createCommentVNode as a, createElementVNode as g, toDisplayString as l } from "vue";
import { ElEmpty as C } from "element-plus";
import "@das-fed/ui/packages/global/theme";
const h = (t) => {
  const n = {
    default: 168,
    large: 224,
    small: 120,
    custom: void 0
  };
  return { imgSize: A(() => n[t.size] || t.imageSize) };
}, x = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAKgAAABgCAMAAAC+LslfAAABklBMVEUAAAD////////////////////////j4+P////q///////r6+v////x///y///z8//29vbt9vbu9/fv7/fv9/fy+Pjy8vny+f/z8/n09Pnv9Prx9vry8vvy9/vy9/vv8/fz8/vw9Pjx9Pj09Pv1+Pj1+Pzy9fjy9fny9vnz9vnw9vnw8/bw8/nw9vn09vnx9Pnx9Pny9frz+Prz9frz9vrz9vr09vrx9vry9vv09vvy9Pjy9Pv09vv09vvy9Pvy9Pnz9fvz9/nx9fnx9fvx9fnz9fvz9fvx9fny9vnq7PLy9Pny9vny9vvy9Pny9vny9Pny9Pny9vry9vvx9Prz9Prz9Prx9fry9Pry9fzy9frx9Prz9vzy9fvz9fvx9fnz9vvy9Pry9Pry9fry9fry9frz9frz9fry9fry9fny9Pny9Prx9Pny9vzy9vzy9vry9vry9frz9fry9fvy9fvy9fny9fry9fry9vvy9fre4ebq7fLx9Prx9fnx9fry9fny9fry9fvy9vry9vvz9frz9vrz9vv4+wSwAAAAeXRSTlMAAgMEBQYHCQsMDA0REhQVHB0eICAmKCgsLi83Ozw9QEJGSEhLS01PUVJUVldXWVpbYmlqbG5vcHJyc3N1dnd5e3t+fn+AgYSHiIiIiImJiouMjI+PkJWcnJ2mrK6ut7/BwsTHyM/Q0dbX2drb3N3e4OHk5ebq8PL2luGUowAAAAFiS0dEAf8CLd4AAAJ8SURBVGje7dlpUxNBEIfxbDCCeKDirSiKRsQrioI3AkGBiKjxvsVbFMEggtmZCS58b15QaCE7mZ6equ2hqp9P8KtO1X+3NqkUx3Ecx+nL3J5U4AYIoQVl0W9C6aQVlFCq7KB0UlsomdQaSiW1hxJJEVAaKQZKIkVBKaQ4KIEUCU1eioUmLkVDk5bioQlLFwUzS1m5GcpQhjKUoasOiouhDGXo6oXOWMbQpdY2D70ZnZoujQw3pT2G1nd++/W3sc5aX6GHPv9c1vusl9D0jfGJ/xq/EvgHDYa+xHQ/8G6euj7Eds43aNO7+N56Bl334pWmeb+gJ1/qEmVXaHr/nZHS9NTo68HmjKtzzePnulTFDVp74fu/bf7aUe8G3f1UmxDV5skIPfpx+TZ/OugEbXuiTakyHhpcm1ixzX1pjHBnrrdYzOfyD7VVH/zq0OBB3DbfCqyZDe33jFUqf9DQ8/HbfNXWua37pjml5rDQWd0277Nzbrx8HRD+py/P6bb5WZ0V9PglSFJK5DgJoR3nNhvnlnZQ+BUtK+04P6qxebqfAYWHCqFf510W0COnQEVRhHNWlNKv8zELaLYVFPqgs0rp17k3ly8We07vgEBbYKEvOq/UXWNnN5mhB2CFYYg+KmCmuxuN0L2wXF6cITt9cYMJugeWWHx9sk9KCRrqEybodlguF4Ut9WYDdCssFyhsqU1P/gZYaGUURbClPmyAroeFf9YrBVvqrAFaA8vlosCpJv6QG4YhcKrpvzgDp5oYKoQATjX9RYFTTQ8FTjU9FDjVxFApJXCq6S8KnGr+546hDPUKWsI7fyQKLeCh/YlCMwXkTUuFTIrjOI7j9C0AikFlNRu/XcAAAAAASUVORK5CYII=", E = { class: "das-ui-empty" }, U = {
  key: 0,
  class: "title"
}, D = {
  key: 1,
  class: "description"
}, b = ["width", "src"], K = /* @__PURE__ */ c({
  __name: "Index",
  props: {
    title: { default: "" },
    size: { default: "default" },
    showImage: { type: Boolean, default: !0 },
    showDescription: { type: Boolean, default: !0 },
    description: { default: "" },
    imageSize: { default: 168 },
    image: { default: x }
  },
  setup(t) {
    const n = t, { imgSize: r } = h(n);
    return (e, i) => (s(), o("div", E, [
      z(v(C), { "image-size": v(r) }, {
        description: f(() => [
          y(e.$slots, "description", {}, () => [
            e.title ? (s(), o(
              "div",
              U,
              l(e.title),
              1
              /* TEXT */
            )) : a("v-if", !0),
            e.showDescription ? (s(), o(
              "div",
              D,
              l(e.description || v(d)("das-empty-desc")),
              1
              /* TEXT */
            )) : a("v-if", !0)
          ], !0)
        ]),
        default: f(() => [
          y(e.$slots, "default", {}, void 0, !0)
        ]),
        image: f(() => [
          y(e.$slots, "image", {}, () => [
            e.showImage ? (s(), o("img", {
              key: 0,
              width: v(r),
              src: e.image
            }, null, 8, b)) : (s(), o(
              P,
              { key: 1 },
              [
                a(" image为空时用于占位，防止出现默认图片 "),
                i[0] || (i[0] = g(
                  "div",
                  null,
                  null,
                  -1
                  /* CACHED */
                ))
              ],
              2112
              /* STABLE_FRAGMENT, DEV_ROOT_FRAGMENT */
            ))
          ], !0)
        ]),
        _: 3
        /* FORWARDED */
      }, 8, ["image-size"])
    ]));
  }
}), V = (t, n) => {
  const r = t.__vccOpts || t;
  for (const [e, i] of n)
    r[e] = i;
  return r;
}, Q = /* @__PURE__ */ V(K, [["__scopeId", "data-v-153d2d84"]]), w = { "das-empty-desc": { "zh-CN": "暂无数据", en: "No Data", _appCode: "framework" } }, B = {
  "--das-ui-empty-desc-color": { light: "#999999" },
  "--das-ui-empty-title-color": { light: "#212121" }
}, N = m(Q);
p(w);
u(B);
export {
  N as DasEmpty,
  N as default
};
