PageSourceSearch

https://gegesay89-aihcma-tools.hf.space/static/js/index.B2CSVIMq.js

js gegesay89-aihcma-tools.hf.space collected 2026-10-04 16:53:21 UTC 2,412 bytes, 1 lines download raw bytes

1import{f as d,r as w,V as y,W as L,h as x,j as a,X as f,Y as W,U as E,k as v}from"./index.RuhrnD1v.js";import{w as C,E as k}from"./withFullScreenWrapper.cN232UBk.js";const R=d("div",{target:"ehg91i90"})(({theme:e,shouldStretch:t})=>({display:"flex",flexDirection:"row",flexWrap:"wrap",rowGap:e.spacing.lg,maxWidth:"100%",width:t?"100%":"fit-content"})),T=d("div",{target:"ehg91i91"})(({theme:e,shouldStretch:t})=>({display:"flex",flexDirection:"column",alignItems:"stretch",width:t?"100%":"auto",flexGrow:t?1:0,">img":{borderRadius:e.radii.default}})),F=d("div",{target:"ehg91i92"})(({theme:e})=>({textAlign:"center",marginTop:e.spacing.xs,wordWrap:"break-word",padding:e.spacing.threeXS})),j=d("a",{target:"ehg91i93"})(({theme:e})=>({display:"block",borderRadius:e.radii.default,overflow:"hidden","&:hover":{opacity:.85},"&:focus-visible":{boxShadow:e.shadows.focusRing}})),H=y.getLogger("ImageList");function M(e,t){if(e){if(e.useStretch)return t;if(e.useContent)return;if(e.pixelWidth)return e.pixelWidth}}const U=({itemKey:e,image:t,imgStyle:s,buildMediaURL:c,handleImageError:o,shouldStretch:g,link:r})=>{const u=E(t.url),l=a("img",{style:s,src:c(t.url),alt:e,onError:o,crossOrigin:u});return x(T,{"data-testid":"stImageContainer",shouldStretch:g,children:[r?a(j,{href:r,target:"_blank",rel:"noreferrer","aria-label":t.caption||r,"data-testid":"stImageLink",children:l}):l,t.caption&&a(F,{"data-testid":"stImageCaption",style:s,children:a(v,{source:t.caption,allowHTML:!1,isCaption:!0,isLabel:!0})})]})};function G({element:e,endpoints:t,widthConfig:s,disableFullscreenMode:c}){const{expanded:o,width:g,height:r,expand:u,collapse:l}=L(k),h=g||0,I=M(s,h),p=s?.useStretch??!1,i={};r&&o?(i.maxHeight=r,i.objectFit="contain",i.width="100%"):(i.width=I??"100%",i.maxWidth="100%");const b=m=>{const n=m.currentTarget.src;H.error(`Client Error: Image source error - ${n}`),t.sendClientErrorToHost("Image","Image source failed to load","onerror triggered",n)};return x(f,{width:h,height:r,useContainerWidth:o,topCentered:!0,children:[a(W,{target:f,isFullScreen:o,onExpand:u,onCollapse:l,disableFullscreenMode:c}),a(R,{className:"stImage","data-testid":"stImage",shouldStretch:p,children:e.imgs.map((m,n)=>a(U,{itemKey:n.toString(),image:m,imgStyle:i,buildMediaURL:S=>t.buildMediaURL(S),handleImageError:b,shouldStretch:p,link:e.imgs.length===1?e.link:void 0},n))})]})}const O=C(G),X=w.memo(O);export{X as default};

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.