1 2 window.innovationContent = [{"content_html":"<style>.cmp-tabs{display:block!important}@media only screen and (max-width:767px){body div.cc-banner .cc-compliance{padding:10px 0}body div.cc-banner .cc-message{padding:14px 0 0;margin-bottom:0}}</style>","config_id":"Global-CSS","sched_startTime":0,"firing_conditions":"true","firing_pages":[""],"firing_percentTarget":100,"firing_pos":"ALL","sched_endTime":0,"content_bundlePayloadByPages":false,"config_category":"base","firing_oncePerPage":true,"config_category_id":"base-Global-CSS","firing_triggers":["pageView"]},{"content_html":"<script>window.alwaysOnCdpValidationList||(window.alwaysOnCdpValidationList=[\"77694\",\"2281954\",\"2282010\",\"2282180\",\"2282241\",\"2282181\",\"1599215\",\"228408\",\"944949\",\"944907\",\"944908\",\"944909\",\"944910\",\"944911\",\"944912\",\"944913\",\"944914\",\"944915\",\"944916\",\"944917\",\"944918\",\"944919\",\"944920\",\"944921\",\"944922\",\"944923\",\"944924\",\"944925\",\"944926\",\"944927\",\"944928\",\"944929\",\"944930\",\"944931\",\"944932\",\"944933\",\"944934\",\"944935\",\"944891\",\"2285445\",\"2230935\",\"2230934\",\"2230933\",\"2258947\",\"2182937\",\"2283347\",\"152445\",\"2168703\",\"2283348\",\"2283349\",\"876115\",\"771011\",\"631292\",\"751289\",\"947822\",\"739641\",\"751334\",\"770809\",\"751336\",\"866777\",\"927142\",\"2168701\",\"1993729\",\"2160179\",\"2284577\",\"2283336\",\"22470\",\"13252\",\"2283350\",\"2283338\",\"2168702\",\"2283339\",\"2283340\",\"2283341\",\"2283342\",\"2283343\",\"2283344\",\"2283345\",\"2283346\",\"946202\",\"2284559\",\"2284560\",\"2284561\",\"2284563\",\"2168966\",\"2002965\",\"2289511\",\"598971\",\"598793\",\"946192\",\"2288099\",\"875632\",\"771867\",\"771876\",\"946190\",\"946190\",\"2288107\",\"2284564\",\"2284565\",\"2284566\",\"2284567\",\"2284569\",\"777448\",\"2288108\",\"2160176\",\"2284859\",\"2157026\",\"2285059\",\"2284860\",\"2284856\",\"2284855\",\"2284852\",\"2284851\",\"2284843\",\"2284862\",\"2284834\",\"2289395\",\"2284858\",\"2284840\",\"2284839\",\"2284853\",\"2284844\",\"2284854\",\"2284847\",\"2284845\",\"2284861\",\"2284841\",\"2284838\",\"2284832\",\"2284842\",\"2284857\",\"2284850\",\"2284848\",\"2284846\",\"2284849\",\"2284831\",\"2284835\",\"2284836\",\"2160177\",\"1605301\",\"2168967\",\"2284833\",\"2284570\",\"2284573\",\"946210\",\"731926\",\"946200\",\"821474\",\"883942\",\"946201\",\"595242\",\"2284576\",\"1485032\",\"946203\",\"946204\",\"2284580\",\"946206\",\"883927\",\"832257\",\"946207\",\"946208\",\"877163\",\"877151\",\"771884\",\"877154\",\"877166\",\"879625\",\"925133\",\"884033\",\"945610\",\"945611\",\"945586\",\"945587\",\"943099\",\"751296\",\"879799\",\"927141\",\"871470\",\"751309\",\"751323\",\"751324\",\"751326\",\"849565\",\"945588\",\"751327\",\"751330\",\"751333\",\"945589\",\"927145\",\"945590\",\"945781\",\"770985\",\"849563\",\"849564\",\"866776\",\"880065\",\"751343\",\"927143\",\"875004\",\"808987\",\"946209\",\"2288109\",\"2002317\",\"2284863\",\"537881\",\"883928\",\"879617\",\"2168985\",\"2285031\",\"2285032\",\"2285033\",\"2285034\",\"2285035\",\"2284864\",\"2284865\",\"2284866\",\"2284867\",\"947748\",\"946236\",\"946235\",\"751441\",\"879629\",\"661345\",\"883963\",\"883970\",\"945583\",\"945584\",\"943085\",\"947519\",\"2285036\",\"2285037\",\"2285038\",\"2285039\",\"946238\",\"946237\",\"646457\",\"646466\",\"2285043\",\"2285044\",\"2285045\",\"2285046\",\"2285047\",\"878212\",\"879621\",\"943023\",\"883387\",\"775594\",\"879630\",\"800066\",\"901438\",\"946242\",\"883929\",\"2168986\",\"84402\",\"946239\",\"946240\",\"594537\",\"943022\",\"2285048\",\"2288112\",\"2288110\",\"2002313\",\"698810\",\"775596\",\"883931\",\"879623\",\"946243\",\"878591\",\"946244\",\"549740\",\"2284578\",\"2284579\",\"775597\",\"947750\",\"946246\",\"946247\",\"883932\",\"946249\",\"946250\",\"946245\",\"2168990\",\"2002314\",\"883934\",\"726634\",\"946253\",\"947520\",\"946271\",\"903216\",\"904057\",\"946272\",\"883936\",\"933039\",\"2285040\",\"2285041\",\"876892\",\"947521\",\"876897\",\"925865\",\"879627\",\"876895\",\"2285042\",\"876808\",\"946251\",\"883933\",\"925867\",\"751461\",\"751456\",\"751454\",\"771212\",\"883908\",\"947518\",\"2285055\",\"2168992\",\"2285050\",\"2285051\",\"2285053\",\"946270\",\"508089\",\"879631\",\"883935\",\"943025\",\"2285054\",\"896513\",\"879619\",\"784335\",\"947515\",\"947516\",\"947517\",\"595518\",\"877297\",\"877296\",\"877295\",\"751476\",\"943077\",\"2284581\",\"2284582\",\"2285056\",\"2285057\",\"2285058\",\"946273\",\"947866\",\"952788\",\"952812\",\"952789\",\"952804\",\"875004\",\"952813\",\"952791\",\"952863\",\"952805\",\"952803\",\"952792\",\"952793\",\"952794\",\"952795\",\"952806\",\"952797\",\"952798\",\"952800\",\"952807\",\"952837\",\"2300900\",\"2300902\",\"2300901\",\"2300206\",\"2300208\",\"2300209\",\"2300211\",\"2300213\",\"2300214\",\"2300195\",\"2300196\",\"2300197\",\"2300198\",\"2300199\"])</script>","config_id":"always-on-cdp-validation-list","sched_startTime":0,"firing_conditions":"!window.alwaysOnCdpValidationList","firing_pages":[""],"firing_percentTarget":100,"firing_pos":"ALL","sched_endTime":0,"content_bundlePayloadByPages":false,"config_category":"innovation","firing_oncePerPage":true,"config_category_id":"innovation-always-on-cdp-validation-list","firing_triggers":["pageView"]},{"content_html":"<script>window.currExchangeRates={AED:.27229407760381213,AFN:.015625002197265935,ALL:.012389717882159115,AMD:.002744275781011008,ANG:.5586592178770949,AOA:.001095290251916758,ARS:.0006558407867474473,AUD:.7017730999142433,AWG:.5555555555555556,AZN:.5882352941176471,BAM:.5821684143362464,BBD:.5,BDT:.0081183935861833,BGN:.5817284898619267,BHD:2.6498278936783053,BIF:.0003316823051661762,BMD:1,BND:.7819189071901353,BOB:.09076716407072577,BRL:.19297940909704936,BSD:1,BTC:83089.92831250255,BTN:.010432046001817701,BWP:.0733643689068599,BYN:.3306467185297066,BZD:.4967130017111763,CAD:.7062760395147318,CDF:.0004324260349580506,CHF:1.2043941114763101,CLF:41.06438896189225,CLP:.0010399999995008,CNH:.14888412095762862,CNY:.14894028983780402,COP:.00029820492382151396,CRC:.0021972793225903866,CUC:1,CUP:.038834951456310676,CVE:.
2010326032817805112,CZK:.046681309037268026,DJF:.005610046057580526,DKK:.15219534942758567,DOP:.016798908514437747,DZD:.007474962687228754,EGP:.019337759101799766,ERN:.06666666666666667,ETB:.006158218830286239,EUR:1.137705611846701,FJD:.44708722671793266,FKP:1.3241841039643423,GBP:1.3241841039643423,GEL:.38351352076917467,GGP:1.3241841039643423,GHS:.08600997079187402,GIP:1.3241841039643423,GMD:.01360596031405332,GNF:.00011359036312771974,GTQ:.13081168519854008,GYD:.0047746043910814285,HKD:.12749166523238542,HNL:.037221080114057295,HRK:.1510067848858517,HTG:.007633515646623126,HUF:.003102633117853395,IDR:55591305020506984e-21,ILS:.3280032800328003,IMP:1.3241841039643423,INR:.010416473202377917,IQD:.0007625856401975997,IRR:7.274843590862797e-7,ISK:.008303578842481108,JEP:1.3241841039643423,JMD:.006314413768973242,JOD:1.4104372355430184,JPY:.006349152599900724,KES:.007714858818083628,KGS:.011435341150532545,KHR:.0002456549870583634,KMF:.0023126753652585124,KPW:.0011111111111111111,KRW:.0007337324619763367,KWD:3.238719539842728,KYD:1.1987949712948545,KZT:.002254908290444527,LAK:4453796940175889e-20,LBP:11155412276999548e-21,LKR:.0030254166706703014,LRD:.005807921860219292,LSL:.06123100277523397,LYD:.15625290532745845,MAD:.10410247014341158,MDL:.05639969925424369,MGA:.0002262729849319968,MKD:.018492976635621952,MMK:.0004762018143289126,MNT:.0002778549597110308,MOP:.1236496071837454,MRU:.02483272243594505,MUR:.021065936824645814,MVR:.06470104880400111,MWK:.0005761336654439717,MXN:.05627407545633211,MYR:.24482201439553444,MZN:.015666614199175713,NAD:.061226162894532976,NGN:.0007529043284469842,NIO:.02714890432859144,NOK:.10499506680678608,NPR:.006520280756247461,NZD:.5664948865339067,OMR:2.6007937622562407,PAB:1,PEN:.29427404505865323,PGK:.22422902214171903,PHP:.01600128061449014,PKR:.0036052130226639553,PLN:.2599766021058105,PYG:.0001694881576653092,QAR:.2740642828738052,RON:.21560087965158897,RSD:.009691650261448742,RUB:.011883489327105498,RWF:.0006759383147048598,SAR:.2662396892024364,SBD:.12499187552809067,SCR:.07187010542122674,SDG:.0016625103906899418,SEK:.10058598376562339,SGD:.7821292844064538,SHP:1.3241841039643423,SLE:.04056795131845842,SLL:47688309210996924e-21,SOS:.0017479523747372448,SRD:.026548085219353555,SSP:.0076769537847382165,STD:44879677584396233e-21,STN:.0464748976065056,SVC:.11416975695656309,SYP:7691124442393478e-20,SZL:.06124549700138984,THB:.02977963073257892,TJS:.10829022299555881,TMT:.2849002849002849,TND:.3374529590575074,TOP:.41532378642389606,TRY:.02041549534463418,TTD:.1468685423737775,TWD:.03146395390329384,TZS:.00037807397773522344,UAH:.02230964330316043,UGX:.0002550632358730103,USD:1,UYU:.02494614812638587,UZS:8441024724444634e-20,VES:.0011711892138158164,VND:3850999999948936e-20,VUV:.008443806467955754,WST:.3635173943073176,XAF:.0017344204787271783,XAG:61.45673353773844,XAU:4164.237528108603,XCD:.37002090618119926,XCG:.5543132779093964,XDR:1.364412838579046,XOF:.0017344204787271783,XPD:1229.5585884667405,XPF:.009533970011850725,XPT:1729.9541562148604,YER:.004226149724032423,ZAR:.061006246795646896,ZMW:.051212835165600545,ZWG:.03747002398081535,ZWL:.003105590062111801}</script>","config_id":"currency-conversion","sched_startTime":0,"firing_conditions":"!window.currExchangeRates","firing_pages":[""],"firing_percentTarget":100,"firing_pos":"ALL","sched_endTime":0,"content_bundlePayloadByPages":false,"config_category":"innovation","firing_oncePerPage":true,"config_category_id":"innovation-currency-conversion","firing_triggers":["pageView"]},{"content_html":"<script>var _error;!window.errorOptRef&&window.location.hostname&&\"www.hertz.com\"==window.location.hostname&&(window.errorOptRef=!0,_error=console.error,console.error=function(){var e=arguments.length&&1<arguments.length?JSON.stringify(arguments):arguments[0]&&arguments[0].message?arguments[0].message:\"string\"==typeof arguments[0]?arguments[0]:JSON.stringify(arguments[0]);return window.dataLayer&&window.dataLayer.push({event:\"error\",error_type:\"loggedError\",error_message:e}),window.ecom_fpt&&window.ecom_fpt.pushToQueue({ts:window.ecom_fpt.getTimestamp(),en:\"site_error\",ep:{event_category:\"Error\",event_action:\"loggedError\",event_label:e,error_message:e},up:{}}),_error.apply(console,arguments)},window.addEventListener(\"error\",function(e){var r=arguments.length&&1<arguments.length?JSON.stringify(arguments):e&&e.message?e.message:\"string\"
2==typeof e?e:JSON.stringify(e);window.dataLayer&&window.dataLayer.push({event:\"error\",error_type:\"uncaughtError\",error_message:r}),window.ecom_fpt&&window.ecom_fpt.pushToQueue({ts:window.ecom_fpt.getTimestamp(),en:\"site_error\",ep:{event_category:\"Error\",event_action:\"uncaughtError\",event_label:r,error_message:r},up:{}})})),window.setupRMCError||window.setupWidgetError||(window.setupRMCError=function(e){waitForAddedNode({selector:\"rmc-section\",type:\"id\",parent:e,recursive:!0,continuously:!0,done:function(e){waitForAddedNode({selector:\"modify-error\",type:\"id\",parent:e,recursive:!0,continuously:!0,done:function(e){var r;$(e).is(\":empty\")||(1<$(e).find(\"ul li\").length?$(e).find(\"ul li\").each(function(){var e=$(this).text()==$(this).text().split(\"[\").pop().split(\"]\")[0]?\"no err code\":$(this).text().split(\"[\").pop().split(\"]\")[0];window.dataLayer&&window.dataLayer.push({event:\"error\",error_type:\"resWidget - modify \"+e,error_message:$(this).text()}),window.ecom_fpt&&window.ecom_fpt.pushToQueue({ts:window.ecom_fpt.getTimestamp(),en:\"site_error\",ep:{event_category:\"Error\",event_action:\"resWidget - modify \"+e,event_label:$(this).text(),error_message:$(this).text()},up:{}})}):1==$(e).find(\"ul li\").length?(r=$(e).find(\"ul li\").text()==$(e).find(\"ul li\").text().split(\"[\").pop().split(\"]\")[0]?\"no err code\":$(e).find(\"ul li\").text().split(\"[\").pop().split(\"]\")[0],window.dataLayer&&window.dataLayer.push({event:\"error\",error_type:\"resWidget - modify \"+r,error_message:$(e).find(\"ul li\").text()}),window.ecom_fpt&&window.ecom_fpt.pushToQueue({ts:window.ecom_fpt.getTimestamp(),en:\"site_error\",ep:{event_category:\"Error\",event_action:\"resWidget - modify \"+r,event_label:$(e).find(\"ul li\").text(),error_message:$(e).find(\"ul li\").text()},up:{}})):(window.dataLayer&&window.dataLayer.push({event:\"error\",error_type:\"resWidget - modify UNK\",error_message:\"No error msg found\"}),window.ecom_fpt&&window.ecom_fpt.pushToQueue({ts:window.ecom_fpt.getTimestamp(),en:\"site_error\",ep:{event_category:\"Error\",event_action:\"resWidget - modify UNK\",event_label:\"No error msg found\",error_message:\"No error msg found\"},up:{}})))}})}})},window.setupWidgetError=function(d,n,s){var c=[\"Sunday\",\"Monday\",\"Tuesday\",\"Wednesday\",\"Thursday\",\"Friday\",\"Saturday\"];waitForAddedNode({selector:\"res-form\",type:\"id\",parent:d,recursive:!0,continuously:!0,done:function(e){var r,o,t,i,p,a;s&&($(\"#error-list\").is(\":empty\")||(r=($(\"#one-way\").is(\":checked\")?$(\"#dropoff-location\"):$(\"#pickup-location\")).val(),a=$(\"#pickup-date-box\").text().trim().length&&sitePos&&\"US\"==sitePos?new Date($(\"#pickup-date-box\").text().trim()):new Date($(\"#pickup-date-box\").text().trim().split(\"/\")[2],$(\"#pickup-date-box\").text().trim().split(\"/\")[1]-1,$(\"#pickup-date-box\").text().trim().split(\"/\")[0]),o=$(\"#pickup-date-box\").text().trim().length&&a?a.toISOString().split(\"T\")[0]:\"\",t=o&&c?c[a.getDay()]:\"\",a=$(\"#dropoff-date-box\").text().trim().length&&sitePos&&\"US\"==sitePos?new Date($(\"#dropoff-date-box\").text().trim()):new Date($(\"#dropoff-date-box\").text().trim().split(\"/\")[2],$(\"#dropoff-date-box\").text().trim().split(\"/\")[1]-1,$(\"#dropoff-date-box\").text().trim().split(\"/\")[0]),i=$(\"#dropoff-date-box\").text().trim().length?a.toISOString().split(\"T\")[0]:\"\",p=i&&c?c[a.getDay()]:\"\",1<$(\"#error-list ul li\").length?$(\"#error-list ul li\").each(function(){var e=$
2(this).text()==$(this).text().split(\"[\").pop().split(\"]\")[0]?\"no err code\":$(this).text().split(\"[\").pop().split(\"]\")[0];window.dataLayer&&window.dataLayer.push({event:\"error\",error_type:\"resWidget - \"+e,error_message:$(this).text(),error_pickupLocationName:$(\"#pickup-location\").val(),error_pickupDate:o,pickupTime24HR:$(\"#pickup-time :selected\").val(),pickupDoW:t,error_dropoffLocationName:r,error_dropoffDate:i,dropoffTime24HR:$(\"#dropoff-time :selected\").val(),dropoffDoW:p}),window.ecom_fpt&&window.ecom_fpt.pushToQueue({ts:window.ecom_fpt.getTimestamp(),en:\"site_error\",ep:{event_category:\"Error\",event_action:\"resWidget - \"+e,event_label:$(this).text(),error_message:$(this).text(),error_pickupLocationName:$(\"#pickup-location\").val(),error_pickupDate:o,error_pickupTime24HR:$(\"#pickup-time :selected\").val(),error_pickupDoW:t,error_dropoffLocationName:r,error_dropoffDate:i,error_dropoffTime24HR:$(\"#dropoff-time :selected\").val(),error_dropoffDoW:p},up:{}})}):1==$(\"#error-list ul li\").length?(a=$(\"#error-list ul li\").text()==$(\"#error-list ul li\").text().split(\"[\").pop().split(\"]\")[0]?\"no err code\":$(\"#error-list ul li\").text().split(\"[\").pop().split(\"]\")[0],window.dataLayer&&window.dataLayer.push({event:\"error\",error_type:\"resWidget - \"+a,error_message:$(\"#error-list ul li\").text(),error_pickupLocationName:$(\"#pickup-location\").val(),error_pickupDate:o,pickupTime24HR:$(\"#pickup-time :selected\").val(),pickupDoW:t,error_dropoffLocationName:r,error_dropoffDate:i,dropoffTime24HR:$(\"#dropoff-time :selected\").val(),dropoffDoW:p}),window.ecom_fpt&&window.ecom_fpt.pushToQueue({ts:window.ecom_fpt.getTimestamp(),en:\"site_error\",ep:{event_category:\"Error\",event_action:\"resWidget - \"+a,event_label:$(\"#error-list ul li\").text(),error_message:$(\"#error-list ul li\").text(),error_pickupLocationName:$(\"#pickup-location\").val(),error_pickupDate:o,error_pickupTime24HR:$(\"#pickup-time :selected\").val(),error_pickupDoW:t,error_dropoffLocationName:r,error_dropoffDate:i,error_dropoffTime24HR:$(\"#dropoff-time :selected\").val(),error_dropoffDoW:p},up:{}})):(window.dataLayer&&window.dataLayer.push({event:\"error\",error_type:\"resWidget - UNK\",error_message:\"No error msg found\",error_pickupLocationName:$(\"#pickup-location\").val(),error_pickupDate:o,pickupTime24HR:$(\"#pickup-time :selected\").val(),pickupDoW:t,error_dropoffLocationName:r,error_dropoffDate:i,dropoffTime24HR:$(\"#dropoff-time :selected\").val(),dropoffDoW:p}),window.ecom_fpt&&window.ecom_fpt.pushToQueue({ts:window.ecom_fpt.getTimestamp(),en:\"site_error\",ep:{event_category:\"Error\",event_action:\"resWidget - UNK\",event_label:\"No error msg found\",error_message:\"No error msg found\",error_pickupLocationName:$(\"#pickup-location\").val(),error_pickupDate:o,error_pickupTime24HR:$(\"#pickup-time :selected\").val(),error_pickupDoW:t,error_dropoffLocationName:r,error_dropoffDate:i,error_dropoffTime24HR:$(\"#dropoff-time :selected\").val(),error_dropoffDoW:p},up:{}}))),new MutationObserver(function(e){e.forEach(function(e){var r,o,t,i,p;\"error-list\"==e.target.id&&0<e.addedNodes.length&&($(\"#error-list\").is(\":empty\")||(r=($(\"#one-way\").is(\":checked\")?$(\"#dropoff-location\"):$(\"#pickup-location\")).val(),e=$(\"#pickup-date-box\").text().trim().length&&sitePos&&\"US\"==sitePos?new Date($(\"#pickup-date-box\").text().trim()):new Date($(\"#pickup-date-box\").text().trim().split(\"/\")[2],$(\"#pickup-date-box\").text().trim().split(\"/\")[1]-1,$(\"#pickup-date-box\").text().trim().split(\"/\")[0]),o=$(\"#pickup-date-box\").text().trim().length&&e?e.toISOString().split(\"T\")[0]:\"\",t=o&&c?c[e.getDay()]:\"\",e=$(\"#dropoff-date-box\").text().trim().length&&sitePos&&\"US\"==sitePos?new Date($(\"#dropoff-date-box\").text().trim()):new Date($(\"#dropoff-date-box\").text().trim().split(\"/\")[2],$(\"#dropoff-date-box\").text().trim().split(\"/\")[1]-1,$(\"#dropoff-date-box\").text().trim().split(\"/\")[0]),i=$(\"#dropoff-date-box\").text().trim().length?e.toISOString().split(\"T\")[0]:\"\",p=i&&c?c[e.getDay()]:\"\",1<$(\"#error-list ul li\").length?$(\"#error-list ul li\").each(function(){var e=$
2(this).text()==$(this).text().split(\"[\").pop().split(\"]\")[0]?\"no err code\":$(this).text().split(\"[\").pop().split(\"]\")[0];window.dataLayer&&window.dataLayer.push({event:\"error\",error_type:\"resWidget - \"+e,error_message:$(this).text(),error_pickupLocationName:$(\"#pickup-location\").val(),error_pickupDate:o,pickupTime24HR:$(\"#pickup-time :selected\").val(),pickupDoW:t,error_dropoffLocationName:r,error_dropoffDate:i,dropoffTime24HR:$(\"#dropoff-time :selected\").val(),dropoffDoW:p}),window.ecom_fpt&&window.ecom_fpt.pushToQueue({ts:window.ecom_fpt.getTimestamp(),en:\"site_error\",ep:{event_category:\"Error\",event_action:\"resWidget - \"+e,event_label:$(this).text(),error_message:$(this).text(),error_pickupLocationName:$(\"#pickup-location\").val(),error_pickupDate:o,error_pickupTime24HR:$(\"#pickup-time :selected\").val(),error_pickupDoW:t,error_dropoffLocationName:r,error_dropoffDate:i,error_dropoffTime24HR:$(\"#dropoff-time :selected\").val(),error_dropoffDoW:p},up:{}})}):1==$(\"#error-list ul li\").length?(e=$(\"#error-list ul li\").text()==$(\"#error-list ul li\").text().split(\"[\").pop().split(\"]\")[0]?\"no err code\":$(\"#error-list ul li\").text().split(\"[\").pop().split(\"]\")[0],window.dataLayer&&window.dataLayer.push({event:\"error\",error_type:\"resWidget - \"+e,error_message:$(\"#error-list ul li\").text(),error_pickupLocationName:$(\"#pickup-location\").val(),error_pickupDate:o,pickupTime24HR:$(\"#pickup-time :selected\").val(),pickupDoW:t,error_dropoffLocationName:r,error_dropoffDate:i,dropoffTime24HR:$(\"#dropoff-time :selected\").val(),dropoffDoW:p}),window.ecom_fpt&&window.ecom_fpt.pushToQueue({ts:window.ecom_fpt.getTimestamp(),en:\"site_error\",ep:{event_category:\"Error\",event_action:\"resWidget - \"+e,event_label:$(\"#error-list ul li\").text(),error_message:$(\"#error-list ul li\").text(),error_pickupLocationName:$(\"#pickup-location\").val(),error_pickupDate:o,error_pickupTime24HR:$(\"#pickup-time :selected\").val(),error_pickupDoW:t,error_dropoffLocationName:r,error_dropoffDate:i,error_dropoffTime24HR:$(\"#dropoff-time :selected\").val(),error_dropoffDoW:p},up:{}})):(window.dataLayer&&window.dataLayer.push({event:\"error\",error_type:\"resWidget - UNK\",error_message:\"No error msg found\",error_pickupLocationName:$(\"#pickup-location\").val(),error_pickupDate:o,pickupTime24HR:$(\"#pickup-time :selected\").val(),pickupDoW:t,error_dropoffLocationName:r,error_dropoffDate:i,dropoffTime24HR:$(\"#dropoff-time :selected\").val(),dropoffDoW:p}),window.ecom_fpt&&window.ecom_fpt.pushToQueue({ts:window.ecom_fpt.getTimestamp(),en:\"site_error\",ep:{event_category:\"Error\",event_action:\"resWidget - UNK\",event_label:\"No error msg found\",error_message:\"No error msg found\",error_pickupLocationName:$(\"#pickup-location\").val(),error_pickupDate:o,error_pickupTime24HR:$(\"#pickup-time :selected\").val(),error_pickupDoW:t,error_dropoffLocationName:r,error_dropoffDate:i,error_dropoffTime24HR:$(\"#dropoff-time :selected\").val(),error_dropoffDoW:p},up:{}}))))})}).observe(document.querySelector(\"#error-list\"),{childList:!0})),waitForRemovedNode({selector:\"res-itinerary-page-container\",type:\"id\",parent:document.querySelector(\"#page\"),done:function(){waitForAddedNode({selector:\"section.res-form\",type:\"query\",parent:document.querySelector(\"#page\"),recursive:!0,continuously:!0,done:function(e){setupWidgetError(e,!0,!0),setupRMCError(e)}})}}),n?waitForRemovedNode({selector:\"res-form\",type:\"id\",parent:document.querySelector(\"#gaq-section\"),done:function(){setupWidgetError(d,!0,!1)}}):waitForRemovedNode({selector:\"res-form\",type:\"id\",parent:document.querySelector(\"#res-widget\"),done:function(){setupWidgetError(d,!1,!1)}})}})},waitForAddedNode({selector:\"section.res-form\",type:\"query\",parent:document.body,recursive:!0,continuously:!0,done:function(e){setupWidgetError(e,!0,!0),setupRMCError(e)}}),waitForAddedNode({selector:\".offer > .res-widget, #location-details .res-widget-cont\",type:\"query\",parent:document.body,recursive:!0,continuously:!0,done:function(e){setupWidgetError(e,!1,!0)}}))</script>","config_id":"error-tracking","sched_startTime":0,"firing_conditions":"true","firing_pages":[""],"firing_percentTarget":100,"firing_pos":"ALL","sched_endTime":0,"content_bundlePayloadByPages":false,"config_category":"innovation","firing_oncePerPage":true,"config_category_id":"innovation-error-tracking","firing_triggers":["pageView"]},{"content_html":"<script>if(window.innovationContent&&!sessionStorage.getItem(\"feature_flgs\")&&!localStorage.getItem(\"feature_flgs\")&&window.storageHandler&&(window.storageHandler(sessionStorage,\"feature_flgs\",\"{}\"),window.storageHandler(localStorage,\"feature_flgs\",\"{}\"),sessionStorage.getItem(\"feature_flgs\"))&&localStorage.getItem(\"feature_flgs\")&&(window.featureContent=window.innovationContent.filter(e=>{let t=!1;return t=e.config_category&&\"ab\"==e.config_category.toLowerCase()?!0:t}),window.featureContent)&&window.featureContent.length&&window.featureContent.forEach(e
2=>{try{var t,i,n,o,a;e.firing_pos&&e.config_category&&e.config_id&&e.config_category_id&&(t=localStorage.getItem(\"feature_flgs\")?JSON.parse(localStorage.getItem(\"feature_flgs\")):null,i=sessionStorage.getItem(\"feature_flgs\")?JSON.parse(sessionStorage.getItem(\"feature_flgs\")):null,n=e.config_category_id.substring(e.config_category_id.lastIndexOf(\"-\")+1,e.config_category_id.length),window[e.firing_pos+\"-\"+e.config_category_id])&&((o=new Date).setDate(o.getDate()+30),a={variant:n,expires:o.getTime()},t[e.firing_pos+\"-\"+e.config_category+\"-\"+e.config_id]=a,window.storageHandler(localStorage,\"feature_flgs\",JSON.stringify(t)),i[e.firing_pos+\"-\"+e.config_category+\"-\"+e.config_id]=a,window.storageHandler(sessionStorage,\"feature_flgs\",JSON.stringify(i)))}catch(e){console.log(\"feature flag init error: \",e)}}),(\"vulcan\"===window.getSiteDetails()?.system||\"sf\"===window.getSiteDetails()?.system||\"pub\"===window.getSiteDetails()?.system||\"auth0\"===window.getSiteDetails()?.system||\"IRAC\"===window.getSiteDetails()?.system&&!window?.htz?.config?.isApp)&&!document?.head?.querySelector(\"script[src*='cdn.eu.amplitude.com/script']\")){let o=null;if(\"non-prod\"==window?.getSiteDetails()?.env?o=\"1b119276b51bf4b8573370d2c4a4f5a5\":window.getCookieFunc(\"cookie_pref\")&&-1<window.getCookieFunc(\"cookie_pref\").indexOf(\"3\")&&0<window?.location?.hostname?.indexOf(\"hertz\")&&!window?.location?.hostname?.match(/.*hertz.io.*|.*wwwpreprod.*|.*wwwqual.*|.*wwwstaging.*|.*dev.auth.dev.*/gi)&&(o=\"55a922fd0e853ac5f664a326df038e0f\"),\"vulcan\"!==window.getSiteDetails()?.system&&\"sf\"!==window.getSiteDetails()?.system&&\"pub\"!==window.getSiteDetails()?.system&&\"auth0\"!==window.getSiteDetails()?.system||!o||document.getElementById(\"ecomAmpScript\")){if(\"IRAC\"===window.getSiteDetails()?.system&&o){const t=7e3,u=250;let e=0,i=null;function configureAndLoadAmplitude(){i&&(clearInterval(i),i=null),require.config({paths:{\"amplitude-analytics\":\"https://cdn.eu.amplitude.com/script/\"+o,\"amplitude-session-replay\":\"https://cdn.eu.amplitude.com/libs/plugin-session-replay-browser-1.4.0-min.js.gz?noext\",\"amplitude-experiment\":\"https://unpkg.com/@amplitude/[email protected]/dist/experiment.umd\"},shim:{\"amplitude-analytics\":{exports:\"amplitude\"},\"amplitude-session-replay\":{deps:[\"amplitude-analytics\"],exports:\"sessionReplay\"},\"amplitude-experiment\":{deps:[\"amplitude-analytics\"],exports:\"Experiment\"}}}),require([\"amplitude-analytics\",\"amplitude-session-replay\",\"amplitude-experiment\"],function(e,t,i){var n,t=t.plugin(),t=(e.add(t),e.init(o,{autocapture:{elementInteractions:!0},serverZone:\"EU\"}),window.getCookieFunc?.(\"__privaci_cookie_consent_uuid\")?.split(\":\")?.[0]);t&&e?.Identify&&e?.identify&&((n=new e.Identify).setOnce(\"cookie_consent_uuid\",t),e.identify(n)),window.experiment=i.initializeWithAmplitudeAnalytics(o,{serverZone:\"EU\"}),(async()=>{await window.experiment.fetch()})()})}i=setInterval(function(){e+=u,void 0!==window.require&&\"function\"==typeof window.require.config?configureAndLoadAmplitude():e>=t&&(clearInterval(i),i=null)},u)}}else{let e=document.createElement(\"script\");e.id=\"ecomAmpScript\",e.src=`https://cdn.eu.amplitude.com/script/${o}.js`,e.onload=()=>{let i=!1;var e,t=()=>{var e,t;!i&&window.amplitude&&window.sessionReplay&&(i=!0,e=window.sessionReplay.plugin({serverZone:\"EU\"}),window.amplitude.add(e),window.engagement&&\"function\"==typeof window.engagement.plugin&&window.amplitude.add(window.engagement.plugin()),window.amplitude.init(o,{autocapture:{sessions:!0,elementInteractions:!0},fetchRemoteConfig:!0,serverZone:\"EU\"}),e=window.getCookieFunc?.(\"__privaci_cookie_consent_uuid\")?.split(\":\")?.[0])&&window.amplitude?.Identify&&window.amplitude?.identify&&((t=new window.amplitude.Identify).setOnce(\"cookie_consent_uuid\",e),window.amplitude.identify(t))};document.getElementById(\"ecomAmpGSScript\")?window.engagement&&\"function\"==typeof window.engagement.plugin?t():((e=document.getElementById(\"ecomAmpGSScript\"))&&(e.addEventListener(\"load\",t),e.addEventListener(\"error\",t)),setTimeout(t,5e3)):((e=document.createElement(\"script\")).id=\"ecomAmpGSScript\",e.src=`https://cdn.eu.amplitude.com/script/${o}.engagement.js`,e.onload=t,e.onerror=t,document.getElementsByTagName(\"head\")[0].appendChild(e),setTimeout(t,5e3)),document.getElementById(\"ecomAmpExpScript\")||((e=document.createElement(\"script\")).id=\"ecomAmpExpScript\",e.src=\"https://unpkg.com/@amplitude/[email protected]/dist/experiment.umd.js\",e.onload=()=>{window.experiment=Experiment.initializeWithAmplitudeAnalytics(o,{serverZone:\"EU\"}),(async()=>{await window.experiment.fetch()})()},document.getElementsByTagName(\"head\")[0].appendChild(e))},document.getElementsByTagName(\"head\")[0].appendChild(e)}}</script>","config_id":"feature-flg-init","sched_startTime":0,"firing_conditions":"!sessionStorage.getItem('feature_flgs') && !localStorage.getItem('feature_flgs')","firing_pages":[""],"firing_percentTarget":100,"firing_pos":"ALL","sched_endTime":0,"content_bundlePayloadByPages":false,"config_category":"innovation","firing_oncePerPage":true,"config_category_id":"innovation-feature-flg-init","firing_triggers":["customEvent:consent_given"]},{"content_html":"<script>if(!window.ecom_fpt||window.ecom_fpt._isStub){const a=window.ecom_fpt&&window.ecom_fpt._isStub&&window.ecom_fpt._pending||[],b=function(){const u=14e3,l=\"/ecom/collect/\";var e=getCookieFunc(\"aws.preview\")?getCookieFunc(\"aws.preview\"):\"\";const m=e&&\"dev\"==e?\"https://ecom.nonprod.mss.hertz.io/shared/hertz-tracking-dev/\":\"https://ecom.mss.hertz.io/shared/hertz-tracking/\";let c=!!window.sessionStorage.getItem(\"fpt-ev-que\"),f=window.sessionStorage.getItem(\"fpt-ev-que\")?JSON.parse(window.sessionStorage.getItem(\"fpt-ev-que\")):[],g=[],h=[],d=[\"hashed_email\",\"hashed_phone\",\"hashed_member_id\",\"page_category\",\"page_location\",\"query_string_parameters\",\"client_classification\",\"pos_regi
2on\",\"pos_subregion\",\"dialect\",\"cp_code\",\"iata_number\",\"experiment_manual_tracking_id\",\"member_is_using_points\",\"login_status\",\"age_range\",\"rate_code\",\"cdp_code\",\"pc_code\",\"cv_code\",\"voucher_number\",\"discount_type\",\"reservation_process\",\"ab_testing\",\"dropoff_country_code\",\"pickup_country_code\",\"pickup_oag_code\",\"dropoff_oag_code\",\"pickup_date_yyyy_mm_dd\",\"dropoff_date_yyyy_mm_dd\",\"user_type\",\"cdp_contract_type\",\"tru_audience_id\",\"tu_l2_individual_id\",\"tu_l3_household_id\",\"tu_id_match\",\"tu_id_index\"],s=[\"hashed_email\",\"hashed_phone\",\"hashed_member_id\",\"member_points\",\"login_status\",\"dialect\",\"pos_region\",\"pos_subregion\",\"client_classification\",\"cp_code\",\"experiment_manual_tracking_id\",\"iata_number\",\"ab_testing\",\"user_type\",\"tru_audience_id\",\"tu_l2_individual_id\",\"tu_l3_household_id\",\"tu_id_match\",\"tu_id_index\"],_=[\"hashed_email\",\"hashed_phone\",\"hashed_member_id\",\"page_category\",\"page_location\",\"query_string_parameters\",\"client_classification\",\"pos_region\",\"pos_subregion\",\"dialect\",\"cp_code\",\"iata_number\",\"experiment_manual_tracking_id\",\"member_is_using_points\",\"login_status\",\"age_range\",\"rate_code\",\"cdp_code\",\"pc_code\",\"cv_code\",\"voucher_number\",\"discount_type\",\"reservation_process\",\"trip_type\",\"is_domestic\",\"is_oneway\",\"booking_window\",\"rental_days\",\"pickup_location_type\",\"dropoff_location_type\",\"pickup_location_ownership\",\"dropoff_location_ownership\",\"pickup_oag_code\",\"dropoff_oag_code\",\"pickup_location\",\"dropoff_location\",\"pickup_location_latlng\",\"dropoff_location_latlng\",\"pickup_region\",\"dropoff_region\",\"pickup_subregion\",\"dropoff_subregion\",\"pickup_country\",\"dropoff_country\",\"pickup_state\",\"dropoff_state\",\"pickup_city\",\"dropoff_city\",\"pickup_date\",\"dropoff_date\",\"pickup_date_yyyy_mm_dd\",\"dropoff_date_yyyy_mm_dd\",\"pickup_year_yyyy\",\"dropoff_year_yyyy\",\"pickup_month_mm\",\"dropoff_month_mm\",\"pickup_day_dd\",\"dropoff_day_dd\",\"pickup_dow\",\"dropoff_dow\",\"pickup_time_24hr\",\"dropoff_time_24hr\",\"vehicle_class\",\"vehicle_collection\",\"vehicle_name\",\"vehicle_sipp\",\"rate_plan_code\",\"transaction_type\",\"confirmation_number\",\"pickup_country_code\",\"dropoff_country_code\",\"insurance_quote_key\",\"ab_testing\",\"creative_name\",\"creative_slot\",\"promotion_id\",\"promotion_name\",\"user_type\",\"cdp_contract_type\",\"tru_audience_id\",\"tu_l2_individual_id\",\"tu_l3_household_id\",\"tu_id_match\",\"tu_id_index\"],p=[\"hashed_email\",\"hashed_phone\",\"hashed_member_id\",\"member_points\",\"login_status\",\"dialect\",\"pos_region\",\"pos_subregion\",\"client_classification\",\"cp_code\",\"experiment_manual_tracking_id\",\"iata_number\",\"age_range\",\"pickup_region\",\"dropoff_region\",\"pickup_subregion\",\"dropoff_subregion\",\"pickup_country\",\"dropoff_country\",\"is_domestic\",\"ab_testing\",\"user_type\",\"tru_audience_id\",\"tu_l2_individual_id\",\"tu_l3_household_id\",\"tu_id_match\",\"tu_id_index\"],y=[\"view_item_list\",\"view_item\",\"add_to_cart\",\"remove_from_cart\",\"select_item\",\"view_promotion\",\"select_promotion\",\"purchase\",\"refund\"],w=new Map,v={page_view:\"ep.page_location\",view_item_list:\"noIdAvailable\",select_item:\"ecom.items.0.id\",add_to_cart:\"ecom.items.0.id\",remove_from_cart:\"ecom.items.0.id\",purchase:\"ecom.reservation.confirmation_number\",refund:\"ecom.reservation.confirmation_number\"},b={view_item_list:{key:\"ecom.items\",generate:e=>e.filter(e=>(\"vehicle list â available\"===e.list||\"add on list\"===e.list)&&e.list+\" - \"+e.id),isDuplicate:(t,o)=>!t.filter(e=>!o.includes(e)).concat(o.filter(e=>!t.includes(e))).length}};function n(e){if(null==e||\"string\"!=typeof e)return\"\";if(!(e=e.trim().toLowerCase()))return\"\";var t=e.lastIndexOf(\"@\");if(-1===t)return e;let o=e.substring(0,t);return e=e.substring(t+1),(o=\"gmail.com\"!==e&&\"googlemail.com\"!==e?o:o.replace(/\\./g,\"\"))+\"@\"+e}async function a(e){let t=\"\";
2if(e)try{var o=new TextEncoder,i=\"string\"==typeof e?e.trim().toLowerCase():null!=e?String(e).trim().toLowerCase():\"\",r=o.encode(i),n=await crypto.subtle.digest(\"SHA-256\",r),a=Array.from(new Uint8Array(n));t=a.map(e=>e.toString(16).padStart(2,\"0\")).join(\"\")}catch(e){console.log(\"Error hashPidSHA256 \",e)}return t}function S(){let e=setInterval(function(){f.length?o(\"poller\",f):(c=!1,clearInterval(e))},3e3)}async function o(e,t){var o=[];let i=0;var r,n={};f=[];try{var a=window?.htz?.tracking?.emember?.isLoggedIn||(JSON.parse(window.localStorage?.getItem(\"member\"))?.memberId?\"true\":\"false\"),c=window?.htz?.tracking?.emember?.memberTier||JSON.parse(window.localStorage?.getItem(\"member\"))?.loyalty?.tier||\"\",d=window?.htz?.tracking?.emember?.memberType||JSON.parse(window.localStorage?.getItem(\"member\"))?.type||\"\",n={uid:getCookieFunc(\"__privaci_cookie_consent_uuid\")?.split(\":\")?.[0]||\"\",pi:getCookieFunc(\"cookie_pref\")||\"1\",dt:document?.title||\"\",dr:document?.referrer||\"\",ua:window?.navigator?.userAgent||\"\",sr:window?.screen?.width+\"x\"+window?.screen?.height,bid:window?.htz?.config?.buildId||\"\",syd:window.getSiteDetails()?.system||\"\",pos:window.getSiteDetails()?.pos||\"\",ul:window.getSiteDetails()?.dialect?.slice(0,2)||\"\",hid:window?.htz?.config?.partnerId||\"\",mg:\"true\"==a?\"member\":\"guest\",mid:window?.htz?.tracking?.common?.memberID||JSON.parse(window.localStorage?.getItem(\"member\"))?.memberId||\"\",mti:memberTierMapping(c),mty:memberTypeMapping(d),gab:window?.gaCollectCallBlocked||!1,ev:[]};for(const p of t)p.cid=C(),JSON.stringify(n).length>u&&(o.push(JSON.parse(JSON.stringify(n))),n.ev=[]),n.ev.push(p);n.ev.length&&o.push(JSON.parse(JSON.stringify(n)))}catch(e){console.log(\"fptConfig sendEvents() build payload error: \",e)}if(o.length)do{if(g=[...o[i].ev],e&&\"beacon\"==e)try{navigator.sendBeacon(l,JSON.stringify(o[i]))||(r=window.sessionStorage.getItem(\"fpt-ev-que\")?[...JSON.parse(window.sessionStorage.getItem(\"fpt-ev-que\")),...g]:[...g],window.sessionStorage.setItem(\"fpt-ev-que\",JSON.stringify(r))),g=[]}catch(e){console.log(\"fptConfig sendEvents() sendBeacon error: \",e)}else try{var s,_=await fetch(l,{method:\"POST\",body:JSON.stringify(o[i])});g=(_.status&&204==_.status||(s=await fetch(m,{method:\"POST\",body:JSON.stringify(o[i])})).status&&204==s.status||(h=h?.length?[...h,...g]:[...g]),[])}catch(e){console.log(\"fptConfig sendEvents() fetch error: \",e)}}while(++i<o.length)}function k(e){let t=\"\";try{function o(e,t){return function(){return dlHelper.get(e)||dlHelper.get(t)||\"\"}}var i,r={dialect:\"dialect\",iata_number:\"iataNumber\",member_is_using_points:\"memberIsUsingPoints\",login_status:\"loginStatus\",age_range:\"ageRange\",rate_code:\"rateCode\",cdp_code:\"cdpCode\",pc_code:\"pcCode\",cv_code:\"cvNumber\",voucher_number:\"voucherNumber\",reservation_process:\"reservationProcess\",trip_type:\"tripType\",is_domestic:\"isDomestic\",is_oneway:\"isOneWay\",booking_window:\"reservationDaysOut\",rental_days:\"rentalDays\",pickup_location_type:\"pickupLocationType\",dropoff_location_type:\"dropoffLocationType\",pickup_location_ownership:\"pickupLocationOwnership\",dropoff_location_ownership:\"dropoffLocationOwnership\",pickup_oag_code:\"pickupOAGCode\",dropoff_oag_code:\"dropoffOAGCode\",pickup_location:\"pickupLocationName\",dropoff_location:\"dropoffLocationName\",pickup_location_latlng:\"pickupLocationLatLong\",dropoff_location_latlng:\"dropoffLocationLatLong\",pickup_country:\"pickupCountryCode\",dropoff_country:\"dropoffCountryCode\",pickup_state:\"pickupState\",dropoff_state:\"dropoffState\",pickup_city:\"pickupCity\",dropoff_city:\"dropoffCity\",pickup_date:\"pickupDate\",dropoff_date:\"dropoffDate\",pickup_date_yyyy_mm_dd:\"pickupDate_yyyy-mm-dd\",dropoff_date_yyyy_mm_dd:\"dropoffDate_yyyy-mm-dd\",pickup_year_yyyy:\"pickupYear_yyyy\",dropoff_year_yyyy:\"dropoffYear_yyyy\",pickup_month_mm:\"pickupMonth_mm\",dropoff_month_mm:\"dropoffMonth_mm\",pickup_day_dd:\"pickupDay\",dropoff_day_dd:\"dropoffDay\",pickup_dow:\"pickupDoW\",dropoff_dow:\"dropoffDoW\",pickup_time_24hr:\"pickupTime24HR\",dropoff_time_24hr:\"dropoffTime24HR\",vehicle_class:\"vehicleClass\",vehicle_collection:\"vehicleCollectionName\",vehicle_name:\"vehicleType\",vehicle_sipp:\"vehicleSipp\",rate_plan_code:\"ratePlanCode\",transaction_type:\"transactionType\",confirmation_number:\"confirmationNumber\",pickup_country_code:\"pickupCountryCode\",dropoff_country_code:\"dropoffCountryCode\",insurance_quote_key:\"insurance_quote_key\",member_points:\"availablePoints\",creative_name:\"ecommerce.promoView.promotions.0.creative\",creative_slot:\"ecommerce.promoView.promotions.0.position\",promotion_id:\"ecommerce.promoView.promotions.0.id\",promotion_name:\"ecommerce.promoView.promotions.0.name\"},n={};for(i in r)Object.prototype.hasOwnProperty.call(r,i)&&!function(e){var t;n[i]=(t=e,function(){return dlHelper.get(t)||\"\"})}(r[i]);var a={hashed_email:o(\"hashed_email\",\"raw.hashed_email\"),hashed_phone:o(\"hashed_phone\",\"raw.hashed_phone\"),hashed_member_id:o(\"hashed_member_id\",\"raw.hashed_member_id\"),tru_audience_id:function(){return window.getTruAudienceFields&&window.getTruAudienceFields().tru_audience_id||\"\"},tu_l2_individual_id:function(){return window.getTruAudienceFields&&window.getTruAudienceFields().tu_l2_individual_id||\"\"},tu_l3_household_id:function(){return window.getTruAudienceFields&&window.getTruAudienceFields().tu_l3_household_id||\"\"},tu_id_match:function(){return window.getTruAudienceFields&&window.getTruAudienceFields().tu_id_match||\"\"},tu_id_index:function(){return window.getTruAudienceFields&&window.getTruAudienceFields().tu_id_index||\"\"},page_category:function(){return window.location.pathname.split(\"/\").find(function(e){return e&&\"rentacar\"!==e&&\"p\"!==e&&!e.match(/^[a-zA-Z]{2}$/)})||\"\"},page_location:function(){return window.location.href},query_string_parameters:function(){return window.location.search.split(\"?\")[1]||\"\"},client_classification:function(){return getCookieFunc(\"clientval\")||\"\"},experiment_manual_tracking_id:function(){return getCookieFunc(\"opt-testing\")||\"\"}
2,pos_region:function(){return N()},pos_subregion:function(){return T()},cp_code:function(){var t=\"\";try{dlHelper.get(\"cpCode\")&&\"\"!==dlHelper.get(\"cpCode\")?t=dlHelper.get(\"cpCode\"):window.htz&&window.htz.tracking&&window.htz.tracking.common.consumerProductFromHertzLink&&(t=window.htz.tracking.common.consumerProductFromHertzLink)}catch(e){t=\"\"}return t},discount_type:function(){try{if(dlHelper.get(\"pcCode\"))return\"promoCode\";if(dlHelper.get(\"voucherNumber\"))return\"voucherNumber\";if(dlHelper.get(\"cvNumber\"))return\"conventionNumber\";if(dlHelper.get(\"cdpCode\"))return\"cdpCode\";if(dlHelper.get(\"rateCode\"))return\"rateCode\"}catch(e){}return\"\"},pickup_region:function(){return N(dlHelper.get(\"pickupCountryCode\"))},dropoff_region:function(){return N(dlHelper.get(\"dropoffCountryCode\"))},pickup_subregion:function(){return T(dlHelper.get(\"pickupCountryCode\"))},dropoff_subregion:function(){return T(dlHelper.get(\"dropoffCountryCode\"))},ab_testing:function(){var t=[];try{var e=dlHelper.get(\"raw.experiments\");e=(e&&\"string\"==typeof e?JSON.parse(e):e)||{};for(var o=Object.keys(e),i=0;i<o.length;i++)t.push(o[i]+\":\"+e[o[i]])}catch(e){t=[]}return t.toString()},user_type:function(){var t=\"\";try{window.sessionStorage&&(t=sessionStorage.getItem(\"u_type\")?sessionStorage.getItem(\"u_type\"):getCookieFunc(\"_ga\")?\"returning\":\"new\")}catch(e){t=\"\"}return t},cdp_contract_type:function(){var t=\"\";try{var e=dlHelper.get(\"cdpCode\"),o=window.sessionStorage&&sessionStorage.getItem(\"cdp_contract_types\"),i=o&&JSON.parse(o);e&&i&&i[e]&&(t=i[e])}catch(e){t=\"\"}return t}};for(i in a)Object.prototype.hasOwnProperty.call(a,i)&&(n[i]=a[i]);var c=n[e];t=c&&\"function\"==typeof c&&c()||\"\"}catch(e){t=\"\",console.log(\"Error getEventParamData \",e)}return t}const C=function(){let e=\"\";try{e=window?.crypto?.randomUUID()||\"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx\".replace(/[xy]/g,function(e){var t=16*Math.random()|0;return(\"x\"===e?t:3&t|8).toString(16)})}catch(e){console.log(\"Error generateUuid \",e)}return e},N=function(e){let t=\"ROW\";try{var o=e||window.getSiteDetails()?.pos||\"\";o&&[\"AD\",\"AE\",\"AF\",\"AL\",\"AM\",\"AO\",\"AQ\",\"AT\",\"AX\",\"AZ\",\"BA\",\"BE\",\"BF\",\"BG\",\"BH\",\"BI\",\"BJ\",\"BV\",\"BW\",\"BY\",\"CD\",\"CF\",\"CG\",\"CH\",\"CI\",\"CK\",\"CM\",\"CV\",\"CY\",\"CZ\",\"DE\",\"DJ\",\"DK\",\"DZ\",\"EE\",\"EG\",\"EH\",\"ER\",\"ES\",\"ET\",\"FI\",\"FO\",\"FR\",\"GA\",\"GB\",\"GE\",\"GG\",\"GH\",\"GI\",\"GL\",\"GM\",\"GN\",\"GQ\",\"GR\",\"GW\",\"HM\",\"HR\",\"HU\",\"IE\",\"IL\",\"IM\",\"IQ\",\"IR\",\"IS\",\"IT\",\"JE\",\"JO\",\"KE\",\"KG\",\"KM\",\"KW\",\"KZ\",\"LB\",\"LI\",\"LR\",\"LS\",\"LT\",\"LU\",\"LV\",\"LY\",\"MA\",\"MC\",\"MD\",\"ME\",\"MG\",\"MK\",\"ML\",\"MR\",\"MT\",\"MU\",\"MW\",\"MZ\",\"NA\",\"NC\",\"NE\",\"NG\",\"NL\",\"NO\",\"OM\",\"PF\",\"PL\",\"PM\",\"PS\",\"PT\",\"QA\",\"RE\",\"RO\",\"RS\",\"RU\",\"RW\",\"SA\",\"SC\",\"SD\",\"SE\",\"SH\",\"SI\",\"SK\",\"SL\",\"SM\",\"SN\",\"SO\",\"SS\",\"ST\",\"SY\",\"SZ\",\"TD\",\"TF\",\"TG\",\"TJ\",\"TM\",\"TN\",\"TR\",\"TZ\",\"UA\",\"UG\",\"UZ\",\"VA\",\"WF\",\"YE\",\"YT\",\"ZA\",\"ZM\",\"ZW\"].includes(o)?t=\"EMEA\":o&&[\"AS\",\"AU\",\"BD\",\"BN\",\"BT\",\"CC\",\"CN\",\"CX\",\"FJ\",\"FM\",\"GU\",\"HK\",\"ID\",\"IN\",\"IO\",\"JP\",\"KH\",\"KI\",\"KP\",\"KR\",\"LA\",\"LK\",\"MH\",\"MM\",\"MN\",\"MO\",\"MP\",\"MV\",\"MY\",\"NF\",\"NP\",\"NR\",\"NU\",\"NZ\",\"PG\",\"PH\",\"PK\",\"PN\",\"PW\",\"SB\",\"SG\",\"TH\",\"TK\",\"TL\",\"TO\",\"TV\",\"TW\",\"UM\",\"VN\",\"VU\",\"WS\"].includes(o)?t=\"APAC\":o&&[\"US\",\"CA\"].includes(o)?t=\"NA\":o&&[\"AG\",\"AR\",\"AI\",\"AN\",\"AW\",\"BS\",\"BB\",\"BM\",\"BO\",\"BQ\",\"BZ\",\"BR\",\"VG\",\"KY\",\"CL\",\"CO\",\"CR\",\"CW\",\"CU\",\"DM\",\"DO\",\"DR\",\"EC\",\"SV\",\"FK\",\"GF\",\"GD\",\"GP\",\"GT\",\"GY\",\"HT\",\"HN\",\"JM\",\"MQ\",\"MX\",\"MS\",\"NI\",\"PE\",\"PY\",\"PA\",\"PR\",\"VC\",\"BL\",\"KN\",\"LC\",\"SX\",\"MF\",\"SR\",\"TT\",\"TC\",\"UY\",\"VI\",\"VE\"].includes(o)&&(t=\"LATAM\")}catch(e){t=\"ROW\",console.log(\"Error getRegionClassification \",e)}return t},T=function(e){let t=N(e);try{var o=e||window.getSiteDetails()?.pos||\"\";o&&[\"GB\",\"IT\",\"BE\",\"DE\",\"ES\",\"FR\",\"NL\",\"CZ\",\"LU\"].includes(o)?t=\"EU_Corp\":o&&[\"AT\",\"BE\",\"BG\",\"CH\",\"CY\",\"CZ\",\"DE\",\"DK\",\"EE\",\"ES\",\"FI\",\"FR\",\"GB\",\"GR\",\"HU\",\"IE\",\"IT\",\"LT\",\"LU\",\"LV\",\"MT\",\"NL\",\"NO\",\"PL\",\"PT\",\"RO\",\"SE\",\"SI\",\"SK\",\"AQ\"].includes(o)?t=\"EU\":o&&[\"TW\",\"HK\",\"TH\",\"SG\",\"PH\",\"MY\",\"ID\",\"IN\",\"PK\",\"VN\"].includes(o)&&(t=\"ASIA\")}catch(e){t=N(),console.log(\"Error getSubRegionClassification \",e)}return t};window.hdt&&window.hdt.utils&&(window.hdt.utils.getRegionClassification=N,window.hdt.utils.getSubRegionClassification=T);return{initPoller(){c&&S()},pushToQueue(t){var o=function(t){var o=t?.en||\"\";let i={...t};try{let e=y.includes(o)?_:d,t=y.includes(o)?p:s;window.location.href.match(/.*rentacar\\/reservation.*#.*|.*\\/book\\/.*|.*step=.*/gi)&&(e=_,t=p);for(const r of e)!i?.ep?.[r]&&k(r)&&(i.ep[r]=k(r));for(const n of t)!i?.up?.[n]&&k(n)&&(i.up[n]=k(n))}catch(e){i={...t}
2,console.log(\"Error populateEventParamsAndUserProps \",e)}return i}(t);try{var i=t?.en||\"\",r=v[i],n=\"page_view\"!==i&&r&&\"noIdAvailable\"!==r?r.split(\".\").reduce((e,t)=>e?.[t],o):\"\",a=i+(n?\"|\"+n:\"\");let e=window.__htzIdMap&&window.__htzIdMap.get(a)||\"\";e?!n&&window.__htzIdMap&&window.__htzIdMap.delete(a):e=window.htzEventId?window.htzEventId():C(),o.ep=o.ep||{},o.ep.hdt_event_id||(o.ep.hdt_event_id=e)}catch(e){console.log(\"fpt hdt_event_id error: \",e)}v[t.en]?(r=v[t.en].split(\".\").reduce((e,t)=>e?.[t],o),w.has(t.en)&&r&&w.get(t.en)==r||(\"noIdAvailable\"==v[t.en]?(i=b[t.en].generate(b[t.en].key.split(\".\").reduce((e,t)=>e?.[t],o)),w.has(t.en)&&b[t.en].isDuplicate(w.get(t.en),i)||(w.set(t.en,i),f.push(o))):(w.set(t.en,r),f.push(o))),\"remove_from_cart\"==t?.en?w.set(\"add_to_cart\",\"\"):\"add_to_cart\"==t?.en?w.set(\"remove_from_cart\",\"\"):\"purchase\"==t?.en?w.set(\"refund\",\"\"):\"refund\"==t?.en&&w.set(\"purchase\",\"\")):f.push(o),c||(S(),c=!0)},beaconSend(e,t){o(e,t)},getEventQueue(){return f},getFailedToSendQueue(){return h},getTimestamp(){let t=\"\";try{t=window.performance&&window.performance.timeOrigin&&window.performance.now?String(Math.round(1e3*(performance.timeOrigin+performance.now()))):String(1e3*Date.now())}catch(e){t=String(1e3*Date.now())}return t=\"NaN\"==t?\"\":t},conformProducts(e){var e=[...e=e],t=[];try{for(const o of e)t.push({id:o?.id||\"\",name:o?.name||\"\",brand:o?.brand||\"\",variant:o?.variant||o?.availability||\"\",category:o?.category||\"\",category2:\"\",category3:\"\",category4:\"\",category5:\"\",price_in_usd:o?.price||\"\",price:o?.price||\"\",quantity:o?.quantity||\"\",revenue_in_usd:null,revenue:null,refund_in_usd:null,refund:null,coupon:\"\",affiliation:\"\",location_id:\"\",list_id:\"\",list:o?.list||\"\",position:o?.position||\"\",promotion_id:\"\",promotion_name:\"\",creative_name:\"\",creative_slot:\"\",unit:\"\",params:[]})}catch(e){console.log(\"Error conformProductObjs \",e)}return t},normalizeEmailForHash(e){return n(e)},postIdentity(e){if(\"prod\"!==window?.getSiteDetails?.()?.env)return Promise.resolve();if(\"US\"!==window?.getSiteDetails?.()?.pos)return Promise.resolve();if(\"A\"===window?.htz?.tracking?.emember?.memberTier)return Promise.resolve();if(!window.getCookies||!window.getCookies(\"cookie_pref\")||-1===window.getCookies(\"cookie_pref\").indexOf(\"3\"))return Promise.resolve();if(!e||!e.brand)return Promise.resolve();var o={brand:String(e.brand).toUpperCase()},e=(e.emailHash&&(o.emailHash=e.emailHash),e.smsHash&&(o.smsHash=e.smsHash),e.loyaltyMemberNumber&&(o.loyaltyMemberNumber=String(e.loyaltyMemberNumber).trim()),JSON.stringify(o)),i=\"mkg_pref\",r=window.sessionStorage;if(r){var t={};try{t=JSON.parse(r.getItem(i)||\"{}\")}catch(e){}var n=!!o.emailHash&&!!t.em,a=!!o.smsHash&&!!t.sms,t=!!o.loyaltyMemberNumber&&!!t.loyalty;if(!(o.emailHash&&!n||o.smsHash&&!a||o.loyaltyMemberNumber&&!t))return Promise.resolve()}return fetch(\"https://ecom.mss.hertz.io/marketing/preferences/identity\",{method:\"POST\",headers:{\"Content-Type\":\"application/json\"},credentials:\"include\",body:e}).then(function(e){if(r&&e&&e.ok)try{var t=JSON.parse(r.getItem(i)||\"{}\");o.emailHash&&(t.em=!0),o.smsHash&&(t.sms=!0),o.loyaltyMemberNumber&&(t.loyalty=!0),r.setItem(i,JSON.stringify(t))}catch(e){}return e}).catch(function(){})},async hashPid(e){return a(e)},async hashAllPid(e){return async function(e){var t={hashEm:\"\",hashPh:\"\",hashMem:\"\"};try{var[o,i,r]=await Promise.all([a(n(e?.email)||null),a(e?.phone||null),a(e?.mem_id||null)]);t.hashEm=o,t.hashPh=i,t.hashMem=r}catch(e){console.log(\"Error hashAll \",e)}return t}(e)},generateUUID(){return C()}}};if(window.ecom_fpt=b(),ecom_fpt.initPoller(),a&&a.length)for(const ob of a)try{window.ecom_fpt.pushToQueue(ob)}catch(e){console.log(\"fpt stub drain error: \",e)}window.sessionStorage.getItem(\"fpt-ev-que\")&&window.sessionStorage.removeItem(\"fpt-ev-que\"),document.addEventListener(\"visibilitychange\",()=>{\"hidden\"===document.visibilityState&&(ecom_fpt?.getEventQueue()?.length||ecom_fpt?.getFailedToSendQueue()?.length)&&ecom_fpt.beaconSend(\"beacon\",[...ecom_fpt.getFailedToSendQueue(),...ecom_fpt.getEventQueue()])})}</script>","config_id":"first-party-tracking","sched_startTime":0,"firing_conditions":"true","firing_pages":[""],"firing_percentTarget":100,"firing_pos":"ALL","sched_endTime":0,"content_bundlePayloadByPages":false,"config_category":"innovation","firing_oncePerPage":true,"config_category_id":"innovation-first-party-tracking","firing_triggers":["pageView"]},{"content_html":"<style>#new-resWidget-containerInner{z-index:1}#page{top:0}#container,#page{box-sizing:border-box}#container,#rental-links{border:none!important}.lb-foreground{background:#000!important}@media only screen and (max-width:599px){.lb-header{padding:9px 10px 10px!important}.lb-back{margin-bottom:0!important}}#container{width:100%!important}.mm-hide{display:none!important}#rental-links a,#rental-policy-links,ul.rental-policy-groups{display:block!important}body{background-color:#f3f4f8!important;min-width:initial!important}#error-list{margin-bottom:15px!important}#page{width:100%;padding:0!important;margin:0 auto;position:relative;background-color:#fff}#res-extras-page,#res-vehicles-page{padding:10px;box-sizing:border-box;max-width:1076px;margin:0 auto}@media only screen and (max-width:767px){#res-extras-page-container,#res-vehicles-page-container{background-color:#f5f5f5}}.modal-close-row{background-color:#f2f4f7;padding:20px;font-size:24px;position:relative}#rental-links,ul.rental-policy-groups{padding:0!important;width:100%!important;box-sizing:border-box}.modal-close-icon{position:absolute;top:17px;right:20px}ul.rental-policy-groups{margin:0!important}.rental-policy-groups div{position:relative}#rental-links a{box-sizing:border-box;padding:10px 20px 10px 50px!important;color:#000!important;font-size:18px!important;width:100%!important}#rental-links li li a{padding:4px 0!important;color:#365ad8!important;font-size:14px!important;display:inline-block!important;width:auto}#rental-links li li a:hover{text-decoration:underline}#rental-links #expand-collapse-rental-links{display:none!important}ul.rental-policy-groups li{border:1px solid #d7d8d8;border-radius:2px}ul.rental-policy-groups li li{border:none;list-style-type:none}#important #important-information-container .icons-collapse_icon,#important #important-information-container .icons-expand_icon,#rental-links .divi
2der,h4.rental-links-header .expand-collapse-rental-links{display:none!important}.rental-policy-links-wrapper{padding:1px 0}#important #important-information-toggle,#important .terms .terms h2,.expandable-section .expandable-section-btn,h4.rental-links-header{border:none!important;border-bottom:1px solid #e6e7eb!important;background:0 0!important;padding-bottom:10px;box-sizing:border-box;padding-left:30px;font-size:17px!important;font-weight:300!important;position:relative;text-decoration:none!important;color:#000!important}#important #important-information-container,#steps ul div.bar{border:none!important}#important-information-toggle{cursor:pointer}#important-information-toggle .link-indicator{color:#000!important;margin:0!important;padding:0!important;text-decoration:none!important;font-size:15px!important}#important-information-container .rental-policy-links-wrapper{border:1px solid #d7d8d8;border-radius:2px;margin-top:10px;padding:20px;box-sizing:border-box}#rental-links .rental-policy-groups{border-bottom:none!important}#important #important-information-toggle.inactive::after,#important .terms .terms h2.inactive::after,.expandable-section-btn.inactive::after,h4.rental-links-header.inactive::after{-ms-transform:rotate(-90deg);-webkit-transform:rotate(-90deg);transform:rotate(-90deg)}#important #rental-links .rental-links-disclaimer{border-top:none!important}.rental-policy-groups .expand-collapse-icon.icons-arrow-blue-right{-ms-transform:rotate(-90deg);-webkit-transform:rotate(-90deg);transform:rotate(-90deg)}#rental-policy-links .policy-links{padding:0 0 10px 50px}#important #rental-links .rental-links-header{background:0 0!important;padding:0 0 5px 30px!important;margin:20px 0 10px!important;cursor:pointer;font-size:15px!important}#important #important-information-container ul{margin-bottom:0!important;padding:0!important;display:block}#important #important-information-container ul .icons-expand_icon{display:none!important}#steps{display:block!important}#steps ul div.bar{height:4px!important;border-radius:2px!important;background-color:#d7d8d8!important}#steps ul .current div.bar,#steps ul .prev-step div.bar{background-color:#fc0!important}.step-mobile{display:none}.mm-v-icn{display:inline-block;width:16px;height:16px;background:no-repeat;background-size:100% auto}.mm-mobile-headline{display:none!important}.mm-desktop-headline{display:block!important}#res-cancel-confirmation-page .cancel-confirmation-content .hertz-advert div{background:0 0!important;border:none!important}.mm-content-page #page{padding:10px!important}footer{margin-top:10px!important;clear:both}.footer-disabled{position:relative;top:20px}.footer-disabled #bottom-links,.footer-disabled #mob-links,.footer-disabled #seo-content,.footer-disabled #social-bar,.footer-disabled #title-links,.footer-disabled .social-footer-app-mobile,.footer-disabled .social-icon-container{display:none!important}.footer-disabled #copyright-content{border-top:none;padding-top:0!important}#bookablePageBanners{display:none}#breadCrumns{padding-top:1px}#important .termsAndConditionsContent{height:200px;overflow:auto;padding-left:32px;padding-right:15px;box-sizing:border-box}#important .terms .terms h2{font-size:15px!important;cursor:pointer}#important .terms .terms{margin-bottom:15px}.expandable-section-content{display:none}#important #important-information-toggle::after,#important .terms .terms h2::after,.expandable-section-btn::after,h4.rental-links-header::after{content:\"\";position:absolute;top:8px;left:4px;width:16px;height:8px;background:url(//images.hertz.com/misc/overlay/hertz-expand-icon.png) no-repeat center top;background-size:16px auto}.expandable-section-btn strong{font-weight:300!important}.rental-policy-groups .expand-collapse-icon{pointer-events:none;position:absolute;top:14px;left:18px;width:16px;height:8px;background:url(//images.hertz.com/misc/overlay/hertz-expand-icon.png) no-repeat center top;background-size:16px auto}.mm-v-icn-seats{background-image:url(//images.hertz.com/misc/overlay/hertz-icon-seats.png)}.mm-v-icn-suitcases{background-image:url(//images.hertz.com/misc/overlay/hertz-icon-luggage.png)}.mm-v-icn-mpg{background-image:url(//images.hertz.com/misc/overlay/hertz-icon-mpg.png)}.mm-v-icn-awd{background-image:url(//images.hertz.com/misc/overlay/hertz-icon-awd.png)}.mm-v-icn-doors{background-image:url(//images.hertz.com/misc/overlay/hertz-icon-door.png)}.mm-v-icn-transmission-automatic{background-image:url(//images.hertz.com/misc/overlay/hertz-icon-transmission-automatic.png)}.mm-v-icn-transmission-manual{background-image:url(//images.hertz.com/misc/overlay/hertz-icon-transmission-manual.png)}@media only screen and (min-width:992px){.mm-content-page #header-container .pos-container li{float:right}}@media only screen and (max-width:767px){#important #rental-links .rental-links-header{margin-left:10px!important;margin-right:10px!important}.mm-desktop-headline{display:none!important}.mm-mobile-headline{display:block!important}#page{background:0 0!important}#res-extras-page{background:0 0!important}#container{background-color:#f3f4f8!important}#steps li .step-content{display:none!important}.step-mobile{display:block}div#rental-links{margin-left:-10px!important;margin-right:-10px!important;width:auto!important;padding:0!important;position:relative!important}.rental-policy-links-wrapper{padding:3px 10px}#steps{background:#fff!important;margin-left:-10px;margin-right:-10px;padding:15px 20px 20px!important;box-sizing:border-box;margin-top:10px}}.mm-content-page #breadCrumns,.mm-content-page .special-offers{max-width:1250px;margin:0 auto}body .cc-error-list{margin:0 0 20px}.block-display{display:block!important}@media screen and (max-width:1201px){.res-expanded #res-submit-btns{dis
2play:block!important}}@media screen and (min-width:1201px){.res-expanded #res-submit-btns{display:block!important}}#fb-count,#tweet-count{display:none!important}.social-footer-app-mobile{display:none!important}#footer-parsys{width:100%!important;color:#000}#footer-parsys span div font{color:#000!important}#rToggleM{display:none!important}@media screen and (max-width:600px){div.calendar{position:absolute!important;bottom:0!important;width:100%}}#title-links{display:block!important}.mm-gpr-navigation{overflow-x:unset!important}#footer-parsys,#header-container{box-sizing:border-box}@media screen and (max-width:599px){.calendar.elastic{min-height:300px}}</style><script>console.log(\"init initialize\"),jQuery().initialize||(function(s){\"use strict\";var c=[\" \",\">\",\"+\",\"~\"],d=[\"+\",\"~\"],l=[\"ATTR\",\"PSEUDO\",\"ID\",\"CLASS\"];Element.prototype.matches||(Element.prototype.matches=Element.prototype.matchesSelector||Element.prototype.webkitMatchesSelector||Element.prototype.mozMatchesSelector||Element.prototype.msMatchesSelector);function u(e,t,a){this.selector=e.trim(),this.callback=t,this.options=a;var o=this;if(s.find.tokenize){o.isCombinatorial=!1,o.isFraternal=!1,o.isComplex=!1;for(var r=s.find.tokenize(o.selector),i=0;i<r.length;i++)for(var n=0;n<r[i].length;n++)-1!=c.indexOf(r[i][n].type)&&(o.isCombinatorial=!0),-1!=d.indexOf(r[i][n].type)&&(o.isFraternal=!0),-1!=l.indexOf(r[i][n].type)&&(o.isComplex=!0)}else o.isCombinatorial=!0,o.isFraternal=!0,o.isComplex=!0}var o=[];o.initialize=function(e,t,a){function o(){-1==r.indexOf(this)&&(r.push(this),s(this).each(t))}var r=[],i=(s(a.target).find(e).each(o),new u(e,o,a)),e=(this.push(i),new MutationObserver(function(e){for(var t=[],a=0;a<e.length;a++)if(\"attributes\"==e[a].type&&(e[a].target.matches(i.selector)&&t.push(e[a].target),i.isFraternal?t.push.apply(t,e[a].target.parentElement.querySelectorAll(i.selector)):t.push.apply(t,e[a].target.querySelectorAll(i.selector))),\"childList\"
2==e[a].type)for(var o=0;o<e[a].addedNodes.length;o++)e[a].addedNodes[o]instanceof Element&&(e[a].addedNodes[o].matches(i.selector)&&t.push(e[a].addedNodes[o]),i.isFraternal?t.push.apply(t,e[a].addedNodes[o].parentElement.querySelectorAll(i.selector)):t.push.apply(t,e[a].addedNodes[o].querySelectorAll(i.selector)));for(var r=0;r<t.length;r++)s(t[r]).each(i.callback)})),n={childList:!0,subtree:!0,attributes:i.isComplex};return e.observe(a.target,a.observer||n),e},s.fn.initialize=function(e,t){return o.initialize(this.selector,e,s.extend({},s.initialize.defaults,t))},s.initialize=function(e,t,a){return o.initialize(e,t,s.extend({},s.initialize.defaults,a))},s.initialize.defaults={target:document.documentElement,observer:null}}(jQuery),jQuery.extend(jQuery.easing,{def:\"easeOutCustom\",swing:function(e,t,a,o,r){return jQuery.easing[jQuery.easing.def](e,t,a,o,r)},easeOutCustom:function(e,t,a,o,r){return-o*(t/=r)*(t-2)+a}})),console.log(\"init global js\"),jQuery().upsizeCarImage||function(i){i.fn.upsizeCarImage=function(e){i.extend({carName:\"\"},e);if(\"\"!==e.carName){var t=[[\"ZEUSJSAR999\",\"//images.hertz.com/misc/overlay/camaro-ss.png\"],[\"ZEUSXSAR999\",\"//images.hertz.com/misc/overlay/camaro-ZL1.png\"],[\"ZEUSWCAR999\",\"//images.hertz.com/misc/overlay/bmw-740.png\"]],a=\"\",e=i(this).attr(\"src\"),o=\"\";-1<e.indexOf(\".\")&&(o=e.match(/\\w+\\.\\w+$/).toString().split(\".\")[0]);for(var r=0;r<t.length;r++)if(t[r][0]==o){a=t[r][1];break}\"\"!==a&&this.attr(\"src\",a).addClass(\"vehicle-img-lrg\")}return this}}(jQuery),$(\"body\").hasClass(\"mm-active\")||($(\"body\").addClass(\"mm-active\"),$(\"body\").append('<div id=\"MMActive\"></div>'),$.initialize(\".lb-content-box .rd-veh-image\",function(){$(this).hasClass(\"mm-active\")||($(this).addClass(\"mm-active\"),$(this).find(\"img\").upsizeCarImage({carName:$(this).closest(\".rd-veh-details\").find(\".rd-veh-infos strong\").text()}))}),$.initialize(\"#rental-policy-links, #bookableImpInfContentArea\",function(){$(this).hasClass(\"mm-active\")||($(this).addClass(\"mm-active\"),$(this).wrapInner('<div class=\"rental-policy-links-wrapper\"></div>'))}),$(\"body\").on(\"click\",\".rental-links-header,#important #important-information-toggle,#important .terms .terms h2,.expandable-section-btn\",function(){$(this).toggleClass(\"inactive\"),(0<$(this).closest(\"#important-information-container\").length?$(this).closest(\"#important-information-container\").find(\".rental-policy-links-wrapper\"):0<$(this).closest(\".terms\").find(\"#bookableTermsBox\").length?$(this).closest(\".terms\").find(\"#bookableTermsBox\"):0<$(this).closest(\".expandable-section\").length?$(this).closest(\".expandable-section\").find(\".expandable-section-content\"):$(this).closest(\"#rental-links\").find(\".rental-policy-links-wrapper\")).stop(!0,!1).slideToggle(600,function(){$(this).css(\"height\",\"auto\")})}),$.initialize(\".rental-links-header,#important #important-information-toggle\",function(){$(this).hasClass(\"mm-active\")||($(this).addClass(\"mm-active\").addClass(\"inactive\"),(0<$(this).closest(\"#important-information-container\").length?$(this).closest(\"#important-information-container\"):$(this).closest(\"#rental-links\")).find(\".rental-policy-links-wrapper\").hide())}),$.initialize(\"#steps\",function(){var t,e=$(this);e.hasClass(\"mm-active\")||(e.addClass(\"mm-active\"),t=!1,e.find(\"li\").each(function(e){!1!==t||$(this).hasClass(\"current\")?$(this).removeClass(\"prev-step\"):$(this).addClass(\"prev-step\"),$(this).html(function(e,t){return t.replace(\".\",\":\")}),$(this).wrapInner('<div class=\"step-content\"></div>'),$(this).find(\".bar\").insertAfter($(this).find(\".step-content\")),$(this).hasClass(\"current\")&&(t=!0,$(this).closest(\"ul\").before('<div class=\"step-mobile\">'+$(this).text()+\"</div>\"))}))})),console.log(\"init login js\"),window.deleteCook=function(){function e(e,t,a){document.cookie=e+\"=\"+(t?\"; path=\"+t:\"\")+(a?\"; domain=\"+a:\"\")+\";expires=Thu, 01 Jan 1970 00:00:01 GMT\"}function t(e){return(e=document.cookie.match(\"(^|;)\\\\s*\"+e+\"\\\\s*=\\\\s*([^;]+)\"))&&e.pop?e.pop():\"\"}!document.cookie.includes(\"_gat_UA-49387091-0\")||\"1\"!==t(\"cookie_pref\")&&document.cookie.includes(\"cookie_pref\")||(e(\"_gat_UA-49387091-0\",\"/\",window.location.hostname.replace(\"www\",\"\")),setTimeout(function(){e(\"_gat_UA-49387091-0\",\"/\",window.location.hostname.replace(\"www\",\"\"))},50),setTimeout(function(){e(\"_gat_UA-49387091-0\",\"/\",window.location.hostname.replace(\"www\",\"\"))},100)),!document.cookie.includes(\"_ga\")||\"1\"!==t(\"cookie_pref\")&&document.cookie.includes(\"cookie_pref\")||e(\"_ga\",\"/\",window.location.hostname.replace(\"www\",\"\")),!document.cookie.includes(\"_gid\")||\"1\"!==t(\"cookie_pref\")&&document.cookie.includes(\"cookie_pref\")||e(\"_gid\",\"/\",window.location.hostname.replace(\"www\",\"\"))},window.deleteCook(),$(\"body\").addClass(\"gtm-applied\"),window.listenerTask||(window.listenerTask=!0,console.log(\"addingHashListener1\"),window.location&&0<location.hash.length&&!window.hashListener&&(console.log(\"reload listener\"),window.dataLayer||(window.dataLayer=[]),window.dataLayer.push({event:\"hashChange\",pageHash:window.location.hash})),window.addEventListener(\"hashchange\",function(){window.hashListener=!0,console.log(\"hash changed\");try{-1<window.location.hash.indexOf(\"itinerary\")&&JSON.parse(sessionStorage.getItem(\"res-home-data\")).metaData.loggedIn&&waitForAddedNode({selector:\"div#redeem-section\",type:\"query\",parent:document.body,recursive:!0,maxObserved:50,done:function(e){setTimeout(function(){$(\"div#redeem-section\").addClass(\"active-member\"),$(\"div#redeem-section\").css(\"display\",\"block\")},200)}})}catch(e){console.log(\"\")}-1<window.location.hash.indexOf(\"vehicles\")||-1<window.location.hash.indexOf(\"extras\")||-1<window.location.hash.indexOf(\"review-and-book\")||-1<window.location.hash.indexOf(\"rental-links\")?($(\".nav-menu table\").addClass(\"nav-remove\"),$(\".pos-container\").addClass(\"nav-remove\"),$(\".search-terms-container\").removeClass(\"nav-remove\"),$(\".header-mobile-menu\").addClass(\"nav-remove\"),$(\".header-mobile-logo\").addClass(\"align-left\"),waitForAddedNode({selector:\"#rental-links h4\",type:\"query\",parent:document.body,recursive:!0,maxObserved:50,done:function(e){var t;$(\".terms-conditions a\").text().length<=0&&(t=$(\"#rental-links h4\").text(),$(\".terms-conditions a\").append(t)),console.log($(\"#rental-links h4\").text())}}),waitForAddedNode({selector:\".pos-container.no-dropdown.nav-remove\",type:\"query\",parent:document.body,recursive:!0,maxObserved:50,done:function(e){$(\".pos-container.no-dropdown.nav-remove\").removeClass(\"no-dropdown\")}})):($(\".nav-menu table\").removeClass(\"nav-remove\"),$(\".pos-container\").removeClass(\"nav-remove\"),$(\".search-terms-container\").addClass(\"nav-remove\"),$(\".header-mobile-menu\").removeClass(\"nav-remove\"),$(\".header-mobile-logo\").removeClass(\"align-left\"),waitForAddedNode({selector:\".pos-container.no-dropdown.nav-remove\",type:\"query\",parent:document.body,recursive:!0,maxObserved:50,done:function(e){$(\".pos-container.no-dropdown.nav-remove\").addClass(\"no-dropdown\")}})),window.dataLayer||(window.dataLayer=[]),window.dataLayer.push({event:\"hashChange\",pageHash:window.location.hash})},!1),window.dataLayer||(window.dataLayer=[]),window.dataLayer.push({event:\"overlayLoaded\"}),window.deleteCook());var globalTranslations={GB:{enGB:{continueTxt:\"Continue\",covidText:\"Latest updates relating to COVID-19 (Coronavirus)\",essentialDocuments:\"The named driver must present a valid driverâs licence that you've held for at least 1 years and at least one payment card in his/her name, which must be the one used for the online booking.\",preAuth:\"A reserve credit (if paying with a credit card) or a pre-authorised deposit (if paying with a debit card) will be taken to cover the estimated charges arising from your rental, including a full tank of fuel.\",addItems:\"At the counter, you can pay for additional items such as SuperCover for 787.45 EUR to reduce your excess to 0 EUR\",minAge:\"You must be at least 21 years old to rent your selected vehicle.\",covidLink:\"https://www.hertz.co.uk/rentacar/misc/index.jsp?targetPage=coronavirus_travel_safety_tips.xml\",day:\"Day\",carSearch:\"Cars\",vanSearch:\"Vans\",vanSearchLink:\"https://www.hertz.co.uk/p/van-hire/\",sameDropoffLoc:\"Same Drop-off Location\",diffDropoffLoc:\"Different Drop-off Location\",twitterLink:\"https://www.twitter.com/HertzUK/\",facebookLink:\"https://www.facebook.com/HertzUK/\",instagramLink:\"https://www.instagram.com/hertz.uk/\",youtubeLink:\"http://www.youtube.com/user/hertzcarrental\"}},IT:{enGB:{continueTxt:\"Continue\",covidText:\"Latest updates relating to COVID-19 (Coronavirus)\",essentialDocuments:\"The named driver must present a valid driverâs licence that you've held for at least 1 years and at least one payment card in his/her name, which must be the one used for the online booking.\",preAuth:\"A reserve credit (if paying with a credit card) or a pre-authorised deposit (if paying with a debit card) will be taken to cover the estimated charges arising from your rental, including a full tank of fuel.\",addItems:\"At the counter, you can pay for additional items such as SuperCover for 787.45 EUR to reduce your excess to 0 EUR\",minAge:\"You must be at least 21 years old to rent your selected vehicle.\",covidLink:\"https://www.hertz.co.uk/rentacar/misc/index.jsp?targetPage=coronavirus_travel_safety_tips.xml\",day:\"Day\",carSearch:\"Search for Cars\",vanSearch:\"Search for Vans\",vanSearchLink:\"https://www.hertz.it/p/noleggio-furgoni\",sameDropoffLoc:\"Same Drop-off Location\",diffDropoffLoc:\"Different Drop-off Location\",twitterLink:\"https://www.twitter.com/HertzOfferteIT/\",facebookLink:\"https://www.facebook.com/HertzIT/\",instagramLink:\"https://www.instagram.com/hertz_it/\",youtubeLink:\"http://www.youtube.com/user/hertzcarrental\"},itIT:{continueTxt:\"Continua\",covidText:\"Aggiornamenti sul Coronavirus (COVID-19)\",essentialDocuments:\"Il conducente (intestatario del noleggio) deve presentare una valida patente di guida emessa da almeno 1 anni e la stessa carta di credito/debito (a suo nome) utilizzata per effettuare la prenotazione online.\",preAuth:\"A seconda della carta utilizzata per il pagamento, verrà trattenuta una riserva di credito (per i clienti che pagano con carta di credito ) o verrà effettuato un addebito pre-autorizzato (per i clienti che pagano con carta di debito) a copertura dei costi stimati di noleggio più un pieno di carburante.\",addItems:\"Al banco, sono disponibili extra aggiuntivi come SuperCover. Aggiungendo la copertura totale al tuo noleggio, pagheresti 787,45 EUR per ridurre la penalità risarcitoria non rimborsabile a 0 EUR\",minAge:\"à necessario avere almeno 21 anni per poter noleggiare il veicolo selezionato.\",covidLink:\"https://www.hertz.it/rentacar/misc/index.jsp?targetPage=coronavirus_travel_safety_tips.xml\",day:\"Giorno\",carSearch:\"Auto\",vanSearch:\"Furgone\",vanSearchLink:\"https://www.hertz.it/p/noleggio-furgoni\",sameDropoffLoc:\"Stessa agenzia di riconsegna\",diffDropoffLoc:\"Agenzia di riconsegna diversa\",twitterLink:\"https://www.twitter.com/HertzOfferteIT/\",facebookLink:\"https://www.facebook.com/HertzIT/\",instagramLink:\"https://www.instagram.com/hertz_it/\",youtubeLink:\"http://www.youtube.com/user/hertzcarrental\"}},FR:{enGB:{continueTxt:\"Continue\",covidText:\"Latest updates relating to COVID-19 (Coronavirus)\",essentialDocuments:\"The named driver must present a valid driverâs licence that you've held for at least 1 years and at least one payment card in his/her name, which must be the one used for the online booking.\",preAuth:\"A reserve credit (if paying with a credit card) or a pre-authorised deposit (if paying with a debit card) will be taken to cover the estimated charges arising from your rental, including a full tank of fuel.\",addItems:\"At the counter, you can pay for additional items such as SuperCover for 787.45 EUR to reduce your excess to 0 EUR\",minAge:\"You must be at least 21 years old to rent your selected vehicle.\",covidLink:\"https://www.hertz.co.uk/rentacar/misc/index.jsp?targetPage=coronavirus_travel_safety_tips.xml\",day:\"Day\",carSearch:\"Search for Cars\",vanSearch:\"Search for Vans\",vanSearchLink:\"https://www.hertz.fr/p/location-utilitaire\",sameDropoffLoc:\"Same Drop-off Location\",diffDropoffLoc:\"Different Drop-off Location\",twitterLink:\"https://www.twitter.com/HertzFrance/\",facebookLink:\"https://www.facebook.com/HertzFR/\",instagramLink:\"https://www.instagram.com/hertzfrance/\",youtubeLink:\"http://www.youtube.com/user/hertzcarrental\"},frFR:{continueTxt:\"Continuer\",covidText:\"Dernières informations sur le Coronavirus (COVID-19)\",essentialDocuments:\"Le conducteur désigné doit présenter un permis de conduire valide qu'il détient depuis au moins 1 an et au moins une carte de paiement à son nom, qui doit être celle utilisée lors de la réservation en ligne. \",preAuth:\"Une réservation de crédit (si payé avec une carte de crédit) ou une préautorisation de caution (si payé avec une carte de débit) sera prélevée afin de couvrir les frais estimés de location, plus un plein dâessence.\",addItems:\"Au comptoir, vous pouvez souscrire à certaines options, telle que la Suppression de franchise 787,45 EUR Pour réduire la franchise de 0 EUR\",minAge:\"Vous devez être âgés dâau moins 21 ans pour pouvoir louer le véhicule sélectionné.\",covidLink:\"https://www.hertz.fr/rentacar/misc/index.jsp?targetPage=coronavirus_travel_safety_tips.xml\",day:\"Jour\",carSearch:\"Voitures\",vanSearch:\"Véhicules utilitaires\",vanSearchLink:\"https://www.hertz.fr/p/location-utilitaire\",sameDropoffLoc:\"Même agence de départ et de retour\",diffDropoffLoc:\"Agences de départ et de retour différentes\",twitterLink:\"https://www.twitter.com/HertzFrance/\",facebookLink:\"https://www.facebook.com/HertzFR/\",instagramLink:\"https://www.instagram.com/hertzfrance/\",youtubeLink:\"http://www.youtube.com/user/hertzcarrental\"}},DE:{enGB:{continueTxt:\"Continue\",covidText:\"Latest updates relating to COVID-19 (Coronavirus)\",essentialDocuments:\"The named driver must present a valid driverâs licence that you've held for at least 1 years and at least one payment card in his/her name, which must be the one used for the online booking.\",preAuth:\"A reserve credit (if paying with a credit card) or a pre-authorised deposit (if paying with a debit card) will be taken to cover the estimated charges arising from your rental, including a full tank of fuel.\",addItems:\"At the counter, you can pay for additional items such as SuperCover for 787.45 EUR to reduce your excess to 0 EUR\",minAge:\"You must be at least 21 years old to rent your selected vehicle.\",covidLink:\"https://www.hertz.co.uk/rentacar/misc/index.jsp?targetPage=coronavirus_travel_safety_tips.xml\",day:\"Day\",carSearch:\"Search for Cars\",vanSearch:\"Search for Vans\",vanSearchLink:\"https://www.hertz.de/p/transporter-mieten\",sameDropoffLoc:\"Same Drop-off Location\",diffDropoffLoc:\"Different Drop-off Location\",twitterLink:\"https://www.twitter.com/HertzAngeboteDE/\",facebookLink:\"https://www.facebook.com/HertzDE/\",instagramLink:\"https://www.instagram.com/hertzgermany/\",youtubeLink:\"https://www.youtube.com/channel/UCbjaJjcvq8Z6GXPa6J-gTNg\"},deDE:{continueTxt:\"Fortfahren\",covidText:\"Aktuelle Informationen zu COVID-19 (Coronavirus)\",essentialDocuments:\"Der in der Reservierung festgelegte Fahrer muss seit mindestens 1 im Besitz eines gültigen Führerscheins sein und diesen bei der Anmietung vorlegen. Bei der Abholung des Fahrzeuges muss mindestens eine Kredit- oder Debitkarte im Namen des Fahrers vorgelegt werden, mit der die Online-Buchung getätigt wurde.\",preAuth:\"Eine Kaution (bei Zahlung mit Kreditkarte) oder eine vorab autorisierte Anzahlung (bei Zahlung mit einer Girokarte, ehemals EC-Karte) wird zur Deckung der geschätzten Kosten, die sich aus Ihrer Anmietung ergeben, einschlieÃlich eines vollen Kraftstofftanks, verwendet.\",addItems:\"Am Schalter können Sie zusätzliche Optionen wie SuperCover hinzukaufen, um Ihre Selbstbeteiligung auszuschlieÃen. 787.45 EUR um I
2hre Selbstbeteiligung zu reduzieren 0 EUR\",minAge:\"Der in der Reservierung festgelegte Fahrer muss seit mindestens 1 Jahr im Besitz eines gültigen Führerscheins sein und diesen bei der Anmietung vorlegen.\",covidLink:\"https://www.hertz.de/rentacar/misc/index.jsp?targetPage=coronavirus_travel_safety_tips.xml\",day:\"Tag\",carSearch:\"Pkw\",vanSearch:\"Lkw & Transporter\",vanSearchLink:\"https://www.hertz.de/p/transporter-mieten\",sameDropoffLoc:\"Gleicher Abgabeort\",diffDropoffLoc:\"Anderer Abgabeort\",twitterLink:\"https://www.twitter.com/HertzAngeboteDE/\",facebookLink:\"https://www.facebook.com/HertzDE/\",instagramLink:\"https://www.instagram.com/hertzgermany/\",youtubeLink:\"https://www.youtube.com/channel/UCbjaJjcvq8Z6GXPa6J-gTNg\"}},ES:{enGB:{continueTxt:\"Continue\",covidText:\"Latest updates relating to COVID-19 (Coronavirus)\",essentialDocuments:\"The named driver must present a valid driverâs licence that you've held for at least 1 years and at least one payment card in his/her name, which must be the one used for the online booking.\",preAuth:\"A reserve credit (if paying with a credit card) or a pre-authorised deposit (if paying with a debit card) will be taken to cover the estimated charges arising from your rental, including a full tank of fuel.\",addItems:\"At the counter, you can pay for additional items such as SuperCover for 787.45 EUR to reduce your excess to 0 EUR\",minAge:\"You must be at least 21 years old to rent your selected vehicle.\",covidLink:\"https://www.hertz.co.uk/rentacar/misc/index.jsp?targetPage=coronavirus_travel_safety_tips.xml\",day:\"Day\",carSearch:\"Search for Cars\",vanSearch:\"Search for Vans\",vanSearchLink:\"https://www.hertz.es/p/alquiler-de-furgonetas\",sameDropoffLoc:\"Same Drop-off Location\",diffDropoffLoc:\"Different Drop-off Location\",twitterLink:\"https://www.twitter.com/HertzES/\",facebookLink:\"https://www.facebook.com/HertzES/\",instagramLink:\"https://www.instagram.com/hertzspain/\",youtubeLink:\"http://www.youtube.com/user/hertzcarrental\"},esES:{continueTxt:\"Continuar\",covidText:\"Ãltimas actualizaciones sobre el COVID-19 (Coronavirus)\",essentialDocuments:\"El conductor deberá presentar su permiso de conducir válido con al menos 1 año de antigüedad y al menos una tarjeta de pago, la misma que fue usada para la reserva, a su nombre. \",preAuth:\"Un depósito o autorización en la tarjeta de crédito o débito será realizado para cubrir los cargos estimados del alquiler, incluyendo un depósito completo de combustible.\",addItems:\"En el mostrador podrás contratar servicios adicionales como SuperCover que elimina tu franquicia por 787,45 EUR para reducir la franquicia a 0 EUR\",minAge:\"Deberás tener al menos 21 años para poder alquilar el vehÃculo seleccionado.\",covidLink:\"https://www.hertz.es/rentacar/misc/index.jsp?targetPage=coronavirus_travel_safety_tips.xml\",day:\"Dia\",carSearch:\"Coches\",vanSearch:\"Furgonetas/Camiones\",vanSearchLink:\"https://www.hertz.es/p/alquiler-de-furgonetas\",sameDropoffLoc:\"Misma ubicación de devolución\",diffDropoffLoc:\"Diferente ubicación de devolución\",twitterLink:\"https://www.twitter.com/HertzES/\",facebookLink:\"https://www.facebook.com/HertzES/\",instagramLink:\"https://www.instagram.com/hertzspain/\",youtubeLink:\"http://www.youtube.com/user/hertzcarrental\"}},SE:{enGB:{continueTxt:\"Continue\",essentialDocuments:\"The named driver must present a valid driverâs licence that you've held for at least 1 years and at least one payment card in his/her name, which must be the one used for the online booking.\",preAuth:\"A reserve credit (if paying with a credit card) or a pre-authorised deposit (if paying with a debit card) will be taken to cover the estimated charges arising from your rental, including a full tank of fuel.\",addItems:\"At the counter, you can pay for additional items such as SuperCover for 787.45 EUR to reduce your excess to 0 EUR\",minAge:\"You must be at least 21 years old to rent your selected vehicle.\",day:\"Day\",vanSearch:\"Vans\",carSearch:\"Cars\",vanSearchLink:\"https://www.hertz.se/p/skapbilar\",sameDropoffLoc:\"Same Drop-off Location\",diffDropoffLoc:\"Different Drop-off Location\",twitterLink:\"https://twitter.com/hertznorge\",facebookLink:\"https://www.facebook.com/hertzbergen/\",instagramLink:\"https://www.instagram.com/hertzfinnsnes/\",youtubeLink:\"http://www.youtube.com/user/hertzcarrental\"},svSE:{continueTxt:\"Fortsätta\",essentialDocuments:\"Den angivna föraren mÃ¥ste uppvisa ett giltigt körkort och minst ett betalkort i hans / hennes namn, vilket mÃ¥ste vara det som används för onlinebokningen.\",preAuth:\"Vid uthämtande av fordonet sker en auktorisation pÃ¥ ditt kort. Detta visas normalt som ett reserverat belopp pÃ¥ ditt konto. Hur länge reservationen ligger lÃ¥st beror pÃ¥ din kortutgivande banks transaktionstid. Normalt brukar handläggningstiden för bankerna vara 3-5 bankdagar (en del banker har längre transaktionstider). När kontroll och lÃ¥sning är klar släpps den pÃ¥ ditt kort och du har tillgÃ¥ng till dina pengar. * Observera att vi även kan komma att ta en kreditupplysning när du hämtar ditt fordon.*\",addItems:\"Vid disken kan du betala för ytterligare tillval som SuperCover för 7974.91 SEK för att minska din självrisk till 0 SEK.\",minAge:\"Du mÃ¥ste vara Ã¥tminstone 18 Ã¥r gammal för att hyra ditt valda fordon.\",day:\"Dag\",carSearch:\"Bil\",vanSearch:\"SkÃ¥pbil\",vanSearchLink:\"https://www.hertz.se/p/skapbilar\",sameDropoffLoc:\"Samma Ã¥terlämningsplats\",diffDropoffLoc:\"Annan Ã¥terlämningsplats\",twitterLink:\"https://twitter.com/hertznorge\",facebookLink:\"https://www.facebook.com/hertzbergen/\",instagramLink:\"https://www.instagram.com/hertzfinnsnes/\",youtubeLink:\"http://www.youtube.com/user/hertzcarrental\"}},NO:{enGB:{continueTxt:\"Continue\",essentialDocuments:\"The named driver must present a valid driverâs licence that you've held for at least 1 years and at least one payment card in his/her name, which must be the one used for the online booking.\",preAuth:\"A reserve credit (if paying with a credit card) or a pre-authorised deposit (if paying with a debit card) will be taken to cover the estimated charges arising from your rental, including a full tank of fuel.\",addItems:\"At the counter, you can pay for additional items such as SuperCover for 787.45 EUR to reduce your excess to 0 EUR\",minAge:\"You must be at least 21 years old to rent your selected vehicle.\",day:\"Day\",sameDropoffLoc:\"Same Drop-off Location\",diffDropoffLoc:\"Different Drop-off Location\",twitterLink:\"https://twitter.com/hertznorge\",facebookLink:\"https://www.facebook.com/hertzbergen/\",instagramLink:\"https://www.instagram.com/hertzfinnsnes/\",youtubeLink:\"http://www.youtube.com/user/hertzcarrental\",carSearch:\"Cars\",vanSearch:\"Vans\",vanSearchLink:\"https://www.hertz.co.uk/p/van-hire/\"},noNO:{continueTxt:\"Fortsett\",essentialDocuments:\"Den navngitte sjÃ¥føren mÃ¥ fremvise et gyldig førerkort som man har hatt i minst 1 Ã¥r og minst ett betalingskort i eget navn, og som mÃ¥ være det som ble brukt til online bestillingen.\",preAuth:\"En autorisasjon (hvis du betaler med et kredittkort) eller et forhÃ¥ndsgodkjent depositum (hvis du betaler med debetkort) vil bli allokert for Ã¥ dekke de estimerte kostnadene som følge av leien din, inkludert en full tank med drivstoff.\",addItems:\"PÃ¥ lokasjonen kan du betale for tilleggsartikler som SuperCover for 8031.48 NOK for Ã¥ redusere din egenandel til 0 NOK\",minAge:\"Du mÃ¥ være minst 21 Ã¥r gammel for Ã¥ leie det valgte kjøretøyet.\",day:\"Dag\",s
2ameDropoffLoc:\"Samme leveringssted\",diffDropoffLoc:\"Annet leveringssted\",twitterLink:\"https://twitter.com/hertznorge\",facebookLink:\"https://www.facebook.com/hertzbergen/\",instagramLink:\"https://www.instagram.com/hertzfinnsnes/\",youtubeLink:\"http://www.youtube.com/user/hertzcarrental\",carSearch:\"Personbil\",vanSearch:\"Varebil\",vanSearchLink:\"https://www.hertz.no/p/varebil/\"}},AU:{enUS:{continueTxt:\"Continue\",essentialDocuments:\"The named driver must present a valid driverâs licence that you've held for at least 1 years and at least one payment card in his/her name, which must be the one used for the online booking.\",preAuth:\"A reserve credit (if paying with a credit card) or a pre-authorised deposit (if paying with a debit card) will be taken to cover the estimated charges arising from your rental, including a full tank of fuel.\",addItems:\"At the counter, you can pay for additional items such as SuperCover for 787.45 EUR to reduce your excess to 0 EUR\",minAge:\"You must be at least 21 years old to rent your selected vehicle.\",day:\"Day\",sameDropoffLoc:\"Same Drop-off Location\",diffDropoffLoc:\"Different Drop-off Location\",twitterLink:\"https://twitter.com/hertzaucar\",facebookLink:\"https://www.facebook.com/hertz/\",instagramLink:\"https://instagram.com/hertzaustralia\",youtubeLink:\"https://www.youtube.com/channel/UCKk4wB3r02escO3EhyPZUyA/featured\"}},NZ:{enUS:{continueTxt:\"Continue\",essentialDocuments:\"The named driver must present a valid driverâs licence that you've held for at least 1 years and at least one payment card in his/her name, which must be the one used for the online booking.\",preAuth:\"A reserve credit (if paying with a credit card) or a pre-authorised deposit (if paying with a debit card) will be taken to cover the estimated charges arising from your rental, including a full tank of fuel.\",addItems:\"At the counter, you can pay for additional items such as SuperCover for 787.45 EUR to reduce your excess to 0 EUR\",minAge:\"You must be at least 21 years old to rent your selected vehicle.\",day:\"Day\",sameDropoffLoc:\"Same Drop-off Location\",diffDropoffLoc:\"Different Drop-off Location\",twitterLink:\"https://twitter.com/hertznz\",facebookLink:\"https://www.facebook.com/hertz/\",instagramLink:\"https://instagram.com/hertz_nz\",youtubeLink:\"https://www.youtube.com/user/hertzcarrental\"}},NL:{enGB:{continueTxt:\"Continue\",covidText:\"Latest updates relating to COVID-19 (Coronavirus)\",covidLink:\"https://www.hertz.co.uk/rentacar/misc/index.jsp?targetPage=coronavirus_travel_safety_tips.xml\",day:\"Day\",carSearch:\"Search for Cars\",vanSearch:\"Search for Vans\",sameDropoffLoc:\"Same Drop-off Location\",diffDropoffLoc:\"Different Drop-off Location\",vanSearchLink:\"https://www.hertz.nl/p/bestelwagen-huur\",twitterLink:\"https://twitter.com/#!/Hertz\",facebookLink:\"https://www.facebook.com/HertzNL/\",instagramLink:\"https://www.instagram.com/hertz.benelux/\",youtubeLink:\"http://www.youtube.com/user/hertzcarrental\"},nlNL:{continueTxt:\"Ga door\",covidText:\"Meest recente updates met betrekking tot COVID-19 (Coronavirus)\",covidLink:\"https://www.hertz.nl/rentacar/misc/index.jsp?targetPage=coronavirus_travel_safety_tips.xml\",day:\"Dag\",carSearch:\"Auto\",vanSearch:\"Bestelwagen\",vanSearchLink:\"https://www.hertz.nl/p/bestelwagen-huur\",sameDropoffLoc:\"Zelfde drop-off locatie\",diffDropoffLoc:\"Andere plaats van afgifte\",twitterLink:\"https://twitter.com/#!/Hertz\",facebookLink:\"https://www.facebook.com/HertzNL/\",instagramLink:\"https://www.instagram.com/hertz.benelux/\",youtubeLink:\"http://www.youtube.com/user/hertzcarrental\"}},BE:{enGB:{continueTxt:\"Continue\",sameDropoffLoc:\"Same Drop-off Location\",diffDropoffLoc:\"Different Drop-off Location\",twitterLink:\"https://twitter.com/#!/Hertz\",facebookLink:\"https://www.facebook.com/HertzBelux/\",instagramLink:\"https://www.instagram.com/hertz.benelux/\",youtubeLink:\"http://www.youtube.com/user/hertzcarrentall\"},nlNL:{continueTxt:\"Ga door\",sameDropoffLoc:\"Zelfde drop-off locatie\",diffDropoffLoc:\"Andere plaats van afgifte\",twitterLink:\"https://twitter.com/#!/Hertz\",facebookLink:\"https://www.facebook.com/HertzBelux/\",instagramLink:\"https://www.instagram.com/hertz.benelux/\",youtubeLink:\"http://www.youtube.com/user/hertzcarrentall\"},frFR:{continueTxt:\"Continuer\",sameDropoffLoc:\"Même lieu de dépôt\",diffDropoffLoc:\"Autre lieu de dépôt\",twitterLink:\"https://twitter.com/#!/Hertz\",facebookLink:\"https://www.facebook.com/HertzBelux/\",instagramLink:\"https://www.instagram.com/hertz.benelux/\",youtubeLink:\"http://www.youtube.com/user/hertzcarrentall\"}},DK:{enGB:{continueTxt:\"Continue\",day:\"Day\",carSearch:\"Search for Cars\",vanSearch:\"Search for Vans\",vanSearchLink:\"https://www.hertzdk.dk/p/varevogne\",sameDropoffLoc:\"Same Drop-off Location\",diffDropoffLoc:\"Different Drop-off Location\"},dkDK:{continueTxt:\"Fortsæt\",day:\"Day\",carSearch:\"Bestil en bil\",vanSearch:\"Bestil en varevogn\",vanSearchLink:\"https://www.hertzdk.dk/p/varevogne\",sameDropoffLoc:\"Samme afleveringskontor\",diffDropoffLoc:\"Andet afleveringskontor\"}},FI:{enGB:{continueTxt:\"Continue\",covidText:\"Latest updates relating to COVID-19 (Coronavirus)\",covidLink:\"https://www.hertz.fi
2/rentacar/misc/index.jsp?targetPage=fiFI_corona.jsp\",carSearch:\"Search for Cars\",vanSearch:\"Search for Vans\",vanSearchLink:\"https://www.hertz.fi/p/pakettiauton-vuokraus\",sameDropoffLoc:\"Same Drop-off Location\",diffDropoffLoc:\"Different Drop-off Location\"},fiFI:{continueTxt:\"Jatkaa\",covidText:\"Viimeisimmät päivitykset COVID-19 liittyen (koronavirus)\",covidLink:\"https://www.hertz.fi/rentacar/misc/index.jsp?targetPage=fiFI_corona.jsp\",carSearch:\"Varaa henkilöauto\",vanSearch:\"Varaa pakettiauto\",vanSearchLink:\"https://www.hertz.fi/p/pakettiauton-vuokraus\",sameDropoffLoc:\"Palautus samaan toimipisteeseen\",diffDropoffLoc:\"Palautus eri toimipisteeseen\"}},CZ:{csCZ:{continueTxt:\"PokraÄovat\",covidText:\"INFORMACE TÃKAJÃCà SE KORONAVIRU (COVID-19)\",covidLink:\"https://www.hertz.cz/rentacar/misc/index.jsp?targetPage=coronavirus_travel_safety_tips.xml\",sameDropoffLoc:\"Stejné mÃsto pÅedánÃ\",diffDropoffLoc:\"Jiné mÃsto pÅedánÃ\"}},CN:{zhCN:{continueTxt:\"ç»§ç»\"}},KR:{koKR:{continueTxt:\"ê³ì\"}},JP:{jaJP:{continueTxt:\"ã¤ã¥ã\"}},CA:{enUS:{continueTxt:\"Continue\",sameDropoffLoc:\"Same Drop-off Location\",diffDropoffLoc:\"Different Drop-off Location\"},frFR:{continueTxt:\"Continuer\",sameDropoffLoc:\"Même lieu de dépôt\",diffDropoffLoc:\"Autre lieu de dépôt\"}},PT:{enPT:{carSearch:\"Cars\",vanSearch:\"Vans\",vanSearchLink:\"https://www.hertz.pt/p/aluguer-de-carrinhas\"},ptPT:{carSearch:\"Carros\",vanSearch:\"Carrinhas Comerciais\",vanSearchLink:\"https://www.hertz.pt/p/aluguer-de-carrinhas\"}}};window.htz&&htz.config&&htz.config.buildId&&\"1658503036418\"!==htz.config.buildId&&window.dataLayer&&window.dataLayer.push({event:\"headerFooterReady\"}),window.htz&&htz.config&&\"CA\"===htz.config.pos&&\"frFR\"===htz.config.dialect&&document.querySelector(\"#new-resWidgetHeader h1\")&&\"Vivez des moments privilégiés. Hertz.Let's Go!\"===document.querySelector(\"#new-resWidgetHeader h1\").innerText&&(document.querySelector(\"#new-resWidgetHeader h1\").innerText=\"Hertz Location dâauto. Bonne route !\")</script>","config_id":"Base-CSS-Scripts","sched_startTime":0,"firing_conditions":"window.location.href.indexOf('/p/') < 0 && window.location.href.indexOf('/rentacar/b2b/business-accounts') < 0 && window.htz","firing_pages":[""],"firing_percentTarget":100,"sched_endTime":0,"firing_pos":"INTL","content_bundlePayloadByPages":false,"config_category":"base","firing_oncePerPage":true,"config_category_id":"base-Base-CSS-Scripts","firing_triggers":["pageView"]}]; 3 window.hdt = { 4 'apiVersion':3, 5 'noIndex':false, 6 'utils':{ 7 'rollTestVariant': (variants) => { 8 let totalVariantsPercentage = 0; 9 let defaultPercentage = 100; 10 let defaultContent = []; 11 let variantArray = []; 12 let variantRolled = "default"; 13
14 variants.forEach((variant)=>{ 15 if(variant.firing_percentTarget){ 16 totalVariantsPercentage += Number(variant.firing_percentTarget); 17 } 18 19 if(!defaultContent.length){ 20 let cont = {...variant}; 21 cont.config_category_id = variant.config_category_id.substring(0,variant.config_category_id.lastIndexOf('-')+1) + "-default"; 22 cont.default = true; 23 defaultContent.push(cont); 24 } 25 26 for (let i = 0; i < variant.firing_percentTarget; i++){ 27 variantArray.push(variant.config_category_id); 28 }; 29 }); 30 31 defaultPercentage = defaultPercentage - totalVariantsPercentage; 32 for (let i = 0; i < defaultPercentage; i++){ 33 variantArray.push("default"); 34 }; 35 36 if(defaultPercentage + totalVariantsPercentage == 100){ 37 //random number 0-100 38 let randomNum = Math.floor(Math.random() * 100); 39 if(variantArray[randomNum]){ 40 variantRolled = variantArray[randomNum]; 41 } 42 } 43 44 if(variantRolled == "default"){ 45 return defaultContent; 46 }else{ 47 return variants.filter((variant)=>{ 48 let rolledVar = false; 49 if(variantRolled == variant.config_category_id){ 50 rolledVar = true; 51 } 52 return rolledVar; 53 }); 54 } 55} 56 } 57 }; 58 !function(){window.initOverlay=!0;try{window.navigator&&window.navigator.userAgent&&(-1<window.navigator.userAgent.toLowerCase().indexOf("google")||-1<window.navigator.userAgent.toLowerCase().indexOf("prerender"))&&(document.cookie="__privaci_cookie_consents=true; path=/;"),window?.dataLayer||(window.dataLayer=[]),window?.adobeDataLayer||(window.adobeDataLayer=[]),window.dataLayerQueue||(window.dataLayerQueue=[]),window.hdtFlushedQueueEvents=window.hdtFlushedQueueEvents||new WeakSet,window.hdtQueueDataLayerIfNoConsent=function(){return!1},window.dlp=function(e){window.dataLayer&&window.dataLayer.push(e)},window.htzEventId=window.htzEventId||function(){try{if(window.crypto&&crypto.randomUUID)return crypto.randomUUID()}catch(e){}return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(e){var t=16*Math.random()|0;return("x"==e?t:3&t|8).toString(16)})},window.__htzIdMap=window.__htzIdMap||new Map,window.getTruAudienceFields=window.getTruAudienceFields||function(){try{var e=JSON.parse(window.localStorage.getItem("tu_id")||"null");if(e&&(e.l2||e.l3||e.tuid))return{tru_audience_id:e.tuid||"",tu_l2_individual_id:e.l2||"",tu_l3_household_id:e.l3||"",tu_id_match:e.idMatch||"",tu_id_index:e.idIndex||""}}catch(e){}return{}},window.__htzEventIdName=window.__htzEventIdName||{virtualPageview:"page_view",virtualPageView:"page_view",hashChange:"page_view"},window.__htzCanon=window.__htzCanon||function(e){return window.__htzEventIdName&&window.__htzEventIdName[e]||e},window.__htzStamp=window.__htzStamp||function(e){if(e&&"object"==typeof e&&!Array.isArray(e)&&!e[0]&&!("string"==typeof e.event&&-1<e.event.indexOf("."))){e.hdt_event_id||(e.hdt_event_id=window.htzEventId());try{var t,o,n,i=e.event||"";window.ecomEventId&&window.ecomEventId[i]&&(t=window.__htzCanon(i),o=window.ecomEventId[i],n="page_view"!==t&&o&&"noIdAvailable"!==o?o.split(".").reduce(function(e,t){return null==e?e:e[t]},e):"",window.__htzIdMap.set(t+(n?"|"+n:""),e.hdt_event_id))}catch(e){}}}}catch(e){console.log("user agent check error: ",e)}if(window.location.hostname&&window.location.hostname.indexOf("wwwprod2")<0&&window.location.hostname.indexOf("wwwprod3")<0&&window.location.hostname.indexOf("qual")<0&&window.location.href&&window.location.href.indexOf("aws.disabled")<0&&window.location.href.indexOf("gtm.disabled")<0){if(window.location.search&&0<window.location.search.indexOf("aws.preview")){let search=new URLSearchParams(window.location.search);search&&search.get("aws.preview")&&(document.cookie="siteOverlay="+search.get("aws.preview")+"; path=/;")}function gtm_a(e){var t;return e=gtm_ay(e)?gtm_ay(t=e)?t.getUntrustedMessageValue():void 0:e}function replayVasAncillariesTracking(){return(0<window.location.href.indexOf("/ancillaries/extras")||0<window.location.href.indexOf("/vas/extras")||0<window.location.href.indexOf("/ancillaries/coverage")||0<window.location.href.indexOf("/vas/coverage")||0<window.location.href.indexOf("/ancillaries/recommended")||0<window.location.href.indexOf("/vas/recommended"))&&window.sessionStorage.getItem("hdt-view-item-list-vas-data")&&(ecomLayerDispatcher("view_item_list",JSON.parse(sessionStorage.getItem("hdt-view-item-list-vas-data"))),ecomLayerDispatcher("virtualPageview",{urlData:JSON.parse(sessionStorage.getItem("hdt-view-item-list-vas-data"))?.urlData||"",deferSend:!1,system:"vulcan"}),1)}var __htzPendingAdobeEcom,__htzAdobeItemRegistry,__htzPendingAdobeCart,__htzAdobe
58CartItems,__htzAdobeVasCtx,gtm_by,gtm_ay,gtm_Ua,gtm_Va,gtm_Wa,gtm_Xa,gtm_h,pushState,replaceState,m,pathArr,bodyObserver;if(window.getSiteDetails=function(){var e={pos:"",dialect:"",system:"",env:""};try{var t=window.location.pathname.split("/"),o={"www.hertz.at":"AT","www.hertzdk.dk":"DK","www.hertz.ee":"EE","www.hertz.fi":"FI","www.hertz.hu":"HU","www.hertz.ie":"IE","www.hertz.com.mt":"MT","www.hertz.no":"NO","www.hertz.pl":"PL","www.hertz.pt":"PT","www.hertz.se":"SE","www.hertz.si":"SI","www.hertz.com.au":"AU","www.hertz.co.nz":"NZ","www.hertz.bh":"BH","www.hertz.ch":"CH","www.hertz.cn":"CN","www.hertz.com.hk":"HK","www.hertz.jo":"JO","www.hertz.com.kw":"KW","www.hertz.qa":"QA","www.hertz.ru":"RU","www.hertz.ca":"CA","www.hertz.com.tw":"TW","www.hertz.co.ao":"AO","www.hertz.cv":"CV","www.hertz.com.sg":"SG","www.hertz.co.kr":"KR","www.hertz.co.id":"ID","www.hertz.co.th":"TH","www.hertz.lv":"LV","www.hertz.lt":"LT","www.hertz.co.uk":"GB","www.hertz.de":"DE","www.hertz.fr":"FR","www.hertz.es":"ES","www.hertz.it":"IT","www.hertz.nl":"NL","www.hertz.be":"BE","www.hertz.cz":"CZ","www.hertz-japan.com":"JP","www.hertz.com":"US","www5.hertz.com":"US","www.dev.maintenance.hertz.io":"US","www.stage.maintenance.hertz.io":"US","www.maintenance.hertz.io":"US","fleetsupport.stage.maintenance.hertz.io":"US","fleetsupport.maintenance.hertz.io":"US","pub.emails.hertz.com":"US","wwwpreprod.hertz.com":"US","wwwpreprod.hertz.co.uk":"GB","wwwstaging.hertz.com":"US","wwwqual.hertz.com":"US","wwwprod1.hertz.com":"US","wwwprod2.hertz.com":"US","wwwprod3.hertz.com":"US","www.hertzcarsales.com":"US","www.hertzrent2buy.com":"US","staging.hertzrent2buy.com":"US","www.hertz.lu":"LU"},n={US:"enUS",GB:"enGB"};if(["staging.dollar.com","staging.thrifty.com","www.dev.maintenance.hertz.io","www.stage.maintenance.hertz.io","fleetsupport.stage.maintenance.hertz.io","wwwpreprod.hertz.com","wwwpreprod.hertz.co.uk","wwwstaging.hertz.com","wwwqual.hertz.com","hertz.dev.htz-digital.use1.hertz.io","hertz.stage.htz-digital.use1.hertz.io","hertz.qa.htz-digital.use1.hertz.io","dollar.dev.htz-digital.use1.hertz.io","dollar.stage.htz-digital.use1.hertz.io","dollar.qa.htz-digital.use1.hertz.io","thrifty.dev.htz-digital.use1.hertz.io","thrifty.stage.htz-digital.use1.hertz.io","thrifty.qa.htz-digital.use1.hertz.io","wwwcloud-dev.hertz.com","wwwcloud-dev.thrifty.com","wwwcloud-dev.dollar.com","wwwcloud-qa.hertz.com","wwwcloud-qa.thrifty.com","wwwcloud-qa.dollar.com","wwwcloud-stage.hertz.com","wwwcloud-stage.thrifty.com","wwwcloud-stage.dollar.com","dev.auth.hertz.com","staging.hertzrent2buy.com"].includes(window?.location?.hostname)?(e.env="non-prod",-1==document?.cookie?.indexOf("aws.preview")&&(document.cookie="aws.preview=dev; path=/;")):e.env="prod",-1<window.location.hostname.indexOf("auth.hertz.com"))e.pos=o[new URL(window.location.href).searchParams.get("hertzDomain")]||"US",e.dialect=new URL(window.location.href).searchParams.get("dialect")||n[e.pos]||"enUS",e.system="auth0";else if(window.location.hostname&&-1<window.location.hostname.indexOf("pub.emails"))e.pos=o[window.location.hostname]||"US",e.dialect=new URL(window.location.href).searchParams.get("dialect")||n[e.pos]||"enUS",e.system="pub";else if(window.htz&&htz.config&&htz.config.pos&&htz.config.dialect&&window.location.href.indexOf("/p/")<0)e.pos=htz.config.pos,e.dialect=htz.config.dialect,e.system="IRAC";else if(t&&1<t.length&&"cars"===t[1])e.system="gbp1",3<t.length&&t[2].match(/^[a-zA-Z]{2}$/g)&&t[3].match(/^[a-zA-Z]{2}$/g)?(e.pos=t[2].toUpperCase(),e.dialect=t[3]+t[2].toUpperCase()):(e.pos=o[window.location.hostname]||"",e.dialect=e.pos&&n[e.pos]?n[e.pos]:"enUS");else if(t&&2<t.length&&t[1].match(/^[a-zA-Z]{2}$/g)&&t[2].match(/^[a-zA-Z]{2}$/g))e.pos=t[1].toUpperCase(),e.dialect=t[2]+t[1].toUpperCase(),e.system="vulcan";else{if(document.head&&(document.head.querySelector("script[src*='ecom.mss.hertz.io/shared/overlay']")&&document.head.querySelector("script[src*='?version=2']")||document.head.querySelector("script[src*='ecom/libs']")))try{var i=document.head.querySelector("script[src*='ecom/libs']")?.src||document.head.querySelector("script[src*='ecom.mss.hertz.io/shared/overlay']")?.src,a=i?.split("/")?.slice(-2,-1)?.[0]||"",r=i?.split("/")?.slice(-1)?.[0].split("?")?.[0]||"";a.match(/[A-Za-z]{2}/g)?e.pos=a:e.pos=o[window.location.hostname]||"",r.match(/[A-Za-z]{2,4}/g)?e.dialect=r:e.dialect=e.pos&&n[e.pos]?n[e.pos]:"enGB"}catch(e){}else e.pos=o[window.location.hostname]||"",e.dialect=e.pos&&n[e.pos]?n[e.pos]:"enGB";0<window.location.href.indexOf("/rentacar")?e.system="IRAC":0<window.location.href.indexOf("/p/")?e.system="envigo":0<window.location.hostname.indexOf(".maintenance.")?e.system="hmp":0<window.location.hostname.indexOf(".hertzcarsales.")?e.system="HCS":0<window.location.hostname.indexOf("hertzrent2buy.")?e.system="R2B":-1<window.location.pathname.indexOf("/supporthub/")?e.system="sf":e.system="3p"}}catch(e){console.log("getSiteDetails error: ",e)}return e},window.sitePos=window.htz&&htz.config&&htz.config.pos?htz.config.pos:getSiteDetails()?.pos,window.siteDialect=window.htz&&htz.config&&htz.config.dialect?htz.config.dialect:getSiteDetails()?.dialect,window?.hdt?.utils?.DataLayerHelper||!function(){"use strict";
58var t=/\\[object (Boolean|Number|String|Function|Array|Date|RegExp|Arguments)\\]/;function d(e){return null==e?String(e):(e=t.exec(Object.prototype.toString.call(Object(e))))?e[1].toLowerCase():"object"}function a(e,t){return Object.prototype.hasOwnProperty.call(Object(e),t)}function l(e){if(e&&"object"==d(e)&&!e.nodeType&&e!=e.window){try{if(e.constructor&&!a(e,"constructor")&&!a(e.constructor.prototype,"isPrototypeOf"))return}catch(e){return}for(var t in e);return void 0===t||a(e,t)}}function p(e,t){var o={},n=o;e=e.split(".");for(var i=0;i<e.length-1;i++)n=n[e[i]]={};return n[e[e.length-1]]=t,o}function m(e,t){var o,n,i=!e._clear;for(o in e)a(e,o)&&("array"===d(n=e[o])&&i?("array"!==d(t[o])&&(t[o]=[]),m(n,t[o])):l(n)&&i?(l(t[o])||(t[o]={}),m(n,t[o])):t[o]=n);delete t._clear}function e(e,t,o){t="function"==typeof(t=void 0===t?{}:t)?{listener:t,listenToPast:void 0!==o&&o,processNow:!0,commandProcessors:{}}:{listener:t.listener||function(){},listenToPast:t.listenToPast||!1,processNow:void 0===t.processNow||t.processNow,commandProcessors:t.commandProcessors||{}},this.a=e,this.l=t.listener,this.j=t.listenToPast,this.g=this.i=!1,this.c={},this.f=[],this.b=t.commandProcessors,this.h=(n=this,{set:function(e,t){m(p(e,t),n.c)},get:function(e){return n.get(e)}});var n,i=this.a.push,a=this;this.a.push=function(){var e=[].slice.call(arguments,0),t=i.apply(a.a,e);return r(a,e),t},t.processNow&&this.process()}function r(e,t,o){if(o=void 0!==o&&o,e.i&&(e.f.push.apply(e.f,t),!e.g))for(;0<e.f.length;){if("array"===d(t=e.f.shift()))e:{var n=e.c;d(t[0]);for(var i=t[0].split("."),a=i.pop(),r=t.slice(1),s=0;s<i.length;s++){if(void 0===n[i[s]])break e;n=n[i[s]]}try{n[a].apply(n,r)}catch(e){}}else if("arguments"===d(t)){if(a=[],r=t[0],(i=e).b[r])for(n=i.b[r].length,s=0;s<n;s++)a.push(i.b[r][s].apply(i.h,[].slice.call(t,1)));e.f.push.apply(e.f,a)}else if("function"==typeof t)try{t.call(e.h)}catch(e){}else{if(!l(t))continue;for(var c in t)m(p(c,t[c]),e.c)}o||(e.g=!0,e.l(e.c,t),e.g=!1)}}e.prototype.process=function(){this.registerProcessor("set",function(){var e={};return 1===arguments.length&&"object"===d(arguments[0])?e=arguments[0]:2===arguments.length&&"string"===d(arguments[0])&&(e=p(arguments[0],arguments[1])),e}),this.i=!0;for(var e=this.a.length,t=0;t<e;t++)r(this,[this.a[t]],!this.j)},e.prototype.get=function(e){var t=this.c;e=e.split(".");for(var o=0;o<e.length;o++){if(void 0===t[e[o]])return;t=t[e[o]]}return t},e.prototype.flatten=function(){this.a.splice(0,this.a.length),this.a[0]={},m(this.c,this.a[0])},e.prototype.registerProcessor=function(e,t){e in this.b||(this.b[e]=[]),this.b[e].push(t)},window.hdt.utils.DataLayerHelper=e}(),window.dataLayerRef||(window.objSet=(e,t,o)=>{try{if("object"!=typeof e)throw Error("non-object");if(""==t)throw Error("empty path");var n=t.indexOf(".");return-1==n?e[t]=o:objSet(e[t.slice(0,n)],t.slice(n+1),o)}catch(e){console.log("objSet err: ",e)}},window.eventTracker=new Map,window.ecomEventId={virtualPageview:"pageName",virtualPageView:"pageName",hashChange:"pageHash",view_item_list:"noIdAvailable",select_item:"ecommerce.click.products.0.id",add_to_cart:"ecommerce.add.products.0.id",remove_from_cart:"ecommerce.remove.products.0.id",purchase:"ecommerce.purchase.actionField.id",refund:"ecommerce.refund.actionField.id"},window.eventCompositeId={view_item_list:{key:"ecommerce.impressions",generate:e=>(e||[]).filter(e=>e&&("vehicle list â available"===e.list||"add on list"===e.list)&&e.id).map(e=>e.list+" - "+e.id),isDuplicate:(t,o)=>!t.filter(e=>!o.includes(e)).concat(o.filter(e=>!t.includes(e))).length}},window.eventFilterId={view_item_list:e=>e.filter(e=>("vehicle list â available"===e.list||"add on list"===e.list)&&e.list+" - "+e.id),select_item:e=>e?.split("-")?.[0]||e,add_to_cart:e=>e?.split("-")?.[0]||e,remove_from_cart:e=>e?.split("-")?.[0]||e},window.normalizeVirtualPageviewDedupKey=function(t){if(!t||"string"!=typeof t)return t;var e=t.trim();if(0!==e.indexOf("http")&&0!==e.indexOf("/"))return t;try{for(var o=window.location&&window.location.origin?window.location.origin:"https://www.hertz.com",n=0===e.indexOf("http")?new URL(e):new URL(e,o),i=[],a=(n.searchParams.forEac
58h(function(e,t){i.push([t,e])}),i.sort(function(e,t){return e[0]!==t[0]?e[0]<t[0]?-1:1:(e=String(e[1]))<(t=String(t[1]))?-1:t<e?1:0}),new URLSearchParams),r=0;r<i.length;r++)a.append(i[r][0],i[r][1]);var s=n.origin+n.pathname,c=a.toString();return c&&(s+="?"+c),n.hash&&(s+=n.hash),s}catch(e){return t}},window.dataLayer=window.dataLayer||[],window.adobeDataLayer=window.adobeDataLayer||[],__htzPendingAdobeEcom=null,__htzAdobeItemRegistry={},__htzPendingAdobeCart=null,__htzAdobeCartItems=[],__htzAdobeVasCtx=null,window.adobeForwardMapPayload=function(){function _(e){if(""!==e&&null!=e)return e=parseInt(String(e),10),isNaN(e)?void 0:e}function m(e){return"boolean"==typeof e?e:1===e||"1"===e||"true"===String(e).toLowerCase()||0!==e&&"0"!==e&&"false"!==String(e).toLowerCase()&&void 0}var u={pageCategory:function(){return(window.location.pathname||"").split("/").find(function(e){return e&&"rentacar"!==e&&"p"!==e&&!e.match(/^[a-zA-Z]{2}$/)})||"Home"},pageLocation:function(){return window.location&&window.location.href||""},pageTitle:function(){return"undefined"!=typeof document&&document.title||""},queryStringParameters:function(){return window.location&&window.location.search||""},userType:function(){var e="";try{window.sessionStorage&&(e=sessionStorage.getItem("u_type")?sessionStorage.getItem("u_type"):window.getCookieFunc&&window.getCookieFunc("_ga")?"returning":"new")}catch(e){}return e},discountType:function(){var e=[];try{var t=window.dlHelper;t&&t.get&&(t.get("pcCode")&&e.push("promoCode"),t.get("voucherNumber")&&e.push("voucherNumber"),t.get("cvNumber")&&e.push("conventionNumber"),t.get("cdpCode")&&e.push("cdpCode"),t.get("rateCode"))&&e.push("rateCode")}catch(e){}return e.join("|")},pickupRegion:function(){var e=window.hdt&&window.hdt.utils,t=window.dlHelper,e=e&&e.getRegionClassification;return"function"==typeof e&&t&&t.get&&e(t.get("pickupCountryCode"))||""},pickupSubregion:function(){var e=window.hdt&&window.hdt.utils,t=window.dlHelper,e=e&&e.getSubRegionClassification;return"function"==typeof e&&t&&t.get&&e(t.get("pickupCountryCode"))||""},dropoffRegion:function(){var e=window.hdt&&window.hdt.utils,t=window.dlHelper,e=e&&e.getRegionClassification;return"function"==typeof e&&t&&t.get&&e(t.get("dropoffCountryCode"))||""},dropoffSubregion:function(){var e=window.hdt&&window.hdt.utils,t=window.dlHelper,e=e&&e.getSubRegionClassification;return"function"==typeof e&&t&&t.get&&e(t.get("dropoffCountryCode"))||""},posRegion:function(){var e=window.hdt&&window.hdt.utils,e=e&&e.getRegionClassification;return"function"==typeof e&&e()||""},posSubregion:function(){var e=window.hdt&&window.hdt.utils,e=e&&e.getSubRegionClassification;return"function"==typeof e&&e()||""}},w=[["reservationDaysOut",_],["rentalDays",_],["isDomestic",m],["isOneWay",m]],n=["IATA","iata","iataNumber","iata_number"];function i(e){if(e&&"function"==typeof e.get)for(var t=0;t<n.length;t++){var o=e.get(n[t]);if(null!=o&&String(o).length)return String(o)}return""}function f(e){try{o=window?.htz?.tracking?.common;var t=(n=window?.htz?.tracking?.emember)&&"IATA"===n.memberTier&&o&&null!=o.memberID&&String(o.memberID).length?String(o.memberID):(n=(o=(n=window?.htz?.navigation?.homeURL||"")&&-1<n.indexOf("?")?n.split("?").slice(1).join("?"):"")?new URLSearchParams(o):null,o=window.location&&window.location.search?window.location.search.replace(/^\?/,""):"",o=new URLSearchParams(o),i(n)||i(o)||"");t&&(e.iataNumber=t)}catch(e){}var o,n}function v(e){if(""!==e&&null!=e)return e=parseFloat(e),isNaN(e)?void 0:e}function b(e,t,o){null!=o&&""!==o&&(e[t]=o)}function S(e,t,o){o=_(o);void 0!==o&&(e[t]=o)}function x(e,t,o){o=v(o);void 0!==o&&(e[t]=o)}function D(e,t,o){"boolean"==typeof o&&(e[t]=o)}function k(e,t,o){var n,i,a,e=parseFloat(e);if(!isNaN(e))return n="",(n=!(n=t&&"string"==typeof t.rate&&(a=t.rate.match(/[A-Z]{3}/g))&&a[0]?a[0]:n)&&o&&o.currency?o.currency:n)&&"USD"!==n&&(i=void 0===(i=t&&Array.isArray(t.exchange_rates)&&(a=t.exchange_rates.filter(function(e){return e&&"USD"===e.currency})[0])?a.rate:i)&&window.currExchangeRates?window.currExchangeRates[n]:i)&&(e*=i),e}function h(e,t){var o,i=__htzPendingAdobeEcom,n=(__htzPendingAdobeCart=__htzPendingAdobeEcom=null,t.ecommerce);if(delete e.ecommerce,n&&"object"==typeof n){try{o=window.applyAdobeEcommerceBasePriceMapping(n)}catch(e){o=n}
58var t=t.event,a="view_item_list"===t,r=a&&i&&"extras"===i.type?i.impKey:null,s=a&&i&&"extras"===i.type?{isVil:!0,days:i.days,paidExtras:i.paidExtras,currency:i.currency}:__htzAdobeVasCtx?{isVil:!1,days:__htzAdobeVasCtx.days,paidExtras:__htzAdobeVasCtx.paidExtras,currency:__htzAdobeVasCtx.currency}:{isVil:!1},c=[];try{Array.isArray(o.impressions)&&p(o.impressions),o.add&&p(o.add.products),o.remove&&p(o.remove.products),o.detail&&p(o.detail.products),o.purchase&&p(o.purchase.products),o.refund&&p(o.refund.products)}catch(e){console.log("assembleAdobeCommerce error:",e)}var d={},l=n.currencyCode||n.purchase&&n.purchase.currencyCode||o&&o.currencyCode;l&&(d.currencyCode=l),"purchase"===t&&((l=n.purchase&&n.purchase.actionField)&&l.id&&(d.purchaseID=l.id),x(d,"priceTotal",(n=o&&o.purchase&&o.purchase.actionField)&&n.revenue||l&&l.revenue),x(d,"taxAmount",n&&n.tax||l&&l.tax)),e.commerce=d,c.length&&(e.products=c),"purchase"===t||"refund"===t?(__htzAdobeCartItems=[],e.cartProductListItems=__htzAdobeCartItems.slice()):"add_to_cart"!==t&&"remove_from_cart"!==t||(c.forEach(function(t){__htzAdobeCartItems=__htzAdobeCartItems.filter(function(e){return e.id!==t.id})}),"add_to_cart"===t&&(__htzAdobeCartItems=__htzAdobeCartItems.concat(c)),e.cartProductListItems=__htzAdobeCartItems.slice())}function p(e){e&&(Array.isArray(e)?e:[e]).forEach(function(e){var t,o,n;e&&"object"==typeof e&&(t=e,t=(a&&i&&i.byId?i.byId:__htzAdobeItemRegistry)[t.id],o={iracVasCtx:s},(n=function(e,t){if(!e||"object"!=typeof e)return null;if(!(t=t.unit||t.variant))return null;var o=r&&e[r]&&e[r].qualified_rates?e[r]:null;if(!o)for(var n in e)if(e[n]&&"object"==typeof e[n]&&e[n].qualified_rates){o=e[n];break}var i=o&&o.qualified_rates;return i&&i[t]?{rate:i[t],rateKey:t,root:o}:null}(t,e))&&(o.rate=n.rate,o.rateKey=n.rateKey,o.rateRoot=n.root),c.push(function(e,t,o){o=o||{};var n,i,a,r,s={},c=(b(s,"id",e.id),b(s,"name",e.name),b(s,"category",e.category),b(s,"item_category2",e.item_category2),b(s,"item_category3",e.item_category3),b(s,"item_category4",e.item_category4),b(s,"item_category5",e.item_category5),b(s,"brand",e.brand),b(s,"variant",e.variant),b(s,"price",e.price),b(s,"list",e.list),b(s,"unit",e.unit),S(s,"position",e.position),S(s,"quantity",e.quantity),o.iracVasCtx);if("add-on"===e.brand&&t&&"object"==typeof t&&!t.sipp&&!t.sipp_code&&!t.ancillary_id){var d=!1;try{d=window.htzIracExtraIsIncluded(t,c&&c.paidExtras)}catch(e){}for(var l=!1,p=[e.unit,e.variant,t.periodText,t.rate],m=0;m<p.length;m++)if("string"==typeof p[m]&&/per[_\s-]?rental/i.test(p[m])){l=!0;break}d?(s.price="0.00",s.basePrice=0,s.priceType="included",s.priceTotal=0,s.basePriceTotal=0):(s.priceType="charged",d=!(!c||!c.isVil),l?void 0===(u=d?k(t.price,t,c):(u=v(e.price),w=_(e.quantity),void 0!==u&&w?u*w:v(e.price)))||isNaN(u)||(s.price=u.toFixed(2),s.basePrice=parseFloat(u.toFixed(2)),s.quantity=1,s.priceTotal=parseFloat(u.toFixed(2)),s.basePriceTotal=parseFloat(u.toFixed(2))):void 0===(w=d?k(t.price,t,c):v(e.price))||isNaN(w)||(s.price=w.toFixed(2),s.basePrice=parseFloat(w.toFixed(2))))}else{b(s,"priceType",e.priceType),x(s,"basePrice",e.basePrice);for(var u,w,f=[o.rateKey,e.unit,e.variant],h=(t&&"object"==typeof t&&f.push(t.periodText),!1),g=0;g<f.length;g++){var y=f[g];if("string"==typeof y&&/per[_\s-]?rental/i.test(y)){h=!0;break}}h&&(u=!o.rate||"object"!=typeof o.rate||window.vasUnitPriceMatchesTotal(o.rate.unit_price,o.rate.total),d=_(e.quantity),c=v(e.price),u)&&d&&0<d&&void 0!==c&&(s.price=(c*d).toFixed(2),s.quantity=1,void 0!==(w=v(e.basePrice)))&&(s.basePrice=parseFloat((w*d).toFixed(2)))}return t&&"object"==typeof t&&(t.sipp||t.sipp_code?(b(s,"vehicleSipp",t.sipp||t.sipp_code),b(s,"image",t.vehicle_image_url||t.vehicle_image),b(s,"size",t.vehicle_size),b(s,"class",t.vehicle_class),b(s,"bodyType",Array.isArray(t.vehicle_body_type)?t.vehicle_body_type.join("|"):t.vehicle_body_type),b(s,"sortOrderType",t.sort_order_type),D(s,"isRecommended",t.is_recommended_vehicle),S(s,"recommendationWeight",t.recommendation_weight),D(s,"canBookExactVehicle",t.can_book_exact_vehicle),S(s,"bonusPointPromotion",t.bonus_point_promotion),D(s,"memberDoubleBonusPoint",t.member_double_bonus_point),S(s,"businessRank",t.business_rank),S(s,"leisureRank",t.leisure_rank),b(s,"fuelType",(u=t.features||{}).fuel_type),u.fuel_economy&&"object"==typeof u.fuel_economy&&(S(s,"fuelEconomyQty",u.fuel_economy.qty),b(s,"fuelEconomyType",u.fuel_economy.fuelEconomy_type)),b(s,"driveType",u.drive_type),S(s,"seatsQty",u.seats_qty),S(s,"largeLuggageQty",u.large_luggage_qty),b(s,"collectionColor",u.collection_color),(c=t.upsell_vehicle)&&"object"==typeof c&&(b(s,"upsellSipp",c.sipp_code),b(s,"upsellMakeModel",c.make_model),b(s,"upsellCategory",c.vehicle_category),c.pricing)&&"object"==typeof c.pricing&&(x(s,"upsellTotalPriceDifference",(w=(e=Object.keys(c.pricing)[0])&&c.pricing[e]||{}).approx_total_price_difference),x(s,"upsellPerDayPriceDifference",w.per_day_price_difference))):t.ancillary_id&&((d=t.ancillary_features||{}).recommendation&&"object"==typeof d.recommendation&&(S(s,"recommendationRanking",d.recommendation.ranking),D(s,"recommendationToUpsell",d.recommendation.should_upsell)),b(s,"vasPurchasableAncillaryType",t.purchasable_ancillary_type),d.fuel_capacity&&"object"==typeof d.fuel_capacity&&(x(s,"fuelCapacity",d.fuel_capacity.capacity),b(s,"fuelUnit",d.fuel_capacity.unit)),Array.isArray(d.bundle_items)&&d.bundle_items.length&&(n=[],a=0,r=!(i=[]),d.bundle_items.forEac
58h(function(e){void 0!==(e=e||{}).ancillary_id&&null!==e.ancillary_id&&n.push(e.ancillary_id),void 0!==e.ancillary_name&&null!==e.ancillary_name&&i.push(e.ancillary_name);e=_(e.quantity_in_bundle);void 0!==e&&(a+=e,r=!0)}),n.length&&(s.ancillaryId=n.join(",")),i.length&&(s.ancillaryName=i.join(",")),r&&(s.quantityBundle=a),s.bundleItemQuantity=d.bundle_items.length),o.rate)&&"object"==typeof o.rate&&(b(s,"ratePeriod",o.rateKey),x(s,"unitPrice",o.rate.unit_price),x(s,"originalUnitPrice",o.rate.original_unit_price),x(s,"originalTotal",o.rate.original_total),x(s,"discountPercentage",o.rate.discount_percentage),S(s,"periodQuantity",o.rate.period_quantity)),void 0===s.priceTotal&&(void 0===(u=t.__adobePriceTotal)&&o.rate&&"object"==typeof o.rate&&t.ancillary_id&&(c=o.rateRoot||{},u=htzConvertToUsd(o.rate.total,c.currency,c.exchange_rates)),void 0===u||isNaN(u)?(e=_(s.quantity),w=v(s.price),e&&void 0!==w&&(s.priceTotal=parseFloat((w*e).toFixed(2)))):s.priceTotal=parseFloat(Number(u).toFixed(2))),void 0===s.basePriceTotal)&&(void 0===(d=t.__adobeBasePriceTotal)&&o.rate&&"object"==typeof o.rate&&t.ancillary_id&&(c=o.rateRoot||{},d=htzConvertToUsd(o.rate.original_total,c.currency,c.exchange_rates)),void 0===d||isNaN(d)?(w=_(s.quantity),e=v(s.basePrice),w&&void 0!==e&&(s.basePriceTotal=parseFloat((e*w).toFixed(2)))):s.basePriceTotal=parseFloat(Number(d).toFixed(2))),s}(e,t,o)))})}}return window.htzConvertToUsd=function(e,t,o){var n,e=parseFloat(e);if(!isNaN(e))return t&&"USD"!==t&&(n=void 0===(n=Array.isArray(o)&&(o=o.filter(function(e){return e&&"USD"===e.currency})[0])?o.rate:n)&&window.currExchangeRates?window.currExchangeRates[t]:n)&&(e*=n),e},window.htzTagAdobeTotal=function(e,t,o){var n;e&&((n=__htzAdobeItemRegistry[e])&&"object"==typeof n||(__htzAdobeItemRegistry[e]=n={}),void 0===t||isNaN(t)||(n.__adobePriceTotal=parseFloat(Number(t).toFixed(2))),void 0===o||isNaN(o)||(n.__adobeBasePriceTotal=parseFloat(Number(o).toFixed(2))))},function(e){if(!e||"object"!=typeof e)return e;var t,o=Object.assign({},e),n=(c=o,Object.prototype.hasOwnProperty.call(c,"pageName")&&(void 0===c.pageLocation&&(c.pageLocation=c.pageName),delete c.pageName),o);for(t in u)Object.prototype.hasOwnProperty.call(u,t)&&void 0===n[t]&&(n[t]=u[t]());for(var i,a,r=o,s=0;s<w.length;s++)i=w[s][0],a=w[s][1],Object.prototype.hasOwnProperty.call(r,i)&&(void 0!==(a=a(r[i]))?r[i]=a:delete r[i]);f(o);var c=o;try{var d,l,p=window?.htz?.tracking?.common;p&&(void 0!==p.applicant&&null!==p.applicant&&(d=m(p.applicant),c.applicant=void 0!==d?d:!!p.applicant),void 0!==p.travelAgent)&&null!==p.travelAgent&&(l=m(p.travelAgent),c.travelAgent=void 0!==l?l:!!p.travelAgent)}catch(e){}return h(o,e),o}}(),window.adobeForwardConfig={events:["virtualPageview","view_item_list","add_to_cart","remove_from_cart","purchase","refund","memHashedEm","formStart","formComplete"],mapPayload:window.adobeForwardMapPayload},window.htzDispatchFormEvent=function(e,t){try{var o=(t=t||{}).formLocation||(window.location.pathname||"").split("/").filter(Boolean).find(function(e){return e&&"rentacar"!==e&&"p"!==e&&!/^[a-zA-Z]{2}$/.test(e)})||"",n={event:e,formName:"enrollment",formType:"gold_plus_registration",formLocation:o,siteSection:o};if(n[e]=1,window.adobeDataLayer&&window.adobeForwardConfig&&window.adobeForwardConfig.mapPayload)try{window.adobeDataLayer.push(window.adobeForwardConfig.mapPayload(n))}catch(e){}}catch(e){console.log("htzDispatchFormEvent error:",e)}},function(){try{var e=window.location&&window.location.pathname||"";-1<e.indexOf("/rentacar/member/enrollment/skinnyGold/fast")&&(-1<e.indexOf("/confirmation")?window.__htzIracEnrollFormCompleteSent||(window.__htzIracEnrollFormCompleteSent=!0,window.htzDispatchFormEvent&&window.htzDispatchFormEvent("formComplete",{formLocation:"legacy enrollment"})):window.__htzIracEnrollFormStartSent||(window.__htzIracEnrollFormStartSent=!0,window.htzDispatchFormEvent&&window.htzDispatchFormEvent("formStart",{formLocation:"legacy enrollment"})))}catch(e){console.log("IRAC enroll form event error:",e)}}(),window.applyAdobeEcommerceBasePriceMapping=function(e){function o(e){e&&"object"==typeof e&&void 0!==e.basePrice&&null!==e.basePrice&&""!==String(e.basePrice)&&(e.price=String(e.basePrice))}function t(e){if(e)if(Array.isArray(e))for(var t=0;t<e.length;t++)o(e[t]);else o(e)}var n=function(t){try{return JSON.parse(JSON.stringify(t))}catch(e){return t}}(e);if(n&&"object"==typeof n){if(Array.isArray(n.impressions))for(var i=0;i<n.impressions.length;i++)o(n.impressions[i]);n.click&&t(n.click.products),n.add&&t(n.add.products),n.remove&&t(n.remove.products),n.detail&&t(n.detail.products),n.purchase&&(e=function(e){if(!e)return 0;for(var t=Array.isArray(e)?e:[e],o=0,n=0;n<t.length;n++){var i,a,r=t[n];r&&void 0!==r.basePrice&&null!==r.basePrice&&""!==String(r.basePrice)&&(i=parseFloat(r.price),a=parseFloat(r.basePrice),r=parseFloat(r.quantity),(isNaN(r)||r<=0)&&(r=1),!isNaN(i))&&!isNaN(a)&&a<=i&&(o+=(i-a)*r)}return o}(e.purchase&&e.purchase.products),t(n.purchase.products),n.purchase.actionField)&&0<e&&(n.purchase.actionField.tax=e.toFixed(2))}return n},"HCS"!=window.getSiteDetails()?.system&&(gtm_by=function(e){if(gtm_ay(e))return e;this.value=e},gtm_by.prototype.getUntrustedMessageValue=function(){return this.value},gtm_ay=function(e){return!(!e||"object"!==gtm_Va(e)||gtm_Xa(e))&&"getUntrustedMessageValue"in e}
58,gtm_Ua=/\[object (Boolean|Number|String|Function|Array|Date|RegExp)\]/,gtm_Va=function(e){return null==e?String(e):(e=gtm_Ua.exec(Object.prototype.toString.call(Object(e))))?e[1].toLowerCase():"object"},gtm_Wa=function(e,t){return Object.prototype.hasOwnProperty.call(Object(e),t)},gtm_Xa=function(e){if(!e||"object"!=gtm_Va(e)||e.nodeType||e==e.window)return!1;try{if(e.constructor&&!gtm_Wa(e,"constructor")&&!gtm_Wa(e.constructor.prototype,"isPrototypeOf"))return!1}catch(e){return!1}for(var t in e);return void 0===t||gtm_Wa(e,t)},gtm_h=function(e,t){var o,n,i=t||("array"==gtm_Va(e)?[]:{});for(o in e)gtm_Wa(e,o)&&(n=e[o],"array"==gtm_Va(n)?("array"!=gtm_Va(i[o])&&(i[o]=[]),i[o]=gtm_h(n,i[o])):gtm_Xa(n)?(gtm_Xa(i[o])||(i[o]={}),i[o]=gtm_h(n,i[o])):i[o]=n);return i},window.dataLayerRef=window.dataLayer.push,window.dataLayer.push=function(){try{try{window.__htzStamp&&window.__htzStamp(arguments[0])}catch(e){}if(window.hdtQueueDataLayerIfNoConsent&&window.hdtQueueDataLayerIfNoConsent([].slice.call(arguments)))return window.dataLayer.length;for(var e=[],t=0;t<arguments.length;t++)e[t]=new gtm_by(arguments[t]);var o=e.map(function(e){return gtm_a(e)}),n=o.find(e=>!Array.isArray(e)&&"object"==typeof e);if(n&&!n[0]){var i,a=n?.event||"";if(window.__htzStamp&&window.__htzStamp(n),n.adjusted||(!a||a.includes(".")||"headerFooterReady"===a)&&a)if(n.adjusted){if(window.google_tag_manager&&(window.google_tag_manager.SANDBOXED_JS_SEMAPHORE=0),n.ecomLayer&&ecomEventId[n.event]){var r,s=n.event;let e=ecomEventId[s].split(".").reduce((e,t)=>e?.[t],n);"virtualPageview"!==s&&"virtualPageView"!==s||"string"!=typeof e||(e=window.normalizeVirtualPageviewDedupKey(e)),eventFilterId[s]&&(e=e&&eventFilterId[s](e)),eventTracker.has(s)&&e&&eventTracker.get(s)==e?(delete n.event,delete n.ecommerce):"noIdAvailable"==ecomEventId[s]?(r=eventCompositeId[s].generate(eventCompositeId[s].key.split(".").reduce((e,t)=>e?.[t],n)),eventTracker.has(s)&&eventCompositeId[s].isDuplicate(eventTracker.get(s),r)?(delete n.event,delete n.ecommerce):eventTracker.set(s,r)):eventTracker.set(s,e)}window.dataLayerRef.apply(this,o)}else window.dataLayerRef.apply(this,arguments);else{if(ecomEventId[a])if(n.ecomLayer){let e=ecomEventId[a].split(".").reduce((e,t)=>e?.[t],n);"virtualPageview"!==a&&"virtualPageView"!==a||"string"!=typeof e||(e=window.normalizeVirtualPageviewDedupKey(e)),eventFilterId[a]&&e&&(e=eventFilterId[a](e),window.objSet(n,ecomEventId[a],eventFilterId[a](e))),eventTracker.has(a)&&e&&eventTracker.get(a)==e?(delete n.event,delete n.ecommerce):"noIdAvailable"==ecomEventId[a]?(i=eventCompositeId[a].generate(eventCompositeId[a].key.split(".").reduce((e,t)=>e?.[t],n)),eventTracker.has(a)&&eventCompositeId[a].isDuplicate(eventTracker.get(a),i)?(delete n.event,delete n.ecommerce):(eventTracker.set(a,i),window.objSet(n,eventCompositeId[a].key,i))):eventTracker.set(a,e)}else if("purchase"===n.event)n.event="fallback_purchase",n.fallback_ecommerce=n.ecommerce&&JSON.stringify(n.ecommerce)||"undefined",delete n.ecommerce;else if((0<window.location.href.indexOf("/rentacar/reservation")||0<window.location.href.indexOf("/book/")||0<window.location.href.indexOf("/manage/")||0<window.location.href.indexOf("/upgrade/")||0<window.location.href.indexOf("/checkin/vas/")||"virtualPageview"===n.event||"virtualPageView"===n.event)&&(delete n.event,delete n.ecommerce,!Object.keys(n).length))return;for(var c=Object.keys(n),t=0;t<c.length;t++)c[t].includes(".")||("event"===c[t]?(n[c[t]]="raw_"+n[c[t]],1!==c.filter(e=>!e.includes(".")).length||n.raw||(n.raw={})):(n.raw||(n.raw={}),n.raw[c[t]]=n[c[t]],delete n[c[t]]));window.dataLayerRef.apply(this,o)}}else window.dataLayerRef.apply(this,arguments)}catch(e){console.log("err in prototype dataLayer.push ",e),window.dataLayerRef.apply(this,arguments)}}),window.dlListener=function(e,t){var o=t?.event||"";let n=t?.event||"";n=n.replace("raw_",""),(t.adjusted&&!t.ecomLayer||!n||n.includes("."))&&"consent_given"!==n||window.overlayDataLayer&&overlayDataLayer.push({event:n});var i=o.replace("raw_",""),i=!(!window.ecomEventId||!window.ecomEventId[i]),a=!!(t&&window.hdtFlushedQueueEvents&&window.hdtFlushedQueueEvents.has(t)),r=!!(t&&"view_item_list"===t.event&&t.ecommerce&&Array.isArray(t.ecommerce.impressions)&&t.ecommerce.impressions[0]&&"vehicle_availability"===t.ecommerce.impressions[0].list);if(!(!(window.adobeDataLayer&&window.adobeForwardConfig&&window.adobeForwardConfig.events&&-1<window.adobeForwardConfig.events.indexOf(o))||a||r)&&(!i||t.ecomLayer))try{var s=window.adobeForwardConfig.mapPayload?window.adobeForwardConfig.mapPayload(t):"object"==typeof t&&null!==t?Object.assign({},t):t;window.adobeDataLayer.push(s)}catch(e){console.log("adobeDataLayer forward error:",e)}if("consent_given"==o&&window.alloy)try{alloy("setConsent",{consent:[{standard:"Adobe",version:"2.0",value:{collect:{val:"granted"==t["Performance Cookies"]?"y":"n"},metadata:{time:(new Date).toISOString()}}}]})}catch(e){console.log("alloy consent set error:",e)}if("consent_given"===o)try{window.__tuDrainOnConsent&&window.__tuDrainOnConsent()}catch(e){}"vulcan"!==window.getSiteDetails()?.system||"virtualPageview"!==o&&"virtualPageView"!==o||waitForAddedNode({selector:"#focusedFooterContentContainerLinks",type:"query",parent:document.body||document,recursive:!0,
58continuous:!1,done:function(){window.__secAiAddCookiesLink(document)}}),"virtualPageview"!==o&&"virtualPageView"!==o||(window.__htzEnrollFormStartSent=!1);a=t&&t.customEventCategory||t&&t.raw&&t.raw.customEventCategory;"customEvent"!==o&&"raw_customEvent"!==o||"member_express_enrollment_enter"!==a||window.__htzEnrollFormStartSent||(window.__htzEnrollFormStartSent=!0,window.htzDispatchFormEvent&&window.htzDispatchFormEvent("formStart"))},window.dlHelper=new window.hdt.utils.DataLayerHelper(dataLayer,{listener:dlListener,listenToPast:!0}),pushState=history.pushState,history.pushState=function(){pushState.apply(history,arguments),!replayVasAncillariesTracking()&&window.location.href.indexOf("/book/")<0&&window.location.href.indexOf("/manage/")<0&&window.location.href.indexOf("/upgrade/")<0&&window.location.href.indexOf("/checkin/vas/")<0&&ecomLayerDispatcher("virtualPageview",{urlData:"spaFlows"})},replaceState=history.replaceState,history.replaceState=function(){replaceState.apply(history,arguments),replayVasAncillariesTracking()},window.addEventListener("hashchange",function(e){var t,o;window.dlp({event:"hashChange",ecomLayer:!0,adjusted:!0,pageHash:"#"+e.newURL.split("#")[1],oldURL:e.oldURL,newURL:e.newURL}),window.sessionStorage.getItem("hdt-virtual-page-view-data")&&((t=JSON.parse(sessionStorage.getItem("hdt-virtual-page-view-data"))).pageName=e.newURL,window.dlp(t),window.ecom_fpt)&&window.ecom_fpt.pushToQueue({ts:window.ecom_fpt.getTimestamp(),en:"page_view",ep:{},up:{}}),0<e.newURL.indexOf("#review-and-book")&&(t=JSON.parse(sessionStorage?.getItem("hdt-virtual-page-view-data"))?.memberID||"",e=JSON.parse(sessionStorage?.getItem("hdt-virtual-page-view-data"))?.memberTier||"",o=JSON.parse(sessionStorage?.getItem("hdt-virtual-page-view-data"))?.memberType||"",t&&(document.cookie="ecom-mem-id="+t+"; max-age=180;"),e&&(document.cookie="ecom-mem-tier="+e+"; max-age=180;"),o)&&(document.cookie="ecom-mem-type="+o+"; max-age=180;")})),window.getCookieFunc||(window.getCookieFunc=function(e){var o={};return document.cookie.split(";").forEach(function(e){var t=e.split("=")[0],e=e.split("=")[1];o[t.trim()]=e}),o[e]}),window.hdtFlushDataLayerQueue||(window.hdtFlushDataLayerQueue=function(){if(window.dataLayerQueue&&window.dataLayerQueue.length){var e=window.dataLayerQueue.slice();window.dataLayerQueue.length=0,window.hdtIsFlushingDataLayerQueue=!0;try{for(var t=0;t<e.length;t++){var o=e[t];o&&"object"==typeof o&&window.hdtFlushedQueueEvents&&window.hdtFlushedQueueEvents.add(o),window.dataLayer.push(o)}}catch(e){console.log("hdtFlushDataLayerQueue",e)}finally{window.hdtIsFlushingDataLayerQueue=!1}}}),window.hdtQueueDataLayerIfNoConsent=function(t){if("function"!=typeof window.getCookieFunc||!t||!t.length)return!1;if(1!==t.length)return!1;if(window.getCookieFunc("cookie_pref"))return!1;var o,t=t[0];if(null==t||"object"!=typeof t||Array.isArray(t))return!1;if("consent_given"===t.event||"headerFooterReady"===t.event)return!1;if("string"==typeof t.event&&-1<t.event.indexOf("."))return!1;try{o=JSON.parse(JSON.stringify(t))}catch(e){o=Object.assign({},t)}return window.dataLayerQueue=window.dataLayerQueue||[],window.dataLayerQueue.push(o),!0},!window.consentListener){window.consentListener=!0;try{!0===navigator.globalPrivacyControl&&"1"!==window.getCookieFunc("cookie_pref")&&(document.cookie="cookie_pref=1; max-age=15552000; path=/;")}catch(e){}window.handleConsentClick=function(e){if(!e?.target?.closest||!e.target.closest(".cc-window")&&!e.target.closest(".cmp-modal")){if(!0===navigator.globalPrivacyControl)"1"!==window.getCookieFunc("cookie_pref")&&(document.cookie="cookie_pref=1; max-age=15552000; path=/;");else if(!window.getCookieFunc("cookie_pref")&&(document.cookie="cookie_pref=1_2_3_4; max-age=15552000; path=/;",window.dlp({event:"consent_given",adjusted:!0,"Functionality Cookies":"granted","Performance Cookies":"granted","Advertising Cookies":"granted"}),window.flushDataLayerQueue(!0),"HCS"===window.getSiteDetails()?.system))try{window.localStorage.setItem("hcs_cmp_reshow_pending","1"),window.hcsWaitForSecuritiSDK(function(e){e.acceptAll(),window.hcsWatchForBannerClose&&window.hcsWatchForBannerClose(e)})}catch(e){}document.body.removeEventListener("click",window.handleConsentClick)}},window.flushDataLayerQueue||(window.flushDataLayerQueue=function(e){try{e&&window.eventTracker&&"function"==typeof window.eventTracker.clear&&window.eventTracker.clear(),window.hdtFlushDataLayerQueue&&window.hdtFlushDataLayerQueue()}catch(e){}});try{let cookiePref=getCookieFunc("cookie_pref"),cookieConsent=getCookieFunc("__privaci_cookie_consents");if(cookiePref&&!window.consentOnLoad){window.consentOnLoad=!0;let consentEvent={event:"consent_given",adjusted:!0};-1<cookiePref.indexOf("2")?consentEvent["Functionality Cookies"]="granted":consentEvent["Functionality Cookies"]="denied",-1<cookiePref.indexOf("3")?consentEvent["Performance Cookies"]="granted":consentEvent["Performance Cookies"]="denied",-1<cookiePref.indexOf("4")?consentEvent["Advert
58ising Cookies"]="granted":consentEvent["Advertising Cookies"]="denied",window.dlp(consentEvent),window.flushDataLayerQueue(!0)}else if(cookieConsent&&window.bannerConfigUtils&&!window.consentOnLoad){window.consentOnLoad=!0;try{cookieConsent=JSON.parse(getCookieFunc("__privaci_cookie_consents"));let message={response:bannerConfigUtils.getParams()},consentMap={},char2=(message.response.categories.forEach(e=>{consentMap[e.id]=e.name}),""),char3="",char4="",cookiePrefValue,consentEvent={event:"consent_given",adjusted:!0};for(var item in cookieConsent.consents)if(consentEvent[consentMap[item]]=cookieConsent.consents[item]?"granted":"denied",cookieConsent.consents[item])switch(consentMap[item]){case"Advertising Cookies":char4="_4";break;case"Performance Cookies":char3="_3";try{dtrum.enable()}catch(err){}break;case"Functionality Cookies":char2="_2"}cookiePrefValue="1".concat(char2,char3,char4),cookiePref!==cookiePrefValue&&(document.cookie=`cookie_pref=${cookiePrefValue}; max-age=15552000; path=/;`),window.dlp(consentEvent),window.flushDataLayerQueue(!0)}catch(e){}}else 0<window.location.href.indexOf("isMobileApp=true")&&0<window.location.href.indexOf("performanceTracking=true")&&!window.cookie_pref&&(document.cookie="cookie_pref=1_2_3; max-age=15552000; path=/;",window.cookie_pref="1_2_3",window.dlp({event:"consent_given",adjusted:!0,"Advertising Cookies":"denied","Performance Cookies":"granted","Functionality Cookies":"granted"}),window.flushDataLayerQueue(!0))}catch(e){console.log(e)}try{window.addEventListener("message",function(n){if(n.data&&n.data.message&&"consolidated_consent_given"===n.data.message)try{let e="",t="",o="";var i={event:"consent_given",adjusted:!0};if(n.data.consentStatuses){if(!0===n.data.consentStatuses["Advertising Cookies"]?(i["Advertising Cookies"]="granted",o="_4"):i["Advertising Cookies"]="denied",!0===n.data.consentStatuses["Performance Cookies"]){i["Performance Cookies"]="granted",t="_3";try{dtrum.enable()}catch(e){console.log(e)}}else i["Performance Cookies"]="denied";!0===n.data.consentStatuses["Functionality Cookies"]?(i["Functionality Cookies"]="granted",e="_2"):i["Functionality Cookies"]="denied"}var a="1".concat(e,t,o),r=window.getCookieFunc("cookie_pref");r&&r===a||(document.cookie=`cookie_pref=${a}; max-age=15552000; path=/;`,window.dlp(i),window.flushDataLayerQueue(!0))}catch(e){}})}catch(e){console.log(e)}}if((!window.getCookieFunc("ecm_pos")||window.sitePos&&window.getCookieFunc("ecm_pos")!=window.sitePos)&&(document.cookie="ecm_pos="+window.sitePos+"; path=/;"),!window.sessionStorage.getItem("u_type")){let type=window.getCookieFunc("_ga")?"returning":"new";sessionStorage.setItem("u_type",type)}if(!document.getElementById("pre-render-init")){let pr=document.createElement("script");pr.id="pre-render-init",pr.innerHTML="window.prerenderReady = false;",document.getElementsByTagName("head")[0].appendChild(pr)}if(window.location.href&&!window.opt_nofollow&&(window.innovationNoIndex||window?.hdt?.noIndex)&&(window.opt_nofollow=!0,m=document.createElement("meta"),m.name="robots",m.content="noindex",document.head.appendChild(m)),window.location.hostname&&window.location.pathname&&"www.hertz.com"==window.location.hostname&&window.location.pathname.includes("rentacar/location")&&(pathArr=window.location.pathname.split("/"),7!==pathArr.length&&6!==pathArr.length||6===pathArr[pathArr.length-1].length&&pathArr[pathArr.length-1].toUpperCase()!==pathArr[pathArr.length-1]&&(pathArr[pathArr.length-1]=pathArr[pathArr.length-1].toUpperCase(),window.location.replace(pathArr.join("/")))),0<document.cookie.indexOf("tmobilesession")&&window.location.href&&window.location.href.indexOf("#vehicles")<0&&window.location.href.indexOf("#extras")<0&&window.location.href.indexOf("#review-and-book")<0&&window.location.href.indexOf("#confirmation")<0&&(localStorage.removeItem("htz.res.nonmember.searchList"),document.cookie="JSESSIONID=; Path=/; Expires=Thu, 01 Jan 1970 00:00:01 GMT;",document.cookie="tmobilesession=true; path=/; Expires=Thu, 01 Jan 1970 00:00:01 GMT;",window.location.reload()),(0<document?.cookie?.indexOf("isMobileApp")||0<window.location.href.indexOf("isMobileApp=true"))&&!document.getElementById("hideHeaderFooter")){let style=document.createElement("style");style.id="hideHeaderFooter",style.innerHTML="#container > header,#container > footer,.cc-window.cc-banner{display:none!important;}",document.head.appendChild(style),document.cookie="isMobileApp=true; path=/;"}window.waitForAddedNode||(window.waitForAddedNode=function(o){var e;if(o.parent=o.parent||document,"id"===o.type&&document.getElementById(o.selector)?(o.done(document.getElementById(o.selector)),e=!0):"query"===o.type&&o.parent.querySelector(o.selector)&&(o.done(o.parent.querySelector(o.selector)),e=!0),e&&!o.continuous||"id"!==o.type&&"query"!==o.type||!o.selector)return null;new MutationObserver(function(e){var t="id"===o.type?document.getElementById(o.selector):o.parent.querySelector(o.selector);
58t&&(o.continuous||this.disconnect(),o.done(t))}).observe(o.parent,{subtree:!!o.recursive||!o.parent,childList:!0})}),window.waitForAddedNodeGTM||(window.waitForAddedNodeGTM=function(o){return o.parent?o.parent.nodeType||(o.parent="document"!==o.parent?document.querySelector(o.parent):document):o.parent=document,"id"===o.type&&document.getElementById(o.selector)?(o.done(o.field?document.getElementById(o.selector)[o.field]:document.getElementById(o.selector).outerHTML),o.field?document.getElementById(o.selector)[o.field]:document.getElementById(o.selector).outerHTML):"query"===o.type&&o.parent.querySelector(o.selector)?(o.done(o.field?o.parent.querySelector(o.selector)[o.field]:o.parent.querySelector(o.selector).outerHTML),o.field?o.parent.querySelector(o.selector)[o.field]:o.parent.querySelector(o.selector).outerHTML):"id"!==o.type&&"query"!==o.type||!o.selector?null:void new MutationObserver(function(e){var t="id"===o.type?document.getElementById(o.selector):o.parent.querySelector(o.selector);if(t)return this.disconnect(),o.done(o.field?t[o.field]:t.outerHTML),o.field?t[o.field]:t.outerHTML}).observe(o.parent,{subtree:!!o.recursive||!o.parent,childList:!0})}),window.waitForRemovedNode||(window.waitForRemovedNode=function(a){"id"!==a.type&&"class"!==a.type||!a.selector||new MutationObserver(function(e){for(var t=!1,o=0;o<e.length;o++){for(var n=e[o].removedNodes.length,i=0;i<n;i++)if("id"===a.type){if(e[o].removedNodes[i].id===a.selector){t=!0,this.disconnect(),a.done(e[o].removedNodes[i]);break}}else if(-1<e[o].removedNodes[i].className.indexOf(a.selector)){t=!0,this.disconnect(),a.done(e[o].removedNodes[i]);break}if(t)break}}).observe(a.parent||document,{subtree:!1,childList:!0})});const __secAiQs=new URLSearchParams(window.location.search),__secAiSkipRender=Boolean(__secAiQs?.get("isMobileApp"))||Boolean(-1!==window.navigator.userAgent.toLowerCase().indexOf("prerender"));if(!__secAiSkipRender&&("IRAC"===window.getSiteDetails()?.system||"vulcan"===window.getSiteDetails()?.system||"HCS"===window.getSiteDetails()?.system||"sf"===window.getSiteDetails()?.system||"auth0"===window.getSiteDetails()?.system||"envigo"===window.getSiteDetails()?.system||"pub"===window.getSiteDetails()?.system||"gbp1"===window.getSiteDetails()?.system||"R2B"===window.getSiteDetails()?.system)){let secAiDomainUuidLookup={"auth.hertz.com":"d9c7d7c5-9492-4062-bc49-6c2120bcf117","booking.hertz247.com":"f818956d-2c2e-4dad-962e-59254222c4aa","booking.hz-hertz.com":"df0ecca4-e70c-49cf-a96f-9fc744a49c34","delivery.hertz.com":"9641ea49-2fdf-49b9-aa8f-e02bce03b260","es.hertz.com":"cf48199d-4406-4833-a752-0b3598b770c6","finnair.hertzredemption.com":"d2db024d-6047-4c01-b713-457afa0e23e9","fr.hertz.ca":"15b7a069-9511-46bc-9ae3-6655e0e792a9","hertz.com":"ec729dd0-2650-48ce-b500-a053a43b7931","hertz.io":"131dba71-ffcf-4526-8e3a-8b573c306b39","hertz.staging.envigo-tech.co.uk":"08122fd8-9835-434d-b131-da78c4ddcdbd","hertzracinggold.com":"311f03da-5f22-49e2-9818-bdcc3b5b4a0a","hertzredemption.com":"5643b904-f322-4a8d-a0c9-168e96e7e58d","pub.emails.hertz.com":"d9c7d7c5-9492-4062-bc49-6c2120bcf117","sa.hertz.com":"7117b0cc-a262-40bf-aa01-a8b9e5e179e0","www.hertz-europe.com":"46b5a57c-37a3-4466-aa02-90d1f83faf36","www.hertz-japan.com":"d40731fa-0566-40a0-9e4a-f231e75591a7","www.hertz.at":"baec064f-a2bc-4fcc-853c-1bf609afb751","www.hertz.be":"17231ec2-40e1-40bc-a4be-fc4ea7637e5c","www.hertz.bh":"b5b34bfb-9e70-457c-b694-37e4d2c483dd","www.hertz.ca":"8ce39015-7719-4b0a-8b92-e777ca5083ce","www.hertz.ch":"de38b5d2-cc39-4734-bf7c-6d8f61afc6ec","www.hertz.cn":"ce0c2ab6-7ed0-4fc2-8488-fb31128a3be8","www.hertz.co.ao":"b5ac5153-a87e-445a-8403-1dfe7003c03d","www.hertz.co.id":"656e7e45-1491-4140-96d6-528c05ec0f06","www.hertz.co.kr":"87ac550e-22bc-4db6-bcfc-648c95487a3b","www.hertz.co.nz":"96727740-f6ff-4c0d-89d6-b0bcd8ef8e7d","www.hertz.co.th":"f21adfd6-bf9a-4887-93a6-6a10bc55304c","www.hertz.co.uk":"0cc32dc8-3bbb-46d0-84ed-424ff868d8d9","www.hertz.com":"d9c7d7c5-9492-4062-bc49-6c2120bcf117","www.hertz.com.au":"acb23aeb-26b5-45e9-95e5-7228be2b8d33","www.hertz.com.hk":"905d944c-1441-4967-9695-68502e333b48","www.hertz.com.kw":"a5208b85-bfd0-4165-874e-53938c8be32b","www.hertz.com.mt":"3f163202-aab6-4c13-a19e-6c42a765ae60","www.hertz.com.pt":"77b99ae2-a745-4e98-b0ff-5f5e742c6a78","www.hertz.com.sg":"d37d59c2-0370-44aa-ae68-af6bd1aae869","www.hertz.com.tw":"78b4a5ce-345f-45af-9575-bec334328975","www.hertz.cv":"573cbc93-7c75-49a2-a109-55f5c0130f2b","www.hertz.cz":"543ae289-5963-4c64-9ef8-d9d2421b1967","www.hertz.de":"655f6b68-dc16-4116-8b79-32760a550504","www.hertz.ee":"73449e04-2925-4575-98e1-f8f96a878974","www.hertz.es":"f4377dec-9b3b-4229-bf26-eeb3bac63f3e","www.hertz.fi":"eb46b356-9f6a-4df0-809a-fb47da74861f","www.hertz.fr":"ffdd3e4c-e6a4-41e1-8754-9cd606b031b5","www.hertz.hu"
58:"ab616581-4b70-4ecd-b219-e7c12a0d1e81","www.hertz.ie":"54b76579-17e7-4436-bb35-c15b9e9eeabe","www.hertz.it":"6d91c7d0-00ca-40b1-a620-5cb2abb23b64","www.hertz.jo":"6b876802-3906-43a4-809e-686219270b5b","www.hertz.lt":"bbc687c2-0abe-4515-8fa6-5bbe25176a72","www.hertz.lu":"24a5103f-0f1c-43e1-ace7-238a74c30b64","www.hertz.lv":"62bbc9c9-36e6-42a2-b2cd-4649da718c24","www.hertz.nl":"ea65d2cb-48bf-4cdf-a0b2-4053934c93b8","www.hertz.no":"16a6b5a1-bba9-4a5e-a681-4e20065a0c88","www.hertz.nu":"935124b5-067e-4b69-825e-606a66ab0956","www.hertz.pl":"5af7ffd7-fdc6-4689-a903-f17f1702bf1a","www.hertz.pt":"e08009fa-a4c0-4b30-8c26-3065f76974f3","www.hertz.qa":"99952df2-d8b9-4922-94a7-4216dacc2fc7","www.hertz.ru":"d0926851-ae25-40bb-8694-29688cf48e3b","www.hertz.se":"1fb1b702-79c6-4b20-8410-424c6bf40b4b","www.hertz.si":"e69cd163-568b-4738-8f74-4ec303032e5f","www.hertzcaribbean.com":"d5f50464-beeb-4ac3-838b-774452905196","www.hertzcarsales.com":"69c376c3-637f-4791-a5a5-5ca9df0f5c32","www.hertzrent2buy.com":"c4aa1458-1d1c-4a3b-883c-4df65d8fdbe0","staging.hertzrent2buy.com":"c4aa1458-1d1c-4a3b-883c-4df65d8fdbe0","www.hertzdk.dk":"e4c0caab-29ec-40fd-b50f-991a1c5e64de","www5.hertz.com":"79ae685e-1795-43fc-99cc-cf9e05b23551","wwwpreprod.hertz.co.uk":"43baed79-d9bf-4cfe-9144-8ee5082711d9","wwwpreprod.hertz.com":"378ead1e-93e7-4b27-a0e3-ac4c3e2ef3db","wwwpreprod.hertz.de":"0250ee72-48e5-4254-bb85-b9fbb2c3df04","wwwqual.hertz.com":"c80c6898-6a6d-4af5-b9f9-f79333982591","staging.thrifty.com":"26a594a9-7168-432f-9e34-940cc0a9052d","thrifty-ca.envigo-tech.co.uk":"656fb419-cd88-4d81-9893-48d0baaf3024","www.thrifty.be":"3b1aadfa-1403-473c-82b2-de837e6f9b40","www.thrifty.ch":"4631a388-7214-4d23-b62f-b472323ca11f","www.thrifty.cn":"20399e7a-6054-4a05-8565-01060d53fde9","www.thrifty.co.kr":"332d5486-5c2b-45fe-a7c1-08ab9d271296","www.thrifty.com":"9b8b9af8-c4a3-427c-9541-0358e8bd9626","www.thrifty.de":"ee9f6c51-47c3-4be9-bd7f-7a079495e3bf","www.thrifty.es":"4feaff07-183f-4788-8c1a-cccf541d4806","www.thrifty.fr":"55133b4d-ba38-4af2-9d6e-71af641314ae","www.thrifty.ie":"8185ba74-f2c3-4e3e-9e09-5bb7bbf3f122","www.thrifty.it":"31cf1652-657a-43e1-ba6b-4717fa6ffd85","www.thrifty.jp":"0a5f4e06-3780-4477-b381-89497d4a9525","www.thrifty.lu":"a1eea9fd-31d7-4f04-bcef-759aa64216ce","www.thrifty.nl":"52b323f7-b4b7-44fc-a6ca-ce4afa922827","www.thrifty.no":"fb6011df-9ded-4a29-a441-4be1550481ed","www.thriftycanada.ca":"84cb37d6-8af0-4dd9-9899-e6818e82f187","www.thriftycars4rent.com":"a27d5d13-27b2-4e11-a601-5808a6c030c3","dollar-ca.envigo-tech.co.uk":"79fb4751-3691-45ed-a90d-326ea8f4267f","staging.dollar.com":"3a27427f-e8bc-455d-b6c4-ab656ee79e9f","www.dollar.co.uk":"ebf961ec-540b-4b59-9475-ed9f12756543","www.dollar.com":"7a3e1c92-df34-400d-a37c-900966645fb2","www.dollar.ie":"d37369dd-b269-49c2-9977-64e8e049784d","www.dollar.it":"3f2d39f5-94f7-4357-8abb-bea0e1184d05","www.dollar.lu":"cb1c88d8-b1fb-4709-a177-2020cf510ace","www.dollar.pl":"bad2225d-c2bd-459d-9611-80a3b72158fd","www.dollarcanada.ca":"04e7cfa8-9261-4196-8e12-bb35c444f77a","www.dollarcarrental.be":"6549ede5-2cae-4b04-92a0-57b51a16ee86","www.dollarcarrental.cz":"c9026fb3-5a33-4616-8de7-bc6e93c6c585","www.dollarcarrental.de":"67fcb9d7-ee66-44cf-bbfb-0dedbfdf6b38","www.dollarcarrental.es":"d60f3e19-d17d-4cfa-9014-9d19cdd67da3","www.dollarcarrental.fr":"a2f65bdb-afeb-450f-a06d-defa6a9aa5f4","www.dollarcarrental.nl":"925623ce-a932-4274-9139-d803f57c8c02","www.dollarcars4rent.com":"174024e3-f261-4a0e-8b8f-d1e9d9efe56c","probusinsurance.ie":"ccdb203f-4d46-4e32-906f-9b31a76031a0","sas-hrtzrdmpstg1.oc1.servicecdi.com":"628a095b-9138-4ed3-ba9e-b69f9cc6b1dd","servicecdi.com":"28058f99-113e-423e-89dc-ddbe39ff53c2","www.cathaypacificcarrental.com":"7859dace-7ef7-496d-a93c-798d83edfff8","www.oromobility.com":"fe8ee3fd-2c2f-4dc2-95ae-7ee59c9f4fd8"},secAiDomainUuid=secAiDomainUuidLookup[window?.location?.hostname]||"0cc32dc8-3bbb-46d0-84ed-424ff868d8d9";const __secAiLegacyFrag="cdn-prod.eu.securiti.ai/consent/cookie-consent-sdk.js",__secAiStubFrag="cdn-prod.eu.securiti.ai/consent/sdk-stub.js",__secAiSkipDeploy=!(!document.querySelector('script[src*="'+__secAiLegacyFrag+'"]')&&!document.querySelector('script[src*="'+__secAiStubFrag+'"]'));if(!__secAiSkipDeploy){try{const __srcDesc=Object.getOwnPropertyDescriptor(HTMLScriptElement.prototype,"src");if(__srcDesc?.set&&!window.__secAiSrcOverride){Object.defineProperty(HTMLScriptElement.prototype,"src",{configurable:!0,get:function(){return __srcDesc.get.call(this)},set:function(e){if(!("string"==typeof e&&-1<e.indexOf(__secAiLegacyFrag)))return __srcDesc.set.call(this,e);try{this.type="javascript/blocked"}catch(e){}}});const __origSetAttr=HTMLScriptElement.prototype.setAttribute;HTMLScriptElement.prototype.setAttribute=function(e,t){if(!("string"==typeof e&&"src"===e.toLowerCase()&&"string"==typeof t&&-1<t.indexOf(__secAiLegacyFrag)))return __origSetAttr.call(this,e,t);try{this.type="javascript/blocked"}catch(e){}},window.__secAiSrcOverride=!0}}catch(e){console.log("legacy SDK src override error:",e)}try{const __secAiNeutralize=function(e){try{e.type="javascript/blocked",e.removeAttribute("src"),e.parentNode?.removeChild(e)}catch(e){}};if(!window.__secAiLegacyObs){const obs=new MutationObserver(function(e){for(const t of e)for(const o of t.addedNodes)1===o.nodeType&&"
58SCRIPT"===o.tagName&&"string"==typeof o.src&&-1<o.src.indexOf(__secAiLegacyFrag)&&__secAiNeutralize(o)});if(document.head&&obs.observe(document.head,{childList:!0,subtree:!1}),document.body)obs.observe(document.body,{childList:!0,subtree:!1});else if(document.documentElement){const waitForBody=new MutationObserver(function(){document.body&&(obs.observe(document.body,{childList:!0,subtree:!1}),waitForBody.disconnect())});waitForBody.observe(document.documentElement,{childList:!0,subtree:!1})}window.__secAiLegacyObs=obs}}catch(e){console.log(e)}if(!document.getElementById("secAiAutoBlock")&&!document.querySelector('script[src*="cdn-prod.eu.securiti.ai/consent/auto_blocking/"]')){let abs=document.createElement("script"),parent_node=(abs.id="secAiAutoBlock",abs.src="https://cdn-prod.eu.securiti.ai/consent/auto_blocking/c3001264-2465-4c40-a23d-05543a15c547/"+secAiDomainUuid+".js",document.head||document.body);parent_node.appendChild(abs)}if(!document.getElementById("secAiSdk")&&!document.querySelector('script[src*="cdn-prod.eu.securiti.ai/consent/cookie-consent-sdk-loader.js"]')){let s=document.createElement("script"),parent_node=(s.id="secAiSdk",s.src="https://cdn-prod.eu.securiti.ai/consent/cookie-consent-sdk-loader.js",s.setAttribute("data-tenant-uuid","c3001264-2465-4c40-a23d-05543a15c547"),s.setAttribute("data-domain-uuid",secAiDomainUuid),s.setAttribute("data-backend-url","https://app.eu.securiti.ai"),s.defer=!0,document.head||document.body);parent_node.appendChild(s)}}if("HCS"===window.getSiteDetails()?.system){if(!document.getElementById("secAiCss")){let css=document.createElement("style"),parent_node=(css.id="secAiCss",css.innerHTML=".cc-revoke, .cc-window{z-index: 2147483645 !important;} .consumer-privacy-banner{display: none!important;} div#ae_app{z-index: 2147483644 !important;} div.f-pref-sdk-banner.cmp-body{z-index: 2147483646 !important;}",document.head||document.body);parent_node.appendChild(css)}document.getElementById("hcs-mng-cook")||waitForAddedNode({selector:".ddc-footer",type:"query",parent:document.body||document,recursive:!0,continuous:!1,done:function(e){e?.insertAdjacentHTML("beforeend",'<div id="hcs-mng-cook" style="display: flex;width: 100%;background-color: #000;"><button class="cmp-revoke-consent" style="display: block;position: relative;color: #FFF;background-color: #000;padding: 0;border: none;margin: -30px auto 0;z-index: 999;">Manage Cookie Preferences</button></div>')}}),window.hcsWaitForSecuritiSDK||(window.hcsWaitForSecuritiSDK=function(o,e){e=void 0===e?150:e;var t=window.bannerConfigUtils&&"function"==typeof window.bannerConfigUtils.getConfigLoadedStatus&&!0===window.bannerConfigUtils.getConfigLoadedStatus();if(window.SecuritiSDK&&"function"==typeof window.SecuritiSDK.onReady&&t){let t=!1;window.SecuritiSDK.onReady(function(e){t||(t=!0,o(e))}),0<e&&setTimeout(function(){t||window.hcsWaitForSecuritiSDK(o,e-1)},100)}else 0<e&&setTimeout(function(){window.hcsWaitForSecuritiSDK(o,e-1)},100)}),window.hcsWatchForBannerClose||(window.hcsWatchForBannerClose=function(n){try{let o=document.querySelector(".cc-window");if(o){let e=!1,t=new MutationObserver(function(){e||o.style&&"none"===o.style.display&&"1"===window.localStorage.getItem("hcs_cmp_reshow_pending")&&(e=!0,t.disconnect(),n.showBanner())});t.observe(o,{attributes:!0,attributeFilter:["style"]}),setTimeout(function(){t.disconnect()},1e4)}}catch(e){}});try{"1"===window.localStorage.getItem("hcs_cmp_reshow_pending")&&window.hcsWaitForSecuritiSDK(function(e){e.showBanner(),window.hcsWatchForBannerClose(e)})}catch(e){}if(!window.hcsConsentButtonListener){window.hcsConsentButtonListener=!0;let attachHcsConsentButtonListener=function(){function t(e){if(e?.target?.closest&&e.target.closest(".cc-btn.cc-allow, .cc-btn.cc-dismiss, .cc-btn.cc-deny, .cc-close")){try{window.localStorage.removeItem("hcs_cmp_reshow_pending")}catch(e){}document.body.removeEventListener("click",t)}}document.body.addEventListener("click",t)};if(document.body)attachHcsConsentButtonListener();else{let bodyObserver=new MutationObserver(function(){document.body&&(attachHcsConsentButtonListener(),bodyObserver.disconnect())});bodyObserver.observe(document.documentElement,{childList:!0})}}}
58const __secAiCookiesLinkCopy={esES:"Gestionar mis cookies",esLA:"Administrar mis cookies",frFR:"Gérer mes cookies",frCA:"Gérer mes cookies",frBE:"Gérer mes cookies",deDE:"Cookies verwalten",itIT:"Gestisci i miei cookie",nlNL:"Cookies beheren",nlBE:"Cookies beheren",daDK:"Administrer mine cookies",svSE:"Hantera mina cookies"},__secAiCookiesLinkText=__secAiCookiesLinkCopy[window.getSiteDetails()?.dialect]||"Manage my Cookies";if("vulcan"===window.getSiteDetails()?.system||"sf"===window.getSiteDetails()?.system){window.__secAiAddCookiesLink=function(e){if(!e)return!1;if(!e.getElementById("focusedFooterContentContainerLinksItem-managecookies")){var t=e.getElementById("focusedFooterContentContainerLinks");if(!t)return!1;e=e.createElement("a");e.id="focusedFooterContentContainerLinksItem-managecookies",e.href="#",e.title=__secAiCookiesLinkText,e.textContent=__secAiCookiesLinkText,e.addEventListener("click",function(e){e.preventDefault();try{(window.top||window).showConsentPreferencesPopup?.()}catch(e){console.log("showConsentPreferencesPopup err:",e)}}),t.appendChild(e)}return!0};const __secAiWatchDoc=function(e){var t;e&&!__secAiAddCookiesLink(e)&&((t=e.body||e.documentElement)?waitForAddedNode({selector:"#focusedFooterContentContainerLinks",type:"query",parent:t,recursive:!0,continuous:!1,done:function(){__secAiAddCookiesLink(e)}}):setTimeout(function(){__secAiWatchDoc(e)},100))};if(__secAiWatchDoc(document),"sf"===window.getSiteDetails()?.system){const __secAiDeepQuery=function(t,e){e=e||document;try{var o=e.querySelector?.(t);if(o)return o;var n=e.querySelectorAll?.("*")||[];for(let e=0;e<n.length;e++)if(n[e].shadowRoot){var i=__secAiDeepQuery(t,n[e].shadowRoot);if(i)return i}}catch(e){}return null};let __secAiTries=0;const __secAiPoll=setInterval(function(){const e=__secAiDeepQuery("iframe.focused-footer-iframe");var t;e?(clearInterval(__secAiPoll),t=function(){try{__secAiWatchDoc(e.contentDocument)}catch(e){}},e.addEventListener("load",t),t()):60<=++__secAiTries&&clearInterval(__secAiPoll)},500)}}"gbp1"===window.getSiteDetails()?.system&&(window.__secAiAddCookiesLinkGbp1=function(){if(!document.getElementById("gbp1-managecookies-link")){var e=document.querySelector("footer nav.flex.flex-wrap");if(!e)return!1;var o=e.querySelectorAll(":scope > span");if(!o.length)return!1;let t=null;for(let e=o.length-1;0<=e;e--)if(o[e].querySelector("span")&&o[e].querySelector("a")){t=o[e];break}var n=(t=t||o[o.length-1]).cloneNode(!0),i=(n.id="gbp1-managecookies-link",n.querySelector("a"));if(!i)return!1;i.removeAttribute("target"),i.removeAttribute("rel"),i.setAttribute("href","#"),i.title=__secAiCookiesLinkText,i.textContent=__secAiCookiesLinkText,i.addEventListener("click",function(e){e.preventDefault();try{(window.top||window).showConsentPreferencesPopup?.()}catch(e){console.log("showConsentPreferencesPopup err:",e)}}),e.appendChild(n)}return!0},"complete"===document.readyState?window.__secAiAddCookiesLinkGbp1():window.addEventListener("load",function(){window.__secAiAddCookiesLinkGbp1()},{once:!0}))}if(document&&document.body&&"HCS"!=window.getSiteDetails()?.system&&waitForAddedNode({selector:'iframe[src^="https://platform.twitter.com/widgets/widget_iframe"]',type:"query",parent:document.body,recursive:!1,continuously:!1,done:function(e){try{e.remove()}catch{}}}),("vulcan"===window.getSiteDetails()?.system||"sf"===window.getSiteDetails()?.system||"pub"===window.getSiteDetails()?.system||"auth0"===window.getSiteDetails()?.system||"IRAC"===window.getSiteDetails()?.system&&!window?.htz?.config?.isApp)&&!document?.head?.querySelector("script[src*='assets.adobedtm.com/a8fcb2c3628f/12cd4ce03d7e/launch']")){let adobeLaunchEnvUrl=null;if("non-prod"==window?.getSiteDetails()?.env?adobeLaunchEnvUrl="https://assets.adobedtm.com/a8fcb2c3628f/12cd4ce03d7e/launch-cbe4b7c7d00a-development.min.js":0<window?.location?.hostname?.indexOf("hertz")&&!window?.location?.hostname?.match(/.*hertz.io.*|.*wwwpreprod.*|.*wwwqual.*|.*wwwstaging.*|.*dev.auth.dev.*/gi)&&(adobeLaunchEnvUrl="https://assets.adobedtm.com/a8fcb2c3628f/12cd4ce03d7e/launch-56233f7508bc.min.js"),adobeLaunchEnvUrl&&!document.getElementById("adobeLaunchScript")){let adobeLaunch=document.createElement("script");adobeLaunch.id="adobeLaunchScript",adobeLaunch.src=adobeLaunchEnvUrl,adobeLaunch.async=!0,document.getElementsByTagName("head")[0].appendChild(adobeLaunch)}}if(("vulcan"===window.getSiteDetails()?.system||"sf"===window.getSiteDetails()?.system||"pub"===window.getSiteDetails()?.system||"auth0"===window.getSiteDetails()?.system||"IRAC"===window.getSiteDetails()?.system&&!window?.htz?.config?.isApp)&&!document?.head?.querySelector("script[src*='cdn.eu.amplitude.com/script']")){let ampApiKey=null;
58if("non-prod"==window?.getSiteDetails()?.env?ampApiKey="1b119276b51bf4b8573370d2c4a4f5a5":window.getCookieFunc("cookie_pref")&&-1<window.getCookieFunc("cookie_pref").indexOf("3")&&0<window?.location?.hostname?.indexOf("hertz")&&!window?.location?.hostname?.match(/.*hertz.io.*|.*wwwpreprod.*|.*wwwqual.*|.*wwwstaging.*|.*dev.auth.dev.*/gi)&&(ampApiKey="55a922fd0e853ac5f664a326df038e0f"),"vulcan"!==window.getSiteDetails()?.system&&"sf"!==window.getSiteDetails()?.system&&"pub"!==window.getSiteDetails()?.system&&"auth0"!==window.getSiteDetails()?.system||!ampApiKey||document.getElementById("ecomAmpScript")){if("IRAC"===window.getSiteDetails()?.system&&ApiKey){const MAX_WAIT_TIME=7e3,POLLING_INTERVAL=250;let timeElapsed=0,requireJsIntervalId=null;function configureAndLoadAmplitude(){requireJsIntervalId&&(clearInterval(requireJsIntervalId),requireJsIntervalId=null),require.config({paths:{"amplitude-analytics":"https://cdn.eu.amplitude.com/script/"+ampApiKey,"amplitude-session-replay":"https://cdn.eu.amplitude.com/libs/plugin-session-replay-browser-1.4.0-min.js.gz?noext","amplitude-experiment":"https://unpkg.com/@amplitude/[email protected]/dist/experiment.umd"},shim:{"amplitude-analytics":{exports:"amplitude"},"amplitude-session-replay":{deps:["amplitude-analytics"],exports:"sessionReplay"},"amplitude-experiment":{deps:["amplitude-analytics"],exports:"Experiment"}}}),require(["amplitude-analytics","amplitude-session-replay","amplitude-experiment"],function(e,t,o){var n,t=t.plugin(),t=(e.add(t),e.init(ampApiKey,{autocapture:{elementInteractions:!0},serverZone:"EU"}),window.getCookieFunc?.("__privaci_cookie_consent_uuid")?.split(":")?.[0]);t&&e?.Identify&&e?.identify&&((n=new e.Identify).setOnce("cookie_consent_uuid",t),e.identify(n)),window.experiment=o.initializeWithAmplitudeAnalytics(ampApiKey,{serverZone:"EU"}),(async()=>{await window.experiment.fetch()})()})}requireJsIntervalId=setInterval(function(){timeElapsed+=POLLING_INTERVAL,void 0!==window.require&&"function"==typeof window.require.config?configureAndLoadAmplitude():timeElapsed>=MAX_WAIT_TIME&&(clearInterval(requireJsIntervalId),requireJsIntervalId=null)},POLLING_INTERVAL)}}else{let ampAnalytics=document.createElement("script");ampAnalytics.id="ecomAmpScript",ampAnalytics.src=`https://cdn.eu.amplitude.com/script/${ampApiKey}.js`,ampAnalytics.onload=()=>{let o=!1;var e,t=()=>{var e,t;!o&&window.amplitude&&window.sessionReplay&&(o=!0,e=window.sessionReplay.plugin({serverZone:"EU"}),window.amplitude.add(e),window.engagement&&"function"==typeof window.engagement.plugin&&window.amplitude.add(window.engagement.plugin()),window.amplitude.init(ampApiKey,{autocapture:{sessions:!0,elementInteractions:!0},fetchRemoteConfig:!0,serverZone:"EU"}),e=window.getCookieFunc?.("__privaci_cookie_consent_uuid")?.split(":")?.[0])&&window.amplitude?.Identify&&window.amplitude?.identify&&((t=new window.amplitude.Identify).setOnce("cookie_consent_uuid",e),window.amplitude.identify(t))};document.getElementById("ecomAmpGSScript")?window.engagement&&"function"==typeof window.engagement.plugin?t():((e=document.getElementById("ecomAmpGSScript"))&&(e.addEventListener("load",t),e.addEventListener("error",t)),setTimeout(t,5e3)):((e=document.createElement("script")).id="ecomAmpGSScript",e.src=`https://cdn.eu.amplitude.com/script/${ampApiKey}.engagement.js`,e.onload=t,e.onerror=t,document.getElementsByTagName("head")[0].appendChild(e),setTimeout(t,5e3)),document.getElementById("ecomAmpExpScript")||((e=document.createElement("script")).id="ecomAmpExpScript",e.src="https://unpkg.com/@amplitude/[email protected]/dist/experiment.umd.js",e.onload=()=>{window.experiment=Experiment.initializeWithAmplitudeAnalytics(ampApiKey,{serverZone:"EU"}),(async()=>{await window.experiment.fetch()})()},document.getElementsByTagName("head")[0].appendChild(e))},document.getElementsByTagName("head")[0].appendChild(ampAnalytics)}}if(!window.ecom_fpt){let __fptPending=[];window.ecom_fpt={_isStub:!0,_pending:__fptPending,pushToQueue:function(e){try{__fptPending.push(e)}catch(e){}},getTimestamp:function(){try{if(window.performance&&window.performance.timeOrigin&&window.performance.now){var e=String(Math.round(1e3*(performance.timeOrigin+performance.now())));if("NaN"!==e)return e}}catch(e){}return String(1e3*Date.now())}}}if(!window.respDataLayer){window.respDataLayer=window.sessionStorage.getItem("resp-layer")?JSON.parse(atob(atob(window.sessionStorage.getItem("resp-layer")))):[];var uAgent=navigator.userAgent||"unk",browLang=navigator.language||"unk",siteLang=window.siteDialect||"unKN",contLang=siteLang.slice(0,siteLang.length/2)+"-"+siteLang.slice(siteLang.length/2),posHTZ=window.sitePos||"unk";let weekday=["Sunday","Monday","Tuesday","Wednesday","Thursday","Frid
58ay","Saturday"],today=new Date,eventsToFilter=(window.sessionStorage.getItem("resp-layer")&&window.sessionStorage.removeItem("resp-layer"),window.addEventListener("beforeunload",function(e){try{var t;window.location.href&&window.location.href.indexOf("/rentacar/reservation/")<0&&window.location.href.indexOf("/book/")<0&&window.location.href.indexOf("/manage/")<0&&window.location.href.indexOf("/upgrade/")<0&&window.location.href.indexOf("/checkin/")<0&&(t=btoa(btoa(JSON.stringify(respDataLayer))),sessionStorage.setItem("resp-layer",t))}catch(e){console.log("encode resp-layer err",e)}}),window.createDateObj=function(n){let i="";try{n?(i=new Date(decodeURIComponent(n)))instanceof Date&&!isNaN(i)||(i=""):window.dlp({event:"customEvent",customEventCategory:"createDateObj error",customEventAction:"dateString was not passed",customEventLabel:"",customEventValue:1})}catch(e){let t=e?.message||e?.toString()||e,o=!1;try{(i=new Date(n))instanceof Date&&!isNaN(i)||(i="")}catch(e){o=!0,t=e?.message||e?.toString()||e}n=o?"with and without decoding dateString":"with decoded dateString";window.dlp({event:"customEvent",customEventCategory:"createDateObj error",customEventAction:n,customEventLabel:"error: "+t,customEventValue:1}),console.log("createDateObj "+n+" err: ",e)}return i},window.dateFormater=function(t,o){let e="";try{t instanceof Date&&o&&("mmddyy"==o?e=("0"+(t?.getMonth()+1)).toString().slice(-2)+("0"+t?.getDate()).toString().slice(-2)+t?.getFullYear().toString().slice(-2):"yyyy-mm-dd"==o&&(e=t?.getFullYear()+"-"+("0"+(t?.getMonth()+1)).toString().slice(-2)+"-"+("0"+t?.getDate()).toString().slice(-2)))}catch(e){console.log("dateFormater err: ",e);t=e?.message||e?.toString()||e;window.dlp({event:"customEvent",customEventCategory:"dateFormater error",customEventAction:"format: "+o,customEventLabel:"error: "+t,customEventValue:1})}return e},window.calcDaysFromDates=function(n,i,a,r){let s=n&&a?"1":"";try{let t="",o="";if(n&&i&&a&&r?(t=new Date(n.replaceAll("/","-")+"T"+i),o=new Date(a.replaceAll("/","-")+"T"+r)):n&&a&&(t=new Date(n),o=new Date(a)),t instanceof Date&&o instanceof Date){var c=Math.abs(o.getTime()-t.getTime())/1e3;let e=Math.floor(c/86400);var d=(c-=86400*e)/3600%24;2<d&&++e,s=e.toString()}}catch(e){console.log("calcDaysFromDates err: ",e);c=e?.message||e?.toString()||e;window.dlp({event:"customEvent",customEventCategory:"calcDaysFromDates error",customEventAction:"params: "+n+i+a+r,customEventLabel:"error: "+c,customEventValue:1})}return s},window.getAmpExperimentVariant=function(e){try{return"function"!=typeof window?.experiment?.variant?null:window.experiment.variant(e,!1)?.value??null}catch(e){return null}},window.isBareAncillariesParentRoute=function(){return 0<window.location.href.indexOf("/book/ancillaries")&&/\/book\/ancillaries\/?$/.test(window.location.pathname)||0<window.location.href.indexOf("/manage/ancillaries")&&/\/manage\/ancillaries\/?$/.test(window.location.pathname)||0<window.location.href.indexOf("/upgrade/ancillaries")&&/\/upgrade\/ancillaries\/?$/.test(window.location.pathname)||0<window.location.href.indexOf("/checkin/vas")&&/\/checkin\/vas\/?$/.test(window.location.pathname)},window.htzWaitForConfirmationUpsellCards=function(e,t){(t=void 0===t?5:t)<=0||document.querySelector('[id^="ancillary-"][id$="-description-list"]')?e():setTimeout(function(){window.htzWaitForConfirmationUpsellCards(e,t-1)},150)},window.vasUnitPriceMatchesTotal=function(e,t){return null!=e&&null!=t&&(e=parseFloat(e),t=parseFloat(t),!isNaN(e))&&!isNaN(t)&&Math.abs(e-t)<.02},window.htzPerDay=function(e,t){e=parseFloat(e),t=parseFloat(t);return isNaN(e)||isNaN(t)||t<=0?"":(e/t).toFixed(2).toString()},window.htzIracExtraIsIncluded=function(t,e){return!(!t||!0!==t.disabled&&(null!=t.price&&""!==t.price&&!isNaN(parseFloat(t.price))||(e=Array.isArray(e)&&e.some(function(e){return e&&null!=e.id&&String(e.id).toLowerCase()===String(t.id).toLowerCase()}),!t.selected)||e))},window.locationOwnerMapping=function(e){let t="";switch(e){case"C":t="CORPORATE";break;case"L":t="LICENSEE";break;default:t=e}return t},window.memberTypeMapping=function(e){let t="";switch(e){case"G":case"P":t="MEMBER";break;case"A":t="APPLICANT";break;case"TA":t="TRAVEL_AGENT";break;default:t=e}return t},window.memberTierMapping=function(e){let t="";switch(e){case"EXP":t="NUMBER_1_CLUB";break;case"G":t="REGULAR_GOLD";break;case"FS":t="FIVE_STAR";break;case"PC":t="PRESIDENTS_CIRCLE";break;case"P":t="PLATINUM";break;case"A":t="APPLICANT";break;default:t=e}return t},window.ecomLayerDispatcher=function(t,f){try{var h=window?.htz?.navigation?.homeURL||"",j=window?.htz?.config?.buildId||"",B=window?.htz?.tracking?.common?.consumerProductFromHertzLink||"";let d=f?.system||window.getSiteDetails()?.system||"";var J=window.getSiteDetails()?.pos||"",V=window.getSiteDetails()?.dialect||"";let l=window?.htz?.tracking?.emember?.isLoggedIn||(JSON.parse(window.localStorage?.getItem("member"))?.memberId?"true":"false");var Q=window?.htz?.tracking?.common?.memberID||JSON.parse(window.localStorage?.getItem("member"))?.memberId||"",G=window?.htz?.tracking?.emember?.memberTier||JSON.parse(window.localStorage?.getItem("member"))?.loyalty?.tier||"",W=window?.htz?.tracking?.emember?.memberType||JSON.parse(window.localStorage?.getItem("member"))?.type||"",g=f?.urlData&&"initialize"!==f?.urlData&&"spaFlows"!==f?.urlData?new URLSearchParams(f?.urlData?.split("?")[1]):"vulcan"===d?new URLSearchParams(window.location.href?.split("?")[1]):"",y="IRAC"===d&&(f?.formData||f?.itinDetail
58s)||{},e=f?.responseData?.data||f?.responseData||{},_="IRAC"===d?y?.pickupDayStandard||y?.pickupDateStandard||(y?.pickupDay?dateFormater(createDateObj(y?.pickupDay),"yyyy-mm-dd"):""):g&&g.get("pick_up_time")?g.get("pick_up_time")?.split("T")[0]:g&&g.get("pdate")?g.get("pdate")?.split("T")[0]:f?.rateDetails?.pick_up_time?f?.rateDetails?.pick_up_time?.split("T")[0]:"",v="IRAC"===d?y?.dropoffDayStandard||y?.dropoffDateStandard||(y?.dropoffDay?dateFormater(createDateObj(y?.dropoffDay),"yyyy-mm-dd"):""):g&&g.get("drop_off_time")?g.get("drop_off_time")?.split("T")[0]:g&&g.get("ddate")?g.get("ddate")?.split("T")[0]:f?.rateDetails?.drop_off_time?f?.rateDetails?.drop_off_time?.split("T")[0]:"";let p="IRAC"===d?_?createDateObj(_):"":g&&g.get("pick_up_time")?createDateObj(g.get("pick_up_time")):g&&g.get("pdate")?createDateObj(g.get("pdate")):f?.rateDetails?.pick_up_time?createDateObj(f?.rateDetails?.pick_up_time):"",m="IRAC"===d?v?createDateObj(v):"":g&&g.get("drop_off_time")?createDateObj(g.get("drop_off_time")):g&&g.get("ddate")?createDateObj(g.get("ddate")):f?.rateDetails?.drop_off_time?createDateObj(f?.rateDetails?.drop_off_time):"",u="IRAC"===d?y?.pickupTimeValue||e?.itinerary?.pickupTimeValue||"":p&&("0"+p.getHours()).slice(-2)+":"+("0"+p.getMinutes()).slice(-2)||"",w="IRAC"===d?y?.dropoffTimeValue||e?.itinerary?.dropoffTimeValue||"":m&&("0"+m.getHours()).slice(-2)+":"+("0"+m.getMinutes()).slice(-2)||"";var b=calcDaysFromDates(_,u,v,w)||"";if("virtualPageview"==t&&(f.formData&&f.responseData||f.urlData&&("initialize"===f.urlData||"spaFlows"===f.urlData)||g)||"purchase"==t&&f.conf&&f.rateDetails&&d||"view_item_list"==t){var S=e?.itinerary?.pickupLocation||y?.pickupLocation||"",x=e?.itinerary?.dropoffLocation||y?.dropoffLocation||"",K=f?.responseData?.data?.model?.metaData||f?.responseData?.data?.model||{},Z="",$="",X="",Y="",ee="",te="",D="",oe="",k=e?.itinerary?.isOneWay||y?.isOneWay||"",ne=e?.rateDetails?.vehicle||{};if("vulcan"===d&&g&&(g.get("pick_up_location")||g.get("pid"))&&(g.get("drop_off_location")||g.get("did"))){let t=g.get("pick_up_location")||g.get("pid")||"",o=g.get("drop_off_location")||g.get("did")||"",n=g?.get("sipp_code")||g?.get("sippCode")||"";var ie=JSON.parse(window.sessionStorage.getItem("hdt-location-data"))?.filter(e=>e.data.oag6===t),ae=JSON.parse(window.sessionStorage.getItem("hdt-location-data"))?.filter(e=>e.data.oag6===o),k=ie&&ie.length&&ae&&ae.length?(S=ie[0].data,x=ae[0].data,ie[0].data.oag6!==ae[0].data.oag6):(S={locationOAGCode:g?.get("pid")||""},x={locationOAGCode:g?.get("did")||""},S?.locationOAGCode&&x?.locationOAGCode?S?.locationOAGCode!==x?.locationOAGCode:!S?.locationOAGCode&&""),ne=(window.sessionStorage.getItem("hdt-veh-impressions")?JSON.parse(window.sessionStorage.getItem("hdt-veh-impressions")):[])?.filter(e=>e.id===n)?.[0]||{}}if(S){var o,re,Z=S?.lat&&S?.lon?S?.lat?.toString()+","+S?.lon?.toString():S?.latitude&&S?.longitude?S?.latitude?.toString()+","+S?.longitude?.toString():"",$=k&&x?x?.lat&&x?.lon?x?.lat?.toString()+","+x?.lon?.toString():x?.latitude&&x?.longitude?x?.latitude?.toString()+","+x?.longitude?.toString():"":S?.lat&&S?.lon?S?.lat?.toString()+","+S?.lon?.toString():S?.latitude&&S?.longitude?S?.latitude?.toString()+","+S?.longitude?.toString():"",X=S?.type?locationOwnerMapping(S.type):"",Y=k&&x&&x.type?locationOwnerMapping(x.type):X;S.categoryCode?te=S.fbo?(ee="FBO",k&&x.fbo?"FBO":x.categoryCode):(ee=S.categoryCode,k&&x.categoryCode?x.categoryCode:ee):(o=S.locationOAGCode&&window.sessionStorage.getItem(S.locationOAGCode)?JSON.parse(window.sessionStorage.getItem(S.locationOAGCode)):"",re=k&&x&&x.locationOAGCode&&window.sessionStorage.getItem(x.locationOAGCode)?JSON.parse(window.sessionStorage.getItem(x.locationOAGCode)):o,o?.data?.hle||re?.data?.hle?(ee=o?.data?.hle?"HLE":"",te=re?.data?.hle?"HLE":""):o?.data?.fbo||re?.data?.fbo?(ee=o?.data?.fbo?"FBO":"",te=re?.data?.fbo?"FBO":""):(o?.data?.airport&&"Y"===o?.data?.airport||re?.data?.airport&&"Y"===re?.data?.airport)&&(ee=o?.data?.airport&&"Y"===o?.data?.airport?"AIR":"",te=re?.data?.airport&&"Y"===re?.data?.airport?"AIR":""))}else if(h&&-1<h.indexOf("HertzlinkHandler")&&0<window.location.href.indexOf("/rentacar/reservation"))try{var n=new URLSearchParams(h?.split("?")[1]);n&&(S={locationOAGCode:n?.get("PULoc")||""},x={locationOAGCode:n?.get("DOLoc")||""},k=S?.locationOAGCode&&x?.locationOAGCode?S?.locationOAGCode!==x?.locationOAGCode:!S?.locationOAGCode&&"",u=n?.get("PUTime")?n?.get("PUTime").substring(0,2)+":"+n?.get("PUTime").substring(2,4):"",w=n?.get("DOTime")?n?.get("DOTime").substring(0,2)+":"+n?.get("DOTime").substring(2,4):"",p=n?.get("PUDate")&&createDateObj(n?.get("PUDate"))?createDateObj(n?.get("PUDate")):8===n?.get("PUDate")?.length?createDateObj(n?.get("PUDate").substring(4,6)+"-"+n?.get("PUDate").substring(6,8)+"-"+n?.get("PUDate").substring(0,4)):"",m=n?.get("DODate")&&createDateObj(n?.get("DODate"))?createDateObj(n?.get("DODate")):8===n?.get("DODate")?.length?createDateObj(n?.get("DODate").substring(4,6)+"-"+n?.get("DODate").substring(6,8)+"-"+n?.get("DODate").substring(0,4)):"",D=n?.get("CDP")||"",ne={sipp:n?.get("Sipp")||""})}catch(e){console.log("error sourcing itin info from htzHomeUrl ",e)}0<window.location.href.indexOf("/rentacar/reservation")?oe=0<window.location.hash.indexOf("modify")?"modify":0<window.location.hash.indexOf("online-checkin-confirmation")?"checkin":"book":"vulcan"===d&&(0<window.location.href.indexOf("/book/")?oe="book":0<window.location.href.indexOf("/manage/")?oe
58="modify":0<window.location.href.indexOf("/upgrade/")?oe="upgrade":0<window.location.href.indexOf("/checkin/")&&(oe="checkin")),g&&g.get("cdp_discount_code")?D=g.get("cdp_discount_code"):g&&g.get("CDP")?D=g.get("CDP"):y.memberOtherCdpField?D=y.memberOtherCdpField:y.memberSelectedCdp&&"0"!=y.memberSelectedCdp?D=y.memberSelectedCdp:y.cdpField?D=y.cdpField:htzHelper.get("body.memberOtherCdpField")?D=htzHelper.get("body.memberOtherCdpField"):htzHelper.get("body.memberSelectedCdp")&&"0"!=htzHelper.get("body.memberSelectedCdp")?D=htzHelper.get("body.memberSelectedCdp"):htzHelper.get("body.cdpField")&&(D=htzHelper.get("body.cdpField"))}if("virtualPageview"==t&&(f.formData&&f.responseData||f.urlData&&("initialize"===f.urlData||"spaFlows"===f.urlData)||g)){var se={ecomLayer:!0,adjusted:!0,event:"virtualPageview",systemID:d,pageName:window.location.href,buildID:j,cpCode:B,pos:J,dialect:V,cdpCode:D,tripType:y?.["trip-type"]||htzHelper.get("body.trip-type")||g&&g?.get("rental_type")||g&&g?.get("travelType")||"",pcCode:y?.pcNumber||htzHelper.get("body.pcNumber")||g&&g?.get("pc_discount_code")||g&&g?.get("PC")||"",rateCode:y?.typeInRateQuote||htzHelper.get("body.typeInRateQuote")||g&&g?.get("rq_discount_code")||g&&g?.get("RQ")||"",cvNumber:y?.cvNumber||htzHelper.get("body.cvNumber")||g&&g?.get("cv_discount_code")||g&&g?.get("CV")||"",voucherNumber:y?.itNumber||htzHelper.get("body.itNumber")||g&&g?.get("it_discount_code")||g&&g?.get("IT")||"",pickupCity:S?.city||"",pickupCountryCode:S?.countryCode||"",pickupDate:_&&u&&createDateObj(_.replaceAll("/","-")+"T"+u)?createDateObj(_.replaceAll("/","-")+"T"+u)?.toISOString():"",pickupDate_mmddyy:dateFormater(p,"mmddyy"),"pickupDate_yyyy-mm-dd":dateFormater(p,"yyyy-mm-dd"),pickupDay:p&&p?.getDate()?.toString()||"",pickupDoW:p&&weekday[p?.getDay()]||"",pickupLocationName:S?.name||y?.pickupLocation||"",pickupLocationType:ee,pickupLocationOwnership:X,pickupLocationLatLong:Z,pickupMonth_mm:p&&(p?.getMonth()+1)?.toString(),pickupOAGCode:S?.locationOAGCode||S?.oag6||y?.pickupHiddenEOAG||"",pickupState:S?.stateCode||"",pickupTime24HR:u,pickupYear_yyyy:p&&p?.getFullYear()?.toString()||"",dropoffCity:k?x?.city||"":S?.city||"",dropoffCountryCode:k?x?.countryCode||"":S?.countryCode||"",dropoffDate:v&&w&&createDateObj(v.replaceAll("/","-")+"T"+w)?createDateObj(v.replaceAll("/","-")+"T"+w)?.toISOString():"",dropoffDate_mmddyy:dateFormater(m,"mmddyy"),"dropoffDate_yyyy-mm-dd":dateFormater(m,"yyyy-mm-dd"),dropoffDay:m&&m?.getDate()?.toString()||"",dropoffDoW:m&&weekday[m?.getDay()]||"",dropoffLocationName:k?x?.name||y?.dropoffLocation||"":S?.name||y?.pickupLocation||"",dropoffLocationType:te,dropoffLocationOwnership:Y,dropoffLocationLatLong:$,dropoffMonth_mm:m&&(m?.getMonth()+1)?.toString(),dropoffOAGCode:k?x?.locationOAGCode||x?.oag6||y?.dropoffHiddenEOAG||"":S?.locationOAGCode||S?.oag6||y?.pickupHiddenEOAG||"",dropoffState:k?x?.stateCode||"":S?.stateCode||"",dropoffTime24HR:w,dropoffYear_yyyy:m&&m?.getFullYear()?.toString()||"",isOneWay:k,ageRange:e?.itinerary?.age||g&&g?.get("min_customer_age")||g&&g?.get("age")||"",confirmationNumber:y?.confirmationNumber||htzHelper.get("body.confirmationNumber")||htzHelper.get("response.data.confirmationSummaryInfo.confirmationNumber")||g&&g?.get("reservation_id")||g&&g?.get("confirmationNumber")||"",rentalDays:calcDaysFromDates(_,u,v,w)||"",memberOrGuest:"true"===l?"member":"guest",language:V?.slice(0,2)||"",loginStatus:l,memberID:Q,memberTier:memberTierMapping(G),memberType:memberTypeMapping(W),availablePoints:e?.rateDetails?.generalInfo?.totalAvailablePoints||"",memberIsUsingPoints:K?.isRedeemPoints?"true":"",hertzLinkID:h?.includes("id=")&&h?.includes("HertzlinkHandler")?h.slice(h.indexOf("id=")+3,h.indexOf("&",h.indexOf("id="))):"",reservationDaysOut:p&&Math.floor((p-today)/864e5).toString()||"",transactionType:e?.rateDetails?.generalInfo?.paymentMethod?e?.rateDetails?.generalInfo?.isPrepay?"Pay Now":"Pay Later":"",isDomestic:S?.countryCode&&J?S?.countryCode===J?"true":"false":"",reservationProcess:oe,ratePlanCode:e?.rateDetails?.generalInfo?.rateCode||g&&g?.get("rate_plan_code")||"",insurance_quote_key:g&&g?.get("insurance_quote_key")||"",vehicleClass:ne?.carGroup||"",vehicleCollectionName:ne?.carTypeDisplay||ne?.category||"",vehicleType:ne?.name||"",vehicleSipp:ne?.sipp||ne?.id||""};Object.assign(se,window.getTruAudienceFields?window.getTruAudienceFields():{}),f.deferSend?window.sessionStorage.setItem("hdt-virtual-page-view-data",JSON.stringify(se)):(window.dlp(se),window.ecom_fpt&&window.ecom_fpt.pushToQueue({ts:window.ecom_fpt.getTimestamp(),en:"page_view",ep:{},up:{}}))}else if("view_item_list"==t&&f.impressionsArr&&f.type){var ce=f?.rateDetails||{},de=f.impressionsArr,le="vehicles"===f.type?"vehicle list â available":"add on list",pe="vehicles"===f.type?"car":"add-on";let a="vehicles"===f.type?"vulcan"===d?"pricing":"quotes":"vulcan"===d?"pricing":"extras",r=ce?.payLater?.currency||"";var i=[],me=[],ue=[],we=new URLSearchParams(window.location.search),fe=JSON?.parse(window?.sessionStorage?.getItem("hdt-upsell-veh-pricing"))||[];let o=window.sessionStorage.getItem("hdt-upsell-selected-sipp")||we.get("sippCode")||"",t=!1;var he=[],ge=["BNM","BNA","BNB","BNC"],ye=["LDW","LIS","PPI"];let s=1,c=!1;if("IRAC"===d&&"vehicles"===f.type&&b&&ce?.payLater?.baseRates?.length){var _e,ve=ce.payLater.baseRates,be=parseFloat(ve[0]?.quantity),Se=parseFloat(ve[0]?.unitRate),xe=parseFloat(ce?.payLater?.total);let e=!1,t=!1;for(_e of de||[]){var De=_e&&_e[a];if(De&&"object"==typeof De)for(var ke in De){var Oe=parseFloat(De[ke]?.price);isNaN(Oe)||(!isNaN(Se)&&Math.abs(Oe-Se)<.02&&(e=!0),!isNaN(xe)&&Math.abs(Oe-xe)<.02&&(t=!0))}}if(e&&!t){let t=0;for(let e=1;e<ve.length;e++){var Ce=parseFloat(ve[e]?.quantity);isNaN(Ce)||(t+=Ce)}var Ie=(parseFloat(b)-t)/be;!isNaN(Ie)&&0<Ie&&(s=Ie,c=!0)}}function Ae(e,t,o){if(!e||!t)return{dailyIncl:"",dailyBase:"",totalIncl:void 0,totalBase:void 0};if(o&&null!=o.vehicle_class_subtotal&&null!=o.approximate_total){var n=parseFloat(o.vehicle_class_subtotal),o=parseFloat(o.approximate_total);if(!isNaN(n)&&!isNaN(o))return{dailyIncl:(o/t).toFixed(2).toString(),dailyBase:(n/t).toFixed(2).toString(),totalIncl:o,totalBase:n}}if("object"==typeof e&&e&&null!=e.vehicle_class_subtotal&&null!=e.approximate_total){var o=parseFloat(e.vehicle_class_subtotal),n=parseFloat(e.approximate_total);if(!isNaN(o)&&!isNaN(n))return{dailyIncl:(n/t).toFixed(2).toString(),dailyBase:(o/t).toFixed(2).toString(),totalIncl:n,totalBase:o}}n="number"!=typeof e||isNaN(e)?parseFloat(e?.approxTotalPrice||e?.approximate_total||e?.price||0):e,isNaN(n)&&(n=0);var i,o="object"==typeof e&&e&&e.taxAmount?e.taxAmount:0,o=n+(o||0),a=("object"==typeof e&&e&&null!=e.vehicle_class_subtotal&&(a=parseFloat(e.vehicle_class_subtotal),isNaN(a)||
58(n=a)),(o/t).toFixed(2).toString()),r=(n/t).toFixed(2).toString();return"object"==typeof e&&e&&null==e.approximate_total&&null!=e.approxTotalPrice&&""!==e.approxTotalPrice&&null!=e.price&&""!==e.price?(i=parseFloat(e.price),isNaN(i)||(r=i.toFixed(2).toString(),n=i*t)):c&&"object"==typeof e&&e&&null==e.approximate_total&&(null==e.approxTotalPrice||""===e.approxTotalPrice)&&null!=e.price&&""!==e.price&&(i=parseFloat(e.price),e=s||1,!isNaN(i))&&!isNaN(e)&&0<e&&(a=(i/e).toFixed(2).toString(),r=(i/e).toFixed(2).toString(),n=o=i/e*t),{dailyIncl:a,dailyBase:r,totalIncl:o,totalBase:n}}function Le(e,t,o,n,i){e&&(t=htzConvertToUsd(t,n,i),o=htzConvertToUsd(o,n,i),void 0===t||isNaN(t)||(e.__adobePriceTotal=parseFloat(t.toFixed(2))),void 0===o||isNaN(o)||(e.__adobeBasePriceTotal=parseFloat(o.toFixed(2))))}if("vulcan"===d&&"extras"===f.type){if(window.sessionStorage.setItem("hdt-view-item-list-vas-data",JSON.stringify(f)),window.isBareAncillariesParentRoute())return;for(var[Te,Ee]of de.entries())if(Ee.ancillary_id&&ge.includes(Ee.ancillary_id)&&(t=!0,Ee.ancillary_features)&&Ee.ancillary_features.bundle_items)for(var ze of Ee.ancillary_features.bundle_items)he.includes(ze.ancillary_id)||he.push(ze.ancillary_id)}let n=[];"vulcan"===d&&"extras"===f.type&&(n=de.filter(e=>void 0!==e?.ancillary_features?.recommendation?.ranking&&null!==e?.ancillary_features?.recommendation?.ranking).sort((e,t)=>(e.ancillary_features.recommendation.ranking??0)-(t.ancillary_features.recommendation.ranking??0)).slice(0,2).map(e=>e.ancillary_id));for(const[bo,q]of de.entries())if(q[a]&&q[a].length||q[a]&&"object"==typeof q[a]){var O={id:q?.sipp||q?.sipp_code||q?.ancillary_id||"",name:q?.name||q?.make_model||q?.ancillary_name||"",category:q?.carTypeDisplay||q?.vehicle_type||q?.name||q?.ancillary_type||"",brand:pe,variant:"",price:"",position:q?.vehicleIndex?(q?.vehicleIndex+1)?.toString():(bo+1)?.toString()||"",list:le,quantity:b};if("vulcan"===d&&"extras"===f.type){if(void 0!==q[a].approximate_total){let e=!1;(0<window.location.pathname.indexOf("/ancillaries/coverage")||0<window.location.pathname.indexOf("/vas/coverage"))&&q.ancillary_id?t?ge.includes(q.ancillary_id)&&(e=!0):ye.includes(q.ancillary_id)&&(e=!0):(0<window.location.pathname.indexOf("/ancillaries/recommended")||0<window.location.pathname.indexOf("/vas/recommended"))&&q.ancillary_id?("treatment-a"===window.getAmpExperimentVariant("vas-recommender")?["LDW","LIS"]:n).includes(q.ancillary_id)&&(e=!0):(0<window.location.pathname.indexOf("/ancillaries/extras")||0<window.location.pathname.indexOf("/vas/extras"))&&q.ancillary_id?t?he.includes(q.ancillary_id)||ge.includes(q.ancillary_id)||(e=!0):ye.includes(q.ancillary_id)||(e=!0):(0<window.location.pathname.indexOf("/book/confirmation")||0<window.location.pathname.indexOf("/manage/summary"))&&q.ancillary_id&&document.getElementById("ancillary-"+q.ancillary_id+"-description-list")&&(e=!0);var C,I=q[a].qualified_rates;for(C in I){var Pe,Ne=I[C]?.period_quantity&&1<I[C]?.period_quantity?I[C]?.period_quantity?.toString():b,Fe=q[a]?.currency,Re=window.vasUnitPriceMatchesTotal(I[C]?.unit_price,I[C]?.total);O.price=(I[C]?.total/Ne)?.toFixed(2)?.toString(),O.basePrice=null!=I[C]?.unit_price&&""!==I[C]?.unit_price?(Re?(parseFloat(I[C].unit_price)||0)/Ne:parseFloat(I[C].unit_price)||0).toFixed(2)?.toString():O.price,Fe&&"USD"!==Fe&&q[a]?.exchange_rates?.length&&(Pe=q[a]?.exchange_rates?.filter(e=>"USD"===e?.currency)?.[0]?.rate)&&(r="USD",O.price=(O.price*Pe)?.toFixed(2)?.toString(),O.basePrice=(parseFloat(O.basePrice)*Pe)?.toFixed(2)?.toString()),O.unit=C||"",O.quantity=(I[C]?.item_quantity*Ne)?.toString()||b,ue.push(O),e&&(i.push(O),r=r||q[a]?.currency)}}}else{let t=!1;for(var[He,A]of Object.entries(q[a]))if(A&&"vehicles"===f.type){if((void 0!==A.soldout&&!A.soldout||void 0===A.soldout)&&(void 0!==A.selectForQuote&&!A.selectForQuote||void 0===A.selectForQuote)&&(A.approxTotalPrice||A.price)||"vulcan"===d&&A.approximate_total)if(0<window.location.href.indexOf("/upgrade/vehicles"))if(fe&&fe.length){var Ue,Me,qe=fe.filter(e=>e?.sipp_code===q?.sipp_code);qe&&qe.length&&(r=qe[0]?.pricing?.currency,Ue=Ae(qe[0].pricing,b,qe[0].pricing),O.price=Ue.dailyIncl,O.basePrice=Ue.dailyBase,t=!0,Le(q,Ue.totalIncl,Ue.totalBase,qe[0]?.pricing?.currency,qe[0]?.pricing?.exchange_rates),r)&&"USD"!==r&&qe[0]?.pricing?.exchange_rates?.length&&(Me=qe[0]?.pricing?.exchange_rates?.filter(e=>"USD"===e?.currency)?.[0]?.rate)&&(r="USD",O.price=(O.price*Me)?.toFixed(2)?.toString(),O.basePrice=(O.basePrice*Me)?.toFixed(2)?.toString())}
58else{var je,Be=Ae(A,b,q[a]);let e=!1;A.contains_prepayable&&O.price||(O.price=Be.dailyIncl,O.basePrice=Be.dailyBase,e=!0),r=r||A.currency,e&&Le(q,Be.totalIncl,Be.totalBase,A.currency,A?.exchange_rates),e&&A.currency&&"USD"!==A.currency&&(je=A?.exchange_rates?.filter(e=>"USD"===e?.currency)?.[0]?.rate||window?.currExchangeRates?.[A.currency])&&(r="USD",O.price=(O.price*je)?.toFixed(2)?.toString(),O.basePrice=(O.basePrice*je)?.toFixed(2)?.toString()),t=!0}else{var Je,Ve=Ae(A,b,q[a]);let e=!1;!A.prepaid&&!A.contains_prepayable&&O.price||(O.price=Ve.dailyIncl,O.basePrice=Ve.dailyBase,e=!0),r=r||A.currency,e&&Le(q,Ve.totalIncl,Ve.totalBase,A.currency,A?.exchange_rates),e&&A.currency&&"USD"!==A.currency&&(Je=A?.exchange_rates?.filter(e=>"USD"===e?.currency)?.[0]?.rate||window?.currExchangeRates?.[A.currency])&&(r="USD",O.price=(O.price*Je)?.toFixed(2)?.toString(),O.basePrice=(O.basePrice*Je)?.toFixed(2)?.toString()),t=!0}}else if(A&&"extras"===f.type){var Qe,Ge=A?.rate?.match(/[A-Z]{3}/g)?.[0]||r;let e=A?.price?.toString()/b||"";Ge&&"USD"!==Ge&&(Qe=A?.exchange_rates?.filter(e=>"USD"===e?.currency)?.[0]?.rate||window?.currExchangeRates?.[Ge])&&(r="USD",e=(e*Qe)?.toFixed(2)?.toString()),i.push({id:A?.id||"",name:A?.name||"",category:q?.name||"",brand:pe,variant:"",price:e,unit:A?.periodText||"",position:(He+1)?.toString()||"",list:le,quantity:b})}t&&i.push(O)}if("vehicles"===f.type){let o=!1,n=!1;for(var[We,Ke]of Object.entries(q[a])){var Ze=Ke?.prepaid||Ke?.contains_prepayable||!1,$e=Ze?"-PN":"-PL",Xe=Ae(Ke,1,q[a]);let e=Xe.dailyIncl,t=Xe.dailyBase;var Ye,et=Ke?.currency;if(r=et||"USD",!o){for(var[tt,ot]of Object.entries(q[a]))if(ot?.prepaid||ot?.contains_prepayable){n=!0;break}o=!0}e&&et&&"USD"!==et&&(Ye=window?.currExchangeRates?.[et])&&(r="USD",e=(parseFloat(e)*Ye)?.toFixed(2)?.toString(),t=(parseFloat(t)*Ye)?.toFixed(2)?.toString());var nt=q?.sipp||q?.sipp_code||"",it=Ze?"PAYNOW":"PAYLATER";me.push({id:nt+$e,name:q?.vehicle_type||q?.carTypeDisplay||"",category:Ke?.rate_type||it,item_category2:q?.make_model||q?.name||"",item_category3:q?.vehicle_category||"",item_category4:q?.vehicle_group||q?.carGroup||"",item_category5:q?.image_make&&q?.image_model?q?.image_make+" "+q?.image_model:"",brand:"rates",variant:n?"hasPrepaid":"noPrepaid",price:e||"",basePrice:t||"",position:(bo+1)?.toString()||"",list:"vehicle_availability",quantity:"1"})}}}me.length&&(window.dlp({ecomLayer:!0,adjusted:!0,event:"view_item_list",rates_pu_time:g&&g?.get("pick_up_time")||(_&&u&&createDateObj(_.replaceAll("/","-")+"T"+u)?createDateObj(_.replaceAll("/","-")+"T"+u)?.toISOString():""),rates_pu_loc:S?.locationOAGCode||S?.oag6||y?.pickupHiddenEOAG||"",rates_do_time:g&&g?.get("drop_off_time")||(v&&w&&createDateObj(v.replaceAll("/","-")+"T"+w)?createDateObj(v.replaceAll("/","-")+"T"+w)?.toISOString():""),rates_do_loc:k?x?.locationOAGCode||x?.oag6||y?.dropoffHiddenEOAG||"":S?.locationOAGCode||S?.oag6||y?.pickupHiddenEOAG||"",rates_promo_code:y?.pcNumber||g&&g?.get("pc_discount_code")||g&&g?.get("PC")||htzHelper.get("body.pcNumber")||"",rates_cdp_code:y?.memberOtherCdpField||y?.memberSelectedCdp&&"0"!=y?.memberSelectedCdp&&y?.memberSelectedCdp||y?.cdpField||g&&g?.get("cdp_discount_code")||g&&g?.get("CDP")||htzHelper.get("body.memberOtherCdpField")||htzHelper.get("body.memberSelectedCdp")&&"0"!=htzHelper.get("body.memberSelectedCdp")&&htzHelper.get("body.memberSelectedCdp")||htzHelper.get("body.cdpField")||"",insurance_quote_key:g&&g?.get("insurance_quote_key")||"",ecommerce:{currencyCode:r,impressions:me}}),window.ecom_fpt)&&window.ecom_fpt.pushToQueue({ts:window.ecom_fpt.getTimestamp(),en:"view_item_list",ep:{},up:{},ecom:{currency:r,items:window.ecom_fpt.conformProducts(me)}});var at={ecomLayer:!0,adjusted:!0,event:"view_item_list",insurance_quote_key:g&&g?.get("insurance_quote_key")||"",ecommerce:{currencyCode:r,impressions:i}};try{let i={};(de||[]).forEach(function(e){var t=e&&(e.sipp||e.sipp_code||e.ancillary_id)||"";if(t&&(i[t]=e),"extras"===f.type&&e&&e[a]&&"object"==typeof e[a])for(const n in e[a]){var o=e[a][n];o&&o.id&&(i[o.id]=o)}});var rt=ce&&ce.payLater&&ce.payLater.extras||[];__htzPendingAdobeEcom={type:f.type,impKey:a,currency:r,byId:i,days:b,paidExtras:rt},Object.assign(__htzAdobeItemRegistry,i),"extras"===f.type&&(__htzAdobeVasCtx={days:b,paidExtras:rt,currency:r})}catch(e){__htzPendingAdobeEcom=null}var st={event:"customEvent",customEventCategory:"no "+f.type+" available",customEventAction:g&&g?.get("pick_up_location")||g&&g?.get("pid")||"",customEventLabel:g&&g?.toString()||"",customEventValue:1};if(i.length)if(0<window.location.href.indexOf("/upgrade/vehicles")){if(fe.length)i[0].id!==o&&(window.dlp(at),window.ecom_fpt)&&window.ecom_fpt.pushToQueue({ts:window.ecom_fpt.getTimestamp(),en:"view_item_list",ep:{},up:{},ecom:{currency:r,items:window.ecom_fpt.conformProducts(i)}});else if(1<i.length){let t=window.sessionStorage.getItem("hdt-upsell-selected-price")||i?.filter(e=>e.id===o)?.[0]?.price*i?.filter(e=>e.id===o)?.[0]?.quantity||"";at.ecommerce.impressions=i?.filter(e=>e.id!==o)?.sort((e,t)=>
58e.price-t.price)?.filter(e=>e.price*e.quantity>+t)?.slice(0,3),window.dlp(at),window.ecom_fpt&&window.ecom_fpt.pushToQueue({ts:window.ecom_fpt.getTimestamp(),en:"view_item_list",ep:{},up:{},ecom:{currency:r,items:window.ecom_fpt.conformProducts(at.ecommerce.impressions)}})}else 1===i.length&&i[0].id!==o&&(window.dlp(at),window.ecom_fpt)&&window.ecom_fpt.pushToQueue({ts:window.ecom_fpt.getTimestamp(),en:"view_item_list",ep:{},up:{},ecom:{currency:r,items:window.ecom_fpt.conformProducts(i)}});window.sessionStorage.removeItem("hdt-upsell-veh-pricing")}else window.dlp(at),window.ecom_fpt&&window.ecom_fpt.pushToQueue({ts:window.ecom_fpt.getTimestamp(),en:"view_item_list",ep:{},up:{},ecom:{currency:r,items:window.ecom_fpt.conformProducts(i)}});else window.location.href.indexOf("/upgrade/vehicles")<0&&(window.dlp(st),window.ecom_fpt&&window.ecom_fpt.pushToQueue({ts:window.ecom_fpt.getTimestamp(),en:"customEvent",ep:{event_category:"no "+f.type+" available",event_action:g&&g?.get("pick_up_location")||g&&g?.get("pid")||"",event_label:g&&g?.toString()||"",event_value:1},up:{}}),window.dlp(at),window.ecom_fpt)&&window.ecom_fpt.pushToQueue({ts:window.ecom_fpt.getTimestamp(),en:"view_item_list",ep:{},up:{},ecom:{currency:r,items:window.ecom_fpt.conformProducts(i)}});"vulcan"===d&&("vehicles"===f.type&&i.length?0<window.location.href.indexOf("/upgrade/vehicles")&&i[0].id===o||window.sessionStorage.setItem("hdt-veh-impressions",JSON.stringify(i)):"extras"===f.type&&ue.length&&window.sessionStorage.setItem("hdt-vas-impressions",JSON.stringify(ue)))}else if("select_item"==t&&f.responseData){if("IRAC"===d&&f.type){var r=f.responseData?.rateDetails?.vehicle||f.responseData?.payLater?.extras?.filter(e=>e.id.toLowerCase()===f.bodyData?.id)?.[0]||{},ct=f.responseData?.rateDetails?.generalInfo?.paymentMethod?f.responseData?.rateDetails?.generalInfo?.isPrepay?"Pay Now":"Pay Later":"",dt="vehicle"===f.type,lt=dt?"vehicle list â "+ct?.toLowerCase():"add on list",pt=dt?"car":"add-on";let o=f.bodyData?.currency||r?.currency||"";var mt=f.responseData?.rateDetails,ut=f.bodyData?.approxTotalPrice||f.bodyData?.price||r?.total||"";let e=parseFloat(ut),t=e=isNaN(e)?0:e;var wt,ft,ht,gt=f.responseData?.model?.categories||[],yt=f.responseData?.rateDetails?.payLater?.extras||[];dt&&mt?(wt=0,[mt.payLater,mt.payNow].forEach(function(e){e&&e.baseRates&&e.baseRates.length&&e.baseRates.forEach(function(e){wt+=parseFloat(e.total)||0})}),ft=parseFloat(mt.rateInfo?.approxTotal)||parseFloat(mt.payLater?.total)||parseFloat(mt.payNow?.total)||0,0<wt?(e=wt,t=0<ft?ft:wt):0<ft?t=ft:r.taxAmount&&(t+=r.taxAmount)):r.taxAmount&&(t+=r.taxAmount);let n=(t/b)?.toFixed(2)?.toString()||"",i=(e/b)?.toFixed(2)?.toString()||"",a=(htzTagAdobeTotal(r?.sipp||r?.id?.toLowerCase()||f.bodyData?.id||"",htzConvertToUsd(t,o,null),htzConvertToUsd(e,o,null)),o&&"USD"!==o&&(ht=window?.currExchangeRates?.[o]||"")&&(o="USD",n=(n*ht)?.toFixed(2)?.toString(),i=(i*ht)?.toFixed(2)?.toString()),{id:r?.sipp||r?.id?.toLowerCase()||f.bodyData?.id||"",name:r?.name||"",category:r?.carTypeDisplay||"",brand:pt,list:lt,variant:"",price:n,basePrice:i,priceType:"charged",position:(f.bodyData?.vehicleIndex)?.toString()||"",availability:ct?.toLowerCase()||"",quantity:f.bodyData?.val?(f.bodyData?.val*b)?.toString():b});if(f.addItem&&(window.dlp({ecomLayer:!0,adjusted:!0,event:"select_item",ecommerce:{currencyCode:o,click:{actionField:{list:lt},products:[a]}}}),window.ecom_fpt)&&window.ecom_fpt.pushToQueue({ts:window.ecom_fpt.getTimestamp(),en:"select_item",ep:{},up:{},ecom:{currency:o,items:window.ecom_fpt.conformProducts([a])}}),!dlHelper.get("raw.ecom_products")&&f.addItem){var _t=[];if(_t.push(a),__htzAdobeVasCtx={days:b,paidExtras:yt||[],currency:o||""},gt.length)for(var vt of gt)if(vt.extras&&vt.extras.length)for(let t of vt.extras)if(t&&t.id&&t.selected){var bt,s=yt.filter(e=>e.id.toLowerCase()===t.id)?.[0];let e=(s?.total/b)?.toFixed(2)?.toString()||"";htzTagAdobeTotal(t.id,htzConvertToUsd(s?.total,s?.currency,null),htzConvertToUsd(s?.total,s?.currency,null)),s&&s.currency&&"USD"!==s.currency&&(bt=window?.currExc
58hangeRates?.[s.currency]||"")&&(e=(e*bt)?.toFixed(2)?.toString()),_t.push({id:t.id,name:t?.name||"",category:vt?.name||"",brand:"add-on",list:"add on list",variant:"",price:e,position:"",availability:"",quantity:(s?.quantity*b)?.toString()||b})}window.dlp({ecom_products:_t}),__htzPendingAdobeCart={},window.dlp({ecomLayer:!0,adjusted:!0,event:"add_to_cart",ecommerce:{currencyCode:o,add:{products:_t}}}),window.ecom_fpt&&window.ecom_fpt.pushToQueue({ts:window.ecom_fpt.getTimestamp(),en:"add_to_cart",ep:{},up:{},ecom:{currency:o,items:window.ecom_fpt.conformProducts(_t)}})}else{let e=dlHelper.get("raw.ecom_products");if(dt){var St=e.filter(e=>e.brand&&"car"==e.brand);if(St.length){__htzPendingAdobeCart={},window.dlp({ecomLayer:!0,adjusted:!0,event:"remove_from_cart",ecommerce:{remove:{products:St[0]}}}),window.ecom_fpt&&window.ecom_fpt.pushToQueue({ts:window.ecom_fpt.getTimestamp(),en:"remove_from_cart",ep:{},up:{},ecom:{currency:o,items:window.ecom_fpt.conformProducts([St[0]])}}),eventTracker.set("add_to_cart","");var xt=(e=e.filter(e=>"car"!==e.brand)).filter(e=>e.brand&&"add-on"==e.brand);if(gt.length&&xt.length){var Dt,kt=[];for(Dt of gt)if(Dt.extras&&Dt.extras.length)for(var Ot of Dt.extras)Ot&&Ot.id&&Ot.selected&&kt.push(Ot.id);for(let t of xt)kt.filter(e=>e.id===t.id)||(__htzPendingAdobeCart={},window.dlp({ecomLayer:!0,adjusted:!0,event:"remove_from_cart",ecommerce:{remove:{products:t}}}),window.ecom_fpt&&window.ecom_fpt.pushToQueue({ts:window.ecom_fpt.getTimestamp(),en:"remove_from_cart",ep:{},up:{},ecom:{currency:o,items:window.ecom_fpt.conformProducts([t])}}),eventTracker.set("add_to_cart",""),e=e.filter(e=>e.id!==t.id),window.dlp({ecom_products:e}))}}}else{var Ct=e.filter(e=>e.brand&&"add-on"==e.brand&&e.id===a.id);Ct.length&&!f.addItem&&(__htzPendingAdobeCart={},window.dlp({ecomLayer:!0,adjusted:!0,event:"remove_from_cart",ecommerce:{remove:{products:Ct[0]}}}),window.ecom_fpt&&window.ecom_fpt.pushToQueue({ts:window.ecom_fpt.getTimestamp(),en:"remove_from_cart",ep:{},up:{},ecom:{currency:o,items:window.ecom_fpt.conformProducts([Ct[0]])}}),eventTracker.set("add_to_cart",""),e=e.filter(e=>e.id!==a.id),window.dlp({ecom_products:e}))}f.addItem&&(__htzPendingAdobeCart={},window.dlp({ecomLayer:!0,adjusted:!0,event:"add_to_cart",ecommerce:{currencyCode:o,add:{products:[a]}}}),window.ecom_fpt&&window.ecom_fpt.pushToQueue({ts:window.ecom_fpt.getTimestamp(),en:"add_to_cart",ep:{},up:{},ecom:{currency:o,items:window.ecom_fpt.conformProducts([a])}}),eventTracker.set("remove_from_cart",""),e.push(a),window.dlp({ecom_products:e}))}}else if("vulcan"===d){var It=0<window.location.href.indexOf("/book/confirmation"),At=window.sessionStorage.getItem("hdt-veh-impressions")?JSON.parse(window.sessionStorage.getItem("hdt-veh-impressions")):[],Lt=(window.sessionStorage.getItem("hdt-vas-impressions")&&JSON.parse(window.sessionStorage.getItem("hdt-vas-impressions")),!It&&At?.filter(e=>e.id===f.responseData?.sipp_code)||[]),a=f.responseData?.pricing?.required_ancillaries||{},Tt=f.responseData?.pricing?.selected_ancillaries||{};let o=f.responseData?.pricing?.currency||"";var Et=[],zt=dlHelper.get("raw.ecom_products")||[];if(a&&Object.keys(a).length)for(var Pt in a)if(a[Pt]&&a[Pt].pricing&&a[Pt].ancillary_type&&("VAS_ITEM"===a[Pt].ancillary_type||"COVERAGE"===a[Pt].ancillary_type)){var c,L=a[Pt].pricing;for(c in L){var Nt,Ft=L[c]?.period_quantity&&1<L[c]?.period_quantity?L[c]?.period_quantity?.toString():b,Rt=window.vasUnitPriceMatchesTotal(L[c]?.unit_price,L[c]?.total);let e=(L[c]?.unit_price&&L[c]?.total&&Rt?(L[c]?.total/b)?.toFixed(2):L[c]?.unit_price)?.toString(),t=null!=L[c]?.unit_price&&""!==L[c]?.unit_price?(Rt?(parseFloat(L[c].unit_price)||0)/b:parseFloat(L[c].unit_price)||0).toFixed(2)?.toString():e||"";o&&"USD"!==o&&f.responseData?.pricing?.exchange_rates?.length&&(Nt=f.responseData?.pricing?.exchange_rates?.filter(e=>"USD"===e?.currency)?.[0]?.rate)&&(o="USD",e=(e*Nt)?.toFixed(2)?.toString(),t=(parseFloat(t)*Nt)?.toFixed(2)?.toString()),Et.push({name:a[Pt]?.ancillary_name||"",id:Pt||"",price:e||"",basePrice:t||"",brand:"add-on",list:"add on list",category:a[Pt]?.ancillary_type||"",variant:c,quantity:Ft})}}if(Object.keys(Tt).length)for(var Ht in Tt)if(Tt[Ht]&&Tt[Ht].pricing){var T,E=Tt[Ht].pricing;for(T in E){var Ut,Mt=E[T]?.period_quantity&&1<E[T]?.period_quantity?E[T]?.period_quantity?.toString():b,qt=window.vasUnitPriceMatchesTotal(E[T]?.unit_price,E[T]?.total);let e=(E[T]?.unit_price&&E[T]?.total&&qt?(E[T]?.total/b)?.toFixed(2):E[T]?.unit_price)?.toString(),t=null!=E[T]?.unit_price&&""!==E[T]?.unit_price?(qt?(parseFloat(E[T].unit_price)||0)/b:parseFloat(E[T].unit_price)||0).toFixed(2)?.toString():e||"";o&&"USD"!==o&&f.responseData?.pricing?.exchange_rates?.length&&(Ut=f.responseData?.pricing?.exchange_rates?.filter(e=>"USD"===e?.currency)?.[0]?.rate)&&(o="USD",e=(e*Ut)?.toFixed(2)?.toString(),t=(parseFloat(t)*Ut)?.toFixed(2)?.toString()),Et.push({name:Tt[Ht]?.ancillary_name||"",id:Ht||"",price:e||"",basePrice:t||"",brand:"add-on",list:"add on list",category:Tt[Ht]?.ancillary_type||"",variant:T,quantity:Mt})}}let e=[...Lt,...Et],n=(zt.length||window.dlp({ecom_products:[]}),It?zt.filter(e=>"car"!==e.brand):zt);var jt=e.filter(t=>!(n?.find(({id:e})=>e===t.id)?.price===t.price&&n?.find(({id:e})=>e===t.id)?.quantity===t.quantity)),Bt=n.filter(t=>!(e?.find(({id:e})=>e===t.id)?.price===t.price&&e?.find(({id:e})=>e===t.id)?.quantity===t.quantity));if(Bt.length)for(var Jt of Bt)__htzPendingAdobeCart={},window.dlp({ecomLayer:!0,adjusted:!0,event:"remove_from_cart",insurance_quote_key:g&&g?.get("insurance_quote_key")||"",ecommerce:{remove:{products:[Jt]}}}),window.ecom_fpt&&window.ecom_fpt.pushToQueue({ts:window.ecom_fpt.getTimestamp(),en:"remove_from_cart",ep:{insurance_quote_key:g&&g?.get("insurance_quote_key")||""},up:{},ecom:{currency:o,items:window.ecom_fpt.conformProducts([Jt])}}),eventTracker.set("add_to_cart","");if(jt.length)for(var Vt of jt){var Qt=Vt.brand&&"car"===Vt.brand?"vehicle list â available":"add on list";window.dlp({ecomLayer:!0,adjusted:!0,event:"select_item",insurance_quote_key:g&&g?.get("insurance_quote_key")||"",ecommerce:{currencyCode:o,click:{actionField:{list:Qt},products:[Vt]}}}),window.ecom_fpt&&window.ecom_fpt.pushToQueue({ts:window.ecom_fpt.getTimestamp(),en:"select_item",ep:{insurance_quote_key:g&&g?.get("insurance_quote_key")||""},up:{},ecom:{currency:o,items:window.ecom_fpt.conformProducts([Vt])}}),__htzPendingAdobeCart={},window.dlp({ecomLayer:!0,adjusted:!0,event:"add_to_cart",insurance_quote_key:g&&g?.get("insurance_quote_key")||"",ecommerce:{currencyCode:o,add:{products:[Vt]}}}),window.ecom_fpt&&window.ecom_fpt.pushToQueue({ts:window.ecom_fpt.getTimestamp(),en:"add_to_cart",ep:{insurance_quote_key:g&&g?.get("insurance_quote_key")||""},up:{},ecom:{currency:o,items:window.ecom_fpt.conformProducts([Vt])}}),eventTracker.set("remove_from_cart","")}window.dlp({ecom_products:It?[...zt.filter(e=>"car"===e.brand),...e]:e})}}else if("purchase"==t)if(f.conf&&f.rateDetails&&d){let a=f.rateDetails;var Gt=f?.confDetails?.emailAddress||a?.customer?.email;let o=a?.rateInfo?.currency||a?.rental_details?.pricing?.currency||"";var z=a?.rental_details?.pricing?.exchange_rates?.filter(e=>
58"USD"===e?.currency)?.[0]?.rate||window?.currExchangeRates?.[o],Wt=(window.sessionStorage.getItem("hdt-veh-impressions")?JSON.parse(window.sessionStorage.getItem("hdt-veh-impressions")):[])?.filter(e=>e.id===a?.rental_details?.sipp_code)?.[0]||[];let e=a?.rateInfo?.approxTotal?.toString()||a?.rental_details?.pricing?.approximate_total?.toString()||"";var Kt=calcDaysFromDates(a?.pick_up_time,null,a?.drop_off_time,null)||"1";let n="",i="";if(o&&"USD"!==o&&z&&(o="USD",e=(e*z)?.toFixed(2)?.toString()),"IRAC"===d){let e=0,t=0;if(a?.payLater?.baseRates?.length)for(const So of a?.payLater?.baseRates)So.total&&So.currency&&("USD"!==So.currency&&z?(e+=So.total*z,t+=So.total*z,o="USD"):(e+=So.total,t+=So.total));if(a?.payNow?.baseRates?.length)for(const xo of a?.payNow?.baseRates)xo.total&&xo.currency&&("USD"!==xo.currency&&z?(e+=xo.total*z,t+=xo.total*z,o="USD"):(e+=xo.total,t+=xo.total));if(a?.inclusions?.length)for(const Do of a?.inclusions)try{Do.amount&&parseFloat(Do.amount)&&Do.currency&&("USD"!==Do.currency&&z?(e+=Do.amount*z,o="USD"):e+=parseFloat(Do.amount))}catch(e){}n=(e/b)?.toFixed(2)?.toString(),i=(t/b)?.toFixed(2)?.toString(),htzTagAdobeTotal(a?.vehicle?.sipp||Wt?.id||a?.rental_details?.sipp_code||"",e,t)}else{n=((a?.rental_details?.pricing?.required_ancillary_type_subtotals?.FEE?.subtotal+a?.rental_details?.pricing?.required_ancillary_type_subtotals?.TAX?.subtotal+a?.rental_details?.pricing?.vehicle_class_subtotal)/(b||Kt))?.toFixed(2)?.toString()||"",i=(a?.rental_details?.pricing?.vehicle_class_subtotal/(b||Kt))?.toFixed(2)?.toString()||"";var Zt=a?.rental_details?.pricing?.currency||"",$t=(a?.rental_details?.pricing?.required_ancillary_type_subtotals?.FEE?.subtotal||0)+(a?.rental_details?.pricing?.required_ancillary_type_subtotals?.TAX?.subtotal||0)+(a?.rental_details?.pricing?.vehicle_class_subtotal||0),Xt=a?.rental_details?.pricing?.vehicle_class_subtotal||0;Zt&&"USD"!==Zt&&z&&($t*=z,Xt*=z),htzTagAdobeTotal(a?.vehicle?.sipp||Wt?.id||a?.rental_details?.sipp_code||"",$t,Xt),Zt&&"USD"!==Zt&&z&&(o="USD",n=(n*z)?.toFixed(2)?.toString(),i=(i*z)?.toFixed(2)?.toString()),window.dlp({event:"customEvent",customEventCategory:"GBP vehicle price on purchase",customEventAction:JSON.stringify({reqAncFee:a?.rental_details?.pricing?.required_ancillary_type_subtotals?.FEE?.subtotal||"",reqAncTax:a?.rental_details?.pricing?.required_ancillary_type_subtotals?.TAX?.subtotal||"",vehSubTot:a?.rental_details?.pricing?.vehicle_class_subtotal||"",vehPrice:n||"",gbpCurr:Zt||"",curr:o||""}),customEventLabel:"After exchange rate",customEventValue:1})}let r=[{name:a?.vehicle?.name||Wt?.name||"",id:a?.vehicle?.sipp||Wt?.id||a?.rental_details?.sipp_code||"",price:n,basePrice:i||"",priceType:"charged",brand:"car",list:"vehicle list â available",category:a?.vehicle?.carTypeDisplay||Wt?.category||"",variant:a?.vehicle?.passengers||"",quantity:b||Kt||"",gbp_vehicle_rates:JSON.stringify(a?.rental_details?.pricing?.vehicle_class_rates||{})}];if("IRAC"===d&&a.payLater.extras&&a.payLater.extras.length){var P,Yt=a.payLater.extras;__htzAdobeVasCtx={days:b,paidExtras:Yt||[],currency:o||""};for(P of Yt){var eo,to=P?.currency;let e=(P?.total/b)?.toFixed(2)?.toString()||"";htzTagAdobeTotal(P?.id||"",htzConvertToUsd(P?.total,to,null),htzConvertToUsd(P?.total,to,null)),to&&"USD"!==to&&(eo=window?.currExchangeRates?.[to])&&(e=(e*eo)?.toFixed(2)?.toString()),r.push({name:P?.name||"",id:P?.id||"",price:e,brand:"add-on",list:"add on list",category:"",variant:P?.duration||"",quantity:(P?.quantity*b)?.toString()||b})}}else if("vulcan"===d){var N=a?.rental_details?.pricing?.required_ancillaries||"",oo=a?.rental_details?.pricing?.selected_ancillaries||"";if(N&&Object.keys(N).length)for(var F in N)if(N[F]&&N[F].pricing&&N[F].ancillary_type&&("VAS_ITEM"===N[F].ancillary_type||"COVERAGE"===N[F].ancillary_type)){var R,H=N[F].pricing;for(R in H){var no=H[R]?.period_quantity&&1<H[R]?.period_quantity?H[R]?.period_quantity?.toString():b||Kt,io=b||Kt,ao=window.vasUnitPriceMatchesTotal(H[R]?.unit_price,H[R]?.total);let e=(H[R]?.unit_price&&H[R]?.total&&ao?(H[R]?.total/io)?.toFixed(2):H[R]?.unit_price)?.toString(),t=null!=H[R]?.unit_price&&""!==H[R]?.unit_price?(ao?(parseFloat(H[R].unit_price)||0)/io:parseFloat(H[R].unit_price)||0).toFixed(2)?.toString():e||"";var ro=a?.rental_details?.pricing?.currency,so=(ro&&"USD"!==ro&&z&&(e=(e*z)?.toFixed(2)?.toString(),t=(parseFloat(t)*z)?.toFixed(2)?.toString()),parseFloat(H[R]?.total));
58isNaN(so)||(ro&&"USD"!==ro&&z&&(so*=z),htzTagAdobeTotal(F,so,void 0)),r.push({name:N[F]?.ancillary_name||"",id:F||"",price:e||"",basePrice:t||"",brand:"add-on",list:"add on list",category:N[F]?.ancillary_type||"",variant:R,quantity:no,gbp_ancillaries_rates:JSON.stringify(H||{})})}}if(oo&&Object.keys(oo).length)for(var co in oo)if(oo[co]&&oo[co].pricing){var U,M=oo[co].pricing;for(U in M){var lo=M[U]?.period_quantity&&1<M[U]?.period_quantity?M[U]?.period_quantity?.toString():b||Kt,po=b||Kt,mo=window.vasUnitPriceMatchesTotal(M[U]?.unit_price,M[U]?.total);let e=(M[U]?.unit_price&&M[U]?.total&&mo?(M[U]?.total/po)?.toFixed(2):M[U]?.unit_price)?.toString(),t=null!=M[U]?.unit_price&&""!==M[U]?.unit_price?(mo?(parseFloat(M[U].unit_price)||0)/po:parseFloat(M[U].unit_price)||0).toFixed(2)?.toString():e||"";var uo=a?.rental_details?.pricing?.currency,wo=(uo&&"USD"!==uo&&z&&(e=(e*z)?.toFixed(2)?.toString(),t=(parseFloat(t)*z)?.toFixed(2)?.toString()),parseFloat(M[U]?.total));isNaN(wo)||(uo&&"USD"!==uo&&z&&(wo*=z),htzTagAdobeTotal(co,wo,void 0)),r.push({name:oo[co]?.ancillary_name||"",id:co||"",price:e||"",basePrice:t||"",brand:"add-on",list:"add on list",category:oo[co]?.ancillary_type||"",variant:U,quantity:lo,gbp_ancillaries_rates:JSON.stringify(M||{})})}}}var fo=0<window.location.href.indexOf("/book/confirmation");if("vulcan"===d){if(f.modify&&fo){let e=dlHelper.get("raw.ecom_products")||[];
58var ho,go,yo=e.filter(t=>!r.find(e=>e.id===t.id)),_o=r.filter(t=>!e.find(e=>e.id===t.id));for(ho of yo)window.dlp({ecomLayer:!0,adjusted:!0,event:"remove_from_cart",ecommerce:{remove:{products:ho}}}),window.ecom_fpt&&window.ecom_fpt.pushToQueue({ts:window.ecom_fpt.getTimestamp(),en:"remove_from_cart",ep:{},up:{},ecom:{currency:o,items:window.ecom_fpt.conformProducts([ho])}});for(go of _o)window.dlp({ecomLayer:!0,adjusted:!0,event:"add_to_cart",ecommerce:{currencyCode:o,add:{products:[go]}}}),window.ecom_fpt&&window.ecom_fpt.pushToQueue({ts:window.ecom_fpt.getTimestamp(),en:"add_to_cart",ep:{},up:{},ecom:{currency:o,items:window.ecom_fpt.conformProducts([go])}})}window.dlp({ecom_products:r})}f.modify&&(window.dlp({ecomLayer:!0,adjusted:!0,event:"refund",ecommerce:{refund:{actionField:{id:f.conf}}}}),window.ecom_fpt&&window.ecom_fpt.pushToQueue({ts:window.ecom_fpt.getTimestamp(),en:"refund",ep:{},up:{},ecom:{currency:o,reservation:{confirmation_number:f.conf,revenue:e},items:[]}}),eventTracker.set("purchase",""));var vo=f.modify&&"book"===oe?"modify":oe;let t={ecomLayer:!0,adjusted:!0,event:"purchase",systemID:d,pageName:window.location.href,buildID:j,cpCode:B,pos:J,dialect:V,cdpCode:D,tripType:y?.["trip-type"]||htzHelper.get("body.trip-type")||g&&g?.get("rental_type")||g&&g?.get("travelType")||"",pcCode:y?.pcNumber||htzHelper.get("body.pcNumber")||g&&g?.get("pc_discount_code")||g&&g?.get("PC")||"",rateCode:y?.typeInRateQuote||htzHelper.get("body.typeInRateQuote")||g&&g?.get("rq_discount_code")||g&&g?.get("RQ")||"",cvNumber:y?.cvNumber||htzHelper.get("body.cvNumber")||g&&g?.get("cv_discount_code")||g&&g?.get("CV")||"",voucherNumber:y?.itNumber||htzHelper.get("body.itNumber")||g&&g?.get("it_discount_code")||g&&g?.get("IT")||"",pickupCity:S?.city||"",pickupCountryCode:S?.countryCode||"",pickupDate:_&&u&&createDateObj(_.replaceAll("/","-")+"T"+u)?createDateObj(_.replaceAll("/","-")+"T"+u)?.toISOString():"",pickupDate_mmddyy:dateFormater(p,"mmddyy"),"pickupDate_yyyy-mm-dd":dateFormater(p,"yyyy-mm-dd"),pickupDay:p&&p?.getDate()?.toString()||"",pickupDoW:p&&weekday[p?.getDay()]||"",pickupLocationName:S?.name||y?.pickupLocation||"",pickupLocationType:ee,pickupLocationOwnership:X,pickupLocationLatLong:Z,pickupMonth_mm:p&&(p?.getMonth()+1)?.toString(),pickupOAGCode:S?.locationOAGCode||S?.oag6||y?.pickupHiddenEOAG||"",pickupState:S?.stateCode||"",pickupTime24HR:u,pickupYear_yyyy:p&&p?.getFullYear()?.toString()||"",dropoffCity:k?x?.city||"":S?.city||"",dropoffCountryCode:k?x?.countryCode||"":S?.countryCode||"",dropoffDate:v&&w&&createDateObj(v.replaceAll("/","-")+"T"+w)?createDateObj(v.replaceAll("/","-")+"T"+w)?.toISOString():"",dropoffDate_mmddyy:dateFormater(m,"mmddyy"),"dropoffDate_yyyy-mm-dd":dateFormater(m,"yyyy-mm-dd"),dropoffDay:m&&m?.getDate()?.toString()||"",dropoffDoW:m&&weekday[m?.getDay()]||"",dropoffLocationName:k?x?.name||y?.dropoffLocation||"":S?.name||y?.pickupLocation||"",dropoffLocationType:te,dropoffLocationOwnership:Y,dropoffLocationLatLong:$,dropoffMonth_mm:m&&(m?.getMonth()+1)?.toString(),dropoffOAGCode:k?x?.locationOAGCode||x?.oag6||y?.dropoffHiddenEOAG||"":S?.locationOAGCode||S?.oag6||y?.pickupHiddenEOAG||"",dropoffState:k?x?.stateCode||"":S?.stateCode||"",dropoffTime24HR:w,dropoffYear_yyyy:m&&m?.getFullYear()?.toString()||"",isOneWay:k,ageRange:y?.age||g&&g?.get("min_customer_age")||g&&g?.get("age")||"",confirmationNumber:y?.confirmationNumber||htzHelper.get("body.confirmationNumber")||htzHelper.get("response.data.confirmationSummaryInfo.confirmationNumber")||g&&g?.get("reservation_id")||g&&g?.get("confirmationNumber")||"",rentalDays:calcDaysFromDates(_,u,v,w)||"",memberOrGuest:"true"===l||f?.confDetails?.goldMember?"member":"guest",language:V?.slice(0,2)||"",loginStatus:"true"===l||f?.confDetails?.goldMember?"true":"false",memberID:Q||getCookieFunc("ecom-mem-id")||"",memberTier:memberTierMapping(G||getCookieFunc("ecom-mem-tier")||""),memberType:memberTypeMapping(W||getCookieFunc("ecom-mem-type")||""),availablePoints:a?.generalInfo?.totalAvailablePoints||"",memberIsUsingPoints:K?.isRedeemPoints?"true":"",hertz
58LinkID:h?.includes("id=")&&h?.includes("HertzlinkHandler")?h.slice(h.indexOf("id=")+3,h.indexOf("&",h.indexOf("id="))):"",reservationDaysOut:p&&Math.floor((p-today)/864e5).toString()||"",transactionType:a?.generalInfo?.paymentMethod?a?.generalInfo?.isPrepay?"Pay Now":"Pay Later":"",isDomestic:S?.countryCode&&J?S?.countryCode===J?"true":"false":"",reservationProcess:vo,ratePlanCode:a?.generalInfo?.rateCode||a?.rental_details?.pricing?.rate_plan_code||"",insurance_quote_key:f?.insuranceQuoteKey||"",vehicleClass:a?.vehicle?.carGroup||"",vehicleCollectionName:a?.vehicle?.carTypeDisplay||a?.vehicle?.category||"",vehicleType:a?.vehicle?.name||"",vehicleSipp:a?.vehicle?.sipp||a?.vehicle?.id||"",hashed_email:"",veh_base_rate:i,ecommerce:{currencyCode:o,purchase:{actionField:{id:f.conf,affiliation:"",revenue:e,tax:"",coupon:""},currencyCode:o,products:r}}},s={ecomLayer:!0,adjusted:!0,event:"purchase",ratePlanCode:a?.generalInfo?.rateCode||a?.rental_details?.pricing?.rate_plan_code||"",insurance_quote_key:f?.insuranceQuoteKey||"",transactionType:a?.rental_details?.pricing?.contains_prepayable?"Pay Now":"Pay Later",hashed_email:"",reservationProcess:vo,veh_base_rate:i,ecommerce:{currencyCode:o,purchase:{actionField:{id:f.conf,affiliation:"",revenue:e,tax:"",coupon:""},currencyCode:o,products:r}}},c={ts:window.ecom_fpt.getTimestamp(),en:"purchase",ep:{veh_base_rate:i},up:{},ecom:{currency:o,reservation:{confirmation_number:f.conf,revenue:e},items:r}};if(Gt&&window?.ecom_fpt?.hashAllPid)try{let i={email:window?.ecom_fpt?.normalizeEmailForHash?.(Gt)??(Gt||"").trim().toLowerCase(),phone:f?.confDetails?.phoneNumber.replace(/[^0-9]/g,"")||a?.customer?.phone_number.replace(/[^0-9]/g,"")||"",mem_id:window?.htz?.tracking?.common?.memberID||a?.customer?.member_id||dlHelper.get("memberID")||""};window.ecom_fpt.hashAllPid(i).then(o=>{var n;"IRAC"===d?(t.hashed_email=o?.hashEm||"",t.hashed_phone=o?.hashPh||"",t.hashed_member_id=o?.hashMem||"",window.dlp(t)):(s.hashed_email=o?.hashEm||"",s.hashed_phone=o?.hashPh||"",s.hashed_member_id=o?.hashMem||"",window.dlp(s)),c.ep.hashed_email=o?.hashEm||"",c.ep.hashed_phone=o?.hashPh||"",c.ep.hashed_member_id=o?.hashMem||"",window.ecom_fpt&&window.ecom_fpt.pushToQueue(c),window.ecom_fpt?.postIdentity({brand:"HERTZ",emailHash:o?.hashEm,smsHash:o?.hashPh,loyaltyMemberNumber:i.mem_id||void 0}),window.__useTruAudience&&(n="true"===l||f?.confDetails?.goldMember||i.mem_id?"member":"purchased",resolveTuPhoneHash(f?.confDetails?.phoneNumber||a?.customer?.phone_number||"").then(function(e){var t={e:o?.hashEm};e&&(t.p=e),"member"==n&&i.mem_id&&(t["1pd"]=i.mem_id),window.__useTruAudience(n,t)}))}).catch(e=>{"IRAC"===d?window.dlp(t):window.dlp(s),window.ecom_fpt&&window.ecom_fpt.pushToQueue(c)})}catch(e){"IRAC"===d?window.dlp(t):window.dlp(s),window.ecom_fpt&&window.ecom_fpt.pushToQueue(c)}else"IRAC"===d?window.dlp(t):window.dlp(s),window.ecom_fpt&&window.ecom_fpt.pushToQueue(c);eventTracker.set("refund","")}else window.dlp({event:"customEvent",customEventCategory:"purchase error - ecomLayerDispatcher",customEventAction:JSON.stringify({conf:f?.conf||"",rateDetails:f?.rateDetails||"",htzSystem:d||""}),customEventLabel:"",customEventValue:1}),window.ecom_fpt&&window.ecom_fpt.pushToQueue({ts:window.ecom_fpt.getTimestamp(),en:"customEvent",ep:{event_category:"purchase error - ecomLayerDispatcher",event_action:JSON.stringify({conf:f?.conf||"",rateDetails:f?.rateDetails||"",htzSystem:d||""}),event_label:"",event_value:"1"},up:{}});else"refund"==t&&f.conf&&(window.dlp({ecomLayer:!0,adjusted:!0,event:"refund",ecommerce:{refund:{actionField:{id:f.conf}}}}),window.ecom_fpt&&window.ecom_fpt.pushToQueue({ts:window.ecom_fpt.getTimestamp(),en:"refund",ep:{},up:{},ecom:{currency:"",reservation:{confirmation_number:f.conf,revenue:""},items:[]}}),eventTracker.set("purchase",""))}catch(e){console.log("error in ecom layer dispatcher: ",e);ie=e?.message||e?.toString()||e;window.dlp({event:"customEvent",customEventCategory:"ecomLayerDispatcher error on "+t,customEventAction:"data passed: "+JSON.stringify(f),customEventLabel:"error: "+ie,customEventValue:1}),window.ecom_fpt&&window.ecom_fpt.pushToQueue({ts:window.ecom_fpt.getTimestamp(),en:"customEvent",ep:{event_category:"ecomLayerDispatcher error on "+t,event_action:"data passed: "+JSON.stringify(f),event_label:"error: "+ie,event_value:1},up:{}})}},window.htzListener=function(e,i){if("xml"===i.type&&i.url){var o=getCookieFunc("_ga");
58if(-1<i.url.indexOf("/consent/cookie_banner/"))if(i.response&&i.response.categories&&i.response.categories.length&&getCookieFunc("__privaci_cookie_consents")&&!window.consentOnLoad){window.consentOnLoad=!0;try{var a=JSON.parse(getCookieFunc("__privaci_cookie_consents")),r=getCookieFunc("cookie_pref");let t={},e=(i.response.categories.forEach(e=>{t[e.id]=e.name}),""),o="",n="";var s,c={event:"consent_given",adjusted:!0};for(s in a.consents)if(c[t[s]]=a.consents[s]?"granted":"denied",a.consents[s])switch(t[s]){case"Advertising Cookies":n="_4";break;case"Performance Cookies":o="_3";try{dtrum.enable()}catch(e){}break;case"Functionality Cookies":e="_2"}r!==(u="1".concat(e,o,n))&&(document.cookie=`cookie_pref=${u}; max-age=15552000; path=/;`),window.dlp(c),window.flushDataLayerQueue(!0)}catch(e){}}else if(i.response&&i.response.banner_config&&!getCookieFunc("cookie_pref")&&!window.consentOnLoad){window.consentOnLoad=!0;try{var t,n=JSON.parse(i.response.banner_config);n&&(h=n.locations[window.sitePos]||n.locations.default,"info"===n?.categories?.[h]?.banner?.compliance||"opt-in"===n?.categories?.[h]?.banner?.compliance&&n?.categories?.[h]?.banner?.hideDismissAction)&&(window.justTellConsent=!0,window.postMessage("justTellConsent"),document.body?document.body.addEventListener("click",window.handleConsentClick):(t=new MutationObserver(function(){document.body&&(document.body.addEventListener("click",window.handleConsentClick),t.disconnect())})).observe(document.documentElement,{childList:!0}))}catch(e){}}if(0<=i.url.indexOf("/rentacar/rest/hertz/v2/itinerary/vehicles")&&i.body&&i.response&&i.response.resultInfo&&i.response.resultInfo.result&&"success"==i.response.resultInfo.result&&(window.dlp({itinerary:i.body}),ecomLayerDispatcher("virtualPageview",{formData:i.body,responseData:i.response,deferSend:!0,system:"IRAC"}),ecomLayerDispatcher("view_item_list",{impressionsArr:i.response?.data?.model?.vehicles||[],rateDetails:i.response?.data?.rateDetails||{},itinDetails:i.response?.data?.itinerary||{},type:"vehicles",system:"IRAC"})),i.method&&"GET"===i.method&&0<=i.url.indexOf("/rest/hertz/v2/reservations/vehicles/")&&i.response&&i.response.resultInfo&&i.response.resultInfo.result&&"success"==i.response.resultInfo.result&&((r=JSON.parse(window.sessionStorage.getItem("res-home-data")))&&r.formData&&ecomLayerDispatcher("virtualPageview",{formData:r.formData,responseData:i.response,deferSend:!1,system:"IRAC"}),ecomLayerDispatcher("view_item_list",{impressionsArr:i.response?.data?.model?.vehicles||[],rateDetails:i.response?.data?.rateDetails||{},itinDetails:i.response?.data?.itinerary||{},type:"vehicles",system:"IRAC"})),0<=i.url.indexOf("/rest/hertz/v2/reservations/itinerary")&&window.htz&&htz.navigation&&htz.navigation.homeURL&&0<htz.navigation.homeURL.indexOf("HertzlinkHandler")&&i.response&&i.response.data&&i.response.data.formData&&i.response.resultInfo&&i.response.resultInfo.result&&"success"==i.response.resultInfo.result&&ecomLayerDispatcher("virtualPageview",{formData:i.response.data.formData,responseData:{itinerary:JSON.parse(window.sessionStorage.getItem("res-itinerary-info-data")),model:JSON.parse(window.sessionStorage.getItem("res-vehicles-data")),rateDetails:JSON.parse(window.sessionStorage.getItem("res-rate-details-data"))},deferSend:!1,system:"IRAC"}),0<=i.url.indexOf("/rentacar/rest/hertz/v2/reservations/makeReservation")&&i.body&&i.body.itinerary&&i.response&&i.response.resultInfo&&i.response.resultInfo.result&&"success"==i.response.resultInfo.result&&(eventTracker.set("virtualPageview",""),ecomLayerDispatcher("virtualPageview",{formData:i.body.itinerary,responseData:i.response,deferSend:!1,system:"IRAC"}),0<window.location.hash.indexOf("vehicles")?ecomLayerDispatcher("view_item_list",{impressionsArr:i.response?.data?.model?.vehicles||[],rateDetails:i.response?.data?.rateDetails||{},itinDetails:i.response?.data?.itinerary||{},type:"vehicles",system:"IRAC"}):0<window.location.hash.indexOf("extras")&&ecomLayerDispatcher("view_item_list",{impressionsArr:i.response?.data?.model?.categories||[],rateDetails:i.response?.data?.rateDetails||{}
58,itinDetails:i.response?.data?.itinerary||{},type:"extras",system:"IRAC"})),(0<=i.url.indexOf("/rentacar/rest/hertz/v2/itinerary/vehicles")||0<=i.url.indexOf("/rest/hertz/v2/reservations/vehicles/")||0<=i.url.indexOf("/rentacar/rest/hertz/v2/reservations/makeReservation"))&&i.response&&i.response.data&&i.response.data.itinerary&&i.response.data.model&&i.response.data.itinerary.discounts&&i.response.data.itinerary.discounts.length&&(i.response.data.itinerary.discounts[0].includes("HERTZ MEMBER PROGRAM")||i.response.data.itinerary.discounts[0].includes("No Affiliations")||i.response.data.itinerary.discounts[0].includes("RQ: \x3c!-- mp_trans_disable_start --\x3eBEST\x3c!-- mp_trans_disable_end --\x3e"))&&!i.response.data.itinerary.isOneWay&&i.response.data.itinerary.pickupLocation&&i.response.data.itinerary.pickupDateStandard&&i.response.data.itinerary.dropoffDateStandard&&i.response.data.model.vehicles){for(var d={OAG:i.response.data.itinerary.pickupLocation.locationOAGCode,pickupDate:i.response.data.itinerary.pickupDateStandard.replace(/\//g,"-"),dropoffDate:i.response.data.itinerary.dropoffDateStandard.replace(/\//g,"-"),vehicles:[]},l=i.response.data.model.vehicles,p=0;p<l.length;p++)if(l[p].quotes)for(var m=0;m<l[p].quotes.length;m++)if(l[p].quotes[m]?.priced){d.vehicles.push(l[p].sipp);break}fetch("https://ecom.mss.hertz.io/shared/vehicle-availability/inventory",{method:"POST",body:JSON.stringify(d)});var u={site:"old",drop_off_location:i.response?.data?.itinerary?.dropoffLocation?.locationOAGCode||null,oag:i.response.data.itinerary.pickupLocation.locationOAGCode,pickupDate:i.response.data.itinerary.pickupDateStandard.replace(/\//g,"-"),dropoffDate:i.response.data.itinerary.dropoffDateStandard.replace(/\//g,"-"),vehicles:i.response.data.model.vehicles};fetch("https://ecom.mss.hertz.io/shared/vehicle-hub/vehicle-data/post",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(u)})}if(0<=i.url.indexOf("/rentacar/rest/member/skinnyGold/submitEnroll")&&window.location.hostname&&"www.hertz.com"==window.location.hostname&&posHTZ&&"US"==posHTZ&&i.body&&i.response&&i.response.resultInfo&&i.response.resultInfo.result&&"success"==i.response.resultInfo.result&&sessionStorage.setItem("temp-data-gpr",JSON.stringify(i.body)),0<=i.url.indexOf("rentacar/rest/member/password-reset")&&window.location.hostname&&"www.hertz.com"==window.location.hostname&&posHTZ&&"US"==posHTZ&&i.response&&i.response.resultInfo&&i.response.resultInfo.resultCode&&(x={type:"update_password",mem_id:i.body.memberNumber,data:{status:"",reason:"forgot_password",session:o,brand_name:"Hertz",site_country:posHTZ,site_domain:window.location.hostname,time:(new Date).getTime(),browser:{user_agent:uAgent,accept_language:browLang,content_language:contLang}}},(f=new XMLHttpRequest).addEventListener("error",function(){console.log("Forgot password security req error: ",this)}),f.open("POST","https://ecom.mss.hertz.io/shared/member-security/events"),200==i.response.resultInfo.resultCode?(x.data.status="pending",f.send(JSON.stringify(x))):401==i.response.resultInfo.resultCode&&(x.data.status="failure",f.send(JSON.stringify(x)))),0<=i.url.indexOf("/rentacar/member/reset/password")&&window.location.hostname&&"www.hertz.com"==window.location.hostname&&posHTZ&&"US"==posHTZ&&i.response&&i.response.resultInfo&&i.response.resultInfo.result&&(x={type:"update_password",mem_id:window.location.search&&window.location.search.includes("member")?window.location.search:"unk",data:{status:"success",reason:"forgot_password",session:o,brand_name:"Hertz",site_country:posHTZ,site_domain:window.location.hostname,time:(new Date).getTime(),browser:{user_agent:uAgent,accept_language:browLang,content_language:contLang}}},(f=new XMLHttpRequest).addEventListener("error",function(){console.log("Reset password security req error: ",this)}),f.open("POST","https://ecom.mss.hertz.io/shared/member-security/events"),"success"==i.response.resultInfo.result)&&f.send(JSON.stringify(x)),0<=i.url.indexOf("/rentacar/rest/hertz/v2/member/modify/form/save")&&window.location.hostname&&"www.hertz.com"==window.location.hostname&&posHTZ&&"US"==p
58osHTZ&&i.body&&i.body.modifiedVariables&&i.response&&i.response.resultInfo&&i.response.resultInfo.result&&"success"==i.response.resultInfo.result&&(n="non_essential",(h=i.body.modifiedVariables.toLowerCase())&&h.includes("email")&&(n="email"),h&&h.includes("mobilephonenumber")&&("non_essential"==n?n="phone":n+=" phone "),h&&h.includes("driverslicense")&&("non_essential"==n?n="license":n+=" license "),h&&h.includes("address")&&("non_essential"==n?n="address":n+=" address "),h&&h.includes("cardnumber")&&("non_essential"==n?n="card":n+=" card "),h&&"currentpassword||password||passwordverify||"==h&&(n="password"),window.dlp({event:"account_modified",acc_mod_data:n}),h)&&h.includes("cdpnumber")&&i.body.cdpNumber&&(window.dlp({event:"customEvent",customEventCategory:"Member Profile Updates",customEventAction:"CDP Added",customEventLabel:i.body.cdpNumber.toString(),customEventValue:1}),window.ecom_fpt)&&window.ecom_fpt.pushToQueue({ts:window.ecom_fpt.getTimestamp(),en:"customEvent",ep:{event_category:"Member Profile Updates",event_action:"CDP Added",event_label:i.body.cdpNumber.toString(),event_value:1},up:{}}),0<=i.url.indexOf("/rentacar/rest/hertz/v2/reservations/")){if(window.location.hostname&&("www.hertz.com"==window.location.hostname||"wwwpreprod.hertz.com"==window.location.hostname)&&posHTZ&&"US"==posHTZ)if(0<i.url.indexOf("/cancellation"))try{i.body&&i.response&&i.response.resultInfo&&i.response.resultInfo.result&&"success"==i.response.resultInfo.result?dlHelper.get("memberOrGuest")&&"member"==dlHelper.get("memberOrGuest")&&window.dlp({event:"gpr_res_cancellation"}):(g=i.response&&i.response.resultInfo&&i.response.resultInfo.result?i.response.resultInfo.result:"unk",y=i.response&&i.response.message&&i.response.message.systemErrors&&i.response.message.systemErrors.length&&i.response.message.systemErrors[0]?i.response.message.systemErrors[0].toString():"",window.dlp({event:"error",error_type:"Reservation cancellation - "+g,error_message:y}),window.ecom_fpt&&window.ecom_fpt.pushToQueue({ts:window.ecom_fpt.getTimestamp(),en:"site_error",ep:{event_action:"Reservation cancellation - "+g,event_label:y,error_message:y},up:{}}))}catch(e){window.dlp({event:"error",error_type:"Reservation cancellation - htzListener",error_message:e}),window.ecom_fpt&&window.ecom_fpt.pushToQueue({ts:window.ecom_fpt.getTimestamp(),en:"site_error",ep:{event_action:"Reservation cancellation - htzListener",event_label:e,error_message:e},up:{}})}else 0<i.url.indexOf("/vehicles/")&&0<i.url.indexOf("/extras")&&i.response&&i.response.resultInfo&&i.response.resultInfo.result&&"success"==i.response.resultInfo.result&&i.body&&i.body.id&&"boolean"==typeof i.body.selected&&(window.selectedVasProducts||(window.selectedVasProducts=[]),i.body.selected?window.selectedVasProducts.includes(i.body.id)||window.selectedVasProducts.push(i.body.id):window.selectedVasProducts=window.selectedVasProducts.filter(function(e){return e!==i.body.id}));i.response&&i.response.resultInfo&&i.response.resultInfo.result&&"success"==i.response.resultInfo.result&&(window.location.hash&&0<window.location.hash.indexOf("extras")&&"/rentacar/rest/hertz/v2/reservations/"==i.url&&(r=JSON.parse(window.sessionStorage.getItem("res-home-data"))?.formData||JSON.parse(window.sessionStorage.getItem("res-itinerary-info-data"))?.formData||{},ecomLayerDispatcher("virtualPageview",{formData:r,responseData:i.response,deferSend:!0,system:"IRAC"}),ecomLayerDispatcher("view_item_list",{impressionsArr:i.response?.data?.model?.categories||[],rateDetails:i.response?.data?.rateDetails||{},itinDetails:i.response?.data?.itinerary||{},type:"extras",system:"IRAC"}),ecomLayerDispatcher("select_item",{bodyData:i?.body||{},responseData:i.response?.data||{},itinDetails:i.response?.data?.itinerary||{},addItem:!0,type:"vehicle",system:"IRAC"})),0<i.url.indexOf("/vehicles/")&&0<i.url.indexOf("/extras")&&i.body&&i.body.id&&"boolean"==typeof i.body.selected&&ecomLayerDispatcher("select_item",{bodyData:i?.body||{},responseData:i.response?.data||{},itinDetails:JSON.parse(window.sessionStorage.getItem("res-itinerary-info-data"))||{},addItem:i.body.selected,type:"extra",system:"IRAC"}),window.location.hash&&0<window.location.hash.indexOf("review-and-book")&&0<i.url.indexOf("/preview")&&(u=JSON.parse(window.sessionStorage.getItem("res-home-data"))?.formData||JSON.parse(window.sessionStorage.getItem("res-itinerary-info-data"))?.formData||{},ecomLayerDispatcher("virtualPageview",{formData:u,responseData:i.response,deferSend:!0,system:"IRAC"}),window.sessionStorage.setItem("hdt-itinerary-form-data",JSON.stringify(u))),window.location.hash&&0<window.location.hash.indexOf("confirmation")&&(0<i.url.indexOf("/final")||0<i.url.indexOf("/confirmation"))&&i.response.data&&i.response.data.itinerary&&i.response.data.rateDetails&&i.response.data.confirmationSummaryInfo&&i.response.data.confirmationSummaryInfo.confirmationNumber&&(ecomLayerDispatcher("virtualPageview",{formData:JSON.parse(window.sessionStorage.getItem("hdt-itinerary-form-data"))||{},responseData:{itinerary:i.response.data.itinerary,model:htzHelper.get("response.data.model.metaData")||JSON.parse(window.sessionStorage.getItem("CONF-MODEL"))?.metaData,rateDetails:i.response.data.rateDetails},deferSend:!0,system:"IRAC"}),window.sessionStorage.removeItem("hdt-itinerary-form-data"),ecomLayerDispatcher("purchase",{conf:i.response.data.confirmationSummaryInfo.confirmationNumber,confDetails:i.response.data.confirmationSummaryInfo,rateDetails:i.response.data.rateDetails,itinDetail
58s:i.response.data.itinerary,modify:0<window.location.hash.indexOf("modify"),system:"IRAC"})),window.location.hash&&(0<window.location.hash.indexOf("review-and-book")||0<window.location.hash.indexOf("confirmation"))&&0<i.url.indexOf("/stripeTokenization")&&i.response.data&&i.response.data.itinerary&&i.response.data.rateDetails&&i.response.data.confirmationSummaryInfo&&i.response.data.confirmationSummaryInfo.confirmationNumber&&(window.sessionStorage.removeItem("hdt-itinerary-form-data"),ecomLayerDispatcher("purchase",{conf:i.response.data.confirmationSummaryInfo.confirmationNumber,confDetails:i.response.data.confirmationSummaryInfo,rateDetails:i.response.data.rateDetails,itinDetails:i.response.data.itinerary,modify:0<window.location.hash.indexOf("modify"),system:"IRAC"})),window.location.hash)&&0<window.location.hash.indexOf("cancel")&&0<i.url.indexOf("/cancellation")&&i.response.data&&i.response.data.confirmationNumber&&(ecomLayerDispatcher("virtualPageview",{formData:{},responseData:{},deferSend:!0,system:"IRAC"}),ecomLayerDispatcher("refund",{conf:i.response.data.confirmationNumber,system:"IRAC"}))}0<=i.url.indexOf("/rentacar/reservation/counter-bypass-submit-overlay")&&window.location.hostname&&"www.hertz.com"==window.location.hostname&&posHTZ&&"US"==posHTZ&&i.response&&i.response.resultInfo&&i.response.resultInfo.result&&"success"==i.response.resultInfo.result&&(window.dlp({event:"counter_bypass_enroll",counter_bypass_location:window.pickupLocationOAG,counter_bypass_status:"successful"}),window.htzDispatchFormEvent)&&window.htzDispatchFormEvent("formComplete")}if("fetch"===i.type&&i.url){if(0<=i.url.indexOf("us/en.model.json")&&!window.modelJsonInitMs&&window.ecom_fpt&&(window.modelJsonInitMs=window.ecom_fpt.getTimestamp()),0<=i.url.indexOf("/v1/cdp/validate")&&i?.body?.cdpValue&&i?.response?.data?.cdpList?.[0]?.contractType)try{var w=JSON.parse(sessionStorage.getItem("cdp_contract_types"))||{};w[i.body.cdpValue]=i.response.data.cdpList[0].contractType,sessionStorage.setItem("cdp_contract_types",JSON.stringify(w))}catch(e){console.log("Error setting cdp contract type: ",e)}if(0<=i.url.indexOf("ecom.mss.hertz.io/mdm-locations/location-page")&&200==i.status&&window.location.href.indexOf("/location/"),0<=i.url.indexOf("/vehicle-classes")||0<=i.url.indexOf("/vehicle-rates")){if((0<=i.url.indexOf("/vehicle-classes?")||0<=i.url.indexOf("/vehicle-rates?"))&&0<window.location.href.indexOf("/vehicles")&&i.response){ecomLayerDispatcher("virtualPageview",{urlData:0<window.location.href.indexOf("/upgrade/")?window.location.href:i.url,deferSend:!1,system:"vulcan"}),ecomLayerDispatcher("view_item_list",{urlData:0<window.location.href.indexOf("/upgrade/")?window.location.href:i.url,impressionsArr:i.response,type:"vehicles",system:"vulcan"});o=(e=>{try{if(e=e?.replace("?","")){var t=e.split("&"),o={};for(let e=0;e<t.length;e++){var n=t[e].split("=");o[n[0]]=n[1]}return o}return!1}catch(e){return!1}})(window.location.search);if(o){var f=["2278478","2275776","1392782"];let e=!0;o?.CDP&&!f.includes(o.CDP)&&(e=!1),i.response&&i.response.length<1&&(e=!1),(e=o?.PC?!1:e)&&(x={site:"new",...o,vehicles:i.response},fetch("https://ecom.mss.hertz.io/shared/vehicle-hub/vehicle-data/post",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(x)}))}}if(0<=i.url.indexOf("/ancillaries?")&&i.response&&(window.isBareAncillariesParentRoute()||ecomLayerDispatcher("virtualPageview",{urlData:i.url,deferSend:!1,system:"vulcan"}),0<window.location.pathname.indexOf("/book/confirmation")||0<window.location.pathname.indexOf("/manage/summary")?window.htzWaitForConfirmationUpsellCards(function(){ecomLayerDispatcher("view_item_list",{urlData:i.url,impressionsArr:i.response,type:"extras",system:"vulcan"})}):ecomLayerDispatcher("view_item_list",{urlData:i.url,impressionsArr:i.response,type:"extras",system:"vulcan"})),0<=i.url.indexOf("/total-pricing?"))if(0<window.location.href.indexOf("/book/ancillaries")||0<window.location.href.indexOf("/manage/ancillaries")||0<window.location.href.indexOf("/upgrade/ancillaries")||0<window.location.href.indexOf("/checkin/vas"))ecomLayerDispatcher("select_item",{urlData:i.url,responseData:i.response||{},system:"vulcan"});else if(0<window.location.href.indexOf("/book/checkout")||0<window.location.href.indexOf("/manage/summary")||0<window.location.href.indexOf("/upgrade/finalize"))ecomLayerDispatcher("virtualPageview",{urlData:i.url,deferSend:!1,system:"vulcan"});else if(0<window.location.href.indexOf("/book/confirmation"))ecomLayerDispatcher("virtualPageview",{urlData:i.url,deferSend:!1,system:"vulcan"}),ecomLayerDispatcher("select_item",{urlData:i.url,responseData:i.response||{},system:"vulcan"});else if(0<window.location.href.indexOf("/upgrade/vehicles")&&0<i.url.indexOf("embed=UPSELL")){let t=i?.response?.sipp_code||"",o=i?.response?.pricing?.vehicle_class_subtotal+i?.response?.pricing?.required_ancillaries_subtotal||"";var h,n=i?.response?.upsell_vehicle_classes||[];t&&o&&n.length&&(h=n?.filter(e=>e.sipp_code!==t)?.filter(e=>e.pricing.vehicle_class_subtotal+e.pricing.required_ancillaries_subtotal>+o)).length&&(window.sessionStorage.setItem("hdt-upsell-selected-sipp",t),window.sessionStorage.setItem("hdt-upsell-veh-pricing",JSON.stringify(h)),window.sessionStorage.getItem("hdt-upsell-selected-price")||window.sessionStorage.setItem("hdt-upsell-selected-price",o))}}var g,y;if(0<=i.url.indexOf("/brands/HERTZ/reservations")||0<i.url.indexOf("/brands/HERTZ/loyalty-profiles/")&&0<i.url.indexOf("/reservations"))if(i.response&&i.response.reservation_id&&i.url.indexOf("/cancellation")<0)if(!i.method||"POST"!==i.method&&"PUT"!==i.method)i.method&&"GET"===i.method&&0<window.location.href.indexOf("/upgrade/")&&(g=i?.response?.rental_details?.sipp_code||"",y=i?.response?.rental_details?.pricing?.vehicle_class_subtotal+i?.response?.rental_details?.pricing?.required_ancillaries_subtotal,window.sessionStorage.setItem("hdt-upsell-selected-sipp",g),window.sessionStorage.setItem("hdt-upsell-selected-price",y));else if("PUT"===i.method)try{var _=i.url.substring(i.url.lastIndexOf("/")+1)?.split("?")[0];_&&_===i.response.reservation_id?ecomLayerDispatcher("purchase",{conf:i.response.reservation_id,rateDetails:i.response,insuranceQuoteKey:i?.body?.rate_reference?.insurance_reference?.split("|")?.[1]||"",modify:!0,system:"vulcan"}):_&&_.length===i.response.reservation_id.length?(ecomLayerDispatcher("refund",{conf:_,system:"vulcan"}),ecomLayerDispatcher("purchase",{conf:i.response.reservation_id,rateDetails:i.response,insuranceQuoteKey:i?.body?.rate_reference?.insurance_reference?.split("|")?.[1]||"",modify:!1,system:"vulcan"})):(window.dlp({event:"customEvent",customEventCategory:"purchase error - htzListener",customEventAction:JSON.stringify({msgResId:_||"",url:i?.url||"",method:i?.method||"",status:i?.status||"",reservation_id:i?.response?.reservation_id||"",code:"reservation length mismatch"}),customEventLabel:"",customEventValue:1}),window.ecom_fpt&&window.ecom_fpt.pushToQueue({ts:window.ecom_fpt.getTimestamp(),en:"customEvent",ep:{event_category:"purchase error - htzListener",event_action:JSON.stringify({msgResId:_||"",url:i?.url||"",method:i?.method||"",status:i?.status||"",reservation_id:i?.response?.reservation_id||"",code:"reservation length mismatch"}),event_label:"",event_value:1},up:{}}))}catch(e){ecomLayerDispatcher("purchase",{conf:i.response.reservation_id,rateDetails:i.response,insuranceQuoteKey:i?.body?.rate_reference?.insurance_reference?.split("|")?.[1]||"",modify:!0,system:"vulcan"})}else ecomLayerDispatcher("purchase",{conf:i.response.reservation_id,rateDetails:i.response,insuranceQuoteKey:i?.body?.rate_reference?.insurance_reference?.split("|")?.[1]||"",modify:!1,system:"vulcan"});else 0<i.url.indexOf("/cancellation")&&i.status&&204==i.status?9<(r=(i.url.split(".hertz.io")?.[1]||i.url.split(".com")?.[1]||i.url.split(".")?.[1]||"")?.split("/")?.[4]||"").length&&r.length<13&&ecomLayerDispatcher("refund",{conf:r,system:"vulcan"}):i.method&&"GET"!==i.method&&(window.dlp({event:"customEvent",customEventCategory:"purchase error - htzListener",customEventAction:JSON.stringify({url:i?.url||"",method:i?.method||"",status:i?.status||"",reservation_id:i?.response?.reservation_id||"",code:i?.response?.code||"",errors:i?.response?.errors&&JSON.stringify(i?.response?.errors)||i?.response?.message||""}),customEventLabel:i?.response?.message||"",customEventValue:1}),window.ecom_fpt)&&window.ecom_fpt.pushToQueue({ts:window.ecom_fpt.getTimestamp(),en:"customEvent",ep:{event_category:"purchase error - htzListener",event_action:JSON.stringify({url:i?.url||"",method:i?.method||"",status:i?.status||"",reservation_id:i?.response?.reservation_id||"",code:i?.response?.code||"",errors:i?.response?.errors&&JSON.stringify(i?.response?.errors)||i?.response?.message||""}),event_label:i?.response?.message||"",event_value:1},up:{}});if(/\/brands\/HERTZ\/loyalty-profiles\/[^\/?#]+(?:[?#].*)?$/.test(i.url)&&"POST"!==i.method&&"PUT"!==i.method&&"PATCH"!==i.method&&"DELETE"!==i.method&&i.response&&"object"==typeof i.response&&window.__resolveMemberIdentity&&window.__resolveMemberIdentity(i.response),0<=i.url.indexOf("/v1/locations/HERTZ")&&i.response&&i.response.data&&i.response.data.length)if(window.sessionStorage.getItem("hdt-location-data")){let e=JSON.parse(window.sessionStorage.getItem("hdt-location-data"));u=e.concat(i.response.data.filter(t=>!e.find(e=>e.data.oag6===t.data.oag6)));window.sessionStorage.setItem("hdt-location-data",JSON.stringify(u))}else window.sessionStorage.setItem("hdt-location-data",JSON.stringify(i.response.data));if(0<=i.url.indexOf("/enroll-loyalty")){function v(e,t){window.dlp({event:"ab_testing",ab_testCategory:e,ab_testData:t,ab_testValue:1})}async function b(e,t){var o,n=new TextEncoder,n=function(e){let t="";var o=new Uint8Array(e),n=o.byteLength;for(let e=0;e<n;e++)t+=String.fromCharCode(o[e]);return window.btoa(t)}(await window.crypto.subtle.encrypt({name:"RSA-OAEP"},e.publicKey,n.encode(t))),t=(document.cookie=`xprsEnr=${n}; max-age=300; path=/; domain=hertz.com`,await window.crypto.subtle.exportKey("jwk",e.privateKey));document.cookie=`kEnrXprs=${JSON.stringify(t)}; max-age=300; path=/; domain=hertz.com`,0<window?.location?.href?.indexOf("H_US_ACQ_COF_NON_JEM")&&0<window?.location?.href?.indexOf("_3PPilot")||0<window?.location?.href?.indexOf("us/en/enrollment")&&0<window?.location?.href?.indexOf("utm_content=FKQ-")?((o=new URLSearchParams(window.location.search)).set("forceLogin","true"),window.location.href=window.location.origin+"/u
58s/en/deals-and-offers/gpr-exclusive-offer-new-fivestar?"+o.toString()):0<window?.location?.href?.indexOf("gpr-acq-offer=true")&&0<window?.location?.href?.indexOf("redirect-path=")&&(n=(o=new URLSearchParams(window.location.search)).get("redirect-path")||"/",o.set("forceLogin","true"),o.delete("gpr-acq-offer"),o.delete("redirect-path"),window.location.href=window.location.origin+n+"?"+o.toString())}if(i?.response?.personal?.name?.first&&-1<window?.location?.pathname?.indexOf("/us/en/enrollment")&&localStorage.setItem("expEnrInfo",`{"first_name":"${i?.response?.personal?.name?.first||""}"}`),201==i?.status&&i?.body?.username&&i?.body?.password&&("wwwpreprod.hertz.com"==window?.location?.hostname||"www.hertz.com"==window?.location?.hostname)&&-1<window?.location?.pathname?.indexOf("/us/en/enrollment")&&(0<window?.location?.href?.indexOf("H_US_ACQ_COF_NON_JEM")&&0<window?.location?.href?.indexOf("_3PPilot")&&!document.getElementById("loading-overlay")&&(document.body.insertAdjacentHTML("beforeend",'<style>#loading-overlay{position:fixed;top:0;left:0;width:100%;height:100%;background-color:rgba(0,0,0,.7);display:flex;justify-content:center;align-items:center;z-index:9999}.spinner{border:12px solid transparent;border-top:12px solid #fc0;border-radius:50%;width:150px;height:150px;animation:spin 1s linear infinite,border-grow-shrink 1s ease-in-out infinite}@keyframes spin{0%{transform:rotate(0)}100%{transform:rotate(360deg)}}@keyframes border-grow-shrink{0%{border-top:12px solid #fc0}50%{border-right:12px solid #fc0}100%{border-top:12px solid #fc0}}</style><div id="loading-overlay"><div class="spinner"></div></div>'),setTimeout(()=>{setTimeout(document.getElementById("loading-overlay").style.display="none",7e3)},7e3)),window?.crypto?.subtle?.generateKey?.({name:"RSA-OAEP",modulusLength:2048,publicExponent:new Uint8Array([1,0,1]),hash:"SHA-256"},!0,["encrypt","decrypt"])?.then(e=>{b(e,JSON.stringify({username:i.body.username,password:i.body.password}))}),-1<window?.location?.pathname?.indexOf("/us/en/enrollment"))&&waitForAddedNode({selector:"btn_make_booking",type:"id",parent:document.body,recursive:!1,continuous:!1,done:function(e){e.addEventListener("click",function(e){e.stopImmediatePropagation(),e.preventDefault(),document.cookie="xprsEnrEv=loginCtaClicked; max-age=900; path=/; domain=hertz.com",window.location.href=window.location.origin+"/rentacar/member/login"})}}),201==i?.status&&!window.enrollOptSent&&window.promoSmsTest&&"www.hertz.com"==window?.location?.hostname&&-1<window?.location?.pathname?.indexOf("/us/en/enrollment")){v("Marketing enroll promo sms test","enrolled - promoSmsTc: "+window?.promoSmsTest?.termsAndConditions);w=i?.body?.customer?.contact?.phone_mobile?.phone_number||"",f=i?.body?.customer?.contact?.phone_mobile?.region_code||"";if(window?.promoSmsTest?.termsAndConditions&&w&&f)try{var S=i?.response||{};S?.memberships?.loyalty?.member_id?fetch("https://email.mss.hertz.io/sms-enroll",{method:"POST",headers:{accept:"application/json, text/plain, */*","content-type":"application/json","x-api-key":"NQdw10Dasf3N7jOn6VWHL1wCrPPI1BmI4oQSWIut"},body:JSON.stringify({data:{brand:"Hertz",firstName:S?.personal?.name?.first||"",lastName:S?.personal?.name?.last||"",phone:w,mobileCountryCode:f,memberNumber:S?.memberships?.loyalty?.member_id||"",smsOptIn:!0}})}).then(function(){v("Marketing enroll promo sms test","Success: pref sent")}).catch(function(e){v("Marketing enroll promo sms test","Fetch caught error: "+(e?.message||""))}):v("Marketing enroll promo sms test","Error: No membership id")}catch(e){v("Marketing enroll promo sms test","Caught error: "+(e?.message||""))}else window?.promoSmsTest?.termsAndConditions&&v("Marketing enroll promo sms test","Error: No phone number");window.enrollOptSent=!0}if(201==i?.status&&"www.hertz.com"==window?.location?.hostname){o=i?.response||{};if(window.htzDispatchFormEvent&&window.htzDispatchFormEvent("formComplete"),o&&window?.ecom_fpt?.hashAllPid){let t={email:window?.ecom_fpt?.normalizeEmailForHash?.(o?.contact?.email_primary?.address||"")??(o?.contact?.email_primary?.address||"").trim().toLowerCase(),phone:(o?.contact?.phone_mobile?.phone_number||"").replace(/[^0-9]/g,"")||"",mem_id:o?.memberships?.loyalty?.member_id||""};window.ecom_fpt.hashAllPid(t).then(e=>{window.dlp({event:"memHashedEm",hashed_email:e?.hashEm||"",hashed_phone:e?.hashPh||"",hashed_member_id:e?.hashMem||""}),window.ecom_fpt&&window.ecom_fpt.pushToQueue({ts:window.ecom_fpt.getTimestamp(),en:"memHashedEm",ep:{hashed_email:e?.hashEm||"",hashed_phone:e?.hashPh||"",hashed_member_id:e?.hashMem||""},up:{hashed_email:e?.hashEm||"",hashed_phone:e?.hashPh||"",hashed_member_id:e?.hashMem||""}}),window.ecom_fpt?.postIdentity({brand:"HERTZ",emailHash:e?.hashEm,smsHash:e?.hashPh,loyaltyMemberNumber:t.mem_id||void 0})})}}}if(-1<i.url.indexOf("amplitude.com/2/httpapi")&&i?.body?.events?.length)for(const C of i.body.events)("$impression"==C?.event_type||"$exposure"==C?.event_type)&&C?.event_properties?.flag_key&&C?.event_properties?.variant&&window.dlp({event:"ab_testing",ab_testCategory:"Amplitude - "+C.event_properties.flag_key,ab_testData:C.event_properties.variant,ab_testValue:1});if(!i.ok){var x=i?.url||"",n=i?.status||"";try{let o=new URL(x);o.searchParams.delete("lastName"),o.searchParams.delete("lastname"),o.searchParams.forEac
58h(function(e,t){e&&100<e.length&&o.searchParams.delete(t)});var D=o.origin+o.pathname+o.search+o.hash,k=i?.response&&"string"!=typeof i?.response&&void 0!==i?.response?JSON.stringify(i?.response):i?.response||"",O=i.correlationId||"";window.dlp({event:"error_api",error_type:"Status-code: "+n+" - "+D,error_message:k,correlationId:O}),window.ecom_fpt&&window.ecom_fpt.pushToQueue({ts:window.ecom_fpt.getTimestamp(),en:"error_api",ep:{event_category:"Error",event_action:"Status-code: "+n+" - "+D,event_label:k,error_message:k,correlationId:O},up:{}})}catch(e){console.log("Error filtering api url: ",e),window.dlp({event:"error_api",error_type:"error filtering api url -- Status-code: "+n+" - "+x,error_message:e}),window.ecom_fpt&&window.ecom_fpt.pushToQueue({ts:window.ecom_fpt.getTimestamp(),en:"error_api",ep:{event_category:"Error",event_action:"error filtering api url -- Status-code: "+n+" - "+x,event_label:e,error_message:e},up:{}})}}}},window.htzHelper=new window.hdt.utils.DataLayerHelper(respDataLayer,{listener:htzListener}),["ep.del_and_col=&","ep.trip_type=&","ep.is_domestic=&","ep.is_oneway=&","ep.booking_window=&","ep.rental_days=&","ep.pickup_location_type=&","ep.dropoff_location_type=&","ep.pickup_location_ownership=&","ep.dropoff_location_ownership=&","ep.pickup_oag_code=&","ep.dropoff_oag_code=&","ep.pickup_location=&","ep.dropoff_location=&","ep.pickup_location_latlng=&","ep.dropoff_location_latlng=&","ep.pickup_region=&","ep.dropoff_region=&","ep.pickup_subregion=&","ep.dropoff_subregion=&","ep.pickup_country=&","ep.dropoff_country=&","ep.pickup_state=&","ep.dropoff_state=&","ep.pickup_city=&","ep.dropoff_city=&","ep.pickup_date=&","ep.dropoff_date=&","ep.pickup_date_yyyy_mm_dd=&","ep.dropoff_date_yyyy_mm_dd=&","ep.pickup_year_yyyy=&","ep.dropoff_year_yyyy=&","ep.pickup_month_mm=&","ep.dropoff_month_mm=&","ep.pickup_day_dd=&","ep.dropoff_day_dd=&","ep.pickup_dow=&","ep.dropoff_dow=&","ep.pickup_time_24hr=&","ep.dropoff_time_24hr=&","ep.vehicle_class=&","ep.vehicle_collection=&","ep.vehicle_name=&","ep.vehicle_sipp=&","ep.cdp_validate=&","ep.rate_plan_code=&","ep.transaction_type=&","ep.confirmation_number=&","ep.event_source=&"]);window.reqBody={},window.authSend={},window.origOpen=XMLHttpRequest.prototype.open,window.origSend=XMLHttpRequest.prototype.send,XMLHttpRequest.prototype.open=function(e,t){try{t&&(this.urlOverride=t),e&&(this.methodOverride=e),origOpen.apply(this,arguments)}catch(e){console.log("Error on open: ",e),origOpen.apply(this,arguments)}},XMLHttpRequest.prototype.send=function(t){try{let c=this.urlOverride||"";if(c&&c.indexOf("/rentacar/rest/banner/style/")<0&&(0<c.indexOf("rentacar/member/authentication")||0<c.indexOf("auth.hertz.com")||0<c.indexOf("rentacar/rest")||0<c.indexOf("api/login/token")||0<c.indexOf("oauth/token")||0<c.indexOf("rentacar/member/reset/password")||0<c.indexOf("rentacar/reservation/counter-bypass-submit-overlay")||0<c.indexOf("consent/cookie_banner/")&&c.indexOf("config")<0&&!getCookieFunc("cookie_pref"))){if(t&&c&&(0<c.indexOf("rentacar/rest")||0<c.indexOf("api/login/token")||0<c.indexOf("rentacar/member/reset/password")))try{window.reqBody[c]=JSON.parse(t)}catch(e){window.reqBody[c]=t}if(this.addEventListener("load",function(e){if(this.readyState===XMLHttpRequest.DONE){var t=e?.currentTarget?.urlOverride||"",o=this.responseText||"";if(this.status&&400<=this.status)if(403==this.status)try{var n,i,a,r=o.indexOf("Request unsuccessful. Incapsula incident ID:"),s=t.split("?")[0];0<r?(n=o.indexOf("Incapsula",r),i=o.indexOf("</iframe>",n),a=o.substring(n,i),window.dlp({event:"error_api",error_type:"Request blocked by imperva: "+s,error_message:a}),window.ecom_fpt&&window.ecom_fpt.pushToQueue({ts:window.ecom_fpt.getTimestamp(),en:"error_api",ep:{event_category:"Error",event_action:"Request blocked by imperva: "+s,event_label:a,error_message:a},up:{}})):(window.dlp({event:"error_api",error_type:"Status-code: "+this.status+" - "+t,error_message:o}),window.ecom_fpt&&window.ecom_fpt.pushToQueue({ts:window.ecom_fpt.getTimestamp(),en:"error_api",ep:{event_category:"Error",event_action:"Status-code: "+this.status+" - "+t,event_label:o,error_message:o},up:{}}))}catch(e){console.log("DataLayer helper imperva error tracking error: ",e)}else window.dlp({event:"error_api",error_type:"Status-code: "+this.status+" - "+t,error_message:o}),window.ecom_fpt&&window.ecom_fpt.pushToQueue({ts:window.ecom_fpt.getTimestamp(),en:"error_api",ep:{event_category:"Error",event_action:"Status-code: "+this.status+" - "+t,event_label:o,error_message:o},up:{}});if((0===this.status||200<=this.status&&this.status<=400)&&(0<t.indexOf("rentacar/rest")||0<t.indexOf("api/login/token")||0<t.indexOf("rentacar/member/reset/password")||0<t.indexOf("rentacar/reservation/counter-bypass-submit-overlay")||0<c.indexOf("consent/cookie_banner/")&&c.indexOf("config")<0&&!getCookieFunc("cookie_pref"))){r={type:"xml",method:e?.currentTarget?.methodOverride||"",url:t};try{window.reqBody&&window.reqBody[r.url]&&(r.body=window.reqBody[r.url],delete window.reqBody[r.url]),r.response=JSON.parse(this.response),r.responsev2={[t?.
58split("?")[0]||url]:JSON.parse(this.response)},0<t.indexOf("/final")&&window.dlp({event:"403Tracking",iracMessage:"Status-code: "+this.status+" - "+t})}catch(e){try{r.response=JSON.parse(o),r.responsev2={[t?.split("?")[0]||url]:JSON.parse(o)}}catch(e){r.response=o,r.responsev2={[t?.split("?")[0]||url]:o}}}respDataLayer.push(r)}t&&window.reqBody&&window.reqBody[t]&&delete window.reqBody[t]}}),0<c.indexOf("rentacar/member/authentication")&&window.location.hostname&&"www.hertz.com"==window.location.hostname&&posHTZ&&"US"==posHTZ)if(t&&!window.bypassLoginWorkflow){window.authSend={this:this,args:arguments};try{sendLoginData(JSON.parse(t))}catch(e){origSend.apply(this,arguments)}}else origSend.apply(this,arguments);else"/rentacar/rest/hertz/v2/reservations/"==c&&window.location.hostname&&"www.hertz.com"==window.location.hostname&&posHTZ&&"US"==posHTZ?window.validateCustomersCdp?window.validateCustomersCdp({this:this,args:arguments}):window.validateApplicantProfile?window.validateApplicantProfile({this:this,args:arguments}):origSend.apply(this,arguments):0<c.indexOf("rentacar/rest/hertz/v2/reservations/")&&0<c.indexOf("/preview")&&window.location.hostname&&"www.hertz.com"==window.location.hostname&&posHTZ&&"US"==posHTZ?!window.ldwIsAvailable||!window.selectedVasProducts||window.selectedVasProducts.includes("ldw")||window.selectedVasProducts.includes("lis")||window.selectedVasProducts.includes("ppi")||window.selectedVasProducts.includes("fpo")?origSend.apply(this,arguments):(window.previewCheckoutReq={this:this,args:arguments},window.vasModalShown=!1,window.showVasPopupModal?window.showVasPopupModal():window.overlayDataLayer&&overlayDataLayer.push({event:"activate_vas_popup_modal"}),setTimeout(()=>{window.vasModalShown||(window.vasModalTimedOut=!0,origSend.apply(this,arguments))},300)):"/rentacar/reservation/counter-bypass-submit-overlay"==c&&window.sessionStorage&&sessionStorage.getItem("noShowFeeMemberBenefitVariant")&&t&&JSON.parse(t)&&JSON.parse(t).cbEnrollmentIndicator&&"N"==JSON.parse(t).cbEnrollmentIndicator||origSend.apply(this,arguments)}else origSend.apply(this,arguments)}catch(e){console.log("Error on send: ",e),origSend.apply(this,arguments)}},window.originalFetch=window.fetch,window.fetch=new Proxy(originalFetch,{apply:async function(e,o,n){var[i,a]=n;if(i&&"string"==typeof i&&(-1<i.indexOf(".hertz.io")||-1<i.indexOf("/api/")||-1<i.indexOf("rentacar/member/authentication")||-1<i.indexOf("auth.hertz.com")||-1<i.indexOf("us/en.model.json")||-1<i.indexOf("amplitude.com/2/httpapi")||-1<i.indexOf(".google")&&-1<i.indexOf("/collect"))){if(-1<i.indexOf("rentacar/member/authentication")&&(window.dlp({event:"mem_login",login_status:"Unauthorized login via fetch",login_message:"User Agent: "+uAgent}),window.alert("Unauthorized request")),-1<i.indexOf(".google")&&-1<i.indexOf("/collect")&&a.body&&16e3<a.body.length)try{let e=a.body;var r,s=[];let t=0;for(r of eventsToFilter){if(!(16e3<e.length))break;0<e.indexOf(r)&&(e=e.replaceAll(r,""),s.push(r))}if(16e3<e.length){do{if(!(0<e.indexOf("=&")))break;var c=e.substring(e.lastIndexOf("&",e.indexOf("=&"))+1,e.indexOf("=&")+2);if(!c)break;if(e=e.replaceAll(c,""),s.push(c),50<=t)break}while(t++,16e3<e.length);16e3<e.length&&(window.dlp({event:"error_api",error_type:"Google payload size limit reached - no more empty params to remove",error_message:"Event params removed: "+s.toString()}),window.ecom_fpt&&window.ecom_fpt.pushToQueue({ts:window.ecom_fpt.getTimestamp(),en:"error_api",ep:{event_category:"Error",event_action:"Google payload size limit reached - no more empty params to remove",event_label:"Event params removed: "+s.toString(),error_message:"Event params removed: "+s.toString()},up:{}}),console.log(JSON.stringify({event:"error_api",error_type:"Google payload size limit reached - no more empty params to remove",error_message:"Event params removed: "+s.toString()})))}a.body=e}catch(e){window.dlp({event:"error_api",error_type:"Google payload size limit reached - failed to remove empty event params",error_message:e}),window.ecom_fpt&&window.ecom_fpt.pushToQueue({ts:window.ecom_fpt.getTimestamp(),en:"error_api",ep:{event_category:"Error",event_action:"Google payload size limit reached - failed to remove empty event params",event_label:e,error_message:e},up:{}})}var d=Date.now(),l=await Reflect.apply(e,o,n),p=await l.clone().text();let t="";try{t=JSON.parse(p)}catch(e){t=p||""}p={type:"fetch",correlationId:a?.headers?.get&&a?.headers?.get("Correlation-Id")||"",method:a?.method||"",url:l?.url||i||"",response:t,responsev2:{[l?.url?.split("?")[0]||i?.split("?")[0]||url]:t},ok:l?.ok,status:l?.status,config:a,responseTimeMS:Date.now()-d};if(a&&a.body)try{p.body=JSON.parse(a.body)}catch(e){p.body=a.body}return p.url.indexOf(".google")<1&&respDataLayer.push(p),l}return Reflect.apply(e,o,n)}})}if(window.querySelectorRef||(window.querySelectorRef=function(e,t,o){e=window.document.querySelector(e);return e&&t?(o(e.outerHTML),e[t]):e?(o(e.outerHTML),e.outerHTML):(o(null),e)}),window.sessionStorageRef||(window.sessionStorageRef=function(e){return sessionStorage.getItem(e)}),window.fetchRef||(window.fetchRef=function(method,url,data,headers,evalFlag,callback,cors){function corsHandle(){var e=document.createElement("script");e.onload=callback,e.src=url,document.body.appendChild(e)}if(cors)corsHandle();else{var xhrReq=new XMLHttpRequest,json=JSON.stringify(data);for(h in window.reqListener=function(){var resp;if(0===this.status||200<=this.status&&this.status<=400)if(this.responseText&&this.responseText.length)try{resp=JSON.parse(this.response),evalFlag&&eval(resp),setTimeout(callback(resp),1e3)}catch(err){try{resp=JSON.parse(this.responseText),evalFlag&&eval(resp),setTimeout(callback(resp),1e3)}catch(e){resp=this.responseText,evalFlag&&window.eval(resp),setTimeout(callback(resp),1e3)}}},window.reqFail=function(){},xhrReq.addEventListener("load",reqListener),xhrReq.addEventListener("error",reqFail),xhrReq.open(method,url),"POST"===method&&xhrReq.setRequestHeader("Content-type","application/json"),headers)header=headers[h],xhrReq.setRequestHeader(header.key,header.value);xhrReq.send(json)}}),window.hidePcInFlowList||(window.hidePcInFlowList=["211374"]),window.hideCdpInFlowList||(window.hideCdpInFlowList=["2244033"]),!window.overlayDataLayer){if(window.overlayDataLayer=[],window.getCookies=function(e){var o={};return document.cookie.split(";").forEach(function(e){var t=e.split("=")[0],e=e.split("=")[1];o[t.trim()]=e}),o[e]},window.storageHandler=function(e,t,o){window.getCookies&&window.getCookies("cookie_pref")&&-1<window.getCookies("cookie_pref").indexOf("2")?e.setItem(t,o):e.getItem(t)&&e.removeItem(t)},sessionStorage.getItem("aws_exp")){try{Object.keys(JSON.parse(sessionStorage.getItem("aws_exp"))).length&&window.storageHandler(sessionStorage,"feature_flgs",sessionStorage.getItem("aws_exp"))}catch(e){console.log(e)}sessionStorage.removeItem("aws_exp")}if(localStorage.getItem("aws_exp")){try{Object.keys(JSON.parse(localStorage.getItem("aws_exp"))).length&&window.storageHandler(localStorage,"feature_flgs",localStorage.getItem("aws_exp"))}catch(e){console.log(e)}localStorage.removeItem("aws_exp")}sessionStorage.getItem("feature_flgs")?window.getCookies("cookie_pref")&&window.getCookies("cookie_pref").indexOf("2")<0&&sessionStorage.removeItem("feature_flgs"):window.storageHandler(sessionStorage,"feature_flgs","{}");var experimentsInit=localStorage.getItem("feature_flgs")?JSON.parse(localStorage.getItem("feature_flgs")):null,currentTime,experimentNames,refreshList;experimentsInit&&(currentTime=(new Date).getTime(),experimentNames=Object.keys(experimentsInit),refreshList={}
58,experimentNames.forEach(e=>{experimentsInit[e]&&experimentsInit[e].expires&¤tTime<experimentsInit[e].expires&&(refreshList[e]=experimentsInit[e])}),window.storageHandler(localStorage,"feature_flgs",JSON.stringify(refreshList))),window.buildContentElements=function(e){var o=null;if(e&&e.config_category&&"ab"===String(e.config_category).toLowerCase()){o=e.firing_pos+"-"+e.config_category+"-"+e.config_id,window.__ecomAbCommittedVariantId=window.__ecomAbCommittedVariantId||{};var n=window.__ecomAbCommittedVariantId[o];if(n){if(n!==e.config_category_id)return;if(e.firing_oncePerPage)return}}if(e.config_category&&!window[e.firing_pos+"-"+e.config_category_id]&&e.content_html){o&&!window.__ecomAbCommittedVariantId[o]&&(window.__ecomAbCommittedVariantId[o]=e.config_category_id);function t(){e.firing_oncePerPage&&(window[e.firing_pos+"-"+e.config_category_id]=!0)}if("ab"==e.config_category.toLowerCase()){n=localStorage.getItem("feature_flgs")?JSON.parse(localStorage.getItem("feature_flgs")):{},o=sessionStorage.getItem("feature_flgs")?JSON.parse(sessionStorage.getItem("feature_flgs")):{};let t=e.config_category_id.substring(e.config_category_id.lastIndexOf("-")+1,e.config_category_id.length);function i(e){window.dlp({event:"aws_ab",testName:r,variantName:t,testDataType:e}),window.ecom_fpt&&window.ecom_fpt.pushToQueue({ts:window.ecom_fpt.getTimestamp(),en:"aws_ab",ep:{event_category:"AB Test - "+r,event_action:t,event_label:e},up:{}})}var a,r=e.firing_pos+"-"+e.config_category+"-"+e.config_id;n&&n[r]?i(o&&o[r]?"session":"user"):((a=new Date).setDate(a.getDate()+30),a={variant:t,expires:a.getTime()},n[r]=a,window.storageHandler(localStorage,"feature_flgs",JSON.stringify(n)),o[r]=a,window.storageHandler(sessionStorage,"feature_flgs",JSON.stringify(o)),i("session"))}if(e.default);else{var s=document.createElement("div"),c=(s.innerHTML=e.content_html,[]);for(let e=s.childNodes.length-1;-1<e;e--)s.childNodes[e]&&s.childNodes[e].nodeName&&"SCRIPT"==s.childNodes[e].nodeName?c.push(s.childNodes[e]):document.body.appendChild(s.childNodes[e]);if(c.length)for(let e=c.length-1;-1<e;e--){var d=document.createElement("script");c[e].id&&(d.id=c[e].id),c[e].type&&(d.type=c[e].type),d.innerHTML=c[e].innerHTML,document.body.appendChild(d)}}t()}},window.contentListener=function(model,message){var eventContent;window.customEventContent&&window.customEventContent.length&&message&&message.event&&(eventContent=window.customEventContent.filter(e=>{let t=!1;return e.firing_triggers.forEach(e=>{e.includes("customEvent")&&(e.split(":")[1]?e.split(":")[1].trim():"unk")==message.event&&(t=!0)}),t}),eventContent)&&eventContent.length&&eventContent.forEach(item=>{try{item.firing_conditions&&eval(item.firing_conditions)&&buildContentElements(item)}catch(error){console.log("Content firing conditions error: ",item.config_category_id,error)}})},window.contentHelper=new window.hdt.utils.DataLayerHelper(overlayDataLayer,{listener:contentListener}),window.contentBuilder=function(cont){cont&&cont.length&&cont.forEach(item=>{try{item.firing_conditions&&eval(item.firing_conditions)&&buildContentElements(item)}catch(error){console.log("Content firing conditions error: ",item.config_category_id,error)}})},window.abTestingFilter=function(e){let t=e;if(1<window?.hdt?.apiVersion){let d=[];for(let e=t.length-1;0<=e;e--)t[e].config_category&&"ab"==t[e].config_category&&(d.push(t[e]),t.splice(e,1));if(d.length){let s=[],c=[];d.forEach(o=>{let t=o.firing_pos+"-"+o.config_category+"-"+o.config_id;if(!c.includes(t)){var n=localStorage.getItem("feature_flgs")?JSON.parse(localStorage.getItem("feature_flgs")):{};if(n&&n[t]||-1<window?.location?.href?.toLowerCase()?.indexOf(t.toLowerCase())){var i=new URL(location.href).searchParams.get("exp")?.split("!"),n=n[t]?.variant||i?.filter(e=>e.split("=")?.[0]?.toLowerCase()==t?.toLowerCase())?.toString()?.split("=")?.[1];let e=[];
58if("default"==n)for(const r of d.filter(e=>{let t=!1;return t=e.firing_pos==o.firing_pos&&e.config_category==o.config_category&&e.config_id==o.config_id?!0:t})){if(e.length)break;var a={...r};a.config_category_id=r.config_category_id.substring(0,r.config_category_id.lastIndexOf("-")+1)+"-default",a.default=!0,e.push(a)}else{let o=t.substring(t.indexOf("-")+1)+"-"+n;e=d.filter(e=>{let t=!1;return t=e.config_category_id&&e.config_category_id==o?!0:t})}e&&e.length&&(s.push(e[0]),c.push(t))}else{i=d.filter(e=>{let t=!1;return t=e.firing_pos==o.firing_pos&&e.config_category==o.config_category&&e.config_id==o.config_id?!0:t});i.length&&(n=window?.hdt?.utils?.rollTestVariant(i))&&n.length&&(s.push(n[0]),c.push(t))}}}),s.length&&s.forEach(e=>{t.push(e)})}}return t}}if(window.innovationContent&&window.innovationContent.length){let filteredContent=abTestingFilter(window.innovationContent);window.pageViewContent=filteredContent.filter(e=>{let t=!1;return e.firing_triggers&&e.firing_triggers.length&&e.firing_triggers.forEach(e=>{e.includes("pageView")&&(t=!0)}),t}),window.customEventContent=filteredContent.filter(e=>{let t=!1;return e.firing_triggers&&e.firing_triggers.length&&e.firing_triggers.forEach(e=>{e.includes("customEvent")&&(t=!0)}),t}),document&&document.body?contentBuilder(window.pageViewContent):(bodyObserver=new MutationObserver(function(){document.body&&(contentBuilder(window.pageViewContent),bodyObserver.disconnect())}),bodyObserver.observe(document.documentElement,{childList:!0}))}if("#confirmation"==window.location.hash&&document.referrer&&0<document.referrer.indexOf("setup_intent=")&&0<document.referrer.indexOf("setup_intent_client_secret=")&&0<document.referrer.indexOf("redirect_status=succeeded")&&sessionStorage.getItem("res-confirmation-data"))try{let resData=JSON.parse(sessionStorage.getItem("res-confirmation-data"))?.data||{};
58resData.itinerary&&resData.rateDetails&&resData.confirmationSummaryInfo&&resData.confirmationSummaryInfo.confirmationNumber&&(ecomLayerDispatcher("virtualPageview",{formData:JSON.parse(window.sessionStorage.getItem("hdt-itinerary-form-data"))||{},responseData:{itinerary:resData.itinerary,model:htzHelper.get("response.data.model.metaData")||JSON.parse(window.sessionStorage.getItem("CONF-MODEL"))?.metaData,rateDetails:resData.rateDetails},deferSend:!1,system:"IRAC"}),window.sessionStorage.removeItem("hdt-itinerary-form-data"),window.initializePV=!0,ecomLayerDispatcher("purchase",{conf:resData.confirmationSummaryInfo.confirmationNumber,confDetails:resData.confirmationSummaryInfo,rateDetails:resData.rateDetails,itinDetails:resData.itinerary,modify:0<window.location.hash.indexOf("modify"),system:"IRAC"}))}catch(error){console.log("Stripe purchase support error",error)}var windowLoaded=function(e){"complete"===document.readyState?e():window.addEventListener("load",e)},TU_API_KEY,TU_SEGMENT_RANK,TU_HIPE_URL,TU_HIPE_TIMEOUT_MS,__tuHipePromise,__tuConsentPending;windowLoaded(function(){var e;document.body&&((e=document.createElement("style")).innerHTML='#footer-container #social-bar form, #leadgen-section-container-rd, div[class*="EmailSignup-module__emailSignupContainer__"], #leadGenerationSection {display: none!important;}',document.body.appendChild(e))});{function useWkndWebSDK(o){var n=("prod"===window?.getSiteDetails?.()?.env?"https://ecom.mss.hertz.io":"https://ecom.nonprod.mss.hertz.io")+"/marketing/preferences/hertz/enc-email-hash",e=typeof window?.wunderkind?.sdk?.user?.getId;window.dataLayer&&window.dataLayer.push({event:"customEvent",customEventCategory:"wunderkind",customEventAction:"getId called",customEventLabel:o+("function"==e?" - user.getId() defined":" - user.getId() NOT defined"),customEventValue:1}),wunderkind.sdk.user.getId("wknd",{external_id_type:"encrypted_email_hash"}).then(e=>{var e=e&&e.external_id,t=!!(e&&e.id&&e.encryption_key_name);window.dataLayer&&window.dataLayer.push({event:"customEvent",customEventCategory:"wunderkind",customEventAction:t?"getId success":"getId no response",customEventLabel:o,customEventValue:1}),t&&fetch(n,{method:"POST",headers:{"Content-Type":"application/json"},credentials:"include",body:JSON.stringify({encryptedEmailHash:e.id,encKeyName:e.encryption_key_name})}).then(function(e){return e.ok?e.json():Promise.reject()}).then(function(e){e=e&&e.emailHash;e&&(window.dlp({event:"memHashedEm",hashed_email:e}),window.ecom_fpt&&window.ecom_fpt.pushToQueue({ts:window.ecom_fpt.getTimestamp(),en:"memHashedEm",ep:{hashed_email:e},up:{hashed_email:e}}),window.ecom_fpt?.postIdentity({brand:"HERTZ",emailHash:e}))}).catch(function(){})}).catch(function(){window.dataLayer&&window.dataLayer.push({event:"customEvent",customEventCategory:"wunderkind",customEventAction:"getId failed",customEventLabel:o,customEventValue:1})})}function tuHasAdConsent(){try{var e=window.getCookieFunc&&window.getCookieFunc("cookie_pref");return e&&-1<e.indexOf("4")}catch(e){}}function getTuHashedIp(){return __tuHipePromise=__tuHipePromise||new Promise(function(t){var o=!1,n=setTimeout(function(){o||(o=!0,t({}))},TU_HIPE_TIMEOUT_MS);fetch(TU_HIPE_URL).then(function(e){return e.ok?e.json():Promise.reject(e)}).then(function(e){o||(o=!0,clearTimeout(n),t(e&&(e.i4||e.i6)?e:{}))}).catch(function(){o||(o=!0,clearTimeout(n),t({}))})})}function normalizePhoneForTU(e){e=String(e||"").replace(/[^0-9]/g,"");return 10===(e=11===e.length&&"1"===e.charAt(0)?e.slice(1):e).length?e:""}function resolveTuPhoneHash(e){e=normalizePhoneForTU(e);if(!e||!window.ecom_fpt||"function"!=typeof window.ecom_fpt.hashPid)return Promise.resolve("");try{return window.ecom_fpt.hashPid(e).catch(function(){return""})}catch(e){return Promise.resolve("")}}function waitForTruAudienceConsent(e,t){__tuConsentPending.push({label:e,ids:t})}function stitchTruAudience(e){try{var t;e&&e.tuid&&(t={tru_audience_id:e.tuid||"",tu_l2_individual_id:e.l2||"",tu_l3_household_id:e.l3||"",tu_id_match:e.idMatch||"",tu_id_index:e.idIndex||""},window.dlp&&window.dlp({event:"truAudienceResolved",tru_audience_id:t.tru_audience_id,tu_l2_individual_id:t.tu_l2_individual_id,tu_l3_household_id:t.tu_l3_household_id,tu_id_match:t.tu_id_match,tu_id_index:t.tu_id_index}),window.adobeDataLayer&&window.adobeDataLayer.push({event:"truAudienceResolved",tru_audience_id:t.tru_audience_id,tu_l2_individual_id:t.tu_l2_individual_id,tu_l3_household_id:t.tu_l3_household_id,tu_id_match:t.tu_id_match,tu_id_index:t.tu_id_index}),window.ecom_fpt)&&window.ecom_fpt.pushToQueue&&window.ecom_fpt.pushToQueue({ts:window.ecom_fpt.getTimestamp?window.ecom_fpt.getTimestamp():String(1e3*Date.now()),en:"truAudienceResolved",ep:t,up:t})}catch(e){console.log("stitchTruAudience error: ",e)}}function useTruAudience(n,e){try{var t=window.getSiteDetails&&window.getSiteDetails()||{};if("prod"===t.env&&("US"===t.pos&&"A"!==window?.htz?.tracking?.emember?.memberTier&&TU_API_KEY))if(tuHasAdConsent()){var o=TU_SEGMENT_RANK[n]||0,i=null;try{i=JSON.parse(window.localStorage.getItem("tu_id")||"null")}catch(e){i=null}var a=i&&i.bestIds||{},r=i&&i.bestRank||0,s={e:e&&e.e||a.e||"",p:e&&e.p||a.p||"","1pd":e&&e["1pd"]||a["1pd"]||""},c=Math.max(o,r),d={};s.e&&(d.e=s.e),s.p&&(d.p=s.p),s["1pd"]&&(d["1pd"]=s["1pd"]),window.dataLayer&&window.dataLayer.push({event:"customEvent",customEventCategory:"transunion",customEventAction:"getId called",customEventLabel:n,customEventValue:1}),getTuHashedIp().then(function(e){e&&e.i4?d.i4=e.i4:e&&e.i6&&(d.i6=e.i6),fetch("https://fid.agkn.com/f?apiKey="+TU_API_KEY,{method:"POST",credentials:"include",headers:{"Content-Type":"application/json"},body:JSON.stringify(d)}).then(function(e){return e.ok?e.json():Promise.reject(e)}).then(function(e){e={tuid:e&&e.TruAudienceID||"",l2:e&&e.L2||"",l3:e&&e.L3||"",idMatch:e&&e.id_match||"",idIndex:e&&e.id_index||"",segment:n,bestRank:c,bestIds:s,ts:Date.now()};try{window.localStorage.setItem("tu_id",JSON.stringify(e))}catch(e){}window.dataLayer&&window.dataLayer.push({event:"customEvent",customEventCategory:"transunion",customEventAction:e.l2||e.l3?"getId success - "+(e.l2&&e.l3?"individual & household":e.l2?"individual":e.l3?"household":"none")+(e.idMatch?" - match:"+e.idMatch:""):"getId no id",customEventLabel:n,customEventValue:1}),stitchTruAudience(e)}).catch(function(t){var e=!(!t||"number"!=typeof t.status);function o(e,t,o){window.dataLayer&&window.dataLayer.push({event:"customEvent",customEventCategory:"transunion",customEventAction:"getId failed - "+t,customEventLabel:n,customEventValue:e});try{window.ecom_fpt&&window.ecom_fpt.pushToQueue&&window.ecom_fpt.pushToQueue({ts:window.ecom_fpt.getTimestamp?window.ecom_fpt.getTimestamp():String(1e3*Date.now()),en:"truAudienceFailed",ep:{tu_fail_segment:n,tu_fail_reason:t,tu_fail_status:e,tu_fail_detail:(o||"").slice(0,200)},up:{}})}catch(e){}}if(e)try{t.text().then(function(e){o(t.status,"http "+t.status,e)}).catch(function(){o(t.status,"http "+t.status,"")})}catch(e){o(t.status,"http "+t.status,"")}else o(0,"network error - "+(t&&t.name||"unknown"),t&&t.message||"")})})}else waitForTruAudienceConsent(n,e)}catch(e){console.log("useTruAudience error: ",e)}}function resolveMemberIdentity(e){try{var n,t;window.__htzMemberIdentityResolved||(n=e?.memberships?.loyalty?.member_id||"",e&&n&&window?.ecom_fpt?.hashAllPid&&(window.__htzMemberIdentityResolved=!0,t={email:window?.ecom_fpt?.normalizeEmailForHash?.(e?.contact?.email_primary?.address||"")??(e?.contact?.email_primary?.address||"").trim().toLowerCase(),phone:(e?.contact?.phone_mobile?.phone_number||"").replace(/[^0-9]/g,""),mem_id:n},window.ecom_fpt.hashAllPid(t).then(function(o){window.dlp({event:"memHashedEm",hashed_email:o?.hashEm||"",hashed_phone:o?.hashPh||"",hashed_member_id:o?.hashMem||""}),window.ecom_fpt&&window.ecom_fpt.pushToQueue({ts:window.ecom_fpt.getTimestamp(),en:"memHashedEm",ep:{hashed_email:o?.hashEm||"",hashed_phone:o?.hashPh||"",hashed_member_id:o?.hashMem||""},up:{hashed_email:o?.hashEm||"",hashed_phone:o?.hashPh||"",hashed_member_id:o?.hashMem||""}}),window.ecom_fpt?.postIdentity({brand:"HERTZ",emailHash:o?.hashEm,smsHash:o?.hashPh,loyaltyMemberNumber:n}),resolveTuPhoneHash(e?.contact?.phone_mobile?.phone_number||"").then(function(e){var t={e:o?.hashEm,"1pd":n};e&&(t.p=e),useTruAudience("member",t)})})))}catch(e){console.log("resolveMemberIdentity error: ",e)}}function isGuestIdentityCaptureInScope(){try{var e=window.getSiteDetails?window.getSiteDetails():null;return e&&"prod"===e.env&&"US"===e.pos&&("vulcan"===e.system||"IRAC"===e.system)}catch(e){}}function resolveReturningIdentity(){try{var e;isGuestIdentityCaptureInScope()&&"A"!==window?.htz?.tracking?.emember?.memberTier&&window.getCookies&&window.getCookies("cookie_pref")&&-1!==window.getCookies("cookie_pref").indexOf("3")&&(dlHelper.get("hashed_email")||dlHelper.get("raw.hashed_email")||(e="prod"===window?.getSiteDetails?.()?.env?"https://ecom.mss.hertz.io":"https://ecom.nonprod.mss.hertz.io",fetch(e+"/marketing/preferences/hertz",{method:"GET",credentials:"include"}).then(function(e){return e.ok?e.json():null}).then(function(e){e&&e.knownUser&&e.emailHash&&(window.dlp({event:"memHashedEm",hashed_email:e.emailHash,hashed_phone:e.smsHash||"",hashed_member_id:""}),window.ecom_fpt)&&window.ecom_fpt.pushToQueue({ts:window.ecom_fpt.getTimestamp(),en:"memHashedEm",ep:{hashed_email:e.emailHash,hashed_phone:e.smsHash||"",hashed_member_id:""},up:{hashed_email:e.emailHash,hashed_phone:e.smsHash||"",hashed_member_id:""}})}).catch(function(){})))}catch(e){console.log("resolveReturningIdentity error: ",e)}}window.getEmHash||(TU_API_KEY="2660618768",TU_SEGMENT_RANK={guest:1,crm:2,purchased:3,subscribed:3,member:4}
58,TU_HIPE_URL="https://email.mss.hertz.io/hipe",TU_HIPE_TIMEOUT_MS=800,__tuHipePromise=null,__tuConsentPending=[],window.__tuDrainOnConsent=function(){if(__tuConsentPending.length&&tuHasAdConsent()){var e=__tuConsentPending.slice();__tuConsentPending=[];for(var t=0;t<e.length;t++)useTruAudience(e[t].label,e[t].ids)}},window.__useTruAudience=useTruAudience,window.__resolveMemberIdentity=resolveMemberIdentity,window.__resolveReturningIdentity=resolveReturningIdentity,windowLoaded(function(){resolveReturningIdentity()}),windowLoaded(function(){window.getEmHash=!0;try{var e,t,o,n;"prod"!=window?.getSiteDetails()?.env||dlHelper.get("hashed_email")||dlHelper.get("raw.hashed_email")||"A"==window?.htz?.tracking?.emember?.memberTier||!window?.htz?.tracking?.common?.memberID&&!JSON.parse(window.localStorage?.getItem("member"))?.memberId||"vulcan"!=window.getSiteDetails()?.system&&"IRAC"!=window.getSiteDetails()?.system?"prod"!=window?.getSiteDetails()?.env||dlHelper.get("hashed_email")||dlHelper.get("raw.hashed_email")||!(-1<window.location.search.indexOf("dtm_em=")||-1<window.location.search.indexOf("ueh="))?"prod"!=window?.getSiteDetails()?.env||dlHelper.get("hashed_email")||dlHelper.get("raw.hashed_email")||"vulcan"!=window.getSiteDetails()?.system&&"IRAC"!=window.getSiteDetails()?.system||"US"!=window?.getSiteDetails()?.pos||(window.wunderkind&&window.wunderkind.sdk?useWkndWebSDK("guest"):window.addEventListener("onWunderkindWebSDKLoaded",function(){useWkndWebSDK("guest")},!1),useTruAudience("guest",{})):(e=new URL(location.href).searchParams.get("dtm_em")||new URL(location.href).searchParams.get("ueh"))&&(window.dlp({event:"memHashedEm",hashed_email:e}),window.ecom_fpt&&window.ecom_fpt.pushToQueue({ts:window.ecom_fpt.getTimestamp(),en:"memHashedEm",ep:{hashed_email:e},up:{hashed_email:e}}),window.ecom_fpt?.postIdentity({brand:"HERTZ",emailHash:e}),window.wunderkind&&window.wunderkind.sdk?useWkndWebSDK("crm"):window.addEventListener("onWunderkindWebSDKLoaded",function(){useWkndWebSDK("crm")},!1),useTruAudience("crm",{e:e})):(t=window?.htz?.tracking?.common?.memberID||JSON.parse(window.localStorage?.getItem("member"))?.memberId,o=window?.ecom_fpt?.generateUUID?window?.ecom_fpt?.generateUUID():"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(e){var t=16*Math.random()|0;return("x"===e?t:3&t|8).toString(16)}),(n=localStorage.getItem("accessToken")||JSON.parse(localStorage.getItem(localStorage.getItem("localStorageAccessKey")))?.body?.access_token)?fetch("https://api.hertz.io/brands/HERTZ/loyalty-profiles/"+t,{headers:{"correlation-id":o,authorization:"Bearer "+n},method:"GET"}).then(e=>e.json()).then(e=>{resolveMemberIdentity(e)}).catch(e=>{console.log("Error attempting to fetch member info: ",e)}):"IRAC"==window.getSiteDetails()?.system&&fetch("https://"+window.location.hostname+"/rentacar/rest/hertz/v2/member/modify/meta/data",{headers:{accept:"application/json, text/javascript, */*; q=0.01","content-type":"application/json; charset=UTF-8"},referrer:"https://"+window.location.hostname+"/rentacar/emember/modify/profile.do?",body:"{}",method:"POST",credentials:"include"}).then(e=>e.json()).then(e=>{e=e&&e.data&&e.data.uuid?e.data.uuid:"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(e){var t=16*Math.random()|0;return("x"===e?t:3&t|8).toString(16)});fetch("https://"+window.location.hostname+"/rentacar/rest/hertz/v2/member/modify/form/data",{headers:{accept:"application/json, text/javascript, */*; q=0.01","content-type":"application/json; charset=UTF-8"},referrer:"https://"+window.location.hostname+"/rentacar/emember/modify/profile.do?",body:'{"processUUID":"'+e+'"}',method:"POST",credentials:"include"}).then(e=>e.json()).then(e=>{if(e&&window?.ecom_fpt?.hashAllPid){let n={email:window?.ecom_fpt?.normalizeEmailForHash?.(e?.data?.email||"")??(e?.data?.email||"").trim().toLowerCase(),phone:(e?.data?.mobilePhonePrefix+e?.data?.mobilePhoneNumber).replace(/[^0-9]/g,"")||"",mem_id:e?.data?.memberNumber||""};window.ecom_fpt.hashAllPid(n).then(o=>{window.dlp({event:"memHashedEm",hashed_email:o?.hashEm||"",hashed_phone:o?.hashPh||"",hashed_member_id:o?.hashMem||""}),window.ecom_fpt&&window.ecom_fpt.pushToQueue({ts:window.ecom_fpt.getTimestamp(),en:"memHashedEm",ep:{hashed_email:o?.hashEm||"",hashed_phone:o?.hashPh||"",hashed_member_id:o?.hashMem||""},up:{hashed_email:o?.hashEm||"",hashed_phone:o?.hashPh||"",hashed_member_id:o?.hashMem||""}}),window.ecom_fpt?.postIdentity({brand:"HERTZ",emailHash:o?.hashEm,smsHash:o?.hashPh,loyaltyMemberNumber:n.mem_id||void 0}),resolveTuPhoneHash((e?.data?.mobilePhonePrefix||"")+(e?.data?.mobilePhoneNumber||"")).then(function(e){var t={e:o?.hashEm,"1pd":n.mem_id};e&&(t.p=e),useTruAudience("member",t)})})}}).catch(e=>{console.log("Error attempting to fetch member info: ",e)})}).catch(e=>{console.log("Error attempting to fetch member info: ",e)}),window.wunderkind&&window.wunderkind.sdk?useWkndWebSDK("member"):window.addEventListener("onWunderkindWebSDKLoaded",function(){useWkndWebSDK("member")},!1))}catch(e){console.log("Error attempting to hash member email: ",e)}}))}function mfeLoadedEvent(e,t){if(!window.mfeLoadedEvent){window.mfeLoadedEvent=!0;var o,t=t?" "+t:"",n=document?.body?.getBoundingClientRect()?.height||document?.body?.offsetHeight||!1,i=Math.round((window.ecom_fpt.getTimestamp()-window.modelJsonInitMs)/1e3)||Math.round(window?.performance?.getEntriesByType("navigation")?.[0]?.duration)||0,a=[];for(o in window)-1<o.indexOf("mfe_")&&o.indexOf("Chunk")<0&&a.push(o);window.dlp({event:"customEvent",customEventCategory:"MFEs Loaded "+e+t,customEventAction:a.toString(),customEventLabel:n?"true":"false",customEventValue:i}),window.ecom_fpt&&window.ecom_fpt.pushToQueue({ts:window.ecom_fpt.getTimestamp(),en:"customEvent",ep:{event_category:"MFEs Loaded "+e+t,event_action:a.toString(),event_label:n?"true":"false",event_value:i},up:{}})}}windowLoaded(function(){var e=window.location.hostname&&(0<window.location.hostname.indexOf(".hertzcarsales.")||0<window.location.hostname.indexOf("hertzrent2buy."));if(!window.google_tag_manager&&!e)try{var a=-1<window.location.hostname.indexOf("www.")?"ecom.mss.hertz.io":"ecom.nonprod.mss.hertz.io",t=document.querySelectorAll('head > script[src*="googletagmanager.com/gtm.js"]'),r=[];t.forEach(function(e){var t,o,n,i=e.src.match(/[?&]id=(GTM-[A-Z0-9]+)/i);i&&(t=(i=i[1]).replace(/^GTM-/i,""),-1<r.indexOf(i)||(r.push(i),o=(o=e.src.match(/[?&]l=([^&]+)/))?"&l="+o[1]:"",(n=document.createElement("script")).async=!0,n.src="https://"+a+"/"+t+"/?id="+i+o,e.parentNode.insertBefore(n,e),e.remove()))}),r.length&&window.dlp({event:"containerBlocked",containers:r})}catch(e){console.log("err: ",e)}window.sessionStorage&&window.sessionStorage.getItem("cp_code")?document.cookie="cp_code="+window.sessionStorage.getItem("cp_code")+"; path=/;":window.htz&&htz.tracking&&htz.tracking.common&&htz.tracking.common.consumerProductFromHertzLink&&(document.cookie="cp_code="+htz.tracking.common.consumerProductFromHertzLink+"; path=/;")}),!window.initializePV&&window.location.href.indexOf("/book/")<0&&window.location.href.indexOf("/manage/")<0&&window.location.href.indexOf("/upgrade/")<0&&window.location.href.indexOf("/checkin/vas/")<0&&windowLoaded(function(){ecomLayerDispatcher("virtualPageview",{urlData:"initialize",formData:JSON.parse(window.sessionStorage.getItem("res-home-data"))?.formData||"",itinDetail
58s:JSON.parse(window.sessionStorage.getItem("res-itinerary-info-data"))||""}),window.initializePV=!0}),window.loadedMfes||"vulcan"!=window.getSiteDetails()?.system||(window.loadedMfes=!0,windowLoaded(function(){setTimeout(function(){if(document.getElementById("spa-root")&&!document.querySelector("#spa-root > .App .aem-container"))try{var e=new MutationObserver(function(){document.querySelector("#spa-root > .App .aem-container")&&(window.VulcanMounted=!0,mfeLoadedEvent("VulcanMounted"),e.disconnect())});e.observe(document.getElementById("spa-root"),{childList:!0})}catch(e){console.log("Wait for App to mount error: ",e)}else document.getElementById("spa-root")&&document.querySelector("#spa-root > .App .aem-container")&&(window.VulcanMounted=!0,mfeLoadedEvent("VulcanMounted"));setTimeout(function(){window.VulcanMounted||mfeLoadedEvent("VulcanFailedToMount","timeout20")},2e4);function t(){window.VulcanMounted||window.mfeLoadedEvent?document.body.removeEventListener("mouseleave",t):mfeLoadedEvent("VulcanFailedToMount","exitIntent")}document.body.addEventListener("mouseleave",t)},0)}));let bodyClickDlPush=t=>{try{let e={id:t?.target?.id,className:t?.target?.className,href:t?.target?.href,textContent:t?.target?.textContent,nodeName:t?.target?.nodeName};if(0<t?.composedPath()?.filter(e=>!!e.shadowRoot)?.length)for(var o of t.composedPath())if("string"==typeof o?.className&&(-1<o?.className?.toLowerCase()?.indexOf("gbp_")||-1<o?.className?.toLowerCase()?.indexOf("sf_")||-1<o?.className?.toLowerCase()?.indexOf("ecom_"))){e={id:o?.id,className:o?.className,href:o?.href,textContent:o?.textContent,nodeName:o?.nodeName};break}var n,i;"string"==typeof e?.className&&(-1<e?.className?.toLowerCase()?.indexOf("gbp_")||-1<e?.className?.toLowerCase()?.indexOf("sf_")||-1<e?.className?.toLowerCase()?.indexOf("ecom_"))&&(n={event:"element_clicked",element_id:e?.id||"",element_classname:e?.className?.trim()||"",element_href:e?.href||"",element_text:e?.textContent?.trim()?.replaceAll(/[\r\n\t]/g,"")||""},i={ts:window.ecom_fpt.getTimestamp(),en:"element_clicked",ep:{element_id:e?.id||"",element_classname:e?.className?.trim()||"",element_href:e?.href||"",element_text:e?.textContent?.trim()?.replaceAll(/[\r\n\t]/g,"")||"",page_location:window.location.href||""},up:{}},e?.href&&0!=e.href.indexOf("tel:")?(localStorage.setItem("ga_element_clicked",JSON.stringify(n)),localStorage.setItem("fpt_element_clicked",JSON.stringify(i))):(window.dlp(n),window.ecom_fpt&&window.ecom_fpt.pushToQueue(i)))}catch(e){console.log("bodyClickDlPush error: ",e)}};if(document&&document.body)document.body.className.indexOf("lsn")<0&&(document.body.addEventListener("click",bodyClickDlPush),document.body.classList.add("lsn"));else{let bodyObserver=new MutationObserver(function(){document.body&&(document.body.className.indexOf("lsn")<0&&(document.body.addEventListener("click",bodyClickDlPush),document.body.classList.add("lsn")),bodyObserver.disconnect())});bodyObserver.observe(document.documentElement,{childList:!0})}if(window.logClicksOnLoad||(window.logClicksOnLoad=!0,localStorage.getItem("ga_element_clicked")&&windowLoaded(function(){window.dlp(JSON.parse(localStorage.getItem("ga_element_clicked"))),localStorage.removeItem("ga_element_clicked")}),localStorage.getItem("fpt_element_clicked")&&windowLoaded(function(){window.ecom_fpt&&window.ecom_fpt.pushToQueue(JSON.parse(localStorage.getItem("fpt_element_clicked"))),localStorage.removeItem("fpt_element_clicked")})),!window.gaCollectCallAttempted){window.gaCollectCallAttempted=!0,window.gaCollectCallBlocked=!1;try{fetch("https://analytics.google.com/g/collect?v=2",{body:"",method:"POST"}).then(e=>{e.ok&&204==e.status||(window.gaCollectCallBlocked=!0)}).catch(e=>{window.gaCollectCallBlocked=!0})}catch(error){window.gaCollectCallBlocked=!0}}}window.overlayLoaded=!0}();
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.