1var OneTrustCookieConsentHelper = (function () { 2 3 4 let ocCookieName = "OptanonConsent"; 5 let oabcCookieName = "OptanonAlertBoxClosed"; 6 let nvwaFRCookieName = "nvwaForceReconsent"; 7 let ocCookie = getCookie(ocCookieName); 8 let oabcCookie = getCookie(oabcCookieName); 9 let nvwaFRCookie = getCookie(nvwaFRCookieName); 10 let nvwaFRCookieChecked = nvwaFRCookie != null; 11 let canClearOptanonCookie = (oabcCookie != null && ocCookie != null && nvwaFRCookie == null); 12 13 14 function getCookie(name) { 15 let cookie = {}; 16 document.cookie.split(';').forEach(function (el) { 17 let split = el.split('='); 18 cookie[split[0].trim()] = split.slice(1).join("="); 19 }) 20 return cookie[name]; 21 } 22 23 function setCookie(c_name, value, exdays) { 24 var exdate = new Date(); 25 exdate.setDate(exdate.getDate() + exdays); 26 var c_value = escape(value) + ((exdays == null) ? "" : "; expires=" + exdate.toUTCString()); 27 document.cookie = c_name + "=" + c_value; 28 } 29 30 return { 31 32 functionalConsentGiven: function (onetrustActiveGroups) { 33 return onetrustActiveGroups != null ? onetrustActiveGroups.includes("3") : false; 34 }, 35 36 checkConsent: function (stateCode) { 37 38 39 ocCookie = getCookie(ocCookieName); 40 oabcCookie = getCookie(oabcCookieName); 41 nvwaFRCookie = getCookie(nvwaFRCookieName); 42 43 var inStateToCheck = (stateCode == "WA" || stateCode == "NV"); 44 45 // cookie reset 46 if (nvwaFRCookieChecked == false) { 47 48 if (inStateToCheck) { 49 setCookie(nvwaFRCookieName, stateCode, 365); 50 nvwaFRCookieChecked = true; 51 if (canClearOptanonCookie == true) { 52 53 OneTrust.RejectAll(); 54 setCookie(ocCookie, "", 0); 55 setCookie(oabcCookieName, "", 0); 56 location.reload(); 57 } 58 59 } 60 61 62 63 } 64 } 65 , 66 getParameterByName: function (name) { 67 var match = RegExp('[?&]' + name + '=([^&]*)').exec(window.location.search); 68 return match && decodeURIComponent(match[1].replace(/\+/g, ' ')); 69 } 70 }; 71})();
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.