1import{u as V,j as k,_ as m,a as G,P as I,S as O,d as H,c as L}from"./DqgUaXSM.js";import{d as W}from"./sV1KdXVB.js";import{N as q,h as J,H as K,I as s,g as j,B as Q,d as v,F as U}from"./C1y2WPGJ.js";import{a as X,C as x}from"./DnY6amIF.js";const Y=()=>{const e=q(!1);return J(()=>{e.value=W()}),e},Z={small:8,middle:16,large:24},ee=()=>({prefixCls:String,size:{type:[String,Number,Array]},direction:I.oneOf(O("horizontal","vertical")).def("horizontal"),align:I.oneOf(O("start","end","center","baseline")),wrap:H()});function te(e){return typeof e=="string"?Z[e]:e||0}const d=K({compatConfig:{MODE:3},name:"ASpace",inheritAttrs:!1,props:ee(),slots:Object,setup(e,B){let{slots:i,attrs:f}=B;const{prefixCls:l,space:g,direction:h}=V("space",e),[P,R]=X(l),z=Y(),n=s(()=>{var t,a,o;return(o=(t=e.size)!==null&&t!==void 0?t:(a=g==null?void 0:g.value)===null||a===void 0?void 0:a.size)!==null&&o!==void 0?o:"small"}),S=j(),r=j();Q(n,()=>{[S.value,r.value]=(Array.isArray(n.value)?n.value:[n.value,n.value]).map(t=>te(t))},{immediate:!0});const C=s(()=>e.align===void 0&&e.direction==="horizontal"?"center":e.align),D=s(()=>L(l.value,R.value,`${l.value}-${e.direction}`,{[`${l.value}-rtl`]:h.value==="rtl",[`${l.value}-align-${C.value}`]:C.value})),E=s(()=>h.value==="rtl"?"marginLeft":"marginRight"),M=s(()=>{const t={};return z.value&&(t.columnGap=`${S.value}px`,t.rowGap=`${r.value}px`),m(m({},t),e.wrap&&{flexWrap:"wrap",marginBottom:`${-r.value}px`})});return()=>{var t,a;const{wrap:o,direction:T="horizontal"}=e,b=(t=i.default)===null||t===void 0?void 0:t.call(i),w=k(b),_=w.length;if(_===0)return null;const c=(a=i.split)===null||a===void 0?void 0:a.call(i),A=`${l.value}-item`,N=S.value,y=_-1;return v("div",G(G({},f),{},{class:[D.value,f.class],style:[M.value,f.style]}),[w.map((F,u)=>{let $=b.indexOf(F);$===-1&&($=`$$space-${u}`);let p={};return z.value||(T==="vertical"?u<y&&(p={marginBottom:`${N/(c?2:1)}px`}):p=m(m({},u<y&&{[E.value]:`${N/(c?2:1)}px`}),o&&{paddingBottom:`${r.value}px`})),P(v(U,{key:$},[v("div",{class:A,style:p},[F]),u<y&&c&&v("span",{class:`${A}-split`,style:p},[c])]))})])}}});d.Compact=x;d.install=function(e){return e.component(d.name,d),e.component(x.name,x),e};export{d as S};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.