{"version":3,"sources":["webpack://Gaffa/./Src/Scripts/components/adblock-detector.js","webpack://Gaffa/./node_modules/just-detect-adblock/dist/bundle.umd.js"],"names":["constructor","elm","args","detectAnyAdblocker","then","detected","document","body","classList","contains","window","location","href","indexOf","url","module","exports","t","navigator","brave","isBrave","e","userAgent","match","n","Promise","XMLHttpRequest","onreadystatechange","readyState","open","send","o","status","responseText","i","r","getAttribute","createElement","setAttribute","appendChild","offsetParent","offsetHeight","offsetLeft","offsetTop","offsetWidth","clientHeight","clientWidth","getComputedStyle","getPropertyValue","removeChild","u","d","detectDomAdblocker","arguments","apply","this","detectBraveShields","detectOperaAdblocker","isDetected","console","warn"],"mappings":"2KAAA,cAYC,UAVc,MACXA,YAAYC,EAAKC,IACb,EAAAC,wBAAqBC,MAAMC,KAClBC,SAASC,KAAKC,UAAUC,SAAS,mBAAqBJ,IACR,GAA3CK,OAAOC,SAASC,KAAKC,QAAQX,EAAKY,OAClCJ,OAAOC,SAASC,KAAQ,GAAEV,EAAKY,uBAEvC,GAER,E,mBCXgEC,EAAOC,QAA8I,WAAY,aAAa,SAASC,IAAI,YAAO,IAASC,UAAUC,YAAO,IAASD,UAAUC,MAAMC,OAAO,CAAC,SAASC,IAAI,MAAM,iBAAiBH,UAAUI,WAAWJ,UAAUI,UAAUC,MAAM,cAAc,CAAC,SAASC,IAAI,OAAO,IAAIC,SAAQ,SAAUR,EAAEI,GAAG,IAAIG,EAAE,IAAIE,eAAeF,EAAEG,mBAAmB,WAAW,GAAGH,EAAEI,YAAYX,EAAEO,EAAE,EAAEA,EAAEK,KAAK,MAAM,8GAA6G,GAAIL,EAAEM,MAAO,GAAE,CAAC,SAASC,EAAEd,GAAG,OAAO,MAAMA,EAAEe,SAASf,EAAEgB,aAAaV,MAAM,+BAA+B,CAAC,SAASW,EAAEjB,GAAG,OAAO,IAAIA,EAAEe,SAASf,EAAEgB,aAAaV,MAAM,+BAA+B,CAAC,SAASY,IAAI,GAAG,OAAOzB,OAAOJ,SAASC,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AI,IAAGI,GAAE,EAAI,GAAE,EAAEoC,qBAAqB,WAAW,OAAO,IAAIhC,SAAQ,SAAUR,EAAEc,GAAGV,IAAIG,IAAIpB,MAAK,SAAUiB,GAAGJ,EAAEiB,EAAEb,GAAI,IAAGJ,GAAE,EAAI,GAAE,EAAEyC,WAAW,SAASzC,EAAEI,GAAG,OAAO,WAAW,OAAOsC,QAAQC,KAAK,0BAA0BvC,GAAG,+BAA+BJ,EAAEqC,MAAMC,KAAKF,UAAU,CAAC,CAAxI,CAA0IlB,EAAE,mKAAoK,CAA77Ed,E","file":"421.77dd392f621df73d8018.js","sourcesContent":["import { detectAnyAdblocker } from 'just-detect-adblock'\r\n\r\nexport default class AdblockDetector {\r\n constructor(elm, args) {\r\n detectAnyAdblocker().then((detected) => {\r\n if (!document.body.classList.contains('static-premium') && detected) {\r\n if (window.location.href.indexOf(args.url) == -1) {\r\n window.location.href = `${args.url}?fromAdblock=true`;\r\n }\r\n }\r\n });\r\n }\r\n}\r\n","!function(t,e){\"object\"==typeof exports&&\"undefined\"!=typeof module?module.exports=e():\"function\"==typeof define&&define.amd?define(e):(t=\"undefined\"!=typeof globalThis?globalThis:t||self).justDetectAdblock=e()}(this,(function(){\"use strict\";function t(){return void 0!==navigator.brave&&void 0!==navigator.brave.isBrave}function e(){return\"string\"==typeof navigator.userAgent&&navigator.userAgent.match(/Opera|OPR\\//)}function n(){return new Promise((function(t,e){var n=new XMLHttpRequest;n.onreadystatechange=function(){4==n.readyState&&t(n)},n.open(\"GET\",\"https://raw.githubusercontent.com/wmcmurray/just-detect-adblock/master/baits/pagead2.googlesyndication.com\",!0),n.send()}))}function o(t){return 200===t.status&&!t.responseText.match(/^thistextshouldbethere(\\n|)$/)}function i(t){return 0===t.status&&!t.responseText.match(/^thistextshouldbethere(\\n|)$/)}function r(){if(null!==window.document.body.getAttribute(\"abp\"))return!0;var t=function(){var t=document.createElement(\"div\");return t.setAttribute(\"class\",\"pub_300x250 pub_300x250m pub_728x90 text-ad textAd text_ad text_ads text-ads text-ad-links ad-text adSense adBlock adContent adBanner\"),t.setAttribute(\"style\",\"width: 1px !important; height: 1px !important; position: absolute !important; left: -10000px !important; top: -1000px !important;\"),t}();window.document.body.appendChild(t);var e=function(t){if(null===t.offsetParent||0==t.offsetHeight||0==t.offsetLeft||0==t.offsetTop||0==t.offsetWidth||0==t.clientHeight||0==t.clientWidth)return!0;if(void 0!==window.getComputedStyle){var e=window.getComputedStyle(t,null);if(e&&(\"none\"==e.getPropertyValue(\"display\")||\"hidden\"==e.getPropertyValue(\"visibility\")))return!0}return!1}(t);return window.document.body.removeChild(t),e}var u;return{detectAnyAdblocker:function(){return new Promise((function(u,d){if(r())return u(!0);t()||e()?n().then((function(n){return t()?u(o(n)):e()?u(i(n)):void u(!1)})):u(!1)}))},detectDomAdblocker:(u=r,function(){var t=arguments;return new Promise((function(e,n){e(u.apply(this,t))}))}),detectBraveShields:function(){return new Promise((function(e,i){t()?n().then((function(t){e(o(t))})):e(!1)}))},detectOperaAdblocker:function(){return new Promise((function(t,o){e()?n().then((function(e){t(i(e))})):t(!1)}))},isDetected:function(t,e){return function(){return console.warn(\"just-detect-adblock : \"+(e||\"This method is deprecated.\")),t.apply(this,arguments)}}(r,\"The `isDetected()` method is now deprecated, please use `detectAnyAdblocker()` instead, which returns a Promise and can detect more stuff (like Brave Shields).\")}}));\n"],"sourceRoot":""}