System.register(["./preload-helper-legacy.CIXZiioE.js","./createContext-legacy.DxkS4L9s.js","./motion-legacy.C4TziduP.js"],function(t,e){"use strict";var i,n,l,r,o,a,c,s,u,m,d,p,v,f,$,g,b,I,y,h,S;return{setters:[t=>{i=t.g,n=t.d,l=t.u,r=t.E,o=t.h,a=t._,c=t.i,s=t.P,u=t.Q,m=t.al,d=t.e,p=t.j},t=>{v=t.c},t=>{f=t.i,$=t.b,g=t.E,b=t.Y,I=t.V,y=t.A,h=t.q,S=t.Z}],execute:function(){t("g",function(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{focus:!0};const{componentCls:i}=t,n=`${i}-compact`;return{[n]:p(p({},k(t,n,e)),O(i,n,e))}});const e=t=>{const{componentCls:e}=t;return{[e]:{display:"inline-flex","&-block":{display:"flex",width:"100%"},"&-vertical":{flexDirection:"column"}}}},x=t=>{const{componentCls:e}=t;return{[e]:{display:"inline-flex","&-rtl":{direction:"rtl"},"&-vertical":{flexDirection:"column"},"&-align":{flexDirection:"column","&-center":{alignItems:"center"},"&-start":{alignItems:"flex-start"},"&-end":{alignItems:"flex-end"},"&-baseline":{alignItems:"baseline"}},[`${e}-item`]:{"&:empty":{display:"none"}}}}},z=t("a",i("Space",t=>[x(t),e(t)]));var C=Object.prototype.hasOwnProperty;function j(t){if(null==t)return!0;if(f(t)&&($(t)||"string"==typeof t||"function"==typeof t.splice||g(t)||b(t)||I(t)))return!t.length;var e=y(t);if("[object Map]"==e||"[object Set]"==e)return!t.size;if(h(t))return!S(t).length;for(var i in t)if(C.call(t,i))return!1;return!0}const E=v(null),D=(t("u",(t,e)=>{const i=E.useInject(),n=c(()=>{if(!i||j(i))return"";const{compactDirection:n,isFirstItem:l,isLastItem:r}=i,o="vertical"===n?"-vertical-":"-";return d({[`${t.value}-compact${o}item`]:!0,[`${t.value}-compact${o}first-item`]:l,[`${t.value}-compact${o}last-item`]:r,[`${t.value}-compact${o}item-rtl`]:"rtl"===e.value})});return{compactSize:c(()=>null==i?void 0:i.compactSize),compactDirection:c(()=>null==i?void 0:i.compactDirection),compactItemClassnames:n}}),t("N",n({name:"NoCompactStyle",setup(t,e){let{slots:i}=e;return E.useProvide(null),()=>{var t;return null===(t=i.default)||void 0===t?void 0:t.call(i)}}})),n({name:"CompactItem",props:{compactSize:String,compactDirection:s.oneOf(u("horizontal","vertical")).def("horizontal"),isFirstItem:m(),isLastItem:m()},setup(t,e){let{slots:i}=e;return E.useProvide(t),()=>{var t;return null===(t=i.default)||void 0===t?void 0:t.call(i)}}}));function k(t,e,i){const{focusElCls:n,focus:l,borderElCls:r}=i,o=r?"> *":"",a=["hover",l?"focus":null,"active"].filter(Boolean).map(t=>`&:${t} ${o}`).join(",");return{[`&-item:not(${e}-last-item)`]:{marginInlineEnd:-t.lineWidth},"&-item":p(p({[a]:{zIndex:2}},n?{[`&${n}`]:{zIndex:2}}:{}),{[`&[disabled] ${o}`]:{zIndex:0}})}}function O(t,e,i){const{borderElCls:n}=i,l=n?`> ${n}`:"";return{[`&-item:not(${e}-first-item):not(${e}-last-item) ${l}`]:{borderRadius:0},[`&-item:not(${e}-last-item)${e}-first-item`]:{[`& ${l}, &${t}-sm ${l}, &${t}-lg ${l}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&-item:not(${e}-first-item)${e}-last-item`]:{[`& ${l}, &${t}-sm ${l}, &${t}-lg ${l}`]:{borderStartStartRadius:0,borderEndStartRadius:0}}}}t("C",n({name:"ASpaceCompact",inheritAttrs:!1,props:{prefixCls:String,size:{type:String},direction:s.oneOf(u("horizontal","vertical")).def("horizontal"),align:s.oneOf(u("start","end","center","baseline")),block:{type:Boolean,default:void 0}},setup(t,e){let{attrs:i,slots:n}=e;const{prefixCls:s,direction:u}=l("space-compact",t),m=E.useInject(),[p,v]=z(s),f=c(()=>d(s.value,v.value,{[`${s.value}-rtl`]:"rtl"===u.value,[`${s.value}-block`]:t.block,[`${s.value}-vertical`]:"vertical"===t.direction}));return()=>{var e;const l=r((null===(e=n.default)||void 0===e?void 0:e.call(n))||[]);return 0===l.length?null:p(o("div",a(a({},i),{},{class:[f.value,i.class]}),[l.map((e,i)=>{var n;const r=e&&e.key||`${s.value}-item-${i}`,a=!m||j(m);return o(D,{key:r,compactSize:null!==(n=t.size)&&void 0!==n?n:"middle",compactDirection:t.direction,isFirstItem:0===i&&(a||(null==m?void 0:m.isFirstItem)),isLastItem:i===l.length-1&&(a||(null==m?void 0:m.isLastItem))},{default:()=>[e]})})]))}}}))}}});
