PageSourceSearch

https://sportsnaut.com/wp-content/themes/tpd-theme/dist/rewarded-modal.min.js?ver=2.2.160

js sportsnaut.com collected 2026-09-24 18:12:01 UTC 3,160 bytes, 1 lines download raw bytes

1!function(){"use strict";if(window.tpdRewardedSettings&&window.tpdRewardedSettings.enabled){var e=window.tpdRewardedSettings,t=document.getElementById("tpd-rewarded-modal");if(t){var d=t.querySelector("[data-tpd-rewarded-options]"),n=t.querySelector("[data-tpd-rewarded-status]"),a=t.querySelector("[data-tpd-rewarded-status-text]"),o=t.querySelector(".tpd-rewarded-modal__close"),i={},r=null,u="",s=0;window.tpd=window.tpd||{},window.tpd.rewardedModal=window.tpd.rewardedModal||{},window.tpd.rewardedModal.registerOption=function(e){e&&e.kind&&"function"==typeof e.onClick&&(i[e.kind]=e.onClick)},window.tpd.rewardedModal.closeModal=c,window.tpd.rewardedModal.setStatus=l,document.addEventListener("click",function(d){if(d.target.closest("[data-tpd-rewarded-trigger]"))return d.preventDefault(),r=document.activeElement,u=document.body.style.overflow,t.hidden=!1,document.body.style.overflow="hidden",s++,l(null),void setTimeout(function(){o&&o.focus()},0);if(d.target.closest("[data-tpd-rewarded-close]"))return d.preventDefault(),void c();var n=d.target.closest("[data-tpd-rewarded-option]");if(n&&t.contains(n)){d.preventDefault();var a=n.getAttribute("data-tpd-rewarded-option");if("watch-video"===a)return void w();var f=i[a];if("function"==typeof f)try{f({closeModal:c,setStatus:l,settings:e})}catch(p){}}}),document.addEventListener("keydown",function(e){if(!t.hidden)if("Escape"!==e.key){if("Tab"===e.key){var d=t.querySelectorAll('button:not([disabled]), [href], input:not([disabled]), select:not([disabled]), textarea:not([disabled]), [tabindex]:not([tabindex="-1"])');if(0!==d.length){var n=d[0],a=d[d.length-1];e.shiftKey&&document.activeElement===n?(e.preventDefault(),a.focus()):e.shiftKey||document.activeElement!==a||(e.preventDefault(),n.focus())}}}else c()})}}function c(){t.hidden=!0,document.body.style.overflow=u,s++,r&&"function"==typeof r.focus&&r.focus()}function l(e,t){if(!e)return d.hidden=!1,n.hidden=!0,n.removeAttribute("data-tpd-state"),void(a.textContent="");d.hidden=!0,n.hidden=!1,n.setAttribute("data-tpd-state",e),a.textContent=t||""}function w(){if((n=window.tpd&&window.tpd.rewardedAd)&&"function"==typeof n.isActive&&n.isActive()){var d=function(){var e=window.tpd&&window.tpd.rewardedAd;return e&&"function"==typeof e.remainingMinutes?e.remainingMinutes():null}();l("success",d?"You have "+d+" minutes ad-free remaining.":"You are already ad-free.")}else{var n;l("loading","Loading ad…");var a,o=s,i=function(){return t.hidden||o!==s};(a={rewardMinutes:e.rewardMinutes,videoDurationSeconds:e.videoDurationSeconds},new Promise(function(e,t){var d=Date.now();!function n(){var o=window.tpd&&window.tpd.rewardedAd;if(o&&"function"==typeof o.play)try{Promise.resolve(o.play(a)).then(e,t)}catch(i){t(i)}else Date.now()-d>5e3?t(new Error("Rewarded ad service not available.")):setTimeout(n,100)}()})).then(function(t){i()||(t&&t.granted?(l("success","Thanks! Enjoy "+(t.earnedMinutes||e.rewardMinutes)+" minutes ad-free."),setTimeout(function(){i()||window.location.reload()},3e3)):l("error","Ad unavailable. Please try again later."))})["catch"](function(){i()||l("error","Ad unavailable. Please try again later.")})}}}();

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.