import{bF as O,bG as N,bH as H,bI as F,F as L,bJ as K,bK as U,bL as W,bM as q,br as G,bN as Q,aQ as Z,aC as X,bO as J,bP as Y,bQ as ee,bR as oe,bS as te,bT as se,b8 as re,bU as ae,z as A,bV as ne,B as ie,K as le,c as ce,a as de,bW as pe,bX as be,bY as he,bZ as ge,b_ as me,b$ as ue,i as fe,f as ve,c0 as Se,c1 as ye,d as E,c2 as we,c3 as Ce,c4 as xe,c5 as Re,c6 as ze,c7 as Pe,c8 as Te,c9 as Me,ca as $e,cb as _e,cc as Ae,b0 as Ee,cd as ke,ce as Be,cf as De,h as r,cg as Ve,ch as Ie,ci as je,cj as Oe,ck as Ne,aZ as He,cl as Fe,cm as Le,cn as Ke,co as Ue,ar as We,cp as qe,cq as Ge,cr as Qe,cs as Ze,ct as Xe,cu as Je,aH as Ye,A as eo,cv as oo,cw as to,s as so,cx as ro,cy as ao,e as no,cz as io,cA as lo,cB as co,au as po,cC as bo,cD as ho,cE as go,cF as mo,at as uo,cG as fo,o as vo,M as So,b4 as yo,cH as wo,L as Co,cI as xo,r as Ro,cJ as zo,b as Po,cK as To,cL as Mo,q as $o,cM as _o,cN as Ao,cO as Eo,cP as ko,cQ as Bo,cR as Do,cS as Vo,cT as Io,cU as jo,cV as Oo,cW as No,cX as Ho,cY as Fo,cZ as Lo,c_ as Ko,t as Uo,c$ as Wo,d0 as qo,E as Go,a8 as Qo,d1 as Zo,d2 as Xo,d3 as Jo,d4 as Yo,g as et,d5 as ot,d6 as tt,d7 as st,d8 as rt,d9 as at,da as nt,db as it,dc as lt,dd as ct,de as dt,df as pt,dg as bt,D as ht,dh as gt,di as mt,I as ut,bg as ft,dj as vt,dk as St,dl as yt,w as wt,dm as Ct,C as xt,dn as Rt,dp as zt,dq as Pt,dr as Tt,R as c,Q as e,V as Mt,W as R,S as D,av as $t,aw as _t,T as At,X as I,a2 as _,Z as Et,bj as kt,b7 as Bt,ds as Dt,dt as Vt}from"./index-bb1600c6.js";import{g as It}from"./get-slot-1efb97e5.js";const jt=()=>{},Ot=Object.freeze(Object.defineProperty({__proto__:null,BaseTransition:O,BaseTransitionPropsValidators:N,Comment:H,EffectScope:F,Fragment:L,KeepAlive:K,ReactiveEffect:U,Static:W,Suspense:q,Teleport:G,Text:Q,Transition:Z,TransitionGroup:X,VueElement:J,assertNumber:Y,callWithAsyncErrorHandling:ee,callWithErrorHandling:oe,camelize:te,capitalize:se,cloneVNode:re,compatUtils:ae,compile:jt,computed:A,createApp:ne,createBlock:ie,createCommentVNode:le,createElementBlock:ce,createElementVNode:de,createHydrationRenderer:pe,createPropsRestProxy:be,createRenderer:he,createSSRApp:ge,createSlots:me,createStaticVNode:ue,createTextVNode:fe,createVNode:ve,customRef:Se,defineAsyncComponent:ye,defineComponent:E,defineCustomElement:we,defineEmits:Ce,defineExpose:xe,defineModel:Re,defineOptions:ze,defineProps:Pe,defineSSRCustomElement:Te,defineSlots:Me,get devtools(){return $e},effect:_e,effectScope:Ae,getCurrentInstance:Ee,getCurrentScope:ke,getTransitionRawChildren:Be,guardReactiveProps:De,h:r,handleError:Ve,hasInjectionContext:Ie,hydrate:je,initCustomFormatter:Oe,initDirectivesForSSR:Ne,inject:He,isMemoSame:Fe,isProxy:Le,isReactive:Ke,isReadonly:Ue,isRef:We,isRuntimeOnly:qe,isShallow:Ge,isVNode:Qe,markRaw:Ze,mergeDefaults:Xe,mergeModels:Je,mergeProps:Ye,nextTick:eo,normalizeClass:oo,normalizeProps:to,normalizeStyle:so,onActivated:ro,onBeforeMount:ao,onBeforeUnmount:no,onBeforeUpdate:io,onDeactivated:lo,onErrorCaptured:co,onMounted:po,onRenderTracked:bo,onRenderTriggered:ho,onScopeDispose:go,onServerPrefetch:mo,onUnmounted:uo,onUpdated:fo,openBlock:vo,popScopeId:So,provide:yo,proxyRefs:wo,pushScopeId:Co,queuePostFlushCb:xo,reactive:Ro,readonly:zo,ref:Po,registerRuntimeCompiler:To,render:Mo,renderList:$o,renderSlot:_o,resolveComponent:Ao,resolveDirective:Eo,resolveDynamicComponent:ko,resolveFilter:Bo,resolveTransitionHooks:Do,setBlockTracking:Vo,setDevtoolsHook:Io,setTransitionHooks:jo,shallowReactive:Oo,shallowReadonly:No,shallowRef:Ho,ssrContextKey:Fo,ssrUtils:Lo,stop:Ko,toDisplayString:Uo,toHandlerKey:Wo,toHandlers:qo,toRaw:Go,toRef:Qo,toRefs:Zo,toValue:Xo,transformVNodeArgs:Jo,triggerRef:Yo,unref:et,useAttrs:ot,useCssModule:tt,useCssVars:st,useModel:rt,useSSRContext:at,useSlots:nt,useTransitionState:it,vModelCheckbox:lt,vModelDynamic:ct,vModelRadio:dt,vModelSelect:pt,vModelText:bt,vShow:ht,version:gt,warn:mt,watch:ut,watchEffect:ft,watchPostEffect:vt,watchSyncEffect:St,withAsyncContext:yt,withCtx:wt,withDefaults:Ct,withDirectives:xt,withKeys:Rt,withMemo:zt,withModifiers:Pt,withScopeId:Tt},Symbol.toStringTag,{value:"Module"}));function V(s,p="default",a=[]){const{children:n}=s;if(n!==null&&typeof n=="object"&&!Array.isArray(n)){const b=n[p];if(typeof b=="function")return b()}return a}const j="DESCRIPTION_ITEM_FLAG";function Nt(s){return typeof s=="object"&&s&&!Array.isArray(s)?s.type&&s.type[j]:!1}const Ht=c([e("descriptions",{fontSize:"var(--n-font-size)"},[e("descriptions-separator",`
 display: inline-block;
 margin: 0 8px 0 2px;
 `),e("descriptions-table-wrapper",[e("descriptions-table",[e("descriptions-table-row",[e("descriptions-table-header",{padding:"var(--n-th-padding)"}),e("descriptions-table-content",{padding:"var(--n-td-padding)"})])])]),Mt("bordered",[e("descriptions-table-wrapper",[e("descriptions-table",[e("descriptions-table-row",[c("&:last-child",[e("descriptions-table-content",{paddingBottom:0})])])])])]),R("left-label-placement",[e("descriptions-table-content",[c("> *",{verticalAlign:"top"})])]),R("left-label-align",[c("th",{textAlign:"left"})]),R("center-label-align",[c("th",{textAlign:"center"})]),R("right-label-align",[c("th",{textAlign:"right"})]),R("bordered",[e("descriptions-table-wrapper",`
 border-radius: var(--n-border-radius);
 overflow: hidden;
 background: var(--n-merged-td-color);
 border: 1px solid var(--n-merged-border-color);
 `,[e("descriptions-table",[e("descriptions-table-row",[c("&:not(:last-child)",[e("descriptions-table-content",{borderBottom:"1px solid var(--n-merged-border-color)"}),e("descriptions-table-header",{borderBottom:"1px solid var(--n-merged-border-color)"})]),e("descriptions-table-header",`
 font-weight: 400;
 background-clip: padding-box;
 background-color: var(--n-merged-th-color);
 `,[c("&:not(:last-child)",{borderRight:"1px solid var(--n-merged-border-color)"})]),e("descriptions-table-content",[c("&:not(:last-child)",{borderRight:"1px solid var(--n-merged-border-color)"})])])])])]),e("descriptions-header",`
 font-weight: var(--n-th-font-weight);
 font-size: 18px;
 transition: color .3s var(--n-bezier);
 line-height: var(--n-line-height);
 margin-bottom: 16px;
 color: var(--n-title-text-color);
 `),e("descriptions-table-wrapper",`
 transition:
 background-color .3s var(--n-bezier),
 border-color .3s var(--n-bezier);
 `,[e("descriptions-table",`
 width: 100%;
 border-collapse: separate;
 border-spacing: 0;
 box-sizing: border-box;
 `,[e("descriptions-table-row",`
 box-sizing: border-box;
 transition: border-color .3s var(--n-bezier);
 `,[e("descriptions-table-header",`
 font-weight: var(--n-th-font-weight);
 line-height: var(--n-line-height);
 display: table-cell;
 box-sizing: border-box;
 color: var(--n-th-text-color);
 transition:
 color .3s var(--n-bezier),
 background-color .3s var(--n-bezier),
 border-color .3s var(--n-bezier);
 `),e("descriptions-table-content",`
 vertical-align: top;
 line-height: var(--n-line-height);
 display: table-cell;
 box-sizing: border-box;
 color: var(--n-td-text-color);
 transition:
 color .3s var(--n-bezier),
 background-color .3s var(--n-bezier),
 border-color .3s var(--n-bezier);
 `,[D("content",`
 transition: color .3s var(--n-bezier);
 display: inline-block;
 color: var(--n-td-text-color);
 `)]),D("label",`
 font-weight: var(--n-th-font-weight);
 transition: color .3s var(--n-bezier);
 display: inline-block;
 margin-right: 14px;
 color: var(--n-th-text-color);
 `)])])])]),e("descriptions-table-wrapper",`
 --n-merged-th-color: var(--n-th-color);
 --n-merged-td-color: var(--n-td-color);
 --n-merged-border-color: var(--n-border-color);
 `),$t(e("descriptions-table-wrapper",`
 --n-merged-th-color: var(--n-th-color-modal);
 --n-merged-td-color: var(--n-td-color-modal);
 --n-merged-border-color: var(--n-border-color-modal);
 `)),_t(e("descriptions-table-wrapper",`
 --n-merged-th-color: var(--n-th-color-popover);
 --n-merged-td-color: var(--n-td-color-popover);
 --n-merged-border-color: var(--n-border-color-popover);
 `))]),Ft=Object.assign(Object.assign({},I.props),{title:String,column:{type:Number,default:3},columns:Number,labelPlacement:{type:String,default:"top"},labelAlign:{type:String,default:"left"},separator:{type:String,default:":"},size:{type:String,default:"medium"},bordered:Boolean,labelStyle:[Object,String],contentStyle:[Object,String]}),Wt=E({name:"Descriptions",props:Ft,setup(s){const{mergedClsPrefixRef:p,inlineThemeDisabled:a}=At(s),n=I("Descriptions","-descriptions",Ht,Dt,s,p),b=A(()=>{const{size:i,bordered:h}=s,{common:{cubicBezierEaseInOut:u},self:{titleTextColor:t,thColor:z,thColorModal:f,thColorPopover:P,thTextColor:T,thFontWeight:k,tdTextColor:M,tdColor:o,tdColorModal:v,tdColorPopover:$,borderColor:l,borderColorModal:g,borderColorPopover:S,borderRadius:y,lineHeight:m,[_("fontSize",i)]:w,[_(h?"thPaddingBordered":"thPadding",i)]:C,[_(h?"tdPaddingBordered":"tdPadding",i)]:x}}=n.value;return{"--n-title-text-color":t,"--n-th-padding":C,"--n-td-padding":x,"--n-font-size":w,"--n-bezier":u,"--n-th-font-weight":k,"--n-line-height":m,"--n-th-text-color":T,"--n-td-text-color":M,"--n-th-color":z,"--n-th-color-modal":f,"--n-th-color-popover":P,"--n-td-color":o,"--n-td-color-modal":v,"--n-td-color-popover":$,"--n-border-radius":y,"--n-border-color":l,"--n-border-color-modal":g,"--n-border-color-popover":S}}),d=a?Et("descriptions",A(()=>{let i="";const{size:h,bordered:u}=s;return u&&(i+="a"),i+=h[0],i}),b,s):void 0;return{mergedClsPrefix:p,cssVars:a?void 0:b,themeClass:d==null?void 0:d.themeClass,onRender:d==null?void 0:d.onRender,compitableColumn:kt(s,["columns","column"]),inlineThemeDisabled:a}},render(){const s=this.$slots.default,p=s?Bt(s()):[];p.length;const{compitableColumn:a,labelPlacement:n,labelAlign:b,size:d,bordered:i,title:h,cssVars:u,mergedClsPrefix:t,separator:z,onRender:f}=this;f==null||f();const P=p.filter(o=>Nt(o)),T={span:0,row:[],secondRow:[],rows:[]},M=P.reduce((o,v,$)=>{const l=v.props||{},g=P.length-1===$,S=["label"in l?l.label:V(v,"label")],y=[V(v)],m=l.span||1,w=o.span;o.span+=m;const C=l.labelStyle||l["label-style"]||this.labelStyle,x=l.contentStyle||l["content-style"]||this.contentStyle;if(n==="left")i?o.row.push(r("th",{class:`${t}-descriptions-table-header`,colspan:1,style:C},S),r("td",{class:`${t}-descriptions-table-content`,colspan:g?(a-w)*2+1:m*2-1,style:x},y)):o.row.push(r("td",{class:`${t}-descriptions-table-content`,colspan:g?(a-w)*2:m*2},r("span",{class:`${t}-descriptions-table-content__label`,style:C},[...S,z&&r("span",{class:`${t}-descriptions-separator`},z)]),r("span",{class:`${t}-descriptions-table-content__content`,style:x},y)));else{const B=g?(a-w)*2:m*2;o.row.push(r("th",{class:`${t}-descriptions-table-header`,colspan:B,style:C},S)),o.secondRow.push(r("td",{class:`${t}-descriptions-table-content`,colspan:B,style:x},y))}return(o.span>=a||g)&&(o.span=0,o.row.length&&(o.rows.push(o.row),o.row=[]),n!=="left"&&o.secondRow.length&&(o.rows.push(o.secondRow),o.secondRow=[])),o},T).rows.map(o=>r("tr",{class:`${t}-descriptions-table-row`},o));return r("div",{style:u,class:[`${t}-descriptions`,this.themeClass,`${t}-descriptions--${n}-label-placement`,`${t}-descriptions--${b}-label-align`,`${t}-descriptions--${d}-size`,i&&`${t}-descriptions--bordered`]},h||this.$slots.header?r("div",{class:`${t}-descriptions-header`},h||It(this,"header")):null,r("div",{class:`${t}-descriptions-table-wrapper`},r("table",{class:`${t}-descriptions-table`},r("tbody",null,M))))}}),Lt={label:String,span:{type:Number,default:1},labelStyle:[Object,String],contentStyle:[Object,String]},qt=E({name:"DescriptionsItem",[j]:!0,props:Lt,render(){return null}}),Gt=Vt(Ot);export{qt as _,Wt as a,Gt as r};
