(function(u,t){typeof exports=="object"&&typeof module<"u"?t(exports,require("vue"),require("lodash-es"),require("ant-design-vue"),require("dayjs"),require("@purge-icons/generated"),require("@ant-design/icons-vue"),require("resize-observer-polyfill"),require("@vueuse/core")):typeof define=="function"&&define.amd?define(["exports","vue","lodash-es","ant-design-vue","dayjs","@purge-icons/generated","@ant-design/icons-vue","resize-observer-polyfill","@vueuse/core"],t):(u=typeof globalThis<"u"?globalThis:u||self,t(u.index={},u.Vue,u.lodashEs,u.antDesignVue,null,u.Iconify,u.iconsVue,null,u.core))})(this,function(u,t,W,j,wt,ue,ye,Ot,me){"use strict";const L="G",ge=Object.prototype.toString;function he(e,o){return ge.call(e)===`[object ${o}]`}function G(e){return he(e,"String")}function _e(e){return e&&Array.isArray(e)}function v(e){return typeof e=="function"}function I(e,o="default",n,r){if(!e||!Reflect.has(e,o))return null;if(!v(e[o]))return console.error(`${o} is not a function!`),null;const i=e[o];if(!i)return null;const a={...n,...r};return i(a)}function be(e){return(e||"").replace(/^[\s\uFEFF]+|[\s\uFEFF]+$/g,"")}function Y(e,o){if(!e||!o)return!1;if(o.indexOf(" ")!==-1)throw new Error("className should not contain space.");return e.classList?e.classList.contains(o):(" "+e.className+" ").indexOf(" "+o+" ")>-1}function J(e,o){if(!e)return;let n=e.className;const r=(o||"").split(" ");for(let i=0,a=r.length;i<a;i++){const s=r[i];s&&(e.classList?e.classList.add(s):Y(e,s)||(n+=" "+s))}e.classList||(e.className=n)}function U(e,o){if(!e||!o)return;const n=o.split(" ");let r=" "+e.className+" ";for(let i=0,a=n.length;i<a;i++){const s=n[i];s&&(e.classList?e.classList.remove(s):Y(e,s)&&(r=r.replace(" "+s+" "," ")))}e.classList||(e.className=be(r))}for(let e=0;e<=15;e++)e.toString(16);/*!
 * is-plain-object <https://github.com/jonschlinkert/is-plain-object>
 *
 * Copyright (c) 2014-2017, Jon Schlinkert.
 * Released under the MIT License.
 */function K(e){return Object.prototype.toString.call(e)==="[object Object]"}function $e(e){var o,n;return K(e)===!1?!1:(o=e.constructor,o===void 0?!0:(n=o.prototype,!(K(n)===!1||n.hasOwnProperty("isPrototypeOf")===!1)))}function N(){return N=Object.assign?Object.assign.bind():function(e){for(var o=1;o<arguments.length;o++){var n=arguments[o];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},N.apply(this,arguments)}function Q(e,o){if(e==null)return{};var n,r,i={},a=Object.keys(e);for(r=0;r<a.length;r++)o.indexOf(n=a[r])>=0||(i[n]=e[n]);return i}const F={silent:!1,logLevel:"warn"},we=["validator"],X=Object.prototype,Z=X.toString,Oe=X.hasOwnProperty,ee=/^\s*function (\w+)/;function te(e){var o;const n=(o=e==null?void 0:e.type)!==null&&o!==void 0?o:e;if(n){const r=n.toString().match(ee);return r?r[1]:""}return""}const b=$e,ne=e=>e;let p=ne;process.env.NODE_ENV!=="production"&&(p=typeof console<"u"?function(o,n=F.logLevel){F.silent===!1&&console[n](`[VueTypes warn]: ${o}`)}:ne);const O=(e,o)=>Oe.call(e,o),Se=Number.isInteger||function(e){return typeof e=="number"&&isFinite(e)&&Math.floor(e)===e},S=Array.isArray||function(e){return Z.call(e)==="[object Array]"},C=e=>Z.call(e)==="[object Function]",k=e=>b(e)&&O(e,"_vueTypes_name"),oe=e=>b(e)&&(O(e,"type")||["_vueTypes_name","validator","default","required"].some(o=>O(e,o)));function D(e,o){return Object.defineProperty(e.bind(o),"__original",{value:e})}function $(e,o,n=!1){let r,i=!0,a="";r=b(e)?e:{type:e};const s=k(r)?r._vueTypes_name+" - ":"";if(oe(r)&&r.type!==null){if(r.type===void 0||r.type===!0||!r.required&&o===void 0)return i;S(r.type)?(i=r.type.some(l=>$(l,o,!0)===!0),a=r.type.map(l=>te(l)).join(" or ")):(a=te(r),i=a==="Array"?S(o):a==="Object"?b(o):a==="String"||a==="Number"||a==="Boolean"||a==="Function"?function(l){if(l==null)return"";const c=l.constructor.toString().match(ee);return c?c[1]:""}(o)===a:o instanceof r.type)}if(!i){const l=`${s}value "${o}" should be of type "${a}"`;return n===!1?(p(l),!1):l}if(O(r,"validator")&&C(r.validator)){const l=p,c=[];if(p=d=>{c.push(d)},i=r.validator(o),p=l,!i){const d=(c.length>1?"* ":"")+c.join(`
* `);return c.length=0,n===!1?(p(d),i):d}}return i}function m(e,o){const n=Object.defineProperties(o,{_vueTypes_name:{value:e,writable:!0},isRequired:{get(){return this.required=!0,this}},def:{value(i){return i===void 0?(O(this,"default")&&delete this.default,this):C(i)||$(this,i,!0)===!0?(this.default=S(i)?()=>[...i]:b(i)?()=>Object.assign({},i):i,this):(p(`${this._vueTypes_name} - invalid default value: "${i}"`),this)}}}),{validator:r}=n;return C(r)&&(n.validator=D(r,n)),n}function g(e,o){const n=m(e,o);return Object.defineProperty(n,"validate",{value(r){return C(this.validator)&&p(`${this._vueTypes_name} - calling .validate() will overwrite the current custom validator function. Validator info:
${JSON.stringify(this)}`),this.validator=D(r,this),this}})}function re(e,o,n){const r=function(c){const d={};return Object.getOwnPropertyNames(c).forEach(f=>{d[f]=Object.getOwnPropertyDescriptor(c,f)}),Object.defineProperties({},d)}(o);if(r._vueTypes_name=e,!b(n))return r;const{validator:i}=n,a=Q(n,we);if(C(i)){let{validator:c}=r;c&&(c=(l=(s=c).__original)!==null&&l!==void 0?l:s),r.validator=D(c?function(d){return c.call(this,d)&&i.call(this,d)}:i,r)}var s,l;return Object.assign(r,a)}function E(e){return e.replace(/^(?!\s*$)/gm,"  ")}const Ce=()=>g("any",{}),Be=()=>g("function",{type:Function}),Te=()=>g("boolean",{type:Boolean}),xe=()=>g("string",{type:String}),je=()=>g("number",{type:Number}),ve=()=>g("array",{type:Array}),Ne=()=>g("object",{type:Object}),ke=()=>m("integer",{type:Number,validator:e=>Se(e)}),Ee=()=>m("symbol",{validator:e=>typeof e=="symbol"});function Pe(e,o="custom validation failed"){if(typeof e!="function")throw new TypeError("[VueTypes error]: You must provide a function as argument");return m(e.name||"<<anonymous function>>",{type:null,validator(n){const r=e(n);return r||p(`${this._vueTypes_name} - ${o}`),r}})}function ze(e){if(!S(e))throw new TypeError("[VueTypes error]: You must provide an array as argument.");const o=`oneOf - value should be one of "${e.join('", "')}".`,n=e.reduce((r,i)=>{if(i!=null){const a=i.constructor;r.indexOf(a)===-1&&r.push(a)}return r},[]);return m("oneOf",{type:n.length>0?n:void 0,validator(r){const i=e.indexOf(r)!==-1;return i||p(o),i}})}function Ve(e){if(!S(e))throw new TypeError("[VueTypes error]: You must provide an array as argument");let o=!1,n=[];for(let i=0;i<e.length;i+=1){const a=e[i];if(oe(a)){if(k(a)&&a._vueTypes_name==="oneOf"&&a.type){n=n.concat(a.type);continue}if(C(a.validator)&&(o=!0),a.type===!0||!a.type){p('oneOfType - invalid usage of "true" or "null" as types.');continue}n=n.concat(a.type)}else n.push(a)}n=n.filter((i,a)=>n.indexOf(i)===a);const r=n.length>0?n:null;return m("oneOfType",o?{type:r,validator(i){const a=[],s=e.some(l=>{const c=$(k(l)&&l._vueTypes_name==="oneOf"?l.type||null:l,i,!0);return typeof c=="string"&&a.push(c),c===!0});return s||p(`oneOfType - provided value does not match any of the ${a.length} passed-in validators:
${E(a.join(`
`))}`),s}}:{type:r})}function Ae(e){return m("arrayOf",{type:Array,validator(o){let n="";const r=o.every(i=>(n=$(e,i,!0),n===!0));return r||p(`arrayOf - value validation error:
${E(n)}`),r}})}function Le(e){return m("instanceOf",{type:e})}function Ie(e){return m("objectOf",{type:Object,validator(o){let n="";const r=Object.keys(o).every(i=>(n=$(e,o[i],!0),n===!0));return r||p(`objectOf - value validation error:
${E(n)}`),r}})}function Fe(e){const o=Object.keys(e),n=o.filter(i=>{var a;return!((a=e[i])===null||a===void 0||!a.required)}),r=m("shape",{type:Object,validator(i){if(!b(i))return!1;const a=Object.keys(i);if(n.length>0&&n.some(s=>a.indexOf(s)===-1)){const s=n.filter(l=>a.indexOf(l)===-1);return p(s.length===1?`shape - required property "${s[0]}" is not defined.`:`shape - required properties "${s.join('", "')}" are not defined.`),!1}return a.every(s=>{if(o.indexOf(s)===-1)return this._vueTypes_isLoose===!0||(p(`shape - shape definition does not include a "${s}" property. Allowed keys: "${o.join('", "')}".`),!1);const l=$(e[s],i[s],!0);return typeof l=="string"&&p(`shape - "${s}" property validation error:
 ${E(l)}`),l===!0})}});return Object.defineProperty(r,"_vueTypes_isLoose",{writable:!0,value:!1}),Object.defineProperty(r,"loose",{get(){return this._vueTypes_isLoose=!0,this}}),r}const De=["name","validate","getter"],qe=(()=>{var e;return(e=class{static get any(){return Ce()}static get func(){return Be().def(this.defaults.func)}static get bool(){return Te().def(this.defaults.bool)}static get string(){return xe().def(this.defaults.string)}static get number(){return je().def(this.defaults.number)}static get array(){return ve().def(this.defaults.array)}static get object(){return Ne().def(this.defaults.object)}static get integer(){return ke().def(this.defaults.integer)}static get symbol(){return Ee()}static get nullable(){return{type:null}}static extend(o){if(S(o))return o.forEach(c=>this.extend(c)),this;const{name:n,validate:r=!1,getter:i=!1}=o,a=Q(o,De);if(O(this,n))throw new TypeError(`[VueTypes error]: Type "${n}" already defined`);const{type:s}=a;if(k(s))return delete a.type,Object.defineProperty(this,n,i?{get:()=>re(n,s,a)}:{value(...c){const d=re(n,s,a);return d.validator&&(d.validator=d.validator.bind(d,...c)),d}});let l;return l=i?{get(){const c=Object.assign({},a);return r?g(n,c):m(n,c)},enumerable:!0}:{value(...c){const d=Object.assign({},a);let f;return f=r?g(n,d):m(n,d),d.validator&&(f.validator=d.validator.bind(f,...c)),f},enumerable:!0},Object.defineProperty(this,n,l)}}).defaults={},e.sensibleDefaults=void 0,e.config=F,e.custom=Pe,e.oneOf=ze,e.instanceOf=Le,e.oneOfType=Ve,e.arrayOf=Ae,e.objectOf=Ie,e.shape=Fe,e.utils={validate:(o,n)=>$(n,o,!0)===!0,toType:(o,n,r=!1)=>r?g(o,n):m(o,n)},e})();function se(e={func:()=>{},bool:!0,string:"",number:0,array:()=>[],object:()=>({}),integer:0}){var o;return(o=class extends qe{static get sensibleDefaults(){return N({},this.defaults)}static set sensibleDefaults(n){this.defaults=n!==!1?N({},n!==!0?n:e):{}}}).defaults=N({},e),o}class St extends se(){}se({func:void 0,bool:void 0,string:void 0,number:void 0,object:void 0,integer:void 0}).extend([{name:"style",getter:!0,type:[String,Object],default:void 0},{name:"VNodeChild",getter:!0,type:void 0}]);function ie(e,o,n="in-out"){return t.defineComponent({name:e,props:{mode:{type:String,default:n}},setup(r,{attrs:i,slots:a}){return()=>t.createVNode(t.Transition,t.mergeProps({name:e,mode:r.mode},i,{onBeforeEnter:o.beforeEnter,onEnter:o.enter,onLeave:o.leave,onAfterLeave:o.afterLeave,onLeaveCancelled:o.afterLeave}),{default:()=>I(a)})}})}function Me(e){return e.charAt(0).toUpperCase()+e.slice(1)}function ae(e="",o=!1){const n=o?"width":"height",r=`offset${Me(n)}`;function i(s){const l=s._initialStyle[n];s.style.overflow=s._initialStyle.overflow,l!=null&&(s.style[n]=l),Reflect.deleteProperty(s,"_initialStyle")}function a(s){e&&s._parent&&s._parent.classList.remove(e),i(s)}return{beforeEnter(s){s._parent=s==null?void 0:s.parentNode,s._initialStyle={transition:s.style.transition,overflow:s.style.overflow,[n]:s.style[n]}},enter(s){const l=s._initialStyle;s.style.setProperty("transition","none","important"),s.style.overflow="hidden",s.offsetHeight,s.style.transition=l.transition,e&&s._parent&&s._parent.classList.add(e),requestAnimationFrame(()=>{})},afterEnter:i,enterCancelled:i,leave(s){s._initialStyle={transition:"",overflow:s.style.overflow,[n]:s.style[n]},s.style.overflow="hidden",s.style[n]=`${s[r]}px`,s.offsetHeight,requestAnimationFrame(()=>s.style[n]="0")},afterLeave:a,leaveCancelled:a}}const Re=t.defineComponent({name:"CollapseTransition",setup(){return{on:{beforeEnter(e){J(e,"collapse-transition"),e.dataset||(e.dataset={}),e.dataset.oldPaddingTop=e.style.paddingTop,e.dataset.oldPaddingBottom=e.style.paddingBottom,e.style.height="0",e.style.paddingTop=0,e.style.paddingBottom=0},enter(e){e.dataset.oldOverflow=e.style.overflow,e.scrollHeight!==0?(e.style.height=e.scrollHeight+"px",e.style.paddingTop=e.dataset.oldPaddingTop,e.style.paddingBottom=e.dataset.oldPaddingBottom):(e.style.height="",e.style.paddingTop=e.dataset.oldPaddingTop,e.style.paddingBottom=e.dataset.oldPaddingBottom),e.style.overflow="hidden"},afterEnter(e){U(e,"collapse-transition"),e.style.height="",e.style.overflow=e.dataset.oldOverflow},beforeLeave(e){e.dataset||(e.dataset={}),e.dataset.oldPaddingTop=e.style.paddingTop,e.dataset.oldPaddingBottom=e.style.paddingBottom,e.dataset.oldOverflow=e.style.overflow,e.style.height=e.scrollHeight+"px",e.style.overflow="hidden"},leave(e){e.scrollHeight!==0&&(J(e,"collapse-transition"),e.style.height=0,e.style.paddingTop=0,e.style.paddingBottom=0)},afterLeave(e){U(e,"collapse-transition"),e.style.height="",e.style.overflow=e.dataset.oldOverflow,e.style.paddingTop=e.dataset.oldPaddingTop,e.style.paddingBottom=e.dataset.oldPaddingBottom}}}}}),P=(e,o)=>{const n=e.__vccOpts||e;for(const[r,i]of o)n[r]=i;return n};function He(e,o,n,r,i,a){return t.openBlock(),t.createBlock(t.Transition,t.mergeProps({mode:"out-in"},t.toHandlers(e.on)),{default:t.withCtx(()=>[t.renderSlot(e.$slots,"default")]),_:3},16)}const We=P(Re,[["render",He]]);ie("expand-x-transition",ae("",!0)),ie("expand-transition",ae(""));const le="g";function z(e,o,n){let r=e;return o&&(r+=`__${o}`),n&&(r+=`--${n}`),r}function B(e,o=!1){const n=o?`.${le}-${e}`:`${le}-${e}`;return{b:()=>z(n),e:l=>l?z(n,l):"",m:l=>l?z(n,"",l):"",em:(l,c)=>l&&c?z(n,l,c):""}}const Ge=t.defineComponent({name:`${L}SvgIcon`,props:{prefix:{type:String,default:"icon"},name:{type:String,required:!0},size:{type:[Number,String],default:16},spin:{type:Boolean,default:!1}},setup(e){const n=B("svg-icon").b(),r=t.computed(()=>`#${e.prefix}-${e.name}`),i=t.computed(()=>{const{size:a}=e;let s=`${a}`;return s=`${s.replace("px","")}px`,{width:s,height:s}});return{symbolId:r,prefixCls:n,getStyle:i}}}),Bt="",Ye=["xlink:href"];function Je(e,o,n,r,i,a){return t.openBlock(),t.createElementBlock("svg",{class:t.normalizeClass([e.prefixCls,e.$attrs.class,e.spin&&"svg-icon-spin"]),style:t.normalizeStyle(e.getStyle),"aria-hidden":"true"},[t.createElementVNode("use",{"xlink:href":e.symbolId},null,8,Ye)],6)}const Ue=P(Ge,[["render",Je]]),ce="|svg",Ke=t.defineComponent({name:`${L}Icon`,components:{SvgIcon:Ue},props:{icon:String,color:String,size:{type:[String,Number],default:16},spin:{type:Boolean,default:!1},prefix:{type:String,default:""}},setup(e){const o=t.ref(null),n=t.computed(()=>{var l;return(l=e.icon)==null?void 0:l.endsWith(ce)}),r=t.computed(()=>e.icon.replace(ce,"")),i=t.computed(()=>`${e.prefix?e.prefix+":":""}${e.icon}`),a=async()=>{if(t.unref(n))return;const l=t.unref(o);if(!l)return;await t.nextTick();const c=t.unref(i);if(!c)return;const d=ue.renderSVG(c,{});if(d)l.textContent="",l.appendChild(d);else{const f=document.createElement("span");f.className="iconify",f.dataset.icon=c,l.textContent="",l.appendChild(f)}},s=t.computed(()=>{const{size:l,color:c}=e;let d=l;return G(l)&&(d=parseInt(l,10)),{fontSize:`${d}px`,color:c,display:"inline-flex"}});return t.watch(()=>e.icon,a,{flush:"post"}),t.onMounted(a),{elRef:o,getWrapStyle:s,isSvgIcon:n,getSvgIcon:r}}}),Tt="";function Qe(e,o,n,r,i,a){const s=t.resolveComponent("SvgIcon");return e.isSvgIcon?(t.openBlock(),t.createBlock(s,{key:0,size:e.size,name:e.getSvgIcon,class:t.normalizeClass([e.$attrs.class,"anticon"]),spin:e.spin},null,8,["size","name","class","spin"])):(t.openBlock(),t.createElementBlock("span",{key:1,ref:"elRef",class:t.normalizeClass([e.$attrs.class,"app-iconify anticon",e.spin&&"app-iconify-spin"]),style:t.normalizeStyle(e.getWrapStyle)},null,6))}const V=P(Ke,[["render",Qe]]);V.install=function(e,o){e.component(o||V.name,V)};const Xe=t.defineComponent({__name:"BasicArrow",props:{expand:{type:Boolean},up:{type:Boolean},down:{type:Boolean},inset:{type:Boolean}},setup(e){const o=e,r=B("basic-arrow").b(),i=t.computed(()=>{const{expand:a,up:s,down:l,inset:c}=o;return[r,{[`${r}--active`]:a,up:s,inset:c,down:l}]});return(a,s)=>(t.openBlock(),t.createElementBlock("span",{class:t.normalizeClass(i.value)},[t.createVNode(t.unref(V),{icon:"ion:chevron-forward",style:t.normalizeStyle(a.$attrs.iconStyle)},null,8,["style"])],2))}}),xt="",Ze={maxWidth:{type:String,default:"600px"},showIndex:{type:Boolean},color:{type:String,default:"#ffffff"},fontSize:{type:String,default:"14px"},placement:{type:String,default:"right"},text:{type:[Array,String]}},et=t.defineComponent({name:"BasicHelp",components:{Tooltip:j.Tooltip},props:Ze,setup(e,{slots:o}){const r=B("basic-help").b(),i=t.computed(()=>({color:e.color,fontSize:e.fontSize})),a=t.computed(()=>({maxWidth:e.maxWidth}));function s(){const c=e.text;return G(c)?t.createVNode("p",null,[c]):_e(c)?c.map((d,f)=>t.createVNode("p",{key:d},[t.createVNode(t.Fragment,null,[e.showIndex?`${f+1}. `:"",d])])):null}function l(c){return(c==null?void 0:c.parentNode)??document.body}return()=>t.createVNode(j.Tooltip,{overlayClassName:`${r}__wrap`,title:t.createVNode("div",{style:t.unref(i)},[s()]),autoAdjustOverflow:!0,overlayStyle:t.unref(a),placement:e.placement,getPopupContainer:()=>l()},{default:()=>[t.createVNode("span",{class:r},[I(o)||t.createVNode(ye.InfoCircleOutlined,null,null)])]})}}),jt="",tt=t.defineComponent({__name:"BasicTitle",props:{helpMessage:{type:[String,Array],default:""},span:{type:Boolean},normal:{type:Boolean}},setup(e){const o=B("basic-title"),n=e,r=o.b(),i=t.useSlots(),a=t.computed(()=>[r,{[`${r}-show-span`]:n.span&&i.default},{[`${r}-normal`]:n.normal}]);return(s,l)=>(t.openBlock(),t.createElementBlock("span",{class:t.normalizeClass(a.value)},[t.renderSlot(s.$slots,"default"),e.helpMessage?(t.openBlock(),t.createBlock(et,{key:0,class:t.normalizeClass(`${t.unref(r)}-help`),text:e.helpMessage},null,8,["class","text"])):t.createCommentVNode("",!0)],2))}}),vt="",nt={prefixCls:{type:String},helpMessage:{type:[Array,String],default:""},title:{type:String},show:{type:Boolean},canExpan:{type:Boolean}},ot=t.defineComponent({components:{BasicArrow:Xe,BasicTitle:tt},inheritAttrs:!1,props:nt,emits:["expand"]}),Nt="";function rt(e,o,n,r,i,a){const s=t.resolveComponent("BasicTitle"),l=t.resolveComponent("BasicArrow");return t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass([`${e.prefixCls}__header px-2 py-5`,e.$attrs.class])},[t.createVNode(s,{helpMessage:e.helpMessage,normal:""},{default:t.withCtx(()=>[e.title?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode(t.toDisplayString(e.title),1)],64)):t.renderSlot(e.$slots,"title",{key:1})]),_:3},8,["helpMessage"]),t.createElementVNode("div",{class:t.normalizeClass(`${e.prefixCls}__action`)},[t.renderSlot(e.$slots,"action"),e.canExpan?(t.openBlock(),t.createBlock(l,{key:0,up:"",expand:e.show,onClick:o[0]||(o[0]=c=>e.$emit("expand"))},null,8,["expand"])):t.createCommentVNode("",!0)],2)],2)}const st=P(ot,[["render",rt]]);function it(){const e=document.createEvent("HTMLEvents");e.initEvent("resize",!0,!0),e.eventType="message",window.dispatchEvent(e)}function at(e){const o=t.ref(!1);let n;function r(){o.value=!1,n&&window.clearTimeout(n)}function i(){r(),n=setTimeout(()=>{o.value=!0},e)}return i(),me.tryOnUnmounted(r),{readyRef:o,stop:r,start:i}}function lt(e,o,n=!1){if(!v(e))throw new Error("handle is not Function!");const{readyRef:r,stop:i,start:a}=at(o);return n?e():t.watch(r,s=>{s&&e()},{immediate:!1}),{readyRef:r,stop:i,start:a}}const ct={class:"p-2"},dt={name:"GCollapseContainer"},A=t.defineComponent({...dt,props:{title:{type:String,default:""},loading:{type:Boolean},canExpan:{type:Boolean,default:!0},helpMessage:{type:[Array,String],default:""},triggerWindowResize:{type:Boolean},lazyTime:{type:Number,default:0}},setup(e,{expose:o}){const n=e,r=t.ref(!0),i=B("collapse-container").b();function a(s){r.value=W.isNil(s)?!r.value:s,n.triggerWindowResize&&lt(it,200)}return o({handleExpand:a}),(s,l)=>(t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(t.unref(i))},[t.createVNode(st,t.mergeProps(n,{prefixCls:t.unref(i),show:r.value,onExpand:a}),{title:t.withCtx(()=>[t.renderSlot(s.$slots,"title")]),action:t.withCtx(()=>[t.renderSlot(s.$slots,"action")]),_:3},16,["prefixCls","show"]),t.createElementVNode("div",ct,[t.createVNode(t.unref(We),{enable:e.canExpan},{default:t.withCtx(()=>[e.loading?(t.openBlock(),t.createBlock(t.unref(j.Skeleton),{key:0,active:e.loading},null,8,["active"])):t.withDirectives((t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(`${t.unref(i)}__body`)},[t.renderSlot(s.$slots,"default")],2)),[[t.vShow,r.value]])]),_:3},8,["enable"])]),s.$slots.footer?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(`${t.unref(i)}__footer`)},[t.renderSlot(s.$slots,"footer")],2)):t.createCommentVNode("",!0)],2))}}),kt="";A.install=function(e,o){e.component(o||A.name,A)};function pt(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!t.isVNode(e)}const ft={useCollapse:{type:Boolean,default:!0},title:{type:String,default:""},size:{type:String,validator:e=>["small","default","middle",void 0].includes(e),default:"small"},bordered:{type:Boolean,default:!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:{type:Object}},T=t.defineComponent({name:`${L}Description`,props:ft,emits:["register"],setup(e,{slots:o,emit:n,attrs:r}){const i=t.ref(null),a=B("description").b(),s=t.computed(()=>({...e,...t.unref(i)})),l=t.computed(()=>({...t.unref(s),title:void 0})),c=t.computed(()=>!!t.unref(s).title),d=t.computed(()=>({canExpand:!1,...t.unref(l).collapseOptions})),f=t.computed(()=>({...t.unref(r),...t.unref(l)}));function mt(y){i.value={...t.unref(i),...y}}function gt({label:y,labelMinWidth:x,labelStyle:h}){if(!h&&!x)return y;const _={...h,minWidth:`${x}px `};return t.createVNode("div",{style:_},[y])}function ht(){const{schema:y,data:x}=t.unref(l);return t.unref(y).map(h=>{const{render:_,field:M,span:bt,show:R,contentMinWidth:de}=h;if(R&&v(R)&&!R(x))return null;const pe=()=>{var fe;const w=(fe=t.unref(l))==null?void 0:fe.data;if(!w)return null;const H=W.get(w,M);return H&&!t.toRefs(w).hasOwnProperty(M)?v(_)?_("",w):"":v(_)?_(H,w):H??""},$t=de;return t.createVNode(j.Descriptions.Item,{label:gt(h),key:M,span:bt},{default:()=>{if(!de)return pe();const w={minWidth:`${$t}px`};return t.createVNode("div",{style:w},[pe()])}})}).filter(h=>!!h)}const q=()=>{let y;return t.createVNode(j.Descriptions,t.mergeProps({class:`${a}`},t.unref(f)),pt(y=ht())?y:{default:()=>[y]})},_t=()=>{const y=e.useCollapse?q():t.createVNode("div",null,[q()]);if(!e.useCollapse)return y;const{canExpand:x,helpMessage:h}=t.unref(d),{title:_}=t.unref(s);return t.createVNode(A,{title:_,canExpan:x,helpMessage:h},{default:()=>y,action:()=>I(o,"action")})};return n("register",{setDescProps:mt}),()=>t.unref(c)?_t():q()}});function ut(e){if(!t.getCurrentInstance())throw new Error("useDescription() can only be used inside setup() or functional components!");const o=t.ref(null),n=t.ref(!1);function r(a){t.unref(n)||(o.value=a,e&&a.setDescProps(e),n.value=!0)}return[r,{setDescProps:a=>{var s;(s=t.unref(o))==null||s.setDescProps(a)}}]}T.install=function(e,o){e.component(o||T.name,T)};const yt={title:"Description 描述列表",category:"数据描述",status:"100%",install(e){e.component(T.name,T)}};u.Description=T,u.default=yt,u.useDescription=ut,Object.defineProperties(u,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
