"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),C=require("../_util/props-util/index.js"),$=require("./Cell.js"),L=require("./index.js"),O=l=>{const r=(q,{colon:g,prefixCls:j,bordered:y},{component:n,type:M,showLabel:_,showContent:F,labelStyle:v,contentStyle:w})=>q.map((t,i)=>{const d=t.props||{},{prefixCls:b=j,span:x=1,labelStyle:h=d["label-style"],contentStyle:m=d["content-style"],label:N=t.children?.label?.()}=d,k=C.getSlot(t),S=C.getClass(t),f=C.getStyle(t),{key:p}=t;return typeof n=="string"?e.createVNode($.default,{key:`${M}-${String(p)||i}`,class:S,style:f,labelStyle:{...v,...h},contentStyle:{...w,...m},span:x,colon:g,component:n,itemPrefixCls:b,bordered:y,label:_?N:null,content:F?k:null},null):[e.createVNode($.default,{key:`label-${String(p)||i}`,class:S,style:{...v,...f,...h},span:1,colon:g,component:n[0],itemPrefixCls:b,bordered:y,label:N},null),e.createVNode($.default,{key:`content-${String(p)||i}`,class:S,style:{...w,...f,...m},span:x*2-1,component:n[1],itemPrefixCls:b,bordered:y,content:k},null)]}),{prefixCls:o,vertical:V,row:s,index:a,bordered:P}=l,{labelStyle:c,contentStyle:u}=e.inject(L.descriptionsContext,{labelStyle:e.ref({}),contentStyle:e.ref({})});return V?e.createVNode(e.Fragment,null,[e.createVNode("tr",{key:`label-${a}`,class:`${o}-row`},[r(s,l,{component:"th",type:"label",showLabel:!0,labelStyle:c.value,contentStyle:u.value})]),e.createVNode("tr",{key:`content-${a}`,class:`${o}-row`},[r(s,l,{component:"td",type:"content",showContent:!0,labelStyle:c.value,contentStyle:u.value})])]):e.createVNode("tr",{key:a,class:`${o}-row`},[r(s,l,{component:P?["th","td"]:"td",type:"item",showLabel:!0,showContent:!0,labelStyle:c.value,contentStyle:u.value})])};exports.default=O;
