1"use strict";(self["FC.EcomwebpackJsonp"]=self["FC.EcomwebpackJsonp"]||[]).push([[4636],{65660:(e,t,o)=>{o.r(t),o.d(t,{default:()=>s});var l=o(47012),n=function(){function e(e){this.element=e,this.body=document.body,this.html=document.querySelector("html"),this.onInit()}return e.setup=function(t){void 0===t&&(t='[data-module="FakeOverlayLayer"]'),Array.from(document.querySelectorAll(t)).filter((function(e){return!e.dataset.moduleInitialized})).forEach((function(t){new e(t),t.dataset.moduleInitialized="true"}))},e.prototype.onInit=function(){var e=this;setTimeout((function(){e.onLoadUpperContent(),e.onCloseFakeLayer(),e.onDocumentClick(),e.onClickSelectItem()}),200)},e.prototype.onLoadUpperContent=function(){var e=this;this.customSelectWrapper=this.element.querySelectorAll(".custom-select"),this.customSelectWrapper.forEach((function(t){var o=e.element.querySelector(".custom-select__options[role=dialog]"),l="fake-layer-title-"+crypto.randomUUID();null==o||o.setAttribute("aria-labelledby",l);var n='<div class="fake-upper-content">\n <h3 class="fake-layer-title hdl-5"'.concat(o?' id="'.concat(l,'"'):"",">").concat(e.element.getAttribute("data-title"),'</h3>\n <button aria-label="').concat(e.getCloseButtonLabel(),'" class="close-fake-layer" type="button" tabIndex="-1">\n <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none">\n <path fill-rule="evenodd" clip-rule="evenodd" d="M18.364 7.05024L16.9497 5.63603L12 10.5858L7.05025 5.63603L5.63604 7.05024L10.5858 12L5.63604 16.9497L7.05025 18.3639L12 13.4142L16.9497 18.3639L18.364 16.9497L13.4142 12L18.364 7.05024Z" fill="#222222"/>\n <mask id="mask0_322_39177" style="mask-type:luminance" maskUnits="userSpaceOnUse" x="5" y="5" width="14" height="14">\n <path fill-rule="evenodd" clip-rule="evenodd" d="M18.364 7.05024L16.9497 5.63603L12 10.5858L7.05025 5.63603L5.63604 7.05024L10.5858 12L5.63604 16.9497L7.05025 18.3639L12 13.4142L16.9497 18.3639L18.364 16.9497L13.4142 12L18.364 7.05024Z" fill="white"/>\n </mask>\n <g mask="url(#mask0_322_39177)">\n <rect width="24" height="24" fill="#222222"/>\n </g>\n </svg> \n </button>\n </div>\n ');!e.element.querySelector(".fake-upper-content")&&e.element.querySelector(".custom-select__options").insertAdjacentHTML("afterbegin",n)}))},e.prototype.getCloseButtonLabel=function(){var e,t,o=this.element.querySelector("[data-selector-type]");if(!o)return null;var n=o.getAttribute("data-selector-type");if(!n)return null;var s=document.getElementById("rc-mini-cart");switch(n){case"hardness":return null===(e=(0,l.getCommonTexts)(s))||void 0===e?void 0:e.closeHardnessSelectorLabel;case"nibsize":return null===(t=(0,l.getCommonTexts)(s))||void 0===t?void 0:t.closeNibSizeSelectorLabel;default:return null}},e.prototype.onClickSelectItem=function(){var e=this;document.querySelectorAll(".custom-select__selected").forEach((function(t){t.addEventListener("click",(function(){var o;t.closest(".custom-select").querySelector(".custom-select__options--open")?e.closeOverlays():(e.body.classList.add("overflow-hidden"),e.html.classList.add("overflow-hidden"),null===(o=e.element.closest(".product-info"))||void 0===o||o.classList.add("overlay-layer"))}))}))},e.prototype.onCloseFakeLayer=function(){var e=this,t=this.element.querySelector(".close-fake-layer"),o=this.element.querySelector(".custom-select__options");t&&t.addEventListener("click",(function(t){o&&(e.closeCustomSelect(o),o.querySelectorAll(".custom-select__option, .close-fake-layer").forEach((function(e){e.setAttribute("tabIndex","-1")}))),e.closeOverlays()}))},e.prototype.onDocumentClick=function(){var e=this,t=this.element.querySelector(".custom-select__options");document.addEventListener("click",(function(o){var l=o.target;l&&!l.closest(".custom-select")&&(t&&(e.closeCustomSelect(t),t.querySelectorAll(".custom-select__option, .close-fake-layer").forEach((function(e){e.setAttribute("tabIndex","-1")}))),e.closeOverlays())})),document.addEventListener("keydown",(function(o){"Escape"===o.key&&(e.closeCustomSelect(t),t.querySelectorAll(".custom-select__option, .close-fake-layer").forEach((function(e){e.setAttribute("tabIndex","-1")})),e.closeOverlays())}))},e.prototype.closeOverlays=function(){var e=this;this.body.classList.remove("overflow-hidden"),this.html.classList.remove("overflow-hidden"),setTimeout((function(){var t;null===(t=e.element.closest(".product-info"))||void 0===t||t.classList.remove("overlay-layer")}),200)},e.prototype.closeCustomSelect=function(e){e.classList.remove("custom-select__options--open");var t=document.querySelector('[aria-controls="'.concat(e.id,'"]'));
1null==t||t.setAttribute("aria-expanded","false")},e}();const s=n;new n.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.