import{i as o,a5 as _,a0 as le,r as M,au as ae,bB as oe,ex as re,ey as ce,_ as f,Y as O,a as Z,$ as ie,ci as se,c9 as K,aE as ee,a1 as ue,aL as de,aw as Q,c as ve,a3 as fe,ca as W,bd as ye,a2 as be}from"./index.ae52ebae.js";function N(l){return l!=null}var pe=function(e){var n=e.itemPrefixCls,t=e.component,r=e.span,a=e.labelStyle,u=e.contentStyle,p=e.bordered,i=e.label,s=e.content,c=e.colon,S=t;if(p){var d;return o(S,{class:[(d={},_(d,"".concat(n,"-item-label"),N(i)),_(d,"".concat(n,"-item-content"),N(s)),d)],colSpan:r},{default:function(){return[N(i)&&o("span",{style:a},[i]),N(s)&&o("span",{style:u},[s])]}})}return o(S,{class:["".concat(n,"-item")],colSpan:r},{default:function(){return[o("div",{class:"".concat(n,"-item-container")},[i&&o("span",{class:["".concat(n,"-item-label"),_({},"".concat(n,"-item-no-colon"),!c)],style:a},[i]),s&&o("span",{class:"".concat(n,"-item-content"),style:u},[s])])]}})},F=pe,me=function(e){var n=function(d,y,b){var P=y.colon,D=y.prefixCls,C=y.bordered,x=b.component,L=b.type,R=b.showLabel,k=b.showContent,h=b.labelStyle,$=b.contentStyle;return d.map(function(v,j){var g,I,m=v.props||{},U=m.prefixCls,A=U===void 0?D:U,T=m.span,V=T===void 0?1:T,Y=m.labelStyle,q=m.contentStyle,G=m.label,H=G===void 0?(I=(g=v.children)===null||g===void 0?void 0:g.label)===null||I===void 0?void 0:I.call(g):G,J=oe(v),B=re(v),E=ce(v),z=v.key;return typeof x=="string"?o(F,{key:"".concat(L,"-").concat(String(z)||j),class:B,style:E,labelStyle:f(f({},h.value),Y),contentStyle:f(f({},$.value),q),span:V,colon:P,component:x,itemPrefixCls:A,bordered:C,label:R?H:null,content:k?J:null},null):[o(F,{key:"label-".concat(String(z)||j),class:B,style:f(f(f({},h.value),E),Y),span:1,colon:P,component:x[0],itemPrefixCls:A,bordered:C,label:H},null),o(F,{key:"content-".concat(String(z)||j),class:B,style:f(f(f({},$.value),E),q),span:V*2-1,component:x[1],itemPrefixCls:A,bordered:C,content:J},null)]})},t=e.prefixCls,r=e.vertical,a=e.row,u=e.index,p=e.bordered,i=le(ne,{labelStyle:M({}),contentStyle:M({})}),s=i.labelStyle,c=i.contentStyle;return r?o(ae,null,[o("tr",{key:"label-".concat(u),class:"".concat(t,"-row")},[n(a,e,{component:"th",type:"label",showLabel:!0,labelStyle:s,contentStyle:c})]),o("tr",{key:"content-".concat(u),class:"".concat(t,"-row")},[n(a,e,{component:"td",type:"content",showContent:!0,labelStyle:s,contentStyle:c})])]):o("tr",{key:u,class:"".concat(t,"-row")},[n(a,e,{component:p?["th","td"]:"td",type:"item",showLabel:!0,showContent:!0,labelStyle:s,contentStyle:c})])},Se=me;O.any;var Ce=function(){return{prefixCls:String,label:O.any,labelStyle:{type:Object,default:void 0},contentStyle:{type:Object,default:void 0},span:{type:Number,default:1}}},xe=Z({name:"ADescriptionsItem",props:Ce(),slots:["label"],setup:function(e,n){var t=n.slots;return function(){var r;return(r=t.default)===null||r===void 0?void 0:r.call(t)}}}),te={xxxl:3,xxl:3,xl:3,lg:3,md:3,sm:2,xs:1};function he(l,e){if(typeof l=="number")return l;if(ee(l)==="object")for(var n=0;nn)&&(t=ye(l,{span:n}),be(e===void 0,"Descriptions","Sum of column `span` in a line not match `column` of Descriptions.")),t}function ge(l,e){var n=fe(l),t=[],r=[],a=e;return n.forEach(function(u,p){var i,s=(i=u.props)===null||i===void 0?void 0:i.span,c=s||1;if(p===n.length-1){r.push(X(u,s,a)),t.push(r);return}c