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.117.72.24
Current Path : /var/www/qpms/assets/ |
| Current File : /var/www/qpms/assets/index-CCqRUA_e.js |
import{U as J,r as l,aX as K,g as L,ae as Q,aY as T,c as w,aZ as E,a_ as h}from"./index-ChT0xYiY.js";const j=J.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:_}=l.useContext(L),{size:c=(n=t==null?void 0:t.size)!==null&&n!==void 0?n:"small",align:N,className:I,rootClassName:V,children:A,direction:S="horizontal",prefixCls:k,split:G,style:H,wrap:R=!1,classNames:v,styles:f}=a,F=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),M=h(m),U=h(d),O=Q(A,{keepEmpty:!0}),$=N===void 0&&S==="horizontal"?"center":N,o=u("space",k),[W,X,Y]=T(o),Z=w(o,t==null?void 0:t.className,X,`${o}-${S}`,{[`${o}-rtl`]:_==="rtl",[`${o}-align-${$}`]:$,[`${o}-gap-row-${m}`]:z,[`${o}-gap-col-${d}`]:b},I,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=O.map((r,x)=>{var C,g;r!=null&&(y=x);const D=(r==null?void 0:r.key)||`${P}-${x}`;return l.createElement(te,{className:P,key:D,index:x,split:G,style:(C=f==null?void 0:f.item)!==null&&C!==void 0?C:(g=t==null?void 0:t.styles)===null||g===void 0?void 0:g.item},r)}),B=l.useMemo(()=>({latestIndex:y}),[y]);if(O.length===0)return null;const p={};return R&&(p.flexWrap="wrap"),!b&&U&&(p.columnGap=d),!z&&M&&(p.rowGap=m),W(l.createElement("div",Object.assign({ref:i,className:Z,style:Object.assign(Object.assign(Object.assign({},p),t==null?void 0:t.style),H)},F),l.createElement(ee,{value:B},q)))}),le=ae;le.Compact=K;export{le as S};
|