{% set src = "/resources/img/pin-icon.svg" %}
{% if placeholder.place_select is defined and placeholder.place_select.value is defined %}
{% if placeholder.place_select.value == "lien" %}
{% if placeholder.place_link is defined and placeholder.place_link is not empty %}
{% set place = placeholder.place_link.value %}
{% endif %}
{% else %}
{% if placeholder.place_text is defined and placeholder.place_text is not empty %}
{% set place = placeholder.place_text.value %}
{% endif %}
{% endif %}
{% endif %}
{% if api is defined and api is not empty %}
{% if placeholder.place_select is defined and placeholder.place_select is not empty %}
{% if placeholder.place_select == "lien" %}
{% if placeholder.place_link is defined and placeholder.place_link is not empty %}
{% set place = placeholder.place_link %}
{% endif %}
{% else %}
{% if placeholder.place_text is defined and placeholder.place_text is not empty %}
{% set place = placeholder.place_text %}
{% endif %}
{% endif %}
{% endif %}
{% endif %}
{% if place is defined and place is not empty %}
<div class="place dflex aic">
{% if color is defined and color == "blue" %}
{% set src = "/resources/img/agenda/pin-icon.svg" %}
{% endif %}
<img src="{{ src }}" alt="Place" width="14" height="17">
{% if place['href'] is defined and place['href'] is not null %}
<a href="{{ place['href'] }}" target="_blank" rel="noopener" class="cwhite">
{{ place['href'] }}
</a>
{% elseif api is defined and placeholder.place_select == "lien" %}
<a href="{{ place }}" target="_blank" rel="noopener">
{{ place }}
</a>
{% else %}
{{ place }}
{% endif %}
</div>
{% endif %}
{% if place_select is defined and place_select is not empty %}
{% if color is defined and color == "blue" %}
{% set src = "/resources/img/agenda/pin-icon.svg" %}
{% endif %}
<div class="place dflex aic">
<img src="{{ src }}" alt="Place" width="14" height="17">
{% if place_link['href'] is defined and place_link['href'] is not null %}
<a href="{{ place_link['href'] }}" target="_blank" rel="noopener" class="cwhite">
{{ place_link['href'] }}
</a>
{% else %}
{{ place_text|trim }}
{% endif %}
</div>
{% endif %}