{# VARIABLES #}
{% set claim_text = claim_text|default(false) %}
{% set enable_coupon_code = enable_coupon_code|default(false) %}
{% set form = form|default(false) %}
{% set find_out_more_url = find_out_more_url|default(false) %}
{% set find_out_more_text = find_out_more_text|default(false) %}
{% set standalone = standalone|default(false) %}

{% set claim_value %}

  {{ claim_text|raw }}

  {% if enable_coupon_code %}

    {% if form %}
      {{ form }}
    {% endif %}
    {% include "@organisms/tm-off/offer-content/partials/offer-cpn.twig" %}

  {% else %}

    {% if find_out_more_url and find_out_more_text %}
      {% include "@atoms/tm-links/standard/standard.twig" with {
        "text": find_out_more_text,
        "url": find_out_more_url,
        "class": 'btn btn-default',
      } only %}
    {% endif %}

  {% endif %}

{% endset %}

{# TEMPLATE #}
{% if not standalone %}
  {% include "@organisms/tm-off/offer-content/partials/offer-blk.twig" with {
    'text': claim_value,
    'block_style': block_style,
  } only %}
{% else %}
  {{ claim_value }}
{% endif %}
