{% trans_default_domain 'walkinn' %}
{% set isData = false %}
{% set isParams = params is defined ? true : false %}
{% set defaultFontSize = "12px" %}
{% set fontSize = isParams ? "12px" : defaultFontSize %}
{% if fontTaille is defined %}
{% set fontSize = fontTaille %}
{% endif %}
{% set freeWidth = 0 %}
{% set currentPaxesActifs = false %}
{% if locale is not defined %}
{% set locale = 'fr_fr' %}
{% endif %}
<h4 class="fake-item" style="text-align: center;" >{{ 'rooming'|trans({"deepl": true}, null, locale)|upper }}</h4><br>
{% for segmentId, roomingList in liste %}
{% if supplierSegmentsData is not defined or supplierSegmentsData is null or (supplierSegmentsData is defined and supplierSegmentsData[segmentId] is defined and supplierSegmentsData[segmentId]) and currentPaxesActifs|json_encode() != roomingList.dossierSegmentPaxesActifs|json_encode() %}
{% set isData = true %}
{% set currentPaxesActifs = roomingList.dossierSegmentPaxesActifs %}
<div class="tartenpion">
<div id="details-container">
{% if roomingList.dossierSegmentPaxesActifs|length %}
<span style="font-size:{{ fontSize }}!important;">{{ roomingList.dossierSegmentPaxesActifs|length }} PAX</span>
{% endif %}
{% if roomingList.dossierSegmentGuidesActifs|length %}
<span style="font-size:{{ fontSize }}!important;">+ {{ roomingList.dossierSegmentGuidesActifs|length }} {{ 'guide'|trans({"deepl": true}, null, locale)|upper }}</span>
{% endif %}
{% set separator = '-' %}
{% if roomingList.roomingDataBis.sg_count %}
<span style="font-size:{{ fontSize }}!important;"> {{ separator }} {{ roomingList.roomingDataBis.sg_count }} {{ 'single'|trans({"deepl": true}, null, locale)|upper }}</span>
{% set separator = '+' %}
{% endif %}
{% if roomingList.roomingDataBis.db_count %}
<span style="font-size:{{ fontSize }}!important;"> {{ separator }} {{ roomingList.roomingDataBis.db_count }} {{ 'double'|trans({"deepl": true}, null, locale)|upper }}</span>
{% set separator = '+' %}
{% endif %}
{% if roomingList.roomingDataBis.tw_count %}
<span style="font-size:{{ fontSize }}!important;"> {{ separator }} {{ roomingList.roomingDataBis.tw_count }} {{ 'twin'|trans({"deepl": true}, null, locale)|upper }}</span>
{% set separator = '+' %}
{% endif %}
{% if roomingList.roomingDataBis.trp_count %}
<span style="font-size:{{ fontSize }}!important;"> {{ separator }} {{ roomingList.roomingDataBis.trp_count }} {{ 'triple'|trans({"deepl": true}, null, locale)|upper }}</span>
{% set separator = '+' %}
{% endif %}
{% if roomingList.roomingDataBis.qd_count %}
<span style="font-size:{{ fontSize }}!important;"> {{ separator }} {{ roomingList.roomingDataBis.qd_count }} {{ 'quadruple'|trans({"deepl": true}, null, locale)|upper }}</span>
{% set separator = '+' %}
{% endif %}
{% if roomingList.roomingDataBis.qt_count %}
<span style="font-size:{{ fontSize }}!important;"> {{ separator }} {{ roomingList.roomingDataBis.qt_count }} {{ 'quintuple'|trans({"deepl": true}, null, locale)|upper }}</span>
{% endif %}
</div>
</div>
{% endif %}
{% endfor %}
<br><br>