PageSourceSearch

https://shipany.ai/assets/showcase-image-BxbK9kKX.js

js shipany.ai collected 2026-10-04 00:05:59 UTC 1,347 bytes, 1 lines download raw bytes

1import{a as e}from"./rolldown-runtime-Cyuzqnbw.js";import{it as t,ot as n}from"./base-ui-L9W7vke6.js";import{MS as r}from"./messages-CX0YR8lU.js";import{t as i}from"./skeleton-CVTu2sc1.js";var a=e(n(),1),o=t();function s(e){let t=0;for(let n=0;n<e.length;n++)t=(t*31+e.charCodeAt(n))%360;return t}function c({src:e,alt:t,className:n}){let[c,l]=(0,a.useState)(!1),[u,d]=(0,a.useState)(!1),f=!e||u,p=t?.trim()||`?`,m=p.charAt(0).toUpperCase(),h=s(p);return(0,o.jsx)(`div`,{className:r(`bg-muted relative flex items-center justify-center overflow-hidden`,n),children:f?(0,o.jsxs)(`div`,{className:`flex h-full w-full flex-col items-center justify-center gap-2 px-4 text-center`,style:{background:`linear-gradient(135deg, hsl(${h} 60% 92%), hsl(${(h+40)%360} 60% 88%))`,color:`hsl(${h} 45% 35%)`},children:[(0,o.jsx)(`span`,{className:`text-4xl font-bold select-none`,children:m}),(0,o.jsx)(`span`,{className:`line-clamp-1 text-xs font-medium opacity-80`,children:p})]}):(0,o.jsxs)(o.Fragment,{children:[!c&&(0,o.jsx)(i,{className:`absolute inset-0 rounded-none`}),(0,o.jsx)(`img`,{src:e,alt:t,loading:`lazy`,ref:e=>{e?.complete&&e.naturalWidth>0&&l(!0)},onLoad:()=>l(!0),onError:()=>d(!0),className:r(`h-full w-full object-cover transition-[opacity,transform] duration-500 group-hover:scale-[1.03]`,c?`opacity-100`:`opacity-0`)})]})})}export{c 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.