import { defineComponent as u, createVNode as r, computed as c, openBlock as a, createElementBlock as v, normalizeClass as t, unref as o, createElementVNode as s, createBlock as f, resolveDynamicComponent as d, h as x, Fragment as w, toDisplayString as y } from "vue";
import "../../../../config-provider/index.mjs";
import E from "../../icons/not-exist-icon.vue.mjs";
import C from "../../icons/not-preview-icon.vue.mjs";
import { useNamespace as N } from "../../../../config-provider/hooks/use-namespace.mjs";
import { useLocale as P } from "../../../../config-provider/hooks/use-locale.mjs";
const V = /* @__PURE__ */ u({
  __name: "index",
  props: {
    type: {
      default: "notExist"
    }
  },
  setup(n) {
    const {
      b: e
    } = N("ap-file-preview"), {
      t: i
    } = P(), l = {
      notExist: {
        icon: r(E, null, null),
        title: i("ap.apFilePreview.notExist")
      },
      notPreview: {
        icon: r(C, null, null),
        title: i("ap.apFilePreview.notPreview")
      }
    }, p = c(() => l[n.type]?.title), m = c(() => l[n.type]?.icon);
    return (_, k) => (a(), v("div", {
      class: t([o(e)("result")])
    }, [s("div", {
      class: t([o(e)("result-icon")])
    }, [(a(), f(d(x(w, [m.value]))))], 2), s("div", {
      class: t([o(e)("result-title")])
    }, y(p.value), 3)], 2));
  }
});
export {
  V as default
};
