PageSourceSearch

https://www.lookah.com/assets/product_view.CdSX8HL2.js

js lookah.com collected 2026-09-24 20:10:29 UTC 1,265 bytes, 1 lines download raw bytes

1import{s as t}from"./index.CNNIaLv5.js";import"./vendor-utils.D-niUx-H.js";import"./vendor.85qOW4G2.js";import"./vendor-alpine.C-A-yvFA.js";function e(e={}){const n="scroll-to-reviews",o="scroll-to-attachments",i=t=>new Promise((e=>{const n=document.getElementById(t);if(n)return void e(n);const o=new MutationObserver(((n,o)=>{const i=document.getElementById(t);i&&(o.disconnect(),e(i))}));o.observe(document.body,{childList:!0,subtree:!0}),setTimeout((()=>{o.disconnect(),e(document.getElementById(t))}),3e3)}));return{reviewsVisible:!1,attachmentsVisible:!1,init(){window.addEventListener(n,this.handleScrollToReviews.bind(this)),window.addEventListener(o,this.handleScrollToAttachments.bind(this))},async handleScrollToReviews(e){e.preventDefault();try{this.reviewsVisible=!0;const e=await i("lookah_product_tab_discussion");if(!e)throw new Error("评论区元素未找到");await t(e)}catch(n){}},async handleScrollToAttachments(e){e.preventDefault();try{this.attachmentsVisible=!0;const e=await i("lookah_product_tab_attachments");if(!e)throw new Error("附件区域元素未找到");await t(e)}catch(n){}},destroy(){window.removeEventListener(n,this.handleScrollToReviews),window.removeEventListener(o,this.handleScrollToAttachments)}}}export{e as default};

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.