{% from "/macros/profile/profile-details.html" import profileDetails %} {% from "/macros/profile/profile-cost.html" import profileEditionCost %} {% from "/macros/profile/profile-fee.html" import profileFee %} {% from "/macros/profile/profile-action-button.html" import productActionButton %} {% from "/macros/profile/profile-select-button.html" import productSelectButton %} {% macro editionsContent(editions, hidePricings) %}
{% if editions.bullets.length %}

{{ editions.i18n.bulletsHeader }}

    {% for bullet in editions.bullets %}
  • {{ bullet.content | safe }}
  • {% endfor %}
{% if editions.bullets.length > 7 %} {% endif %}
{% endif %} {% for edition in editions.items %}

{{ edition.name }}

{% if not hidePricings %}
    {% for plan in edition.plans %} {% if plan.costs and plan.costs.flatPrice %} {{ profileEditionCost(plan.costs.flatPrice, true) }} {% endif %} {% if plan.costs and plan.costs.unitPrice %} {% for unitPrice in plan.costs.unitPrice %} {% set unitPriceIndex = loop.index %} {% for usageRange in unitPrice.usageRange %} {{ profileEditionCost(usageRange, unitPriceIndex === 1 and not plan.costs.flatPrice) }} {% endfor %} {% endfor %} {% endif %} {% if plan.contractLength %}
  • {{ plan.formattedContract }}
  • {% endif %} {% if plan.setupFees.length or plan.contractFees.length %} {{ profileFee(plan.setupFees, plan.contractFees) }} {% endif %} {% if loop.index < edition.plans.length %}
  • {{ editions.i18n.tierSeparator }}
  • {% endif %} {% endfor %}
{% endif %}
{% if edition.callToAction.label.length %}
{% set editionOptions = { buttonSize: 'fullWidth', isAddToCartStyle: false } %} {{ productActionButton(edition.callToAction, editionOptions) }}
{% endif %} {% if edition.audience.length %}
{{ profileDetails(edition.audience, editions.i18n.audience) }}
{% endif %} {% if edition.items.length %}
{{ profileDetails(edition.items, editions.i18n.inclusions) }}
{% endif %} {% if edition.bullets.length %}
{{ profileDetails(edition.bullets) }} {% if edition.bullets.length > 7 %} {% endif %}
{% endif %}
{% endfor %}
{% if editions.footnotes.length %}

{{ editions.i18n.footnotes }}

{% endif %} {% endmacro %}