import{makeGlobalSize as e,getGradientBgrStyleByDevice as o,getStyleBackgroundByDevice as t,getStyleShadow as a,getRadiusStyleActiveState as r,makeStyle as s,getSingleColorVariable as d}from"@gem-sdk/core";import{createStyle as n}from"@gem-sdk/system";import{getInitialWidthForCarouselItem as i}from"../../../common/helpers.js";let k=k=>{let{style:l,contentType:m,parentStyle:p,parentSettings:c,background:b,customStyle:f}=k,h=e(p?.itemPadding),u={...f,...h&&h.padding,...i({spacing:p?.spacing,slidesToShow:c?.itemNumber??c?.slidesToShow,sneakPeak:c?.sneakPeak,sneakPeakType:c?.sneakPeakType,sneakPeakOffsetCenter:c?.sneakPeakOffsetCenter,sneakPeakOffsetForward:c?.sneakPeakOffsetForward,vertical:c?.vertical}),...t(b),...o(b,{desktop:!0,tablet:!0,mobile:!0})},w=n({...a({value:p?.carouselShadow,styleAppliedFor:"box-shadow",isEnableShadow:p?.hasActiveShadow})}),P=n({...u,...(["--radius"].forEach(e=>{delete l?.[e]}),"productImage"===m)?l:{...l,...s({bs:p?.borderContent?.border,bw:p?.borderContent?.width,bc:d(p?.borderContent?.color)}),...r({...p?.roundedContent,active:{...p?.roundedContent||{},radiusType:"custom"}})}});return{carouselItemStyle:P,carouselItemInnerStyle:w}};export{k as getStyle};
