PageSourceSearch

https://www.tecnifibre.com/cdn/shop/t/2/assets/islands-onclick-fetch-10tlJ-s9-sh.js

js tecnifibre.com collected 2026-10-02 07:42:51 UTC 769 bytes, 1 lines download raw bytes

1import{E as a,S as s}from"./index-5tWdmdpo-sh.js";class h extends a{onStart(){this.addEventListener("click",async()=>{const c=this._attribute("data-url"),i=this._attribute("data-replace-mode","string",!0)||"outer",r=s(this,this._attribute("data-replace-selector"));if(r.length===0)throw this._throwError("No target elements found");const o=await fetch(c).then(t=>t.text()).then(t=>new DOMParser().parseFromString(t,"text/html")),n=this._attribute("data-fetch-selector","string",!0);let e;if(n){const t=s(o.body,n);if(t.length===0)throw this._throwError("Source element not found in fetched content");e=t[0]}else e=o.body;for(const t of r)i==="outer"?t.outerHTML=e.outerHTML:t.innerHTML=e.innerHTML})}}customElements.define("onclick-fetch",h);export{h as OnClickFetch};

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.