Respuesta de la función Appisendrequest y cargador giratorio infinito de 1500 ms con rotación de 360 grados

#form-appi-edit-account-request,

#form-appi-requests-request,

#form-appi-personal-information-request,

#form-appi-orders-request,

#form-appi-personal-data-report-request,

#form-appi-delete-account-request ,

#form-appi-do-not-sell-request {

display: none;

}

#appi_page button {

background-color: transparent;

border: 0;

border-bottom: 1px solid black;

padding: 0px;

}

/* Fondo del Modal */

#data-verification-background {

display: none;

position: fixed;

z-index: 1;

padding-top: calc(50vh - 83px);

left: 0;

top: 0;

width: 100%;

height: 100%;

overflow: auto;

background-color: rgb(0,0,0);

background-color: rgba(0,0,0,0.4);

opacity: unset;

z-index: 9999;

}

/* Contenido del Modal */

#data-verification-modal {

background-color: #fefefe;

margen: auto;

padding: 16px;

border: 1px solid #888;

width: 38%;

}

/* Botón de cierre del modal */

.data-verification-close {

color: #aaaaaa;

float: right;

font-size: 28px;

font-weight: bold;

line-height: 17px;

background-color: transparent;

border: 0px;

padding: 0px;

}

.data-verification-close:hover {

color: #000;

text-decoration: none;

cursor: pointer;

}

/* Texto de la casilla de verificación */

#data-verification-container p{

display: inline-block;

relleno: 0;

margen: 0;

altura-de-línea: 24px;

relleno-izquierdo: 10px;

alineación-vertical: top;

ancho: calc(100% - 45px);

}

#data-verification-container a, #data-verification-container a:hover{

text-decoration: underline!important;

color: #4285f4;

}

#data-verification-container input {

opacity: 0;

ancho: 0;

altura: 0;

margen: 0;

relleno: 0;

}

/* Icono de casilla de verificación */

#data-verification-icon {

cursor: pointer;

position: relative;

margen: auto;

ancho: 18px;

altura: 18px;

-webkit-tap-highlight-color: transparent;

transform: translate3d(0, 0, 0);

margen-superior: 2px;

}

#data-verification-icon:before {

content: "";

posición: absolute;

top: -7px;

left: -7px;

width: 32px;

height: 32px;

border-radius: 50%;

background: rgba(34,50,84,0.03);

opacity: 0;

transition: opacity 0.2s ease;

}

#data-verification-icon svg {

position: relative;

z-index: 1;

fill: none;

stroke-linecap: round;

stroke-linejoin: round;

stroke: #c8ccd4;

stroke-width: 1.5;

transform: translate3d(0, 0, 0);

transition: all 0.2s ease;

}

#data-verification-icon svg path {

stroke-dasharray: 60;

stroke-dashoffset: 0;

}

#data-verification-icon svg polyline {

stroke-dasharray: 22;

stroke-dashoffset: 66;

}

#data-verification-icon:hover:before {

opacity: 1;

}

#data-verification-container:hover #data-verification-icon svg {

stroke: #4285f4;

}

#data-verification-icon.clicked svg {

stroke: #4285f4;

}

#data-verification-icon.clicked svg path {

stroke-dashoffset: 60;

transition: all 0.3s linear;

}

#data-verification-icon.clicked svg polyline {

stroke-dashoffset: 42;

transition: all 0.2s linear;

transition-delay: 0.15s;

}

/* Diseño accesible */

#data-verification-icon:focus, .data-verification-close:focus, #data-verification-container input:focus ~ #data-verification-icon svg, #data-verification-container a:focus {

box-shadow: 0 0 0 3px rgba(21, 156, 228, 0.4);

transition: all 0.3s ease;

outline: none;

transform: scale(1.06);

}

#appi_page .list-unstyled li button {

cursor: pointer;

}

.show-isense {

transition: opacity 400ms !important;

}

.hide-isense {

opacity: 0 !important;

transition: 0.4s ease-out;

}

/* Cambios del modal en resolución móvil */

@media only screen and (max-width: 600px) {

#data-verification-modal {

width: 90%;

}

}

/* Elemento de carga */

.loading {

display: none;

top:50vh;

left:50vw;

position:fixed;

}

.loading:not(:required):after {

content: '';

display: block;

font-size: 10px;

width: 1em;

height: 1em;

margin-top: -0.5em;

-webkit-animation: spinner 1500ms infinito lineal;

-moz-animation: spinner 1500ms infinito lineal;

-ms-animation: spinner 1500ms infinito lineal;

-o-animation: spinner 1500ms infinito lineal;

animación: spinner 1500ms infinito lineal;

border-radius: 0.5em;

-webkit-box-shadow: rgba(255,255,255, 1) 1.5em 0 0 0, rgba(255,255,255, 1) 1.1em 1.1em 0 0, rgba(255,255,255, 1) 0 1.5em 0 0, rgba(255,255,255, 1) -1.1em 1.1em 0 0, rgba(255,255,255, 1) -1.5em 0 0 0, rgba(255,255,255, 1) -1.1em -1.1em 0 0, rgba(255,255,255, 1) 0 -1.5em 0 0, rgba(255,255,255, 1) 1.1em -1.1em 0 0;

box-shadow: rgba(255,255,255, 1) 1.5em 0 0 0, rgba(255,255,255, 1) 1.1em 1.1em 0 0, rgba(255,255,255, 1) 0 1.5em 0 0, rgba(255,255,255, 1) -1.1em 1.1em 0 0, rgba(255,255,255, 1) -1.5em 0 0 0, rgba(255,255,255, 1) -1.1em -1.1em 0 0, rgba(255,255,255, 1) 0 -1.5em 0 0, rgba(255,255,255, 1) 1.1em -1.1em 0 0;

}

/* Animación */

@-webkit-keyframes spinner {

0% {

-webkit-transform: rotate(0deg);

-moz-transform: rotate(0deg);

-ms-transform: rotate(0deg);

-o-transform: rotate(0deg);

transform: rotate(0deg);

}

100% {

-webkit-transform: rotate(360deg);

-moz-transform: rotate(360deg);

-ms-transform: rotate(360deg);

-o-transform: rotate(360deg);

transform: rotate(360deg);

}

}

@-moz-keyframes spinner {

0% {

-webkit-transform: rotate(0deg);

-moz-transform: rotate(0deg);

-ms-transform: rotate(0deg);

-o-transform: rotate(0deg);

transform: rotate(0deg);

}

100% {

-webkit-transform: rotate(360deg);

-moz-transform: rotate(360deg);

-ms-transform: rotate(360deg);

-o-transform: rotate(360deg);

transform: rotate(360deg);

}

}

@-o-keyframes spinner {

0% {

-webkit-transform: rotate(0deg);

-moz-transform: rotate(0deg);

-ms-transform: rotate(0deg);

-o-transform: rotate(0deg);

transform: rotate(0deg);

}

100% {

-webkit-transform: rotate(360deg);

-moz-transform: rotate(360deg);

-ms-transform: rotate(360deg);

-o-transform: rotate(360deg);

transform: rotate(360deg);

}

}

@keyframes spinner {

0% {

-webkit-transform: rotate(0deg);

-moz-transform: rotate(0deg);

-ms-transform: rotate(0deg);

-o-transform: rotate(0deg);

transform: rotate(0deg);

}

100% {

-webkit-transform: rotate(360deg);

-moz-transform: rotate(360deg);

-ms-transform: rotate(360deg);

-o-transform: rotate(360deg);

transform: rotate(360deg);

}

}

Cuando envía una solicitud de acceso a datos personales (DSAR) a través de la página de cumplimiento, nuestro proveedor de cumplimiento Consentmo procesa únicamente la dirección IP y el correo electrónico para gestionar la solicitud. Este procesamiento limitado de datos se realiza para proteger su privacidad y garantizar una gestión eficiente de la solicitud. Para más detalles, consulte la política de procesamiento de datos de Consentmo.


Corrección de datos

Si los datos de su cuenta son inexactos, puede actualizar o corregir fácilmente la información utilizando el siguiente enlace. Esta función garantiza que sus datos personales estén siempre precisos y actualizados, facilitando el uso fluido de nuestros servicios.

