import{d as _,r as v,i as y,ak as m,_ as f,__tla as d}from"./index-8c6726e5.js";import{i as T}from"./color-6e929987.js";import{d as g,__tla as h}from"./dict-1c98488d.js";let n,C=Promise.all([(()=>{try{return d}catch{}})(),(()=>{try{return h}catch{}})()]).then(async()=>{n=f(_({name:"DictTag",props:{type:{type:String,required:!0},value:{type:[String,Number,Boolean],required:!0}},setup(e){const l=v(),p=()=>{var t,o,u,c,i;return e.type?e.value===void 0||e.value===null?null:(r=e.type,s=e.value.toString(),g(r).forEach(a=>{a.value===s&&(a.colorType+""!="primary"&&a.colorType+""!="default"||(a.colorType=""),l.value=a)}),y(m,{style:(t=l.value)!=null&&t.cssClass?"color: #fff":"",type:(o=l.value)==null?void 0:o.colorType,color:(u=l.value)!=null&&u.cssClass&&T((c=l.value)==null?void 0:c.cssClass)?(i=l.value)==null?void 0:i.cssClass:"",disableTransitions:!0},{default:()=>{var a;return[(a=l.value)==null?void 0:a.label]}})):null;var r,s};return()=>p()}}),[["__file","/Users/RuHu.Xu/Desktop/mall-newfeifan-zx-admin/src/components/DictTag/src/DictTag.vue"]])});export{n as _,C as __tla};
