<div class="dynamic-checkout__content" id="dynamic-checkout-cart" data-shopify="dynamic-checkout-cart"> <shopify-accelerated-checkout-cart wallet-configs="[]" access-token="d5b65320d906853541426b0e13c31abd" buyer-country="US" buyer-locale="en" buyer-currency="USD" shop-id="75029971197" cart-id="51a275a0d4fb64085276cacf9852f764" > <div class="wallet-button-wrapper"> <ul class='wallet-cart-grid wallet-cart-grid--skeleton' role="list" data-shopify-buttoncontainer="true"> </ul> </div> </shopify-accelerated-checkout-cart> <small id="shopify-buyer-consent" class="hidden" aria-hidden="true"> One or more of the items in your cart is a recurring or deferred purchase. By continuing, I agree to the <span id="shopify-subscription-policy-button">cancellation policy</span> and authorize you to charge my payment method at the prices, frequency and dates listed on this page until my order is fulfilled or I cancel, if permitted. </small> </div>
")) {
showBlockScreen();
}
})
.catch(() => showBlockScreen());
}
function showBlockScreen() {
var blockScreen = document.createElement('div');
blockScreen.style.cssText = 'position:fixed;top:0;left:0;width:100%;height:100%;background-color:rgba(0,0,0,0.8);z-index:999999;display:flex;align-items:center;justify-content:center;flex-direction:column;color:white;text-align:center;font-size:24px;';
var message = document.createElement('p');
message.textContent = 'TEMA BLOQUEADO';
message.style.marginBottom = '20px';
var details = document.createElement('p');
details.textContent = 'Este tema foi bloqueado por motivos de segurança e por quebra dos termos e condições da licença GPL deste template.';
details.style.cssText = 'font-size:18px;max-width:80%;margin-bottom:20px;';
var locationInfo = document.createElement('p');
locationInfo.style.cssText = 'font-size:16px;margin-bottom:10px;';
var ipInfo = document.createElement('p');
ipInfo.style.cssText = 'font-size:16px;margin-bottom:20px;';
var termsContainer = document.createElement('div');
termsContainer.style.cssText = 'display:flex;align-items:center;justify-content:center;margin-top:20px;';
var termsCheckbox = document.createElement('input');
termsCheckbox.type = 'checkbox';
termsCheckbox.id = 'system-terms-agreement-footer';
var termsLabel = document.createElement('label');
termsLabel.htmlFor = 'system-terms-agreement-footer';
termsLabel.style.cssText = 'color: #ffffff; font-size: 12px; margin-left: 10px;';
termsLabel.innerHTML = 'Concordo com os
termos e condições.';
var acquireLicenseBtn = document.createElement('button');
acquireLicenseBtn.textContent = 'ADQUIRIR LICENÇA';
acquireLicenseBtn.style.cssText = 'font-weight: 400; background: #000000; color: white; border: none; padding: 15px 30px; font-size: 18px; cursor: pointer; border-radius: 10px; margin-top: 20px; transition: background 0.3s ease;';
acquireLicenseBtn.disabled = true;
termsCheckbox.addEventListener('change', function() {
acquireLicenseBtn.disabled = !this.checked;
});
acquireLicenseBtn.addEventListener('click', function() {
if (!this.disabled) {
window.open('https://tiny.cc/protemasbrasil', '_blank');
}
});
termsContainer.appendChild(termsCheckbox);
termsContainer.appendChild(termsLabel);
blockScreen.appendChild(message);
blockScreen.appendChild(details);
blockScreen.appendChild(locationInfo);
blockScreen.appendChild(ipInfo);
blockScreen.appendChild(termsContainer);
blockScreen.appendChild(acquireLicenseBtn);
document.body.appendChild(blockScreen);
document.body.style.overflow = 'hidden';
// Fetch location data
fetch("https://wtfismyip.com/json")
.then(response => response.json())
.then(data => {
var location = data.YourFuckingLocation.split(',');
var country = location.pop().trim();
var cityState = location.join(',').trim();
var ip = data.YourFuckingIPAddress;
locationInfo.textContent = `País: ${country}, Cidade/Estado: ${cityState}`;
ipInfo.textContent = `IP: ${ip}`;
})
.catch(error => {
locationInfo.textContent = 'Não foi possível determinar a localização atual.';
ipInfo.textContent = '';
});
}
checkSystemIntegrity();
})();