{% from '@openform_front_templates/_includes/_icons.html.twig' import arrowright %}
{% if block.Translation[app.request.locale].title or block.Translation[app.request.locale].text %}
{% set mobile = openform_front_util.isMobileDevice() %}
<section class="block-item block-text {% if mobile %}block-text--mobile{% endif %} {% if block.Translation[app.request.locale].link %}hover{% endif %}" {% if not mobile %}style="{{block.textBlockWidth ? 'max-width: ' ~ block.textBlockWidth ~ '%;' }} {{block.textBlockPaddingLeft is same as(0) ? 'padding-left: 0px;' : block.textBlockPaddingLeft ? 'padding-left: ' ~ block.textBlockPaddingLeft ~ 'px;' }} {{block.textBlockPaddingRight is same as(0) ? 'padding-right: 0px;' : block.textBlockPaddingRight ? 'padding-right: ' ~ block.textBlockPaddingRight ~ 'px;' }} {{block.textBlockPaddingTop is same as(0) ? 'padding-top: 0px;' : block.textBlockPaddingTop ? 'padding-top: ' ~ block.textBlockPaddingTop ~ 'px;'}} {{block.textBlockPaddingBottom is same as(0) ? 'padding-bottom: 0px;' : block.textBlockPaddingBottom ? 'padding-bottom: ' ~ block.textBlockPaddingBottom ~ 'px;' }}" {% endif %}>
{% if block.Translation[app.request.locale].link %}
<a href="{{block.Translation[app.request.locale].link}}">
{% endif %}
{% if block.Translation[app.request.locale].title %}
<div class="block-text__title block__h3">
{{ block.Translation[app.request.locale].title|raw|nl2br }}
</div>
{% endif %}
{% if block.Translation[app.request.locale].text %}
<div class="block-text__description block__text" style="{{block.descPaddingTop is same as(0) ? 'padding-top: 0px;' : block.descPaddingTop ? 'padding-top: ' ~ block.descPaddingTop ~ 'px;'}}">
{{ block.Translation[app.request.locale].text|raw }}
</div>
{% endif %}
{% if block.Translation[app.request.locale].link %}
<div class="block-text__btns">
<div class="block-text__btns__btn">
<span>{{ block.Translation[app.request.locale].buttonLabel }}</span>
{{arrowright()}}
</div>
</div>
{% endif %}
{% if block.Translation[app.request.locale].link %}
</a>
{% endif %}
</section>
{% endif %}