import{getGlobalColorClass as e,composeClasses as t}from"@gem-sdk/core";let l=({mode:e,salePrice:t,priceSave:l,bundleItem:g})=>({"gp-opacity-0 ":"edit"!==e&&(t<=0||0>=Math.ceil(l/(t/100))),"gp-opacity-20 ":"edit"===e&&(t<=0||0>=Math.ceil(l/(t/100)))&&!g}),g=e=>({"gp-block data-[disabled=true]:gp-hidden":!0,...e?.cssClass&&{[e?.cssClass]:!0}}),p=()=>({"gp-inline-flex gp-flex-wrap gp-items-end gp-gap-3":!0}),s=l=>{let{backgroundColor:g,borderTag:p,textColor:s}=l??{},a=e("border",p?.color),r=e("text",s),i=e("bg",g);return{...t("gp-flex gp-items-center gp-w-full gp-h-full"),[a]:!0,[r]:!0,[i]:!0}};export{p as getContainerClass,g as getProductTagClass,l as getRootClass,s as getWrapperTextClass};
