"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue");require("../../../../config-provider/index.js");const c=require("../../icons/not-exist-icon.vue.js"),s=require("../../icons/not-preview-icon.vue.js"),a=require("../../../../config-provider/hooks/use-namespace.js"),u=require("../../../../config-provider/hooks/use-locale.js"),p=e.defineComponent({__name:"index",props:{type:{default:"notExist"}},setup(n){const{b:t}=a.useNamespace("ap-file-preview"),{t:o}=u.useLocale(),l={notExist:{icon:e.createVNode(c.default,null,null),title:o("ap.apFilePreview.notExist")},notPreview:{icon:e.createVNode(s.default,null,null),title:o("ap.apFilePreview.notPreview")}},i=e.computed(()=>l[n.type]?.title),r=e.computed(()=>l[n.type]?.icon);return(m,d)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass([e.unref(t)("result")])},[e.createElementVNode("div",{class:e.normalizeClass([e.unref(t)("result-icon")])},[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(e.h(e.Fragment,[r.value]))))],2),e.createElementVNode("div",{class:e.normalizeClass([e.unref(t)("result-title")])},e.toDisplayString(i.value),3)],2))}});exports.default=p;
