PageSourceSearch

https://www.faber-castell.es/dist/FC.Ecom/modules/CanvasOverlayEvents.08ad6664.js

js faber-castell.es collected 2026-10-02 13:24:05 UTC 2,173 bytes, 1 lines download raw bytes

1"use strict";(self["FC.EcomwebpackJsonp"]=self["FC.EcomwebpackJsonp"]||[]).push([[391],{55062:(e,t,s)=>{s.r(t),s.d(t,{default:()=>n});var o=function(){function e(e){this.element=e,this.html=document.querySelector("html"),this.body=document.body,this.owners=this.element.id?Array.from(document.querySelectorAll('[aria-controls="'.concat(this.element.id,'"]'))):[],this.onCloseBtnClick(),this.onCloseDocumentClick()}return e.setup=function(t){void 0===t&&(t='[data-module="CanvasOverlayEvents"]'),Array.from(document.querySelectorAll(t)).filter((function(e){return!e.dataset.moduleInitialized})).forEach((function(t){new e(t),t.dataset.moduleInitialized="true"}))},e.prototype.onCloseBtnClick=function(){var e=this.element.querySelector(".overlay__close");e&&(e.addEventListener("click",this.closeOverlay.bind(this)),document.addEventListener("overlay:close",this.closeOverlay.bind(this)))},e.prototype.onCloseDocumentClick=function(){document.addEventListener("click",this.closeOverlayAround.bind(this))},e.prototype.closeOverlayAround=function(e){var t=e.target;t&&!t.closest(".off-canvas__slide")&&this.body.classList.contains("off-canvas__opened")&&this.closeAllOverlays()},e.prototype.closeAllOverlays=function(){var e=document.querySelectorAll(".off-canvas__slide.animated");e.forEach((function(e){e.classList.remove("animated")})),this.html.classList.remove("lock-screen"),this.body.classList.remove("lock-screen","off-canvas__opened"),this.body.classList.contains("mini-cart")&&this.body.classList.remove("mini-cart"),this.updateOverlayOwnersStatus(),setTimeout((function(){e.forEach((function(e){e.remove()}))}))},e.prototype.closeOverlay=function(){this.element.classList.remove("animated"),this.html.classList.remove("lock-screen"),this.body.classList.remove("lock-screen","off-canvas__opened"),this.body.classList.contains("mini-cart")&&this.body.classList.remove("mini-cart"),this.updateOverlayOwnersStatus();var e=this;setTimeout((function(){e.element.remove()}),300)},e.prototype.updateOverlayOwnersStatus=function(){this.owners.forEach((function(e){e.setAttribute("aria-expanded","false"),e.setAttribute("aria-controls","")}))},e}();const n=o;new o.setup}}]);

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.