import{m as L,n as y,w as c,t as D,O as o,N as B,aa as I,d as V,ab as N,k as n,Z as u,a2 as f,y as _}from"./index.879f7421.js";const[q,t]=L("cell"),z={tag:y("div"),icon:String,size:String,title:c,value:c,label:c,center:Boolean,isLink:Boolean,border:D,required:Boolean,iconPrefix:String,valueClass:o,labelClass:o,titleClass:o,titleStyle:null,arrowDirection:String,clickable:{type:Boolean,default:null}},R=B({},z,I);var O=V({name:q,props:R,setup(e,{slots:a}){const v=N(),g=()=>{if(a.label||u(e.label))return n("div",{class:[t("label"),e.labelClass]},[a.label?a.label():e.label])},h=()=>{if(a.title||u(e.title))return n("div",{class:[t("title"),e.titleClass],style:e.titleStyle},[a.title?a.title():n("span",null,[e.title]),g()])},m=()=>{const l=a.value||a.default;if(l||u(e.value))return n("div",{class:[t("value"),e.valueClass]},[l?l():n("span",null,[e.value])])},w=()=>{if(a.icon)return a.icon();if(e.icon)return n(f,{name:e.icon,class:t("left-icon"),classPrefix:e.iconPrefix},null)},k=()=>{if(a["right-icon"])return a["right-icon"]();if(e.isLink){const l=e.arrowDirection&&e.arrowDirection!=="right"?`arrow-${e.arrowDirection}`:"arrow";return n(f,{name:l,class:t("right-icon")},null)}};return()=>{var l;const{tag:s,size:i,center:C,border:P,isLink:S,required:x}=e,r=(l=e.clickable)!=null?l:S,d={center:C,required:x,clickable:r,borderless:!P};return i&&(d[i]=!!i),n(s,{class:t(d),role:r?"button":void 0,tabindex:r?0:void 0,onClick:v},{default:()=>{var b;return[w(),h(),m(),k(),(b=a.extra)==null?void 0:b.call(a)]}})}}});const Z=_(O);export{Z as C,z as c};
