import{d as S,aU as B,c4 as al,c2 as G,aF as H,D as W,bQ as E,c5 as rl,aD as j,aE as nl,a as s,o as a,c as m,k as h,F as v,C as N,j as A,i as M,aH as O,c6 as il,bS as ol,b2 as cl,as as pl,e as ul,a0 as k,aG as Q,m as R,t as U,l as dl,c7 as yl,aI as ml,aM as bl,__tla as hl}from"./index-20ebf448.js";let P,q,vl=Promise.all([(()=>{try{return hl}catch{}})()]).then(async()=>{const C=Symbol("elDescriptions");var w=S({name:"ElDescriptionsCell",props:{cell:{type:Object},tag:{type:String,default:"td"},type:{type:String}},setup:()=>({descriptions:B(C,{})}),render(){var _,o,e,D,r,c,$;const i=al(this.cell),l=(((_=this.cell)==null?void 0:_.dirs)||[]).map(Z=>{const{dir:ll,arg:el,modifiers:tl,value:sl}=Z;return[ll,sl,el,tl]}),{border:u,direction:n}=this.descriptions,t=n==="vertical",g=((D=(e=(o=this.cell)==null?void 0:o.children)==null?void 0:e.label)==null?void 0:D.call(e))||i.label,d=($=(c=(r=this.cell)==null?void 0:r.children)==null?void 0:c.default)==null?void 0:$.call(c),y=i.span,f=i.align?`is-${i.align}`:"",b=i.labelAlign?`is-${i.labelAlign}`:f,x=i.className,F=i.labelClassName,z={width:G(i.width),minWidth:G(i.minWidth)},p=H("descriptions");switch(this.type){case"label":return W(E(this.tag,{style:z,class:[p.e("cell"),p.e("label"),p.is("bordered-label",u),p.is("vertical-label",t),b,F],colSpan:t?y:1},g),l);case"content":return W(E(this.tag,{style:z,class:[p.e("cell"),p.e("content"),p.is("bordered-content",u),p.is("vertical-content",t),f,x],colSpan:t?y:2*y-1},d),l);default:return W(E("td",{style:z,class:[p.e("cell"),f],colSpan:y},[rl(g)?void 0:E("span",{class:[p.e("label"),F]},g),E("span",{class:[p.e("content"),x]},d)]),l)}}});const J=j({row:{type:nl(Array),default:()=>[]}}),K={key:1},L=S({name:"ElDescriptionsRow"});var T=O(S({...L,props:J,setup(_){const o=B(C,{});return(e,D)=>s(o).direction==="vertical"?(a(),m(v,{key:0},[h("tr",null,[(a(!0),m(v,null,N(e.row,(r,c)=>(a(),A(s(w),{key:`tr1-${c}`,cell:r,tag:"th",type:"label"},null,8,["cell"]))),128))]),h("tr",null,[(a(!0),m(v,null,N(e.row,(r,c)=>(a(),A(s(w),{key:`tr2-${c}`,cell:r,tag:"td",type:"content"},null,8,["cell"]))),128))])],64)):(a(),m("tr",K,[(a(!0),m(v,null,N(e.row,(r,c)=>(a(),m(v,{key:`tr3-${c}`},[s(o).border?(a(),m(v,{key:0},[M(s(w),{cell:r,tag:"td",type:"label"},null,8,["cell"]),M(s(w),{cell:r,tag:"td",type:"content"},null,8,["cell"])],64)):(a(),A(s(w),{key:1,cell:r,tag:"td",type:"both"},null,8,["cell"]))],64))),128))]))}}),[["__file","/home/runner/work/element-plus/element-plus/packages/components/descriptions/src/descriptions-row.vue"]]);const V=j({border:{type:Boolean,default:!1},column:{type:Number,default:3},direction:{type:String,values:["horizontal","vertical"],default:"horizontal"},size:il,title:{type:String,default:""},extra:{type:String,default:""}}),X=S({name:"ElDescriptions"});var Y=O(S({...X,props:V,setup(_){const o=_,e=H("descriptions"),D=ol(),r=cl();pl(C,o);const c=ul(()=>[e.b(),e.m(D.value)]),$=(l,u,n,t=!1)=>(l.props||(l.props={}),u>n&&(l.props.span=n),t&&(l.props.span=u),l),i=()=>{if(!r.default)return[];const l=yl(r.default()).filter(d=>{var y;return((y=d==null?void 0:d.type)==null?void 0:y.name)==="ElDescriptionsItem"}),u=[];let n=[],t=o.column,g=0;return l.forEach((d,y)=>{var f;const b=((f=d.props)==null?void 0:f.span)||1;if(yt?t:b),y===l.length-1){const x=o.column-g%o.column;return n.push($(d,x,t,!0)),void u.push(n)}b(a(),m("div",{class:k(s(c))},[l.title||l.extra||l.$slots.title||l.$slots.extra?(a(),m("div",{key:0,class:k(s(e).e("header"))},[h("div",{class:k(s(e).e("title"))},[Q(l.$slots,"title",{},()=>[R(U(l.title),1)])],2),h("div",{class:k(s(e).e("extra"))},[Q(l.$slots,"extra",{},()=>[R(U(l.extra),1)])],2)],2)):dl("v-if",!0),h("div",{class:k(s(e).e("body"))},[h("table",{class:k([s(e).e("table"),s(e).is("bordered",l.border)])},[h("tbody",null,[(a(!0),m(v,null,N(i(),(n,t)=>(a(),A(T,{key:t,row:n},null,8,["row"]))),128))])],2)],2)],2))}}),[["__file","/home/runner/work/element-plus/element-plus/packages/components/descriptions/src/description.vue"]]);let I;I=S({name:"ElDescriptionsItem",props:j({label:{type:String,default:""},span:{type:Number,default:1},width:{type:[String,Number],default:""},minWidth:{type:[String,Number],default:""},align:{type:String,default:"left"},labelAlign:{type:String,default:""},className:{type:String,default:""},labelClassName:{type:String,default:""}})}),q=ml(Y,{DescriptionsItem:I}),P=bl(I)});export{P as E,vl as __tla,q as a};