<script>
var Conf = App = {
language: "{{ 'settings.defaultcountry.locale' | trans | escape| slice(0,2) }}",
currency: "{{ 'settings.defaultcountry.currency' | trans | escape }}",
locale: "{{ 'settings.defaultcountry.locale' | trans | escape }}",
odpage: {{ odpage | default(null) | json_encode | raw }},
redirect: {{ redirect | default('url') | json_encode | raw }},
api: {
stop_from: "{{ path('api_departure_stops') }}",
stop_to: "{{ path('api_arrival_stops') }}",
route_company: '{{ path('api_route_company') }}',
price_company: '{{ path('api_price_company') }}',
favicon: '{{ app_cdn }}{{ path('getimage') }}',
calendar: '{{ app_cdn }}{{ path('api_price_canlendar') }}',
redirect: "{{ path('redirectA') }}"
},
img: {
markerDeparture: '{{ asset('images/mm_20_red.png') }}',
markerArrival: '{{ asset('images/mm_20_blue.png') }}',
markerUnselected: '{{ asset('images/map-unselected-departure_blue.png') }}'
},
i18n: {
'homepage_search_origin' : {{ 'homepage.search.origin'| trans | json_encode | raw }},
'homepage_search_destination' : {{ 'homepage.search.destination'| trans | json_encode | raw }},
'homepage_search_departDate' : {{ 'homepage.search.departDate'| trans | json_encode | raw }},
'homepage_search_returnDate' : {{ 'homepage.search.returnDate'| trans | json_encode | raw }},
'homepage_search_submit' : {{ 'homepage.search.submit'| trans | json_encode | raw }},
'homepage_search_returnDate_placeholder': {{'homepage.search.returnDate.placeholder' | trans | json_encode | raw }},
'homepage.search.noResults': {{ 'homepage.search.noResults' | trans | json_encode | raw }},
'homepage.search.searching':{{ 'homepage.search.searching' | trans | json_encode | raw }},
'homepage_search_param_missing' : {{ 'homepage.search.param.missing' | trans | json_encode | raw }},
'result_company' : {{ 'result.company'| trans | json_encode | raw }},
'result_departure' : {{ 'result.departure'| trans | json_encode | raw }},
'result_duration' : {{ 'result.duration'| trans | json_encode | raw }},
'result_arrival' : {{ 'result.arrival'| trans | json_encode | raw }},
'result_price' : {{ 'result.price'| trans | json_encode | raw }},
'result_noresults' : {{ 'result.noresults'| trans | json_encode | raw }},
'result_nomorebus' : {{ 'result.nomorebus'| trans | json_encode | raw }},
'result_sponsorised' : {{ 'result.sponsorised'| trans | json_encode | raw }},
'result_skyscanner' : {{ 'result.skyscanner'| trans | json_encode | raw }},
'result_full' : {{ 'result.full'| trans | json_encode | raw }},
'result_filter_type_bus' : {{ 'result.filter.type.bus'| trans | json_encode | raw }},
'result_filter_type_train' : {{ 'result.filter.type.train'| trans | json_encode | raw }},
'result_filter_type_carpooling' : {{ 'result.filter.type.carpooling'| trans | json_encode | raw }},
'result_filter_type_flight' : {{ 'result.filter.type.flight'| trans | json_encode | raw }},
'result_ad_driiveme_title' : {{ 'result.ad.driiveme.title'| trans | json_encode | raw }},
'result_ad_driiveme_message' : {{ 'result.ad.driiveme.message'| trans | json_encode | raw }},
'result_noresults_adbbc' : {{ 'result.noresults.adbbc'| trans | json_encode | raw }},
'result_filter_title' : {{ 'result.filter.title'| trans | json_encode | raw }},
'result_filter_departure_title' : {{ 'result.filter.departure.title'| trans | json_encode | raw }},
'result_filter_departure_earlymorning' : {{ 'result.filter.departure.early-morning'| trans | json_encode | raw }},
'result_filter_departure_morning' : {{ 'result.filter.departure.morning'| trans | json_encode | raw }},
'result_filter_departure_afternoon' : {{ 'result.filter.departure.afternoon'| trans | json_encode | raw }},
'result_filter_departure_night' : {{ 'result.filter.departure.night'| trans | json_encode | raw }},
'result_filter_companybus_title' : {{ 'result.filter.companybus.title'| trans | json_encode | raw }},
'result_filter_company_title' : {{ 'result.filter.company.title'| trans | json_encode | raw }},
'result_filter_type_title' : {{ 'result.filter.type.title'| trans | json_encode | raw }},
'result_filter_connection_title' : {{ 'result.filter.connection.title'| trans | json_encode | raw }},
'result_filter_connection_direct' : {{ 'result.filter.connection.direct'| trans | json_encode | raw }},
'datepickerjs': {{ 'homepage.search.datepickerjs'| trans| raw }},
},
top: [{
{# only set on od page#}
depStopId: {{ search.depStopId | default(null) | json_encode | raw }},
depStopName: {{ search.depStopName | default(null) | json_encode | raw }},
arrStopId: {{ search.arrStopId | default(null) | json_encode | raw }},
arrStopName: {{ search.arrStopName | default(null) | json_encode | raw }},
dateFrom: {{ search.dateFrom | default(null) | json_encode | raw }},
dateTo: {{ search.dateTo | default(null) | json_encode | raw }},
type :{{ search.type | default("bus") | json_encode | raw }}
}]
};
</script>