"use strict";var e=require("@gem-sdk/core");function t(e){return e.split(" ").reduce((e,t)=>(e[t]=!0,e),{})}exports.FEATURE_MEDIA_CENTER_CLASSES="gp-flex gp-items-center gp-justify-center",exports.getFeaturedCarouselItemClasses=({extraClass:e})=>{let r="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&&(r+=` ${e}`),t(r)},exports.getFeaturedImageCarouselClasses=({extraClass:e})=>{let r="`gp-flex-1 gp-w-full gp-feature-image-carousel";return e&&(r+=` ${e}`),t(r)},exports.getFeaturedImageClasses=({setting:r,extraClass:l})=>{let p=l??"";return e.DEVICES.forEach(t=>{let l=e.getResponsiveValueByScreen(r?.ftNavigationPosition,t),g="desktop"!==t?`${t}:`:"";"outside"===l?p+=` ${g}gp-px-[16px]`:p+=` ${g}gp-px-0`}),t(p)},exports.getFeaturedImageGalleryClasses=({settings:r,extraClass:l})=>{let p=l??"gp-flex-1 gp-w-full carousel-gallery";return e.DEVICES.forEach(t=>{let l=e.getResponsiveValueByScreen(r?.navigationPosition,t),g=e.getResponsiveValueByScreen(r?.type,t),s=e.getResponsiveValueByScreen(r?.position,t),a="desktop"!==t?`${t}:`:"";"outside"===l&&"slider"===g&&["bottom-center"].includes(s||"")?p+=` ${a}gp-px-[16px]`:p+=` ${a}gp-px-0`}),t(p)},exports.getFtImageWithGalleryClasses=({extraClass:e})=>{let r="gp-flex !gp-h-fit gp-relative gp-overflow-hidden";return e&&(r+=` ${e}`),t(r)},exports.getGalleryGridWrapperClasses=({extraClass:e})=>{let r="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&&(r+=` ${e}`),t(r)},exports.getGalleryItemClasses=({extraClass:e})=>{let r="gp-image-item gp-flex gp-items-center gp-justify-center gp-group gp-relative gp-overflow-hidden gp-cursor-pointer";return e&&(r+=` ${e}`),t(r)},exports.getGalleryWrapperClasses=({extraClass:e})=>{let r="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&&(r+=` ${e}`),t(r)},exports.getImageGalleryWrapperClasses=({extraClass:e})=>{let r="gp-flex gp-h-fit gp-max-w-full gp-overflow-hidden";return e&&(r+=` ${e}`),t(r)},exports.getWrapperClasses=({extraClass:e,isAddOverFlowClass:r=!1})=>{let l="gp-relative gp-w-full";return e&&(l+=` ${e}`),r&&(l+=" gp-overflow-hidden"),t(l)};
