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