class TinyCookie{constructor(e){this.shop=e.shop,this.showAlways=e.showAlways,this.showAlwaysPreferences=e.showAlwaysPreferences,this.boxDesign=e.boxDesign,this.boxPosition=e.boxPosition,this.showCloseButton=e.showCloseButton,this.closeButtonBehaviour=e.closeButtonBehaviour,this.showReject=e.showReject,this.showPreferences=e.showPreferences,this.categoriesChecked=e.categoriesChecked,this.consentModeActive=!(!1===e.consentModeActive||0===e.consentModeActive||void 0===e.consentModeActive),this.pixelModeActive=!(!1===e.pixelModeActive||0===e.pixelModeActive||void 0===e.pixelModeActive),this.gpcModeActive=!(!1===e.gpcModeActive||0===e.gpcModeActive||void 0===e.gpcModeActive),this.translations=e.translations,this.boxSettings=e.boxSettings,this.preferencesSettings=e.preferencesSettings,this.badgeSettings=e.badgeSettings,this.privacyPolicyLink=e.showPrivacyPolicy?e.privacyPolicyLink:null,this.termsConditionsLink=e.showTermsAndConditions?e.termsConditionsLink:null,this.removeCookies=!(!1===e.removeCookies||0===e.removeCookies||void 0===e.removeCookies),this.requiredCookies=e.requiredCookies??[],this.functionalCookies=e.functionalCookies??[],this.analyticsCookies=e.analyticsCookies??[],this.marketingCookies=e.marketingCookies??[],this.removedCookies=[],this.removedFunctionalCookies=[],this.removedAnalyticsCookies=[],this.removedMarketingCookies=[],this.loadedGlobally=e.loadedGlobally,this.geoLocation=e.geoLocation,this.enabledStates=e.enabledStates,this.registerConsent=e.registerConsent,this.country="",this.apiDomain="https://cookie.tinyimg.com",this.shopifyApiLoaded=!1}load(){window.Shopify.loadFeatures([{name:"consent-tracking-api",version:"0.1"}],e=>{e?console.log("Failed loading Shopify API."):(console.log("Shopify API loaded."),this.shopifyApiLoaded=!0),this.#a()});let e=this;setTimeout(function(){e.shopifyApiLoaded||(console.log("Loading TinyCookie without Shopify."),window.Shopify.loadFeatures([{name:"consent-tracking-api",version:"0.1"}]),e.#a())},1500),e.country||fetch("/browsing_context_suggestions.json").then(e=>e.json()).then(function(t){e.country=t.detected_values.country_name})}#a(){if(void 0!==window.Shopify.customerPrivacy){let e=window.Shopify.customerPrivacy.getRegion();if(console.log("Detected region: ",e),e&&"US"==e.slice(0,2)&&null!==this.enabledStates&&this.enabledStates.length>0){let t=e.slice(2);if(!this.enabledStates.split(",").includes(t))return}}if(navigator.globalPrivacyControl&&this.gpcModeActive){if(window.fetch&&!window.fetch.isGPCOverridden){let i=window.fetch;window.fetch=async function(e,t={}){return t.headers={...t.headers,"sec-gpc":"1"},i(e,t)},window.fetch.isGPCOverridden=!0}console.log("Suppressing cookie bar due to GPC.");return}let o=this.#b("tinycookie");!o&&this.removeCookies&&this.#c(),(!o||this.showAlways)&&(this.#d(!1,!1,!1),this.#e(!1),this.loadCookieBar()),this.showAlwaysPreferences&&(this.#d(!1,!1,!1),this.loadPreferences()),this.badgeSettings.active&&this.loadCookieBadge(),this.expireCookies()}loadCookieBadge(){let e=this.#f("tinybadge",!0);e.style.bottom=this.badgeSettings.cornerPadding+"px","bottom_left"===this.badgeSettings.position&&(e.style.left=this.badgeSettings.cornerPadding+"px"),"bottom_right"===this.badgeSettings.position&&(e.style.right=this.badgeSettings.cornerPadding+"px");let t=this.#f("tinybadge-badge-wrapper",!0),i=this.#f("tinybadge-cookie-badge",!0);i.style.background=this.badgeSettings.backgroundColor;let o=this.#f("tinybadge-cookie-icon",!0);o.innerHTML=this.badgeSettings.svgImage,o.style.background=this.badgeSettings.backgroundColor,function e(t,i){let o=t.querySelector("svg");if(o){let n=o.querySelectorAll("path");n.forEach(e=>{e.setAttribute("fill",i)})}}(o,this.badgeSettings.iconColor);let n=this.#f("tinybadge-cookie-badge-text",!0);n.innerText=this.translations.badgeTitle,n.style.color=this.badgeSettings.titleColor,n.style.transform="bottom_left"===this.badgeSettings.position?"translateX(-100%)":"translateX(100%)",i.appendChild(o),i.appendChild(n),t.appendChild(i),e.appendChild(t);let s=document.getElementsByTagName("body")[0];function r(e,t,i){e?"bottom_left"===i?(t.classList.add("tinybadge-hover-left"),t.classList.remove("tinybadge-hover-right")):(t.classList.add("tinybadge-hover-right"),t.classList.remove("tinybadge-hover-left")):(t.classList.remove("tinybadge-hover-left"),t.classList.remove("tinybadge-hover-right"))}s.insertBefore(e,s.firstChild),e.addEventListener("mouseover",()=>r(!0,i,this.badgeSettings.position)),e.addEventListener("mouseleave",()=>r(!1,i,this.badgeSettings.position)),i.addEventListener("click",()=>{"preferences"===this.badgeSettings.openType?document.getElementById("tinycookie-preferences-wrapper")||this.loadPreferences():document.getElementById("tinycookie-wrapper")||this.loadCookieBar()})}loadCookieBar(){let e=this.#f("tinycookie-wrapper",!0);e.classList.add(this.boxPosition),e.classList.add(this.boxDesign),e.style.background=this.boxSettings.background,this.showReject||e.classList.add("box-no-reject");let t=this.#f("tinycookie-box");if(t.appendChild(this.#g()),t.appendChild(this.#h()),this.showCloseButton){let i=this,o=this.#i("tinycookie-box-close","");o.style.setProperty("--close-color",this.boxSettings.closeButtonColor),o.addEventListener("click",function(){"reject_cookies"===i.closeButtonBehaviour?i.acceptRequiredCookies():"accept_cookies"===i.closeButtonBehaviour?i.acceptAllCookies():i.removeCookieBar()}),e.appendChild(o)}e.appendChild(t),(this.privacyPolicyLink||this.termsConditionsLink)&&e.appendChild(this.#j());let n=document.getElementsByTagName("body")[0];if(n.insertBefore(e,n.firstChild),this.boxSettings.showBackdrop){let s=this.boxSettings.backdropOpacity;s<1&&(s=1),s>100&&(s=100);let r=this.#f("tinycookie-big-backdrop",!0);r.style.background="rgba(0, 0, 0, "+s/100+")",n.insertBefore(r,n.firstChild)}}acceptAllCookies(){this.removeCookieBar(),this.closePreferences(),this.#k("tinycookie",1,30),this.#k("tinycookie_acc","req,func,anal,mark",30),this.#d(!0,!0,!0),this.#l(!0,!0,!0),this.#e(!0),this.#m(!0,!0,!0),this.removeCookieBar(),this.closePreferences(),this.#n(this.removedCookies)}acceptRequiredCookies(){this.removeCookieBar(),this.closePreferences(),this.#k("tinycookie",1,30),this.#k("tinycookie_acc","req",30),this.expireCookies(),this.#d(!1,!1,!1),this.#l(!1,!1,!1),this.#e(!1),this.#m(!1,!1,!1)}savePreferences(){let e=document.getElementById("tinycookie-functionality-checkbox"),t=document.getElementById("tinycookie-analytics-checkbox"),i=document.getElementById("tinycookie-marketing-checkbox"),o=["req"],n=!e||e.checked,s=!t||t.checked,r=!i||i.checked;n&&(o.push("func"),this.#n(this.removedFunctionalCookies)),s&&(o.push("anal"),this.#n(this.removedAnalyticsCookies)),r&&(o.push("mark"),this.#n(this.removedMarketingCookies)),this.removeCookieBar(),this.closePreferences(),this.#k("tinycookie",1,30),this.#k("tinycookie_acc",o.join(","),30),this.expireCookies(),this.#d(n,s,r),this.#l(n,s,r),this.#e(r),this.#m(n,s,r)}expireCookies(){let e=this.#b("tinycookie_acc");if(!e)return;let t=e.split(",");if(4===t.length)return;console.log("TinyCookie accepted categories: "+t);let i=Array.isArray(this.requiredCookies)?this.requiredCookies:"string"==typeof this.requiredCookies?this.requiredCookies.split(","):[];this.#o(t,i,this.functionalCookies,"func"),this.#o(t,i,this.analyticsCookies,"anal"),this.#o(t,i,this.marketingCookies,"mark")}removeCookieBar(){let e=document.getElementById("tinycookie-wrapper");e&&e.remove();let t=document.getElementById("tinycookie-big-backdrop");t&&t.remove()}loadPreferences(){let e=this.#f("tinycookie-preferences-wrapper",!0);e.style.background=this.preferencesSettings.background,e.style.maxHeight="98vh",e.appendChild(this.#p()),e.appendChild(this.#q()),e.appendChild(this.#r());let t=document.getElementsByTagName("body")[0];t.insertBefore(e,t.firstChild),t.insertBefore(this.#f("tinycookie-backdrop",!0),t.firstChild)}closePreferences(){let e=document.getElementById("tinycookie-backdrop"),t=document.getElementById("tinycookie-preferences-wrapper");e&&e.remove(),t&&t.remove()}#g(){let n=this.#f("tinycookie-box-content");n.style.padding=this.boxSettings.contentPadding;let s=this.#f("tinycookie-title");s.innerHTML=this.translations.boxTitle,s.style.color=this.boxSettings.titleColor,s.style.fontSize=this.boxSettings.titleSize,s.style.fontWeight=this.boxSettings.titleWeight;let r=this.#f("tinycookie-description");return r.innerHTML=this.translations.boxDescription,r.style.color=this.boxSettings.descriptionColor,r.style.fontSize=this.boxSettings.descriptionSize,r.style.fontWeight=this.boxSettings.descriptionWeight,this.translations.boxTitle&&n.appendChild(s),n.appendChild(r),n}#h(){let c=this,a=this.#f("tinycookie-buttons");a.style.gap=this.boxSettings.buttonSpacing,a.style.padding=this.boxSettings.buttonPadding;let l=this.#f("tinycookie-main-buttons");l.style.gap=this.boxSettings.buttonSpacing;let d=this.#i(["tinycookie-button","tinycookie-accept-all"],this.translations.acceptButtonText);d.style.background=this.boxSettings.acceptButtonBackground,d.style.color=this.boxSettings.acceptButtonColor,d.addEventListener("click",function(){c.acceptAllCookies()});let g=this.#i("tinycookie-button",this.translations.acceptRequiredButtonText);g.style.background=this.boxSettings.rejectButtonBackground,g.style.color=this.boxSettings.rejectButtonColor,g.addEventListener("click",function(){c.acceptRequiredCookies()});let p=this.#i("tinycookie-button",this.translations.preferencesButtonText);return p.style.background=this.boxSettings.preferencesButtonBackground,p.style.color=this.boxSettings.preferencesButtonColor,p.addEventListener("click",function(){c.loadPreferences()}),l.appendChild(d),this.showReject&&l.appendChild(g),a.appendChild(l),this.showPreferences&&a.appendChild(p),a}#j(){let h=this.#f("tinycookie-legal-wrapper");h.style.background=this.boxSettings.legalBackground;let u=this.#f("tinycookie-legal-links");u.style.padding=this.boxSettings.legalPadding;let y=this.#s("tinycookie-privacy-policy",this.translations.privacyPolicy,this.privacyPolicyLink),f=this.#s("tinycookie-terms-conditions",this.translations.termsConditions,this.termsConditionsLink);return this.privacyPolicyLink&&u.appendChild(y),this.termsConditionsLink&&u.appendChild(f),h.appendChild(u),h}#s(k,C,S){let b=document.createElement("a");return b.classList.add(k),b.style.color=this.boxSettings.legalColor,b.style.fontSize=this.boxSettings.legalSize,b.style.fontWeight=this.boxSettings.legalWeight,b.setAttribute("href",S),b.setAttribute("target","_blank"),b.innerText=C,b}#p(){let x=this.#f("tinycookie-preferences-header");x.style.padding=this.preferencesSettings.titlePadding;let v=this.#f("tinycookie-preferences-header-title");v.style.color=this.preferencesSettings.titleColor,v.style.fontSize=this.preferencesSettings.titleSize,v.style.fontWeight=this.preferencesSettings.titleWeight,v.innerText=this.translations.preferencesTitle,x.appendChild(v);let B=this,m=this.#t("tinycookie-preferences-close","");return m.style.background=this.preferencesSettings.saveButtonBackground,m.addEventListener("click",function(){B.closePreferences()}),x.appendChild(m),x}#q(){let P=this.#f("tinycookie-preferences-content");P.style.padding=this.preferencesSettings.preferencesContentPadding;let T=this.#f("tinycookie-preferences-content-disclaimer");T.style.padding=this.preferencesSettings.infoPadding;let $=this.#f("tinycookie-preferences-content-disclaimer-title");$.style.color=this.preferencesSettings.infoTitleColor,$.style.fontSize=this.preferencesSettings.infoTitleSize,$.style.fontWeight=this.preferencesSettings.infoTitleWeight,$.innerText=this.translations.preferencesDisclaimerTitle,T.appendChild($);let A=this.#f("tinycookie-preferences-content-disclaimer-description");A.style.color=this.preferencesSettings.infoDescriptionColor,A.style.fontSize=this.preferencesSettings.infoDescriptionSize,A.style.fontWeight=this.preferencesSettings.infoDescriptionWeight,A.innerHTML=this.translations.preferencesDisclaimerDescription,T.appendChild(A);let L=!(!1===this.categoriesChecked||0===this.categoriesChecked),D=this.#f("tinycookie-preferences");return D.appendChild(this.#u("necessary",this.translations.preferencesNecessaryTitle,this.translations.preferencesNecessaryDescription)),this.preferencesSettings.showFunctionality&&D.appendChild(this.#u("functionality",this.translations.preferencesFunctionalityTitle,this.translations.preferencesFunctionalityDescription,L)),this.preferencesSettings.showAnalytics&&D.appendChild(this.#u("analytics",this.translations.preferencesAnalyticsTitle,this.translations.preferencesAnalyticsDescription,L)),this.preferencesSettings.showMarketing&&D.appendChild(this.#u("marketing",this.translations.preferencesMarketingTitle,this.translations.preferencesMarketingDescription,L)),P.appendChild(T),P.appendChild(D),P}#r(){let w=this,R=this.#f("tinycookie-preferences-actions");R.style.gap=this.preferencesSettings.buttonSpacing,R.style.padding=this.preferencesSettings.buttonPadding;let z=this.#f("tinycookie-preferences-actions-main-buttons");z.style.gap=this.preferencesSettings.buttonSpacing;let _=this.#t("tinycookie-preferences-accept",this.translations.preferencesAcceptButtonText);_.style.background=this.preferencesSettings.acceptButtonBackground,_.style.color=this.preferencesSettings.acceptButtonColor,_.addEventListener("click",function(){w.acceptAllCookies()});let M=this.#t("tinycookie-preferences-required",this.translations.preferencesAcceptRequiredButtonText);M.style.background=this.preferencesSettings.rejectButtonBackground,M.style.color=this.preferencesSettings.rejectButtonColor,M.addEventListener("click",function(){w.acceptRequiredCookies()});let E=this.#t("tinycookie-preferences-save",this.translations.savePreferences);return E.style.background=this.preferencesSettings.saveButtonBackground,E.style.color=this.preferencesSettings.saveButtonColor,E.addEventListener("click",function(){w.savePreferences()}),z.appendChild(_),this.showReject&&z.appendChild(M),R.appendChild(z),R.appendChild(E),R}#u(W,q,j,I=!0){let U=this.#f("tinycookie-preferences-preference");U.style.borderColor=this.preferencesSettings.categoryBoxBorderColor,U.style.borderRadius=this.preferencesSettings.categoryBoxRadius;let F=this.#f("tinycookie-preferences-preference-header");F.style.borderBottomColor=this.preferencesSettings.categoryBoxBorderColor,F.style.color=this.preferencesSettings.categoryTitleColor,F.style.fontSize=this.preferencesSettings.categoryTitleSize,F.style.fontWeight=this.preferencesSettings.categoryTitleWeight,F.style.padding=this.preferencesSettings.categoryTitlePadding,F.innerHTML=q;let H=document.createElement("input");H.id="tinycookie-"+W+"-checkbox",H.classList.add("tinycookie-preferences-preference-checkbox"),H.setAttribute("type","checkbox"),H.setAttribute("name","tinycookie-"+W+"-checkbox");let G=this.#b("tinycookie_acc");if(G){let N=G.split(",");H.checked=N.includes({necessary:"req",functionality:"func",analytics:"anal",marketing:"mark"}[W])}else I&&(H.checked=!0);"necessary"===W&&H.setAttribute("disabled","disabled"),F.appendChild(H);let O=this.#f("tinycookie-preferences-preference-content");return O.style.color=this.preferencesSettings.categoryContentColor,O.style.fontSize=this.preferencesSettings.categoryContentSize,O.style.fontWeight=this.preferencesSettings.categoryContentWeight,O.style.padding=this.preferencesSettings.categoryContentPadding,O.innerHTML=j,U.appendChild(F),U.appendChild(O),U}#f(J,K=!1){let X=document.createElement("div");return K?X.id=J:X.classList.add(J),X}#i(V,Y){let Z=document.createElement("button");return Z.style.fontSize=this.boxSettings.buttonSize,Z.style.fontWeight=this.boxSettings.buttonWeight,Z.style.borderRadius=this.boxSettings.buttonBorderRadius,Array.isArray(V)?V.forEach(function(e){Z.classList.add(e)}):Z.classList.add(V),Z.innerText=Y,Z}#t(Q,ee){let et=document.createElement("button");return et.style.fontSize=this.preferencesSettings.buttonSize,et.style.fontWeight=this.preferencesSettings.buttonWeight,et.style.borderRadius=this.preferencesSettings.buttonBorderRadius,Array.isArray(Q)?Q.forEach(function(e){et.classList.add(e)}):et.classList.add(Q),et.innerText=ee,et}#o(ei,eo,en,es){let er=this;en.length>0&&!ei.includes(es)&&en.split(",").forEach(function(e){["tinycookie","tinycookie_acc"].includes(e)||eo.includes(e)||er.#v(e)})}#l(ec,ea,el){if(!this.consentModeActive||"function"!=typeof gtag)return;let ed={functionality_storage:"granted",security_storage:"granted",personalization_storage:ec?"granted":"denied",analytics_storage:ea?"granted":"denied",ad_storage:el?"granted":"denied",ad_user_data:el?"granted":"denied",ad_personalization:el?"granted":"denied"};console.log("Google consent updated:"),console.log(ed),gtag("consent","update",ed),localStorage.setItem("consentMode",JSON.stringify(ed))}#e(eg=!1){this.pixelModeActive&&"function"==typeof fbq&&(eg?fbq("consent","grant"):fbq("consent","revoke"),console.log("Facebook pixel consent updated:",eg))}#m(ep,eh,eu){if(!this.registerConsent)return;let ey="required";ep&&(ey+=",functionality"),eh&&(ey+=",analytics"),eu&&(ey+=",marketing"),this.#w({shop:window.Shopify.shop,country:this.country,consent_url:window.location.pathname,consent_accepted:ey})}#d(ef,ek,eC){this.shopifyApiLoaded&&window.Shopify.customerPrivacy.setTrackingConsent({analytics:ek,marketing:eC,preferences:ef},()=>console.log("Consent captured."))}#w(eS){var eb=new XMLHttpRequest;eb.open("POST",this.apiDomain+"/webhook/track-consent",!0),eb.setRequestHeader("Content-Type","application/json"),eb.setRequestHeader("Authorization","super-secret-key"),eb.send(JSON.stringify(eS))}#c(){document.cookie.split("; ").forEach(e=>{let[t,i]=e.split("=");this.functionalCookies.includes(t)?(this.removedFunctionalCookies.push({name:t,value:i}),this.removedCookies.push({name:t,value:i}),this.#v(t)):this.analyticsCookies.includes(t)?(this.removedAnalyticsCookies.push({name:t,value:i}),this.removedCookies.push({name:t,value:i}),this.#v(t)):this.marketingCookies.includes(t)&&(this.removedMarketingCookies.push({name:t,value:i}),this.removedCookies.push({name:t,value:i}),this.#v(t))})}#n(ex){ex.forEach(e=>{document.cookie=`${e.name}=${e.value}; path=/; domain=${window.location.hostname};`})}#k(ev,eB,em,eP="/"){let eT=new Date;eT.setTime(eT.getTime()+864e5*em);let e$="expires="+eT.toUTCString();document.cookie=`${ev}=${eB}; ${e$}; path=${eP}`}#b(eA){let eL=document.cookie.split("; ").find(e=>e.startsWith(eA+"="))?.split("=")[1];return eL?decodeURIComponent(eL):""}#v(eD){let ew=window.location.hostname.replace("www.","");document.cookie=`${eD}=; expires=Thu, 01 Jan 1970 00:00:00 UTC; path=/;`,document.cookie=`${eD}=; expires=Thu, 01 Jan 1970 00:00:00 UTC; path=/; Domain=.${ew};`}}function checkIfCountryCodeInRegion(e){return new Promise((t,i)=>{let o=[],n={europe:["GB","DE","FR","IT","ES","UK","NL","BE","AT","GR","PT","SE","FI","DK","IE","HU","PL","CZ","SK","RO","BG","HR","SI","EE","LV","LT","LU","MT","CY","IS","LI","NO"],usa:["US"],brazil:["BR"],canada:["CA"],albertaBritishColumbia:["CA-AB","CA-BC"],japan:["JP"],thailand:["TH"],switzerland:["CH"]};fetch("/browsing_context_suggestions.json").then(e=>e.json()).then(function(i){for(let s in e)"usaStates"!==s&&e[s]&&o.push(...n[s]);let r=i.detected_values.country.handle,c=i.detected_values.country_name;t({country:c,countryCode:r,shouldLoad:o.includes(r)})}).catch(e=>{console.log("Country API error:",e),i(e)})})}window.addEventListener("DOMContentLoaded",()=>{console.log("Tiny cookie loads");let e=document.getElementById("tiny-cookie-data");if(!(e&&e.textContent.length>0))return;let t=JSON.parse(e.textContent),i=window.location.href.includes("tinycookie-preview"),o=window.location.href.includes("tinycookie-preferences"),n=t.translations;t.translatedLanguages&&void 0!==t.translatedLanguages[window.Shopify.locale]&&(n=t.translatedLanguages[window.Shopify.locale]);let s=new TinyCookie({shop:window.Shopify.shop,showAlways:i,showAlwaysPreferences:o,registerConsent:t.registerConsent,boxDesign:t.generalSettings.boxDesign,boxPosition:t.generalSettings.boxPosition,showReject:t.generalSettings.showReject,showPreferences:t.generalSettings.showPreferences,categoriesChecked:t.generalSettings.categoriesChecked,consentModeActive:t.generalSettings.consentModeActive,pixelModeActive:t.generalSettings.pixelModeActive,gpcModeActive:t.generalSettings.gpcModeActive,showCloseButton:t.generalSettings.showCloseButton,closeButtonBehaviour:t.generalSettings.closeButtonBehaviour,loadedGlobally:t.loadedGlobally,geoLocation:t.geoLocation,enabledStates:void 0!==t.geoLocation.usaStates?t.geoLocation.usaStates:null,translations:{acceptButtonText:n.acceptButtonText,acceptRequiredButtonText:n.acceptRequiredButtonText,preferencesButtonText:n.preferencesButtonText,boxTitle:n.boxTitle,boxDescription:n.boxDescription,preferencesTitle:n.preferencesTitle,preferencesDisclaimerTitle:n.preferencesDisclaimerTitle,preferencesDisclaimerDescription:n.preferencesDisclaimerDescription,preferencesNecessaryTitle:n.necessaryCookiesTitle,preferencesNecessaryDescription:n.necessaryCookiesDescription,preferencesFunctionalityTitle:n.functionalityCookiesTitle,preferencesFunctionalityDescription:n.functionalityCookiesDescription,preferencesAnalyticsTitle:n.analyticsCookiesTitle,preferencesAnalyticsDescription:n.analyticsCookiesDescription,preferencesMarketingTitle:n.marketingCookiesTitle,preferencesMarketingDescription:n.marketingCookiesDescription,preferencesAcceptButtonText:n.preferencesAcceptButtonText,preferencesAcceptRequiredButtonText:n.preferencesAcceptRequiredButtonText,savePreferences:n.savePreferencesText,privacyPolicy:n.privacyPolicy,termsConditions:n.termsConditions,badgeTitle:n.badgeTitle},boxSettings:{background:t.boxSettings.backgroundColor,closeButtonColor:t.boxSettings.closeButtonColor,showBackdrop:t.boxSettings.showBackdrop,backdropOpacity:t.boxSettings.backdropOpacity,titleColor:t.boxSettings.titleColor,titleSize:t.boxSettings.titleSize+"px",titleWeight:t.boxSettings.titleWeight,descriptionColor:t.boxSettings.descriptionColor,descriptionSize:t.boxSettings.descriptionSize+"px",descriptionWeight:t.boxSettings.descriptionWeight,contentPadding:t.boxSettings.contentPaddingTop+"px "+t.boxSettings.contentPaddingRight+"px "+t.boxSettings.contentPaddingBottom+"px "+t.boxSettings.contentPaddingLeft+"px",buttonSize:t.boxSettings.buttonSize+"px",buttonWeight:t.boxSettings.buttonWeight,buttonPadding:t.boxSettings.buttonPaddingTop+"px "+t.boxSettings.buttonPaddingRight+"px "+t.boxSettings.buttonPaddingBottom+"px "+t.boxSettings.buttonPaddingLeft+"px",buttonBorderRadius:t.boxSettings.buttonBorderRadius+"px",buttonSpacing:t.boxSettings.buttonSpacing+"px",acceptButtonBackground:t.boxSettings.acceptButtonBackground,acceptButtonColor:t.boxSettings.acceptButtonColor,rejectButtonBackground:t.boxSettings.rejectButtonBackground,rejectButtonColor:t.boxSettings.rejectButtonColor,preferencesButtonBackground:t.boxSettings.preferencesButtonBackground,preferencesButtonColor:t.boxSettings.preferencesButtonColor,legalBackground:t.boxSettings.legalBackground,legalColor:t.boxSettings.legalColor,legalSize:t.boxSettings.legalSize+"px",legalWeight:t.boxSettings.legalWeight,legalPadding:t.boxSettings.legalPaddingTop+"px "+t.boxSettings.legalPaddingRight+"px "+t.boxSettings.legalPaddingBottom+"px "+t.boxSettings.legalPaddingLeft+"px"},preferencesSettings:{showFunctionality:t.generalSettings.showFunctionality,showAnalytics:t.generalSettings.showAnalytics,showMarketing:t.generalSettings.showMarketing,background:t.preferencesSettings.backgroundColor,titleColor:t.preferencesSettings.titleColor,titleSize:t.preferencesSettings.titleSize+"px",titleWeight:t.preferencesSettings.titleWeight,titlePadding:t.preferencesSettings.titlePaddingTop+"px "+t.preferencesSettings.titlePaddingRight+"px "+t.preferencesSettings.titlePaddingBottom+"px "+t.preferencesSettings.titlePaddingLeft+"px",preferencesContentPadding:t.preferencesSettings.preferencesContentPaddingTop+"px "+t.preferencesSettings.preferencesContentPaddingRight+"px "+t.preferencesSettings.preferencesContentPaddingBottom+"px "+t.preferencesSettings.preferencesContentPaddingLeft+"px",infoTitleColor:t.preferencesSettings.infoTitleColor,infoTitleSize:t.preferencesSettings.infoTitleSize+"px",infoTitleWeight:t.preferencesSettings.infoTitleWeight,infoDescriptionColor:t.preferencesSettings.infoDescriptionColor,infoDescriptionSize:t.preferencesSettings.infoDescriptionSize+"px",infoDescriptionWeight:t.preferencesSettings.infoDescriptionWeight,infoPadding:t.preferencesSettings.infoPaddingTop+"px "+t.preferencesSettings.infoPaddingRight+"px "+t.preferencesSettings.infoPaddingBottom+"px "+t.preferencesSettings.infoPaddingLeft+"px",categoryTitleColor:t.preferencesSettings.categoryTitleColor,categoryTitleSize:t.preferencesSettings.categoryTitleSize+"px",categoryTitleWeight:t.preferencesSettings.categoryTitleWeight,categoryTitlePadding:t.preferencesSettings.categoryTitlePaddingTop+"px "+t.preferencesSettings.categoryTitlePaddingRight+"px "+t.preferencesSettings.categoryTitlePaddingBottom+"px "+t.preferencesSettings.categoryTitlePaddingLeft+"px",categoryContentColor:t.preferencesSettings.categoryContentColor,categoryContentSize:t.preferencesSettings.categoryContentSize+"px",categoryContentWeight:t.preferencesSettings.categoryContentWeight,categoryContentPadding:t.preferencesSettings.categoryContentPaddingTop+"px "+t.preferencesSettings.categoryContentPaddingRight+"px "+t.preferencesSettings.categoryContentPaddingBottom+"px "+t.preferencesSettings.categoryContentPaddingLeft+"px",categoryBoxBorderColor:t.preferencesSettings.categoryBoxBorderColor,categoryBoxRadius:t.preferencesSettings.categoryBoxRadius+"px",buttonSize:t.preferencesSettings.buttonSize+"px",buttonWeight:t.preferencesSettings.buttonWeight,buttonPadding:t.preferencesSettings.buttonPaddingTop+"px "+t.preferencesSettings.buttonPaddingRight+"px "+t.preferencesSettings.buttonPaddingBottom+"px "+t.preferencesSettings.buttonPaddingLeft+"px",buttonBorderRadius:t.preferencesSettings.buttonBorderRadius+"px",buttonSpacing:t.preferencesSettings.buttonSpacing+"px",acceptButtonBackground:t.preferencesSettings.acceptButtonBackground,acceptButtonColor:t.preferencesSettings.acceptButtonColor,rejectButtonBackground:t.preferencesSettings.rejectButtonBackground,rejectButtonColor:t.preferencesSettings.rejectButtonColor,saveButtonBackground:t.preferencesSettings.saveButtonBackground,saveButtonColor:t.preferencesSettings.saveButtonColor},badgeSettings:{active:t.badgeSettings.active,position:t.badgeSettings.position,backgroundColor:t.badgeSettings.backgroundColor,iconColor:t.badgeSettings.iconColor,svgImage:t.badgeSettings.svgImage,title:t.badgeSettings.title,openType:t.badgeSettings.openType,titleColor:t.badgeSettings.titleColor,cornerPadding:t.badgeSettings.cornerPadding},showPrivacyPolicy:t.generalSettings.showPrivacyPolicy,showTermsAndConditions:t.generalSettings.showTermsAndConditions,privacyPolicyLink:void 0!==n.privacyPolicyUrl&&null!==n.privacyPolicyUrl&&n.privacyPolicyUrl.length>0?n.privacyPolicyUrl:t.generalSettings.privacyPolicyUrl,termsConditionsLink:void 0!==n.termsAndConditionsUrl&&null!==n.termsAndConditionsUrl&&n.termsAndConditionsUrl.length>0?n.termsAndConditionsUrl:t.generalSettings.termsAndConditionsUrl,removeCookies:t.generalSettings.removeCookies,requiredCookies:t.cookieCategories.required,analyticsCookies:t.cookieCategories.analytics,marketingCookies:t.cookieCategories.marketing,functionalCookies:t.cookieCategories.functionality});t.loadedGlobally||void 0===t.loadedGlobally?s.load():checkIfCountryCodeInRegion(t.geoLocation).then(e=>{!0===e.shouldLoad&&(s.countryCode=e.countryCode,s.country=e.country,s.load())}).catch(e=>{s.load()}),window.Shopify.tinycookie=s});