test de déploiement du build depuis gitlab
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

1 lines
2.6 KiB

import{o as e}from"./chunk-jRWAZmH_.js";import{n as t}from"./jsx-runtime-CEixWuwE.js";import{Bn as n,G as r,ir as i,rr as a}from"./axios-DOscJEDN.js";import{n as o,t as s}from"./slicedToArray-BQ1tPSGY.js";import{i as c,r as l}from"./asyncToGenerator-DHhZBkop.js";import{i as u,m as d,p as f}from"./button-BMyidN73.js";import{t as p}from"./useFlexGapSupport-CzPe5s7u.js";c(),i();var m=e(t());function h(e){var t=e.className,n=e.direction,r=e.index,i=e.marginDirection,o=e.children,s=e.split,c=e.wrap,u=m.useContext(v),d=u.horizontalSize,f=u.verticalSize,p=u.latestIndex,h=u.supportFlexGap,g={};return h||(n===`vertical`?r<p&&(g={marginBottom:d/(s?2:1)}):g=a(a({},r<p&&l({},i,d/(s?2:1))),c&&{paddingBottom:f})),o==null?null:m.createElement(m.Fragment,null,m.createElement(`div`,{className:t,style:g},o),r<p&&s&&m.createElement(`span`,{className:`${t}-split`,style:g},s))}i(),c(),o();var g=e(n());f();var _=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols==`function`)for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n},v=m.createContext({latestIndex:0,horizontalSize:0,verticalSize:0,supportFlexGap:!1}),y={small:8,middle:16,large:24};function b(e){return typeof e==`string`?y[e]:e||0}var x=function(e){var t=m.useContext(r),n=t.getPrefixCls,i=t.space,o=t.direction,c=e.size,u=c===void 0?i?.size||`small`:c,f=e.align,y=e.className,x=e.children,S=e.direction,C=S===void 0?`horizontal`:S,w=e.prefixCls,T=e.split,E=e.style,D=e.wrap,O=D===void 0?!1:D,k=_(e,[`size`,`align`,`className`,`children`,`direction`,`prefixCls`,`split`,`style`,`wrap`]),A=p(),j=s(m.useMemo(function(){return(Array.isArray(u)?u:[u,u]).map(function(e){return b(e)})},[u]),2),M=j[0],N=j[1],P=d(x,{keepEmpty:!0}),F=f===void 0&&C===`horizontal`?`center`:f,I=n(`space`,w),L=(0,g.default)(I,`${I}-${C}`,l(l({},`${I}-rtl`,o===`rtl`),`${I}-align-${F}`,F),y),R=`${I}-item`,z=o===`rtl`?`marginLeft`:`marginRight`,B=0,V=P.map(function(e,t){e!=null&&(B=t);var n=e&&e.key||`${R}-${t}`;return m.createElement(h,{className:R,key:n,direction:C,index:t,marginDirection:z,split:T,wrap:O},e)}),H=m.useMemo(function(){return{horizontalSize:M,verticalSize:N,latestIndex:B,supportFlexGap:A}},[M,N,B,A]);if(P.length===0)return null;var U={};return O&&(U.flexWrap=`wrap`,A||(U.marginBottom=-N)),A&&(U.columnGap=M,U.rowGap=N),m.createElement(`div`,a({className:L,style:a(a({},U),E)},k),m.createElement(v.Provider,{value:H},V))};x.Compact=u;export{x as t};