{% 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 %} {% from "/macros/profile/profile-editions-slider.html" import editionsSlider %} {% macro configureContent(editions, configurator, query) %} {% set hideEditions = query.showEditions === "false" or query.action === "browseAddons" %}
{% if hideEditions %}
{% endif %}

{{ configurator.i18n.selectEdition }}

{% for edition in editions.items %}

{{ edition.name }}

    {% 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 %}
{% if edition.callToAction.label.length %}
{% set editionOptions = { buttonSize: 'fullWidth', isAddToCartStyle: true } %} {{ productActionButton(edition.callToAction, editionOptions) }}
{% endif %}
{% set editionOptions = { isFullWidth: true } %} {{ productSelectButton(edition.callToAction, editions.i18n, editionOptions, true) }}
{% 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) }}
{% endif %}
{% endfor %}
{% endmacro %}