PageSourceSearch

https://www.crownandcaliber.com/assets/useImageUpload-2vTgBlYR.js

js crownandcaliber.com collected 2026-09-24 08:58:03 UTC 1,051 bytes, 5 lines download raw bytes

1
2!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="855a3db1-9b64-5944-8806-2efba6009d68")}catch(e){}}();
3import{s as e}from"./jsx-runtime-D4ePz0Hl.js";import{t}from"./react-BXH-GOAS.js";var n=e(t(),1),r=`image/jpeg,image/jpg,image/png,image/webp,image/gif`,i=({onFileSelect:e,accept:t=r,disabled:i=!1,name:a=`avatar`})=>{let o=(0,n.useRef)(null),s=`image-upload-${a}-${(0,n.useId)()}`,[c,l]=(0,n.useState)(null);return(0,n.useEffect)(()=>()=>{c&&URL.revokeObjectURL(c)},[c]),{inputId:s,previewUrl:c,open:()=>{i||o.current?.click()},inputProps:{ref:o,id:s,type:`file`,name:a,accept:t,disabled:i,onChange:t=>{let n=t.target.files?.[0];n&&(c&&URL.revokeObjectURL(c),l(URL.createObjectURL(n)),e(n))},className:`sr-only`,tabIndex:-1}}};export{i as t};
4//# sourceMappingURL=useImageUpload-2vTgBlYR.js.map
5//# debugId=855a3db1-9b64-5944-8806-2efba6009d68

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.