Current Directory: /home/astoriaah/www/plugins/system/gdpr/assets/js
Viewing File: /home/astoriaah/www/plugins/system/gdpr/assets/js/init.js
var $jscomp=$jscomp||{};$jscomp.scope={};$jscomp.ASSUME_ES5=!1;$jscomp.ASSUME_NO_NATIVE_MAP=!1;$jscomp.ASSUME_NO_NATIVE_SET=!1;$jscomp.defineProperty=$jscomp.ASSUME_ES5||"function"==typeof Object.defineProperties?Object.defineProperty:function(a,e,g){a!=Array.prototype&&a!=Object.prototype&&(a[e]=g.value)};$jscomp.getGlobal=function(a){return"undefined"!=typeof window&&window===a?a:"undefined"!=typeof global&&null!=global?global:a};$jscomp.global=$jscomp.getGlobal(this);$jscomp.SYMBOL_PREFIX="jscomp_symbol_";
$jscomp.initSymbol=function(){$jscomp.initSymbol=function(){};$jscomp.global.Symbol||($jscomp.global.Symbol=$jscomp.Symbol)};$jscomp.Symbol=function(){var a=0;return function(e){return $jscomp.SYMBOL_PREFIX+(e||"")+a++}}();
$jscomp.initSymbolIterator=function(){$jscomp.initSymbol();var a=$jscomp.global.Symbol.iterator;a||(a=$jscomp.global.Symbol.iterator=$jscomp.global.Symbol("iterator"));"function"!=typeof Array.prototype[a]&&$jscomp.defineProperty(Array.prototype,a,{configurable:!0,writable:!0,value:function(){return $jscomp.arrayIterator(this)}});$jscomp.initSymbolIterator=function(){}};$jscomp.arrayIterator=function(a){var e=0;return $jscomp.iteratorPrototype(function(){return e<a.length?{done:!1,value:a[e++]}:{done:!0}})};
$jscomp.iteratorPrototype=function(a){$jscomp.initSymbolIterator();a={next:a};a[$jscomp.global.Symbol.iterator]=function(){return this};return a};$jscomp.iteratorFromArray=function(a,e){$jscomp.initSymbolIterator();a instanceof String&&(a+="");var g=0,h={next:function(){if(g<a.length){var d=g++;return{value:e(d,a[d]),done:!1}}h.next=function(){return{done:!0,value:void 0}};return h.next()}};h[Symbol.iterator]=function(){return h};return h};
$jscomp.polyfill=function(a,e,g,h){if(e){g=$jscomp.global;a=a.split(".");for(h=0;h<a.length-1;h++){var d=a[h];d in g||(g[d]={});g=g[d]}a=a[a.length-1];h=g[a];e=e(h);e!=h&&null!=e&&$jscomp.defineProperty(g,a,{configurable:!0,writable:!0,value:e})}};$jscomp.polyfill("Array.prototype.keys",function(a){return a?a:function(){return $jscomp.iteratorFromArray(this,function(a){return a})}},"es6","es3");
var plgGdprAllCookiesDisabledByScript=!1,plgGdprObserverMutationTags=null,plgGdprCustomScriptExecutionGeneric=!1,detectedOldIPhone=!1;if(null!==navigator.userAgent.match(/iPhone/i)){var iphone4=480==window.screen.height,iphone5=568==window.screen.height;if(iphone4||iphone5)detectedOldIPhone=!0}
var plgGdprDisableAllCookies=function(a){var e=document.cookie.split("; "),g=["cookieconsent_status"];"undefined"!==typeof gdprJSessCook&&g.push(gdprJSessCook);"undefined"!==typeof gdprJAdminSessCook&&g.push(gdprJAdminSessCook);if(gdprConfigurationOptions.allowedCookies){var h=gdprConfigurationOptions.allowedCookies.split(",");g=g.concat(h)}h=function(a){for(var b=window.location.hostname.split(".");0<b.length;){var f=encodeURIComponent(a.split(";")[0].split("=")[0])+"=; expires=Thu, 01-Jan-1970 00:00:01 GMT; domain="+
b.join(".")+" ;path=",c=location.pathname.split("/");for(document.cookie=f+"/";0<c.length;){var d=c.join("/");d||(d="/");document.cookie=f+d;c.pop()}b.shift()}};for(var d=0;d<e.length;d++){for(var b=!0,c=0;c<g.length;c++)-1!=e[d].indexOf(g[c])&&(b=!1);b&&h(e[d])}a||!gdprConfigurationOptions.blockCookieDefine||detectedOldIPhone||Object.defineProperty(document,"cookie",{get:function(){return""},set:function(){return!0}});a=gdprConfigurationOptions.externalAdvancedBlockingModeCustomAttribute?",["+gdprConfigurationOptions.externalAdvancedBlockingModeCustomAttribute+
"*=gdprlock]":"";gdprConfigurationOptions.placeholderBlockedResources?jQuery("*[src*=gdprlock],*[data-source=gdprlock]"+a).filter(function(a,b){return"script"==b.nodeName.toLowerCase()||"link"==b.nodeName.toLowerCase()?!1:!0}).replaceWith(function(a){var b="";gdprConfigurationOptions.placeholderOnpageUnlock&&(a=this.attributes,"undefined"!==typeof a["data-original-src"]&&jQuery.each(a,function(a,f){"data-original-src"==f.name&&(b+=" "+f.name+'="'+f.value+'"');-1==f.name.indexOf("data")&&(b+=" data-original-"+
f.name+'="'+f.value+'"')}));return'<div class="gdprlock-placeholder"'+b+'><div class="gdprlock-placeholder-text">'+gdprConfigurationOptions.placeholderBlockedResourcesText+"</div></div>"}):jQuery("*[src*=gdprlock],*[data-source=gdprlock]"+a).remove();plgGdprAllCookiesDisabledByScript=!0},plgGdprShowReloadWindow=function(){gdprConfigurationOptions.showReloadMsg&&(jQuery("#gdpr_reload_msg").remove(),jQuery("<div/>").attr("id","gdpr_reload_msg").prependTo("body").append('<div id="gdpr_reload_msgtext"><span id="gdpr_reload_info_icon">ⓘ</span>'+
gdprConfigurationOptions.showReloadMsgText+"</div>").css("margin-top",0).hide().fadeIn(500).delay(2500).fadeOut(500,function(){jQuery(this).remove()}));window.location.reload()};
(function(){if("undefined"!==typeof gdpr_unset_categories_cookies)for(var a=0;a<gdpr_unset_categories_cookies.length;a++)for(var e=gdpr_unset_categories_cookies[a],g=window.location.hostname.split(".");0<g.length;){var h=encodeURIComponent(e.split(";")[0].split("=")[0])+"=; expires=Thu, 01-Jan-1970 00:00:01 GMT; domain="+g.join(".")+" ;path=",d=location.pathname.split("/");for(document.cookie=h+"/";0<d.length;){var b=d.join("/");b||(b="/");document.cookie=h+b;d.pop()}g.shift();gdprConfigurationOptions.blockLocalStorage&&
localStorage.removeItem(e);gdprConfigurationOptions.blockSessionStorage&&sessionStorage.removeItem(e)}})();gdprConfigurationOptions.lawByCountry||("opt-in"!=gdprConfigurationOptions.complianceType||localStorage.getItem("hasConsented")||localStorage.getItem("setConsentedCookie")||plgGdprDisableAllCookies(),"opt-out"==gdprConfigurationOptions.complianceType&&localStorage.getItem("hasDeclined")&&plgGdprDisableAllCookies());
if(gdprConfigurationOptions.optoutIndividualResources){var plgGdprCssEscape=function(a){var e=String(a),g=e.length,h=-1,d="",b=e.charCodeAt(0);if(48<=b&&57>=b)return a;for(;++h<g;)a=e.charCodeAt(h),d=0==a?d+"\ufffd":1<=a&&31>=a||127==a||0==h&&48<=a&&57>=a||1==h&&48<=a&&57>=a&&45==b?d+("\\"+a.toString(16)+" "):0==h&&1==g&&45==a?d+("\\"+e.charAt(h)):128<=a||45==a||95==a||48<=a&&57>=a||65<=a&&90>=a||97<=a&&122>=a?d+e.charAt(h):d+("\\"+e.charAt(h));return d};(function(){var a=localStorage.getItem("gdprCookiesChoices");
a&&(a=JSON.parse(a));a&&function(){for(var d=document.cookie.split("; "),b=0;b<d.length;b++){var c=!1,f=encodeURIComponent(d[b].split(";")[0].split("=")[0]);f in a&&(c=!0);if(c){c=d[b];for(var k=window.location.hostname.split(".");0<k.length;){var g=encodeURIComponent(c.split(";")[0].split("=")[0])+"=; expires=Thu, 01-Jan-1970 00:00:01 GMT; domain="+k.join(".")+" ;path=",l=location.pathname.split("/");for(document.cookie=g+"/";0<l.length;){var e=l.join("/");e||(e="/");document.cookie=g+e;l.pop()}k.shift()}gdprConfigurationOptions.blockLocalStorage&&
localStorage.removeItem(f);gdprConfigurationOptions.blockSessionStorage&&sessionStorage.removeItem(f)}}}();if(a){var e=[],g=gdprConfigurationOptions.externalAdvancedBlockingModeTags.toLowerCase().split(","),h=function(d){var b=!1,c=d.nodeName.toLowerCase();if(-1==jQuery.inArray(c,g))return b;jQuery.each(a,function(f){if(!a[f]&&-1<d.outerHTML.indexOf(f)&&-1==d.outerHTML.indexOf("gdpr"))return b=f,!0});return b};plgGdprObserverMutationTags=new MutationObserver(function(a){for(var b=0;b<a.length;b++)for(var c=
a[b].addedNodes,f=0;f<c.length;f++){var k=c[f],d=k.nodeName.toLowerCase();-1==jQuery.inArray(d,e)&&e.push(d);if(1===k.nodeType&&(d=h(k))){var l=function(a){"script"===k.nodeName&&a.preventDefault();k.removeEventListener("beforescriptexecute",l)};k.addEventListener("beforescriptexecute",l);if(gdprConfigurationOptions.placeholderBlockedResources&&"script"!=k.nodeName.toLowerCase()&&"link"!=k.nodeName.toLowerCase()){var g=gdprConfigurationOptions.placeholderIndividualBlockedResourcesAction?"gdprlock-placeholder ":
"",m="";gdprConfigurationOptions.placeholderOnpageUnlock&&"iframe"==k.nodeName.toLowerCase()&&jQuery.each(k.attributes,function(a,b){m+=" data-original-"+b.name+'="'+b.value+'"'});jQuery(k).replaceWith('<div class="'+g+'gdprcookielock-placeholder"'+m+'><div class="gdprcookielock-placeholder-text">'+gdprConfigurationOptions.placeholderIndividualBlockedResourcesText.replace("{domain}",d)+"</div></div>")}else jQuery(k).remove()}}});plgGdprObserverMutationTags.observe(document.documentElement,{childList:!0,
subtree:!0});setTimeout(function(){jQuery.each(g,function(d,b){-1==jQuery.inArray(b,e)&&jQuery.each(a,function(c){if(!a[c]){var f=jQuery(b+'[src*="'+c+'"], '+b+'[href*="'+c+'"], '+b+'[poster*="'+c+'"]');if(gdprConfigurationOptions.placeholderBlockedResources&&"script"!=b&&"link"!=b){var k=gdprConfigurationOptions.placeholderIndividualBlockedResourcesAction?"gdprlock-placeholder ":"";f.replaceWith(function(a){var f="";gdprConfigurationOptions.placeholderOnpageUnlock&&"iframe"==b&&jQuery.each(this.attributes,
function(a,b){f+=" data-original-"+b.name+'="'+b.value+'"'});return'<div class="'+k+'gdprcookielock-placeholder"'+f+'><div class="gdprcookielock-placeholder-text">'+gdprConfigurationOptions.placeholderIndividualBlockedResourcesText.replace("{domain}",c)+"</div></div>"})}else f.remove()}})})},500)}a&&(g=gdprConfigurationOptions.externalAdvancedBlockingModeTags.toLowerCase().split(","),jQuery.each(a,function(d){if(!a[d]){var b=plgGdprCssEscape(d),c=gdprConfigurationOptions.externalAdvancedBlockingModeCustomAttribute?
",["+gdprConfigurationOptions.externalAdvancedBlockingModeCustomAttribute+"*="+b+"]":"";jQuery.each(g,function(a,k){jQuery(k+"[src*="+b+"],"+k+"[href*="+b+"]"+c).each(function(a,b){if(gdprConfigurationOptions.placeholderBlockedResources&&"script"!=b.nodeName.toLowerCase()&&"link"!=b.nodeName.toLowerCase()){a=gdprConfigurationOptions.placeholderIndividualBlockedResourcesAction?"gdprlock-placeholder ":"";var f="";gdprConfigurationOptions.placeholderOnpageUnlock&&"iframe"==b.nodeName.toLowerCase()&&
jQuery.each(this.attributes,function(a,b){f+=" data-original-"+b.name+'="'+b.value+'"'});jQuery(b).replaceWith('<div class="'+a+'gdprcookielock-placeholder"'+f+'><div class="gdprcookielock-placeholder-text">'+gdprConfigurationOptions.placeholderIndividualBlockedResourcesText.replace("{domain}",d)+"</div></div>")}else jQuery(b).remove()})})}}))})()}
jQuery(function(a){if(!plgGdprAllCookiesDisabledByScript){var e=gdprConfigurationOptions.externalAdvancedBlockingModeCustomAttribute?",["+gdprConfigurationOptions.externalAdvancedBlockingModeCustomAttribute+"*=gdprlock]":"";gdprConfigurationOptions.placeholderBlockedResources?a("*[src*=gdprlock],*[data-source=gdprlock]"+e).filter(function(a,c){return"script"==c.nodeName.toLowerCase()||"link"==c.nodeName.toLowerCase()?!1:!0}).replaceWith(function(b){var c="";gdprConfigurationOptions.placeholderOnpageUnlock&&
(b=this.attributes,"undefined"!==typeof b["data-original-src"]&&a.each(b,function(a,b){"data-original-src"==b.name&&(c+=" "+b.name+'="'+b.value+'"');-1==b.name.indexOf("data")&&(c+=" data-original-"+b.name+'="'+b.value+'"')}));return"undefined"===typeof this.dataset.gdprDomain?'<div class="gdprlock-placeholder"'+c+'><div class="gdprlock-placeholder-text">'+gdprConfigurationOptions.placeholderBlockedResourcesText+"</div></div>":'<div class="'+(gdprConfigurationOptions.placeholderIndividualBlockedResourcesAction?
"gdprlock-placeholder ":"")+'gdprcookielock-placeholder"'+c+'><div class="gdprcookielock-placeholder-text">'+gdprConfigurationOptions.placeholderIndividualBlockedResourcesText.replace("{domain}",this.dataset.gdprDomain)+"</div></div>"}):jQuery("*[src*=gdprlock],*[data-source=gdprlock]"+e).remove()}window.gdprIsCookieConsentPresent=function(a){a=("; "+document.cookie).split("; "+a+"=");return 2!=a.length?void 0:a.pop().split(";").shift()}("cookieconsent_status");var g=function(){var b=a("iframe").length,
c=!!navigator.mozGetUserMedia;gdprConfigurationOptions.blockExternalCookiesDomains&&b&&c&&localStorage.setItem("refreshIframeCache",!0);if(gdpr_enable_log_cookie_consent){if("opt-in"==gdprConfigurationOptions.complianceType)var f=localStorage.getItem("hasConsented");else"opt-out"==gdprConfigurationOptions.complianceType&&(f=!localStorage.getItem("hasDeclined"));a.ajax({type:"POST",url:gdpr_ajax_livesite+"index.php?option=com_gdpr&task=user.processGenericCookieCategories",data:{gdpr_generic_cookie_consent:f?
1:0}}).then(function(){plgGdprShowReloadWindow()})}else setTimeout(function(){plgGdprShowReloadWindow()},0)},h=function(){plgGdprObserverMutationTags&&plgGdprObserverMutationTags.disconnect();a.ajax({type:"POST",dataType:"json",url:gdpr_ajax_livesite+"index.php?option=com_gdpr&task=user.getDomainsSum",data:{noredirect:1}}).then(function(b){b=Object.keys(b).map(function(a){return b[a]});var c=localStorage.getItem("gdprCookiesChoices");c&&(c=JSON.parse(c),a.each(c,function(a){c[a]||b.push(a)}));a("div.gdprlock-placeholder[data-original-src]").replaceWith(function(f){var c=
"";f=this.attributes;if("undefined"!==typeof f["data-original-src"]){for(var d in b)if(-1<f["data-original-src"].value.indexOf(b[d]))return this;a.each(f,function(a,b){0==b.name.indexOf("data-original-")&&(c+=b.name.replace("data-original-","")+'="'+b.value+'" ')});return"<iframe "+c+"></iframe>"}});a.each(b,function(b,c){b=plgGdprCssEscape(c);a("iframe[src*="+b+"]").each(function(b,f){b=gdprConfigurationOptions.placeholderIndividualBlockedResourcesAction?"gdprlock-placeholder ":"";var d="";a.each(this.attributes,
function(a,b){d+=" data-original-"+b.name+'="'+b.value+'"'});a(f).replaceWith('<div class="'+b+'gdprcookielock-placeholder"'+d+'><div class="gdprcookielock-placeholder-text">'+gdprConfigurationOptions.placeholderIndividualBlockedResourcesText.replace("{domain}",c)+"</div></div>")})})})},d=function(){plgGdprObserverMutationTags&&plgGdprObserverMutationTags.disconnect();a.ajax({type:"POST",dataType:"json",url:gdpr_ajax_livesite+"index.php?option=com_gdpr&task=user.getDomainsSum",data:{noredirect:1}}).then(function(b){b=
Object.keys(b).map(function(a){return b[a]});var c=localStorage.getItem("gdprCookiesChoices");c&&(c=JSON.parse(c),a.each(c,function(a){c[a]||b.push(a)}));a("script[data-gdprlock-original-script-src]").replaceWith(function(c){c=this.attributes;if("undefined"!==typeof c["data-gdprlock-original-script-src"]){for(var f in b)if(-1<c["data-gdprlock-original-script-src"].value.indexOf(b[f]))return this;a.getScript(c["data-gdprlock-original-script-src"].value);a(this).attr("src",c["data-gdprlock-original-script-src"].value).removeAttr("data-gdprlock-original-script-src").removeAttr("data-source");
return this}});a.each(b,function(b,c){b=plgGdprCssEscape(c);a("script[src*="+b+"]").each(function(b,c){b=a(c).attr("src");a(c).attr("data-gdprlock-original-script-src",b).attr("data-source","gdprlock");a(c).removeAttr("src")})})})};a(document).on("click","a.cc-allow",function(b){"opt-out"==gdprConfigurationOptions.complianceType&&localStorage.getItem("hasDeclined")&&(localStorage.removeItem("hasDeclined"),localStorage.removeItem("hasDenyMessage"),localStorage.removeItem("hasExplititDeclinedAll"),
localStorage.setItem("setAllowRevokedCookie",!0),g());"opt-out"!=gdprConfigurationOptions.complianceType||localStorage.getItem("hasFirstDeclined")||a.ajax({type:"POST",url:gdpr_ajax_livesite+"index.php?option=com_gdpr&task=user.processGenericCookieCategories",data:{gdpr_generic_cookie_consent:1}})});localStorage.getItem("refreshIframeCache")&&(a("iframe").each(function(b,c){b=a(c).clone();a(c).after(b).remove()}),localStorage.getItem("setConsentedCookie")||localStorage.removeItem("refreshIframeCache"));
window.cookieconsent.initialise({type:gdprConfigurationOptions.complianceType,layout:gdprConfigurationOptions.toolbarLayout,theme:gdprConfigurationOptions.toolbarTheme,centertheme:gdprConfigurationOptions.toolbarCenterTheme,position:gdprConfigurationOptions.toolbarPosition,revokeposition:gdprConfigurationOptions.revokePosition,container:document.querySelector(gdprConfigurationOptions.containerSelector),palette:{popup:{background:gdprConfigurationOptions.popupBackground,text:gdprConfigurationOptions.popupText,
link:gdprConfigurationOptions.popupLink,effect:gdprConfigurationOptions.popupEffect},button:{background:gdprConfigurationOptions.buttonBackground,border:gdprConfigurationOptions.buttonBorder,text:gdprConfigurationOptions.buttonText},highlight:{background:gdprConfigurationOptions.highlightBackground,border:gdprConfigurationOptions.highlightBorder,text:gdprConfigurationOptions.highlightText},highlightDismiss:{background:gdprConfigurationOptions.highlightDismissBackground,border:gdprConfigurationOptions.highlightDismissBorder,
text:gdprConfigurationOptions.highlightDismissText},highlightOpacity:{opacity:gdprConfigurationOptions.highlightOpacity},buttonall:{background:gdprConfigurationOptions.allowallButtonBackground,border:gdprConfigurationOptions.allowallButtonBorder,text:gdprConfigurationOptions.allowallButtonText},buttonSettings:{background:gdprConfigurationOptions.toggleCookieSettingsButtonBackground,border:gdprConfigurationOptions.toggleCookieSettingsButtonBorder,text:gdprConfigurationOptions.toggleCookieSettingsButtonText}},
revokable:!!gdprConfigurationOptions.revokable,location:!!gdprConfigurationOptions.lawByCountry,law:{regionalLaw:!gdprConfigurationOptions.lawByCountry},showLink:!!gdprConfigurationOptions.showLinks,static:!gdprConfigurationOptions.toolbarPositionmentType,dismissOnScroll:gdprConfigurationOptions.dismissOnScroll,dismissOnTimeout:gdprConfigurationOptions.dismissOnTimeout,animateRevokable:!!gdprConfigurationOptions.hideRevokableButton,onInitialise:function(a){"opt-out"==gdprConfigurationOptions.complianceType&&
localStorage.getItem("setAllowRevokedCookie")&&(this.setStatus("allow",!0),localStorage.removeItem("setAllowRevokedCookie"),g())},content:{header:gdprConfigurationOptions.headerText,message:gdprConfigurationOptions.messageText,dismiss:gdprConfigurationOptions.dismissText,allow:gdprConfigurationOptions.allowText,deny:gdprConfigurationOptions.denyText,allowall:gdprConfigurationOptions.allowallText,link:gdprConfigurationOptions.cookiePolicyLinkText,href:gdprConfigurationOptions.cookiePolicyLink,privacylink:gdprConfigurationOptions.privacyPolicyLinkText,
privacyhref:gdprConfigurationOptions.privacyPolicyLink},onStatusChange:function(b,c){c=this.options.type;var f=this.hasConsented();if("opt-in"==c&&(f||a("a.cc-btn",this.element).hasClass("cc-allow"))&&"allow"==b){var e=localStorage.getItem("hasConsented"),n=localStorage.getItem("hasExplititDeclinedAll"),l={hasConsented:!0,timestamp:(new Date).getTime()};localStorage.setItem("hasConsented",JSON.stringify(l));plgGdprAllCookiesDisabledByScript&&localStorage.setItem("setConsentedCookie",!0);localStorage.removeItem("hasExplititDeclinedAll");
gdprConfigurationOptions.preserveLockedCategories?a("input.cc-cookie-checkbox:not([readonly])").attr("disabled",!1):a("input.cc-cookie-checkbox").attr("disabled",!1);if(gdprConfigurationOptions.disableFirstReload){l=!1;var q=parseInt(localStorage.getItem("autoActivateOnNextPage")),m=!localStorage.getItem("hasFirstAccepted");if(!m||1==q||n)e&&gdprIsCookieConsentPresent||(l=!0,g());gdpr_enable_log_cookie_consent&&m&&!l&&a.ajax({type:"POST",url:gdpr_ajax_livesite+"index.php?option=com_gdpr&task=user.processGenericCookieCategories",
data:{gdpr_generic_cookie_consent:1}});m&&(l={hasFirstAccepted:!0,timestamp:(new Date).getTime()},localStorage.setItem("hasFirstAccepted",JSON.stringify(l)));"center"==gdprConfigurationOptions.toolbarPosition&&gdprConfigurationOptions.positionCenterBlurEffect&&m&&a("body").css({filter:"none","pointer-events":"all"})}else e&&gdprIsCookieConsentPresent||g();gdprConfigurationOptions.placeholderOnpageUnlock&&h();gdprConfigurationOptions.scriptsOnpageUnlock&&setTimeout(function(){d()},250);gdprConfigurationOptions.enableCustomScriptExecGeneric&&
!plgGdprCustomScriptExecutionGeneric&&(e=document.createElement("script"),e.innerHTML=gdprConfigurationOptions.customScriptExecGeneric,document.head.appendChild(e),plgGdprCustomScriptExecutionGeneric=!0)}if("opt-in"==c&&(!f||a("a.cc-btn",this.element).hasClass("cc-deny"))&&"deny"==b){e=localStorage.getItem("hasConsented");localStorage.removeItem("hasConsented");localStorage.removeItem("setConsentedCookie");l={hasDeclined:!0,timestamp:(new Date).getTime()};localStorage.setItem("hasFirstDeclined",JSON.stringify(l));
localStorage.setItem("hasExplititDeclinedAll",JSON.stringify(l));this.setStatus("deny",!0);if(gdprConfigurationOptions.preserveLockedCategories){if(a("input.cc-cookie-checkbox:not([readonly])").attr("disabled",!0).prop("checked",!1),a("div.cc-checkboxes-container input.cc-cookie-checkbox:not([readonly]):checked + span").addClass("cc-checkbox-switcher-category-transitioning"),n=!!jQuery("div.gdpr-component-view").length||!1){var p=a("input.cc-cookie-checkbox:not([readonly])").parents("div.gdpr-component-view");
a("div.gdpr_cookie_switcher",p).addClass("inactive")}}else a("input.cc-cookie-checkbox").attr("disabled",!0).prop("checked",!1),a("div.cc-checkboxes-container input.cc-cookie-checkbox:checked + span").addClass("cc-checkbox-switcher-category-transitioning"),(n=!!jQuery("div.gdpr-component-view").length||!1)&&a("div.gdpr_cookie_switcher",p).addClass("inactive");e?g():a.ajax({type:"POST",url:gdpr_ajax_livesite+"index.php?option=com_gdpr&task=user.processGenericCookieCategories",data:{gdpr_generic_cookie_consent:0}}).then(function(){gdprConfigurationOptions.autoRedirectOnDecline&&
gdprConfigurationOptions.autoRedirectOnDeclineLink&&(window.location.href=gdprConfigurationOptions.autoRedirectOnDeclineLink);gdprConfigurationOptions.reloadOnfirstDeclineall&&"undefined"!==typeof gdprUseCookieCategories&&plgGdprShowReloadWindow()})}if("opt-out"==c&&!f&&!localStorage.getItem("hasDeclined")){plgGdprDisableAllCookies(!0);l={hasDeclined:!0,timestamp:(new Date).getTime()};if(gdprConfigurationOptions.autoRedirectOnDecline&&gdprConfigurationOptions.autoRedirectOnDeclineLink&&!localStorage.getItem("hasFirstDeclined")){window.location.href=
gdprConfigurationOptions.autoRedirectOnDeclineLink;return}localStorage.setItem("hasDeclined",JSON.stringify(l));localStorage.setItem("hasFirstDeclined",JSON.stringify(l));localStorage.setItem("hasExplititDeclinedAll",JSON.stringify(l));gdprConfigurationOptions.preserveLockedCategories?a("input.cc-cookie-checkbox:not([readonly])").attr("disabled",!0):a("input.cc-cookie-checkbox").attr("disabled",!0);g()}"opt-out"==c&&(f||a("a.cc-btn",this.element).hasClass("cc-allow"))&&"allow"==b&&(gdprConfigurationOptions.placeholderOnpageUnlock&&
h(),gdprConfigurationOptions.scriptsOnpageUnlock&&setTimeout(function(){d()},250),gdprConfigurationOptions.enableCustomScriptExecGeneric&&!plgGdprCustomScriptExecutionGeneric&&(e=document.createElement("script"),e.innerHTML=gdprConfigurationOptions.customScriptExecGeneric,document.head.appendChild(e),plgGdprCustomScriptExecutionGeneric=!0));gdprConfigurationOptions.denyMessageEnabled&&"allow"==b&&localStorage.removeItem("hasDenyMessage")},onPopupOpen:function(b){"opt-in"!=gdprConfigurationOptions.complianceType&&
"opt-out"!=gdprConfigurationOptions.complianceType||!gdprConfigurationOptions.autoAcceptOnNextPage||b||localStorage.getItem("hasExplititDeclinedAll")||(b=localStorage.getItem("autoActivateOnNextPage"),2==parseInt(b)?(localStorage.setItem("autoActivateOnNextPage",1),"opt-in"==gdprConfigurationOptions.complianceType?(a("div.cc-window.cc-banner,div.cc-window.cc-floating").hide(),a("a.cc-btn.cc-allow").trigger("click")):"opt-out"==gdprConfigurationOptions.complianceType&&setTimeout(function(){a("a.cc-btn.cc-allow").trigger("click")},
100)):b||localStorage.setItem("autoActivateOnNextPage",2))}});if(gdprConfigurationOptions.trackExistingCheckboxSelectors)a(gdprConfigurationOptions.trackExistingCheckboxSelectors).on("change",function(b){parentForm=a(b.target).parents("form");var c={url:a(location).attr("href"),formid:parentForm.attr("id"),formname:parentForm.attr("name"),formfields:{}};a(this).is(":checked")&&0!=parseInt(a(this).val())?(b=gdprConfigurationOptions.trackExistingCheckboxConsentLogsFormfields.split(","),b=b.map(function(a,
b){return a.trim()}),a.each(b,function(b,d){b=a("input[name*="+d+"]:not(:hidden), input[id*="+d+"]:not(:hidden), textarea[name*="+d+"], textarea[id*="+d+"]",parentForm);b.length&&a.each(b,function(b,d){(b=a(d).attr("id"))||(b=a(d).attr("name"));b=b.replace(/[-_]/gi," ");b=b.replace(/[\[\]]/gi,"");b=b.replace("jform","");b=b.trim();d=a(d).val();c.formfields[b]=d})}),a.ajax({type:"POST",url:gdpr_ajax_livesite+"index.php?option=com_gdpr&task=user.storeConsent&format=raw",data:c})):a.ajax({type:"POST",
url:gdpr_ajax_livesite+"index.php?option=com_gdpr&task=user.deleteConsent&format=raw",data:c})})});