"use strict";var o=require("@gem-sdk/core"),e=require("./productGallery.js"),t=require("./productFeaturedImage.js");const r=["desktop","mobile","tablet"];exports.getFeaturedCarouselSettingAttr=a=>{let i={desktop:"inside"===o.getResponsiveValueByScreen(a.ftNavigationPosition,"desktop"),tablet:"inside"===o.getResponsiveValueByScreen(a.ftNavigationPosition,"tablet"),mobile:"inside"===o.getResponsiveValueByScreen(a.ftNavigationPosition,"mobile")},n=r.reduce((o,e)=>(a.ftNavigationPosition?.[e]&&(o[e]="none"!==a.ftNavigationPosition[e]),o),{});return{...a?.ftLoop&&{loop:a.ftLoop},itemNumber:{desktop:1},dot:e.getAllowDotConfig(),dotStyle:t.getDotStyleForOnlyFeaturedImage({position:a.position,dotStyle:a.ftDotStyle}),dotSize:a.ftDotSize??{desktop:12},dotGapToCarousel:a.ftDotGapToCarousel??{desktop:16},dotColor:a.ftDotColor??{desktop:"bg-1"},dotActiveColor:a.ftDotActiveColor??{desktop:"line-3"},controlOverContent:i,...a?.ftDragToScroll&&{enableDrag:{desktop:a.ftDragToScroll,tablet:a.ftDragToScroll,mobile:a.ftDragToScroll}},...a?.ftArrowIcon&&{arrowCustom:a.ftArrowIcon},arrowIconSize:a.ftArrowIconSize||{desktop:24},...a?.ftArrowIconColor&&{arrowCustomColor:a.ftArrowIconColor},...a?.ftArrowNavColor&&{arrowBackgroundColor:a.ftArrowNavColor},...a?.ftArrowNavBorder&&{arrowBorder:{desktop:a.ftArrowNavBorder}},...a?.ftArrowNavRadius&&{roundedArrow:{desktop:a.ftArrowNavRadius}},...a?.ftArrowNavShadow&&{arrowShadow:{desktop:a.ftArrowNavShadow}},sneakPeakType:{desktop:"center"},arrowGapToEachSide:"16",animationMode:a?.ftAnimationMode,...a?.ftNavigationPosition&&{navigationStyle:a.ftNavigationPosition},navigationEnable:n,arrowButtonSize:{desktop:{width:void 0,height:void 0}},enableAction:{desktop:!0}}},exports.getGalleryCarouselSettingAttr=t=>{let a=e.getShapeByLayout({shape:t.shape,shapeForBottom:t.shapeForBottom,shapeFor1Col:t.shapeFor1Col,shapeFor2Col:t.shapeFor2Col,shapeForFtOnly:t.shapeForFtOnly,shapeForInsideBottom:t.shapeForInsideBottom,shapeForInside:t.shapeForInside},t.position),i=e.getSliderPerShowConfig(a,t.position),n={desktop:"inside"===o.getResponsiveValueByScreen(t.navigationPosition,"desktop"),tablet:"inside"===o.getResponsiveValueByScreen(t.navigationPosition,"tablet"),mobile:"inside"===o.getResponsiveValueByScreen(t.navigationPosition,"mobile")},s=r.reduce((o,e)=>(t.navigationPosition?.[e]&&(o[e]="none"!==t.navigationPosition[e]),o),{});return{...t?.loop&&{loop:t.loop},itemNumber:i,dot:{desktop:!1,tablet:!1,mobile:!1},dotStyle:e.getDotStyleConfig(),controlOverContent:n,...t?.dragToScroll&&{enableDrag:{desktop:t.dragToScroll,tablet:t.dragToScroll,mobile:t.dragToScroll}},vertical:e.getCarouselVerticalConfigByPosition(t.position),...t?.arrowIcon&&{arrowCustom:t.arrowIcon},arrowIconSize:t.arrowIconSize||{desktop:24},...t?.arrowIconColor&&{arrowCustomColor:t.arrowIconColor},...t?.arrowNavColor&&{arrowBackgroundColor:t.arrowNavColor},...t?.arrowNavBorder&&{arrowBorder:{desktop:t.arrowNavBorder}},...t?.arrowNavRadius&&{roundedArrow:{desktop:t.arrowNavRadius}},...t?.arrowNavShadow&&{arrowShadow:{desktop:t.arrowNavShadow}},sneakPeakType:{desktop:"center"},arrowGapToEachSide:"16",navigationStyle:t.navigationPosition,navigationEnable:s,arrowButtonSize:{desktop:{width:void 0,height:void 0}},animationMode:t?.ftAnimationMode,enableAction:{desktop:!0}}};