Portabilidad de datos

Puede descargar todos los datos que almacenamos y usamos para brindarle una mejor experiencia en nuestra tienda utilizando el siguiente enlace. Esto le permite gestionar completamente su información y, si lo desea, transferirla a otros servicios. Esta función es especialmente útil para revisar el historial de pedidos e información personal de productos como bolsos y carteras para mujer.

Acceso a datos personales

Puede solicitar un informe completo que incluya toda la información personal que almacenamos utilizando el siguiente enlace. Responderemos a esta solicitud dentro de los 30 días. Esto le permite comprender claramente cómo se utiliza su información.

Rechazo a la venta de información personal a terceros

Si no consiente la recopilación o venta de su información personal a terceros, puede enviar una solicitud. Esta opción respeta sus configuraciones de privacidad y le protege de compartir datos no deseados.

Derecho al olvido

Si desea eliminar sus datos personales u otros datos relacionados de nuestra tienda, utilice esta opción. Tenga en cuenta que este proceso eliminará completamente su cuenta y no podrá acceder ni usarla posteriormente. Esta es una función importante para borrar completamente su huella digital.

Derecho a la limitación del tratamiento

特定の状況下で、お客様の個人データの処理を制限または一時的に停止するよう要求できます。この権利は、お客様のデータが不正確である場合や、処理に異議を唱える場合に特に重要です。サポートが必要な場合は、stiledonnabags@gmail.comまでご連絡ください。

Derecho a oponerse

ダイレクトマーケティングや正当な利益に基づく処理など、特定のタイプのデータ処理に対して異議を唱える権利があります。この権利は、お客様が望まない目的でデータが使用されるのを防ぐために提供されています。異議の申し立てについては、stiledonnabags@gmail.comまでご連絡ください。

Información de contacto

Para preguntas sobre sus datos personales o derechos de privacidad, contacte a nuestro Delegado de Protección de Datos (DPO). Nos comprometemos a responder a sus consultas de manera rápida y atenta.

Correo electrónico: stiledonnabags@gmail.com

Dirección: Via Testulla 149, 95122 Catania Catania, Italy

Derecho a presentar una queja

Si no está satisfecho con nuestra gestión del tratamiento de datos, tiene derecho a presentar una queja ante la autoridad nacional de protección de datos. Sus derechos son nuestra máxima prioridad y garantizamos que sus preocupaciones serán atendidas adecuadamente.

/* DESLIZAR HACIA ARRIBA */

let slideUp = (target, duration=500) => {

target.style.transitionProperty = 'height, margin, padding';

target.style.transitionDuration = duration + 'ms';

target.style.boxSizing = 'border-box';

target.style.height = target.offsetHeight + 'px';

target.offsetHeight;

target.style.overflow = 'hidden';

target.style.height = 0;

target.style.paddingTop = 0;

target.style.paddingBottom = 0;

target.style.marginTop = 0;

target.style.marginBottom = 0;

window.setTimeout( () => {

target.style.display = 'none';

target.style.removeProperty('height');

target.style.removeProperty('padding-top');

target.style.removeProperty('padding-bottom');

target.style.removeProperty('margin-top');

target.style.removeProperty('margin-bottom');

target.style.removeProperty('overflow');

target.style.removeProperty('transition-duration');

target.style.removeProperty('transition-property');

}, duration);

}

/* DESLIZAR HACIA ABAJO */

let slideDown = (target, duration=500) => {

setTimeout(function(){

target.style.removeProperty('display');

let display = window.getComputedStyle(target).display;

if (display === 'none') display = 'block';

target.style.display = display;

let height = target.offsetHeight;

target.style.overflow = 'hidden';

target.style.height = 0;

target.style.paddingTop = 0;

target.style.paddingBottom = 0;

target.style.marginTop = 0;

target.style.marginBottom = 0;

target.offsetHeight;

target.style.boxSizing = 'border-box';

target.style.transitionProperty = "height, margin, padding";

target.style.transitionDuration = duration + 'ms';

target.style.height = height + 'px';

target.style.removeProperty('padding-top');

target.style.removeProperty('padding-bottom');

target.style.removeProperty('margin-top');

target.style.removeProperty('margin-bottom');

window.setTimeout( () => {

target.style.removeProperty('height');

target.style.removeProperty('overflow');

target.style.removeProperty('transition-duration');

target.style.removeProperty('transition-property');

}, duration);

}, 100)

}

