(function () { var widgetContainers = [], widgetIdBase = 'is-WidgetWrapper', widgetIdSuffix = '', widgetId = '', journeySearchId = '#is-PlaceSubmitButton', scheduleSearchId = '#is-ScheduleSubmitButton'; widgetIdSuffix = 'Schedule'; widgetId = widgetIdBase + (widgetIdSuffix !== '' ? '_' + widgetIdSuffix : ''); widgetContainers[0] = document.getElementById(widgetId); if(!widgetContainers[0]){ widgetContainers[0] = document.getElementById(widgetIdBase); } if ( !widgetContainers[0] ) { console.log('The\u0020widget\u0020container\u0020has\u0020not\u0020been\u0020found.'); } else { var hasJquery = false; function checkJqueryOlderVersion(version) { var versionTab = version.split('.'); var ourVersion = [3,5,1]; for (var i = 0; i < versionTab.length; i++) { if (parseInt(versionTab[i]) < ourVersion[i]) { return true; } else if (parseInt(versionTab[i]) > ourVersion[i]) { return false; } } return false; } function appendScript(src, baseUrl) { var script = document.createElement('script'); script.src = baseUrl + src; script.type = 'text/javascript'; document.getElementsByTagName('body')[0].appendChild(script); return script; } function appendCss(href) { var link = document.createElement('link'); link.rel = 'stylesheet'; link.href = 'https\u003A\/\/15.prod\u002Dsim.australia.instant\u002Dsystem.com' + '/css/'+ href; document.getElementsByTagName('head')[0].appendChild(link); } function loadWidgetScripts(){ var usingMomentWidgets = ['journey', 'schedule', 'journeybooking', 'full'], bNeedMoment = false, momentSrc = 'https://cdnjs.cloudflare.com/ajax/libs/moment.js/2.23.0/moment.min.js'; if (hasJquery === true) { jQuery = jQuery.noConflict(true); } if (window.$ === undefined) { window.$ = jQuery; } window.oConfig = { subjectsInformationZou: '{"":"","form.choices.subject_information.zou_student_pass":"form.choices.subject_information.zou_student_pass","form.choices.subject_information.my_trip":"form.choices.subject_information.my_trip","form.choices.subject_information.order_online":"form.choices.subject_information.order_online","form.choices.subject_information.animal_object":"form.choices.subject_information.animal_object","form.choices.subject_information.website":"form.choices.subject_information.website","form.choices.subject_information.my_zou_card":"form.choices.subject_information.my_zou_card","form.choices.subject_information.other":"form.choices.subject_information.other"}', subjectsClaimZou: '{"":"","form.choices.subject_information.zou_student_pass":"form.choices.subject_information.zou_student_pass","form.choices.subject_claim.object_loose":"form.choices.subject_claim.object_loose","form.choices.subject_claim.reception":"form.choices.subject_claim.reception","form.choices.subject_claim.late":"form.choices.subject_claim.late","form.choices.subject_claim.taking":"form.choices.subject_claim.taking","form.choices.subject_claim.confort":"form.choices.subject_claim.confort","form.choices.subject_claim.security":"form.choices.subject_claim.security","form.choices.subject_claim.driver":"form.choices.subject_claim.driver","form.choices.subject_claim.accident":"form.choices.subject_claim.accident"}', baseUrl: 'https://15.prod-sim.australia.instant-system.com', locale: 'en', networkId: '15', networkTimezone: 'Pacific/Noumea', deviceType: 'desktop', deviceOS: 'unknown', networkTimezone: 'Pacific/Noumea', external: 0, simModule: 1, ticketingModule: 1, widgetModule: 1, refererBaseDir: '/./', homeUrl: '/', outdatedBrowserUrl: '/en/outdated-browser', defaultColor: '#666', brandColor: '#af1280', hideNavLabelsBreakpoint: 910, maxDate: '2025-13-08', enableIsochrones: '', events: { resultsLoaded: 'is.results.loaded' }, trans: { line: 'line', departure_stop: 'Departure stop', arrival_stop: 'Arrival stop', no_destination_stoparea: 'No line can be offered from this station.', journey_not_reservable: 'Non-reservable trip', booking_date_unavailable: 'No trip available for this date.', validate_btn: 'Validate', validate_in_progress_btn: 'Validation in progress ...', unknown_remaining_seats: 'Remaining seats unknown', remaining_seat: '%remainingSeats% remaining seat', remaining_seats: '%remainingSeats% remaining seats', amount_error: 'The amount must be between ', and: 'and', modes: { bus: 'Bus', transport: 'Public transports', airport: 'Airport', walk: 'Walk', metro: 'Subway', tram: 'Tramway', coach: 'Coach', bike: 'Bike', bikepark: 'Bike park', bikesharing: 'Bikesharing', car: 'Car', train: 'Train', railshuttle: 'Rail shuttle', rapidtransit: 'Rapid transit', train_rapidtransit: 'Rapid transit train', shuttle: 'Shuttle', parkandride: 'Park and ride', park: 'Park', airpark: 'Air park', flight: 'Flight', ridesharing: 'Ride sharing', ridesharing_external: 'Ride sharing', ridesharingad: 'Ride sharing', bikesharingstation: 'Self-service bike stations', carrental: 'Car rental', carrentalcheckin: 'Carsharing station', carrentalcheckout: 'Car rental return', ridesharingcheckin: 'Ride sharing check-in', ridesharingcheckout: 'Ride sharing check-out' }, pendingSearch: 'Loading results...', back: 'Back', datetimeChosenValue: 'You have chosen %date% at %time%', dateChosenValue: 'You have chosen the %date%', timeChosenValue: 'VYou have chosen %time%', selectYear: 'Select the year', selectMonth: 'Select the month', selectDay: 'Select the day', selectHour: 'Select the hour', selectMinute: 'Select the minutes', months: { january: 'January', february: 'February', march: 'March', april: 'April', may: 'May', june: 'June', july: 'July', august: 'August', september: 'September', october: 'October', november: 'November', december: 'January' }, autocomplete: { searchLoading: 'Search in progress…', defaultNotice: 'When autocomplete options are available, use the up and down arrow keys to navigate through and enter to select them', selectedValue: '%selectedValue% selected', noSuggestion: "No\u0020suggestions\u0020were\u0020found\u0020for\u0020the\u0020searched\u0020text,\u0020you\u0020can\u0020report\u0020your\u0020difficulties\u0020\u003Ca\u0020href\u003D\u0022https\u003A\/\/www.taneo.nc\/\/en\/contact\u002Dus\u0022\u0020target\u003D\u0022_blank\u0022\u003Evia\u0020this\u0020form\u003C\/a\u003E.", noExactSuggestion: 'No\u0020exact\u0020match\u0020found,\u0020but\u0020here\u0020are\u0020some\u0020suggestions\u0020based\u0020on\u0020what\u0020you\u0020have\u0020entered\u0020in\u0020the\u0020field\u0020or\u0020your\u0020search\u0020history.\u0020You\u0020can\u0020report\u0020your\u0020difficulties\u0020\u003Ca\u0020href\u003D\u0022https\u003A\/\/www.taneo.nc\/\/en\/contact\u002Dus\u0022\u0020\u0020target\u003D\u0022_blank\u0022\u003Evia\u0020this\u0020form\u003C\/a\u003E.', suggestionsFound: '%suggestionsLength% suggestions available. Use the up and down arrow keys to scroll through and enter to select them', resetLabel: 'Clear the field', checkLabel: 'Check the input', resultsFound: '%resultsCount% results found', notice: 'Use down or up keys to browse suggestions. Confirm your choice with enter key, or esc key to close suggestions box.' }, loader: { search: 'Currently researching …', journeySearch: 'Searching for routes in progress …', localitySearch: 'Loading lines passing through this city …', stopareaSearch: 'Loading upcoming departures at this stop …', lineSearch: 'Loading line schedules …', stoppointSearch: 'Loading the schedule of the line for this stop …' }, error: { journey_same_address: 'You have entered the same arrival and departure address. Please enter different addresses.', select_payment_card: 'You must select a payment card' }, direction: 'Direction', forms: { agreeTerms: "You must agree to the terms" }, loading: 'Loading', crop_empty: 'You must validate the selection of the image' }, switchMapMobile: '' }; var journeyConfig = null, ticketingConfig = null, schedulesConfig = null, disruptionConfig = null, mapConfig = null, accountConfig = null, newsConfig = null, alertingConfig = null, widgetConfig; journeyConfig = { placeListPath: oConfig.baseUrl + '/en/places', journeyListPath: oConfig.baseUrl + '/en/journey', placeFavoritePostPath: oConfig.baseUrl + '/en/places/favorite', placeFavoriteDeletePath: oConfig.baseUrl + '/en/places/favorite', journeySchedulePath: oConfig.baseUrl + '/en/journey/schedules', contactUrl: 'https://www.taneo.nc//en/contact-us', transitPassListPath: '/en/transitpass', transitPassPostPath: '/en/transitpass/update', sendLogUrl: oConfig.baseUrl + '/en/sendlog' }; ticketingConfig = { cardinputPath: oConfig.baseUrl + '/en/ticketing/card', reloadPath: oConfig.baseUrl + '/en/ticketing/reload', addAnonymousCardPath: oConfig.baseUrl + '/en/ticketing/associate', catalogReloadPath: oConfig.baseUrl + '/en/ticketing/catalog', catalogMticketPath: oConfig.baseUrl + '/en/ticketing/mticket/catalog', checkcardPath: oConfig.baseUrl + '/en/ticketing/checkcard', paymentTokenPath: oConfig.baseUrl + '/en/ticketing/payment/token', removePaymentTokenPath: oConfig.baseUrl + '/en/ticketing/payment/removetoken', cartRemovePath: oConfig.baseUrl + '/en/ticketing/cart/remove', cartUpdatePath: oConfig.baseUrl + '/en/ticketing/cart/update', cardCheck: oConfig.baseUrl + '/en/ticketing/check', productSheetPath: oConfig.baseUrl + '/en/ticketing/catalog/productsheet', networkSelect: oConfig.baseUrl + '/en/ticketing/networkselect', networkPicker: oConfig.baseUrl + '/en/account/ticketing/networks', modalContent: oConfig.baseUrl + '/en/account/ticketing/modalcontent', supportsProfileContent: oConfig.baseUrl + '/en/account/ticketing/supports/profile', ordersProfileContent: oConfig.baseUrl + '/en/account/ticketing/orders/history/profile', bankAccountContent: oConfig.baseUrl + '/en/ticketing/bank/information/profile', bankAccountDelete: oConfig.baseUrl + '/en/ticketing/bank/information/delete', bankAccountPost: oConfig.baseUrl + '/en/ticketing/bank/information/post', mticketsProfileContent: oConfig.baseUrl + '/en/account/ticketing/mtickets/profile', zouEtudesQuestion: oConfig.baseUrl + '/en/ticketing/home/zouetudes', zouEtudesQuestionBack: oConfig.baseUrl + '/en/ticketing/home/zouetudes/back', zouEtudesCheckCaf: oConfig.baseUrl + '/en/ticketing/zou-etudes/check/caf', zouEtudesStopAreas: oConfig.baseUrl + '/en/ticketing/zou-etudes/stopareas', mTicketFare: oConfig.baseUrl + '/en/ticketing/mticket/fare', mTicketDest: oConfig.baseUrl + '/en/ticketing/mticket/destinations', zouEtudesFileContent: oConfig.baseUrl + '/en/account/ticketing/supports/zou-etudes-file', zouEtudesFileUpdateFiles: oConfig.baseUrl + '/en/account/ticketing/supports/zou-etudes-file/upload', orderInformationsSpecification: oConfig.baseUrl + '/en/ticketing/order/informations/specification', photoIdRatio: 1 }; disruptionConfig = { disruptionPath: oConfig.baseUrl + '/en/traffic-infos', linesAndPoiPath: oConfig.baseUrl + '/en/lines-and-poi' }; alertingConfig = { alertingCreateSubscriptionsPath: oConfig.baseUrl + '/en/alerting/subscription', alertingDeleteSubscriptionsPath: oConfig.baseUrl + '/en/alerting/unsubscribe' }; dataConfig = { findCity: oConfig.baseUrl + '/en/ticketing/find/city' }; maasConfig = { libeloCheckPasswordUrl: 'https://15.prod-sim.australia.instant-system.com/en/libelo/checkPassword', libeloValidateGiftCertificate: 'https://15.prod-sim.australia.instant-system.com/en/libelo/validateGiftCertificate' }; schedulesConfig = { lineDirectionListPath: oConfig.baseUrl + '/en/line/line-direction', lineSchedulesPath: oConfig.baseUrl + '/en/schedules/%5Bissubnet%5D/%5Bismode%5D/line/%5Bislsn%5D/direction/%5Bisdir%5D/%5Bislid%5D', lineSchedulesTodPath: oConfig.baseUrl + '/en/schedules/%5Bissubnet%5D/%5Bismode%5D/line/%5Bislsn%5D/%5Bislid%5D', localityLinesPath: oConfig.baseUrl + '/en/schedules/%5Bislocv%5D/plan-lignes-transport/%5Bislocid%5D', stopareaSchedulesPath: oConfig.baseUrl + '/en/schedules/%5Bislocv%5D/stoparea/%5Bissav%5D/%5Bissaid%5D', stopAreaNextDeparturesPath: oConfig.baseUrl + '/en/next-departures/%5Bislocv%5D/stoparea/%5Bissav%5D/%5Bissaid%5D', stopAreaLinesPath: oConfig.baseUrl + '/en/lines/%5Bislocv%5D/stoparea/%5Bissav%5D/%5Bissaid%5D', getStopPointSchedules: oConfig.baseUrl + '/en/schedules/line/%5Bislid%5D/direction/%5Bisdir%5D/stop/%5Bisspv%5D/%5Bisspid%5D', scheduleListPath: oConfig.baseUrl + '/en/schedule/list', bookingStopAreasListPath: oConfig.baseUrl + '/en/account/booking/stopareas', bookingStopAreasDestinationListPath: oConfig.baseUrl + '/en/account/booking/destination', bookingStopAreasTimeSheetsListPath: oConfig.baseUrl + '/en/account/booking/timesheets', createLineStoppointDirectionSchedulePath: oConfig.baseUrl + '/en/schedules/favorite/line/stoppoint/direction', scheduleFavoriteListPath: oConfig.baseUrl + '/en/schedule/favorite/list', scheduleFavoriteDeletePath: oConfig.baseUrl + '/en/schedule/favorite', scheduleFavoriteLinelistPath: oConfig.baseUrl + '/en/line/favorite/list', scheduleFavoriteLinePostPath: oConfig.baseUrl + '/en/line/favorite', scheduleFavoriteLineDeletePath: oConfig.baseUrl + '/en/line/favorite', displayAllLinesOnEmptyInputFocus: true }; mapConfig = { zoomDelta: 0, geoserver: 'https://prod-gis.instant-system.com/geoserver/ows', maxZoom: 18, minZoom: 7, defaultTileLayer: 'https://new-caledonia-fr-osm.prod.instant-system.com/tile/{z}/{x}/{y}.png', vectorTiles: '1', vectorStyle: 'https://tsgl.prod.instant-system.com/styles/bright-world/style.json', defaultLatLon: [-22.270972, 166.443126], defaultZoom: 12, defaultPoiZoom: 22, stoppointUrl: oConfig.baseUrl + '/fr/map/stop', addressUrl: oConfig.baseUrl + '/fr/map/address', tramUrl: oConfig.baseUrl + '/fr/map/stop', aerialliftUrl: oConfig.baseUrl + '/fr/map/stop', metroUrl: oConfig.baseUrl + '/fr/map/stop', busUrl: oConfig.baseUrl + '/fr/map/stop', coachUrl: oConfig.baseUrl + '/fr/map/stop', trainUrl: oConfig.baseUrl + '/fr/map/stop', parkUrl: oConfig.baseUrl + '/fr/map/park', markersUrl: oConfig.baseUrl + '/en/map/markers', linesShapeUrl: oConfig.baseUrl + '/en/map/linesshape', getAllLinesUrl: oConfig.baseUrl + '/en/lines-and-poi/all-lines', getLinesBySubnetworkUrl: oConfig.baseUrl + '/en/lines-and-poi/line-by-subnetwork', isochronesUrl: oConfig.baseUrl + '/en/map/isochrones', parkandrideUrl: oConfig.baseUrl + '/fr/carte/parkandrides', bikesharingstationUrl: oConfig.baseUrl + '/en/carte/bikesharingstation', carsharingstationUrl: oConfig.baseUrl + '/fr/carte/carsharingstation', securebikeparkUrl: oConfig.baseUrl + '/fr/carte/securebikepark', bikeparkUrl: oConfig.baseUrl + '/fr/carte/bikepark', chargingstationUrl: oConfig.baseUrl + '/fr/carte/chargingstation', bikerentalagencyUrl: oConfig.baseUrl + '/fr/carte/bikerentalagency', ridesharingparkUrl: oConfig.baseUrl + '/fr/map/rideSharingPark', pointofsaleUrl: oConfig.baseUrl + '/fr/carte/pointdeventes', vehicleUrl: oConfig.baseUrl + '/en/map/vehicle', stopAreaUrl: oConfig.baseUrl + '/fr/map/stopArea', lineByStopPointUrl: oConfig.baseUrl + '/en/map/lineByStopPoint', getRideSharingParksUrl: oConfig.baseUrl + '/en/map/ridesharingparks', userPosition: { latitude: '', longitude: '' }, networkPosition: { latitude: -22.270972, longitude: 166.443126, }, icons: '' }; accountConfig = { putAccountAddress: '/en/account/informations', homeUserAccountUrl : '/en/account', loginUrl: 'https://15.prod-sim.australia.instant-system.com/en/account/user/login', resetPasswordUrl: 'https://15.prod-sim.australia.instant-system.com/en/user/resetPassword', referer: '', ordersLoadMorePath: oConfig.baseUrl + '/en/account/ticketing/orders/load', updateAccountImagePath: oConfig.baseUrl + '/en/account/image', isLoggedIn: false, }; widgetConfig = { isWidget: true, widgetRequestReferer: '', isRedirection: true, isInternal: false, isSplit: true, widgetTarget: '', isPartner: '', istoken: '', isfid: "", isfv: "", istid: "", istv: "", islid: '', isdir: '', issaid: '', issav: '', islocid: '', isspid: '', issubnet: '', ismode: '', islsn: '', widgetParams: { css: true, autocompleteModal: false }, }; window.i18n = { showMenu: "Show menu", hideMenu: "Hide menu", datetimeFormat: "YYYY-MM-DDTHH:mm:ssZ", dateFormat: "YYYY-MM-DD", displayedDateFormat: "ddd, MMM Do", labelDateFormat: "dddd, MMMM Do YYYY", timeFormat: "HH:mm", displayedTimeFormat: "hh:mm a", prevDateButtonLabel: "Go to the previous day, %prevDay%", nextDateButtonLabel: "Go to the next day, %nextDay%", prevTimeButtonLabel: "Previous journeys", nextTimeButtonLabel: "Next journeys", departureTime: "Departure time", close: "Close", leaveFrom: "Leave from here", goTo: "Go there", centerHere: "Center here", accessTime: "Access time", address: "address", zoomIn: 'Zoom +', zoomOut: 'Zoom -', start: 'departure', arrival: 'arrival', stage_placeholder: 'stop, address, place...', from : 'From', deleteAccountSuccess: 'Your account has been successfully deleted.', label: { dateNotAvailable: "Schedules for the next dates will be available soon." }, popup: { leave: "Leave from here", goTo: "Go there", stepVia: "Via stage", streetView: "StreetView", favorite: "Add to bookmarks" }, messagesErrors: { errorServer: "An error has occurred please try again later.", emptyVia: "The via step is required.", emptySchedule: "Please enter a city, a stop, or a line.", invalidSchedule: "Incorrect entry, please check your information.", emptyModes: "Please choose a transport mode.", emptyDeparture: "The departure is required.", emptyArrival: "The arrival is required.", emptyDepartureArrival: "The departure and the arrival are required.", invalidDeparture: "Departure incorrect entry, please check your informations.", invalidArrival: "Arrival incorrect entry, please check your informations.", invalidVia: "Via step incorrect entry, please check your informations.", emptyUsername: "The username is required", emptyPassword: "The password is required", wrongUsername: "The user name is incorrect please check your credentials.", infoPassword: "The password must contain at least %nbChars% characters, an uppercase, a lowercase, a number and a special character.", Email: "The email is required", emptyCode: "The checkout code is required", emptyFirstname: "The firstname is required", emptyLastname: "The lastname is required", emptyPassword: "The password is required", emptyPasswordConfirm: "The password confirmation is required", wrongPasswordAndConfirm: "Your passwords don't match each other" }, positive_elevation: "Positive elevation gain ", distance_km: "Distance (km) ", altitude_m: "Altitude (m) ", geolocation_not_supported_by_browser: "Geolocation is not supported by this browser ", favoriteAddButton: "Add", favoriteEditButton: "Edit", favorite: { addModalLabel: "Add a bookmark", addModalValidate: "Validate", editModalLabel: "Edit a bookmark", deleteConfirm: "Are you sure you want to delete this favorite?", deleteLabel: "Delete a favorite", deleteValidate: "Confirm", picto: { 'home': "Home", 'work': "Office", 'unset': "Bookmark" }, editModalTitle: { 'home': "Define a residence place", 'work': "Define an office place" }, editModalSave: "Save", editModalUpdate: "Update", editModalCancel: "Cancel", editModalPlaceholder: "Place address", subscribeAlert: "Add to service status alerts", unsubscribeAlert: "Remove from traffic info alerts", subscribeAlertSuccess: "The traffic info alerts subscription has been successfully completed.", subscribeAlertError: "An error occurred while subscribing to traffic info alerts. Try Again.", unsubscribeAlertSuccess: "Unsubscription to traffic information alerts was successful.", unsubscribeAlertError: "An error occurred while unsubscribing to traffic info alerts. Try Again.", scheduleSubscribeAlertSuccess: "Favorite saved! You can now consult the next departures at this stop.", scheduleSubscribeAlertError: "An error occurred while saving this favorite. Try Again.", scheduleUnsubscribeAlertSuccess: "The judgment has been deleted from your favorites.", scheduleUnsubscribeAlertError: "An error occurred while deleting stopping favorites. Try Again.", noResultMessage: "No registered address", schedule: { addModalLabel: "Add a favorite stop", deleteConfirm: "Are you sure you want to delete this favorite?", linePlaceholder: "search line", directionPlaceholder: "search direction", stoppointPlaceholder: "search stoppoint", lineLabel: "label line", directionLabel: "direction label", stoppointLabel: "stoppoint label", addModalSave: "Add this stop", addModalCancel: "To cancel", addNewButton: "Add a favorite stop", noResultMessage: "No stop recorded. Add a favorite stop to see the next departures at this stop" } }, schedules: { modalInputLabel: 'Schedules', nextDepartures: 'Next departures', stopAreaLines: 'Lines crossing this stop', direction: 'Direction', add_to_favorites: "Add to favorites", remove_from_favorites: "Remove from favorites" }, poi: { totalPark: 'parks', covered: 'covered', notCovered: 'not covered', network: 'Network', availableParks: "%availableParks% parking place(s) available(s)", bikesAvailable: "%availableBikes% bike(s) available(s)", bikeChance: "%chance% % of chance to find a bike", standChance: "%chance% % of chance to find a place", capacity: 'Capacity : %parkCapacity% place(s)', bikepark: 'Bikepark ', bikerentalagency: 'Bike rental agency', plateNumber: 'License plate number: ' }, alt: { park: 'Park selection', parkandride: 'Park selection', bikesharingstation: 'Bike sharing station selection', bikepark: 'Nearests bikeparks', chargingstation: 'Choose an electric station', freefloatingvehiclecheckin: 'Choose another vehicle' }, disruption: { network: 'Network' }, addToCalendar: { addToMyCalendar: 'Add to my calendar', journey: { title: 'Journey to %arrival%', desc: { departure: 'Departure: %departure%', arrival: 'Arrival: %arrival%', from: 'From: %departure%', to: 'To: %arrival%' } } }, travellerProfile: { noSubscription: 'No subscription set up', emptySubscriptionListError: 'The network's subscriptions list of is not available at the moment. Please try again later.', mySubscriptions: 'My subscriptions', publicTransportsTitle: 'Public transport', publicTransportsSubtitle: 'Select your public transport pass', othersModesTitle: 'Other modes', othersModesSubtitle: 'Select your subscription for kickscooters, freefloating bikes, etc.', saveAndLeave: 'Save and leave', continue: 'Continue', back: 'Back', leave: 'Leave', i_understood: 'I got it', configurationRecordingError: 'An error occurred, your settings could not be saved. Please try again later.', configurationSavedTitle: 'Settings saved', configurationSavedMessage: 'The rates displayed in your route searches will now be calculated according to your subscriptions.' }, ticketing: { arrival_city: 'ticketing.zou_etudes.informations_form.journey.arrival_city.label', departure_city: 'ticketing.zou_etudes.informations_form.journey.departure_city.label', arrival_station: 'ticketing.zou_etudes.informations_form.journey.arrival_station.label', departure_station: 'ticketing.zou_etudes.informations_form.journey.departure_station.label' } }; var extend = function(out) { out = out || {}; for (var i = 1; i < arguments.length; i++) { var obj = arguments[i]; if (!obj) { continue; } for (var key in obj) { if (obj.hasOwnProperty(key)) { out[key] = obj[key]; } } } return out; }; extend(window.oConfig, window.oConfig, newsConfig, journeyConfig, ticketingConfig, dataConfig, schedulesConfig, alertingConfig, maasConfig, disruptionConfig, mapConfig, accountConfig, widgetConfig); appendScript('https://cdnjs.cloudflare.com/ajax/libs/jquery-placeholder/2.3.1/jquery.placeholder.min.js', ''); bNeedMoment = bNeedMoment || (usingMomentWidgets.indexOf('schedule') >= 0); //Check if moment is required or already included before adding it if(bNeedMoment && document.querySelector("script[src='" + momentSrc + "']") === null){ var momentScript = appendScript(momentSrc, ''); momentScript.onload = function () { var momentTzScript = appendScript('https://cdnjs.cloudflare.com/ajax/libs/moment-timezone/0.5.26/moment-timezone-with-data.min.js', ''); momentTzScript.onload = function () { appendScript('/js/' + 'schedule-widget.min.js', 'https\u003A\/\/15.prod\u002Dsim.australia.instant\u002Dsystem.com'); } } } else { appendScript('/js/' + 'schedule-widget.min.js', 'https\u003A\/\/15.prod\u002Dsim.australia.instant\u002Dsystem.com'); } googleAnalyticsClickOnWidget(); } function googleAnalyticsClickOnWidget() { var script = document.createElement('script'); script.type = "text/javascript"; script.async = true; script.src = "https://www.googletagmanager.com/gtag/js?id=UA\u002D162192033\u002D16"; document.getElementsByTagName('head')[0].appendChild(script); script.onload = function () { window.dataLayer = window.dataLayer || []; function gtag(){dataLayer.push(arguments);} gtag('js', new Date()); gtag('config', 'UA\u002D162192033\u002D16', { 'anonymize_ip':true, 'cookie_prefix':'IS', 'cookie_expires': '34214400', 'cookie_update': false, 'custom_map': { 'dimension1':'site_tiers' } }); if (!oConfig.isWidget) { return false; } var referer = 'none'; if (oConfig.widgetRequestReferer) { referer = oConfig.widgetRequestReferer; } $(journeySearchId + ' button, ' + scheduleSearchId + ' button').on('click', function() { var label = $(this).data('label'); gtag('event', 'click', { 'event_category': 'widget', 'event_label': label, 'site_tiers': referer }); }); } } function include(library) { switch(library) { case 'jquery': var jqueryScript = document.createElement('script'); jqueryScript.src = 'https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js'; jqueryScript.type = 'text/javascript'; document.getElementsByTagName('body')[0].appendChild(jqueryScript); jqueryScript.onload = function (ev) { loadWidgetScripts(); }; break; case 'leaflet': var leafletScript = document.createElement('script'); leafletScript.src = 'https\u003A\/\/15.prod\u002Dsim.australia.instant\u002Dsystem.com' + '/js/is-leaflet.min.js'; leafletScript.type = 'text/javascript'; document.getElementsByTagName('body')[0].appendChild(leafletScript); leafletScript.onload = function (ev) { loadWidgetScripts(); }; break; default: loadWidgetScripts(); break; } } widgetContainers[0].innerHTML = '\u003Csection\u0020class\u003D\u0022is\u002DWidget\u0022\u003E\n\u0020\u0020\u0020\u0020\u003Cscript\u0020src\u003D\u0022https\u003A\/\/15.prod\u002Dsim.australia.instant\u002Dsystem.com\/js\/common\u002Dbody\u002Dbegin.min.js\u003Fisb\u003Dlocal\u0022\u003E\u003C\/script\u003E\u003Cscript\u0020type\u003D\u0022text\/javascript\u0022\u003Eif\u0028browserName\u0020\u003D\u003D\u003D\u0020undefined\u0029\u0020\u007B\u0020var\u0020browserName\u0020\u003D\u0020\u0027\u0027\u003B\u0020\u007D\u0020if\u0028browserVersion\u0020\u003D\u003D\u003D\u0020undefined\u0029\u0020\u007B\u0020var\u0020browserVersion\u0020\u003D\u0020\u002D1\u003B\u0020\u007D\u0020if\u0028ie\u0020\u003D\u003D\u003D\u0020undefined\u0029\u0020\u007B\u0020var\u0020ie\u0020\u003D\u0020false\u003B\u0020\u007D\u0020if\u0028ie8\u0020\u003D\u003D\u003D\u0020undefined\u0029\u0020\u007B\u0020var\u0020ie8\u0020\u003D\u0020false\u003B\u0020\u007D\u0020if\u0028ie9\u0020\u003D\u003D\u003D\u0020undefined\u0029\u0020\u007B\u0020var\u0020ie9\u0020\u003D\u0020false\u003B\u0020\u007D\u0020if\u0028ie9Inf\u0020\u003D\u003D\u003D\u0020undefined\u0029\u0020\u007B\u0020var\u0020ie9Inf\u0020\u003D\u0020false\u003B\u0020\u007D\u0020if\u0028firefox\u0020\u003D\u003D\u003D\u0020undefined\u0029\u0020\u007B\u0020var\u0020firefox\u0020\u003D\u0020false\u003B\u0020\u007D\u003C\/script\u003E\u003C\u0021\u002D\u002D\u005Bif\u0020IE\u00209\u005D\u003E\u003Cscript\u0020type\u003D\u0022text\/javascript\u0022\u003EbrowserName\u0020\u003D\u0020\u0027MSIE\u0027\u003B\u0020browserVersion\u0020\u003D\u00209\u003B\u0020ie\u0020\u003D\u0020true,\u0020ie9\u0020\u003D\u0020true,\u0020ie9Inf\u0020\u003D\u0020true\u003B\u0020document.body.className\u0020\u002B\u003D\u0020\u0027\u0020is\u002Die9\u0020is\u002Die9Inf\u0027\u003B\u003C\/script\u003E\u003C\u0021\u005Bendif\u005D\u002D\u002D\u003E\u003C\u0021\u002D\u002D\u005Bif\u0020IE\u00208\u005D\u003E\u003Cscript\u0020type\u003D\u0022text\/javascript\u0022\u003EbrowserName\u0020\u003D\u0020\u0027MSIE\u0027\u003B\u0020browserVersion\u0020\u003D\u00208\u003B\u0020ie\u0020\u003D\u0020true,\u0020ie8\u0020\u003D\u0020true,\u0020ie9Inf\u0020\u003D\u0020true\u003B\u0020document.body.className\u0020\u002B\u003D\u0020\u0027\u0020is\u002Die8\u0020is\u002Die9Inf\u0027\u003B\u003C\/script\u003E\u003C\u0021\u005Bendif\u005D\u002D\u002D\u003E\u003C\u0021\u002D\u002D\u005Bif\u0020\u0021IE\u005D\u003E\u003C\u002D\u002D\u003E\u003Cscript\u0020type\u003D\u0022text\/javascript\u0022\u003EbrowserName\u0020\u003D\u0020navigator.sayswho\u005B0\u005D\u003B\u0020browserVersion\u0020\u003D\u0020navigator.sayswho\u005B1\u005D\u003B\u0020firefox\u0020\u003D\u0020\/firefox\/i.test\u0028navigator.userAgent\u0029\u003B\u0020ie\u0020\u003D\u0020\u0028ie9Inf\u0020\u007C\u007C\u0020\u0028\u0021ie9Inf\u0020\u0026\u0026\u0020\u0028navigator.appVersion.indexOf\u0028\u0027MSIE\u002010\u0027\u0029\u0020\u0021\u003D\u003D\u0020\u002D1\u0020\u007C\u007C\u0020\u0028\u0021\u0021window.MSInputMethodContext\u0020\u0026\u0026\u0020\u0021\u0021document.documentMode\u0029\u0029\u0029\u0029\u003B\u0020document.body.className\u0020\u002B\u003D\u0020\u0027\u0020is\u002D\u0027\u0020\u002B\u0020browserName.toLocaleLowerCase\u0028\u0029\u0020\u002B\u0020\u0027\u0020is\u002D\u0027\u0020\u002B\u0020browserName.toLocaleLowerCase\u0028\u0029\u0020\u002B\u0020\u0027\u002D\u0027\u0020\u002B\u0020browserVersion\u003B\u003C\/script\u003E\u003C\u0021\u002D\u002D\u003E\u003C\u0021\u005Bendif\u005D\u002D\u002D\u003E\u0020\u0020\u0020\u0020\u003Cdiv\u0020id\u003D\u0022is\u002DSchedule\u0022\u003E\n\u0020\u0020\u0020\u0020\u0020\u0020\u0020\u0020\n\u0020\u0020\u0020\u0020\n\u0020\u0020\u0020\u0020\n\u003Cform\u0020id\u003D\u0022is\u002DScheduleForm\u0022\u0020autocomplete\u003D\u0022off\u0022\n\u0020\u0020\u0020\u0020role\u003D\u0022search\u0022\u003E\n\u0020\u0020\u0020\u0020\u003Cdiv\u0020class\u003D\u0022is\u002DInputWrapper\u0022\u0020id\u003D\u0022is\u002DSchedulesInput\u002DWrapper\u0022\u003E\n\u0020\u0020\u0020\u0020\u0020\u0020\u0020\u0020\u003Cinput\u0020value\u003D\u0022\u0022\u0020data\u002Dline\u002Did\u003D\u0022\u0022\u0020id\u003D\u0022is\u002DSchedulesInput\u0022\u0020class\u003D\u0022is\u002DInput\u0022\u0020type\u003D\u0022text\u0022\u0020placeholder\u003D\u0022Search\u0020a\u0020line,\u0020a\u0020stop\u0020or\u0020a\u0020city\u0022\u0020autocomplete\u003D\u0022off\u0022\u0020aria\u002Dlabel\u003D\u0022Search\u0020a\u0020line,\u0020a\u0020stop\u0020or\u0020a\u0020city\u0022\u0020aria\u002Dautocomplete\u003D\u0022list\u0022\u0020aria\u002Downs\u003D\u0022is\u002DScheduleInput\u002DSuggestions\u0022\u0020\/\u003E\n\u0020\u0020\u0020\u0020\u003C\/div\u003E\n\u0020\u0020\u0020\u0020\u003Cdiv\u0020class\u003D\u0022is\u002Dmsg\u002Derror\u0022\u0020type\u003D\u0022hidden\u0022\u003E\u003C\/div\u003E\n\u0020\u0020\u0020\u0020\u003Cinput\u0020type\u003D\u0022hidden\u0022\u0020name\u003D\u0022token\u0022\u0020value\u003D\u0022cazAH0sa8CzcS88zk6rR26H_Anex5XLYjV3txUnqScQ\u0022\/\u003E\n\n\u0020\u0020\u0020\u0020\u0020\u0020\u0020\u003Cdiv\u0020id\u003D\u0022is\u002DScheduleSubmitButton\u0022\u0020class\u003D\u0022is\u002DButtonArea\u0022\u003E\n\u0020\u0020\u0020\u0020\u0020\u0020\u0020\u0020\u003Cbutton\u0020data\u002Dlabel\u003D\u0022\u0022\u0020type\u003D\u0022button\u0022\u0020class\u003D\u0022is\u002DButton\u0020is\u002DButton_Search\u0020is\u002Dfull\u002Dwidth\u0022\u003ESearch\u003C\/button\u003E\n\u0020\u0020\u0020\u0020\u003C\/div\u003E\n\u0020\u0020\u0020\u0020\u003C\/form\u003E\u003C\/div\u003E\n\u0020\u0020\u0020\u0020\u003Cdiv\u0020id\u003D\u0022is\u002DWidgetResultsArea\u0022\u003E\n\u0020\u0020\u0020\u0020\u0020\u0020\u0020\u0020\n\u003Cdiv\u0020id\u003D\u0022is\u002DSchedule\u002DResults\u0022\u0020class\u003D\u0022is\u002DWidgetResults\u0020\u0022\u003E\n\u0020\u0020\u0020\u0020\n\u0020\u0020\u0020\u0020\u003C\/div\u003E\n\n\n\u0020\u0020\u0020\u0020\u003C\/div\u003E\n\u0020\u0020\u0020\u0020\u0020\u0020\u0020\u0020\u0020\u0020\u0020\u0020\u0020\u0020\u0020\u0020\u0020\u0020\u0020\u0020\u0020\u0020\u0020\u0020\u003C\/section\u003E'; appendCss('widget-schedule.min.css'); if (!window.jQuery || checkJqueryOlderVersion(window.jQuery.fn.jquery) ) { include('jquery'); } else if (false && !window.L) { hasJquery = true; include('leaflet'); } else { hasJquery = true; include('widgetScripts'); } } })()