1function t(){return{config:{scriptUrl:"https://platform-api.sharethis.com/js/sharethis.js",property:"6746d7b656a0480019dfecb4",product:"inline-share-buttons",source:"platform"},state:{loading:!0,error:!1},init(){this.loadScript(),this.setupEventListeners()},loadScript(){const t=document.createElement("script");t.type="text/javascript",t.async=!0,t.src="".concat(this.config.scriptUrl,"#property=").concat(this.config.property,"&product=").concat(this.config.product,"&source=").concat(this.config.source),t.onload=()=>this.state.loading=!1,t.onerror=()=>{this.state.loading=!1,this.state.error=!0},document.body.appendChild(t)},setupEventListeners(){document.addEventListener("htmx:afterSettle",(()=>this.reinitializeShareThis()))},reinitializeShareThis(){if(this.state.loading=!0,this.state.error=!1,void 0!==window.__sharethis__)return window.__sharethis__.initialize(),void(this.state.loading=!1);let t=0;const e=setInterval((()=>{if(t++,void 0!==window.__sharethis__)return window.__sharethis__.initialize(),this.state.loading=!1,void clearInterval(e);t>=30&&(this.state.loading=!1,this.state.error=!0,clearInterval(e))}),100)},destroy(){document.removeEventListener("htmx:afterSettle",this.reinitializeShareThis)}}}export{t 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.