import{i as v}from"./color-6e929987.js";import{d as y,r as _,f,av as m,__tla as d}from"./index-92ad187a.js";import{b as T,__tla as b}from"./dict-221f3e01.js";let n,g=Promise.all([(()=>{try{return d}catch{}})(),(()=>{try{return b}catch{}})()]).then(async()=>{n=y({name:"DictTag",props:{type:{type:String,required:!0},value:{type:[String,Number,Boolean],required:!0}},setup(l){const e=_(),i=()=>{var s,o,u,c,p;return l.type?l.value===void 0||l.value===null?null:(r=l.type,t=l.value.toString(),T(r).forEach(a=>{a.value===t&&(a.colorType+""!="primary"&&a.colorType+""!="default"||(a.colorType=""),e.value=a)}),f(m,{style:(s=e.value)!=null&&s.cssClass?"color: #fff":"",type:(o=e.value)==null?void 0:o.colorType,color:(u=e.value)!=null&&u.cssClass&&v((c=e.value)==null?void 0:c.cssClass)?(p=e.value)==null?void 0:p.cssClass:"",disableTransitions:!0},{default:()=>{var a;return[(a=e.value)==null?void 0:a.label]}})):null;var r,t};return()=>i()}})});export{n as _,g as __tla};
