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

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