Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@lu-development/ux-gdpr-consent

Package Overview
Dependencies
Maintainers
8
Versions
63
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@lu-development/ux-gdpr-consent - npm Package Compare versions

Comparing version 2.0.29 to 2.0.30

14

dist/ux-gdpr-consent/ux-gdpr-consent.esm.js

@@ -8,11 +8,11 @@ var $jscomp=$jscomp||{};$jscomp.scope={};$jscomp.createTemplateTagFirstArg=function(a){return a.raw=a};$jscomp.createTemplateTagFirstArgWithRaw=function(a,b){a.raw=b;return a};$jscomp.arrayIteratorImpl=function(a){var b=0;return function(){return b<a.length?{done:!1,value:a[b++]}:{done:!0}}};$jscomp.arrayIterator=function(a){return{next:$jscomp.arrayIteratorImpl(a)}};$jscomp.makeIterator=function(a){var b="undefined"!=typeof Symbol&&Symbol.iterator&&a[Symbol.iterator];return b?b.call(a):$jscomp.arrayIterator(a)};

$jscomp.propertyToPolyfillSymbol[e],$jscomp.defineProperty(d,e,{configurable:!0,writable:!0,value:b})))};$jscomp.polyfill("Object.is",function(a){return a?a:function(b,c){return b===c?0!==b||1/b===1/c:b!==b&&c!==c}},"es6","es3");$jscomp.polyfill("Array.prototype.includes",function(a){return a?a:function(b,c){var d=this;d instanceof String&&(d=String(d));var e=d.length;c=c||0;for(0>c&&(c=Math.max(c+e,0));c<e;c++){var f=d[c];if(f===b||Object.is(f,b))return!0}return!1}},"es7","es3");
$jscomp.checkStringArgs=function(a,b,c){if(null==a)throw new TypeError("The 'this' value for String.prototype."+c+" must not be null or undefined");if(b instanceof RegExp)throw new TypeError("First argument to String.prototype."+c+" must not be a regular expression");return a+""};$jscomp.polyfill("String.prototype.includes",function(a){return a?a:function(b,c){return-1!==$jscomp.checkStringArgs(this,b,"includes").indexOf(b,c||0)}},"es6","es3");var GDPR=function(){};
GDPR.check=function(){var a=this,b=new Event("gdprLoaded");if(this.getCookie("gdpr-consent"))return!1;if(1==Intl.DateTimeFormat().resolvedOptions().timeZone.includes("New_York")||1==Intl.DateTimeFormat().resolvedOptions().timeZone.includes("Indianapolis")||1==Intl.DateTimeFormat().resolvedOptions().timeZone.includes("Chicago")||1==Intl.DateTimeFormat().resolvedOptions().timeZone.includes("Denver")||1==Intl.DateTimeFormat().resolvedOptions().timeZone.includes("Phoenix")||1==Intl.DateTimeFormat().resolvedOptions().timeZone.includes("Los_Angeles")||
1==Intl.DateTimeFormat().resolvedOptions().timeZone.includes("Anchorage")||1==Intl.DateTimeFormat().resolvedOptions().timeZone.includes("Honolulu"))this.setCookie("gdpr-consent","true",1),this.setCookie("gdpr-grant-type","implicit",1),this.setCookie("us_user","true",1),window.dataLayer&&window.dataLayer.push({event:"gdpr-consent-grant"}),document.dispatchEvent(b);else{if(this.getCookie("gdpr-consent-waiting"))return this.popupDisplay();fetch("https://api.ipstack.com/check?access_key=f66ace327d220485678516d16bb6a230&fields=location.is_eu,country_code").then(function(c){if(!c.ok)throw console.log(c),
Error("Something went wrong with the API call");return c.json()}).then(function(c){c=JSON.parse(JSON.stringify(c));if(!c.location)throw Error("Return unexpected.");c.location.is_eu||c.location.is_eu?(a.setCookie("gdpr-consent-waiting","true",1),a.popupDisplay(b)):("US"==c.country_code&&a.setCookie("us_user","true",1),a.setCookie("gdpr-consent","true",1),a.setCookie("gdpr-grant-type","implicit",1),window.dataLayer&&window.dataLayer.push({event:"gdpr-consent-grant"}),document.dispatchEvent(b))})}};
GDPR.grant=function(a){this.setCookie("gdpr-consent","true",7);this.setCookie("gdpr-grant-type","explicit",7);this.setCookie("us_user","false",7);window.dataLayer&&window.dataLayer.push({event:"gdpr-consent-grant"});this.popupHide();document.dispatchEvent(a)};GDPR.deny=function(a){this.setCookie("gdpr-consent","false",7);window.dataLayer&&window.dataLayer.push({event:"gdpr-consent-deny"});this.popupHide();document.dispatchEvent(a)};
GDPR.popupDisplay=function(a){var b=document.querySelector("ux-gdpr-consent");b||(b=document.createElement("ux-gdpr-consent"));(function(d,e){for(var f in e)d.setAttribute(f,e[f])})(b,{id:"consentDialog",role:"dialog","aria-modal":"false","aria-labelledby":"ux-gdpr__label","aria-describedby":"ux-gdpr__description","class":"hydrated"});document.body.appendChild(b);b=document.getElementById("consentDialog").attachShadow({mode:"open"});b.innerHTML=this.style();b.innerHTML+='\n<div class="ux-gdpr__text-container">\n <h2 class="ux-gdpr__header" id="ux-gdpr__label">Do you agree to Liberty University\u2019s use of cookies?</h2>\n <p class="ux-gdpr__description" id="ux-gdpr__description">We use cookies to deliver online services, customize your experience, and assist with communication. For more information see the <a href="https://wiki.os.liberty.edu/display/IE/Website+Privacy+Policy" target="_blank" class="ux-gdpr__link" tabindex="0">Privacy Policy</a> and <a href="https://wiki.os.liberty.edu/display/IE/GDPR+Privacy+Notice" target="_blank" class="ux-gdpr__link" tabindex="0">GDPR Privacy Notice</a>.</p>\n</div>\n<div class="ux-gdpr__action-container">\n <button class="ux-gdpr__button_grant" aria-describedby="ux-gdpr__description" tabindex="1">I Agree</button>\n <button class="ux-gdpr__button_revoke" aria-describedby="ux-gdpr__description" tabindex="1">I Do Not Agree</button>\n</div>';
var c=this;this.clickBinding(".ux-gdpr__button_grant",function(){c.grant(a)});this.clickBinding(".ux-gdpr__button_revoke",function(){c.deny(a)})};GDPR.clickBinding=function(a,b){document.addEventListener("click",function(c){(c.path||c.composedPath&&c.composedPath())[0].matches(a)&&b()},!1)};GDPR.popupHide=function(){this.deleteCookie("gdpr-consent-waiting");document.querySelector("ux-gdpr-consent").setAttribute("hidden","hidden")};
$jscomp.checkStringArgs=function(a,b,c){if(null==a)throw new TypeError("The 'this' value for String.prototype."+c+" must not be null or undefined");if(b instanceof RegExp)throw new TypeError("First argument to String.prototype."+c+" must not be a regular expression");return a+""};$jscomp.polyfill("String.prototype.includes",function(a){return a?a:function(b,c){return-1!==$jscomp.checkStringArgs(this,b,"includes").indexOf(b,c||0)}},"es6","es3");var gdprEvent=new Event("gdprLoaded"),GDPR=function(){};
GDPR.check=function(){var a=this;if(this.getCookie("gdpr-consent"))return!1;if(1==Intl.DateTimeFormat().resolvedOptions().timeZone.includes("New_York")||1==Intl.DateTimeFormat().resolvedOptions().timeZone.includes("Indianapolis")||1==Intl.DateTimeFormat().resolvedOptions().timeZone.includes("Chicago")||1==Intl.DateTimeFormat().resolvedOptions().timeZone.includes("Denver")||1==Intl.DateTimeFormat().resolvedOptions().timeZone.includes("Phoenix")||1==Intl.DateTimeFormat().resolvedOptions().timeZone.includes("Los_Angeles")||
1==Intl.DateTimeFormat().resolvedOptions().timeZone.includes("Anchorage")||1==Intl.DateTimeFormat().resolvedOptions().timeZone.includes("Honolulu"))this.setCookie("gdpr-consent","true",1),this.setCookie("gdpr-grant-type","implicit",1),this.setCookie("us_user","true",1),window.dataLayer&&window.dataLayer.push({event:"gdpr-consent-grant"}),document.dispatchEvent(gdprEvent);else{if(this.getCookie("gdpr-consent-waiting"))return this.popupDisplay();fetch("https://api.ipstack.com/check?access_key=f66ace327d220485678516d16bb6a230&fields=location.is_eu,country_code").then(function(b){if(!b.ok)throw console.log(b),
Error("Something went wrong with the API call");return b.json()}).then(function(b){b=JSON.parse(JSON.stringify(b));if(!b.location)throw Error("Return unexpected.");b.location.is_eu||b.location.is_eu?(a.setCookie("gdpr-consent-waiting","true",1),a.popupDisplay()):("US"==b.country_code&&a.setCookie("us_user","true",1),a.setCookie("gdpr-consent","true",1),a.setCookie("gdpr-grant-type","implicit",1),window.dataLayer&&window.dataLayer.push({event:"gdpr-consent-grant"}),document.dispatchEvent(gdprEvent))})}};
GDPR.grant=function(){this.setCookie("gdpr-consent","true",7);this.setCookie("gdpr-grant-type","explicit",7);this.setCookie("us_user","false",7);window.dataLayer&&window.dataLayer.push({event:"gdpr-consent-grant"});this.popupHide();document.dispatchEvent(gdprEvent)};GDPR.deny=function(){this.setCookie("gdpr-consent","false",7);window.dataLayer&&window.dataLayer.push({event:"gdpr-consent-deny"});this.popupHide();document.dispatchEvent(gdprEvent)};
GDPR.popupDisplay=function(){var a=document.querySelector("ux-gdpr-consent");a||(a=document.createElement("ux-gdpr-consent"));(function(c,d){for(var e in d)c.setAttribute(e,d[e])})(a,{id:"consentDialog",role:"dialog","aria-modal":"false","aria-labelledby":"ux-gdpr__label","aria-describedby":"ux-gdpr__description","class":"hydrated"});document.body.appendChild(a);a=document.getElementById("consentDialog").attachShadow({mode:"open"});a.innerHTML=this.style();a.innerHTML+='\n<div class="ux-gdpr__text-container">\n <h2 class="ux-gdpr__header" id="ux-gdpr__label">Do you agree to Liberty University\u2019s use of cookies?</h2>\n <p class="ux-gdpr__description" id="ux-gdpr__description">We use cookies to deliver online services, customize your experience, and assist with communication. For more information see the <a href="https://wiki.os.liberty.edu/display/IE/Website+Privacy+Policy" target="_blank" class="ux-gdpr__link" tabindex="0">Privacy Policy</a> and <a href="https://wiki.os.liberty.edu/display/IE/GDPR+Privacy+Notice" target="_blank" class="ux-gdpr__link" tabindex="0">GDPR Privacy Notice</a>.</p>\n</div>\n<div class="ux-gdpr__action-container">\n <button class="ux-gdpr__button_grant" aria-describedby="ux-gdpr__description" tabindex="1">I Agree</button>\n <button class="ux-gdpr__button_revoke" aria-describedby="ux-gdpr__description" tabindex="1">I Do Not Agree</button>\n</div>';
var b=this;this.clickBinding(".ux-gdpr__button_grant",function(){b.grant()});this.clickBinding(".ux-gdpr__button_revoke",function(){b.deny()})};GDPR.clickBinding=function(a,b){document.addEventListener("click",function(c){(c.path||c.composedPath&&c.composedPath())[0].matches(a)&&b()},!1)};GDPR.popupHide=function(){this.deleteCookie("gdpr-consent-waiting");document.querySelector("ux-gdpr-consent").setAttribute("hidden","hidden")};
GDPR.calculateDomain=function(){var a=$jscomp.makeIterator(window.location.hostname.split(".").slice(-2)),b=a.next().value;a=a.next().value;return b&&a?b+"."+a:b};GDPR.getCookie=function(a){a=("; "+document.cookie).split("; "+a+"=");return 2==a.length?a.pop().split(";").shift():null};
GDPR.setCookie=function(a,b,c){c="undefined"!==typeof c?c:30;var d=new Date,e=this.getCookie(a);if(null===e||e!==b)d.setTime(d.getTime()+864E5*c),c="expires="+d.toUTCString(),d=(window.location.href.indexOf("local."),""),document.cookie=a+"="+(b||"")+"; "+c+"; domain="+this.calculateDomain()+"; path=/; "+d};GDPR.deleteCookie=function(a){if(this.getCookie(a)){var b=this.calculateDomain();document.cookie=a+"=; path=/"+(b?"; domain="+b:"")+"; expires=Thu, 01 Jan 1970 00:00:01 GMT"}};GDPR.style=function(){return"<style>\n:host {\n display: flex;\n position: fixed;\n bottom: 0px;\n left: 0px;\n flex-wrap: wrap;\n align-items: center;\n justify-content: center;\n width: 100vw;\n background: white;\n font-family: Roboto, sans-serif;\n font-size: 1em;\n box-shadow: rgba(0, 0, 0, .18) -14px 0px 28px 0px, rgba(0, 0, 0, .09) -10px 0px 10px 0px;\n z-index: 100000;\n}\n:host([hidden]) {\n display: none;\n}\n:host * {\n box-sizing: content-box;\n}\n:host .ux-gdpr__text-container {\n padding: 1.71429em 1.71429em 1.57143em;\n flex: 0 1 26.6429em;\n}\n:host .ux-gdpr__header {\n margin: 0px 0px 0.571429em;\n flex: 1 1 100%;\n font-size: 1em;\n font-weight: 500;\n font-family: inherit;\n line-height: 1;\n}\n:host .ux-gdpr__description {\n margin: 0px;\n flex: 1 1 100%;\n font-family: inherit;\n font-size: 0.857143em;\n}\n:host .ux-gdpr__link, \n:host .ux-gdpr__link:visited {\n transition: box-shadow 0.2s ease-out 0s, -webkit-box-shadow 0.2s ease-out 0s;\n color: rgb(34, 114, 189);\n text-decoration: none;\n}\n:host .ux-gdpr__action-container {\n display: flex;\n flex: 0 1 17.1429em;\n flex-wrap: wrap;\n align-items: center;\n justify-content: center;\n}\n:host .ux-gdpr__button_revoke,\n:host .ux-gdpr__button_grant {\n border-radius: 0.142857em;\n margin: 0px 0px 2em;\n padding: 0px;\n height: 2.83333em;\n transition: box-shadow 0.2s ease-out 0s, -webkit-box-shadow 0.2s ease-out 0s;\n border: none;\n background: none;\n font-family: inherit;\n font-size: 0.857143em;\n font-weight: 300;\n}\n:host .ux-gdpr__button_grant {\n order: 1;\n width: 13.3333em;\n background-color: rgb(34, 114, 189);\n color: white;\n}\n:host .ux-gdpr__button_revoke {\n order: 0;\n width: 9.16667em;\n background-color: white;\n color: rgb(34, 114, 189);\n box-shadow: rgb(198, 199, 201) 0px 0px 0px 0.071428\n}\n@media (min-width: 45em) {\n :host {\n flex-wrap: nowrap;\n }\n :host .ux-gdpr__text-container {\n padding: 1.71429em 2.28571em 1.57143em;\n flex: 1 1 100%;\n max-width: 82.4286em;\n }\n :host .ux-gdpr__action-container {\n padding: 0px 2.28571em 0px 0px;\n flex: 0 0 20.4286em;\n flex-wrap: nowrap;\n }\n :host .ux-gdpr__button_revoke,\n :host .ux-gdpr__button_grant {\n margin: 0px;\n }\n}\n@media (min-width: 20em) {\n :host .ux-gdpr__action-container {\n flex: 0 1 20.4286em;\n justify-content: space-between;\n }\n}\n</style>"};
GDPR.check();

