Donotsell Page Spinner 1500ms e Togglefadeisense Documento

La tua privacy è importante per noi. Come indicato nella nostra Informativa sulla Privacy, raccogliamo alcune informazioni personali attraverso le tue interazioni con il nostro sito web, inclusi cookie e tecnologie di tracciamento simili. Potremmo condividere questi dati con terze parti, come partner pubblicitari, per fornire annunci personalizzati e migliorare la tua esperienza online.

Secondo alcune leggi sulla privacy degli stati USA, la condivisione di dati personali per pubblicità mirata può essere considerata una "vendita", "condivisione" o "pubblicità mirata". A seconda della tua posizione, hai il diritto di rinunciare a queste attività.

Come Opt Out

  • Fai clic su "Opt Out" per impedire al tuo browser di condividere dati personali.
  • Seleziona la casella e inserisci la tua email per estendere questa disiscrizione al tuo account cliente.

Se il tuo browser supporta Global Privacy Control (GPC) e lo hai abilitato, elaboreremo automaticamente la tua richiesta come disiscrizione dove richiesto dalla legge.


Do il mio consenso alla raccolta della mia email e indirizzo IP per la finalità di elaborazione di questa richiesta. Per maggiori informazioni consulta la Privacy Policy &amp Terms of Service.

'; var isEmailValid = function(email) { let regex = /^(([^()\[\]\\.,;:\s@"]+(\.[^()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/; if (email == '' || email == undefined) { return false; } else { return regex.test(email); } } var usSendRequest = function(callback) { fetch('https://www.cloudflare.com/cdn-cgi/trace', { method: 'GET' , headers: { 'Content-Type': 'text/plain', }, }) .then(resp => resp.text()) .then(resp => { if (!resp.error) { let ipInfo = resp; let formData = new FormData(); if (type === 'customer/do-not-sell') { isenseGDPR.Cookies.set('cookieconsent_preferences_disabled', 'analytics,marketing,functionality,', { expires: 365 }); isenseGDPR.Cookies.set('cookieconsent_status', 'accept_selected', { expires: 365 }); if (typeof window.Shopify.customerPrivacy !== 'undefined' && typeof window.Shopify.customerPrivacy.setTrackingConsent === 'function') { if (typeof localStorage.getItem("gdprCache") !== 'undefined' && localStorage.getItem("gdprCache") !== null) { let gdprCache = JSON.parse(localStorage.getItem("gdprCache")); if (typeof gdprCache.userIsInSaleOfDataRegion !== 'undefined' && (gdprCache.userIsInSaleOfDataRegion === 'true' || gdprCache.userIsInSaleOfDataRegion === true)) { window.Shopify.customerPrivacy.setTrackingConsent( { "sale_of_data": false, }, () => { console.log('sale_of_data: false')} ); } } } else { console.log('Customer Privacy API non è definita nella pagina corrente'); } if (document.querySelector('.cc-window')) { document.querySelector('.cc-window').style.display = 'none'; } // reimposta il testo del popup document.querySelector('#donotsell-modal-container-text').innerHTML = 'Do il mio consenso alla raccolta della mia email e indirizzo IP per la finalità di elaborare questa richiesta. Per maggiori informazioni consulta Privacy Policy &amp Terms of Service.'; } formData.append('shop', Shopify.shop); formData.append('email', email); formData.append('type', type); formData.append('sourceOfRequest', 7); formData.append('ipAddress', ipInfo); formData.append('consentGiven', consentGiven); formData.append('page', 'us laws'); formData.append('lang', Shopify.locale ? Shopify.locale : ''); formData.append('gtranslateLang', isenseGDPR.Cookies.get('googtrans') ? isenseGDPR.Cookies.get('googtrans') : ''); fetch('https://gdpr.apps.isenselabs.com/gdprRequests/submitRequest', { method: 'POST', body: formData }) .then(resp => resp.json()) .then(resp => { if (!resp.error) { usSlideUpAll(); if (resp.message.length) { alert(resp.message); } else { alert('La tua richiesta è stata inviata con successo. Controlla la tua email per maggiori informazioni.'); } } else { alert(resp.message); } if (typeof callback == 'function') { callback(resp); } }) .catch(error => { alert(error.message); }) } else { alert(resp.message); } }) } //Aggiungi la modale al body, altrimenti non rimarrà centrata (anche se la posizione è fissa) document.querySelector("body").insertAdjacentHTML( 'beforeend', verificationModalContent); document.addEventListener("DOMContentLoaded", function() { let searchParams = new URLSearchParams(window.location.search); let param = searchParams.get('id'); if(param) { document.getElementById(param).scrollIntoView(); } // When the user clicks on (x), close the modal document.querySelector('.data-verification-close').addEventListener('click', function(e) { e.preventDefault(); closeVerificationModal(); }); document.querySelector('#data-verification-icon, #data-verification-container p').addEventListener('click', function(e) { e.preventDefault(); // Rileva il click su href, perché è sovrascritto. if(e.target.tagName === "A") { window.open(e.target.href, '_blank'); return; } document.querySelector('#data-verification-icon').classList.add("clicked"); setTimeout(()=>{ toggleFadeiSense(document.querySelector("#data-verification-modal"), false); document.querySelector('#data-verification-background .loading').style.display = 'inline-block'; consensoDato = true; usSendRequest(function(resp) { consentGiven = false; closeVerificationModal(); }); }, 400); }); }); function openVerificationModal(){ if(!isEmailValid(email)) { alert('Email non valida'); return; } toggleFadeiSense(document.querySelector("#data-verification-modal"), true); toggleFadeiSense(document.querySelector('#data-verification-background'), true); document.querySelector('#data-verification-container input').focus(); } function closeVerificationModal(){ toggleFadeiSense(document.querySelector("#data-verification-background"), false); document.querySelector('#data-verification-icon').classList.remove("clicked"); document.querySelector('#data-verification-background .loading').style.display = 'none'; // Metti a fuoco il pulsante del tipo di richiesta selezionato let usLawsForms = document.querySelectorAll('.form-donotsell-request'); usLawsForms.forEach(function(usLawsForm) { if (usLawsForm.style.display !== "none") { let usLawsFormLinks = usLawsForm.previousElementSibling.querySelectorAll('li'); if (usLawsFormLinks.length === 1) { usLawsFormLinks[0].querySelector('button').focus(); } else { // Logica di focus per le richieste di Portabilità dei Dati usLawsFormLinks = usLawsForm.parentElement; if (usLawsFormLinks.nodeName === 'LI') { usLawsFormLinks.querySelector('button').focus(); } } } }); } document.querySelector('#btn-donotsell-do-not-sell-request').addEventListener('change', function(e) { e.preventDefault(); let isExpanded = this.checked; usSlideUpAll(); if(isExpanded) { slideDown(document.querySelector('#form-donotsell-do-not-sell-request'), 200); } else { slideUp(document.querySelector('#form-donotsell-do-not-sell-request'), 200); } }); document.querySelector('#form-donotsell-do-not-sell-request-submit').addEventListener('click', function(e) { e.preventDefault(); email = document.querySelector('#form-donotsell-do-not-sell-request-email').value; type = 'customer/do-not-sell'; // Verifica se il cliente ha effettuato l\'accesso if (__st.cid != undefined) { document.querySelector('#donotsell-modal-container-text').innerHTML = 'Do il mio consenso alla raccolta della mia email e indirizzo IP per la finalità di elaborare questa richiesta. Per maggiori informazioni consulta Privacy Policy &amp Terms of Service.'; } else { document.querySelector('#donotsell-modal-container-text').innerHTML = 'Do il mio consenso alla raccolta della mia email e indirizzo IP per la finalità di elaborare questa richiesta. Per maggiori informazioni consulta Privacy Policy &amp Terms of Service. Nota: Se sei un utente ospite o non hai effettuato l\'accesso al tuo account, la tua scelta di opt-out sarà efficace solo per questa sessione del browser.'; } openVerificationModal(); }); // Navigazione da tastiera nel modal di verifica dati per accessibilità document.querySelector('#data-verification-modal').addEventListener('keydown', function(e) { let isTabPressed = e.keyCode === 9 || e.key === "Tab" || e.code === "Tab"; let isEscapePressed = e.keyCode === 27 || e.key === "Escape" || e.code === "Escape"; let isSpacePressed = event.keyCode === 32 || e.key === " " || event.code === "Space"; let isEnterPressed = event.keyCode === 13 || e.key === "Enter" || event.code === "Enter"; let dataVerificationCloseButton = document.querySelector('.data-verification-close'); let dataVerificationCheckbox = document.querySelector('#data-verification-container input'); let dataVerificationLink = document.querySelector('#data-verification-container a'); // Questa funzione ci evita il fastidio di chiamare e.preventDefault() dopo ogni messa a fuoco let executeFocus = (focusElement) => {focusElement.focus();e.preventDefault();} if (isEscapePressed) { if (dataVerificationCloseButton) { dataVerificationCloseButton.click(); } } if (isSpacePressed || isEnterPressed) { if (document.activeElement === dataVerificationCheckbox) { document.querySelector('#data-verification-container #data-verification-icon').click(); } } if (isTabPressed) { if (e.shiftKey) { if (dataVerificationCloseButton && document.activeElement === dataVerificationCloseButton) { executeFocus(dataVerificationLink); } } else { if (dataVerificationLink && document.activeElement === dataVerificationLink) { executeFocus(dataVerificationCloseButton); } } } }); function showSuccessMessage() { var successMessageh3 = document.getElementById('pc--opt-out-success'); var successMessageEle = successMessageh3.getElementsByTagName('span')[0]; var successMessage = 'Disiscrizione avvenuta con successo'; successMessageEle.innerHTML = successMessage; successMessageh3.style.display = 'flex'; } function showErrorMessage() { document.getElementById('pc--opt-out-error').style.display = 'flex'; } function showNotApplicableMessage() { document.getElementById('pc--opt-out-not-applicable').style.display = 'block'; } function setupForm() { var formContainer = document.getElementById('pc--opt-out-form-container'); formContainer.style.display = 'block'; } function loadFeatureCallback(error) { if (error) { throw error; } configuraModulo(); } function ccpaOptOutLoader() { window.Shopify.loadFeatures( [ { name: 'consent-tracking-api', version: '0.1', }, ], loadFeatureCallback, ); } ccpaOptOutLoader(); document.getElementById('btn-donotsell-opt-out').addEventListener('click', function (e) { e.preventDefault(); window.Shopify.customerPrivacy.setTrackingConsent({"sale_of_data": false}, () => { mostraMessaggioDiSuccesso(); }); }); if (typeof window.Shopify.customerPrivacy !== 'undefined') { var values = window.Shopify.customerPrivacy.currentVisitorConsent(); }