PageSourceSearch

https://www.loccitane.com/on/demandware.static/Sites-OCC-Site/-/en/v1790224421145/js/cookiesproviderevent.js

js loccitane.com collected 2026-09-24 08:29:57 UTC 3,921 bytes, 1 lines download raw bytes

1(()=>{"use strict";var e={28148:e=>{var a,t="-container",o="o-header",r="a--tabfocus",n="."+o,i=o+"--dyn",s=n+t,c="cart-actions-sticky",d="."+c,l="."+r,u=SitePreferences.DYNAMIC_SEARCH_ENABLED,p="data-carttrackingid",h=window.OCC&&window.OCC.vendor||{},m=h.debounce,b=$("body"),f=$(n),v=$(document),y=$(window),C=$("#wrapper");e.exports={$body:b,$header:f,$window:y,$document:v,$mainWrapper:C,wrapperId:"#wrapper",touchClassName:"touch",noTouchClassName:"notouch",headerClass:n,headerClassName:o,tabFocusClass:l,scrolledClassName:"scrolled",refineSortClass:".o-refine-sort",a11ySkiplinkJSActiveClassName:"js--active",a11ySkiplinkId:"#a11y_skiplink",wrapperSuffix:"-wrapper",containerSuffix:t,tabFocusClassName:r,dynHeaderClassName:i,headerContainerClass:s,expandableToggleClass:".a-expandable-toggle",mobileRefineOpenClassName:"mobile-refine--open",mobileStickySearchOpenClassName:"mobile-sticky-search-open",cartActionStickyClassName:c,cartTrackingIdSelector:"[".concat(p,"]"),cartTrackingIdAttr:p,cartActionStickyClass:d,purchasedProductsKey:"purchasedProducts",dwApplePayBtnClass:".dw-apple-pay-button",addToWishlistCase:"addToWishlist",removeFromWishlistCase:"removeFromWishlist",focusableSelector:'a[href], area[href], input:not([disabled]), select:not([disabled]), textarea:not([disabled]), button:not([disabled]), [tabindex="0"]',hiddenByOverlaySelector:".m-breadcrumb, .m-page-header, footer, .m-loader, #search-overlay, #a11y_skiplink, .o-cookies-alert, .o-search-results-wrapper, .o-content-module",dataExpressPaymentsQuantityAttr:"data-express-payments-quantity",ariaDescribedbyAttr:"aria-describedby",ariaExpandedAttr:"aria-expanded",ariaControlsAttr:"aria-controls",ariaHiddenAttr:"aria-hidden",ariaModalAttr:"aria-modal",ariaLiveAttr:"aria-live",ariaLabelAttr:"aria-label",ariaCurrentAttr:"aria-current",ariaDisabledAttr:"aria-disabled",placeholderAttr:"placeholder",tabindexAttr:"tabindex",typeAttr:"type",roleAttr:"role",btnRole:"button",headerScrolledEvent:"header.scrolled",headerLoadedEvent:"header.loaded",updateFocusClass:function(e){var t;if($(l).removeClass(r),void 0!==e){e.addClass(r);var o=$(s);if(!o.length){var n=$("o-header-simplify").get(0);n&&n.shadowRoot&&(o=$(n.shadowRoot.querySelector(".o-header-simplify-container")))}if(!o.length||!e.length)return;var i=e.offset().top,c=o.offset().top,d=$(".m-header-search-form").outerHeight()+o.outerHeight();i<c+d&&!e.parents(s).length&&$("html, body").animate({scrollTop:e.offset().top-d},0),e.trigger("tabfocus"),e.one("blur focusout",function(){var e;$(this).removeClass(r),null===(e=a)||void 0===e||e()})}null===(t=a)||void 0===t||t()},isDynamicSearch:function(){return u},setCallbackUpdateFocusEnd:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;a=e?m(e,100):null},vendor:h,init:function(){}}}},a={};var t=function t(o){var r=a[o];if(void 0!==r)return r.exports;var n=a[o]={exports:{}};return e[o](n,n.exports,t),n.exports}(28148);!function(){function e(){var e,a,o=$(".o-header").outerHeight(),r=null!==(e=null===(a=document.querySelector(".o-promotion-banner"))||void 0===a?void 0:a.clientHeight)&&void 0!==e?e:0;t.$mainWrapper.css({"margin-top":o,"--promo-top-banner-height":r>0?(r+9).toString().concat("px"):"0px"}),t.isDynamicSearch()||$(".m-header-search-form").css("top",o)}function a(){document.cookie.indexOf("dw_cookies_accepted")<0&&(document.cookie="dw_cookies_accepted=1; path=/; SameSite=Lax; Secure")}t.$body.on("cookiesprovider:Sfcc",function(){var t=$("#cookies-banner-content").remove();$(".o-cookies-alert").html(t),0===$(".privacy-policy").length&&($("#cookies-banner-content").show(),e()),$("#cookies-banner-content .a-button").on("click",function(){$("#cookies-banner-content").hide(),e(),a()}),$(window).smartresize(function(){setTimeout(function(){e()},200)})}),t.$body.on("cookiesprovider:OneTrust",function(){$(this).on("click",Resources.COOKIES_CONSENT_BUTTON,function(){a()})})}()})();

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.