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.27 to 2.0.28

4

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

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

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(c);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(c)})}};
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()};GDPR.deny=function(){this.setCookie("gdpr-consent","false",7);window.dataLayer&&window.dataLayer.push({event:"gdpr-consent-deny"});this.popupHide()};
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(c))})}};
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(b,d){for(var e in d)b.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>';

@@ -15,0 +15,0 @@ var c=this;this.clickBinding(".ux-gdpr__button_grant",function(){c.grant()});this.clickBinding(".ux-gdpr__button_revoke",function(){c.deny()})};GDPR.clickBinding=function(a,c){document.addEventListener("click",function(b){(b.path||b.composedPath&&b.composedPath())[0].matches(a)&&c()},!1)};GDPR.popupHide=function(){this.deleteCookie("gdpr-consent-waiting");document.querySelector("ux-gdpr-consent").setAttribute("hidden","hidden")};

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

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(c);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(c)})}};
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()};GDPR.deny=function(){this.setCookie("gdpr-consent","false",7);window.dataLayer&&window.dataLayer.push({event:"gdpr-consent-deny"});this.popupHide()};
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(c))})}};
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(b,d){for(var e in d)b.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>';

@@ -15,0 +15,0 @@ var c=this;this.clickBinding(".ux-gdpr__button_grant",function(){c.grant()});this.clickBinding(".ux-gdpr__button_revoke",function(){c.deny()})};GDPR.clickBinding=function(a,c){document.addEventListener("click",function(b){(b.path||b.composedPath&&b.composedPath())[0].matches(a)&&c()},!1)};GDPR.popupHide=function(){this.deleteCookie("gdpr-consent-waiting");document.querySelector("ux-gdpr-consent").setAttribute("hidden","hidden")};

{
"name": "@lu-development/ux-gdpr-consent",
"version": "2.0.27",
"version": "2.0.28",
"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