import{makeStyleResponsive as t,getHeightByShapeGlobalSize as e,makeStyleWithDefault as o,getWidthByShapeGlobalSize as r,getBgByDevice as g,makeContainerWidthOrHeight as i}from"@gem-sdk/core";import{createStyle as l}from"@gem-sdk/system";let getStyle=d=>{let{styles:c,setting:a,style:s,rootStyles:m}=d,{arrowGapToEachSide:n="16"}=a??{},k=t("h",e(c?.sizeSetting)),u=o("w",r(c?.sizeSetting,!0),{desktop:"--g-ct-w",tablet:"--g-ct-w",mobile:"--g-ct-w"}),b=l({...s,...!d?.isProductList&&k,...u,...g({backgroundColor:c?.backgroundColor,backgroundImage:c?.backgroundImage})}),p=l({...i({vertical:a?.vertical,dotStyle:a?.dotStyle}),gap:n+"px"}),w=l({...t("jc",c?.align),...m,...!!d?.isProductList&&k}),S=l({...u,...k}),h=l({overflow:"hidden",flex:1,width:"100%",height:"100%"});return{rootStyleRender:w,wrapperStyleRender:b,wrapperInnerStyle:p,sliderStyle:S,sliderWrapperStyle:h}};export{getStyle};