@@ -8,11 +8,11 @@ var $jscomp=$jscomp||{};$jscomp.scope={};$jscomp.createTemplateTagFirstArg=function(a){return a.raw=a};$jscomp.createTemplateTagFirstArgWithRaw=function(a,b){a.raw=b;return a};$jscomp.arrayIteratorImpl=function(a){var b=0;return function(){return b<a.length?{done:!1,value:a[b++]}:{done:!0}}};$jscomp.arrayIterator=function(a){return{next:$jscomp.arrayIteratorImpl(a)}};$jscomp.makeIterator=function(a){var b="undefined"!=typeof Symbol&&Symbol.iterator&&a[Symbol.iterator];return b?b.call(a):$jscomp.arrayIterator(a)};

$jscomp.propertyToPolyfillSymbol[e],$jscomp.defineProperty(d,e,{configurable:!0,writable:!0,value:b})))};$jscomp.polyfill("Object.is",function(a){return a?a:function(b,c){return b===c?0!==b||1/b===1/c:b!==b&&c!==c}},"es6","es3");$jscomp.polyfill("Array.prototype.includes",function(a){return a?a:function(b,c){var d=this;d instanceof String&&(d=String(d));var e=d.length;c=c||0;for(0>c&&(c=Math.max(c+e,0));c<e;c++){var f=d[c];if(f===b||Object.is(f,b))return!0}return!1}},"es7","es3");
$jscomp.checkStringArgs=function(a,b,c){if(null==a)throw new TypeError("The 'this' value for String.prototype."+c+" must not be null or undefined");if(b instanceof RegExp)throw new TypeError("First argument to String.prototype."+c+" must not be a regular expression");return a+""};$jscomp.polyfill("String.prototype.includes",function(a){return a?a:function(b,c){return-1!==$jscomp.checkStringArgs(this,b,"includes").indexOf(b,c||0)}},"es6","es3");var GDPR=function(){};
GDPR.check=function(){var a=this,b=new Event("gdprLoaded");if(this.getCookie("gdpr-consent"))return!1;if(1==Intl.DateTimeFormat().resolvedOptions().timeZone.includes("New_York")||1==Intl.DateTimeFormat().resolvedOptions().timeZone.includes("Indianapolis")||1==Intl.DateTimeFormat().resolvedOptions().timeZone.includes("Chicago")||1==Intl.DateTimeFormat().resolvedOptions().timeZone.includes("Denver")||1==Intl.DateTimeFormat().resolvedOptions().timeZone.includes("Phoenix")||1==Intl.DateTimeFormat().resolvedOptions().timeZone.includes("Los_Angeles")||
1==Intl.DateTimeFormat().resolvedOptions().timeZone.includes("Anchorage")||1==Intl.DateTimeFormat().resolvedOptions().timeZone.includes("Honolulu"))this.setCookie("gdpr-consent","true",1),this.setCookie("gdpr-grant-type","implicit",1),this.setCookie("us_user","true",1),window.dataLayer&&window.dataLayer.push({event:"gdpr-consent-grant"}),document.dispatchEvent(b);else{if(this.getCookie("gdpr-consent-waiting"))return this.popupDisplay();fetch("https://api.ipstack.com/check?access_key=f66ace327d220485678516d16bb6a230&fields=location.is_eu,country_code").then(function(c){if(!c.ok)throw console.log(c),
Error("Something went wrong with the API call");return c.json()}).then(function(c){c=JSON.parse(JSON.stringify(c));if(!c.location)throw Error("Return unexpected.");c.location.is_eu||c.location.is_eu?(a.setCookie("gdpr-consent-waiting","true",1),a.popupDisplay(b)):("US"==c.country_code&&a.setCookie("us_user","true",1),a.setCookie("gdpr-consent","true",1),a.setCookie("gdpr-grant-type","implicit",1),window.dataLayer&&window.dataLayer.push({event:"gdpr-consent-grant"}),document.dispatchEvent(b))})}};
GDPR.grant=function(a){this.setCookie("gdpr-consent","true",7);this.setCookie("gdpr-grant-type","explicit",7);this.setCookie("us_user","false",7);window.dataLayer&&window.dataLayer.push({event:"gdpr-consent-grant"});this.popupHide();document.dispatchEvent(a)};GDPR.deny=function(a){this.setCookie("gdpr-consent","false",7);window.dataLayer&&window.dataLayer.push({event:"gdpr-consent-deny"});this.popupHide();document.dispatchEvent(a)};
GDPR.popupDisplay=function(a){var b=document.querySelector("ux-gdpr-consent");b||(b=document.createElement("ux-gdpr-consent"));(function(d,e){for(var f in e)d.setAttribute(f,e[f])})(b,{id:"consentDialog",role:"dialog","aria-modal":"false","aria-labelledby":"ux-gdpr__label","aria-describedby":"ux-gdpr__description","class":"hydrated"});document.body.appendChild(b);b=document.getElementById("consentDialog").attachShadow({mode:"open"});b.innerHTML=this.style();b.innerHTML+='\n<div class="ux-gdpr__text-container">\n <h2 class="ux-gdpr__header" id="ux-gdpr__label">Do you agree to Liberty University\u2019s use of cookies?</h2>\n <p class="ux-gdpr__description" id="ux-gdpr__description">We use cookies to deliver online services, customize your experience, and assist with communication. For more information see the <a href="https://wiki.os.liberty.edu/display/IE/Website+Privacy+Policy" target="_blank" class="ux-gdpr__link" tabindex="0">Privacy Policy</a> and <a href="https://wiki.os.liberty.edu/display/IE/GDPR+Privacy+Notice" target="_blank" class="ux-gdpr__link" tabindex="0">GDPR Privacy Notice</a>.</p>\n</div>\n<div class="ux-gdpr__action-container">\n <button class="ux-gdpr__button_grant" aria-describedby="ux-gdpr__description" tabindex="1">I Agree</button>\n <button class="ux-gdpr__button_revoke" aria-describedby="ux-gdpr__description" tabindex="1">I Do Not Agree</button>\n</div>';
var c=this;this.clickBinding(".ux-gdpr__button_grant",function(){c.grant(a)});this.clickBinding(".ux-gdpr__button_revoke",function(){c.deny(a)})};GDPR.clickBinding=function(a,b){document.addEventListener("click",function(c){(c.path||c.composedPath&&c.composedPath())[0].matches(a)&&b()},!1)};GDPR.popupHide=function(){this.deleteCookie("gdpr-consent-waiting");document.querySelector("ux-gdpr-consent").setAttribute("hidden","hidden")};
$jscomp.checkStringArgs=function(a,b,c){if(null==a)throw new TypeError("The 'this' value for String.prototype."+c+" must not be null or undefined");if(b instanceof RegExp)throw new TypeError("First argument to String.prototype."+c+" must not be a regular expression");return a+""};$jscomp.polyfill("String.prototype.includes",function(a){return a?a:function(b,c){return-1!==$jscomp.checkStringArgs(this,b,"includes").indexOf(b,c||0)}},"es6","es3");var gdprEvent=new Event("gdprLoaded"),GDPR=function(){};
GDPR.check=function(){var a=this;if(this.getCookie("gdpr-consent"))return!1;if(1==Intl.DateTimeFormat().resolvedOptions().timeZone.includes("New_York")||1==Intl.DateTimeFormat().resolvedOptions().timeZone.includes("Indianapolis")||1==Intl.DateTimeFormat().resolvedOptions().timeZone.includes("Chicago")||1==Intl.DateTimeFormat().resolvedOptions().timeZone.includes("Denver")||1==Intl.DateTimeFormat().resolvedOptions().timeZone.includes("Phoenix")||1==Intl.DateTimeFormat().resolvedOptions().timeZone.includes("Los_Angeles")||
1==Intl.DateTimeFormat().resolvedOptions().timeZone.includes("Anchorage")||1==Intl.DateTimeFormat().resolvedOptions().timeZone.includes("Honolulu"))this.setCookie("gdpr-consent","true",1),this.setCookie("gdpr-grant-type","implicit",1),this.setCookie("us_user","true",1),window.dataLayer&&window.dataLayer.push({event:"gdpr-consent-grant"}),document.dispatchEvent(gdprEvent);else{if(this.getCookie("gdpr-consent-waiting"))return this.popupDisplay();fetch("https://api.ipstack.com/check?access_key=f66ace327d220485678516d16bb6a230&fields=location.is_eu,country_code").then(function(b){if(!b.ok)throw console.log(b),
Error("Something went wrong with the API call");return b.json()}).then(function(b){b=JSON.parse(JSON.stringify(b));if(!b.location)throw Error("Return unexpected.");b.location.is_eu||b.location.is_eu?(a.setCookie("gdpr-consent-waiting","true",1),a.popupDisplay()):("US"==b.country_code&&a.setCookie("us_user","true",1),a.setCookie("gdpr-consent","true",1),a.setCookie("gdpr-grant-type","implicit",1),window.dataLayer&&window.dataLayer.push({event:"gdpr-consent-grant"}),document.dispatchEvent(gdprEvent))})}};
GDPR.grant=function(){this.setCookie("gdpr-consent","true",7);this.setCookie("gdpr-grant-type","explicit",7);this.setCookie("us_user","false",7);window.dataLayer&&window.dataLayer.push({event:"gdpr-consent-grant"});this.popupHide();document.dispatchEvent(gdprEvent)};GDPR.deny=function(){this.setCookie("gdpr-consent","false",7);window.dataLayer&&window.dataLayer.push({event:"gdpr-consent-deny"});this.popupHide();document.dispatchEvent(gdprEvent)};
GDPR.popupDisplay=function(){var a=document.querySelector("ux-gdpr-consent");a||(a=document.createElement("ux-gdpr-consent"));(function(c,d){for(var e in d)c.setAttribute(e,d[e])})(a,{id:"consentDialog",role:"dialog","aria-modal":"false","aria-labelledby":"ux-gdpr__label","aria-describedby":"ux-gdpr__description","class":"hydrated"});document.body.appendChild(a);a=document.getElementById("consentDialog").attachShadow({mode:"open"});a.innerHTML=this.style();a.innerHTML+='\n<div class="ux-gdpr__text-container">\n <h2 class="ux-gdpr__header" id="ux-gdpr__label">Do you agree to Liberty University\u2019s use of cookies?</h2>\n <p class="ux-gdpr__description" id="ux-gdpr__description">We use cookies to deliver online services, customize your experience, and assist with communication. For more information see the <a href="https://wiki.os.liberty.edu/display/IE/Website+Privacy+Policy" target="_blank" class="ux-gdpr__link" tabindex="0">Privacy Policy</a> and <a href="https://wiki.os.liberty.edu/display/IE/GDPR+Privacy+Notice" target="_blank" class="ux-gdpr__link" tabindex="0">GDPR Privacy Notice</a>.</p>\n</div>\n<div class="ux-gdpr__action-container">\n <button class="ux-gdpr__button_grant" aria-describedby="ux-gdpr__description" tabindex="1">I Agree</button>\n <button class="ux-gdpr__button_revoke" aria-describedby="ux-gdpr__description" tabindex="1">I Do Not Agree</button>\n</div>';
var b=this;this.clickBinding(".ux-gdpr__button_grant",function(){b.grant()});this.clickBinding(".ux-gdpr__button_revoke",function(){b.deny()})};GDPR.clickBinding=function(a,b){document.addEventListener("click",function(c){(c.path||c.composedPath&&c.composedPath())[0].matches(a)&&b()},!1)};GDPR.popupHide=function(){this.deleteCookie("gdpr-consent-waiting");document.querySelector("ux-gdpr-consent").setAttribute("hidden","hidden")};
GDPR.calculateDomain=function(){var a=$jscomp.makeIterator(window.location.hostname.split(".").slice(-2)),b=a.next().value;a=a.next().value;return b&&a?b+"."+a:b};GDPR.getCookie=function(a){a=("; "+document.cookie).split("; "+a+"=");return 2==a.length?a.pop().split(";").shift():null};
GDPR.setCookie=function(a,b,c){c="undefined"!==typeof c?c:30;var d=new Date,e=this.getCookie(a);if(null===e||e!==b)d.setTime(d.getTime()+864E5*c),c="expires="+d.toUTCString(),d=(window.location.href.indexOf("local."),""),document.cookie=a+"="+(b||"")+"; "+c+"; domain="+this.calculateDomain()+"; path=/; "+d};GDPR.deleteCookie=function(a){if(this.getCookie(a)){var b=this.calculateDomain();document.cookie=a+"=; path=/"+(b?"; domain="+b:"")+"; expires=Thu, 01 Jan 1970 00:00:01 GMT"}};GDPR.style=function(){return"<style>\n:host {\n display: flex;\n position: fixed;\n bottom: 0px;\n left: 0px;\n flex-wrap: wrap;\n align-items: center;\n justify-content: center;\n width: 100vw;\n background: white;\n font-family: Roboto, sans-serif;\n font-size: 1em;\n box-shadow: rgba(0, 0, 0, .18) -14px 0px 28px 0px, rgba(0, 0, 0, .09) -10px 0px 10px 0px;\n z-index: 100000;\n}\n:host([hidden]) {\n display: none;\n}\n:host * {\n box-sizing: content-box;\n}\n:host .ux-gdpr__text-container {\n padding: 1.71429em 1.71429em 1.57143em;\n flex: 0 1 26.6429em;\n}\n:host .ux-gdpr__header {\n margin: 0px 0px 0.571429em;\n flex: 1 1 100%;\n font-size: 1em;\n font-weight: 500;\n font-family: inherit;\n line-height: 1;\n}\n:host .ux-gdpr__description {\n margin: 0px;\n flex: 1 1 100%;\n font-family: inherit;\n font-size: 0.857143em;\n}\n:host .ux-gdpr__link, \n:host .ux-gdpr__link:visited {\n transition: box-shadow 0.2s ease-out 0s, -webkit-box-shadow 0.2s ease-out 0s;\n color: rgb(34, 114, 189);\n text-decoration: none;\n}\n:host .ux-gdpr__action-container {\n display: flex;\n flex: 0 1 17.1429em;\n flex-wrap: wrap;\n align-items: center;\n justify-content: center;\n}\n:host .ux-gdpr__button_revoke,\n:host .ux-gdpr__button_grant {\n border-radius: 0.142857em;\n margin: 0px 0px 2em;\n padding: 0px;\n height: 2.83333em;\n transition: box-shadow 0.2s ease-out 0s, -webkit-box-shadow 0.2s ease-out 0s;\n border: none;\n background: none;\n font-family: inherit;\n font-size: 0.857143em;\n font-weight: 300;\n}\n:host .ux-gdpr__button_grant {\n order: 1;\n width: 13.3333em;\n background-color: rgb(34, 114, 189);\n color: white;\n}\n:host .ux-gdpr__button_revoke {\n order: 0;\n width: 9.16667em;\n background-color: white;\n color: rgb(34, 114, 189);\n box-shadow: rgb(198, 199, 201) 0px 0px 0px 0.071428\n}\n@media (min-width: 45em) {\n :host {\n flex-wrap: nowrap;\n }\n :host .ux-gdpr__text-container {\n padding: 1.71429em 2.28571em 1.57143em;\n flex: 1 1 100%;\n max-width: 82.4286em;\n }\n :host .ux-gdpr__action-container {\n padding: 0px 2.28571em 0px 0px;\n flex: 0 0 20.4286em;\n flex-wrap: nowrap;\n }\n :host .ux-gdpr__button_revoke,\n :host .ux-gdpr__button_grant {\n margin: 0px;\n }\n}\n@media (min-width: 20em) {\n :host .ux-gdpr__action-container {\n flex: 0 1 20.4286em;\n justify-content: space-between;\n }\n}\n</style>"};
GDPR.check();
{
"name": "@lu-development/ux-gdpr-consent",
"version": "2.0.29",
"version": "2.0.30",
"description": "GDPR compliance plugin",

@@ -5,0 +5,0 @@ "unpkg": "http://localhost:3456/dist/ux-gdpr-consent/ux-gdpr-consent.js",

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc