import{composeClasses as e,composeTypographyClassName as s}from"@gem-sdk/core";let getProgressBarClasses=s=>{let{effect:t}=s??{},g=t?e("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{...e("gp-sc-progress-bar gp-relative gp-w-full -gp-scale-100 !gp-bg-[length:200%] gp-mt-2"),...g}},getContainerClasses=s=>{let{progressBarPosition:t="bottom"}=s??{},g="bottom"===t;return{...e("gp-inline-block gp-flex"),"gp-flex-col":g,"gp-flex-col-reverse":!g}},getLiquidTagClasses=s=>({...e("gp-product-stock-counter data-[visible=true]:gp-block data-[visible=false]:gp-hidden"),...e(s?.cssClass)}),getWrapperIconClasses=s=>{let{iconPosition:t="left"}=s??{};return{...e("gp-flex gp-items-baseline gp-gap-x-1"),"gp-flex-row":"left"===t,"gp-flex-row-reverse gp-justify-end":"right"===t}},getIconClasses=()=>({...e("[&>svg]:!gp-h-[var(--w)] [&>svg]:!gp-w-auto tablet:[&>svg]:!gp-h-[var(--w-tablet)] mobile:[&>svg]:!gp-h-[var(--w-mobile)]")}),getOuterIconClasses=()=>({...e("gp-shrink-0 ")}),getTextClasses=t=>{let{typo:g}=t??{},r=s(g,t?.typography);return{...e(r)}},getWrapperClasses=(s,t)=>{let{hiddenCounterWhenOutOfStock:g}=s??{};return{...e("gp-flex"),"gp-opacity-50":t&&g}};export{getContainerClasses,getIconClasses,getLiquidTagClasses,getOuterIconClasses,getProgressBarClasses,getTextClasses,getWrapperClasses,getWrapperIconClasses};
