PageSourceSearch

https://level.law/dist/components/share.js?id=51efb0a87bb05e11

js level.law collected 2026-10-07 15:49:37 UTC 1,633 bytes, 1 lines download raw bytes

1"use strict";(globalThis.webpackChunklevel=globalThis.webpackChunklevel||[]).push([[179],{9593:(e,t,a)=>{a.r(t),a.d(t,{default:()=>r});var s=a(715);class r extends s.A{shares=null;constructor(){super(),this.mount()}mount(){this.shares=document.querySelectorAll("[data-share]"),this.shares.forEach(e=>{e.innerHTML="",this.share(e)})}share(e){const t="share"in window.navigator,a="ontouchstart"in window,s=t&&a,r=e.dataset.share.split(" "),h=r.findIndex(e=>"device"===e),n={facebook:{url:"https://www.facebook.com/share.php?u="},linkedin:{url:"https://www.linkedin.com/sharing/share-offsite/?url="},twitter:{url:"https://www.twitter.com/share?url="}};if(h>-1&&!s&&r.splice(h,1),h>-1&&s){const t=this.h("button",{"aria-label":`${e.dataset.shareDevice}`,"data-share-item":""},[this.h("i")]);t.addEventListener("click",()=>{navigator.share({title:document.title,url:e.dataset.shareUrl}).catch(()=>{})}),e.appendChild(t)}else r.forEach(t=>{const a=this.h("a",{"aria-label":`${e.dataset.shareLabel} ${t}`,"data-share-item":t,href:n[t].url+encodeURIComponent(e.dataset.shareUrl),rel:"noopener noreferrer",target:"_blank"},[this.h("i")]);e.appendChild(a)})}h(e,t){let a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];const s=document.createElement(e);for(let e in t)s.setAttribute(e,t[e]);return a.length&&a.forEach(e=>{"string"==typeof e?s.appendChild(document.createTextNode(e)):s.appendChild(e)}),s}refresh(e){document.contains(document.querySelector("[data-share]"))&&(this.destroy(),this.mount())}
1destroy(){this.shares.forEach(e=>{e.innerHTML=""}),this.shares=null}unmount(){this.mounted&&(this.destroy(),this.ref=null)}}}}]);

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.