import{l as A,k as L,a1 as $,d as G,b as r,B as I,z as c,A as j,Z as u,p as d,I as p,G as E,__tla as N}from"./index-WdVqRR-9.js";import{r as R,u as V,__tla as Z}from"./use-route-_KCfW-bn.js";let y,v,k,F=Promise.all([(()=>{try{return N}catch(s){}})(),(()=>{try{return Z}catch(s){}})()]).then(async()=>{let s=0;k=function(){const l=A(),{name:t="unknown"}=(l==null?void 0:l.type)||{};return"".concat(t,"-").concat(++s)};let b,e,f;[b,e]=L("cell"),v={tag:I("div"),icon:String,size:String,title:c,value:c,label:c,center:Boolean,isLink:Boolean,border:j,iconPrefix:String,valueClass:u,labelClass:u,titleClass:u,titleStyle:null,arrowDirection:String,required:{type:[Boolean,String],default:null},clickable:{type:Boolean,default:null}},f=$({},v,R);var m=G({name:b,props:f,setup(l,{slots:t}){const h=V(),C=()=>{if(t.label||d(l.label))return r("div",{class:[e("label"),l.labelClass]},[t.label?t.label():l.label])},w=()=>{var a;if(t.title||d(l.title)){const i=(a=t.title)==null?void 0:a.call(t);return Array.isArray(i)&&i.length===0?void 0:r("div",{class:[e("title"),l.titleClass],style:l.titleStyle},[i||r("span",null,[l.title]),C()])}},S=()=>{const a=t.value||t.default;if(a||d(l.value))return r("div",{class:[e("value"),l.valueClass]},[a?a():r("span",null,[l.value])])},x=()=>{if(t.icon)return t.icon();if(l.icon)return r(p,{name:l.icon,class:e("left-icon"),classPrefix:l.iconPrefix},null)},B=()=>{if(t["right-icon"])return t["right-icon"]();if(l.isLink){const a=l.arrowDirection&&l.arrowDirection!=="right"?"arrow-".concat(l.arrowDirection):"arrow";return r(p,{name:a,class:e("right-icon")},null)}};return()=>{var a;const{tag:i,size:n,center:D,border:P,isLink:q,required:z}=l,o=(a=l.clickable)!=null?a:q,g={center:D,required:!!z,clickable:o,borderless:!P};return n&&(g[n]=!!n),r(i,{class:e(g),role:o?"button":void 0,tabindex:o?0:void 0,onClick:h},{default:()=>{var _;return[x(),w(),S(),B(),(_=t.extra)==null?void 0:_.call(t)]}})}}});y=E(m)});export{y as C,F as __tla,v as c,k as u};
