{"version":3,"sources":["monitoring.js"],"names":["callFloodlight","tagId","ModelName","ModelYear","_satellite","console","setVar","track","$","document","ready","attr","window","addEventListener","e"],"mappings":"YAIA,SAASA,gBAAeC,EAAOC,EAAWC,IA8K1C,IAAAC,WAAA,CACAC,QAAKD,IAAAA,mKACHC,IAAAA,aACAC,OAAIF,aACFE,MAAAA,aACAC,WAAO,cAKXC,EAAEC,UAAUC,MAAM,WAIhBF,EAAE,qCAAqCG,KAAK,eAAgB,eAC5DH,EAAE,qCAAqCG,KAAK,eAAgB,oBAuH5DC,OAAAC,iBAAA,eAAA,SAAAC","file":"monitoring.min.js","sourcesContent":["/*\r\n * Flood Light START\r\n * Sample: onclick=\"callFloodlight('view-warranty-booklet');\"\r\n */\r\nfunction callFloodlight(tagId, ModelName, ModelYear) {\r\n\r\n // var axel = Math.random() + \"\";\r\n // var a = axel * 10000000000000;\r\n // console.log('callFloodlight: ', tagId);\r\n // switch (tagId) {\r\n\r\n // // home page home-page\r\n // case \"home-page\":\r\n // gtag('event', 'conversion', {\r\n // 'allow_custom_scripts': true,\r\n // 'send_to': 'DC-4114412/armacpv/endma0+unique'\r\n // });\r\n\r\n // break;\r\n\r\n\r\n // // NO-ZIP page Place on Inventory landing page\r\n // case \"inventory-search-landing\":\r\n // // document.getElementById('FloodLightTags').innerHTML = '';\r\n // gtag('event', 'conversion', {\r\n // 'allow_custom_scripts': true,\r\n // 'send_to': 'DC-4114412/armacpv/endma00+standard'\r\n // });\r\n\r\n // break;\r\n\r\n // // Inventory Search Listings - Fire when user searches inventory. Pass back u1=ModelName when possible.. \r\n // case \"inventory-search-listings\":\r\n // // document.getElementById('FloodLightTags').innerHTML = '';\r\n // // gtag('event', 'conversion', {\r\n // // 'allow_custom_scripts': true,\r\n // // 'u1': ModelName,\r\n // // 'send_to': 'DC-4114412/armacpv/endma000+standard'\r\n // // });\r\n\r\n // gtag('event', 'conversion', {\r\n // 'allow_custom_scripts': true,\r\n // 'session_id': floodLightSessionManager(),\r\n // 'u1': ModelName,\r\n // 'send_to': 'DC-4114412/armacpv/endma000+per_session'\r\n // });\r\n\r\n // break;\r\n\r\n // // Fire when user clicks on Details. Pass back u1=ModelName.\r\n // case \"inventory-search-detail\":\r\n // //document.getElementById('FloodLightTags').innerHTML = '';\r\n // gtag('event', 'conversion', {\r\n // 'allow_custom_scripts': true,\r\n // 'u1': ModelName,\r\n // 'send_to': 'DC-4114412/armacpv/endma001+standard'\r\n // });\r\n // break;\r\n\r\n // //FROM MODEL_LIBRARY ONCLICK FIRE THIS - Place on each model and pass back u1=ModelName and u2=ModelYear. \r\n // case \"model-details\":\r\n // // document.getElementById('FloodLightTags').innerHTML = '';\r\n // gtag('event', 'conversion', {\r\n // 'allow_custom_scripts': true,\r\n // 'u1': ModelName,\r\n // 'u2': ModelYear,\r\n // 'send_to': 'DC-4114412/armacpv/endma004+standard'\r\n // });\r\n\r\n // break;\r\n\r\n // // View Benefits Button\r\n // case \"program-view-benefits\":\r\n // // document.getElementById('FloodLightTags').innerHTML = '';\r\n // gtag('event', 'conversion', {\r\n // 'allow_custom_scripts': true,\r\n // 'send_to': 'DC-4114412/armacpv/endma008+standard'\r\n // });\r\n // break;\r\n\r\n // // Program Download Brochures - Place on the 3 Download Brochures buttons.\r\n // case \"program-download-brochures\":\r\n // // document.getElementById('FloodLightTags').innerHTML = '';\r\n // gtag('event', 'conversion', {\r\n // 'allow_custom_scripts': true,\r\n // 'send_to': 'DC-4114412/armacpv/endma00-+standard'\r\n // });\r\n\r\n // break;\r\n\r\n // // Fire when user either enters zip or use location.\r\n // case \"dealer-locator-results\":\r\n // // document.getElementById('FloodLightTags').innerHTML = '';\r\n // gtag('event', 'conversion', {\r\n // 'allow_custom_scripts': true,\r\n // 'session_id': floodLightSessionManager(),\r\n // 'send_to': 'DC-4114412/armacpv/endma00a+per_session'\r\n // });\r\n\r\n // break;\r\n\r\n // // Estimate Payments Results - Fire once per session on calculate monthly payment.\r\n // case \"estimate-payments-results\":\r\n // // document.getElementById('FloodLightTags').innerHTML = '';\r\n // gtag('event', 'conversion', {\r\n // 'allow_custom_scripts': true,\r\n // 'session_id': floodLightSessionManager(),\r\n // 'send_to': 'DC-4114412/armacpv/endma005+per_session'\r\n // });\r\n // break;\r\n\r\n // // Dealer Chat - Fire when user clicks Live Chat or Text under Dealer Information.\r\n // case \"dealer-chat\":\r\n // // document.getElementById('FloodLightTags').innerHTML = '';\r\n // gtag('event', 'conversion', {\r\n // 'allow_custom_scripts': true,\r\n // 'send_to': 'DC-4114412/armacpv/endma002+standard'\r\n // });\r\n // break;\r\n\r\n // // Contact Dealer - Fire after user submits their information to contact dealer.\r\n // case \"contact-dealer\":\r\n // //document.getElementById('FloodLightTags').innerHTML = '';\r\n // gtag('event', 'conversion', {\r\n // 'allow_custom_scripts': true,\r\n // 'send_to': 'DC-4114412/armacpv/endma003+standard'\r\n // });\r\n // break;\r\n\r\n // // From Dealer Locator, floodlight should fire when user searches dealer inventory\r\n // case \"dealer-see-certified\":\r\n // // document.getElementById('FloodLightTags').innerHTML = '';\r\n // gtag('event', 'conversion', {\r\n // 'allow_custom_scripts': true,\r\n // 'send_to': 'DC-4114412/armacpv/endma009+standard'\r\n // });\r\n\r\n // break;\r\n\r\n\r\n // // when on dealer inventory and clicks Details\r\n // case \"dealer-inventory-details\":\r\n // // document.getElementById('FloodLightTags').innerHTML = '';\r\n // gtag('event', 'conversion', {\r\n // 'allow_custom_scripts': true,\r\n // 'send_to': 'DC-4114412/armacpv/endma00b+standard'\r\n // });\r\n\r\n // break;\r\n\r\n\r\n //--------------\r\n\r\n //Inventory Search Results:\"Fire once user has searched and been provided listings for a model \r\n //ModelName is required\r\n //ModelYear is required\r\n // case \"inventory-search-results\":\r\n // document.getElementById('FloodLightTags').innerHTML = '';\r\n // break;\r\n\r\n\r\n //Inventory Search Details:Fire once a user clicks on \"see details\", would like to fire on the page load but if unavailable would settle for click on \"see details button\"\r\n //ModelName is required\r\n //ModelYear is required\r\n // case \"inventory-search-details\":\r\n // document.getElementById('FloodLightTags').innerHTML = '';\r\n // break;\r\n\r\n // }\r\n\r\n\r\n}\r\n/*\r\n * FloodLight END\r\n * \r\n */\r\n\r\n// Firefox 'Tracking Protection' prevents the satelliteLib from loading.\r\n// Extend this object with any function you would normally call on _satellite.\r\nif (!_satellite) {\r\n console.log(\"AdobeDTM satelliteLib tracker failed to load. You are probably running FireFox with 'Tracking Protection' enabled. Subsequent '_satellite' calls will be no-ops.\");\r\n var _satellite = {\r\n setVar: () => { },\r\n track: () => { },\r\n pageBottom: () => { },\r\n }\r\n}\r\n\r\n$(document).ready(function () {\r\n\r\n\r\n /**Adobe lanuch add att. for CCPA */\r\n $(\".footer-row3 ul li:nth-child(4) a\").attr('data-link-id', 'do_not_sell');\r\n $(\".footer-row3 ul li:nth-child(3) a\").attr('data-link-id', 'privacy_policy');\r\n\r\n \r\n\r\n /*\r\n * DTM: digitalDataLayer Tracking start\r\n */\r\n\r\n //_satellite.setVar();\r\n // $(document.body).on('click', '[data-setvar]', function (e) {\r\n // var $this = $(this);\r\n // var setVarValue = $this.data(\"setvar\");\r\n // var setVarName = $this.data(\"setvarname\");\r\n\r\n\r\n // _satellite.setVar(setVarName, setVarValue);\r\n // console.log('_satellite.setVar FIRED: ', setVarName + ' ' + setVarValue);\r\n\r\n // });\r\n\r\n //_satellite.track\r\n // $(document.body).on('click', '[data-tracking]', function (e) {\r\n // var $this = $(this);\r\n // var trackingValue = $this.data(\"tracking\");\r\n\r\n // //track needs to fire after setVar, adding a delay\r\n // // setTimeout(function() {\r\n // _satellite.track(trackingValue);\r\n // console.log('_satellite.track FIRED: ', trackingValue);\r\n\r\n // // }, 500);\r\n\r\n // });\r\n\r\n\r\n\r\n /*\r\n * DTM: digitalDataLayer Tracking END\r\n */\r\n\r\n // Function to check query string for a value\r\n // function getQueryStringValue(variable) {\r\n // var query = window.location.search.substring(1).toLowerCase();\r\n // var vars = query.split(\"&\");\r\n // for (var i = 0; i < vars.length; i++) {\r\n // var pair = vars[i].split(\"=\");\r\n // if (pair[0] == variable) {\r\n // return pair[1];\r\n // }\r\n // }\r\n // return (false);\r\n // }\r\n\r\n /*\r\n * Tracking - CampaignName start\r\n */\r\n // Function to check query string for a value - NOT LOWERCASE\r\n // function getQueryStringValueAny(variable) {\r\n // var query = window.location.search.substring(1);\r\n // var vars = query.split(\"&\");\r\n // for (var i = 0; i < vars.length; i++) {\r\n // var pair = vars[i].split(\"=\");\r\n // if (pair[0].toLowerCase() === variable.toLowerCase()) {\r\n // return pair[1];\r\n // }\r\n // }\r\n // return (false);\r\n // }\r\n // get the value for CID\r\n //lowercase value only\r\n // var _CampaignName = getQueryStringValueAny('cid');\r\n\r\n // if (_CampaignName) {\r\n\r\n // var inFiveMinutes = new Date(new Date().getTime() + 5 * 60 * 1000);\r\n // //set the cookie with the CID value\r\n // Cookies.set('_CampaignName', _CampaignName);\r\n\r\n // }\r\n\r\n /*\r\n * Tracking - CampaignName end\r\n */\r\n});\r\n// Ready end\r\n\r\n\r\n/*\r\n * floodlight session manager start\r\n */\r\n\r\n// function floodLightSessionManager() {\r\n\r\n// var floodlightSessionValue = Cookies.get('floodlightSessionValue');\r\n// var randomValue = randomValueGenerator(16, '0123456789abcdefghijklmnopqrstuvwxyz');\r\n// if (floodlightSessionValue) {\r\n// return floodlightSessionValue;\r\n// } else {\r\n// Cookies.set('floodlightSessionValue', randomValue, {\r\n// //expire in 30 minutes\r\n// expires: 1 / 48\r\n// });\r\n// return randomValue;\r\n\r\n// }\r\n// };\r\n\r\n// random Value Generator\r\n// function randomValueGenerator(length, chars) {\r\n// var result = '';\r\n// for (var i = length; i > 0; --i) result += chars[Math.round(Math.random() * (chars.length - 1))];\r\n// return result;\r\n// }\r\n\r\n\r\n//When user clicks away from the page, remove the cookie \"floodlightSessionValue\"\r\nwindow.addEventListener('beforeunload', function (e) {\r\n // Cancel the event as stated by the standard.\r\n // e.preventDefault();\r\n // Remove the cookie\r\n // Cookies.remove('floodlightSessionValue');\r\n});\r\n/*\r\n * floodlight session manager end\r\n */\r\n\r\n "]}