import{j as a}from"./index-6605a014.js";import{r as m}from"./react-e45097e1.js";import{z as i,B as u,D as p,x as l}from"./Author-826c76c5.js";import{O as f}from"./antd-6dbc138d.js";const g=""+new URL("Fallback-75f48185.svg",import.meta.url).href;function h({source:t,alt:e,...r}){const s=t.uri;return a.jsx(f,{src:s,fallback:g,preview:!1,alt:e,...r})}function o(){const t=i(),e=u(),{assetUri:r,convertData:s}=p(),c=m.useMemo(()=>r&&s?r(s(e.hover&&t["src@hover"]||t.src,!0)):"about:blank",[e.hover,t.src,t["src@hover"]]),[n]=l(["image"]);return a.jsx(h,{style:{width:"100%",height:"100%",...n},source:{uri:c},alt:t.caption})}o.title="图像";o.params={uri:{name:"图片地址",placeholder:"e.g. @asset:app/foo.png, https://foo.com/bar.png"}};export{o as default};
