// @license magnet:?xt=urn:btih:0b31508aeb0634b347b8270c7bee4d411b5d4109&dn=agpl-3.0.txt AGPL-3.0-or-later
// @source: https://gitlab.com/soapbox-pub/ditto/-/tree/f0a3877c
import{t as e}from"./jsx-runtime-By8HlURe.js";import{t}from"./useBlossomFallback-DY_46Uqi.js";import{i as n,o as r}from"./imeta-83Lqxs5-.js";var i=e();function a({url:e,encryption:a,enabled:o,noticeClassName:s,noticeFill:c,onError:l,...u}){let d=t(e),f=r(e,a,{enabled:o});return f.encrypted&&!f.src?(0,i.jsx)(n,{fill:c,loading:f.loading,unsupported:f.unsupported,tooLarge:f.tooLarge,byteSize:f.byteSize,onDecryptAnyway:f.decryptAnyway,className:s}):(0,i.jsx)(`img`,{...u,src:f.encrypted?f.src:d.src,onError:e=>{f.encrypted||d.onError(),l?.(e)}})}export{a as t};
// @license-end
