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