PageSourceSearch

https://statics.piclumen.com/app-1790217403140/_nuxt/DzPVG409.js

js piclumen.com collected 2026-09-24 09:44:13 UTC 27,879 bytes, 2 lines download raw bytes

1const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./DgP5bbUE.js","./pyVxiBLO.js","./DCCPWw9Y.js","./CmUz1GCm.js","./Bx1xfRBz.js","./svg-icons.DDc8G5QA.css","./DTLJGphe.js","./entry.D7psC3v0.css","./Dt5DPnqm.js","./BYPYR4Ub.js","./Brfzr7gJ.js","./TabBar.B44lk_80.css"])))=>i.map(i=>d[i]);
2import{_ as e}from"./pyVxiBLO.js";import{b as t,a}from"./Ch3qei0Q.js";import{fh as s,e2 as i,fi as r,fj as n,d3 as l,b7 as o,e8 as c,cr as p,fk as d,dB as m,fl as f,b5 as u,fm as x,bY as h,aN as g,be as _,e5 as v,bd as y,cb as w,dM as b,f2 as k,d9 as P,fn as S,da as T,fo as E,dR as U,_ as V,Y as A,l as I,aO as z,fp as L,X as C,an as N,ao as O,fq as H,eU as M}from"./Bx1xfRBz.js";import{G as B,am as j,au as R,s as D,d as $,dJ as F,ag as G,aC as J,an as Y,go as Q,o as K,aA as Z,aP as X,aQ as q,c as W,x as ee,a as te,gp as ae,fO as se,f as ie,aw as re,gq as ne,ch as le,cg as oe,M as ce,aa as pe,ci as de}from"./DCCPWw9Y.js";import{c as me,o as fe,N as ue,aI as xe,aV as he,X as ge,l as _e,w as ve,e as ye,d as we,g as be,J as ke,a as Pe,P as Se,S as Te,L as Ee,V as Ue,ac as Ve,aR as Ae,ab as Ie,r as ze,k as Le,a7 as Ce,an as Ne,ao as Oe,ap as He,Y as Me,f as Be,I as je}from"./CmUz1GCm.js";import{_ as Re}from"./GGf5-mLq.js";import{_ as De}from"./C81qmY-G.js";import{a as $e}from"./BS-hwCF7.js";import{u as Fe}from"./BNFAeUte.js";const Ge={class:"icons-box-wrapper inline-flex items-center justify-center cursor-pointer"},Je={__name:"index",props:{name:String,active:Boolean},setup(e){const t=e,a={home:{normal:U,fill:E},compass:{normal:T,fill:S},community:{normal:P,fill:k},frame:{normal:b,fill:w},image:{normal:y,fill:v},audio:{normal:_,fill:_},text:{normal:g,fill:g},effect:{normal:h,fill:x},apps:{normal:u,fill:f},activity:{normal:m,fill:d},library:{normal:p,fill:c},canvas:{normal:o,fill:l},academy:{normal:n,fill:r},solution:{normal:i,fill:s}},V=_e((()=>t.name&&a[t.name]?a[t.name][t.active?"fill":"normal"]:null));return(e,t)=>(fe(),me("div",Ge,[(fe(),ue(ge(V.value),xe(he(e.$attrs)),null,16))]))}},Ye={key:0,class:"absolute size-full"},Qe={key:1,class:"absolute size-full"},Ke={key:0,class:"relative z-10 mt-0.5 text-dark-active-text text-xs"},Ze={key:1,class:"relative z-10 mt-0.5 text-dark-active-text text-xs"},Xe={class:"p-2 rounded border border-solid dark:border-white/20 flex flex-col gap-2.5 card-shadow"},qe={class:"ml-0.5"},We={key:0,class:"ml-0.5"},et={class:"ml-2 flex items-center gap-2 text-sm"},tt={class:"p-4 w-[364px] rounded-xl border border-solid dark:border-white/20 card-shadow"},at={class:"flex items-center gap-2.5"},st={class:"font-medium"},it={class:"gap-1 flex items-center"},rt={class:"mt-1.5 rounded-lg bg-black/5 dark:bg-white/5"},nt={class:"mt-2.5 flex items-center gap-2.5"},lt={class:"font-medium"},ot={class:"gap-1 flex items-center"},ct={class:"mt-1.5 rounded-lg bg-black/5 dark:bg-white/5"},pt={class:"mt-2.5"},dt=V({__name:"JobQueue",props:{isFold:{type:Boolean,default:!0},type:{type:String,default:"image"}},setup(e){const{t:t}=B({useScope:"global"}),a=e,s=_e((()=>e=>"playground"===e.originCreate||e.playgroundName)),{updatePageKey:i}=j(),r={image:"/ai-image/",video:"/ai-video/",audio:"/ai-audio/",text:"/ai-text/"},n=()=>{const e=r[a.type]||"/ai-image/";i(e,0)},l=ze(null),o=R(),c=Fe(),{processingTasks:p}=D(c),{isLogin:d}=$(),m=_e((()=>x.value.length>0)),f=_e((()=>X(q)[a.type]||[])),u=e=>({...e,id:e.taskId,markId:e.taskId,model_id:e.modelId,type:"text",status:"running",index:0,prompt:e.prompt,resolution:{batch_size:1}}),x=_e((()=>{if("text"===a.type)return p.value.map(u);const e=o.taskQueue;return[...o.preloadQueue.map((e=>({...e,...e.genInfo,isPreloadTask:!0}))).reverse(),...e].filter((e=>{const t=e.model_id||e.modelId;return!!f.value.includes(t)||"audio"===a.type&&J(e)}))})),h=_e((()=>{let e=x.value[0];for(const t of x.value){if(0===t.index)break;new Date(t.createTimestamp)<new Date(e.createTimestamp)&&(e=t)}return x.value[0]})),g=_e((()=>({status:e,index:t})=>"running"===e||0===t)),_=_e((()=>e=>Z(e,"output"))),v=_e((()=>{const e=x.value.length>0,t=h?.value?.index;return{showIcon:e,hasPending:0!==t}})),y=e=>{const s=e?.resolution?.batch_size;if("text"===a.type)return t("MENU_JOB_STATUS_BATCH_SIZE");if(!s||s<2)return t("MENU_JOB_STATUS_BATCH_SIZE");const i=e?.type||a.type;return t("audio"===i?"MENU_JOB_STATUS_BATCH_SIZES_AUDIO":"MENU_JOB_STATUS_BATCH_SIZES",{batch_size:s})};ve(d,(e=>{"text"===a.type&&(e?c.hydrate():c.clear())}),{immediate:!0});let w=!1;return(a,i)=>{const r=L,c=z,p=I,d=F,f=Ie,u=De,h=$e,b=Ae;
2return we(m)?(fe(),me("div",{key:0,class:Ee(["absolute",[e.isFold?"top-[-8px] right-[-2px] z-[20]":"top-0 right-0"]]),onClick:n},[be(b,{trigger:"hover",placement:"right",raw:"","show-arrow":!1,ref_key:"taskListRef",ref:l},{trigger:ke((()=>[Pe("div",{class:Ee(["relative flex items-center justify-center",[e.isFold?"size-6":"size-[38px]"]])},[we(v).showIcon&&we(v).hasPending?(fe(),me("figure",Ye,[...i[0]||(i[0]=[Pe("img",{src:"data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20id='efwUoLV1pHy1'%20viewBox='0%200%20126%20126'%20shape-rendering='geometricPrecision'%20text-rendering='geometricPrecision'%20cached='false'%20style='background-color:transparent'%3e%3cstyle%3e%3c![CDATA[%20%23efwUoLV1pHy2_ts%20{%20animation:%20efwUoLV1pHy2_ts__ts%201080ms%20linear%20infinite%20normal%20forwards%20}@keyframes%20efwUoLV1pHy2_ts__ts%20{%200%25%20{%20transform:%20translate(63px,%2063px)%20scale(0.8888,%200.8888);%20animation-timing-function:%20cubic-bezier(0.17,%200.07,%200.69,%201)%20}%2018.518519%25%20{%20transform:%20translate(63px,%2063px)%20scale(1.1875,%201.1875);%20animation-timing-function:%20cubic-bezier(0.17,%200,%200.83,%201)%20}%2081.481481%25%20{%20transform:%20translate(63px,%2063px)%20scale(1.3959,%201.3959)%20}%20100%25%20{%20transform:%20translate(63px,%2063px)%20scale(1.3959,%201.3959)%20}}%23efwUoLV1pHy2%20{%20animation:%20efwUoLV1pHy2_c_o%201080ms%20linear%20infinite%20normal%20forwards}@keyframes%20efwUoLV1pHy2_c_o%20{%200%25%20{%20opacity:%201%20}%2029.62963%25%20{%20opacity:%200.8%20}%2074.074074%25%20{%20opacity:%200%20}%20100%25%20{%20opacity:%200%20}}%23efwUoLV1pHy3%20{%20animation:%20efwUoLV1pHy3_s_w%201080ms%20linear%20infinite%20normal%20forwards}@keyframes%20efwUoLV1pHy3_s_w%20{%200%25%20{%20stroke-width:%2012;%20animation-timing-function:%20cubic-bezier(0.17,%200.12,%200.86,%201)%20}%2025.925926%25%20{%20stroke-width:%202.5;%20animation-timing-function:%20cubic-bezier(0.17,%200.91,%200.41,%201)%20}%2096.296296%25%20{%20stroke-width:%201%20}%20100%25%20{%20stroke-width:%201%20}}%23efwUoLV1pHy4_ts%20{%20animation:%20efwUoLV1pHy4_ts__ts%201080ms%20linear%20infinite%20normal%20forwards}@keyframes%20efwUoLV1pHy4_ts__ts%20{%200%25%20{%20transform:%20translate(63px,%2063px)%20scale(0.9097,%200.9097);%20animation-timing-function:%20cubic-bezier(0.2,%200.19,%200.69,%201)%20}%2033.333333%25%20{%20transform:%20translate(63px,%2063px)%20scale(1.4783,%201.4783);%20animation-timing-function:%20cubic-bezier(0.17,%200.46,%200.83,%200.83)%20}%2092.592593%25%20{%20transform:%20translate(63px,%2063px)%20scale(1.8264,%201.8264)%20}%20100%25%20{%20transform:%20translate(63px,%2063px)%20scale(1.8264,%201.8264)%20}}%23efwUoLV1pHy4%20{%20animation:%20efwUoLV1pHy4_c_o%201080ms%20linear%20infinite%20normal%20forwards}@keyframes%20efwUoLV1pHy4_c_o%20{%200%25%20{%20opacity:%200.64%20}%2040.740741%25%20{%20opacity:%200.26%20}%20100%25%20{%20opacity:%200%20}}%23efwUoLV1pHy5%20{%20animation:%20efwUoLV1pHy5_s_w%201080ms%20linear%20infinite%20normal%20forwards}@keyframes%20efwUoLV1pHy5_s_w%20{%200%25%20{%20stroke-width:%208;%20animation-timing-function:%20cubic-bezier(0.17,%200.02,%200.65,%201)%20}%2033.333333%25%20{%20stroke-width:%202;%20animation-timing-function:%20cubic-bezier(0.17,%200.11,%200.65,%201)%20}%2081.481481%25%20{%20stroke-width:%200%20}%20100%25%20{%20stroke-width:%200%20}}%23efwUoLV1pHy6_ts%20{%20animation:%20efwUoLV1pHy6_ts__ts%201080ms%20linear%20infinite%20normal%20forwards}@keyframes%20efwUoLV1pHy6_ts__ts%20{%200%25%20{%20transform:%20translate(63px,%2063px)%20scale(1,%201);%20animation-timing-function:%20cubic-bezier(0.17,%200.42,%200.35,%201)%20}%2014.814815%25%20{%20transform:%20translate(63px,%2063px)%20scale(1.02,%201.02);%20animation-timing-function:%20cubic-bezier(0.62,%200,%200.83,%200.58)%20}%2029.62963%25%20{%20transform:%20translate(63px,%2063px)%20scale(1,%201)%20}%20100%25%20{%20transform:%20translate(63px,%2063px)%20scale(1,%201)%20}}%20]]%3e%3c/style%3e%3cg%20id='efwUoLV1pHy2_ts'%20transform='translate(63,63)%20scale(0.8888,0.8888)'%3e%3cg%20id='efwUoLV1pHy2'%20transform='translate(0.03,0.17)'%3e%3cellipse%20id='efwUoLV1pHy3'%20rx='36'%20ry='36'%20fill='%2341ff87'%20fill-opacity='0'%20stroke='%238d47ff'%20stroke-width='12'/%3e%3c/g%3e%3c/g%3e%3cg%20id='efwUoLV1pHy4_ts'%20transform='translate(63,63)%20scale(0.9097,0.9097)'%3e%3cg%20id='efwUoLV1pHy4'%20transform='translate(0,0)'%20opacity='0.64'%3e%3cellipse%20id='efwUoLV1pHy5'%20rx='36'%20ry='36'%20fill='%2341ff87'%20fill-opacity='0'%20stroke='%238147ff'%20stroke-width='8'/%3e%3c/g%3e%3c/g%3e%3cg%20id='efwUoLV1pHy6_ts'%20transform='translate(63,63)%20scale(1,1)'%3e%3cg%20transform='translate(0,0)'%3e%3cellipse%20rx='36'%20ry='36'%20fill='%236f47ff'%20stroke='%2322c55e'%20stroke-width='0'/%3e%3c/g%3e%3c/g%3e%3c/svg%3e"},null,-1)])])):ye("",!0),we(v).showIcon&&!we(v).hasPending?(fe(),me("figure",Qe,[...i[1]||(i[1]=[Pe("img",{src:"data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20id='ecPsxrh3tVp1'%20viewBox='0%200%20126%20126'%20cached='false'%20style='background-color:transparent'%3e%3cstyle%20xmlns='http://www.w3.org/2000/svg'%3e%3c![CDATA[%23ecPsxrh3tVp2_ts%20{animation:%20ecPsxrh3tVp2_ts__ts%201080ms%20linear%20infinite%20normal%20forwards}@keyframes%20ecPsxrh3tVp2_ts__ts%20{%200%25%20{transform:%20translate(63px,63px)%20scale(0.8888,0.8888);animation-timing-function:%20cubic-bezier(0.17,0.07,0.69,1)}%2018.518519%25%20{transform:%20translate(63px,63px)%20scale(1.187
25,1.1875);animation-timing-function:%20cubic-bezier(0.17,0,0.83,1)}%2081.481481%25%20{transform:%20translate(63px,63px)%20scale(1.3959,1.3959)}%20100%25%20{transform:%20translate(63px,63px)%20scale(1.3959,1.3959)}}%20%23ecPsxrh3tVp2%20{animation:%20ecPsxrh3tVp2_c_o%201080ms%20linear%20infinite%20normal%20forwards}@keyframes%20ecPsxrh3tVp2_c_o%20{%200%25%20{opacity:%201}%2029.62963%25%20{opacity:%200.8}%2074.074074%25%20{opacity:%200}%20100%25%20{opacity:%200}}%20%23ecPsxrh3tVp3%20{animation:%20ecPsxrh3tVp3_s_w%201080ms%20linear%20infinite%20normal%20forwards}@keyframes%20ecPsxrh3tVp3_s_w%20{%200%25%20{stroke-width:%2012;animation-timing-function:%20cubic-bezier(0.17,0.12,0.86,1)}%2025.925926%25%20{stroke-width:%202.5;animation-timing-function:%20cubic-bezier(0.17,0.91,0.41,1)}%2096.296296%25%20{stroke-width:%201}%20100%25%20{stroke-width:%201}}%20%23ecPsxrh3tVp4_ts%20{animation:%20ecPsxrh3tVp4_ts__ts%201080ms%20linear%20infinite%20normal%20forwards}@keyframes%20ecPsxrh3tVp4_ts__ts%20{%200%25%20{transform:%20translate(63px,63px)%20scale(0.9097,0.9097);animation-timing-function:%20cubic-bezier(0.2,0.19,0.69,1)}%2033.333333%25%20{transform:%20translate(63px,63px)%20scale(1.4783,1.4783);animation-timing-function:%20cubic-bezier(0.17,0.46,0.83,0.83)}%2092.592593%25%20{transform:%20translate(63px,63px)%20scale(1.8264,1.8264)}%20100%25%20{transform:%20translate(63px,63px)%20scale(1.8264,1.8264)}}%20%23ecPsxrh3tVp4%20{animation:%20ecPsxrh3tVp4_c_o%201080ms%20linear%20infinite%20normal%20forwards}@keyframes%20ecPsxrh3tVp4_c_o%20{%200%25%20{opacity:%200.64}%2040.740741%25%20{opacity:%200.26}%20100%25%20{opacity:%200}}%20%23ecPsxrh3tVp5%20{animation:%20ecPsxrh3tVp5_s_w%201080ms%20linear%20infinite%20normal%20forwards}@keyframes%20ecPsxrh3tVp5_s_w%20{%200%25%20{stroke-width:%208;animation-timing-function:%20cubic-bezier(0.17,0.02,0.65,1)}%2033.333333%25%20{stroke-width:%202;animation-timing-function:%20cubic-bezier(0.17,0.11,0.65,1)}%2081.481481%25%20{stroke-width:%200}%20100%25%20{stroke-width:%200}}%20%23ecPsxrh3tVp6_ts%20{animation:%20ecPsxrh3tVp6_ts__ts%201080ms%20linear%20infinite%20normal%20forwards}@keyframes%20ecPsxrh3tVp6_ts__ts%20{%200%25%20{transform:%20translate(63px,63px)%20scale(1,1);animation-timing-function:%20cubic-bezier(0.17,0.42,0.35,1)}%2014.814815%25%20{transform:%20translate(63px,63px)%20scale(1.02,1.02);animation-timing-function:%20cubic-bezier(0.62,0,0.83,0.58)}%2029.62963%25%20{transform:%20translate(63px,63px)%20scale(1,1)}%20100%25%20{transform:%20translate(63px,63px)%20scale(1,1)}}%20]]%3e%3c/style%3e%3cg%20id='ecPsxrh3tVp2_ts'%20transform='translate(63,63)%20scale(0.8888,0.8888)'%3e%3cg%20id='ecPsxrh3tVp2'%20transform='translate(0.03,0.17)'%3e%3cellipse%20id='ecPsxrh3tVp3'%20rx='36'%20ry='36'%20fill='%2341ff87'%20fill-opacity='0'%20stroke='%2334c522'%20stroke-width='12'/%3e%3c/g%3e%3c/g%3e%3cg%20id='ecPsxrh3tVp4_ts'%20transform='translate(63,63)%20scale(0.9097,0.9097)'%3e%3cg%20id='ecPsxrh3tVp4'%20transform='translate(0,0)'%20opacity='0.64'%3e%3cellipse%20id='ecPsxrh3tVp5'%20rx='36'%20ry='36'%20fill='%2341ff87'%20fill-opacity='0'%20stroke='%2387ff5a'%20stroke-width='8'/%3e%3c/g%3e%3c/g%3e%3cg%20id='ecPsxrh3tVp6_ts'%20transform='translate(63,63)%20scale(1,1)'%3e%3cg%20transform='translate(0,0)'%3e%3cellipse%20rx='36'%20ry='36'%20fill='%2322c55e'%20stroke='%2322c55e'%20stroke-width='0'/%3e%3c/g%3e%3c/g%3e%3c/svg%3e"},null,-1)])])):ye("",!0),!e.isFold&&we(m)?(fe(),me(Se,{key:2},[1===we(x).length?(fe(),me("span",Ke,Ue(we(x).length),1)):(fe(),me("span",Ze,Ue(we(x).length),1))],64)):ye("",!0)],2)])),default:ke((()=>[Pe("div",Xe,[(fe(!0),me(Se,null,Te(we(x),(e=>(fe(),me("div",{key:e.markId||e.id,class:Ee(["flex items-center justify-between p-2 text-black dark:text-dark-text min-w-60 rounded task-item",[we(g)(e)?"bg-[#22C55E]/30":"bg-primary/30"]])},[Pe("div",qe,[Pe("span",null,Ue(y(e))+", "+Ue(we(g)(e)?we(t)("MENU_JOB_STATUS_GENERATING"):we(t)("MENU_JOB_STATUS_QUEUEING")),1),e.index>0?(fe(),me("span",We,". ("+Ue(e.index)+")",1)):ye("",!0)]),Pe("div",et,["image"===e.type?(fe(),ue(we(Ve),{key:0,size:"24",class:"hover-show",onClick:a=>(e=>{const{isPreloadTask:a,id:s,markId:i}=e;if(w)return;w=!0,l.value?.setShow(!1);const{showMessage:r}=Y();r({style:{width:"380px"},cancelBtn:t("SHORT_BTN_NO"),confirmBtn:t("SHORT_BTN_YES"),content:Le("div",null,t("SHORT_CANCEL_TASK")),icon:Le(Ve,{size:32,class:"text-error"},{default:()=>Le(C)}),title:t("DIALOG_TITLE_CONFIRM")}).then((async()=>
2{if(a)await o.syncDelPreloadTasks([s]);else{const{status:e,message:t}=await Q(i);!e&&K.error(t)}w=!1})).catch((()=>{w=!1}))})(e)},{default:ke((()=>[be(we(A))])),_:1},8,["onClick"])):ye("",!0),be(b,{trigger:"click",placement:"right",raw:"","show-arrow":!1},{trigger:ke((()=>[be(we(Ve),{size:"20",class:"hover-show"},{default:ke((()=>[be(r)])),_:1})])),default:ke((()=>[Pe("div",tt,[Pe("div",at,[Pe("span",st,Ue(we(t)("COMMON_PROMPT")),1),e.prompt?(fe(),ue(d,{key:0,placement:"right",trigger:"click",duration:2},{trigger:ke((()=>[be(we(Ve),{size:"16",class:"opacity-40 cursor-pointer hover:opacity-70",onClick:t=>we(G)(e.prompt)},{default:ke((()=>[be(c)])),_:1},8,["onClick"])])),default:ke((()=>[Pe("div",it,[be(we(Ve),{size:"20"},{default:ke((()=>[be(p)])),_:1}),Pe("span",null,Ue(we(t)("TOAST_COPY_SUCCESS")),1)])])),_:2},1024)):ye("",!0)]),Pe("div",rt,[be(f,{type:"textarea",bordered:!1,placeholder:we(t)("COMMON_PROMPT"),value:we(_)(e).prompt,round:"",readonly:"",autosize:{minRows:2,maxRows:2}},null,8,["placeholder","value"])]),e.negative_prompt?(fe(),me(Se,{key:0},[Pe("div",nt,[Pe("span",lt,Ue(we(t)("CONFIG_BASE_NEGATIVE_PROMPT")),1),e.negative_prompt?(fe(),ue(d,{key:0,placement:"right",trigger:"click",duration:2},{trigger:ke((()=>[be(we(Ve),{size:"16",class:"opacity-40 cursor-pointer hover:opacity-70",onClick:t=>we(G)(e.negative_prompt)},{default:ke((()=>[be(c)])),_:1},8,["onClick"])])),default:ke((()=>[Pe("div",ot,[be(we(Ve),{size:"20"},{default:ke((()=>[be(p)])),_:1}),Pe("span",null,Ue(we(t)("TOAST_COPY_SUCCESS")),1)])])),_:2},1024)):ye("",!0)]),Pe("div",ct,[be(f,{type:"textarea",bordered:!1,placeholder:we(t)("CONFIG_BASE_NEGATIVE_PROMPT"),value:e.negative_prompt,"onUpdate:value":t=>e.negative_prompt=t,readonly:"",round:"",autosize:{minRows:2,maxRows:2}},null,8,["placeholder","value","onUpdate:value"])])],64)):ye("",!0),be(u,{info:e,isPlayground:we(s)(e),hideAspect:!0,class:"mt-2.5"},null,8,["info","isPlayground"]),Pe("div",pt,[be(h,{task:e},null,8,["task"])])])])),_:2},1024)])],2)))),128))])])),_:1},512)],2)):ye("",!0)}}},[["__scopeId","data-v-b8d9f1fb"]]),mt={class:"flex items-center gap-[6px]"},ft={class:"min-h-[18px] flex items-center px-2.5"},ut={class:"flex-1 h-0.5 bg-fill-nav-3"},xt={class:"mt-2 space-y-2"},ht=["onClick"],gt={key:0},_t={class:"px-1.5 py-[1px] rounded-lg flex items-center justify-center text-xs bg-fill-wd-1 text-text-4"},vt={class:"bg-z-background-1 px-4 py-3 font-medium rounded-xl text-text-1 space-y-3 max-w-96"},yt={class:"text-sm whitespace-nowrap font-semibold"},wt={key:1},bt={class:"p-3 bg-fill-ipt-m-1 backdrop-blur-lg shadow-[0_4px_8px_-2px_rgba(0,0,0,0.12),0_8px_24px_rgba(0,0,0,0.16)] rounded-xl flex flex-col gap-2"},kt={class:"bg-z-background-1 px-4 py-3 font-medium rounded-xl text-text-1"},Pt={class:"text-sm whitespace-nowrap"},St={class:"p-4"},Tt={class:"border-t p-4 border-border-1"},Et=V({__name:"PicNav",setup(e){const t=W(),a=ee(),s=te(),{isPc:i}=D(s),{solutionMenus:r}=D(ae()),{isLogin:n}=$(),{locale:l}=B(),o=ze(!1);ve(i,(e=>{o.value=!e}),{immediate:!0});const c=()=>{o.value=!o.value},p={createImage:"image",createVideo:"video",createAudio:"audio",createText:"text"},d=ze([{name:"MENUS.STUDIO",icon:"",link:"",key:"studio",activePath:[],children:[{name:"MENUS.CANVAS",icon:"canvas",link:"/canvas/",key:"canvas",beta:!1,activePath:[]},{name:"VIDEO_TAB",icon:"frame",link:"/ai-video/",key:"createVideo",activePath:[]},{name:"CREATE.DISPLAY_TYPE_IMAGE",icon:"image",link:"/ai-image/",key:"createImage",activePath:[]},{name:"AUDIO_TAB",icon:"audio",link:"/ai-audio/",key:"createAudio",activePath:[]},{name:"TEXT_TAB",icon:"text",link:"/ai-text/",key:"createText",activePath:[]},{name:"ASSETS",icon:"library",link:"/user/assets/",key:"assets",activePath:[]}]},{name:"MENUS.SUITE",icon:"",link:"",key:"library",activePath:[],children:[{name:"MENUS.SOLUTION",icon:"solution",link:"solution",key:"solution",activePath:[],children:[]},{name:"MENUS.EFFECT",icon:"effect",link:"/video-effects/",key:"effect",activePath:[],matchSubPath:!0},{name:"MENUS.APPS",icon:"apps",link:"/tool-kits/",key:"apps",activePath:Object.values(se).map((e=>e.LINK))}]},{name:"MENUS.COMMUNITY",icon:"",link:"",key:"community",activePath:[],children:[{name:"MENUS.Explore",icon:"compass",link:"/explore/",key:"feed",activePath:[],matchSubPath:!0},{name:"MENUS.HUB",icon:"academy",link:"/hub/",key:"hub",activePath:[]},{name:"MENUS.QUESTS",icon:"activity",link:"/challenge/",key:"challenge",activePath:[]}]}]),m=(e,s,i=!1)=>{const r=t?.path;if(!r)return!1;const n=a(e),l=a(r)===n,o=s.map((e=>a(e))).includes(r),c=i&&r.startsWith(n);return l||o||c},f=e=>{const a=t?.path;return!!a&&e.some((e=>m(e.link,e.activePath,e.matchSubPath)))},u=_e((()=>{const e=t?.path;return!!e&&ne.map((e=>a(e))).includes(e)})),x=(e,t)=>{try{window.trackEvent(e,{el:t})}catch(a){}};return ve(r,(e=>{if(e.length>0){const e=r.value.map((e=>({name:e.displayNameI18n,icon:"solution",link:e.slug,key:e.slug,activePath:[]})));d.value[1].children[0].link=e[0].link}}),{immediate:!0}),(e,t)=>{const a=N,s=ie,i=O,r=H,h=Je,g=He,_=M,v=re,y=Re;return fe(),me("aside",{class:Ee(["w-[200px] h-[calc(100vh - 32px)] flex flex-col rounded-3xl bg-fill-ww-10 border border-solid border-border-2 transition-all shrink-0",{"w-[72px]":we(o),hidden:we(u)}])},[Pe("div",{class:Ee(["h-16 p-4 relative group flex items-center",[we(o)?"fold-nav justify-center":"justify-between"]])},[Pe("div",mt,[be(s,{class:"size-8 z-10 cursor-pointer transition-all duration-100 group-hover:group-[.fold-nav]:opacity-0",to:"/"},{default:ke((()=>[be(a,{class:"size-8 text-text-nav-3"})])),_:1}),be(s,{class:"w-[66px] h-[11px] cursor-pointer transition-all duration-100 group-[.fold-nav]:hidden",to:"/"},{default:ke((()=>[be(i,{class:"w-[66px] h-[11px] text-text-nav-3"})])),_:1})]),Pe("div",{class:Ee(["size-8 z-20 cursor-pointer flex justify-center items-center text-text-4 hover:bg-fill-wd-1 rounded-full hover:text-text-1 group-[.fold-nav]:opacity-0 group-hover:group-[.fold-nav]:opacity-100 transition-colors",{"rotate-180 absolute":we(o)}]),onClick:c},[be(r,{class:"text-lg"})],2)],2),Pe("nav",{class:Ee(["menu-container flex-1 p-4 space-y-4 scroll-container !overflow-x-hidden",{"is-fold no-scrollbar":we(o)}])},[be(s,{to:"/",class:Ee(["w-full h-[38px] flex items-center gap-2 rounded-full border border-solid border-transparent cursor-pointer hover:bg-fill-nav-3 hover:text-text-nav-3 text-text-nav-1 font-medium transition-all duration-300",[we(o)?"justify-center px-0":"px-2.5",{"bg-fill-nav-3 !text-text-nav-3 !border-border-nav-3":m("/",[])}]])},{default:ke((()=>[be(h,{name:"home",class:"shrink-0 text-lg",active:m("/",[])},null,8,["active"]),be(Ce,{name:"fade"},{default:ke((()=>[Ne(Pe("span",{class:"text-sm whitespace-nowrap"}
2,Ue(e.$t("MENUS.HOME")),513),[[Oe,!we(o)]])])),_:1})])),_:1},8,["class"]),(fe(!0),me(Se,null,Te(we(d),((t,a)=>(fe(),me("div",{key:a},[Pe("div",ft,[Ne(Pe("span",{class:"text-xs text-text-4 whitespace-nowrap uppercase"},Ue(e.$t(t.name)),513),[[Oe,!we(o)]]),Ne(Pe("div",ut,null,512),[[Oe,we(o)]])]),Pe("div",xt,[(fe(!0),me(Se,null,Te(t.children,(t=>(fe(),me("div",{class:"relative",key:t.key,onClick:e=>(({link:e,key:t})=>{t&&x("Navigation",`nav_menu=${t}`)})(t)},[be(g,{placement:"right","show-arrow":!1,"keep-alive-on-hover":!1,raw:"",disabled:!we(o),class:"rounded-xl"},{trigger:ke((()=>[t.children?.length?(fe(),me("div",wt,[be(g,{placement:"right","show-arrow":!1,raw:"",class:"shadow-[0px_4px_8px_-2px_rgba(0,0,0,0.12),0px_8px_24px_0px_rgba(0,0,0,0.16)] rounded-xl"},{trigger:ke((()=>[Pe("div",{class:Ee(["w-full h-[38px] flex items-center gap-2 py-2 px-2.5 rounded-full border border-solid border-transparent cursor-pointer hover:bg-fill-nav-3 hover:text-text-nav-3 text-text-nav-1 font-medium transition-all duration-300",{"bg-fill-nav-3 !text-text-nav-3 !border-border-nav-3":m(t.link,t.activePath,t.matchSubPath)||f(t.children)}])},[be(h,{name:t.icon,class:"shrink-0 text-lg",active:m(t.link,t.activePath,t.matchSubPath)||f(t.children)},null,8,["name","active"]),be(Ce,{name:"fade"},{default:ke((()=>[Ne(Pe("span",{class:"text-sm whitespace-nowrap"},Ue(e.$t(t.name)),513),[[Oe,!we(o)]])])),_:2},1024)],2)])),default:ke((()=>[Pe("div",bt,[(fe(!0),me(Se,null,Te(t.children,(e=>(fe(),ue(s,{class:Ee(["w-full h-[38px] flex items-center gap-2 py-2 px-2.5 rounded-lg border border-solid border-transparent cursor-pointer hover:bg-fill-nav-3 hover:text-text-nav-3 text-text-nav-1 font-medium transition-all duration-300",{"bg-fill-nav-3 !text-text-nav-3 !border-border-nav-3":m(e.link,e.activePath,e.matchSubPath)}]),key:e.link,to:e.link},{default:ke((()=>[Me(Ue(e?.name?.[we(l)]),1)])),_:2},1032,["class","to"])))),128))])])),_:2},1024)])):(fe(),me("div",gt,[be(s,{to:t.link,class:Ee(["w-full h-[38px] flex items-center gap-2 py-2 rounded-full border border-solid border-transparent cursor-pointer hover:bg-fill-nav-3 hover:text-text-nav-3 text-text-nav-1 font-medium transition-all duration-300",[we(o)?"justify-center px-0":"px-2.5",{"bg-fill-nav-3 !text-text-nav-3 !border-border-nav-3":m(t.link,t.activePath,t.matchSubPath)}]])},{default:ke((()=>[be(h,{name:t.icon,class:"shrink-0 text-lg",active:m(t.link,t.activePath,t.matchSubPath)},null,8,["name","active"]),be(Ce,{name:"fade"},{default:ke((()=>[Ne(Pe("span",{class:"text-sm whitespace-nowrap"},Ue(e.$t(t.name)),513),[[Oe,!we(o)]])])),_:2},1024),t.beta&&!we(o)?(fe(),ue(g,{key:0,placement:"right","show-arrow":!1,raw:"",class:"rounded-xl"},{trigger:ke((()=>[Pe("div",_t,[Pe("span",null,Ue(e.$t("BETA")),1)])])),default:ke((()=>[Pe("div",vt,[Pe("div",yt,Ue(e.$t("BETA_NOTICE")),1),Pe("div",null,Ue(e.$t("BETA_NOTICE_DESC1")),1),Pe("div",null,Ue(e.$t("BETA_NOTICE_DESC2")),1)])])),_:1})):ye("",!0)])),_:2},1032,["to","class"]),p[t.key]?(fe(),ue(dt,{key:0,isFold:we(o),type:p[t.key]},null,8,["isFold","type"])):ye("",!0)]))])),default:ke((()=>[Pe("div",kt,[Pe("div",Pt,Ue(e.$t(t.name)),1)])])),_:2},1032,["disabled"])],8,ht)))),128))])])))),128))],2),be(v,null,{default:ke((()=>[Pe("div",St,[we(n)?(fe(),ue(s,{key:0,to:"/subscribe/",class:Ee(["flex items-center justify-center gap-2 bg-[url('https://statics.piclumen.com/pic-static/images/subscribe/marketplace.webp')] bg-cover bg-center bg-no-repeat py-2 rounded-full h-[38px] overflow-hidden",we(o)?"px-0":"px-2.5"])},{default:ke((()=>[be(_,{class:"shrink-0 text-lg text-text-white"}),Ne(Pe("span",{class:"hidden lg:inline text-sm text-text-white font-medium"},Ue(e.$t("SUBSCRIBES.MARKETPLACE")),513),[[Oe,!we(o)]])])),_:1},8,["class"])):(fe(),ue(s,{key:1,to:"/pricing/",class:Ee(["flex items-center justify-center gap-2 bg-[url('https://statics.piclumen.com/pic-static/images/subscribe/marketplace.webp')] bg-cover bg-center bg-no-repeat py-2 rounded-full h-[38px] overflow-hidden",we(o)?"px-0":"px-2.5"])},{default:ke((()=>[be(_,{class:"shrink-0 text-lg text-text-white"}),Ne(Pe("span",{class:"hidden lg:inline text-sm text-text-white font-medium"}
2,Ue(e.$t("SUBSCRIBES.MARKETPLACE")),513),[[Oe,!we(o)]])])),_:1},8,["class"]))])])),_:1}),Pe("div",Tt,[be(y,{social:we(o)?["discord"]:["discord","facebook","ins","twitter","youtube","tiktok"],"item-size":"24px",class:Ee(["flex h-6 text-lg text-text-4",[we(o)?"justify-center":"justify-between"]])},null,8,["social","class"])])],2)}}},[["__scopeId","data-v-72558bdf"]]),Ut=t("components/BannerArea.vue",(()=>e((()=>import("./DgP5bbUE.js")),__vite__mapDeps([0,1,2,3,4,5,6,7,8]),import.meta.url).then((e=>e.default||e)))),Vt=a("components/TabBar.vue",(()=>e((()=>import("./BYPYR4Ub.js")),__vite__mapDeps([9,2,3,4,5,1,6,7,10,11]),import.meta.url).then((e=>e.default||e)))),At={class:"flex flex-col"},It={class:"sticky top-0 z-[99]"},zt={class:"flex flex-1 min-h-0 min-h-app-dvh box-border bg-bg-8 max-md:flex-wrap-reverse"},Lt={class:"hidden md:flex sticky self-start shrink-0 top-app-banner h-app-dvh box-border"},Ct={class:"flex flex-col w-full flex-1 min-w-0 min-h-0 relative pb-20 md:pb-0"},Nt=/^\/(de|es|fr|it|ja|ko|pt|tw)(?=\/)/i,Ot=["/","/
2profile/*","/ai-image/","/ai-video/","/ai-audio/","/ai-text/","/challenge/","/explore/","/pricing/","/tool-kits/","/tasks/","/m/collection/","/hub/","/video-effects/","/tool-kits/"].map((e=>{let t=e.replace(/\//g,"\\/").replace(/:\w+/g,"\\w+").replace(/\*/g,".*");return new RegExp(`^${t}$`,"i")})),Ht={__name:"app",setup(e){const{isMobile:t}=D(te()),a=W(),s=_e((()=>{if(!t.value)return!1;const e=a?.fullPath;if(!e)return!1;const s=(e=>{let t=e.split("?")[0].split("#")[0];return t=t.replace(Nt,"")||"/",t})(e);return Ot.some((e=>e.test(s)))})),i=le({}),{locales:r}=B(),n=oe(),l="https://www.piclumen.com",o=_e((()=>{const e=r.value.map((e=>({rel:"alternate",hreflang:e.language,href:de(l+n(e.code))})));return e.push({rel:"alternate",hreflang:"x-default",href:de(l+n("en"))}),e}));ce({htmlAttrs:{lang:()=>i.value.htmlAttrs?.lang},link:o}),Be((async()=>{let e="";try{const t=localStorage.getItem("createDataFromLandingpage");t&&(e=JSON.parse(t))}catch(t){}if(e){const{setPromptToGenerate:t}=pe();t(e.prompt),localStorage.removeItem("createDataFromLandingpage")}}));{const{isLogin:e,openLoginModal:t,hasRedirectPath:a,actionTimestamp:s}=$();ve(s,(()=>{a.value&&!e.value&&t()}))}return(e,t)=>{const a=Ut,i=Et,r=Vt;return fe(),me("div",At,[Pe("div",It,[be(a,{"hydrate-on-idle":""})]),Pe("div",zt,[Pe("div",Lt,[be(i,{class:"m-4"})]),Pe("div",Ct,[je(e.$slots,"default"),we(s)?(fe(),ue(r,{key:0,"hydrate-on-visible":""})):ye("",!0)])])])}}};export{Ht 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.