{% if (isPdfPrint is defined and isPdfPrint == true and printMode is defined) %}<div class="print-map"><button type="button" class="print-button is-Button is-Button_Search is-full-width">{{ 'journey.print' | trans }}</button><label class="is-CheckboxLabel"><input type="checkbox" class="is-Checkbox print-with-map" checked><i class="is-Icon is-Icon-com-checkbox" aria-hidden="true"><i class="is-path1"></i><i class="is-path2"></i><i class="is-path3"></i></i><span>{{ 'journey.print_with_map'|trans }}</span></label></div><div class="is-MapWrapper"><div id="is-Map" class="is-Map" aria-hidden="true"></div><div id="is-Map-Print" class="is-Map" aria-hidden="true"></div></div><div class="is-LabelInInput is-First" id="is-Journey-Departure-LabelInInput"><div class="is-LabelInInput-LabelWrapper"><label class="is-LabelInInput-Label" for="is-Journey-Departure">{{ 'journey.departure' | trans }}</label></div><div class="is-LabelInInput-InputWrapper"><input value="{{ departurePlace.value }}" id="is-Journey-Departure-Disabled" name="start" type="text" class="is-LabelInInput-Input" autocomplete="off" disabled/></div></div><div class="is-Stages" id="is-Journey-Stage" {% if via is not defined or via|length == 0 %}style="display: none;"{% endif %}>{% if via is defined and via|length > 0 %}{% for index, step in via %}{% if step.id is defined and step.value is defined %}<div class="is-LabelInInput" id="is-Stage-LabelInInput-{{ loop.index0 }}" ><div class="is-LabelInInput-LabelWrapper"><label class="is-LabelInInput-Label" for="is-Stage-Input-{{ loop.index0 }}">{{ 'map.popup.step-via' | trans }}</label></div><div class="is-LabelInInput-InputWrapper"><input autocomplete="off" required="true" type="text" name="stage[]" id="is-Stage-Input-{{ loop.index0 }}-Disable" class="is-LabelInInput-Input is-via-input" data-latlon="{{ step.latlon }}" data-id="{{ step.id }}" value="{{ step.value }}" placeholder="{{ 'journey.departure_placeholder' | trans }}" disabled/></div></div>{% endif %}{% endfor %}{% endif %}</div><div class="is-LabelInInput is-Last" id="is-Journey-Arrival-LabelInInput"><div class="is-LabelInInput-LabelWrapper"><label class="is-LabelInInput-Label" for="is-Journey-Arrival">{{ 'journey.arrival' | trans }}</label></div><div class="is-LabelInInput-InputWrapper"><input value="{{ arrivalPlace.value }}" id="is-Journey-Arrival-Disable" name="end" type="text" class="is-LabelInInput-Input" placeholder="{{ 'journey.arrival_placeholder' | trans }}" autocomplete="off" disabled/></div></div>{% endif %}{% if validator.error is defined and validator.error == 1 %}<div class="is-Result-Error"><i class="is-Icon is-Icon-Error is-Icon-sim-error-result" aria-hidden="true"><i class="is-path1"></i><i class="is-path2"></i><i class="is-path3"></i></i><div class="is-Result-Error-Description"><ul class=is-Result-Error-List>{% for error in validator.errors %}<li class="is-Result-Error-List-Item">{{ error.message | trans }}</li>{% endfor %}</ul></div></div>{% endif %}{% if isXmlHttpMode is not defined or (isXmlHttpMode is defined and true == isXmlHttpMode) %}{% if tripPlanner is defined %}{% if tripPlanner[mode].journeycount is defined and tripPlanner[mode].journeycount > 0 %}<div class="is-Mode-hiddenValues is-hide"><span class="is-Mode-Value">{% if tripPlanner[mode].totalTimeValue is not empty %}{{ tripPlanner[mode].totalTimeValue|raw }}{% endif %}</span><span class="is-Mode-ButtonLabel">{{ ('mode.' ~ mode|lower)|trans }} : {{ 'journey.itineraries_found_new_format' | trans({'count': tripPlanner[mode].journeycount}) }}.{{ 'journey.minimum_duration'|trans }} : {% if tripPlanner[mode].totalTimeValue is not empty %}{{ tripPlanner[mode].totalTimeValue|raw }}{% endif %}.</span></div>{% endif %}{% endif %}{% endif %}{% if tripPlanner is defined and tripPlanner[mode] is defined and tripPlanner[mode] is not empty %}{% if tripPlanner[mode]['errors'] is defined and tripPlanner[mode]['errors'] is not empty %}<div class="is-Result-Error"><i class="is-Icon is-Icon-Error is-Icon-sim-error-result" aria-hidden="true"><i class="is-path1"></i><i class="is-path2"></i><i class="is-path3"></i></i><div class="is-Result-Error-Description"><ul class=is-Result-Error-List>{% for error in tripPlanner[mode]['errors'] %}{% if error.message is defined and error.message is not empty %}{% set errorMessages = error.message|split('<BR>') %}<li class="is-Result-Error-List-Item">{% for message in errorMessages %}{% if loop.index == 1 and errorMessages|length > 1 %}<strong class="is-Bold">{{ message | raw }}</strong>{% else %}{{ message | raw }}{% endif %}{% endfor %}</li>{% endif %}{% endfor %}</ul></div></div>{% endif %}{% if tripPlanner[mode]['groups']['errors'] is defined and tripPlanner[mode]['groups']['errors'] is not empty %}<ul class="is-Journey-Result-Errors">{% for errors in tripPlanner[mode]['groups']['errors'] %}<li class="is-Journey-Result-Errors-Item"><i class="is-Icon is-Icon-com-notice" aria-hidden="true"></i><span class="is-Journey-Result-Errors-Description">{{ errors.message | raw }}</span></li>{% endfor %}</ul>{% endif %}{% if tripPlanner[mode]['groups'] is defined and tripPlanner[mode]['groups'] is not empty %}<div class="is-Journey-Results-List" role="list" aria-live="polite"><div class="is-Journey-Roadmap-Header is-Result-Header is-hide"><button class="is-Journey-Results-BackButton is-Result-Header-BackButton" title="{{ 'journey.back_to_results'|trans }}" tabindex="0"><i class="is-Icon is-Icon-com-chevron-left-thick" aria-hidden="true"></i></button>{% if isWidget is defined and true == isWidget %}<div class="is-Journey-Roadmap-H1 is-Widget-H2">{{ 'journey.roadmap'|trans }}</div>{% else %}<h2 class="is-Journey-Roadmap-H1 is-Widget-H2">{{ 'journey.roadmap'|trans }}</h2>{% endif %}{% if true == enable_html_to_pdf_button_on_instance %}<div class="is-dropdown is-Result-Header-OptionsButtonGroup"><a class="is-dropdown-toggle is-Schedule-OptionsButton is-Result-Header-OptionsButton" data-toggle="is-dropdown" id="is-LineDirection-Timesheet-OptionsButton_{{ mode }}" title="{{ 'schedule.more_options'|trans }}" role="button" aria-haspopup="true" aria-expanded="true" tabindex="0"><i class="is-Icon is-Icon-com-dots-three-horizontal" aria-hidden="true"></i></a><ul class="is-dropdown-menu is-dropdown-menu-right" aria-labelledby="is-LineDirection-Timesheet-OptionsButton_{{ mode }}"><li id="is-JourneyResult-Download-{{ mode }}"><a class="is-JourneyResult-link" href="{% if journeyResultPdfDownloadUrl is defined %}{{ journeyResultPdfDownloadUrl }}{% endif %}" target="_blank">{{ 'journey.pdf_download'|trans }}</a></li></ul></div>{% elseif (widgetContext is not defined or widgetContext is empty or "false" == widgetContext) and (enable_result_options_button is defined and enable_result_options_button == true) %}<div class="is-dropdown is-Result-Header-OptionsButtonGroup"><a class="is-dropdown-toggle is-Schedule-OptionsButton is-Result-Header-OptionsButton" data-toggle="is-dropdown" id="is-LineDirection-Timesheet-OptionsButton_{{ mode }}" title="{{ 'schedule.more_options'|trans }}" role="button" aria-haspopup="true" aria-expanded="true" tabindex="0"><i class="is-Icon is-Icon-com-dots-three-horizontal" aria-hidden="true"></i></a><ul class="is-dropdown-menu is-dropdown-menu-right" aria-labelledby="is-LineDirection-Timesheet-OptionsButton_{{ mode }}">{% if account_module is defined and account_module is not empty and 'TRANSPORT' == mode %}<li><a{% if is_granted('IS_AUTHENTICATED_REMEMBERED') %}class="is-AddSubscriptionAlert is-Journey-AddMultipleLinesToFavoritesButton is-Favorite-Item-Button"data-token="{{ csrf_token('favorite_add_multiple_lines') }}"{% else %}class="is-Favorite-Item-Button {% if login_mode == 'kas' %} is-trigger-kas-login{% else %} is-ShowLoginModalButton {% endif %}"data-redirect-to-same="true"data-action="addToFavorites"data-favorite-type="MULTIPLE_LINES"{% endif %}data-refresh-reverse-token="false"data-context="MULTIPLE_LINES"role="button"tabindex="0">{{ 'place.favorite.action.subscribe_alert'|trans }}</a></li>{% endif %}{% if enable_give_feedback is defined and enable_give_feedback == true %}<li><a class="is-Journey-FeedBack" tabindex="0" role="button">{{ 'journey.roadmap_contact' | trans }}</a></li>{% endif %}<li id="is-JourneyResult-Print-{{ mode }}"><a href="{% if journeyResultPrintUrl is defined %}{{ journeyResultPrintUrl }}{% endif %}" target="_blank">{{ 'journey.print'|trans }}</a></li><li id="is-JourneyResult-Download-{{ mode }}"><a href="{% if journeyResultPdfDownloadUrl is defined %}{{ journeyResultPdfDownloadUrl }}{% endif %}" target="_blank">{{ 'journey.pdf_download'|trans }}</a></li><li id="is-JourneyResult-AddToCalendar-{{ mode }}"><a class="is-AddToCalendarButton" tabindex="0" role="button">{{ 'user.add_to_my_calendar'|trans }}</a></li></ul></div>{% endif %}</div>{% set index = 0 %}{% for tripByGroup in tripPlanner[mode]['groups'] %}{% if tripByGroup['display'] is defined and true == tripByGroup['display'] and tripByGroup['name'] is defined and tripByGroup['name'] is not empty %}<h3 class="is-Widget-H3 is-Widget-H3_WithLatMargins">{{ tripByGroup['name'] }}</h3>{% endif %}{% if tripByGroup['errors'] is defined and tripByGroup['errors'] is not empty %}<ul class="is-Journey-Result-Errors is-pl-30 is-pr-30">{% for errors in tripByGroup['errors'] %}<li class="is-Journey-Result-Errors-Item"><i class="is-Icon is-Icon-com-notice" aria-hidden="true"></i><span class="is-Journey-Result-Errors-Description">{{ errors.message | raw }}</span></li>{% endfor %}</ul>{% endif %}{% if tripByGroup['results']['journeys'] is defined and tripByGroup['results']['journeys'] is not empty %}{% for journey in tripByGroup['results']['journeys'] %}{% set index = index + 1 %}{% if (isPdfPrint is defined and isPdfPrint == true and printIndex is defined and index == printIndex) or isPdfPrint is not defined %}{% set vars = { 'journey': journey, 'mode': mode} %}{% if journey.paths is defined and journey.paths is not empty %}{% for path in journey.paths %}{% if true == path.displayHeaderMode and path.mode is defined and 'BIKESHARING' == path.mode %}<h4 class="is-Widget-H4 is-Widget-H4_WithLatMargins">{{ 'mode.bikesharing' | trans }}</h4>{% endif %}{% endfor %}{% endif %}{% if mode != 'PRIVATETAXI' %}<div class="is-Journey-Result {% if tripPlanner[mode]['estimatedResults'] %}is-Journey-EstimatedResult{% endif %}" id="is-Journey-Result-{{ mode }}-{{ index }}"data-mode="{{ mode }}" data-journey-id="{{ journey.id }}"role="listitem"><div class="is-Journey-Result-Header" id="is-Journey-Result-Heading-{{ mode }}-{{ index }}"aria-labelledby="is-Journey-Result-{{ mode }}-{{ index }}-Summary">{% if true == displayAvoidDisruptions and journey['hasCriticalDisruption'] is defined and true == journey['hasCriticalDisruption'] %}<div class="is-Journey-CalculateWithoutDisruption is-hide"><a class="is-Journey-CalculateWithoutDisruption-Link"><i class="is-Icon is-Icon-sim-refresh" aria-hidden="true"></i>{{ 'journey.calculate_trip_without_disruption' | trans }}</a></div>{% endif %}{% if false == tripPlanner[mode]['estimatedResults'] %}<div class="is-Journey-Result-Header-ExpandButton {% if (isPdfPrint is defined and isPdfPrint == true and printMode is defined) %}is-disabled{% endif %}"href="#is-Journey-Roadmap-{{ mode }}-{{ index }}"role="button" aria-controls="is-Journey-Roadmap-{{ mode }}-{{ index }}"aria-expanded="false" tabindex="0"data-print-mode="{{ mode }}"data-print-index="{{ index }}"data-totaltime="{{ journey.totaltime }}"tabindex="0">{% include 'modules/search-widget/journey/result-header.html.twig' with vars %}</div>{% else %}<div class="is-Journey-Result-Header-ExpandButton {% if (isPdfPrint is defined and isPdfPrint == true and printMode is defined) %}is-disabled{% endif %}" href="#is-Journey-Result-{{ journey.id}}-Preview" role="button" aria-controls="is-Journey-Result-{{ journey.id }}-Preview" aria-expanded="false" data-print-mode="{{ mode }}" data-print-index="{{ index }}" data-totaltime="{{ journey.totaltime }}">{% include 'modules/search-widget/journey/result-header-estimated.html.twig' with vars %}</div>{% endif %}</div><div class="is-Journey-Roadmap {% if isPdfPrint is not defined or isPdfPrint is defined and isPdfPrint == false %}is-hide{% endif %}" id="is-Journey-Roadmap-{{ mode }}-{{ index }}">{% if journey.rideSharingInfos is defined and journey.rideSharingInfos is not empty %}<div class="is-RideSharingInfos"><div class="is-RideSharingInfos-Seats"><span class="is-RideSharingInfos">Places</span><span>{{ journey.rideSharingInfos.seats }}</span></div><div class="is-RideSharingInfos-BookingLink"><a class="is-Button is-Button_Secondary"href="{{ journey.rideSharingInfos.link }}"target="_blank">{{ 'bookOn' | trans }}<img class="is-Result-Modes-OperatorLogo" src="{{ journey.operatorLogo }}"alt="{{ journey.operatorName }}"/></a></div></div>{% endif %}{% include 'modules/search-widget/journey/result-body.html.twig' with vars %}</div>{% if mode == 'TRANSPORT' %}<input type="hidden" name="linesFavorites" value="{{ journey.linesFavorites }}">{% endif %}</div>{% else %}{% include 'modules/search-widget/journey/result-rides.html.twig' with vars %}{% endif %}{% endif %}{% endfor %}{% if mode == 'TRANSPORT' and tripByGroup['results']['nextStartDate'] is defined and tripByGroup['results']['previousArrivalDate'] is defined and isPdfPrint is not defined %}<div class="is-LeaveArrive-Area"><button class="is-LeaveArrive-Button is-LeaveArrive-Button_Prev" onclick="JourneyManager.changeJourneyDate('{{ tripByGroup['results']['previousArrivalDate'] }}', 'ARRIVE_AT')">{{ 'journey.arrive_sooner'|trans }}</button><button class="is-LeaveArrive-Button is-LeaveArrive-Button_Next" onclick="JourneyManager.changeJourneyDate('{{ tripByGroup['results']['nextStartDate'] }}', 'LEAVE_AT')">{{ 'journey.leave_later'|trans }}</button></div>{% endif %}{% endif %}{% endfor %}</div>{% endif %}{% elseif validator.error is defined and validator.error != 1 %}<div class="is-Result-Error"><i class="is-Icon is-Icon-Error is-Icon-sim-error-result" aria-hidden="true"><i class="is-path1"></i><i class="is-path2"></i><i class="is-path3"></i></i><div class="is-Result-Error-Description"><p><strong class="is-Bold">{{ 'itinerary.not_available' | trans }}</strong>{{ 'try_later' | trans }}</p></div></div>{% endif %}