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 : 3.144.252.243
Current Path : /var/www/qpms/assets/ |
| Current File : /var/www/qpms/assets/index-Bthn8aXT.js |
import{aP as T,r as a,bG as U,g as X,ae as Y,bH as Z,c as w,bI as E,bJ as h}from"./index-CAvdhLGp.js";const j=T.createContext({latestIndex:0}),ee=j.Provider,te=l=>{let{className:i,index:n,children:e,split:s,style:u}=l;const{latestIndex:t}=a.useContext(j);return e==null?null:a.createElement(a.Fragment,null,a.createElement("div",{className:i,style:u},e),n<t&&s&&a.createElement("span",{className:`${i}-split`},s))};var se=function(l,i){var n={};for(var e in l)Object.prototype.hasOwnProperty.call(l,e)&&i.indexOf(e)<0&&(n[e]=l[e]);if(l!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,e=Object.getOwnPropertySymbols(l);s<e.length;s++)i.indexOf(e[s])<0&&Object.prototype.propertyIsEnumerable.call(l,e[s])&&(n[e[s]]=l[e[s]]);return n};const le=a.forwardRef((l,i)=>{var n,e,s;const{getPrefixCls:u,space:t,direction:I}=a.useContext(X),{size:c=(n=t==null?void 0:t.size)!==null&&n!==void 0?n:"small",align:b,className:V,rootClassName:_,children:A,direction:N="horizontal",prefixCls:G,split:k,style:H,wrap:B=!1,classNames:v,styles:f}=l,F=se(l,["size","align","className","rootClassName","children","direction","prefixCls","split","style","wrap","classNames","styles"]),[d,m]=Array.isArray(c)?c:[c,c],S=E(m),z=E(d),J=h(m),M=h(d),$=Y(A,{keepEmpty:!0}),O=b===void 0&&N==="horizontal"?"center":b,o=u("space",G),[R,W,q]=Z(o),D=w(o,t==null?void 0:t.className,W,`${o}-${N}`,{[`${o}-rtl`]:I==="rtl",[`${o}-align-${O}`]:O,[`${o}-gap-row-${m}`]:S,[`${o}-gap-col-${d}`]:z},V,_,q),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 K=$.map((r,g)=>{var x,C;r!=null&&(y=g);const Q=(r==null?void 0:r.key)||`${P}-${g}`;return a.createElement(te,{className:P,key:Q,index:g,split:k,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)}),L=a.useMemo(()=>({latestIndex:y}),[y]);if($.length===0)return null;const p={};return B&&(p.flexWrap="wrap"),!z&&M&&(p.columnGap=d),!S&&J&&(p.rowGap=m),R(a.createElement("div",Object.assign({ref:i,className:D,style:Object.assign(Object.assign(Object.assign({},p),t==null?void 0:t.style),H)},F),a.createElement(ee,{value:L},K)))}),ae=le;ae.Compact=U;export{ae as S};
|