"use strict";var e=require("@gem-sdk/core"),s=require("../utils/renderBadgeILP.js"),t=require("../utils/common.js");exports.getContainerClasses=({mode:t,isInstant:p,product:o,currentVariant:l,props:r})=>{let{setting:g,builderProps:a}=r,i="gp-shrink-0 product-badge ",n=!t&&p?s.toggleBadge(g?.displayTrigger,o,l):`${a?.uid}`,u=a?.builderData?.advanced?.cssClass||"";return n&&(i+=`${n} `),u&&(i+=`${u} `),a?.uid&&(i+=`${a?.uid} `),g?.positionWithImage==="inside"&&(i+="inside-image "),{...e.composeClasses(i)}},exports.getImageClasses=()=>({...e.composeClasses("gp-object-cover gp-w-full gp-h-full gp-pointer-events-none")}),exports.getImageContainerClasses=()=>({...e.composeClasses("product-badge-item gp-w-full gp-h-full gp-overflow-hidden")}),exports.getSubWrapperClass=(s,p)=>{let{setting:o,style:l}=s,r=o?.positionWithImage==="inside",g=!r&&p?t.getShapePlacementClass(r,l,p):"gp-h-full";return{...e.composeClasses(g)}},exports.getTextContainerClasses=()=>({...e.composeClasses("gp-w-full gp-h-full gp-overflow-hidden product-badge-item")}),exports.getTextContentClasses=s=>{let t="gp-break-words gp-text-center ",p=e.composeTypographyClassName(s?.typo);return p&&(t+=`${p} `),{...e.composeClasses(t)}},exports.getTextWrapperClasses=()=>({...e.composeClasses("gp-w-full gp-h-full gp-flex gp-items-center gp-justify-center gp-overflow-hidden")}),exports.getWrapperClasses=s=>{let{styles:p,setting:o}=s,{align:l}=p??{},r=o?.positionWithImage==="outside",g=r?"gp-flex ":"gp-h-full",a=t.getAlignShape(l);return r&&a&&(g+=`${a} `),{...e.composeClasses(g)}};
