1import{_ as e}from"./BZuUOXEi.js";import{a8 as t,p as l,aO as i}from"./BqsN58w6.js";import{c as a,o as s,e as n,P as o,d,l as r,a as f,g as p,V as c}from"./Dyr2t_CH.js";const u={class:"px-4 py-3 rounded-lg bg-fill-wd-1 flex flex-col gap-2"},x={key:0,class:"flex items-center justify-between gap-2 text-text-4 h-6"},m={class:"flex items-center gap-2 text-text-3"},g={key:1,class:"flex items-center justify-between gap-2 text-text-4 h-6"},h={class:"text-text-3 truncate"},y={key:2,class:"flex items-center justify-between gap-2 text-text-4 h-6"},v={class:"text-text-3"},b={key:3,class:"flex items-center justify-between gap-2 text-text-4 h-6"},w={class:"text-text-3"},j={key:4,class:"flex items-center justify-between gap-2 text-text-4 h-6"},T={class:"text-text-3"},k={key:1,class:"flex items-center justify-between gap-2 text-text-4 h-6"},_={class:"flex items-center gap-2 text-text-3"},P={key:2,class:"flex items-center justify-between gap-2 text-text-4 h-6"},A={class:"text-text-3"},N={__name:"PictureInfo",props:{info:{type:Object,required:!0,default:()=>({})},isPlayground:{type:Boolean,default:!1},hideAspect:{type:Boolean,default:!1},isFromTemplate:{type:Boolean,default:!1}},setup(N){const S=N,B=r((()=>()=>{const e=t(S.info.model_id);return e?{value:e.id,label:e.label,genType:e.genType}:{value:S.info.model_id,label:S.info.modelDisplay||""}})),F=r((()=>{let{realWidth:e,realHeight:t,resolution:l}=S.info;if(e&&t)return{width:e,height:t};let{width:i,height:a}=l||{};return!(!i||!a)&&{width:i,height:a}})),I=r((()=>"customUpload"===S.info.originCreate||"crop"===S.info.originCreate)),$=r((()=>({createTimestamp:e,createTime:t})=>{const i=e||t;return i?l(i):""})),C=r((()=>{if(F.value){let{width:e,height:t}=F.value;return i.find((l=>l.width===e&&l.height===t))?.label}return""}));return(t,l)=>{const i=e;return s(),a("div",u,[N.isPlayground?(s(),a("div",k,[f("span",null,c(t.$t("MENUS.APPS")),1),f("div",_,[f("span",null,c(N.info.playgroundName),1)])])):(s(),a(o,{key:0},[d(I)||N.isFromTemplate||!d(B)().label?n("",!0):(s(),a("div",x,[l[0]||(l[0]=f("span",null,"Model",-1)),f("div",m,[f("span",null,c(d(B)().label),1),p(i,{id:N.info.model_id,size:"20"},null,8,["id"])])])),N.isFromTemplate?(s(),a("div",g,[l[1]||(l[1]=f("span",null,"Template",-1)),f("div",h,c(N.info?.genInfo?.contextAttachInfo?.flowTemplateName),1)])):n("",!0),d($)(N.info)?(s(),a("div",y,[l[2]||(l[2]=f("span",null,"Date created",-1)),f("div",v,c(d($)(N.info)),1)])):n("",!0),!d(I)&&N.info.seed?(s(),a("div",b,[l[3]||(l[3]=f("span",null,"Seed",-1)),f("div",w,c(N.info.seed),1)])):n("",!0),!d(I)&&N.info.cfg&&"video"!==d(B)().genType?(s(),a("div",j,[l[4]||(l[4]=f("span",null,"Guidance Scale",-1)),f("div",T,c(N.info.cfg),1)])):n("",!0)],64)),N.hideAspect?n("",!0):(s(),a("div",P,[l[5]||(l[5]=f("span",null,"Resolution",-1)),f("div",A,c(d(F)?`${d(F).width} x ${d(F).height}`:"N/A")+" "+c(d(C)?"("+d(C)+")":""),1)]))])}}};export{N as _};
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.