https://www.toyshnip.com/cdn/shop/t/130/assets/theme-editor-event-…?v=131448966261176260161756002129
1export const ThemeEditorEventHandlerMixin=e=>(class extends e{connectedCallback(){Shopify.designMode&&(this.boundEventMap=this.createThemeEditorEventMap(),Object.entries(this.boundEventMap).forEach(([e,t])=>{(e.includes("section")?document:this).addEventListener(e,t)}),"function"==typeof this.onSectionLoad&&this.onSectionLoad())}disconnectedCallback(){Shopify.designMode&&(Object.entries(this.boundEventMap).forEach(([e,t])=>{e.includes("section")&&document.removeEventListener(e,t)}),"function"==typeof this.onSectionUnload&&this.onSectionUnload())}createThemeEditorEventMap(){return["shopify:section:select","shopify:section:deselect","shopify:section:reorder","shopify:block:select","shopify:block:deselect"].reduce((e,t)=>{const n=this.convertEventToMethodName(t);return"function"==typeof this[n]&&(e[t]=this.createEventBoundHandler(this[n])),e},{})}convertEventToMethodName(e){return`on${e.split(":").slice(1).map(e=>e.charAt(0).toUpperCase()+e.slice(1)).join("")}`}createEventBoundHandler(e){return t=>{t.detail&&t.detail.sectionId===this.sectionId&&e.call(this,t)}}});
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.