PageSourceSearch

https://estimator.faector.nl/apps/content-platform/build/web-component/g2cp-slideshow-DsvLh9T7.js

js faector.nl collected 2026-10-03 21:41:53 UTC 2,805 bytes, 1 lines download raw bytes

1var q=Object.defineProperty;var S=s=>{throw TypeError(s)};var k=(s,t,e)=>t in s?q(s,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):s[t]=e;var v=(s,t,e)=>k(s,typeof t!="symbol"?t+"":t,e),D=(s,t,e)=>t.has(s)||S("Cannot "+e);var y=(s,t,e)=>t.has(s)?S("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(s):t.set(s,e);var d=(s,t,e)=>(D(s,t,"access private method"),e);var c,b,E;const o=class o extends HTMLElement{constructor(){super();y(this,c);if(this.shadowRoot||this.attachShadow({mode:"open"}),!this.shadowRoot.querySelector("link,style")){const e=this.ownerDocument.createElement("link");e.href=o.cssFile.toString(),e.type="text/css",e.rel="stylesheet",this.shadowRoot.insertBefore(e,this.shadowRoot.firstElementChild)}}connectedCallback(){const e=this.shadowRoot.querySelector("ul");e?d(this,c,E).call(this,e):d(this,c,b).call(this)}static register(){customElements.define("g2cp-slideshow",o)}};c=new WeakSet,b=async function(){const e=this.getAttribute("work-id"),r=this.getAttribute("slideshow-id");if(!e||!r)return;const i=await(await fetch(new URL(`/_/content-platform/work/${e}/slideshow/${r}`,o.baseURI))).json();let n=!0;const u=this.ownerDocument.createElement("ul");for(const f of i.resource.figures){const w=this.ownerDocument.createElement("li"),a=this.ownerDocument.createElement("a"),g=this.ownerDocument.createElement("figure"),L=this.ownerDocument.createElement("img");if(w.appendChild(a),L.src=f.url,a.href=f.url,a.appendChild(g),g.appendChild(L),n&&(w.classList.add("is-active"),n=!1),f.caption){const C=this.ownerDocument.createElement("figcaption");a.appendChild(C)}u.appendChild(w)}this.shadowRoot.appendChild(u);const l=this.ownerDocument.createElement("menu");l.classList.add("controls"),this.shadowRoot.appendChild(l);const p=this.ownerDocument.createElement("button");p.classList.add("prev"),p.innerHTML="←",l.appendChild(p);const m=this.ownerDocument.createElement("button");m.classList.add("next"),m.innerHTML="→",l.appendChild(m),d(this,c,E).call(this,u)},E=function(e){const r=this.shadowRoot.querySelector("button.next");r&&r.addEventListener("click",()=>{const i=e.querySelector("li.is-active")||e.querySelector("li");if(!i)return;const n=i.nextElementSibling||e.querySelector("li:first-child");n&&(i.classList.remove("is-active"),n.classList.add("is-active"))});const h=this.shadowRoot.querySelector("button.prev");h&&h.addEventListener("click",()=>{const i=e.querySelector("li.is-active")||e.querySelector("li");if(!i)return;const n=i.previousElementSibling||e.querySelector("li:last-child");n&&(i.classList.remove("is-active"),n.classList.add("is-active"))})},v(o,"cssFile",new URL("/apps/content-platform/build/css/g2cp-slideshow-CvqN-S_f.css",import.meta.url)),v(
1o,"baseURI",window.location.href);let R=o;export{R 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.