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