PageSourceSearch

https://samurai-sports.com/assets/TmlFileUploadWrapper.adb26cab.js

js samurai-sports.com collected 2026-09-25 08:26:04 UTC 1,202 bytes, 2 lines download raw bytes

1import{d as u,r as n,D as d,E as f,S as m,a1 as w,G as h}from"./vue.00f7c436.js";import{ae as y,h as g,N as v,C as F,D as E,S as k,ab as D}from"./index.a4e8ca65.js";import{a as _}from"./sentry.09480738.js";class b{static async upload(s){const a=new FormData;return a.append("file",s),await y.post(g("/omnis/v3/files"),a).success(r=>r).throw(404,()=>new v).throw(403,()=>new F).throw(422,()=>new E).throw("5xx",()=>new k).output()}}const S=["accept"],N=u({__name:"TmlFileUploadWrapper",props:{types:null},emits:["upload"],setup(l,{emit:s}){const a=n(),r=n(!1),i=()=>{a.value&&a.value.click()},p=async t=>{const e=t.target;if(!e.files)return;const o=await c(e.files[0]);o&&s("upload",o)},c=async t=>{let e=null;try{r.value=!0,e=await b.upload(t)}catch(o){_(o),D.error("There was an error uploading your file. Please try again later.")}return r.value=!1,e};return(t,e)=>(d(),f("div",null,[m("input",{ref_key:"uploader",ref:a,class:"hidden",type:"file",name:"product-file-uploader",accept:l.types||"",onChange:p,onClick:e[0]||(e[0]=w(()=>{},["stop"]))},null,40,S),h(t.$slots,"default",{triggerUpload:i,loading:r.value})]))}});export{N as default};
2//# sourceMappingURL=TmlFileUploadWrapper.adb26cab.js.map

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.