PageSourceSearch

https://plushiedreadfuls.com/cdn/shop/t/27/assets/header-drawer.js?v=84279072875926888941768496353

js plushiedreadfuls.com collected 2026-10-02 14:40:43 UTC 3,961 bytes, 10 lines download raw bytes

1/*!
2 * ===================================================
3 * WARNING: DO NOT EDIT THIS FILE DIRECTLY!
4 * This file is automatically generated by the build process.
5 * Any changes made to this file will be overwritten.
6 * ===================================================
7 */
8
9var __defProp=Object.defineProperty;var __typeError=msg=>{throw TypeError(msg)};var __defNormalProp=(obj,key,value)=>key in obj?__defProp(obj,key,{enumerable:!0,configurable:!0,writable:!0,value}):obj[key]=value;var __publicField=(obj,key,value)=>__defNormalProp(obj,typeof key!="symbol"?key+"":key,value),__accessCheck=(obj,member,msg)=>member.has(obj)||__typeError("Cannot "+msg);var __privateGet=(obj,member,getter)=>(__accessCheck(obj,member,"read from private field"),getter?getter.call(obj):member.get(obj)),__privateAdd=(obj,member,value)=>member.has(obj)?__typeError("Cannot add the same private member more than once"):member instanceof WeakSet?member.add(obj):member.set(obj,value);var __privateMethod=(obj,member,method)=>(__accessCheck(obj,member,"access private method"),method);var _onKeyUp,_HeaderDrawer_instances,getDetailsElement_fn,close_fn,setupAnimatedElementListeners_fn;import{Component}from"@theme/component";import{trapFocus,removeTrapFocus}from"@theme/focus";import{onAnimationEnd}from"@theme/utilities";class HeaderDrawer extends Component{constructor(){super(...arguments);__privateAdd(this,_HeaderDrawer_instances);__publicField(this,"requiredRefs",["details"]);__privateAdd(this,_onKeyUp,event=>{event.key==="Escape"&&__privateMethod(this,_HeaderDrawer_instances,close_fn).call(this,__privateMethod(this,_HeaderDrawer_instances,getDetailsElement_fn).call(this,event))})}connectedCallback(){super.connectedCallback(),this.addEventListener("keyup",__privateGet(this,_onKeyUp)),__privateMethod(this,_HeaderDrawer_instances,setupAnimatedElementListeners_fn).call(this)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("keyup",__privateGet(this,_onKeyUp))}get isOpen(){return this.refs.details.hasAttribute("open")}toggle(){return this.isOpen?this.close():this.open()}open(event){const details=__privateMethod(this,_HeaderDrawer_instances,getDetailsElement_fn).call(this,event),summary=details.querySelector("summary");summary&&(summary.setAttribute("aria-expanded","true"),requestAnimationFrame(()=>{details.classList.add("menu-open"),setTimeout(()=>
9{trapFocus(details)},0)}))}back(event){__privateMethod(this,_HeaderDrawer_instances,close_fn).call(this,__privateMethod(this,_HeaderDrawer_instances,getDetailsElement_fn).call(this,event))}close(){__privateMethod(this,_HeaderDrawer_instances,close_fn).call(this,this.refs.details)}}_onKeyUp=new WeakMap,_HeaderDrawer_instances=new WeakSet,getDetailsElement_fn=function(event){return event?.target instanceof Element?event.target.closest("details")??this.refs.details:this.refs.details},close_fn=function(details){const summary=details.querySelector("summary");summary&&(summary.setAttribute("aria-expanded","false"),details.classList.remove("menu-open"),onAnimationEnd(details,()=>{reset(details),details===this.refs.details?(removeTrapFocus(),this.querySelectorAll("details[open]").forEach(reset)):setTimeout(()=>{trapFocus(this.refs.details)},0)}))},setupAnimatedElementListeners_fn=function(){function removeWillChangeOnAnimationEnd(event){const target=event.target;target&&target instanceof HTMLElement&&(target.style.setProperty("will-change","unset"),target.removeEventListener("animationend",removeWillChangeOnAnimationEnd))}this.querySelectorAll(".menu-drawer__animated-element").forEach(element=>{element.addEventListener("animationend",removeWillChangeOnAnimationEnd)})},customElements.get("header-drawer")||customElements.define("header-drawer",HeaderDrawer);function reset(element){element.classList.remove("menu-open"),element.removeAttribute("open"),element.querySelector("summary")?.setAttribute("aria-expanded","false")}
10//# sourceMappingURL=header-drawer.js.map

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.