"use strict";var e=require("@gem-sdk/core");function r(e){return e.split(" ").reduce((e,r)=>(e[r]=!0,e),{})}exports.getFeaturedCarouselItemClasses=({extraClass:e})=>{let t="gp-group gp-z-0 gp-flex !gp-min-w-full !gp-max-w-full gp-w-full gp-relative gp-items-start gp-justify-center gp-overflow-hidden gp-outline-1 -gp-outline-offset-1 gp-image-item gp-ft-image-item data-[outline=active]:gp-outline";return e&&(t+=` ${e}`),r(t)},exports.getFeaturedImageCarouselClasses=({extraClass:e})=>{let t="`gp-flex-1 gp-w-full gp-feature-image-carousel";return e&&(t+=` ${e}`),r(t)},exports.getFeaturedImageClasses=({setting:t,extraClass:l})=>{let p=l??"";return e.DEVICES.forEach(r=>{let l=e.getResponsiveValueByScreen(t?.ftNavigationPosition,r),g="desktop"!==r?`${r}:`:"";"outside"===l?p+=` ${g}gp-px-[16px]`:p+=` ${g}gp-px-0`}),r(p)},exports.getFeaturedImageGalleryClasses=({settings:t,extraClass:l})=>{let p=l??"gp-flex-1 gp-w-full carousel-gallery";return e.DEVICES.forEach(r=>{let l=e.getResponsiveValueByScreen(t?.navigationPosition,r),g=e.getResponsiveValueByScreen(t?.type,r),a=e.getResponsiveValueByScreen(t?.position,r),s="desktop"!==r?`${r}:`:"";"outside"===l&&"slider"===g&&["bottom-center"].includes(a||"")?p+=` ${s}gp-px-[16px]`:p+=` ${s}gp-px-0`}),r(p)},exports.getFtImageWithGalleryClasses=({extraClass:e})=>{let t="gp-flex !gp-h-fit gp-relative gp-overflow-hidden";return e&&(t+=` ${e}`),r(t)},exports.getGalleryGridWrapperClasses=({extraClass:e})=>{let t="product-feature-image grid-gallery gp-flex !gp-h-fit gp-w-full gp-flex-wrap scrollbar-track:gp-rounded-2xl scrollbar-thumb:gp-rounded-2xl scrollbar-thumb:gp-bg-gray-400 gp-z-1";return e&&(t+=` ${e}`),r(t)},exports.getGalleryItemClasses=({extraClass:e})=>{let t="gp-image-item gp-flex gp-items-center gp-justify-center gp-group gp-relative gp-overflow-hidden gp-cursor-pointer";return e&&(t+=` ${e}`),r(t)},exports.getGalleryWrapperClasses=({extraClass:e})=>{let t="gallery-wrapper gp-product-images-gallery gp-flex gp-overflow-hidden gp-max-w-full gp-max-h-full data-[only-image=true]:gp-hidden";return e&&(t+=` ${e}`),r(t)},exports.getImageGalleryWrapperClasses=({extraClass:e})=>{let t="gp-flex gp-h-fit gp-max-w-full gp-overflow-hidden";return e&&(t+=` ${e}`),r(t)},exports.getWrapperClasses=({extraClass:e,isAddOverFlowClass:t=!1})=>{let l="gp-relative gp-w-full";return e&&(l+=` ${e}`),t&&(l+=" gp-overflow-hidden"),r(l)};
