"use strict";!function(){var t=function(){function t(e,r=0){try{var a=p.document,n=!!p.frames[e];if(!n)if(a.body){var c=a.createElement("iframe");c.style.cssText="display:none",c.name=e,a.body.appendChild(c)}else 2e3>r&&setTimeout(function(){t(e,r+1)},5);return!n}catch(t){return!1}}function e(t){var e=void 0,r=p;try{for(;r&&r!==p.top;){if(r.frames[t]){e=r;break}if(!r.parent||r.parent===r)break;r=r.parent}}catch(t){}return e}function r(){try{const o=this&&this.sourceAPI||"__sdcmpapi";for(var t=p.gdprApplies,e=(p.ABconsentCMP||{}).consentModeFromTcf||!1,r=arguments.length,a=Array(r),n=0;r>n;n++)a[n]=arguments[n];if(!a.length)return"__tcfapi"===o?c:i;if("setGdprApplies"===a[0])a.length>3&&2===parseInt(a[1],10)&&"boolean"==typeof a[3]&&(p.gdprApplies=t=a[3],"function"==typeof a[2]&&a[2]({gdprApplies:t},!0));else if("ping"===a[0]){if("function"==typeof a[2]){const r={gdprApplies:t,cmpLoaded:!1,cmpStatus:"stub",apiVersion:"2.0"};e&&(r.enableAdvertiserConsentMode=!0),a[2](r,!0)}}else("__tcfapi"===o?c:i).push(a)}catch(t){}}var a="__tcfapiLocator",n="__sdcmpapiLocator",c=[],i=[],p=window,o=e(a),s=e(n);try{o||t(a),s||t(n),p.__tcfapi||(p.__tcfapi=function(){return r.apply({sourceAPI:"__tcfapi"},arguments)}),p.__sdcmpapi||(p.__sdcmpapi=function(){return r.apply({sourceAPI:"__sdcmpapi"},arguments)}),p.addEventListener("message",function(t){try{var e=t&&t.data;if(!e)return;var r={};if("string"==typeof e)try{r=JSON.parse(e)}catch(t){return}else{if("object"!=typeof e||e.constructor!==Object)return;r=e}var a=r&&(r.__tcfapiCall||r.__sdcmpapiCall);if(!a)return;try{var n=r.__tcfapiCall?window.__tcfapi:window.__sdcmpapi,c=r.__tcfapiCall?"__tcfapiReturn":"__sdcmpapiReturn";n(a.command,a.version,function(r,n){var i={};i[c]={returnValue:r,success:n,callId:a.callId};const p="null"===t.origin?"*":t.origin;t.source.postMessage("string"==typeof e?JSON.stringify(i):i,p)},a.parameter)}catch(t){}}catch(t){}},!1)}catch(t){}};try{t(),void 0!==module&&"object"==typeof module&&"object"==typeof module.exports&&(module.exports=t)}catch(t){}}();window.ABconsentCMP = window.ABconsentCMP || {};window.ABconsentCMP.enableConsentMode = window.ABconsentCMP.enableConsentMode ? true : (window.ABconsentCMP.enableConsentMode === undefined) && true;(function () {var ABconsentCMP = window.ABconsentCMP || {};var enableConsentMode = ABconsentCMP.enableConsentMode || false;if (!enableConsentMode) return;var gtmDataLayerName = ABconsentCMP.gtmDataLayerName || "dataLayer";var consentModeFromTcf = ABconsentCMP.consentModeFromTcf || false;window[gtmDataLayerName] = window[gtmDataLayerName] || [];function gtag() {window[gtmDataLayerName].push(arguments);}gtag('set', 'developer_id.dOWE1OT', true);var gtmDefaultValues = {'analytics_storage': 'denied','functionality_storage': 'denied','security_storage': 'denied','personalization_storage': 'denied','wait_for_update': 1000};if (!consentModeFromTcf) {gtmDefaultValues["ad_storage"] = "denied";gtmDefaultValues["ad_user_data"] = "denied";gtmDefaultValues["ad_personalization"] = "denied";}gtag('consent', 'default', gtmDefaultValues);})();(function () {window.uetq = window.uetq || [];window.uetq.push('config', 'tcf', {'enabled': true});})();(function () {try {if (window.sd_cmp_shopify_loaded) return;window.sd_cmp_shopify_loaded = true;function getCurrentConsent() {var c = window.Shopify.customerPrivacy.currentVisitorConsent() || {};return { analytics: c.analytics === "yes", marketing: c.marketing === "yes", preferences: c.preferences === "yes", sale_of_data: c.sale_of_data === "yes" };}function updateConsent(n) {var c = getCurrentConsent(), h = false;for (var k in n) if (n[k] !== c[k]) { h = true; break; }h && window.Shopify.customerPrivacy.setTrackingConsent(n, function (e) { e && console.error("Erreur Shopify:", e); });}function sdManageChoices() {if (!window.Shopify.customerPrivacy) return;typeof window.__uspapi === "function"? window.__uspapi("getUSPData", 1, function (u, s) {if (!s || !u || !u.uspString) return;var o = u.uspString.indexOf("1YY") === 0;updateConsent({ preferences: !o, analytics: !o, marketing: !o, sale_of_data: !o });}): typeof window.__sdcmpapi === "function" && window.__sdcmpapi("addEventListener", 2, function (t, s) {if (!s || !t || (!t.eventStatus && t.gdprApplies)) return;if (!t.gdprApplies || ["tcloaded", "useractioncomplete", "cmpuishown"].indexOf(t.eventStatus) !== -1) {var c = (t.purpose && t.purpose.consents) ? t.purpose.consents : {};updateConsent({preferences: !t.gdprApplies || (c[1] && (c[5] || c[11])),analytics: !t.gdprApplies || (c[1] && c[8]),marketing: !t.gdprApplies || (c[1] && (c[2] || c[3])),sale_of_data: !t.gdprApplies || (c[1] && c[3])});}});}function sdLoadShopifyConsent() {if (!window.Shopify) return console.warn("Shopify non disponible.");window.Shopify.customerPrivacy ? sdManageChoices() :typeof window.Shopify.loadFeatures === "function" &&window.Shopify.loadFeatures([{ name: "consent-tracking-api", version: "0.1" }], function (e) {e ? console.error("Erreur API Consent Shopify:", e) : sdManageChoices();});}document.readyState === "loading" ? document.addEventListener("DOMContentLoaded", sdLoadShopifyConsent) : sdLoadShopifyConsent();} catch (e) {}})();