/*
* tagContainer Generator v62
* Copyright Commanders Act
* https://www.commandersact.com/fr/
* Generated: 2021-09-21 17:57:45 Europe/Paris
* ---
* Version : 130.02
* IDTC : 1
* IDS : 379
*/
/*!compressed by terser*/ "undefined"==typeof tC&&(void 0!==document.domain&&void 0!==document.referrer||(document=window.document),function(e,t){var n,o=e.document,i=e.location,r=(e.navigator,e.tC,e.$,Array.prototype.push,Array.prototype.slice,Array.prototype.indexOf,Object.prototype.toString),c=(Object.prototype.hasOwnProperty,String.prototype.trim,function(e,t){return new c.fn.init(e,t,n)}),a=/^(?:[^#<]*(<[\w\W]+>)[^>]*$|#([\w\-]*)$)/,d=/^<(\w+)\s*\/?>(?:<\/\1>|)$/,s={};c.fn=c.prototype={constructor:c,init:function(e,t,n){var i,r,s;if(!e)return this;if(e.nodeType)return this.context=this[0]=e,this.length=1,this;if("string"==typeof e){if(!(i="<"===e.charAt(0)&&">"===e.charAt(e.length-1)&&e.length>=3?[null,e,null]:a.exec(e))||!i[1]&&t)return!t||t.tC?(t||n).find(e):this.constructor(t).find(e);if(i[1])return s=(t=t instanceof c?t[0]:t)&&t.nodeType?t.ownerDocument||t:o,e=c.parseHTML(i[1],s,!0),d.test(i[1])&&c.isPlainObject(t)&&this.attr.call(e,t,!0),c.merge(this,e);if((r=o.getElementById(i[2]))&&r.parentNode){if(r.id!==i[2])return n.find(e);this.length=1,this[0]=r}return this.context=o,this.selector=e,this}return c.isFunction(e)?n.ready(e):(undefined!==e.selector&&(this.selector=e.selector,this.context=e.context),c.makeArray(e,this))},each:function(e,t){return c.each(this,e,t)},ready:function(e){return c.ready.promise(e),this}},c.fn.init.prototype=c.fn,c.extend=c.fn.extend=function(){var e,t,n,o,i,r,a=arguments[0]||{},d=1,s=arguments.length,u=!1;for("boolean"==typeof a&&(u=a,a=arguments[1]||{},d=2),"object"==typeof a||c.isFunction(a)||(a={}),s===d&&(a=this,--d);d]","i"),rchecked:/checked\s*(?:[^=]|=\s*.checked.)/i,containersLaunched:{}}),c.extend({inArray:function(e,t,n){var o,i=Array.prototype.indexOf;if(t){if(i)return i.call(t,e,n);for(o=t.length,n=n?n<0?Math.max(0,o+n):n:0;n2?e:2;try{this.tc_hdoc=tC.isCrossDomainContext()?window.document:window.top.document;var t=void 0!==this.tc_hdoc.domain&&this.tc_hdoc.domain.toLowerCase().split("."),n=t.length;return n<2||this.tc_hdoc.domain.match("^(([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5]).){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$")?"":(-1!==["co","com"].indexOf(t[n-2])&&(e+=1),e>n?"":"."+t.slice(n-e,n).join("."))}catch(e){tC.log(["tC.domain error : ",e],"warn")}},tC.isSubdomain=function(e){return e&&"."===e[0]&&(e=e.substr(1,e.length-1)),new RegExp(e+"$").test(tC.tc_hdoc.domain)},tC.isCrossDomainContext=function(){try{return window.top.document,!1}catch(e){return!0}},tC.domain()),tC.setCookie=tC.setCookie||function(e,t,n,o,i,r,c){var a=!1;i||(a=!0,i=tC.domain()),tC.cookieForceSameSite=tC.cookieForceSameSite||"",c=c||tC.cookieForceSameSite;var d=tC.isSubdomain(i);c||(c=d?"Lax":"None"),tC.isCrossDomainContext()&&(c="None"),tC.cookieForceSecure=null!=tC.cookieForceSecure?tC.cookieForceSecure:"",r=null==r?Boolean(Number(tC.cookieForceSecure)):r,"none"===c.toLowerCase()&&(r=!0);var s=new Date;s.setTime(s.getTime()),n&&(n=1e3*n*60*60*24);var u=new Date(s.getTime()+n),_=!0,l=3;do{var p=e+"="+escape(t)+(n?";expires="+u.toGMTString():"")+(o?";path="+o:";path=/")+(i?";domain="+i:"")+(r?";secure":"")+";SameSite="+c;document.cookie=p,_=-1===document.cookie.indexOf(e+"="),i=tC.domain(l++)}while(a&&_&&i&&d)},tC.getCookie=tC.getCookie||function(e){if(null==e)return"";var t="@$".split("").some((function(t){return-1!==e.indexOf(t)}));e=t?e.replace("$","\\$"):encodeURIComponent(e);var n=new RegExp("(?:^|; )"+e+"=([^;]*)").exec(document.cookie);return n?unescape(n[1]):""},tC.isCookieEnabled=function(){if(navigator.cookieEnabled&&-1===window.navigator.userAgent.indexOf("MSIE"))return!0;document.cookie="tc_cookietest=1;";var e=-1!==document.cookie.indexOf("tc_cookietest=");return document.cookie="tc_cookietest=1; expires=Thu, 01-Jan-1970 00:00:01 GMT",e},tC.removeCookie=tC.removeCookie||function(e,t){this.setCookie(e,"",-1,"/",t)},function(){"use strict";var e=window.tC;e.eventTarget=e.eventTarget||{_eventTarget:document.createElement("null"),addEventListener:function(e,t,n){this._eventTarget.addEventListener(e,t,n)},removeEventListener:function(e,t){this._eventTarget.removeEventListener(e,t)},dispatchEvent:function(e){var t;"string"!=typeof e?t=e:(t=document.createEvent("Event")).initEvent(e,!0,!0),this._eventTarget.dispatchEvent(t)}}}(),tC.storage={has:function(){try{return"localStorage"in window&&null!=window.localStorage&&(window.localStorage.setItem("TC_CHECK","1"),window.localStorage.removeItem("TC_CHECK"),!0)}catch(e){return!1}},isAvailable:function(){try{return window.localStorage,!0}catch(e){return!1}},get:function(e){if(this.isAvailable())return window.localStorage.getItem(e)},set:function(e,t){if(this.isAvailable())try{return window.localStorage.setItem(e,t)||!0}catch(e){return!1}},remove:function(e){if(this.isAvailable())return window.localStorage.removeItem(e)||!0},setWithExpiry:function(e,t,n){if(this.isAvailable()){var o=(new Date).getTime(),i=1e3*n*60*60*24,r=JSON.stringify({value:t,expires:o+i});try{window.localStorage.setItem(e,r)}catch(e){}}},getWithExpiry:function(e){if(this.isAvailable()){var t=window.localStorage.getItem(e);if(null==t)return null;var n=(new Date).getTime();return(t=JSON.parse(t)).expires or is not found ! the file "+e+" is not implemented !","warn")}},tC.bypassBookmarklet=!0,tC.extend({crypt:function(e){for(var t,n="",o=0;o=32&&i<=126?((t=i+26)>126&&(t=t%126+32-1),n+=String.fromCharCode(t)):n+=e.charAt(o)}return n},uncrypt:function(e){for(var t,n="",o=0;o=32&&e.charCodeAt(o)<=126?(t=e.charCodeAt(o)>=58&&e.charCodeAt(o)<=126?e.charCodeAt(o)-26:e.charCodeAt(o)-26+94+1,n+=String.fromCharCode(t)):n+=e.charAt(o);return n}}),tC.extend({}),tC.event=tC.event||{},tC.event.didomiConsentListFunctions=tC.event.didomiConsentListFunctions||[],tC.event.didomiConsentListIdTags=tC.event.didomiConsentListIdTags||[],tC.event.didomiConsent=function(e,t){tc_array_events=tC.container_379_1.init_tc_array_events(t);for(var n=0,o=tC.event.didomiConsentListFunctions.length;n0&&(void 0===t[1]?tC.event[e](t[0]):tC.event[e](t[0],t[1]))}))},reload:function(e,t){"boolean"!=typeof t&&(t=!1),t||(tC.container_position=0,tC.reload_events=!0),this.load(arguments[0],!0)},datalayer:function(){"undefined"==typeof tc_vars&&(window.tc_vars=[]);var e="bpp_vehicle_segment|kayak_clickID|delcol|booking_pod_select_category|customer_age|bpp_vehicle_unitprice_tax_incl_EUR|post_booking_ancillaries|client_type|bp_modified_booking|return_location|pickup_location|env_work|env_template|env_country|env_language|env_dnt|page_s1|page_s2|page_n2|page_chap1|page_chap2|page_chap3|page_name|page_xtpage|page_error|tsm_rid|site_banners_impression|site_contract_ID|site_promo|site_promo_id|select_coupon_id|select_vehicle_acriss_ID|select_checkout_country|select_checkout_station_code|select_checkout_date|select_checkout_time|select_checkin_country|select_checkin_station_code|select_checkin_date|select_checkin_time|select_roundtrip|select_country_of_residence|select_duration|select_book_to_rent_window|select_vehicle_acriss|bpp_vehicle_quantity|bpp_vehicule_segment|select_vehicle_type|bpp_vehicle_product_ID|bpp_payment_type|bpp_coupon_id|bpp_coupon_amount_ati|bpp_coupon_currency_eur|bpp_change_checkout_date|bpp_change_checkout_time|bpp_change_checkin_date|bpp_change_checkin_time|bpp_vehicule_category|bpp_vehicule_category_ID|bpp_vehicule_segment_ID|bpp_vehicule_acriss|bpp_vehicule_acriss_ID|bpp_vehicule_product|bpp_vehicule_product_ID|bpp_vehicule_unitprice_ttc|bpp_vehicule_unitprice_ht|bpp_vehicule_discount_ttc|bpp_vehicule_discount_ht|bpp_vehicule_quantity|bpp_vehicule_promo_code|bpp_vehicule_model|bpp_vehicule_position|bpp_vehicule_availability|bpp_vehicule_url_page|bpp_vehicule_url_picture|bpp_vehicule_breadcrumb_id|bpp_vehicule_breadcrumb_label|bpp_extra|bpp_TRE_booked_currency|bpp_TRE_EUR|bpp_booked_currency|bpp_vehicule_upgrade_acriss|bpp_vehicule_upgrade_product|bpp_basket_ID|bpp_coupon_amount_tax_incl|bpp_coupon_currency|bpp_vehicule_unitprice_tax_incl_EUR|bpp_vehicule_unitprice_tax_excl_EUR|bpp_vehicle_product|bpp_vehicle_category|confirmation_order_status|confirmation_booking_date|confirmation_booking_type|confirmation_booking_ID|confirmation_CA_TTC_booked_currency|confirmation_CA_HT_booked_currency|confirmation_CA_TTC_EUR|confirmation_CA_HT_EUR|confirmation_upgrade_added|confirmation_extra_crossell|confirmation_mileage_option|confirmation_payment_type|confirmation_payment_method|confirmation_payment_ID|confirmation_choice_in_payment|confirmation_coupon_discount_TTC|confirmation_xt_tree_structure|confirmation_taxes_EUR|confirmation_taxes_booked_currency|confirmation_coupon_discount_HT|confirmation_total_amount_tax_incl_booked_currency|confirmation_total_amount_tax_excl_booked_currency|confirmation_total_amount_tax_incl_EUR|confirmation_total_amount_tax_excl_EUR|confirmation_coupon_discount_tax_incl_EUR|confirmation_coupon_discount_tax_excl_EUR|customer_driver_id|customer_mmi|customer_DOB|customer_country|customer_gender|customer_newsletter_subscription|customer_privilege_member|customer_flight_number|customer_frequent_traveller|customer_logged|customer_postalcode|customer_zipcode|customer_email|customer_category|customer_recency|customer_frequency|customer_amount|customer_eready|customer_myeuropcar|customer_subscription_date|customer_firstvisit_date|customer_firstorder_date|customer_lastorder_date|customer_authentification_type|customer_new|search_country_of_residence|search_checkout_country|lp_promo_name".split("|");for(var t in e)tc_vars.hasOwnProperty(e[t])||(tc_vars[e[t]]="");window.top.postMessage("TC.EX.EXT_VARS.RELOAD","*")},datastorage:function(){var e;!function(){var e=document;try{e=top.document}catch(e){}var t=e.location.href.split("?");t.shift(),tc_ce_qs=t.join("?");for(var n=tc_ce_qs.split("&"),o=0;o0)for(var t=0;t=3&&days<=4){return 3;}
if(days>=5&&days<=7){return 4;}
if(days>=8&&days<=13){return 5;}
if(days>=14&&days<=20){return 6;}
if(days>=21&&days<=29){return 7;}
if(days>=30){return 8;}}
tC_Conv=function(){var tC_ConvValue="";var value=JSON.parse(tC.uncrypt(tC_varConv));var market=tc_vars.select_checkout_country.toUpperCase();if(market=="GB"){market="G";}
if(market=="BE"){market="E";}
var carType=tc_vars.select_vehicle_acriss_ID.toUpperCase();var days=getDurationID(tc_vars.select_duration);if(typeof(value[market])!="undefined"&&typeof(value[market][carType])!="undefined"&&typeof(value[market][carType][days])!="undefined"){tC_ConvValue=parseFloat(value[market][carType][days]);}else{if(typeof(value[market]['Others'])!="undefined"&&typeof(value[market]['Others'][getDurationID(days)])!="undefined"){tC_ConvValue=parseFloat(value[market]['Others'][getDurationID(days)]);}}
tC.internalvars.ConversionValue=tC_ConvValue;tC.setCookie('tc_prof',tC_ConvValue,0,'/');return tC_ConvValue;}
if(typeof(tc_Market)!="undefined"&&tc_Market!==""&&tc_vars.select_checkout_country!==""&&tc_vars.select_vehicle_acriss_ID!==""&&tc_vars.select_duration!==""){tC.script.add("https://cdn.tagcommander.com/europcar/tC_varConv_"+tc_Market+".js",tC_Conv);}
if(tC.privacyCookieDisallowed){tC.setCookie('TCPID','',-1,'',tC.domain());}
tC.id_site='379';tC.internalFunctions.tc_function_4=function(my_var)
{var diacritics=[/[\300-\306]/g,/[\340-\346]/g,/[\310-\313]/g,/[\350-\353]/g,/[\314-\317]/g,/[\354-\357]/g,/[\322-\330]/g,/[\362-\370]/g,/[\331-\334]/g,/[\371-\374]/g,/[\321]/g,/[\361]/g,/[\307]/g,/[\347]/g];var chars=['A','a','E','e','I','i','O','o','U','u','N','n','C','c'];for(var i=0;i0){tc_average_daily_rate=tc_vars["confirmation_CA_HT_EUR"]/tc_vars["select_duration"];}}
tC.internalvars_379.initiators.var324();tC.internalvars_379_1.listVar.push(324);var tc_timestamp_date="";now=new Date();year=""+now.getFullYear();month=""+(now.getMonth()+1);if(month.length==1){month="0"+month;}
day=""+now.getDate();if(day.length==1){day="0"+day;}
hour=""+now.getHours();if(hour.length==1){hour="0"+hour;}
minute=""+now.getMinutes();if(minute.length==1){minute="0"+minute;}
second=""+now.getSeconds();if(second.length==1){second="0"+second;}
tc_timestamp_date=year+"-"+month+"-"+day+" "+hour+":"+minute+":"+second;tC.internalvars_379.initiators.var353=function(){tC.internalvars.EBSS_Country_ID="";if(tc_fulldomain=="www.europcar.com.au"){tC.internalvars.EBSS_Country_ID="1";}
if(tc_fulldomain=="www.europcar.be"){tC.internalvars.EBSS_Country_ID="2";}
if(tc_fulldomain=="www.europcar.com"){tC.internalvars.EBSS_Country_ID="3";}
if(tc_fulldomain=="www.europcar.de"){tC.internalvars.EBSS_Country_ID="4";}
if(tc_fulldomain=="www.europcar.es"){tC.internalvars.EBSS_Country_ID="5";}
if(tc_fulldomain=="www.europcar.fr"){tC.internalvars.EBSS_Country_ID="6";}
if(tc_fulldomain=="www.europcar.it"){tC.internalvars.EBSS_Country_ID="7";}
if(tc_fulldomain=="www.europcar.co.nz"){tC.internalvars.EBSS_Country_ID="8";}
if(tc_fulldomain=="www.europcar.pt"){tC.internalvars.EBSS_Country_ID="9";}
if(tc_fulldomain=="www.europcar.co.uk"){tC.internalvars.EBSS_Country_ID="10";}}
tC.internalvars_379.initiators.var353();tC.internalvars_379_1.listVar.push(353);tC.internalvars_379.initiators.var364=function(){var dcmType;var hostname=document.location.hostname;switch(hostname){case'www.europcar.com.au':dcmType='com_au-';break;case'www.europcar.be':dcmType='be-';break;case'www.europcar.com':dcmType='com-';break;case'www.europcar.de':dcmType='de-';break;case'www.europcar.es':dcmType='es-';break;case'www.europcar.fr':dcmType='fr-';break;case'www.europcar.ie':dcmType='ie-';break;case'www.europcar.it':dcmType='it-';break;case'www.europcar.co.nz':dcmType='co_nz-';break;case'www.europcar.pt':dcmType='pt-';break;case'www.europcar.co.uk':dcmType='co_uk-';break;case'cars.easyjet.com':dcmType='easy-';break;default:dcmType='';}
tC.internalvars.dcmType=dcmType;}
tC.internalvars_379.initiators.var364();tC.internalvars_379_1.listVar.push(364);tC.internalvars_379.initiators.var365=function(){var concat_extra_products="";for(var i=0;i=480)&&(screen.height>=800))||((screen.width>=800)&&(screen.height>=480))||navigator.userAgent.match(/ipad/gi)){tC.internalvars.deviceType="tablet";}else{tC.internalvars.deviceType="mobile";}}else{tC.internalvars.deviceType="desktop";}}
tC.internalvars_379.initiators.var368();tC.internalvars_379_1.listVar.push(368);var tc_at_S1=tc_vars["page_s1"];if(tc_at_S1=="europcar.co.uk_comup"){tc_at_S1="510690";}
tc_checkout_and_booking_ID=tc_vars["select_checkout_country"]+'-'+tc_vars["confirmation_booking_ID"]
var tc_timestamp=Math.round(new Date().getTime()/1000.0);var tc_dedup_channel=tc_last_event_all;if(tc_last_event_all=="")
{tc_dedup_channel="direct";}
var tc_dedup_source=tc_last_event_all_detail;if(tc_last_event_all_detail=="")
{tc_dedup_source="direct";}
var tc_vehicle_acriss=tc_vars["bpp_vehicule_upgrade_acriss"];if(!tc_vars["bpp_vehicule_upgrade_acriss"].length){tc_vehicle_acriss=tc_vars["select_vehicle_acriss"];}
tc_impact_radius_eventID="2504";if(tc_vars["search_checkout_country"]=="GB"&&tc_vars["bpp_payment_type"]=="1"){tc_impact_radius_eventID="2332";}
if(tc_vars["search_checkout_country"]=="GB"&&tc_vars["bpp_payment_type"]=="2"){tc_impact_radius_eventID="4093";}
var tc_quantcast_event;if(tc_vars["page_name"]=="home_page"){tc_quantcast_event="Home Page";}
else if(tc_vars["page_chap1"]=="step2"){tc_quantcast_event="Search Results";}
else if(tc_vars["page_chap1"]=="step3"){tc_quantcast_event="Check Out";}
else{tc_quantcast_event="";}
var tc_array_url_vars=(function(){var qs=window.location.search;var params=[],tokens,re=/[?&]?([^=]+)=([^&]*)/g;while(tokens=re.exec(qs)){params[tokens[1]]=tokens[2];}
return params;})();var tc_fulldomain=window.location.hostname;var tc_maindomain=(function(){var tc_maindomain='';var tmp1=window.location.hostname.split('.');if(tmp1[tmp1.length-2].length<=3){tc_maindomain=tmp1[tmp1.length-3]+'.'+tmp1[tmp1.length-2]+'.'+tmp1[tmp1.length-1];}else{tc_maindomain=tmp1[tmp1.length-2]+'.'+tmp1[tmp1.length-1];}
return tc_maindomain;})();var tc_pathname=window.location.pathname;var tc_random_tmp=new String(Math.random());var tc_random=tc_random_tmp.substring(2,11);var tc_referrer=document.referrer;var tc_ssl=(("https:"==document.location.protocol)?"yes":"no");var tc_title=document.title;var tc_url=document.location.href;var tc_url_1=(function(){var tc_url_1_tmp=document.location.href.split('?');var tc_url_1_tmp2=tc_url_1_tmp[0].split('/');return tc_url_1_tmp2[3];})();var tc_url_2=(function(){var tc_url_2_tmp=document.location.href.split('?');var tc_url_2_tmp2=tc_url_2_tmp[0].split('/');return tc_url_2_tmp2[4];})();tc_url_3=(function(){var tc_url_3_tmp=document.location.href.split('?');var tc_url_3_tmp2=tc_url_3_tmp[0].split('/');return tc_url_3_tmp2[5];})();var tc_url_no_query=(function(){var temp_tc_url_no_query=document.location.href.split('?');return temp_tc_url_no_query[0];})();var tc_url_query_string=(function(){var temp_tc_url_query_string=document.location.href.split('?');temp_tc_url_query_string.shift();return temp_tc_url_query_string.join('?');})();tC.internalvars_379.initiators.var295=function(){tC.internalvars.acrissTypeUK="car";if(tc_vars["select_vehicle_acriss"]){if(tc_vars["select_vehicle_acriss"].charAt(1)=="V"||tc_vars["select_vehicle_acriss"].charAt(1)=="J"||tc_vars["select_vehicle_acriss"].charAt(1)=="P"||tc_vars["select_vehicle_acriss"].charAt(1)=="Q"||tc_vars["select_vehicle_acriss"].charAt(1)=="R"||tc_vars["select_vehicle_acriss"].charAt(1)=="H"||tc_vars["select_vehicle_acriss"].charAt(1)=="K"){tC.internalvars.acrissTypeUK="van";}
else if(tc_vars["select_vehicle_acriss"].charAt(1)=="Y"){tC.internalvars.acrissTypeUK="bike";}}}
tC.internalvars_379.initiators.var295();tC.internalvars_379_1.listVar.push(295);tC.internalvars_379.initiators.var301=function(){tC.internalvars.corporateStatus="";var corporateCountries=["AU","BE","COM","DE","ES","FR","GB","IT","NZ","PT"];for(var i=0;i