const e=require("../../style/index.js"),t=require("../../theme/util/genComponentStyleHook.js"),n=require("../../theme/util/statistic.js");var r=t=>{let{componentCls:n,antCls:r,carouselArrowSize:i,carouselDotOffset:a,marginXXS:o}=t,s=-i*1.25,c=o;return{[n]:{...e.resetComponent(t),".slick-slider":{position:`relative`,display:`block`,boxSizing:`border-box`,touchAction:`pan-y`,WebkitTouchCallout:`none`,WebkitTapHighlightColor:`transparent`,".slick-track, .slick-list":{transform:`translate3d(0, 0, 0)`,touchAction:`pan-y`}},".slick-list":{position:`relative`,display:`block`,margin:0,padding:0,overflow:`hidden`,"&:focus":{outline:`none`},"&.dragging":{cursor:`pointer`},".slick-slide":{pointerEvents:`none`,[`input${r}-radio-input, input${r}-checkbox-input`]:{visibility:`hidden`},"&.slick-active":{pointerEvents:`auto`,[`input${r}-radio-input, input${r}-checkbox-input`]:{visibility:`visible`}},"> div > div":{verticalAlign:`bottom`}}},".slick-track":{position:`relative`,top:0,insetInlineStart:0,display:`block`,"&::before, &::after":{display:`table`,content:`""`},"&::after":{clear:`both`}},".slick-slide":{display:`none`,float:`left`,height:`100%`,minHeight:1,img:{display:`block`},"&.dragging img":{pointerEvents:`none`}},".slick-initialized .slick-slide":{display:`block`},".slick-vertical .slick-slide":{display:`block`,height:`auto`},".slick-arrow.slick-hidden":{display:`none`},".slick-prev, .slick-next":{position:`absolute`,top:`50%`,display:`block`,width:i,height:i,marginTop:-i/2,padding:0,color:`transparent`,fontSize:0,lineHeight:0,background:`transparent`,border:0,outline:`none`,cursor:`pointer`,"&:hover, &:focus":{color:`transparent`,background:`transparent`,outline:`none`,"&::before":{opacity:1}},"&.slick-disabled::before":{opacity:.25}},".slick-prev":{insetInlineStart:s,"&::before":{content:`"←"`}},".slick-next":{insetInlineEnd:s,"&::before":{content:`"→"`}},".slick-dots":{position:`absolute`,insetInlineEnd:0,bottom:0,insetInlineStart:0,zIndex:15,display:`flex !important`,justifyContent:`center`,paddingInlineStart:0,listStyle:`none`,"&-bottom":{bottom:a},"&-top":{top:a,bottom:`auto`},li:{position:`relative`,display:`inline-block`,flex:`0 1 auto`,boxSizing:`content-box`,width:t.dotWidth,height:t.dotHeight,marginInline:c,padding:0,textAlign:`center`,textIndent:-999,verticalAlign:`top`,transition:`all ${t.motionDurationSlow}`,button:{position:`relative`,display:`block`,width:`100%`,height:t.dotHeight,padding:0,color:`transparent`,fontSize:0,background:t.colorBgContainer,border:0,borderRadius:1,outline:`none`,cursor:`pointer`,opacity:.3,transition:`all ${t.motionDurationSlow}`,"&: hover, &:focus":{opacity:.75},"&::after":{position:`absolute`,inset:-c,content:`""`}},"&.slick-active":{width:t.dotWidthActive,"& button":{background:t.colorBgContainer,opacity:1},"&: hover, &:focus":{opacity:1}}}}}}},i=e=>{let{componentCls:t,carouselDotOffset:n,marginXXS:r}=e,i={width:e.dotHeight,height:e.dotWidth};return{[`${t}-vertical`]:{".slick-dots":{top:`50%`,bottom:`auto`,flexDirection:`column`,width:e.dotHeight,height:`auto`,margin:0,transform:`translateY(-50%)`,"&-left":{insetInlineEnd:`auto`,insetInlineStart:n},"&-right":{insetInlineEnd:n,insetInlineStart:`auto`},li:{...i,margin:`${r}px 0`,verticalAlign:`baseline`,button:i,"&.slick-active":{...i,button:i}}}}}},a=e=>{let{componentCls:t}=e;return[{[`${t}-rtl`]:{direction:`rtl`,".slick-dots":{[`${t}-rtl&`]:{flexDirection:`row-reverse`}}}},{[`${t}-vertical`]:{".slick-dots":{[`${t}-rtl&`]:{flexDirection:`column`}}}}]},o=t.default(`Carousel`,e=>{let{controlHeightLG:t,controlHeightSM:o}=e,s=n.merge(e,{carouselArrowSize:t/2,carouselDotOffset:o/2});return[r(s),i(s),a(s)]},{dotWidth:16,dotHeight:3,dotWidthActive:24});exports.default=o;