PageSourceSearch

https://www.colgate.ch/etc.clientlibs/astra/clientlibs/clientlib-d…-62849d6f900791a4698e29186748f50f-lc.min.js

js colgate.ch collected 2026-10-07 07:36:51 UTC 6,366 bytes, 16 lines download raw bytes

1var $jscomp=$jscomp||{};$jscomp.scope={};$jscomp.arrayIteratorImpl=function(a){var b=0;return function(){return b<a.length?{done:!1,value:a[b++]}:{done:!0}}};$jscomp.arrayIterator=function(a){return{next:$jscomp.arrayIteratorImpl(a)}};$jscomp.makeIterator=function(a){var b="undefined"!=typeof Symbol&&Symbol.iterator&&a[Symbol.iterator];return b?b.call(a):$jscomp.arrayIterator(a)};
2function dataPrivacyNonConsentMessage(a,b,c){var d=$("div.message-"+a+".data-privacy-non-consent-message-inline"),e=!1;isCheckDataPrivacyConsent(a)?(d.each(function(){$(this).addClass("display-none")}),e=!0):d.each(function(){$(this).removeClass("display-none")});b&&consentBasedShowHideComponentElement(b,c,e)}function consentBasedShowHideComponentElement(a,b,c){b&&a&&(c?a.removeClass("display-none"):a.addClass("display-none"))}
3function getComponentDataPrivacyElement(a){return $("div."+a+"-data-privacy")}function getElementSpecificDataAttr(a,b){return a&&a.is("["+b+"]")?a.attr(b):""}function isSpecificDataAttrExists(a,b){return a&&a.is("["+b+"]")}function isCookieNameExists(a){var b=document.cookie.split(";");b=$jscomp.makeIterator(b);for(var c=b.next();!c.done;c=b.next())if(c.value.trim().split("\x3d")[0]===a)return!0;return!1}
4function getSpecificCookieVal(a){var b=decodeURIComponent(document.cookie).split(";");b=$jscomp.makeIterator(b);for(var c=b.next();!c.done;c=b.next())if(c=c.value.trim(),c.startsWith(a+"\x3d"))return c.substring(a.length+1);return""}function getSpecificCookieValueParamVal(a,b){a=a.split("\x26");a=$jscomp.makeIterator(a);for(var c=a.next();!c.done;c=a.next())if(c=c.value.trim(),c.startsWith(b+"\x3d"))return c.substring(b.length+1);return""}
5function checkDataPrivacyConsentFlag(a,b,c,d){return"true"===getElementSpecificDataAttr(a,b)?c.includes(d):!0}function isDataPrivacyConsentAccepted(a,b){return checkDataPrivacyConsentFlag(a,"data-privacy-required",b,"0")&&checkDataPrivacyConsentFlag(a,"data-privacy-functional",b,"1")&&checkDataPrivacyConsentFlag(a,"data-privacy-advertising",b,"2")}
6function isOneTrustDataPrivacyConsentAccepted(a,b){return checkDataPrivacyConsentFlag(a,"data-privacy-required",b,"C0001:1")&&checkDataPrivacyConsentFlag(a,"data-privacy-functional",b,"C0002:1")&&checkDataPrivacyConsentFlag(a,"data-privacy-advertising",b,"C0004:1")}function getDataPrivacyNoticeBehaviorCookieVal(a){return isCookieNameExists(a)?getSpecificCookieVal(a):""}
7function isCheckDataPrivacyConsent(a){a=getComponentDataPrivacyElement(a);var b=getElementSpecificDataAttr(a,"data-privacy-name");getElementSpecificDataAttr(a,"data-privacy-tool");if(isSpecificDataAttrExists(a,"data-privacy-tool")&&"one-trust"===getElementSpecificDataAttr(a,"data-privacy-tool")){if(isCookieNameExists(b))return b=getSpecificCookieVal(b),b=getSpecificCookieValueParamVal(b,"groups"),isOneTrustDataPrivacyConsentAccepted(a,b)}else{if(getDataPrivacyNoticeBehaviorCookieVal("notice_behavior").includes("implied,us"))return isCookieNameExists(b)?
8isDataPrivacyConsentAccepted(a,getSpecificCookieVal(b)):!0;if(isCookieNameExists(b))return b=getSpecificCookieVal(b),isDataPrivacyConsentAccepted(a,b)}return!1}function insertScriptInHead(a,b,c,d){a=getComponentDataPrivacyElement(a);b=getElementSpecificDataAttr(a,b);""===b||document.querySelector('head script[src\x3d"'+b+'"]')||(a=document.createElement("script"),c&&(a.id=c),a.src=b,d&&(a.defer=!0),document.head.appendChild(a))}
9function dataPrivacyNonConsentCheck(a){var b=setInterval(function(){isCheckDataPrivacyConsent(a)||(location.reload(),clearInterval(b))},1E3)}function fragmentListDataPrivacyConsentCheck(a,b){var c=setInterval(function(){isCheckDataPrivacyConsent(a)&&(insertScriptInHead(a,b),dataPrivacyNonConsentCheck(a),clearInterval(c))},1E3)}
10function insertAdditionalScriptInHead(a){if(""!==a&&!document.querySelector('head script[src\x3d"'+a+'"]')){var b=document.createElement("script");b.src=a;document.head.appendChild(b)}}function getHeadScriptElement(a,b){a=getComponentDataPrivacyElement(a);b=getElementSpecificDataAttr(a,b);if(""!==b)return(b=document.querySelector('head script[src\x3d"'+b+'"]'))?b:null}
11function insertScriptInBody(a,b,c,d){a=getComponentDataPrivacyElement(a);b=getElementSpecificDataAttr(a,b);""===b||document.querySelector('body script[src\x3d"'+b+'"]')||(a=document.createElement("script"),c&&(a.id=c),a.src=b,d&&(a.defer=!0),document.body.appendChild(a))}function getBodyScriptElement(a,b){a=getComponentDataPrivacyElement(a);b=getElementSpecificDataAttr(a,b);if(""!==b)return(b=document.querySelector('body script[src\x3d"'+b+'"]'))?b:null}
12function insertAdditionalScriptInBody(a){if(""!==a&&!document.querySelector('body script[src\x3d"'+a+'"]')){var b=document.createElement("script");b.src=a;document.body.appendChild(b)}}function getDataPrivacyPopupWidth(a,b,c,d){1024<=a?d=b:768<=a&&(d=c);return d}
13function applyDataPrivacyPopupStyles(){var a=$(".data-privacy-popup-banner-model"),b=a.find(".popup-content"),c=a.data("popup-width-desktop")||"100%",d=a.data("popup-width-tablet")||"100%",e=a.data("popup-width-mobile")||"100%",f=a.data("overlay-color")||"#000000",g=a.data("overlay-opacity")||.8,h=a.data("z-index")||1E3,k=$(window).width();c=getDataPrivacyPopupWidth(k,c,d,e);b.css("width",c);a.find(".popup-overlay").css({"background-color":f,opacity:g});a.css("z-index",h)}
14function closeDataPrivacyNonConsentPopup(){$("div[data-popup-id\x3d'Data-Privacy-Non-Consent-Message'].data-privacy-popup-banner-model").removeClass("visible");$("body").removeClass("pop-up-no-scroll")}function showDataPrivacyNonConsentPopup(a,b){if(a.is("[href]")||a.is("button"))a=$("#Data-Privacy-Non-Consent-Message"),0<a.length&&(b.preventDefault(),applyDataPrivacyPopupStyles(),a.closest(".data-privacy-popup-banner-model").addClass("visible"))}
15$(document).ready(function(){$(document).on("click",".data-privacy-check-cta",function(a){var b=$(this);showDataPrivacyNonConsentPopup(b,a)});$(window).on("resize",function(){applyDataPrivacyPopupStyles()});$("div[data-popup-id\x3d'Data-Privacy-Non-Consent-Message'].data-privacy-popup-banner-model").find("div#Data-Privacy-Non-Consent-Message a[href\x3d'#']").on("click",function(){closeDataPrivacyNonConsentPopup()});$("div[data-popup-id\x3d'Data-Privacy-Non-Consent-Message'].data-privacy-popup-banner-model").find(".popup-close").on("click",
16function(){closeDataPrivacyNonConsentPopup()});applyDataPrivacyPopupStyles()});

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.