1import{n as e,o as t}from"./rolldown-runtime-CMxvf4Kt.js";import{Ct as n,Dt as r,St as i,wt as a,xt as o,yt as s}from"../vendor/vendor-ai-runtime-DrDK77gy.js";import{Ao as c,jo as l}from"./app-const-BzFqCjOv.js";import{Do as u,Oo as d,bo as f,wo as p}from"./ScrollArea-CdDxdn_v.js";import{Ia as m,Un as h,n as g}from"./es-D7HWafs1.js";import{et as _,pn as v}from"../vendor/vendor-icons-BXJMWD35.js";var y,b,x=e((()=>{y=t(l()),i(),b=()=>{let e=(0,y.useRef)(o()),t=(0,y.useRef)(s()),i={isAndroid:e.current?.toLowerCase()===`android`,isApple:e.current&&[`mac os`,`ios`].includes(e.current?.toLowerCase()),isArc:n(),isChrome:t.current?.toLowerCase()===`chrome`,isChromium:t.current&&[`chrome`,`edge`,`opera`,`brave`].includes(t.current?.toLowerCase()),isEdge:t.current?.toLowerCase()===`edge`,isFirefox:t.current?.toLowerCase()===`firefox`,isIOS:e.current?.toLowerCase()===`ios`,isMacOS:e.current?.toLowerCase()===`mac os`,isPWA:a(),isSafari:t.current?.toLowerCase()===`safari`,isSonomaOrLaterSafari:r()};return(0,y.useMemo)(()=>({...i,isSupportInstallPWA:!i.isArc&&!i.isFirefox&&(i.isChromium&&!i.isIOS||i.isMacOS&&i.isSonomaOrLaterSafari)}),[])}})),S=e((()=>{})),C,w,T,E,D=e((()=>{g(),f(),_(),C=t(l()),x(),S(),w=t(c()),T=p(({css:e})=>({deleteButton:e` 2 color: #fff; 3 background: ${u.colorBgMask}; 4 5 &:hover { 6 background: ${u.colorError}; 7 } 8 `,editableImage:e` 9 background: ${u.colorBgContainer}; 10 box-shadow: 0 0 0 1px ${u.colorFill} inset; 11 `,image:e` 12 margin-block: 0 !important; 13 14 .ant-image { 15 height: 100% !important; 16 17 img { 18 height: 100% !important; 19 } 20 } 21 `})),E=(0,C.memo)(({className:e,style:t,editable:n,alt:r,onRemove:i,url:a,loading:o,alwaysShowClose:s,preview:c})=>{let l=n?64:`100%`,{isSafari:u}=b();return(0,w.jsx)(h,{alt:r||``,alwaysShowActions:s,classNames:{wrapper:d(T.image,n&&T.editableImage,e)},height:u?`auto`:`100%`,isLoading:o,preview:c,size:l,src:a,style:{height:u?`auto`:`100%`,width:`100%`,...t},actions:n&&(0,w.jsx)(m,{glass:!0,className:T.deleteButton,icon:v,size:`small`,onClick:e=>{e.stopPropagation(),i?.()}})})})}));export{b as i,D as n,x as r,E as t};
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.