import{DEVICES as e,makeStyleResponsive as a,makeWidth as s,getResponsiveValueByScreen as k}from"@gem-sdk/core";import{convertUnitToNumber as n}from"../../helpers.js";let t=k=>{let n={};return e.forEach(e=>{if(!k?.vertical?.[e]){let e={...a("minw",s(o({spacing:k?.spacing,slidesToShow:k?.slidesToShow,sneakPeak:k?.sneakPeak,sneakPeakType:k?.sneakPeakType,sneakPeakOffsetCenter:k?.sneakPeakOffsetCenter,sneakPeakOffsetForward:k?.sneakPeakOffsetForward}))),...a("maxw",s(o({spacing:k?.spacing,slidesToShow:k?.slidesToShow,sneakPeak:k?.sneakPeak,sneakPeakType:k?.sneakPeakType,sneakPeakOffsetCenter:k?.sneakPeakOffsetCenter,sneakPeakOffsetForward:k?.sneakPeakOffsetForward})))};n={...n,...e}}}),n},r=a=>{let s={};return e.forEach(e=>{let n=k(a.sneakPeak,e),t=n?"center"===k(a.sneakPeakType,e)?k(a.sneakPeakOffsetCenter,e)??0:k(a.sneakPeakOffsetForward,e)??0:0,r=k(a.slidesToShow,e)||1,o="center"===k(a.sneakPeakType,e)?-2:-1;s[e]="auto"===r?r:r+t/100*o}),s},o=a=>{let s={};return e.forEach(e=>{let t=n(k(a.spacing,e),44),o=k(a.sneakPeak,e,!1),f=n(k(o?r({slidesToShow:a?.slidesToShow,sneakPeak:a?.sneakPeak,sneakPeakType:a?.sneakPeakType,sneakPeakOffsetCenter:a?.sneakPeakOffsetCenter,sneakPeakOffsetForward:a?.sneakPeakOffsetForward}):a.slidesToShow,e),4);s={...s,[e]:`calc(100% / ${f} - ${(f-1)*t/f}px)`}}),s},f="gp-carousel-dot-container";export{f as DOT_CONTAINER_SELECTOR,t as getInitialWidthForCarouselItem,r as getSlideToShow,o as getWidthForCarouselItem};
