PageSourceSearch

https://www.faber-castell.it/dist/FC.Ecom/modules/AccountMenu.f7ffec66.js

js faber-castell.it collected 2026-10-03 22:37:22 UTC 2,336 bytes, 1 lines download raw bytes

1"use strict";(self["FC.EcomwebpackJsonp"]=self["FC.EcomwebpackJsonp"]||[]).push([[8263],{79250:(e,t,n)=>{n.r(t),n.d(t,{default:()=>c});var o=function(){function e(e){this.element=e,this.initHandlers()}return e.setup=function(t){void 0===t&&(t='[data-module="AccountMenu"]');var n=document.querySelectorAll(t);Array.from(n).filter((function(e){return!e.dataset.moduleInitialized})).forEach((function(t){new e(t),t.dataset.moduleInitialized="true"}))},e.prototype.initHandlers=function(){var e=this;document.addEventListener("click",(function(t){t.target.closest(".user-account")||e.closeAccountMenu()}));var t=this.element.querySelector(".icon-Navi-Login");t&&(t.addEventListener("keydown",(function(n){if("Space"===n.code||"Enter"===n.code||"ArrowDown"===n.code){if(n.preventDefault(),!e.element.classList.contains("show-menu")){var o=document.querySelectorAll(".user-account__menu li a");setTimeout((function(){var e=o[0];e&&e.focus()}),20)}t.click()}})),t.addEventListener("blur",(function(t){return e.blurAccountMenu(t)})),t.addEventListener("click",(function(n){if(n.preventDefault(),e.element.classList.contains("show-menu"))e.closeAccountMenu();else{e.element.classList.add("show-menu"),t.setAttribute("aria-expanded","true");var o=document.querySelectorAll(".user-account__menu li a");o.forEach((function(n){n.tabIndex=0,n.addEventListener("keydown",(function(c){if("Escape"===c.code)c.preventDefault(),t.focus(),e.element.classList.remove("show-menu"),t.setAttribute("aria-expanded","false"),n.tabIndex=-1;else if("ArrowUp"===c.code||"Tab"===c.code&&c.shiftKey){c.preventDefault();var u=0===(r=Array.from(o).indexOf(n))?o.length-1:r-1;o[u].focus()}else if("ArrowDown"===c.code||"Tab"===c.code&&!c.shiftKey){c.preventDefault();var r,i=(r=Array.from(o).indexOf(n))===o.length-1?0:r+1;o[i].focus()}}))})),setTimeout((function(){var e;null===(e=document.querySelector(".user-account__menu"))||void 0===e||e.focus()}),10)}})))},e.prototype.blurAccountMenu=function(e){var t=e.relatedTarget;t||(t=e.target),t&&(t.closest(".icon-Navi-Login")||t.closest(".user-account__menu"))||this.closeAccountMenu()},e.prototype.closeAccountMenu=function(){var e;this.element.classList.remove("show-menu"),null===(e=this.element.querySelector(".icon-Navi-Login"))||void 0===e||e.setAttribute("aria-expanded","false")},e}();const c=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.