"use strict";var e=require("@gem-sdk/core"),t=require("@gem-sdk/system"),o=require("../../../../grid/components/row/common/helpers.js"),r=require("../../../../carousel-v3/common/helpers.js");exports.getStyle=a=>{let{setting:l,styles:s,style:i}=a,{background:n}=l??{},[d,c]=e.splitStyle(["pos","top","left","bottom","right","z","mb","mt","mb","ml","mr","d"],i),m=e.makeGlobalSize(s?.itemPadding),S=t.createStyle({...d}),g=t.createStyle({...e.makeStyleResponsive("jc",s?.align||{desktop:"center"})}),p=t.createStyle({...c,...e.makeStyleResponsive("w",o.createStyleObject(s?.width).content),...e.getBgByDevice({backgroundColor:s?.backgroundColor,backgroundImage:s?.backgroundImage})}),y=t.createStyle({...!l?.sameHeight&&e.makeStyleResponsive("rg",s?.horizontalGutter),...e.makeStyleResponsive("cg",s?.verticalGutter),...e.makeStyleResponsive("gtc",{desktop:`repeat(${e.getResponsiveValueByScreen(l?.slidesToShow,"desktop")}, minmax(0, 1fr))`,tablet:l?.slidesToShow?.tablet&&`repeat(${e.getResponsiveValueByScreen(l?.slidesToShow,"tablet")}, minmax(0, 1fr))`,mobile:l?.slidesToShow?.mobile&&`repeat(${e.getResponsiveValueByScreen(l?.slidesToShow,"mobile")}, minmax(0, 1fr))`})}),b=t.createStyle({...r.getInitialWidthForCarouselItem({spacing:s?.spacing,slidesToShow:l?.slidesToShow})}),u={...m&&m.padding,...e.makeStyle({bs:s?.borderContent?.border,bw:s?.borderContent?.width,bc:e.getSingleColorVariable(s?.borderContent?.color)}),...e.getRadiusStyleActiveState({...s?.roundedContent,active:{...s?.roundedContent||{},radiusType:"custom"}}),...e.getStyleShadow({value:s?.carouselShadow,styleAppliedFor:"box-shadow",isEnableShadow:s?.hasActiveShadow}),...e.getStyleBackgroundByDevice(n),...e.getGradientBgrStyleByDevice(n,{desktop:!0,tablet:!0,mobile:!0})},h=t.createStyle({...u});return{gridLayoutStyle:y,carouselItemStyle:b,productListWrapStyle:S,productListContentStyle:p,productListWrapAlignStyle:g,productItemStyle:h}};
