import 'https://joyeriagya.com/wp-content/plugins/beautiful-and-responsive-cookie-consent-addon/public/js/cookieconsent.nsc.umd.js?cb=4.1.1';
document.documentElement.classList.add('default-light');
const consentCategories = {"Esenciales":{"id":"Esenciales","defaultValue":"allow"},"Analíticas":{"id":"Analíticas","defaultValue":"deny"},"Marketing":{"id":"Marketing","defaultValue":"deny"}};
const dataLayerName = "dataLayer";
const enableDataLayerPush = "1";
const activateConsentMode = "1";
const consentModeConfig = {"analytics_storage":["Analíticas"],"ad_storage":["Marketing"],"ad_personalization":["Marketing"],"ad_user_data":["Marketing"],"functionality_storage":["Esenciales"],"personalization_storage":["Esenciales"],"security_storage":["Esenciales"]};
const coMoAdsDataRedaction = true;
const coMoUrlPassThrough = true;
const consentModeWaitForUpdate = 0;
const cookieName = "bcbconsent2";
const statsUrl = "https:\/\/joyeriagya.com\/wp-json\/beautiful-and-responsive-cookie-consent\/v1\/stats";
const statsSendOnOpen = "0";
const statsCountOpens = "0";
const activateStats = "0";
const reloadAfterBannerClick = "0";
const clarityEnabled = "1";
const clarityAllowedCats = [];
const wpConsentApiStatistics = [];
const wpConsentApiMarketing = [];
const wpConsentApiFunctional = [];
const wpConsentApiPreferences = [];
const wpConsentApiStatisticsAnonymous = [];
const pixelManagerWooStatistics = [];
const pixelManagerWooMarketing = [];
const pixelManagerWooPreferences = [];
const pixelManagerWooNecessary = [];
const blacklistPage = [];
if (!arrayContainsMatches(blacklistPage, location.pathname)){CookieConsent.run({"guiOptions":{"consentModal":{"layout":"box inline","position":"middle center","equalWeightButtons":true,"flipButtons":false},"preferencesModal":{"layout":"box","position":"right","equalWeightButtons":true,"flipButtons":false}},"categories":{"Esenciales":{"enabled":true,"readOnly":true},"Analíticas":{"enabled":false,"readOnly":false},"Marketing":{"enabled":false,"readOnly":false}},"language":{"default":"es","translations":{"es":{"consentModal":{"title":"Tu privacidad importa","description":"Utilizamos cookies para ofrecerte una mejor experiencia en nuestra tienda. Puedes aceptar todas o ajustar tus preferencias.","closeIconLabel":"","acceptAllBtn":"Aceptar todo","acceptNecessaryBtn":"Rechazar todo","showPreferencesBtn":"Configurar preferencias","footer":"Políticas de privacidad<\/a>\nTérminos y condiciones<\/a>"},"preferencesModal":{"title":"Preferencias de privacidad","closeIconLabel":"Cerrar","acceptAllBtn":"Aceptar todos","acceptNecessaryBtn":"Rechazar todos","savePreferencesBtn":"Guardar preferencia","serviceCounterLabel":"Servicio|Servicios","sections":[{"title":"Uso de Cookies","description":"Puedes elegir qué tipos de cookies deseas permitir. Algunas son esenciales para el funcionamiento del sitio, mientras que otras nos ayudan a mejorar tu experiencia y mostrarte contenido más relevante."},{"title":"Esenciales","description":"Estas cookies son necesarias para que el sitio funcione correctamente. Permiten funciones básicas como la seguridad, la navegación o guardar tus preferencias. No se pueden desactivar.","linkedCategory":"Esenciales"},{"title":"Analíticas","description":"Nos ayudan a entender cómo los visitantes usan nuestro sitio, para mejorar continuamente la experiencia y el contenido.","linkedCategory":"Analíticas"},{"title":"Marketing","description":"Estas cookies se utilizan para mostrarte anuncios relevantes y personalizados, tanto en nuestro sitio como en otros. También nos ayudan a medir la efectividad de nuestras campañas publicitarias.","linkedCategory":"Marketing"},{"title":"Más información","description":"Para cualquier consulta relacionada con mi política de cookies y tus preferencias, por favor contactános<\/a>."}]}}}},"disablePageInteraction":true,"onFirstConsent":function d({cookie:o}){gConsentUpdate(),clarityConsentUpdate(),pushToDataLayer(),wordpressConsentApiUpdate(),pixelManagerWooConsentApiUpdate(),"1"===activateStats&&logConsent("onFirstConsent"),loadGTM();try{localStorage.removeItem("beautiful_cookie_banner_open_counter")}catch(o){}"1"===reloadAfterBannerClick&&window.location.reload()},"onChange":function oc({cookie:e,changedCategories:o,changedServices:a}){gConsentUpdate(),clarityConsentUpdate(),pushToDataLayer(),wordpressConsentApiUpdate(),pixelManagerWooConsentApiUpdate(),"1"===activateStats&&logConsent("onChange"),loadGTM();try{localStorage.removeItem("beautiful_cookie_banner_open_counter")}catch(e){}"1"===reloadAfterBannerClick&&window.location.reload()},"onModalShow":function x({modalName:t}){if("1"===statsCountOpens){let t=getOpenCounter();t+=1;try{localStorage.setItem("beautiful_cookie_banner_open_counter",t)}catch(t){}}"1"===activateStats&&"1"===statsSendOnOpen&&logConsent("banner_open")},"cookie":{"name":"bcbconsent2","expiresAfterDays":"365"}});}
function debugLog(...e){if("true"!==localStorage.getItem("nscDebugLog"))return;const t=[].slice.call(e);t.unshift(`%c BCB Cookie Banner Debug ${(new Date).toLocaleString()}`,"color: #e5e5e5; background:rgb(160, 102, 187)"),console.log.apply(this,t)}function logConsent(e){const t=CookieConsent.getCookie(),n=CookieConsent.getUserPreferences(),o={consentId:t.consentId,acceptType:n.acceptType,acceptedCategories:n.acceptedCategories,rejectedCategories:n.rejectedCategories,href:window.location.href,referrer:document.referrer,openCount:getOpenCounter(),mainStatus:e};fetch(statsUrl,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(o)})}function getOpenCounter(){let e;try{e=localStorage.getItem("beautiful_cookie_banner_open_counter")||"0"}catch(e){}return e=parseInt(e,10),e}function clarityConsentUpdate(){if("1"!==clarityEnabled)return;window.clarity=window.clarity||function(){(window.clarity.q=window.clarity.q||[]).push(arguments)};const e=clarityAllowedCats.filter((e=>isCategoryAllowed(e)));let t=!1;e&&Array.isArray(e)&&e.length>0?(window.clarity("consent"),t=!0):window.clarity("consent",!1),"1"===enableDataLayerPush&&(window[dataLayerName]=window[dataLayerName]||[],window[dataLayerName].push({event:"clarity_consent_update",clarityAllowed:t}))}function wordpressConsentApiUpdate(){if("function"!=typeof window.wp_set_consent)return;const e=[{key:"statistics",values:wpConsentApiStatistics},{key:"statistics-anonymous",values:wpConsentApiStatisticsAnonymous},{key:"marketing",values:wpConsentApiMarketing},{key:"functional",values:wpConsentApiFunctional},{key:"preferences",values:wpConsentApiPreferences}];debugLog("wordpressConsentApiUpdate: Cats",e);const t={};for(let n=0;nisCategoryAllowed(e)));debugLog("wordpressConsentApiUpdate:",e[n].key,"is",o&&Array.isArray(o)&&o.length>0,"for",e[n].values),o&&Array.isArray(o)&&o.length>0?(window.wp_set_consent(e[n].key,"allow"),t[e[n].key]=!0):(window.wp_set_consent(e[n].key,"deny"),t[e[n].key]=!1),debugLog("wordpressConsentApiUpdate: END CHECKING for wp consent cat",e[n].key)}"1"===enableDataLayerPush&&(window[dataLayerName]=window[dataLayerName]||[],window[dataLayerName].push({event:"wpConsentApi_update",consents:t}))}function pixelManagerWooConsentApiUpdate(){if(!window.pmw||!window.pmw.consent||!window.pmw.consent.api||"function"!=typeof window.pmw.consent.api.updateSelectively)return;const e=[{key:"statistics",values:pixelManagerWooStatistics},{key:"marketing",values:pixelManagerWooMarketing},{key:"preferences",values:pixelManagerWooPreferences},{key:"necessary",values:pixelManagerWooNecessary}];debugLog("pixelManagerWooConsentApiUpdate: Cats",e);const t={};for(let n=0;nisCategoryAllowed(e)));debugLog("pixelManagerWooConsentApiUpdate:",e[n].key,"is",o&&Array.isArray(o)&&o.length>0,"for",e[n].values),o&&Array.isArray(o)&&o.length>0?t[e[n].key]=!0:t[e[n].key]=!1,debugLog("pixelManagerWooConsentApiUpdate: END CHECKING for wp consent cat",e[n].key)}window.pmw.consent.api.updateSelectively(t),"1"===enableDataLayerPush&&(window[dataLayerName]=window[dataLayerName]||[],window[dataLayerName].push({event:"pixelManagerWooConsent_update",consents:t}))}function gConsentUpdate(){if("1"!==activateConsentMode)return;const e={},t=Object.keys(consentModeConfig);for(let n=0;nisCategoryAllowed(e)));o&&Array.isArray(o)&&o.length>0?e[t[n]]="granted":e[t[n]]="denied"}window[dataLayerName]=window[dataLayerName]||[],function(){window[dataLayerName].push(arguments)}("consent","update",e),!0===window.nsc_bara_pushUETconsent&&(window.uetq=window.uetq||[],window.uetq.push("consent","update",{ad_storage:e.ad_storage})),window[dataLayerName].push({event:"consent_mode_update",consentType:"banner2",method:"pushed per banner."})}function pushToDataLayer(){if("1"!==enableDataLayerPush)return;const e={event:"beautiful_cookie_consent_updated"};Object.keys(consentCategories).forEach((t=>{e[t]=isCategoryAllowed(t)})),window[dataLayerName]=window[dataLayerName]||[],window[dataLayerName].push(e)}function isCategoryAllowed(e){if("object"!=typeof CookieConsent)return console.error("Beautiful Cookie Banner: CookieConsent object is not defined. Please check if the script is loaded correctly."),!1;const t=CookieConsent.getUserPreferences(),n=CookieConsent.getConfig(),o=Object.keys(n.categories);for(let e=0;eCookieConsent.showPreferences())),e[t].style.cursor="pointer";window.wp_consent_type;const t=new CustomEvent("wp_consent_type_defined");document.dispatchEvent(t)})),window.addEventListener("load",wordpressConsentApiUpdate),window.addEventListener("load",pixelManagerWooConsentApiUpdate);
!function(){var e="svgIcon"||"textOnly",t="bottom-right"||"bottom-right",o="2.5em"||"2em",n="#ffffff"||"#9dd2eaff",i="#000000"||"#000000",s="Configurar Cookies"||"",r="#dd9933"||"#000000",a="15px"||"0px",d="M14.5 10C13.67 10 13 9.33 13 8.5V8H12.5C11.67 8 11 7.33 11 6.5V5.07C7.91 5.5 5.47 8 5.07 11.08C5.25 10.46 5.82 10 6.5 10C7.33 10 8 10.67 8 11.5S7.33 13 6.5 13C5.71 13 5.07 12.39 5 11.62C5 12.11 5 12.61 5.09 13.12C5.5 15.81 7.54 18.04 10.16 18.74C9.76 18.47 9.5 18 9.5 17.5C9.5 16.67 10.17 16 11 16C11.59 16 12.1 16.35 12.34 16.84C12.16 17.39 12.06 17.97 12 18.57C11.83 18.76 11.6 18.9 11.32 18.96C11.55 19 11.78 19 12 19V19C12 19.69 12.11 20.36 12.29 21C12.19 21 12.1 21 12 21C7.03 21 3 16.97 3 12S7.03 3 12 3C12 3 13 3 13 4V6H14C14 6 15 6 15 7V8H17C17 8 18 8 18 9V10H20C20 10 20.6 10 20.87 10.5C20.96 11 21 11.5 21 12C21 12.1 21 12.19 21 12.29C20.36 12.11 19.69 12 19 12H17.5C16.67 12 16 11.33 16 10.5V10H14.5M11.5 11C10.67 11 10 11.67 10 12.5S10.67 14 11.5 14 13 13.33 13 12.5 12.33 11 11.5 11M11 7.5C11 6.67 10.33 6 9.5 6S8 6.67 8 7.5 8.67 9 9.5 9 11 8.33 11 7.5M23.8 20.4C23.9 20.4 23.9 20.5 23.8 20.6L22.8 22.3C22.7 22.4 22.6 22.4 22.5 22.4L21.3 22C21 22.2 20.8 22.3 20.5 22.5L20.3 23.8C20.3 23.9 20.2 24 20.1 24H18.1C18 24 17.9 23.9 17.8 23.8L17.6 22.5C17.3 22.4 17 22.2 16.8 22L15.6 22.5C15.5 22.5 15.4 22.5 15.3 22.4L14.3 20.7C14.2 20.6 14.3 20.5 14.4 20.4L15.5 19.6V18.6L14.4 17.8C14.3 17.7 14.3 17.6 14.3 17.5L15.3 15.8C15.4 15.7 15.5 15.7 15.6 15.7L16.8 16.2C17.1 16 17.3 15.9 17.6 15.7L17.8 14.4C17.8 14.3 17.9 14.2 18.1 14.2H20.1C20.2 14.2 20.3 14.3 20.3 14.4L20.5 15.7C20.8 15.8 21.1 16 21.4 16.2L22.6 15.7C22.7 15.7 22.9 15.7 22.9 15.8L23.9 17.5C24 17.6 23.9 17.7 23.8 17.8L22.7 18.6V19.6L23.8 20.4M20.5 19C20.5 18.2 19.8 17.5 19 17.5S17.5 18.2 17.5 19 18.2 20.5 19 20.5 20.5 19.8 20.5 19Z"||"",l="4px"||"4px",c="1"||"0",u=document.createElement("a");u.setAttribute("onclick","CookieConsent.showPreferences()"),u.setAttribute("aria-label",s),u.classList.add("nsc-bara-cookie-settings-tab"),u.style.cursor="pointer";var p={position:"fixed",color:i,textDecoration:"none",fontFamily:"system-ui, sans-serif;",fontSize:"14px",zIndex:"2147483645",transition:"transform 0.2s ease, opacity 0.2s ease",display:"inline-flex",alignItems:"center",justifyContent:"center",padding:"5px 8px",borderRadius:l};if("0"===c&&(p.boxShadow="0 2px 6px rgba(0,0,0,0.3)",p.backgroundColor=n),"svgIcon"===e){var w='',v=document.createElement("span");v.setAttribute("aria-hidden","true"),v.style.display="flex",v.style.alignItems="center",v.style.justifyContent="center",v.style.width=o,v.innerHTML=w,p.padding="3px",u.appendChild(v)}if("textOnly"===e){var b=document.createElement("span");b.textContent=s,u.appendChild(b)}Object.assign(u.style,p),"0"===c&&(u.style.setProperty("-webkit-backdrop-filter","blur("+a+")"),u.style.setProperty("backdrop-filter","blur("+a+")"));var y={top:"20px",bottom:"20px",left:"20px",right:"20px"};function m(){document.body.contains(u)||document.body.appendChild(u)}t.split("-").forEach((function(e){y[e]&&(u.style[e]=y[e])})),"loading"===document.readyState?document.addEventListener("DOMContentLoaded",m):m()}(),window.addEventListener("cc:onModalShow",(({detail:e})=>{var t=document.getElementsByClassName("nsc-bara-cookie-settings-tab");for(let e=0;e{var t=document.getElementsByClassName("nsc-bara-cookie-settings-tab");for(let e=0;e