PageSourceSearch

https://www.sunweb.fr/blog/wp-content/themes/sunweb-blog/dist/comment-form-BNYOTDvL.js

js sunweb.fr collected 2026-10-10 01:15:31 UTC 840 bytes, 1 lines download raw bytes

1class i{constructor(e){this.element=e,this.config=this.element.dataset.config?JSON.parse(this.element.dataset.config):{},this.initialize()}initialize(){this.addEventListeners()}addEventListeners(){this.config.post_id&&this.fetchCommentForm(this.config.post_id).then(e=>{if(e!=null&&e.comment_form){this.element.innerHTML=e.comment_form;const t=this.element.querySelector("textarea"),r=this.element.querySelector("button");t==null||t.addEventListener("input",()=>{t.value.trim().length>0?r==null||r.removeAttribute("disabled"):r==null||r.setAttribute("disabled","true")})}else this.element.remove()})}async fetchCommentForm(e){try{const t=await fetch(`${restApi.root}sunweb/v1/page-fragments/${e}`);if(!t.ok)throw new Error(`Error fetching comment form for post ${e}`);return await t.json()}catch(t){console.error(t)}}}export{i 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.