OwlCyberSecurity - MANAGER
Edit File: ai-lists.q.min.js
jQuery(function(a){function B(c){c=c.match(aa);return null!=c&&1<c.length&&"string"===typeof c[1]&&0<c[1].length?c[1].toLowerCase():null}function E(c){return c.includes(":")?(c=c.split(":"),1E3*(3600*parseInt(c[0])+60*parseInt(c[1])+parseInt(c[2]))):null}function v(c){try{var k=Date.parse(c);isNaN(k)&&(k=null)}catch(G){k=null}if(null==k&&c.includes(" ")){c=c.split(" ");try{k=Date.parse(c[0]),k+=E(c[1]),isNaN(k)&&(k=null)}catch(G){k=null}}return k}function H(){(jQuery("#ai-iab-tcf-bar").length||jQuery(".ai-list-manual").length)&& "function"==typeof __tcfapi&&"function"==typeof ai_load_blocks&&"undefined"==typeof ai_iab_tcf_callback_installed&&(__tcfapi("addEventListener",2,function(c,k){k&&"useractioncomplete"===c.eventStatus&&(ai_tcData=c,ai_load_blocks(),jQuery("#ai-iab-tcf-status").text("IAB TCF 2.0 DATA LOADED"),jQuery("#ai-iab-tcf-bar").addClass("status-ok").removeClass("status-error"))}),ai_iab_tcf_callback_installed=!0)}function w(c){c=`; ${document.cookie}`.split(`; ${c}=`);if(2===c.length)return c.pop().split(";").shift()} function h(c){if(w(c)){var k=window.location.hostname;w(c)&&(document.cookie=c+"=;path=/"+(k?";domain="+k:"")+";expires=Thu, 01 Jan 1970 00:00:01 GMT");document.cookie=c+"=; Path=/; Expires=Thu, 01 Jan 1970 00:00:01 GMT;"}}Array.prototype.includes||(Array.prototype.includes=function(c){return!!~this.indexOf(c)});var aa=RegExp(":\\/\\/(.[^/:]+)","i");ai_process_lists=function(c){function k(l,e,d){if(0==l.length){if("!@!"==d)return!0;e!=d&&("true"==d.toLowerCase()?d=!0:"false"==d.toLowerCase()&&(d= !1));return e==d}if("object"!=typeof e&&"array"!=typeof e)return!1;var n=l[0];l=l.slice(1);if("*"==n)for(let [,m]of Object.entries(e)){if(k(l,m,d))return!0}else if(n in e)return k(l,e[n],d);return!1}function G(l,e,d){if("object"!=typeof l||-1==e.indexOf("["))return!1;e=e.replace(/]| /gi,"").split("[");return k(e,l,d)}function ba(){"function"==typeof __tcfapi&&(a("#ai-iab-tcf-status").text("IAB TCF 2.0 DETECTED"),__tcfapi("getTCData",2,function(l,e){e?(a("#ai-iab-tcf-bar").addClass("status-ok"),"tcloaded"== l.eventStatus||"useractioncomplete"==l.eventStatus?(ai_tcData=l,l.gdprApplies?a("#ai-iab-tcf-status").text("IAB TCF 2.0 DATA LOADED"):jQuery("#ai-iab-tcf-status").text("IAB TCF 2.0 GDPR DOES NOT APPLY"),a("#ai-iab-tcf-bar").addClass("status-ok").removeClass("status-error"),setTimeout(function(){ai_process_lists()},10)):"cmpuishown"==l.eventStatus&&(ai_cmpuishown=!0,a("#ai-iab-tcf-status").text("IAB TCF 2.0 CMP UI SHOWN"),a("#ai-iab-tcf-bar").addClass("status-ok").removeClass("status-error"))):(a("#ai-iab-tcf-status").text("IAB TCF 2.0 __tcfapi getTCData failed"), a("#ai-iab-tcf-bar").removeClass("status-ok").addClass("status-error"))}))}function K(l){"function"==typeof __tcfapi?("undefined"==typeof ai_iab_tcf_callback_installed&&H(),"undefined"==typeof ai_tcData_requested&&(ai_tcData_requested=!0,ba(),cookies_need_tcData=!0)):l&&(a("#ai-iab-tcf-bar").addClass("status-error").removeClass("status-ok"),a("#ai-iab-tcf-status").text("IAB TCF 2.0 MISSING: __tcfapi function not found"))}c=null==c?a("div.ai-list-data, meta.ai-list-data"):a(c).filter(".ai-list-data"); if(c.length){c.removeClass("ai-list-data");var U=getAllUrlParams(window.location.search);if(null!=U.referrer)var y=U.referrer;else y=document.referrer,""!=y&&(y=B(y));var Q=window.navigator.userAgent,R=Q.toLowerCase(),V=navigator.language,L=V.toLowerCase();if("undefined"!==typeof MobileDetect)var W=new MobileDetect(Q);c.each(function(){var l=document.cookie.split(";");l.forEach(function(u,g){l[g]=u.trim()});var e=a(this).closest("div.AI_FUNCT_GET_BLOCK_CLASS_NAME"),d=!0,n=a(this).attr("referer-list"); if("undefined"!=typeof n){n=b64d(n).split(",");var m=a(this).attr("referer-list-type"),I=!1;a.each(n,function(u,g){g=g.trim();if(""==g)return!0;if("*"==g.charAt(0))if("*"==g.charAt(g.length-1)){if(g=g.substr(1,g.length-2),-1!=y.indexOf(g))return I=!0,!1}else{if(g=g.substr(1),y.substr(-g.length)==g)return I=!0,!1}else if("*"==g.charAt(g.length-1)){if(g=g.substr(0,g.length-1),0==y.indexOf(g))return I=!0,!1}else if("#"==g){if(""==y)return I=!0,!1}else if(g==y)return I=!0,!1});var p=I;switch(m){case "B":p&& (d=!1);break;case "W":p||(d=!1)}}if(d&&(n=a(this).attr("client-list"),"undefined"!=typeof n&&"undefined"!==typeof W))switch(n=b64d(n).split(","),m=a(this).attr("client-list-type"),p=!1,a.each(n,function(u,g){if(""==g.trim())return!0;u=g.split("&&");a.each(u,function(r,b){r=!0;var t=!1;for(b=b.trim();"!!"==b.substring(0,2);)r=!r,b=b.substring(2);"language:"==b.substring(0,9)&&(t=!0,b=b.substring(9).toLowerCase());var q=!1;t?"*"==b.charAt(0)?"*"==b.charAt(b.length-1)?(b=b.substr(1,b.length-2).toLowerCase(), -1!=L.indexOf(b)&&(q=!0)):(b=b.substr(1).toLowerCase(),L.substr(-b.length)==b&&(q=!0)):"*"==b.charAt(b.length-1)?(b=b.substr(0,b.length-1).toLowerCase(),0==L.indexOf(b)&&(q=!0)):b==L&&(q=!0):"*"==b.charAt(0)?"*"==b.charAt(b.length-1)?(b=b.substr(1,b.length-2).toLowerCase(),-1!=R.indexOf(b)&&(q=!0)):(b=b.substr(1).toLowerCase(),R.substr(-b.length)==b&&(q=!0)):"*"==b.charAt(b.length-1)?(b=b.substr(0,b.length-1).toLowerCase(),0==R.indexOf(b)&&(q=!0)):W.is(b)&&(q=!0);p=q?r:!r;if(!p)return!1});if(p)return!1}), m){case "B":p&&(d=!1);break;case "W":p||(d=!1)}var M=n=!1;for(m=1;2>=m;m++)if(d){switch(m){case 1:var f=a(this).attr("cookie-list");break;case 2:f=a(this).attr("parameter-list")}if("undefined"!=typeof f){f=b64d(f);switch(m){case 1:var A=a(this).attr("cookie-list-type");break;case 2:A=a(this).attr("parameter-list-type")}f=f.replace("tcf-gdpr","tcf-v2[gdprApplies]=true");f=f.replace("tcf-no-gdpr","tcf-v2[gdprApplies]=false");f=f.replace("tcf-google","tcf-v2[vendor][consents][755]=true && tcf-v2[purpose][consents][1]=true"); f=f.replace("tcf-no-google","!!tcf-v2[vendor][consents][755]");f=f.replace("tcf-media.net","tcf-v2[vendor][consents][142]=true && tcf-v2[purpose][consents][1]=true");f=f.replace("tcf-no-media.net","!!tcf-v2[vendor][consents][142]");f=f.replace("tcf-amazon","tcf-v2[vendor][consents][793]=true && tcf-v2[purpose][consents][1]=true");f=f.replace("tcf-no-amazon","!!tcf-v2[vendor][consents][793]");f=f.replace("tcf-ezoic","tcf-v2[vendor][consents][347]=true && tcf-v2[purpose][consents][1]=true");f=f.replace("tcf-no-ezoic", "!!tcf-v2[vendor][consents][347]");var D=f.split(","),X=[];l.forEach(function(u){u=u.split("=");try{var g=JSON.parse(decodeURIComponent(u[1]))}catch(r){g=decodeURIComponent(u[1])}X[u[0]]=g});p=!1;var N=a(this);a.each(D,function(u,g){u=g.split("&&");a.each(u,function(r,b){r=!0;for(b=b.trim();"!!"==b.substring(0,2);)r=!r,b=b.substring(2);var t=b,q="!@!",Y=-1!=b.indexOf("["),Z=(0==b.indexOf("tcf-v2")||0==b.indexOf("euconsent-v2"))&&-1!=b.indexOf("[");-1!=b.indexOf("=")&&(q=b.split("="),t=q[0],q=q[1], Y=-1!=t.indexOf("["),Z=(0==t.indexOf("tcf-v2")||0==t.indexOf("euconsent-v2"))&&-1!=t.indexOf("["));if(Z)a("#ai-iab-tcf-bar").show(),"object"==typeof ai_tcData?(a("#ai-iab-tcf-bar").addClass("status-ok"),t=t.replace(/]| /gi,"").split("["),t.shift(),p=(t=k(t,ai_tcData,q))?r:!r):(N.addClass("ai-list-data"),M=!0,"function"==typeof __tcfapi?K(!1):"undefined"==typeof ai_tcData_retrying&&(ai_tcData_retrying=!0,setTimeout(function(){"function"==typeof __tcfapi?K(!1):setTimeout(function(){"function"==typeof __tcfapi? K(!1):setTimeout(function(){K(!0)},3E3)},1E3)},600)));else if(Y)p=(t=G(X,t,q))?r:!r;else{var S=!1;"!@!"==q?l.every(function(ca){return ca.split("=")[0]==b?(S=!0,!1):!0}):S=-1!=l.indexOf(b);p=S?r:!r}if(!p)return!1});if(p)return!1});p&&(M=!1);switch(A){case "B":p&&(d=!1);break;case "W":p||(d=!1)}}}a(this).hasClass("ai-list-manual")&&(d?(N.removeClass("ai-list-data"),N.removeClass("ai-list-manual")):(n=!0,N.addClass("ai-list-data")));if(d||!n&&!M)if(f=a(this).data("debug-info"),"undefined"!=typeof f&& (f=a("."+f),0!=f.length)){var x=f.parent();x.hasClass("ai-debug-info")&&x.remove()}x=a(this).prevAll(".ai-debug-bar.ai-debug-lists");f=""==y?"#":y;x.find(".ai-debug-name.ai-list-info").text(f).attr("title",Q+"\n"+V);x.find(".ai-debug-name.ai-list-status").text(d?ai_front.visible:ai_front.hidden);f=!1;if(d&&(m=a(this).attr("scheduling-start"),A=a(this).attr("scheduling-end"),D=a(this).attr("scheduling-days"),"undefined"!=typeof m&&"undefined"!=typeof A&&"undefined"!=typeof D)){f=!0;var z=b64d(m),O= b64d(A),T=parseInt(a(this).attr("scheduling-fallback")),P=parseInt(a(this).attr("gmt"));z.includes("-")||O.includes("-")?(A=v(z)+P,m=v(O)+P):(A=E(z),m=E(O));D=b64d(D).split(",");x=a(this).attr("scheduling-type");var C=(new Date).getTime()+P,F=new Date(C),J=F.getDay();z.includes("-")||O.includes("-")||(z=(new Date(F.getFullYear(),F.getMonth(),F.getDate())).getTime()+P,C-=z,0>C&&(C+=864E5));0==J?J=6:J--;z=C>=A&&C<m&&D.includes(J.toString());switch(x){case "B":z=!z}z||(d=!1);F=F.toISOString().split(".")[0].replace("T", " ");x=a(this).prevAll(".ai-debug-bar.ai-debug-scheduling");x.find(".ai-debug-name.ai-scheduling-info").text(F+" "+J+" current_time:"+Math.floor(C.toString()/1E3)+" start_date:"+Math.floor(A/1E3).toString()+" ="+(C>=A).toString()+" end_date:"+Math.floor(m/1E3).toString()+" =:"+(C<m).toString()+" days:"+D.toString()+" =:"+D.includes(J.toString()).toString());x.find(".ai-debug-name.ai-scheduling-status").text(d?ai_front.visible:ai_front.hidden);d||0==T||(x.removeClass("ai-debug-scheduling").addClass("ai-debug-fallback"), x.find(".ai-debug-name.ai-scheduling-status").text(ai_front.fallback+" = "+T))}if(n||!d&&M)return!0;a(this).css({visibility:"",position:"",width:"",height:"","z-index":""});d?(e.css({visibility:""}),e.hasClass("ai-remove-position")&&e.css({position:""}),"undefined"!=typeof a(this).data("code")&&(d=b64d(a(this).data("code")),0!=a(this).closest("head").length?(a(this).after(d),a(this).remove()):a(this).append(d),ai_process_element_lists(this))):f&&!z&&0!=T?(e.css({visibility:""}),e.hasClass("ai-remove-position")&& e.css({position:""}),a(this).next(".ai-fallback").removeClass("ai-fallback"),"undefined"!=typeof a(this).data("fallback-code")?(d=b64d(a(this).data("fallback-code")),a(this).append(d),ai_process_element_lists(this)):(a(this).hide(),!e.find(".ai-debug-block").length&&e[0].hasAttribute("style")&&-1==e.attr("style").indexOf("height:")&&e.hide()),d=e.attr("data-ai"),"undefined"!==typeof d&&!1!==d&&(d=a(this).attr("fallback-tracking"),"undefined"!==typeof d&&!1!==d&&e.attr("data-ai-"+a(this).attr("fallback_level"), d))):(a(this).hide(),e.length&&(e.removeAttr("data-ai").removeClass("ai-track"),e.find(".ai-debug-block").length?(e.css({visibility:""}).removeClass("ai-close"),e.hasClass("ai-remove-position")&&e.css({position:""})):e[0].hasAttribute("style")&&-1==e.attr("style").indexOf("height:")&&e.hide()));a(this).attr("data-code","");a(this).attr("data-fallback-code","");e.removeClass("ai-list-block")})}};a(document).ready(function(c){setTimeout(function(){ai_process_lists();setTimeout(function(){H();if("function"== typeof ai_load_blocks){jQuery(document).on("cmplzEnableScripts",k);jQuery(document).on("cmplz_event_marketing",k);function k(G){"cmplzEnableScripts"!=G.type&&"all"!==G.consentLevel||ai_load_blocks()}}},50);jQuery(".ai-debug-page-type").dblclick(function(){jQuery("#ai-iab-tcf-status").text("CONSENT COOKIES");jQuery("#ai-iab-tcf-bar").show()});jQuery("#ai-iab-tcf-bar").click(function(){h("euconsent-v2");h("__lxG__consent__v2");h("__lxG__consent__v2_daisybit");h("__lxG__consent__v2_gdaisybit");h("CookieLawInfoConsent"); h("cookielawinfo-checkbox-advertisement");h("cookielawinfo-checkbox-analytics");h("cookielawinfo-checkbox-necessary");h("complianz_policy_id");h("complianz_consent_status");h("cmplz_marketing");h("cmplz_consent_status");h("cmplz_preferences");h("cmplz_statistics-anonymous");h("cmplz_choice");h("cmplz_banner-status");h("cmplz_functional");h("cmplz_policy_id");h("cmplz_statistics");h("moove_gdpr_popup");h("real_cookie_banner-blog:1-tcf");h("real_cookie_banner-blog:1");jQuery("#ai-iab-tcf-status").text("CONSENT COOKIES DELETED")})}, 5)})}); function ai_process_element_lists(a){setTimeout(function(){"function"==typeof ai_process_rotations_in_element&&ai_process_rotations_in_element(a);"function"==typeof ai_process_lists&&ai_process_lists(jQuery(".ai-list-data",a));"function"==typeof ai_process_ip_addresses&&ai_process_ip_addresses(jQuery(".ai-ip-data",a));"function"==typeof ai_process_filter_hooks&&ai_process_filter_hooks(jQuery(".ai-filter-check",a));"function"==typeof ai_adb_process_blocks&&ai_adb_process_blocks(a);"function"==typeof ai_process_impressions&& 1==ai_tracking_finished&&ai_process_impressions();"function"==typeof ai_install_click_trackers&&1==ai_tracking_finished&&ai_install_click_trackers();"function"==typeof ai_install_close_buttons&&ai_install_close_buttons(document)},5)} function getAllUrlParams(a){var B=a?a.split("?")[1]:window.location.search.slice(1);a={};if(B){B=B.split("#")[0];B=B.split("&");for(var E=0;E<B.length;E++){var v=B[E].split("="),H=void 0,w=v[0].replace(/\[\d*\]/,function(h){H=h.slice(1,-1);return""});v="undefined"===typeof v[1]?"":v[1];w=w.toLowerCase();v=v.toLowerCase();a[w]?("string"===typeof a[w]&&(a[w]=[a[w]]),"undefined"===typeof H?a[w].push(v):a[w][H]=v):a[w]=v}}return a};