{% styles default %}
{% styles colors %}
{% styles custom %}
{% if current_person.signed_in? %}
  {% for group in current_person.groups %}
    {% if group.id == '4c891447-6820-4882-8b58-f261f279b80d' or group.id == '4e45477f-1cb2-4852-b250-9f705004ab38' %}
      {% assign today = 'now' | date: '%s' | plus: 0 %}
      {% assign end_of_demo =  group.enrolled_at | date: '%s' | plus: 1209600 %}
      {% if today > end_of_demo %}
        <script>
          if (window.location.pathname != '/app/deactivation') {
            window.location.replace('/app/deactivation');
          }
        </script>
      {% endif %}
      {% break %}
    {% endif %}
  {% endfor %}
{% endif %}
