<div class="adde_modal-overlay" id="adde_modal-overlay" tabindex="-1"></div>
<div class="adde_modal_detector adde_modal_detector-hide" id="adde_modal-modal">
	<div class="adde_modal_detector-img">
		<img src="data:image/svg+xml;base64,PHN2ZyBpZD0iQ2FscXVlXzEiIGRhdGEtbmFtZT0iQ2FscXVlIDEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgdmlld0JveD0iMCAwIDk2LjgwNiA5Ni44MDYiPjxkZWZzPjxzdHlsZT4uY2xzLTF7ZmlsbDojZjQwZDEyO3N0cm9rZTojZmZmO3N0cm9rZS1taXRlcmxpbWl0OjE2LjExNjtzdHJva2Utd2lkdGg6My4yNDdweDt9LmNscy0yLC5jbHMtM3tmaWxsOiNmZmY7fS5jbHMtMntmaWxsLXJ1bGU6ZXZlbm9kZDt9PC9zdHlsZT48L2RlZnM+PHBhdGggY2xhc3M9ImNscy0xIiBkPSJNNDguNCw5NS4xODJBNDYuNzc5LDQ2Ljc3OSwwLDAsMCw5NS4xODIsNDguNGgwYTQ2Ljc4LDQ2Ljc4LDAsMSwwLTkzLjU1OSwwaDBBNDYuNzgsNDYuNzgsMCwwLDAsNDguNCw5NS4xODJaIi8+PHBhdGggY2xhc3M9ImNscy0yIiBkPSJNNTcuOTEzLDM2LjcxM2MtMS45LDAtMS44OCwyLjE5NC0xLjg4LDIuMTk0bC0uMDE3LDcuOTM0YS4zNjIuMzYyLDAsMCwxLS4zNjguMzgxYy0uMzU2LDAtLjMxNC0uMzgxLS4zMTQtLjM4MWwtLjAyMS0xMy4xMjJzLjEyMS0yLjU3NS0yLjE0LTIuNTc1Yy0yLjMsMC0yLjE3NywyLjUyOS0yLjE3NywyLjUyOVY0NS43NTlsOC45LDguODkyVjM4LjkwN1M1OS45MzUsMzYuNzEzLDU3LjkxMywzNi43MTNaIi8+PHBhdGggY2xhc3M9ImNscy0yIiBkPSJNNDguMTU4LDI4LjhjLTIuMjYxLDAtMi4xMjMsMi40NTMtMi4xMjM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echo esc_html( ADDE()->get_xbox_field_with_default( 'adde-options', 'adblocker-detector-title' ) ); ?>
	</div>
	<div class="adde_modal_detector-content">
		<?php echo esc_html( ADDE()->get_xbox_field_with_default( 'adde-options', 'adblocker-detector-description' ) ); ?>
	</div>
	<div class="adde_modal_detector-action">
		<a class="adde_modal_detector-action-btn-refresh" onclick="reload()"><?php echo esc_html( ADDE()->get_xbox_field_with_default( 'adde-options', 'adblocker-detector-refresh-button-text' ) ); ?></a>
		<?php if ( 'on' === ADDE()->get_xbox_field_with_default( 'adde-options', 'display-adblocker-detector-close-button' ) ) : ?>
			<a class="adde_modal_detector-action-btn-close" onclick="adde_modal_detector(false)"><?php echo esc_html( ADDE()->get_xbox_field_with_default( 'adde-options', 'adblocker-detector-close-button-text' ) ); ?></a>
		<?php endif; ?>
	</div>
</div>
<?php if ( ! ( 'on' === ADDE()->get_xbox_field_with_default( 'adde-options', 'adblocker-detector-dev-mode' ) && current_user_can( 'administrator' ) ) ) : ?>
<div class="demo-wrapper" style="display:none;"><div class="ads"><img id="add-image" src="<?php echo esc_url( ADDE_URL . 'public/assets/images/ads.png' ); ?>" height="250" width="300" alt=""></div></div>
<?php endif; ?>
<script>function isHidden(e){return"none"===window.getComputedStyle(e).display}function reload(){window.location.href=window.location.href}function hasClass(e,d){return!!e.className.match(new RegExp("(\\s|^)"+d+"(\\s|$)"))}function addClass(e,d){hasClass(e,d)||(e.className+=" "+d)}function removeClass(e,d){if(hasClass(e,d)){var a=new RegExp("(\\s|^)"+d+"(\\s|$)");e.className=e.className.replace(a," ")}}document.addEventListener("DOMContentLoaded",init,!1);let ads=document.createElement("script");ads.setAttribute("src","https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"),document.head.appendChild(ads);let intervalId,count=0;function adde_modal_detector(e){var d=document.getElementById("adde_modal-overlay"),a=document.getElementById("adde_modal-modal");e?(clearInterval(intervalId),null!==d&&addClass(d,"active"),addClass(a,"adde_modal_detector-show"),removeClass(a,"adde_modal_detector-hide")):(null!==d&&removeClass(d,"active"),removeClass(a,"adde_modal_detector-show"),addClass(a,"adde_modal_detector-hide"))}function checkMultiple(){let e=!1;const d=document.createElement("div");d.innerHTML="&nbsp;",d.className="adsbox";try{document.body.appendChild(d);var a=document.querySelector(".adsbox");e=!a||0===a.offsetHeight}finally{d.parentNode.removeChild(d)}return e}function init(){adsBlocked(function(e){e?adde_modal_detector(!0):null==window.adsbygoogle?count>1?adde_modal_detector(!0):count++:adde_modal_detector(isHidden(document.getElementById("add-image")))})}function adsBlocked(e){var d=new Request("https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js",{method:"HEAD",mode:"no-cors"});fetch(d).then(function(d){e(!1)}).catch(function(d){e(!0)})}window.onload=(e=>{intervalId=window.setInterval(function(){init()},100)});</script>
