import{d as V,a8 as J,dA as K,dB as L,f as o,e as O,g as M,a9 as W,S as f,aI as q,b as m,aJ as H,ab as B,cK as h,am as E,bl as G,aE as Q}from"./vue-router.33ac8cf0.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},c=new Error().stack;c&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[c]="5cdd34b7-deb7-483c-94f3-dd332cb4a191",e._sentryDebugIdIdentifier="sentry-dbid-5cdd34b7-deb7-483c-94f3-dd332cb4a191")}catch{}})();const U={small:8,middle:16,large:24},X=()=>({prefixCls:String,size:{type:[String,Number,Array]},direction:E.oneOf(G("horizontal","vertical")).def("horizontal"),align:E.oneOf(G("start","end","center","baseline")),wrap:Q()});function Y(e){return typeof e=="string"?U[e]:e||0}const r=V({compatConfig:{MODE:3},name:"ASpace",inheritAttrs:!1,props:X(),slots:Object,setup(e,c){let{slots:l,attrs:g}=c;const{prefixCls:n,space:y,direction:x}=J("space",e),[j,F]=K(n),z=L(),s=o(()=>{var a,t,i;return(i=(a=e.size)!==null&&a!==void 0?a:(t=y==null?void 0:y.value)===null||t===void 0?void 0:t.size)!==null&&i!==void 0?i:"small"}),b=O(),u=O();M(s,()=>{[b.value,u.value]=(Array.isArray(s.value)?s.value:[s.value,s.value]).map(a=>Y(a))},{immediate:!0});const w=o(()=>e.align===void 0&&e.direction==="horizontal"?"center":e.align),k=o(()=>W(n.value,F.value,`${n.value}-${e.direction}`,{[`${n.value}-rtl`]:x.value==="rtl",[`${n.value}-align-${w.value}`]:w.value})),P=o(()=>x.value==="rtl"?"marginLeft":"marginRight"),R=o(()=>{const a={};return z.value&&(a.columnGap=`${b.value}px`,a.rowGap=`${u.value}px`),f(f({},a),e.wrap&&{flexWrap:"wrap",marginBottom:`${-u.value}px`})});return()=>{var a,t;const{wrap:i,direction:T="horizontal"}=e,_=(a=l.default)===null||a===void 0?void 0:a.call(l),I=q(_),A=I.length;if(A===0)return null;const d=(t=l.split)===null||t===void 0?void 0:t.call(l),C=`${n.value}-item`,D=b.value,S=A-1;return m("div",B(B({},g),{},{class:[k.value,g.class],style:[R.value,g.style]}),[I.map((N,v)=>{let $=_.indexOf(N);$===-1&&($=`$$space-${v}`);let p={};return z.value||(T==="vertical"?v<S&&(p={marginBottom:`${D/(d?2:1)}px`}):p=f(f({},v<S&&{[P.value]:`${D/(d?2:1)}px`}),i&&{paddingBottom:`${u.value}px`})),j(m(H,{key:$},[m("div",{class:C,style:p},[N]),v<S&&d&&m("span",{class:`${C}-split`,style:p},[d])]))})])}}});r.Compact=h;r.install=function(e){return e.component(r.name,r),e.component(h.name,h),e};const ee=r;export{ee as A};
//# sourceMappingURL=index.f737d7de.js.map
