import{d as _,r as v,g as y,am as m,_ as f,__tla as T}from"./index-7d5b26d3.js";import{i as d}from"./color-6e929987.js";import{c as g,__tla as b}from"./dict-37d1dfe8.js";let i,h=Promise.all([(()=>{try{return T}catch{}})(),(()=>{try{return b}catch{}})()]).then(async()=>{i=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,n;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&&d((c=l.value)==null?void 0:c.cssClass)?(n=l.value)==null?void 0:n.cssClass:"",disableTransitions:!0},{default:()=>{var a;return[(a=l.value)==null?void 0:a.label]}})):null;var r,s};return()=>p()}}),[["__file","D:/zx/mall-newfeifan-zx-business/src/components/DictTag/src/DictTag.vue"]])});export{i as _,h as __tla};
