import{getGlobalColorClass as e,cls as r}from"@gem-sdk/core";let i=(i,o)=>{let{setting:c,styles:n,builderProps:t,classNames:p,pageContext:a}=i,l=c?.priceType==="compare",m=e("decoration",n?.lineColor);return{id:`p-price-${t?.uid}`,styles:{...n,lineThrough:l&&n?.lineThrough,lineColor:{normal:n?.lineColor},opacity:c?.opacityPrice},setting:{text:o??`${l?`
      {% if variant.compare_at_price  %}
        {{ variant.compare_at_price | ${a?.showPriceCurrency?"money_with_currency":"money"}}}
      {% else %}

      {% endif %}
    `:`
     {% if variant.price %}
       {{ variant.price | ${a?.showPriceCurrency?"money_with_currency":"money"}}}
     {% endif %}
   `}`,excludeFlex:!0},className:r("gp-price",{"gp-money":!l,"gp-product-compare-price":l},m,p)}};export{i as getTextProps};
