backup
3 days ago
notices
3 days ago
analytics-consent-modal.min.js
1 week ago
wpstg-admin-beta.min.js
3 months ago
wpstg-admin-corrupt-settings.min.js
3 months ago
wpstg-admin-plugins.min.js
3 months ago
wpstg-admin-rating.min.js
3 months ago
wpstg-admin-settings.min.js
3 months ago
wpstg-admin.min.js
3 days ago
wpstg-blank-loader.min.js
3 months ago
wpstg-solid.min.js
3 days ago
wpstg-sweetalert2.min.js
3 months ago
wpstg.min.js
3 days ago
analytics-consent-modal.min.js
2 lines
| 1 | (function(){"use strict";function a(n,e){if(!(n instanceof e))throw new TypeError("Cannot call a class as a function")}function r(n,e){for(var t=0;t<e.length;t++){var i=e[t];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(n,c(i.key),i)}}function o(n,e,t){return e&&r(n.prototype,e),Object.defineProperty(n,"prototype",{writable:!1}),n}function l(n,e){if(typeof n!="object"||!n)return n;var t=n[Symbol.toPrimitive];if(t!==void 0){var i=t.call(n,e);if(typeof i!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(n)}function c(n){var e=l(n,"string");return typeof e=="symbol"?e:e+""}var s=function(){function n(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:wpstg;a(this,n),this.wpstgObject=e,this.init()}return o(n,[{key:"init",value:function(){this.wrapper=document.querySelector(".wpstg-consent-modal-main-wrapper"),this.dialog=document.querySelector(".wpstg-consent-modal-content"),this.detailsToggle=document.querySelector("#wpstg-admin-notice-learn-more"),this.details=document.querySelector("#wpstg-consent-modal-permission-list"),this.skipButton=document.querySelector("#wpstg-skip-activate-notice"),this.consentButton=document.querySelector("#wpstg-consent-modal-btn-success"),this.wrapper!==null&&(this.addEvents(),this.dialog.focus())}},{key:"addEvents",value:function(){var t=this;document.addEventListener("keydown",function(i){i.key==="Escape"&&t.hide()}),this.skipButton.addEventListener("click",function(){return t.leave(t.wpstgObject.analyticsConsentLater)}),this.consentButton.addEventListener("click",function(){return t.leave(t.wpstgObject.analyticsConsentAllow)}),this.detailsToggle.addEventListener("click",function(){return t.toggleDetails()})}},{key:"toggleDetails",value:function(){var t=this.detailsToggle.getAttribute("aria-expanded")==="true";this.detailsToggle.setAttribute("aria-expanded",t?"false":"true"),this.detailsToggle.textContent=t?this.detailsToggle.dataset.labelCollapsed:this.detailsToggle.dataset.labelExpanded,this.details.hidden=t}},{key:"leave",value:function(t){this.hide(),location.href=t}},{key:"hide",value:function(){this.wrapper.style.display="none"}}])}();return new s,s})(); |
| 2 |