1import{_ as e,aq as t,W as a,bW as s,b_ as l}from"./ByN6CAfd.js";import{_ as i}from"./BbkgLZGX.js";import{_ as r}from"./-GMLbsu9.js";import{_ as o}from"./CRKVSlMc.js";import{G as c,s as n,a as d,c as u,f as p,gM as m,p as v,dI as x,aA as g,P as f}from"./BqsN58w6.js";import{aP as y,r as _,c as w,a as b,e as h,N as k,g as E,d as T,P as U,V as O,J as M,aR as I,af as P,ac as S,S as A,L as N,aZ as R,ab as C,o as j,aa as H}from"./Dyr2t_CH.js";import{d as z}from"./YMolbn0J.js";import"./BZuUOXEi.js";import"./DySBSjQy.js";import"./pyVxiBLO.js";import"./DTLJGphe.js";const $={class:"min-h-screen relative text-dark-active-text bg-black font-medium text-base dark"},D={class:"px-10 h-[60px] flex items-center"},Y={href:"/",target:"_blank",class:"cursor-pointer"},L={class:"flex-1 h-full flex justify-center items-center"},G={key:1,class:"flex flex-col items-center justify-center"},W={class:"mt-4 text-dark-active-text/70"},F={key:0,class:"w-[364px] h-full shrink-0 bg-black/20 rounded-xl relative p-6 text-sm leading-6 overflow-hidden max-md:!hidden"},J={key:0,class:"h-full overflow-y-auto no-scroll pb-32 opacity-70 dark:opacity-100"},V={class:"flex items-center gap-2"},B={class:"mt-6 flex items-center gap-2.5"},q={class:"mt-3 rounded-lg bg-white/5"},Z={class:"mt-6 flex items-center gap-2.5"},K={class:"mt-3 rounded-lg bg-white/5"},Q={class:"mt-6 p-1.5 bg-white/5 flex items-center gap-2.5 rounded-lg text-dark-active-text/70"},X={class:"mt-4 flex gap-3"},ee={class:"w-1/2"},te={class:"w-1/2"},ae={class:"mt-4 flex gap-3"},se={class:"w-1/2"},le={class:"w-1/2"},ie={class:"mt-4 flex gap-3"},re={class:"w-1/2"},oe={class:"w-1/2"},ce={class:"mt-4 flex gap-3"},ne={class:"w-1/2"},de={class:"w-1/2"},ue={key:1,class:"h-full overflow-y-auto no-scroll pb-32"},pe={class:"flex items-center gap-2 mb-6"},me={class:"flex items-center gap-2.5"},ve={class:"font-medium"},xe={class:"mt-3 rounded-lg bg-white/5 relative"},ge={key:1,class:"p-7 flex flex-col items-center justify-center gap-3"},fe={class:"mt-6 flex items-center gap-2.5"},ye={class:"font-medium"},_e={class:"my-3 rounded-lg bg-white/5 relative"},we={key:1,class:"p-7 flex flex-col items-center justify-center gap-3"},be={key:1},he={class:"font-semibold text-xl text-dark-active-text"},ke={class:"space-y-3"},Ee={class:"flex items-center gap-2 bg-fill-wd-1 rounded-lg p-3"},Te={key:0,class:"bg-dark-bg rounded-lg p-3"},Ue={class:"mt-2"},Oe={key:1,class:"bg-dark-bg rounded-lg p-3 mt-3"},Me={class:"mt-2"},Ie={class:"font-semibold text-xl text-dark-active-text"},Pe=e({__name:"[id]",async setup(e){let Pe,Se;const{t:Ae}=c({useScope:"global"}),{isMobile:Ne}=n(d()),Re=_({}),Ce=u(),je=_(!0),He=_(!1),ze=()=>{{const e=new Image,t=Re.value.thumbnailUrl||Re.value.highThumbnailUrl||Re.value.imgUrl;e.src=t,e.onload=()=>{Re.value.highMiniUrl=t}}};try{[Pe,Se]=y((()=>(async()=>{const e=Ce.params.id;if(!e)return void(je.value=!1);je.value=!0;let{status:t,data:a}=await m({commFileId:e});je.value=!1,a=z(a,"JSON");const s=JSON.parse(a.genInfo);a.genInfo=s,a.time=v(a.createTime),Object.assign(a,s);const l=a.model_id;let i=x(l);a.icon=i,a.type=a.videoUrl?"video":"image",a.isPlayground=!!s.playgroundName,Re.value=g(a,"output");const r=Re.value?.accountInfo?.userName,o="video"===Re.value.type,c={title:()=>Ae("SEO_META.SEO_COMMUNITY_SHARE_TITLE",{Username:r}),ogTitle:()=>Ae("SEO_META.SEO_COMMUNITY_SHARE_TITLE",{Username:r}),description:()=>Ae("SEO_META.SEO_COMMUNITY_SHARE_DESC",{Username:r}),ogDescription:()=>Ae("SEO_META.SEO_COMMUNITY_SHARE_DESC",{Username:r}),ogImage:Re.value.thumbnailUrl||Re.value.imgUrl,ogUrl:`https://www.piclumen.com/explore/share/${e}`,ogType:o?"video.other":"article",twitterTitle:()=>Ae("SEO_META.SEO_COMMUNITY_SHARE_TITLE",{Username:r}),twitterDescription:()=>Ae("SEO_META.SEO_COMMUNITY_SHARE_DESC",{Username:r}),twitterImage:Re.value.thumbnailUrl||Re.value.imgUrl};o?(c.twitterCard="player",c.twitterPlayer=`https://www.piclumen.com/explore/share/${e}`,c.twitterPlayerStream=Re.value.videoUrl,c.twitterPlayerWidth=Re.value.width||720,c.twitterPlayerHeight=Re.value.height||720):c.twitterCard="summary_large_image",f(c),ze()})())),await Pe,Se()}catch(De){je.value=!1}const $e=()=>{if(!Ne.value)return!1;He.value=!He.value};return(e,c)=>{const n=t,d=i,u=r,m=a,v=S,x=I,g=R,f=s,y=C,_=l,z=o,Pe=H,Se=p;return j(),w("main",$,[b("div",D,[b("a",Y,[E(n,{class:"h-8"})])]),b("section",{class:"relative page-content flex",onClick:$e},[b("div",L,[T(Re).id?(j(),w(U,{key:0},["video"===T(Re).type?(j(),k(d,{key:0,hideNativeControls:!1,autoplay:!0,clickPlay:!0,permanentControls:!0,cover:T(Re).thumbnailUrl,src:T(Re).videoUrl},null,8,["cover","src"])):(j(),k(u,{key:1,src:T(Re).thumbnailUrl,class:"!object-contain"},null,8,["src"]))],64)):T(je)||T(Re).id?h("",!0):(j(),w("div",G,[c[3]||(c[3]=b("img",{src:"https://statics.piclumen.com/pic-static/images/no-detail.svg"},null,-1)),b("span",W,O(e.$t("AUTHOR_DEL_RES")),1)])),T(je)?(j(),k(v,{key:2,size:"20",class:"text-primary"},{default:M((()=>[E(m)])),_:1})):h("",!0)]),T(Ne)?h("",!0):(j(),w("div",F,[T(je)||!T(Re).id?(j(),w("div",J,[b("div",V,[E(x,{height:"32px",circle:""}),E(x,{text:"",class:"w-36"})]),b("div",B,[E(x,{text:"",class:"w-20"})]),b("div",q,[E(x,{text:"",repeat:4})]),b("div",Z,[E(x,{text:"",class:"w-20"})]),b("div",K,[E(x,{text:"",repeat:4})]),b("div",Q,[E(x,{height:"32px",circle:""}),E(x,{text:"",class:"w-36"})]),b("div",X,[b("div",ee,[E(x,{text:"",class:"w-16"}),E(x,{text:""})]),b("div",te,[E(x,{text:"",class:"w-16"}),E(x,{text:""})])]),b("div",ae,[b("div",se,[E(x,{text:"",class:"w-16"}),E(x,{text:""})]),b("div",le,[E(x,{text:"",class:"w-16"}),E(x,{text:""})])]),b("div",ie,[b("div",re,[E(x,{text:"",class:"w-16"}),E(x,{text:""})]),b("div",oe,[E(x,{text:"",class:"w-16"}),E(x,{text:""})])]),b("div",ce,[b("div",ne,[E(x,{text:"",class:"w-16"}),E(x,{text:""})]),b("div",de,[E(x,{text:"",class:"w-16"}),E(x,{text:""})])])])):(j(),w("div",ue,[b("div",pe,[T(Re).accountInfo?.userAvatarUrl?(j(),k(g,{key:0,round:"",size:32,src:T(Re).accountInfo.userAvatarUrl},null,8,["src"])):(j(),k(g,{key:1,round:"",size:32},{default:M((()=>[E(v,null,{default:M((()=>[E(f)])),_:1})])),_:1})),b("span",null,O(T(Re).accountInfo?.userName),1)]),T(Re).isPlayground?h("",!0):(j(),w(U,{key:0},[b("div",me,[b("span",ve,O(e.$t("COMMON_PROMPT")),1)]),b("div",xe,["everyone"===T(Re).publicType?(j(),k(y,{key:0,t
1ype:"textarea",class:"!text-dark-active-text/70",placeholder:"prompt",onWheel:P((e=>null),["stop"]),value:T(Re).prompt,"onUpdate:value":c[0]||(c[0]=e=>T(Re).prompt=e),readonly:"",round:"",autosize:{minRows:3,maxRows:6}},null,8,["value"])):(j(),w("div",ge,[E(v,{size:"24",class:"text-info-6"},{default:M((()=>[E(_)])),_:1}),b("span",null,O(e.$t("COMMUNITY_AUTHOR_HIDE_PROMPT")),1)]))]),b("div",fe,[b("span",ye,O(e.$t("CONFIG_BASE_NEGATIVE_PROMPT")),1)]),b("div",_e,["everyone"===T(Re).publicType?(j(),k(y,{key:0,type:"textarea",class:"!text-dark-active-text/70",placeholder:"negative prompt",onWheel:P((e=>null),["stop"]),value:T(Re).negative_prompt,"onUpdate:value":c[1]||(c[1]=e=>T(Re).negative_prompt=e),readonly:"",round:"",autosize:{minRows:2,maxRows:4}},null,8,["value"])):(j(),w("div",we,[E(v,{size:"24",class:"text-info-6"},{default:M((()=>[E(_)])),_:1}),b("span",null,O(e.$t("COMMUNITY_AUTHOR_HIDE_PROMPT")),1)]))])],64)),E(z,{info:T(Re),isPlayground:T(Re).isPlayground},null,8,["info","isPlayground"]),T(Re).tagList?.length>0?(j(),w("div",be,[(j(!0),w(U,null,A(T(Re).tagList,(e=>(j(),w("div",{class:"act-tag",key:e},[b("span",null,O(e),1)])))),128))])):h("",!0)])),E(Se,{to:"/explore/",class:"block sticky bottom-3"},{default:M((()=>[E(Pe,{class:"w-[316px] remix-btn rounded-full",bordered:!1},{default:M((()=>[b("span",he,O(e.$t("MENU_CREATE")),1)])),_:1})])),_:1})]))]),T(Ne)?(j(),w("section",{key:0,class:N(["absolute top-1/3 left-0 bottom-0 right-0 bg-bg-1 rounded-t-xl p-4 text-sm overflow-y-auto opacity-0 -z-10",{"z-10 opacity-100":T(He)}]),onClick:c[2]||(c[2]=e=>He.value=!T(He))},[b("div",ke,[b("div",Ee,[T(Re).accountInfo?.userAvatarUrl?(j(),k(g,{key:0,round:"",size:32,src:T(Re).accountInfo.userAvatarUrl},null,8,["src"])):(j(),k(g,{key:1,round:"",size:32},{default:M((()=>[E(v,null,{default:M((()=>[E(f)])),_:1})])),_:1})),b("span",null,O(T(Re).accountInfo?.userName),1)]),T(Re).isPlayground?h("",!0):(j(),w(U,{key:0},["everyone"===T(Re).publicType&&T(Re).prompt?(j(),w("div",Te,[b("div",null,O(e.$t("COMMON_PROMPT")),1),b("div",Ue,O(T(Re).prompt),1)])):h("",!0),"everyone"===T(Re).publicType&&T(Re).negative_prompt?(j(),w("div",Oe,[b("div",null,O(e.$t("CONFIG_BASE_NEGATIVE_PROMPT")),1),b("div",Me,O(T(Re).negative_prompt),1)])):h("",!0)],64)),E(z,{info:T(Re),isPlayground:T(Re).isPlayground},null,8,["info","isPlayground"])])],2)):h("",!0),T(Ne)?(j(),k(Se,{key:1,to:"/explore/",class:"sticky bottom-3 mx-8 block"},{default:M((()=>[E(Pe,{class:"w-full remix-btn rounded-full !h-12",bordered:!1},{default:M((()=>[b("span",Ie,O(e.$t("MENU_CREATE")),1)])),_:1})])),_:1})):h("",!0)])}}},[["__scopeId","data-v-7ec572ab"]]);export{Pe 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.