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

      {% endif %}
    `,s=()=>`
     {% if variant.price %}
       {{ variant.price | ${a?.showPriceCurrency?"money_with_currency":"money"}}}
     {% endif %}
   `;return{id:`p-price-${n?.uid}`,styles:{...t,lineThrough:l&&t?.lineThrough,lineColor:{normal:t?.lineColor},opacity:c?.opacityPrice},setting:{text:o??`${l?y():s()}`,excludeFlex:!0},className:r("gp-price",{"gp-money":!l,"gp-product-compare-price":l},m,p)}};export{getTextProps};