/* TOOGLE */

var slideToggle = (target, duration = 500) => {

if (window.getComputedStyle(target).display === 'none') {

return slideDown(target, duration);

} else {

return slideUp(target, duration);

}

}

/* DESVANECER */

var toggleFadeiSense = (elem, show) => {

if (show) {

elem.style.display = "block";

setTimeout(function(){

elem.classList.add('show-isense');

elem.classList.remove('hide-isense');

},20)

} else {

elem.classList.remove('show-isense');

elem.classList.add('hide-isense');

setTimeout(() => {

elem.style.display = 'none';

}, 400)

}

}

var appiSlideUpAll = function() {

slideUp(document.querySelector('#form-appi-edit-account-request'), 100);

document.querySelector('#btn-appi-edit-account-request').setAttribute("aria-expanded", "false");

slideUp(document.querySelector('#form-appi-requests-request'), 100);

document.querySelector('#btn-appi-requests-request').setAttribute("aria-expanded", "false");

slideUp(document.querySelector('#form-appi-personal-information-request'), 100);

document.querySelector('#btn-appi-personal-information-request').setAttribute("aria-expanded", "false");

slideUp(document.querySelector('#form-appi-orders-request'), 100);

document.querySelector('#btn-appi-orders-request').setAttribute("aria-expanded", "false");

slideUp(document.querySelector('#form-appi-personal-data-report-request'), 100);

document.querySelector('#btn-appi-personal-data-report-request').setAttribute("aria-expanded", "false");

slideUp(document.querySelector('#form-appi-do-not-sell-request'), 100);

document.querySelector('#btn-appi-do-not-sell-request').setAttribute("aria-expanded", "false");

slideUp(document.querySelector('#form-appi-delete-account-request'), 100);

document.querySelector('#btn-appi-delete-account-request').setAttribute("aria-expanded", "false");

document.querySelector('#appi_page button').setAttribute("aria-expanded", "false");

};

var email, type, consentGiven = false;

var verificationModalContent = ''

Doy mi consentimiento para la recopilación de mi correo electrónico y dirección IP con el propósito de procesar esta solicitud. Para más información, consulte la Política de Privacidad &amp Términos de Servicio.

';

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 appiSendRequest = 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') {

window.Shopify.customerPrivacy.setTrackingConsent(

{

"venta_de_datos": false,

},

() => { console.log('venta_de_datos: false')}

);

} else {

console.log('La API de Privacidad del Cliente no está definida en la página actual');

}

if (document.querySelector('.cc-window')) {

document.querySelector('.cc-window').style.display = 'none';

}

// reiniciar texto emergente

document.querySelector('#appi-modal-container-text').innerHTML = 'Doy mi consentimiento para recopilar mi correo electrónico y dirección IP con el propósito de procesar esta solicitud. Para más información, consulte Política de Privacidad &amp Términos de Servicio.';

}

formData.append('shop', Shopify.shop);

formData.append('email', email);

formData.append('type', type);

formData.append('sourceOfRequest', 3);

formData.append('ipAddress', ipInfo);

formData.append('consentGiven', consentGiven);

formData.append('page', 'appi');

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', {

método: 'POST',

body: formData

})

.then(resp => resp.json())

.then(resp => {

if (!resp.error) {

appiSlideUpAll();

if (resp.message.length) {

alert(resp.message);

} else {

alert('Su solicitud ha sido enviada con éxito. Por favor, revise su correo electrónico para más información.');

}

} else {

alert(resp.message);

}

if (typeof callback == 'function') {

callback(resp);

}

})

.catch(error => {

alert(error.message);

})

}

else {

alert(resp.message);

}

})

}

//Agregar modal al body, porque de lo contrario no permanecerá centrado (incluso si la posición es fixed)

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();

}

