"use strict";var core=require("@gem-sdk/core");const getProgressBarClasses=e=>{let{effect:s}=e??{},o=s?core.composeClasses("before:gp-absolute before:gp-left-0 before:gp-h-full before:gp-w-full before:gp-animate-shift before:gp-content-[''] before:gp-bg-stock-counter-animate before:gp-bg-[length:60px_100%] before:gp-shadow-stock-counter"):{};return{...core.composeClasses("gp-sc-progress-bar gp-relative gp-w-full -gp-scale-100 !gp-bg-[length:200%] gp-mt-2"),...o}},getContainerClasses=e=>{let{progressBarPosition:s="bottom"}=e??{},o="bottom"===s;return{...core.composeClasses("gp-inline-block gp-flex"),"gp-flex-col":o,"gp-flex-col-reverse":!o}},getLiquidTagClasses=e=>({...core.composeClasses("gp-product-stock-counter data-[visible=true]:gp-block data-[visible=false]:gp-hidden"),...core.composeClasses(e?.cssClass)}),getWrapperIconClasses=e=>{let{iconPosition:s="left"}=e??{};return{...core.composeClasses("gp-flex gp-items-baseline gp-gap-x-1"),"gp-flex-row":"left"===s,"gp-flex-row-reverse gp-justify-end":"right"===s}},getIconClasses=()=>({...core.composeClasses("[&>svg]:!gp-h-[var(--w)] [&>svg]:!gp-w-auto tablet:[&>svg]:!gp-h-[var(--w-tablet)] mobile:[&>svg]:!gp-h-[var(--w-mobile)]")}),getOuterIconClasses=()=>({...core.composeClasses("gp-shrink-0 ")}),getTextClasses=e=>{let{typo:s}=e??{},o=core.composeTypographyClassName(s,e?.typography);return{...core.composeClasses(o)}},getWrapperClasses=(e,s)=>{let{hiddenCounterWhenOutOfStock:o}=e??{};return{...core.composeClasses("gp-flex"),"gp-opacity-50":s&&o}};exports.getContainerClasses=getContainerClasses,exports.getIconClasses=getIconClasses,exports.getLiquidTagClasses=getLiquidTagClasses,exports.getOuterIconClasses=getOuterIconClasses,exports.getProgressBarClasses=getProgressBarClasses,exports.getTextClasses=getTextClasses,exports.getWrapperClasses=getWrapperClasses,exports.getWrapperIconClasses=getWrapperIconClasses;
