https://www.muller.co.uk/_assets/fa8034ecf72d82701a1cfbae71dd8768/Frontend/JavaScript/file-upload.js
1import{createElement as i}from"./create-element.BopYdtH0.js";class a{constructor(e){this.wrap=e,this.input=e.querySelectorAll('input[type="file"]')[0],typeof e.querySelectorAll(".file-name")[0]>"u"?this.fileName=i("span","file-name",this.input,"","insertBefore"):this.fileName=e.querySelectorAll(".file-name")[0],this.input.addEventListener("change",()=>{this.handleChange()}),this.handleChange(!0),i("span","focus-indicator",e)}handleChange(e=!1){if(e&&this.fileName.innerText!=="")return;let t=this.input.files.length===0?this.wrap.dataset.noneChosen:"";Array.from(this.input.files).map((l,s)=>{t+=(s===0?"":", ")+l.name}),this.fileName.innerText=t}}function o(){document.querySelectorAll(".file-upload").forEach(e=>{new a(e)})}export{o as initFileUpload};
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.