{% macro profileLimits(unit) %} {% if unit and unit.limitLabel %}
{{ unit.limitLabel }}
{% endif %} {% endmacro %} {% macro profileFormattedPrice(formattedPrice, isFirst = false) %} {{ formattedPrice[0] }} {{ profileFormattedPeriod(formattedPrice) }} {% endmacro %} {% macro profileFormattedPeriod(formattedPrice) %} {% if formattedPrice[1] %} {# unit #} {{ formattedPrice[1] | lower }} {% endif %} {% if formattedPrice[2] %} {# frequency #} {{ formattedPrice[2] | lower }} {% endif %} {% endmacro %} {% macro profileEditionsDiscountNotes(cost) %} {% if cost and cost.price and cost.price.formatted and cost.price.formatted.discount %} {% if cost.price.formatted.originalFullPrice %}
  • {{ profileFormattedPrice(cost.price.formatted.originalFullPriceElements) }}
  • {% endif %} {% if cost.price.formatted.discountExpirationNotice %}
  • {{ cost.price.formatted.discountExpirationNotice }}
  • {% endif %} {% endif %} {% endmacro %} {% macro profileEditionCost(cost, isFirst = false) %}
  • {{ profileFormattedPrice(cost.formattedFullPriceElements, isFirst) }} {{ profileLimits(cost.unit) }}
  • {{ profileEditionsDiscountNotes(cost) }} {% endmacro %} {% macro profileAddonProductCost(cost, isFirst = false) %}
  • {{ profileFormattedPrice(cost.formattedFullPriceElements, isFirst) }} {{ profileLimits(cost.unit) }}
  • {% endmacro %}