var Momondo;(function(n){var t;(function(n){var t=function(){function n(n,t,i,r,u,f,e,o,s,h){this.event="flight search";this.adults=n;this.children=t;this.departureDate=i;this.destinationIata=r;this.directFlightsOnly=u;this.id=f;this.originIata=e;this.returnDate=o;this.returnOrOneWay=s;this.ticketClass=h}return n.prototype.toJSON=function(){return{event:this.event,"flight search - adults":this.adults,"flight search - children":this.children,"flight search - departure date":this.departureDate,"flight search - destination iata":this.destinationIata,"flight search - direct flights only":this.directFlightsOnly,"flight search - id":this.id,"flight search - origin iata":this.originIata,"flight search - return date":this.returnDate,"flight search - return or one-way":this.returnOrOneWay,"flight search - ticket class":this.ticketClass}},n}();n.FlightSearchTag=t})(t=n.GoogleTagManager||(n.GoogleTagManager={}))})(Momondo||(Momondo={})),function(n){var t;(function(n){var t=function(){function n(n,t,i){this.event="flight search - results";this.id=n;this.numberOfOffers=t;this.numberOfFlights=i}return n.prototype.toJSON=function(){return{event:this.event,"flight search - id":this.id,"flight search - results - number of offers":this.numberOfOffers,"flight search - results - number of flights":this.numberOfFlights}},n}();n.FlightSearchResultsTag=t})(t=n.GoogleTagManager||(n.GoogleTagManager={}))}(Momondo||(Momondo={})),function(n){var t;(function(n){var t=function(){function n(n,t,i,r,u,f,e,o){this.event="hotel search";this.adults=n;this.checkInDate=t;this.checkOutDate=i;this.children=r;this.destinationId=u;this.noSpecificDates=f;this.numberOfRooms=e;this.searchId=o}return n.prototype.toJSON=function(){return{event:this.event,"hotel search - adults":this.adults,"hotel search - check-in date":this.checkInDate,"hotel search - check-out date":this.checkOutDate,"hotel search - children":this.children,"hotel search - destination id":this.destinationId,"hotel search - no specific dates":this.noSpecificDates,"hotel search - number of rooms":this.numberOfRooms,"hotel search - id":this.searchId}},n}();n.HotelSearchTag=t})(t=n.GoogleTagManager||(n.GoogleTagManager={}))}(Momondo||(Momondo={})),function(n){var t;(function(n){var t=function(){function n(n,t){this.event="hotel search - results";this.resultsReturned=n;this.searchId=t}return n.prototype.toJSON=function(){return{event:this.event,"hotel search - results returned":this.resultsReturned,"hotel search - id":this.searchId}},n}();n.HotelSearchResultsTag=t})(t=n.GoogleTagManager||(n.GoogleTagManager={}))}(Momondo||(Momondo={})),function(n){var t;(function(n){var t=function(){function n(n){this.event="virtual page view";this.virtualPagePath=n}return n.prototype.toJSON=function(){return{event:this.event,virtualPagePath:this.virtualPagePath}},n}();n.VirtualPageViewTag=t})(t=n.GoogleTagManager||(n.GoogleTagManager={}))}(Momondo||(Momondo={})),function(n){var t;(function(n){var t=function(){function n(n,t,i,r){this.event="";this.oldCurrency=t;this.oldCulture=n;this.newCulture=i;this.newCurrency=r}return n.prototype.shouldPush=function(){return this.oldCurrency!==this.newCurrency||this.oldCulture!==this.newCulture},n.prototype.toJSON=function(){var n={};return this.oldCurrency!==this.newCurrency&&(n["currency - changed to"]=this.newCurrency),this.oldCulture!==this.newCulture&&(n["culture - changed to"]=this.newCulture),n},n}();n.CultureCurrencyChangedTag=t})(t=n.GoogleTagManager||(n.GoogleTagManager={}))}(Momondo||(Momondo={})),function(n){var t;(function(n){var i=function(){function n(){}return n.signedUp="signed up",n.logIn="log in",n.loggedOut="logged out",n}(),t,r;n.UserAuthenticationAction=i;t=function(){function n(){}return n.facebook="facebook",n.google="google",n.email="email",n.loggedOut="logged out",n}();n.UserAuthenticationLabel=t;r=function(){function n(n,r,u){this.event="user authentication";this.eventAction=n;this.eventAction===i.loggedOut?this.eventLabel=t.loggedOut:(this.eventAction=u?i.signedUp:i.logIn,r.LoginType==="FACEBOOK"?this.eventLabel=t.facebook:r.LoginType==="GOOGLE"?this.eventLabel=t.google:r.LoginType==="LOCAL"&&(this.eventLabel=t.email))}return n.prototype.toJSON=function(){var n={event:this.event};return this.eventAction!==""&&(n.eventAction=this.eventAction),this.eventLabel!==""&&(n.eventLabel=this.eventLabel),n},n}();n.UserAuthenticationTag=r})(t=n.GoogleTagManager||(n.GoogleTagManager={}))}(Momondo||(Momondo={})),function(n){var t;(function(t){function i(n){var t=n.toJSON();r(t);dataLayer.push(t);console.log("GTM: "+JSON.stringify(t))}function r(t){n.Membership.isAuthenticated()&&(t.userId=n.Membership.getUserId())}t.push=i})(t=n.GoogleTagManager||(n.GoogleTagManager={}))}(Momondo||(Momondo={}))