text: var e=Object.defineProperty,t=Object.defineProperties,r=Object.getOwnPropertyDescriptors,l=Object.getOwnPropertySymbols,a=Object.prototype.hasOwnProperty,s=Object.prototype.propertyIsEnumerable,n=(t,r,l)=>r in t?e(t,r,{enumerable:!0,configurable:!0,writable:!0,value:l}):t[r]=l,o=(e,t)=>{for(var r in t||(t={}))a.call(t,r)&&n(e,r,t[r]);if(l)for(var r of l(t))s.call(t,r)&&n(e,r,t[r]);return e},i=(e,l)=>t(e,r(l));import{k as c,r as p,f as u,u as d,s as f,bm as b,bn as m,O as y,bo as O}from"./vendor.c2cc062a.js";/* empty css              */import{p as j,c as v,i as x,ab as g,ac as h,ad as P}from"./index.9345068b.js";var w=c({name:"Description",props:{useCollapse:j.bool.def(!0),title:j.string.def(""),size:j.oneOf(["small","default","middle",void 0]).def("small"),bordered:j.bool.def(!0),column:{type:[Number,Object],default:()=>({xxl:4,xl:3,lg:3,md:3,sm:2,xs:1})},collapseOptions:{type:Object,default:null},schema:{type:Array,default:()=>[]},data:j.object},emits:["register"],setup(e,{slots:t,emit:r}){const l=p(null),{prefixCls:a}=v("description"),s=g(),n=u((()=>o(o({},e),d(l)))),c=u((()=>i(o({},d(n)),{title:void 0}))),j=u((()=>!!d(n).title)),w=u((()=>o({canExpand:!1},d(c).collapseOptions))),C=u((()=>o(o({},d(s)),d(c))));function E({label:e,labelMinWidth:t,labelStyle:r}){if(!r&&!t)return e;const l=i(o({},r),{minWidth:`${t}px `});return f("div",{style:l},[e])}const M=()=>{let e;return f(b,y({class:`${a}`},d(C)),"function"==typeof(t=e=function(){const{schema:e,data:t}=d(c);return d(e).map((e=>{const{render:r,field:l,span:a,show:s,contentMinWidth:n}=e;if(s&&x(s)&&!s(t))return null;const o=()=>{var e;const t=null==(e=d(c))?void 0:e.data;if(!t)return null;const a=O(t,l);return x(r)?r(a,t):null!=a?a:""},i=n;return f(b.Item,{label:E(e),key:l,span:a},{default:()=>n?f("div",{style:{minWidth:`${i}px`}},[o()]):o()})})).filter((e=>!!e))}())||"[object Object]"===Object.prototype.toString.call(t)&&!m(t)?e:{default:()=>[e]});var t};return r("register",{setDescProps:function(e){l.value=o(o({},d(l)),e)}}),()=>d(j)?(()=>{const r=e.useCollapse?M():f("div",null,[M()]);if(!e.useCollapse)return r;const{canExpand:l,helpMessage:a}=d(w),{title:s}=d(n);return f(P,{title:s,canExpan:l,helpMessage:a},{default:()=>r,action:()=>h(t,"action")})})():M()}});export{w as _};
  