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