Linux ip-172-26-7-228 5.4.0-1103-aws #111~18.04.1-Ubuntu SMP Tue May 23 20:04:10 UTC 2023 x86_64
Your IP : 18.223.159.237
import{aO as K,r as l,aW as L,g as Q,ab as T,aX as U,c as w,aY as E,aZ as h}from"./index-CaXVb0k8.js";const j=K.createContext({latestIndex:0}),ee=j.Provider,te=a=>{let{className:i,index:n,children:e,split:s,style:u}=a;const{latestIndex:t}=l.useContext(j);return e==null?null:l.createElement(l.Fragment,null,l.createElement("div",{className:i,style:u},e),n<t&&s&&l.createElement("span",{className:`${i}-split`},s))};var se=function(a,i){var n={};for(var e in a)Object.prototype.hasOwnProperty.call(a,e)&&i.indexOf(e)<0&&(n[e]=a[e]);if(a!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,e=Object.getOwnPropertySymbols(a);s<e.length;s++)i.indexOf(e[s])<0&&Object.prototype.propertyIsEnumerable.call(a,e[s])&&(n[e[s]]=a[e[s]]);return n};const ae=l.forwardRef((a,i)=>{var n,e,s;const{getPrefixCls:u,space:t,direction:I}=l.useContext(Q),{size:c=(n=t==null?void 0:t.size)!==null&&n!==void 0?n:"small",align:N,className:V,rootClassName:_,children:A,direction:S="horizontal",prefixCls:k,split:G,style:H,wrap:W=!1,classNames:v,styles:f}=a,B=se(a,["size","align","className","rootClassName","children","direction","prefixCls","split","style","wrap","classNames","styles"]),[d,m]=Array.isArray(c)?c:[c,c],z=E(m),b=E(d),F=h(m),M=h(d),$=T(A,{keepEmpty:!0}),O=N===void 0&&S==="horizontal"?"center":N,o=u("space",k),[R,X,Y]=U(o),Z=w(o,t==null?void 0:t.className,X,`${o}-${S}`,{[`${o}-rtl`]:I==="rtl",[`${o}-align-${O}`]:O,[`${o}-gap-row-${m}`]:z,[`${o}-gap-col-${d}`]:b},V,_,Y),P=w(`${o}-item`,(e=v==null?void 0:v.item)!==null&&e!==void 0?e:(s=t==null?void 0:t.classNames)===null||s===void 0?void 0:s.item);let y=0;const q=$.map((r,g)=>{var x,C;r!=null&&(y=g);const J=(r==null?void 0:r.key)||`${P}-${g}`;return l.createElement(te,{className:P,key:J,index:g,split:G,style:(x=f==null?void 0:f.item)!==null&&x!==void 0?x:(C=t==null?void 0:t.styles)===null||C===void 0?void 0:C.item},r)}),D=l.useMemo(()=>({latestIndex:y}),[y]);if($.length===0)return null;const p={};return W&&(p.flexWrap="wrap"),!b&&M&&(p.columnGap=d),!z&&F&&(p.rowGap=m),R(l.createElement("div",Object.assign({ref:i,className:Z,style:Object.assign(Object.assign(Object.assign({},p),t==null?void 0:t.style),H)},B),l.createElement(ee,{value:D},q)))}),le=ae;le.Compact=L;export{le as S};
|