PageSourceSearch

https://partner.elvari.de/assets/SimpleFileUpload_Internal-Db8drnmX.js

js elvari.de collected 2026-10-04 13:26:31 UTC 1,496 bytes, 2 lines download raw bytes

1import{r as u,j as t,c9 as b,bp as w}from"./index-BPR3l8qa.js";import{a as y}from"./uploadFile-xpYjb06Q.js";const n={default:0,uploading:1,uploaded:2};function k({onChange:e,value:a,inputProps:i}){const[r,s]=u.useState(n.default),[l,o]=u.useState({percentage:0,size:0,uploaded:0}),c=async p=>{e&&e({originalname:p.target.files[0].name}),s(n.uploading);const h=new AbortController,j=await y(p.target.files[0],h,o);e&&e(j),s(n.uploaded),o({percentage:0,size:0,uploaded:0})},g=()=>{e&&e({}),s(n.default)},{url:d,width:m,height:f,originalname:x}=a||{};return r===n.uploading?t.jsx(U,{percentage:l.percentage,size:l.size,uploaded:l.uploaded}):d?t.jsx(S,{uri:d,onDelete:g,originalname:x,imgWidth:m,imgHeight:f}):t.jsx("input",{...i||{},type:"file",className:"form-control",onChange:c})}function S({uri:e,onDelete:a,imgWidth:i,imgHeight:r,originalname:s}){return t.jsxs("div",{children:[t.jsx("a",{title:"Open in a new tab",target:"_blank",href:e,children:w(e)?t.jsx("img",{src:e,style:{objectFit:"contain",maxWidth:"100%",maxHeight:240,width:r!=="auto"?"auto":i},alt:"Uploaded file",className:"bg-light rounded shadow-sm"}):s}),t.jsx("br",{}),t.jsx("button",{type:"button",className:"btn btn-link text-danger",onClick:a,children:"Delete"})]})}function U({percentage:e,size:a,uploaded:i}){return t.jsx("div",{className:"text-center",children:t.jsx(b,{type:"primary",current:i,text:"".concat(e,"%"),max:a,height:38})})}export{k as default};
2//# sourceMappingURL=SimpleFileUpload_Internal-Db8drnmX.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.