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