"use strict";var o=require("@gem-sdk/core"),t=require("./productGallery.js"),r=require("./productFeaturedImage.js");const e=["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=e.reduce((o,t)=>(a.ftNavigationPosition?.[t]&&(o[t]="none"!==a.ftNavigationPosition[t]),o),{});return{...a?.ftLoop&&{loop:a.ftLoop},itemNumber:{desktop:1},dot:t.getAllowDotConfig(),dotStyle:r.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}},arrowGapToEachSide:"16",animationMode:a?.ftAnimationMode,...a?.ftNavigationPosition&&{navigationStyle:a.ftNavigationPosition},navigationEnable:n,arrowButtonSize:{desktop:{width:a.ftArrowNavSize?.width,height:a.ftArrowNavSize?.height,padding:a.ftArrowNavSize?.padding}},enableAction:{desktop:!0}}},exports.getGalleryCarouselSettingAttr=r=>{let a={desktop:"inside"===o.getResponsiveValueByScreen(r.navigationPosition,"desktop"),tablet:"inside"===o.getResponsiveValueByScreen(r.navigationPosition,"tablet"),mobile:"inside"===o.getResponsiveValueByScreen(r.navigationPosition,"mobile")},i=e.reduce((o,t)=>(r.navigationPosition?.[t]&&(o[t]="none"!==r.navigationPosition[t]),o),{});return{...r?.loop&&{loop:r.loop},itemNumber:{desktop:"auto",tablet:"auto",mobile:"auto"},dot:{desktop:!1,tablet:!1,mobile:!1},dotStyle:t.getDotStyleConfig(),controlOverContent:a,...r?.dragToScroll&&{enableDrag:{desktop:r.dragToScroll,tablet:r.dragToScroll,mobile:r.dragToScroll}},vertical:t.getCarouselVerticalConfigByPosition(r.position),...r?.arrowIcon&&{arrowCustom:r.arrowIcon},arrowIconSize:r.arrowIconSize||{desktop:24},...r?.arrowIconColor&&{arrowCustomColor:r.arrowIconColor},...r?.arrowNavColor&&{arrowBackgroundColor:r.arrowNavColor},...r?.arrowNavBorder&&{arrowBorder:{desktop:r.arrowNavBorder}},...r?.arrowNavRadius&&{roundedArrow:{desktop:r.arrowNavRadius}},...r?.arrowNavShadow&&{arrowShadow:{desktop:r.arrowNavShadow}},arrowGapToEachSide:"16",navigationStyle:r.navigationPosition,navigationEnable:i,arrowButtonSize:{desktop:{width:r.arrowNavSize?.width,height:r.arrowNavSize?.height,padding:r.arrowNavSize?.padding}},animationMode:r?.ftAnimationMode,enableAction:{desktop:!0}}};