// Cuando el usuario haga clic en (x), cierre el modal

document.querySelector('.data-verification-close').addEventListener('click', function(e) {

e.preventDefault();

closeVerificationModal();

// Enfocar el botón del tipo de solicitud que fue seleccionado

let appiForms = document.querySelectorAll('.form-appi-request');

appiForms.forEach(function(appiForm) {

if (appiForm.style.display !== "none") {

let appiFormLinks = appiForm.previousElementSibling.querySelectorAll('li');

if (appiFormLinks.length === 1) {

appiFormLinks[0].querySelector('button').focus();

}

}

});

});

document.querySelector('#data-verification-icon, #data-verification-container p').addEventListener('click', function(e) {

e.preventDefault();

// Detecta un clic en href, porque está sobrescrito.

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';

consentGiven = true;

appiSendRequest(function(resp) {

consentGiven = false;

closeVerificationModal();

});

}, 400);

});

});

function openVerificationModal(){

if(!isEmailValid(email)) {

alert('Correo electrónico inválido');

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';

// Enfocar el botón del tipo de solicitud que fue seleccionado

let appiForms = document.querySelectorAll('.form-appi-request');

appiForms.forEach(function(appiForm) {

if (appiForm.style.display !== "none") {

let appiFormLinks = appiForm.previousElementSibling.querySelectorAll('li');

if (appiFormLinks.length === 1) {

appiFormLinks[0].querySelector('button').focus();

} else {

// Lógica de enfoque para solicitudes de Portabilidad de Datos

appiFormLinks = appiForm.parentElement;

if (appiFormLinks.nodeName === 'LI') {

appiFormLinks.querySelector('button').focus();

}

}

}

});

}

document.querySelector('#btn-appi-edit-account-request').addEventListener('click', function(e) {

e.preventDefault();

let isExpanded = this.getAttribute('aria-expanded') === 'true' ? true : false;

appiSlideUpAll();

if(!isExpanded) {

slideDown(document.querySelector('#form-appi-edit-account-request'), 200);

this.setAttribute("aria-expanded", "true");

} else {

slideUp(document.querySelector('#form-appi-edit-account-request'), 200);

this.setAttribute("aria-expanded", "false");

}

});

document.querySelector('#form-appi-edit-account-request-submit').addEventListener('click', function(e) {

e.preventDefault();

email = document.querySelector('#form-appi-edit-account-request-email').value;

type = 'customer/edit';

appiSendRequest(function(resp) {

consentGiven = true;

});

});

document.querySelector('#btn-appi-requests-request').addEventListener('click', function(e) {

e.preventDefault();

let isExpanded = this.getAttribute('aria-expanded') === 'true' ? true : false;

appiSlideUpAll();

if(!isExpanded) {

slideDown(document.querySelector('#form-appi-requests-request'), 200);

this.setAttribute("aria-expanded", "true");

} else {

slideUp(document.querySelector('#form-appi-requests-request'), 200);

this.setAttribute("aria-expanded", "false");

}

});

document.querySelector('#form-appi-requests-request-submit').addEventListener('click', function(e) {

e.preventDefault();

email = document.querySelector('#form-appi-requests-request-email').value;

type = 'customer/requests';

appiSendRequest(function(resp) {

consentGiven = true;

});

});

document.querySelector('#btn-appi-personal-information-request').addEventListener('click', function(e) {

e.preventDefault();

let isExpanded = this.getAttribute('aria-expanded') === 'true' ? true : false;

appiSlideUpAll();

if(!isExpanded) {

slideDown(document.querySelector('#form-appi-personal-information-request'), 200);

this.setAttribute("aria-expanded", "true");

} else {

slideUp(document.querySelector('#form-appi-personal-information-request'), 200);

this.setAttribute("aria-expanded", "false");

}

});

document.querySelector('#form-appi-personal-information-request-submit').addEventListener('click', function(e) {

e.preventDefault();

email = document.querySelector('#form-appi-personal-information-request-email').value;

type = 'customer/personal_info';

appiSendRequest(function(resp) {

consentGiven = true;

});

});

document.querySelector('#btn-appi-orders-request').addEventListener('click', function(e) {

e.preventDefault();

let isExpanded = this.getAttribute('aria-expanded') === 'true' ? true : false;

appiSlideUpAll();

if(!isExpanded) {

slideDown(document.querySelector('#form-appi-orders-request'), 200);

this.setAttribute("aria-expanded", "true");

} else {

slideUp(document.querySelector('#form-appi-orders-request'), 200);

this.setAttribute("aria-expanded", "false");

}

});

document.querySelector('#form-appi-orders-request-submit').addEventListener('click', function(e) {

e.preventDefault();

email = document.querySelector('#form-appi-orders-request-email').value;

type = 'customer/orders';

appiSendRequest(function(resp) {

consentGiven = true;

});

});

document.querySelector('#btn-appi-personal-data-report-request').addEventListener('click', function(e) {

e.preventDefault();

let isExpanded = this.getAttribute('aria-expanded') === 'true' ? true : false;

appiSlideUpAll();

if(!isExpanded) {

slideDown(document.querySelector('#form-appi-personal-data-report-request'), 200);

this.setAttribute("aria-expanded", "true");

} else {

slideUp(document.querySelector('#form-appi-personal-data-report-request'), 200);

this.setAttribute("aria-expanded", "false");

}

});

document.querySelector('#form-appi-personal-data-report-request-submit').addEventListener('click', function(e) {

e.preventDefault();

email = document.querySelector('#form-appi-personal-data-report-request-email').value;

type = 'customer/report';

appiSendRequest(function(resp) {

consentGiven = true;

});

});

document.querySelector('#btn-appi-do-not-sell-request').addEventListener('click', function(e) {

e.preventDefault();

let isExpanded = this.getAttribute('aria-expanded') === 'true' ? true : false;

appiSlideUpAll();

if(!isExpanded) {

slideDown(document.querySelector('#form-appi-do-not-sell-request'), 200);

this.setAttribute("aria-expanded", "true");

} else {

slideUp(document.querySelector('#form-appi-do-not-sell-request'), 200);

this.setAttribute("aria-expanded", "false");

}

});

document.querySelector('#form-appi-do-not-sell-request-submit').addEventListener('click', function(e) {

e.preventDefault();

email = document.querySelector('#form-appi-do-not-sell-request-email').value;

type = 'customer/do-not-sell';

// Verificar si el cliente ha iniciado sesión

if (__st.cid != undefined) {

document.querySelector('#appi-modal-container-text').innerHTML = 'Doy mi consentimiento para recopilar mi correo electrónico y dirección IP con el propósito de procesar esta solicitud. Para más información, consulte Política de Privacidad &amp Términos de Servicio.';

} else {

document.querySelector('#appi-modal-container-text').innerHTML = 'Doy mi consentimiento para recopilar mi correo electrónico y dirección IP con el propósito de procesar esta solicitud. Para más información, consulte Política de Privacidad &amp Términos de Servicio. Nota: Si es un usuario invitado o no ha iniciado sesión en su cuenta, su elección de exclusión solo será efectiva para esta sesión del navegador.';

}

appiSendRequest(function(resp) {

consentGiven = true;

});

});

document.querySelector('#btn-appi-delete-account-request').addEventListener('click', function(e) {

e.preventDefault();

let isExpanded = this.getAttribute('aria-expanded') === 'true' ? true : false;

appiSlideUpAll();

if(!isExpanded) {

slideDown(document.querySelector('#form-appi-delete-account-request'), 200);

this.setAttribute("aria-expanded", "true");

} else {

slideUp(document.querySelector('#form-appi-delete-account-request'), 200);

this.setAttribute("aria-expanded", "false");

}

});

document.querySelector('#form-appi-delete-account-request-submit').addEventListener('click', function(e) {

e.preventDefault();

email = document.querySelector('#form-appi-delete-account-request-email').value;

type = 'customer/delete';

appiSendRequest(function(resp) {

consentGiven = true;

});

});

// Navegación por teclado en el modal de verificación de datos para accesibilidad

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');

// Esta función nos ahorra la molestia de llamar a e.preventDefault() después de cada enfoque

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);

}

}

}

});