"use strict";var core=require("@gem-sdk/core");const getRootClass=({mode:e,salePrice:s,priceSave:t,bundleItem:l})=>({"gp-opacity-0 ":"edit"!==e&&(s<=0||0>=Math.ceil(t/(s/100))),"gp-opacity-20 ":"edit"===e&&(s<=0||0>=Math.ceil(t/(s/100)))&&!l}),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=e=>{let{backgroundColor:s,borderTag:t,textColor:l}=e??{},a=core.getGlobalColorClass("border",t?.color),o=core.getGlobalColorClass("text",l),r=core.getGlobalColorClass("bg",s);return{...core.composeClasses("gp-flex gp-items-center gp-w-full gp-h-full"),[a]:!0,[o]:!0,[r]:!0}};exports.getContainerClass=getContainerClass,exports.getProductTagClass=getProductTagClass,exports.getRootClass=getRootClass,exports.getWrapperTextClass=getWrapperTextClass;
