PageSourceSearch

https://jott.com/cdn/shop/t/149/assets/ClrzSidebar.min.p8WtUrql.js

js jott.com collected 2026-09-25 14:19:29 UTC 2,221 bytes, 1 lines download raw bytes

1var d=Object.defineProperty;var l=(s,e,i)=>e in s?d(s,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):s[e]=i;var n=(s,e,i)=>l(s,typeof e!="symbol"?e+"":e,i);import{D as a}from"./DeferWebComponent.min.BrKhvwE6.js";import{F as c}from"./FixScroll.min.CEFs3W-g.js";const t=class t extends a{ready(e){if(this.onTouchMove=this.onTouchMove.bind(this),this.close=this.close.bind(this),this.open=this.open.bind(this),this.id=this.id||this.dataset.id,this.isOpen=!1,this.id==null)return this.onDestroy(),!1;this.elOpen=Array.from(document.querySelectorAll(`${t.selectors.open.replace("{id}",this.id)}`)),this.elClose=Array.from(document.querySelectorAll(`${t.selectors.close.replace("{id}",this.id)}`)),this.bindEvents()}bindEvents(){document.addEventListener("keydown",this.onKeydown.bind(this));for(const e of this.elOpen)e.addEventListener("click",this.open.bind(this));for(const e of this.elClose)e.addEventListener("click",this.close.bind(this))}open(e){e&&e.preventDefault(),this.classList.add("is-loaded"),requestAnimationFrame(()=>{this.classList.add("is-visible")}),this.isOpen=!0,this.elClose[0].focus(),c.fix(),document.addEventListener("touchmove",this.onTouchMove,{passive:!1}),this.id==="cart"&&document.dispatchEvent(new CustomEvent("cart:open"))}close(e){e&&e.preventDefault(),this.classList.remove("is-visible"),setTimeout(()=>{this.classList.remove("is-loaded")},300),this.isOpen=!1,this.elOpen[0].focus(),c.unFix(),document.removeEventListener("touchmove",this.onTouchMove,{passive:!1}),this.id==="cart"&&(this.closedCart=new CustomEvent("cart:close"),document.dispatchEvent(this.closedCart)),this.id==="view-stock"&&(this.closedViewStock=new CustomEvent("view-stock:close"),document.dispatchEvent(this.closedViewStock))}onTouchMove(e){this.contains(e.target)||e.preventDefault()}onKeydown(e){switch(e.code){case"Escape":this.isOpen&&this.close(e);break;case"Space":!this.isOpen&&this.elOpen.includes(document.activeElement)&&(e.preventDefault(),this.open(e));break}}};n(t,"selectors",{el:'[data-component="sidebar"]',open:"[data-sidebar-open={id}]",close:"[data-sidebar-close={id}]"});let o=t;customElements.get("clrz-sidebar")===void 0&&customElements.define("clrz-sidebar",o);export{o as ClrzSidebar};

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.