1import{r as z,Z as C,KT as A,m as e,AX as d,AY as c,hb as D,KU as T,AZ as V,A_ as E,A$ as B,B0 as P,cQ as Z,JZ as J,a3 as U,Jc as m,mU as r,B3 as G,R,Je as S,Jf as F}from"./main-BVeaUmEJ.js";import{t as u,A as p}from"./analytics-diMhel4P.js";import{I as h,d as K}from"./handoff-storage-CCCvg7MR.js";import{a as L,w as Y}from"./image-to-video-navigation-kemVA56-.js";import{a as q,I as n,b as H}from"./image-edit-action-buttons-DXSPpB_S.js";import{I as M}from"./IconCopy-CRqbQ6h1.js";function oe({image:o,index:g,prompt:t,modelName:x,developerLogo:b,developerMonochrome:f,parameters:v,processingTime:j,generatedDate:w}){const[y,i]=z.useState(!1),N=C(),k=()=>{u(p.imageToVideoClick),Y({imageUrl:o.url}),N({to:R.GenerateVideo,search:{task:"image2video"}})},l=async()=>{u(p.homeDownload,{format:"image"}),await K(o.url)||r.error(G())},_=async()=>{try{await navigator.clipboard.writeText(t),r.success(S())}catch{r.error(F())}},s=A({index:g+1,prompt:t}),I=()=>i(!0);return e.jsxs(e.Fragment,{children:[e.jsxs("div",{className:"group relative aspect-square overflow-hidden rounded-xl bg-transparent",children:[e.jsxs("button",{type:"button",className:"absolute inset-0 size-full cursor-pointer overflow-hidden text-left outline-none focus-visible:ring-3 focus-visible:ring-ring/50","aria-label":d(),onClick:I,children:[e.jsx("img",{src:o.url,alt:s,width:o.width??1024,height:o.height??1024,loading:"lazy",className:"size-full object-contain transition-transform duration-300 ease-out group-hover:scale-[1.03]"}),e.jsx("div",{className:"pointer-events-none absolute inset-0 bg-gradient-to-t from-black/45 via-transparent to-black/20 opacity-0 transition-opacity duration-200 group-hover:opacity-100 group-focus-within:opacity-100"}),e.jsx("div",{className:"pointer-events-none absolute right-3 top-3 flex translate-y-1 gap-2 opacity-0 transition-[transform,opacity] duration-200 group-hover:translate-y-0 group-hover:opacity-100 group-focus-within:translate-y-0 group-focus-within:opacity-100",children:e.jsx("span",{className:"flex size-8 items-center justify-center rounded-lg bg-background/90 shadow-sm backdrop-blur-sm",children:e.jsx(q,{})})})]}),e.jsxs("div",{className:"absolute bottom-3 right-3 flex items-center gap-2",children:[e.jsx(n,{type:"button",variant:"secondary",size:"icon",className:"bg-background/90 shadow-sm backdrop-blur-sm",label:c(),onClick:a=>{a.stopPropagation(),l()},children:e.jsx(h,{"aria-hidden":"true"})}),e.jsx(H,{imageUrl:o.url}),L(o.url)?e.jsx(n,{type:"button",variant:"secondary",size:"icon",className:"bg-background/90 shadow-sm backdrop-blur-sm",label:T(),onClick:a=>{a.stopPropagation(),k()},children:e.jsx(D,{"aria-hidden":"true"})}):null]})]}),e.jsx(V,{open:y,onOpenChange:i,children:e.jsxs(E,{className:"!h-[min(86dvh,820px)] !w-[min(92vw,1280px)] !max-w-none overflow-hidden border-0 bg-background p-0 [&>button]:top-3 [&>button]:right-3 [&>button]:z-20 [&>button]:rounded-full [&>button]:bg-background/80 [&>button]:shadow-lg [&>button]:backdrop-blur-md [&>button]:transition-transform [&>button]:duration-200 [&>button]:hover:scale-110",children:[e.jsx(B,{className:"sr-only",children:d()}),e.jsx(P,{className:"sr-only",children:s}),e.jsxs("div",{className:"grid size-full min-h-0 grid-rows-[minmax(240px,1fr)_minmax(0,42%)] md:grid-cols-[minmax(0,1.75fr)_minmax(17rem,0.85fr)] md:grid-rows-1",children:[e.jsxs("div",{className:"relative flex min-h-0 min-w-0 items-center justify-center bg-muted/30 p-3 md:p-8",children:[e.jsx("img",{src:o.url,alt:s,width:o.width??1024,height:o.height??1024,className:"max-h-full max-w-full object-contain"}),e.jsx("div",{className:"absolute bottom-4 right-4",children:e.jsx(n,{type:"button",variant:"secondary",size:"icon-lg",className:"bg-background/90 shadow-sm backdrop-blur-sm",label:c(),onClick:()=>{l()},children:e.jsx(h,{"aria-hidden":"true"})})})]}),e.jsxs("div",{className:"flex min-h-0 flex-col overflow-y-auto border-t bg-card md:border-l md:border-t-0",children:[e.jsxs("div",{className:"shrink-0 p-5 md:p-6",children:[e.jsxs("div",{className:"flex items-center gap-2 text-sm text-foreground",children:[e.jsx(Z,{developer:{logo:b,monochrome:f},width:22,height:22,className:"size-[22px] rounded object-contain"}),x]}),e.jsxs("div",{className:"mt-5 space-y-2 text-xs text-muted-foreground",children:[e.jsx("p",{children:v}),e.jsx("p",{children:j}),e.jsx("p",{children:w})]})]}),e.jsxs("div",{className:"flex min-h-0 flex-none flex-col border-t border-border/60 p-5 md:flex-1 md:p-6",children:[e.jsxs("div",{className:"mb-2 flex items-center justify-between",children:[e.jsx("p",{className:"text-[10px] font-semibold uppercase tracking-wider text-muted-foreground",children:J()}),e.jsx(U,{type:"button",variant:"ghost",size:"icon-xs","aria-label":m(),title:m(),onClick:()=>{_()},children:e.jsx(M,{})})]}),e.jsx("div",{className:"min-h-24 max-h-40 min-w-0 overflow-y-auto rounded-lg bg-muted/60 p-3 text-sm leading-6 text-foreground md:max-h-none md:flex-1",children:t})]})]})]})]})})]})}export{oe as G};
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.