import{u as g}from"./countryInfo.Df1X6FZ-.js";import{g as h}from"./useTagColor.B-JXlmrE.js";import{d as C,ai as S,o as s,c as r,u as o,U as u,O as p,J as k,T as c,S as f}from"./vue.1RczIYhx.js";const v={class:"font-medium"},T={key:0},b={key:1},x={key:2},N=C({__name:"DataTableSlot",props:{row:{},field:{}},setup(m){const y=m,{row:e,field:a}=y,i=g(),t=i.Countries.find(n=>n.code==e.country_code),d=t?t.color:"#3875F6",l=i.Region.find(n=>n.code==e.region);return(n,w)=>{const _=S("el-tag");return s(),r("div",v,[o(a)==="region"?(s(),r("div",T,[u(_,{"disable-transitions":!0,type:o(h)(o(e).region)},{default:p(()=>[f(c(o(l)?o(l).name:"-"),1)]),_:1},8,["type"])])):o(a)==="country_code"?(s(),r("div",b,[u(_,{"disable-transitions":!0,style:k({color:o(d),borderColor:o(d)}),effect:"plain",round:""},{default:p(()=>[f(c(o(t)?o(t).name:"-"),1)]),_:1},8,["style"])])):(s(),r("div",x,c(o(e)[o(a)]||"-"),1))])}}});export{N as _};
